blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
f0f23530fb3cbc50111cfe4a488934543ebda0da
c7d7dfa5ac23b940e852a67155364439d9069486
/widget_image_tools/tests/test_data_get.py
e4b4e188f3230a7c9c77643e2405c1d4efe1f91c
[]
no_license
shurshilov/odoo
d163f6c939bcbfb36bdf83eeeeffca368f0a4722
8099e62254b7f1e113be7b522585dbc352aea5a8
refs/heads/16.0
2023-09-04T03:02:31.427240
2023-09-03T16:25:28
2023-09-03T16:25:28
89,852,559
20
43
null
2023-09-03T06:30:22
2017-04-30T13:32:08
JavaScript
UTF-8
Python
false
false
625
py
import logging from openerp.tests.common import HttpCase _logger = logging.getLogger(__name__) class TestDataGet(HttpCase): at_install = False post_install = True def test_data_get(self): test_attachment = self.env.ref("ir_attachment_url.test_url_attachment") self.env["ir.attachment"].s...
92f627735e41204e95c82484985badde9791b02d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02271/s655155562.py
70e2e74705b0aa77c4c0f55bb17c1e3a42de475a
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
n = int(input()) SET1 = {0} for a in map(int, input().split()): for b in tuple(SET1): SET1.add(a + b) input() for m in map(int, input().split()): print('yes' if m in SET1 else 'no')
b9168ca4256f538357f56f9175e1e1b507d98538
56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e
/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/VBF_HToTauTau_M-120_8TeV-powheg-pythia6/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377467448/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_80/run_cfg.py
c87bf367bb3c41826a53f12310721f39747c57ee
[]
no_license
rmanzoni/HTT
18e6b583f04c0a6ca10142d9da3dd4c850cddabc
a03b227073b2d4d8a2abe95367c014694588bf98
refs/heads/master
2016-09-06T05:55:52.602604
2014-02-20T16:35:34
2014-02-20T16:35:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,477
py
import FWCore.ParameterSet.Config as cms import os,sys sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/VBF_HToTauTau_M-120_8TeV-powheg-pythia6/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377467448/HTT_24Jul_newTES_manzoni_Up...
68add924debc9d40e2c9e6e8b0177bc5b786cd89
2adcbbbecf90e4fbb89755a8a68f86b8fe70910a
/pythinkutils/aio/jwt/tornado/handler/AuthHandler.py
cf9795dfe29d2da870a4610c81273d1f7a526deb
[]
no_license
ThinkmanWang/ThinkEventTrack
53e3b205787c2fcefb20d24fef0f98465dcb925e
b65072a3236a183c1cc1ac835cd79f2f46fd10d7
refs/heads/master
2023-08-03T11:38:33.099014
2021-09-19T13:17:39
2021-09-19T13:17:39
406,753,292
0
0
null
null
null
null
UTF-8
Python
false
false
485
py
# -*- coding: utf-8 -*- from pythinkutils.aio.jwt.tornado.handler.BaseHandler import BaseHandler from pythinkutils.common.StringUtils import * class AuthHandler(BaseHandler): async def create_token(self, szAppId, szSecret): pass async def token_valid(self): pass async def get_uid_name(se...
23bb6267bc9316d2c29589fa9f9f4bbc4070480d
9084751a90f977fc722f90892e62c6596d0a26c6
/staticpy/util/helper.py
c426b40cab25aefe97cd88114e4f10b9981420d3
[ "BSD-3-Clause" ]
permissive
SnowWalkerJ/StaticPy
5d3b4723cd7b78283ab95ec3021bdcf0dfe67a6c
818b7f009af7a6040313791993f543779781dddf
refs/heads/master
2020-07-28T17:50:21.072169
2020-01-14T06:21:39
2020-01-14T06:21:39
209,484,058
19
0
null
null
null
null
UTF-8
Python
false
false
457
py
class Cls: """ This class is to refer to the "current" class when it hasn't been completely defined. Example ======= .. code-block:: python class A: def __init__(self, value): self.value: int = 1 def __add__(self, other: Cls) -> Cls: ...
0afdca03ef1e24ba433fba827473bc5ce22df989
8015f1c62a2cb4efd21aa8938336913bf8117868
/bamap/ba2475.pngMap.py
630606503aa002216a84acfe71c6c7c22e31f61c
[]
no_license
GamerNoTitle/Beepers-and-OLED
675b5e3c179df0f0e27b42bf594c43860d03b9af
afe1340e5394ae96bda5f9022a8a66824368091e
refs/heads/master
2020-04-20T00:09:47.122471
2019-04-29T04:59:35
2019-04-29T04:59:35
168,515,579
4
2
null
null
null
null
UTF-8
Python
false
false
8,468
py
ba2475.pngMap = [ '11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111', '11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111', '1111111111111111111111111111111111111...
f4c2668459c92a992bfea23f219d566210944f98
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_imported.py
878ac0a3c2bf379c3bee6feb4d0d7b3a98dbeee7
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
from xai.brain.wordbase.verbs._import import _IMPORT #calss header class _IMPORTED(_IMPORT, ): def __init__(self,): _IMPORT.__init__(self) self.name = "IMPORTED" self.specie = 'verbs' self.basic = "import" self.jsondata = {}
525b6b2e8ce96895bb616067710c9ec0bf91b842
a7528729c9b9de9736e550d4891ba6ae1289276a
/venv/lib/python3.8/site-packages/wget.py
c0fbb8342278909a8a64b233666d0ec9be9bdf3f
[ "MIT" ]
permissive
oguzhan2142/Youtube-Spotify-Music-Downloader
69b6c61030bd1a5b099f58efb9bc848ec801fb29
3dfa51aa5e5549f3f82b87444bd27aa684a93061
refs/heads/master
2021-01-14T22:46:16.680870
2020-11-06T11:51:41
2020-11-06T11:51:41
242,784,685
1
0
MIT
2020-11-06T11:51:42
2020-02-24T16:23:47
Python
UTF-8
Python
false
false
22,355
py
#!/usr/bin/env python """ Download utility as an easy way to get file from the net python -m wget <URL> python wget.py <URL> Downloads: http://pypi.python.org/pypi/wget/ Development: http://bitbucket.org/techtonik/python-wget/ wget.py is not option compatible with Unix wget utility, to make command line interfa...
c3e66a8e8814e8e5285b5c62076236e5e92a2c5c
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_barmaids.py
ed81aeb5d23f31b1164a1e5b2abbd9d585783d17
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
#calss header class _BARMAIDS(): def __init__(self,): self.name = "BARMAIDS" self.definitions = barmaid self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['barmaid']
41362c6f99bb8f283f580c623b5714413bdd9cef
b201a0a88022b4c567f9c74346d60ab17f46ef64
/supervised_learning/0x08-deep_cnns/0-inception_block.py
c25e5a099742a0fae8f1a181e73471d332ce9741
[]
no_license
Diegokernel/holbertonschool-machine_learning
929d9b8ac0fcdecbf28b76c09799f86c4b48d38e
a51fbcb76dae9281ff34ace0fb762ef899b4c380
refs/heads/master
2020-12-21T18:34:03.579632
2020-10-15T20:51:32
2020-10-15T20:51:32
236,523,731
0
1
null
null
null
null
UTF-8
Python
false
false
2,189
py
#!/usr/bin/env python3 """inception""" import tensorflow.keras as K def inception_block(A_prev, filters): """Builds an inception block as described in Going Deeper with Convolutions (2014). The concatenated output of the inception block """ convly_1 = K.layers.Conv2D(filters=filters[0], ...
7efd7bacbcbce83194fa14d887cdaec9746271a3
714e36b745a5b2b5fc4e9b267b3fa214a9fa3d9a
/scripts/matplotlib/32plot_multi_ax.py
2d24a31b7ad2f8682a42094864e96bfd9abaa085
[]
no_license
j3ffyang/ai
e89b4618c96e2085f37047c88d95f89d0a5409c9
5da753d2a1c9793564a32ac80911c1d2e35e8605
refs/heads/master
2022-12-10T21:12:48.432682
2020-08-12T07:56:11
2020-08-12T07:56:11
141,972,057
2
1
null
2022-11-22T02:55:29
2018-07-23T06:37:15
Python
UTF-8
Python
false
false
251
py
import matplotlib.pyplot as plt fig= plt.figure(figsize=(10, 5)) ax1= fig.add_subplot(121) # 1= axes lie horizontally, 2= 2 cols ax2= fig.add_subplot(122) ax1.bar([1,2,3], [3,4,5]) ax2.barh([0.5, 1, 2.5], [0, 1, 2]) # horizontal bar plt.show()
f1e2664fa2d0bd72aa21b35789a9c70c94b02c4b
29bd55d171733586f24f42151d44f4312b6a610e
/keras/keras09_R2_test_answer.py
290e451c6c941e5b4cc6a1795f1120eefece9faa
[]
no_license
votus777/AI_study
66ab1da2b8e760d0c52b0ed2b2f74158e14f435b
f4e38d95690c8ee84d87c02dc20a1ea59c495f04
refs/heads/master
2022-12-04T15:52:14.855624
2020-08-20T06:12:52
2020-08-20T06:12:52
262,975,960
1
0
null
null
null
null
UTF-8
Python
false
false
1,406
py
''' * 정답 * Overfitting이 나게 해라! epoch를 컴터지기 직전까지 돌려라 단 너무 많이 돌리면 - 값이 나온다. ''' # 1. 데이터 import numpy as np x_train = np.array([1,2,3,4,5,6,7,8,9,10]) y_train = np.array([1,2,3,4,5,6,7,8,9,10]) x_test = np.array([11,12,13,14,15]) y_test = np.array([11,12,13,14,15]) x_pred = np.array([16, 17, 18]) # 2....
637294feb6424a6229c798af7673ec45462eb36b
6f1034b17b49f373a41ecf3a5a8923fb4948992b
/pychron/entry/providers/geodeepdive.py
5b215e86d942b7a12705bd99e2a5055fe0130c7a
[ "Apache-2.0" ]
permissive
NMGRL/pychron
a6ec1854488e74eb5d3ff53eee8537ecf98a6e2f
8cfc8085393ace2aee6b98d36bfd6fba0bcb41c6
refs/heads/main
2023-08-30T07:00:34.121528
2023-06-12T17:43:25
2023-06-12T17:43:25
14,438,041
38
28
Apache-2.0
2023-08-09T22:47:17
2013-11-15T23:46:10
Python
UTF-8
Python
false
false
1,128
py
# =============================================================================== # Copyright 2019 ross # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICE...
5bbd918ca6dd43ecbc614c38cc3504aae453f7ff
3d4247362747e3763b72cd97ba39164387cfc07b
/tests/conftest.py
f2e6030f9a4269a460b002190ed04975970e3692
[ "MIT" ]
permissive
gitter-badger/bocadillo
d5f104ff47ef5b9ee61163b7a4f3eb21d3e7da8b
ec1122ec6d62e8c90060b3ab3eb8cf7fb7deb433
refs/heads/master
2020-04-12T23:34:39.904514
2018-12-22T12:17:13
2018-12-22T12:17:13
162,823,961
0
0
MIT
2018-12-22T15:56:06
2018-12-22T15:56:06
null
UTF-8
Python
false
false
1,147
py
from typing import NamedTuple import pytest from click.testing import CliRunner from bocadillo import API from .utils import RouteBuilder @pytest.fixture def api(): return API() @pytest.fixture def builder(api: API): return RouteBuilder(api) class TemplateWrapper(NamedTuple): name: str context: ...
81e4750f6e1eafec47a415e18716602934030d5a
ef6229d281edecbea3faad37830cb1d452d03e5b
/ucsmsdk/mometa/ape/ApeControllerChassis.py
92e616892a55b50b06f2dfb1df372998f463b50d
[ "Apache-2.0" ]
permissive
anoop1984/python_sdk
0809be78de32350acc40701d6207631322851010
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
refs/heads/master
2020-12-31T00:18:57.415950
2016-04-26T17:39:38
2016-04-26T17:39:38
57,148,449
0
0
null
null
null
null
UTF-8
Python
false
false
2,276
py
"""This module contains the general information for ApeControllerChassis ManagedObject.""" import sys, os from ...ucsmo import ManagedObject from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class ApeControllerChassisConsts(): pass class ApeControllerChassis(Manag...
8f304b7f865adf1b910f47d4f554e7f22e87c2c7
b6406cd1e6d951934e762ec2ac925cddf4716ae9
/verification_feed/app.py
f72a52e96e4339287768e573bf79e527800013db
[ "MIT" ]
permissive
agiamas/activity-stream
e5da92f00c26a8d7d99c4b2c5d4469e3500315cc
2b6a23de082950736e71380932b89b0a0e984b89
refs/heads/master
2020-03-28T17:14:02.023352
2018-09-05T17:32:51
2018-09-05T17:32:51
148,770,350
0
0
null
2018-09-14T09:57:53
2018-09-14T09:57:53
null
UTF-8
Python
false
false
3,912
py
import asyncio from datetime import ( datetime, timedelta, timezone, ) import logging import os import sys from aiohttp import web LOGGER_NAME = 'activity-stream-verification-feed' async def run_application(): app_logger = logging.getLogger(LOGGER_NAME) app_logger.debug('Examining environment....
b6e9b3b07c2c919a348d0916afd90fca07c31ad4
a74cabbe1b11fc8ef575ea86f2543cd95db78ec9
/python_program/q1457_Pseudo_Palindromic_Paths_in_a_Binary_Tree.py
3cb032d2740ae837af114fe21693659a88007536
[]
no_license
tszandy/leetcode
87e3ccf291b2879637d2d8238935a455b401a78a
f1f4361541dcffbb291285663c8820d7ffb37d2f
refs/heads/master
2023-04-06T15:34:04.847875
2023-03-26T12:22:42
2023-03-26T12:22:42
204,069,234
0
0
null
null
null
null
UTF-8
Python
false
false
1,485
py
from typing import List from collections import Counter,defaultdict,deque from math import * from functools import reduce,lru_cache,total_ordering import numpy as np from heapq import * from bisect import bisect_left,bisect_right from itertools import count,zip_longest import queue # Definition for a binary tree node....
ae65ef4938bb05f4be99939c1298eac1dfe34aed
76f1331d083d360fb3822312537e72d4ff9d50b5
/spider/strong_spider/spider/antispider/proxypool/proxy_crawler.py
47c2dca816b1f993382664123b02647d33042a3d
[]
no_license
ZouJoshua/ml_project
2fe0efee49aa1454b04cd83c61455232601720a6
b1d8eb050182cd782bc6f3bb3ac1429fe22ab7b7
refs/heads/master
2021-07-22T10:37:56.452484
2020-05-09T09:54:39
2020-05-09T09:54:39
158,562,016
0
0
null
null
null
null
UTF-8
Python
false
false
3,767
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @Author : Joshua @Time : 2018/9/5 15:51 @File : proxy_crawler.py @Desc : 代理下载调度 """ from gevent import monkey monkey.patch_all() import sys import time import gevent from gevent.pool import Pool from multiprocessing import Queue, Process, Value import sett...
5b7240a4bf1fca1148ffca29d3a7222e1e4a4373
b565143dbd490ad2721af7d8578483aa053383d0
/recipes/tsl-hopscotch-map/all/conanfile.py
bd7f158542108161ebd2d641b6d256fd96a8682a
[ "MIT" ]
permissive
czoido/conan-center-index
da7fbe837c88e3a65f7f2d6ed24ada62eb601c69
7952190873e49e23996fc7192a76e5917c49ec8a
refs/heads/master
2023-07-20T02:13:08.706521
2022-12-13T17:01:47
2022-12-13T17:01:47
228,573,093
0
0
MIT
2022-12-13T17:01:49
2019-12-17T08:49:29
Python
UTF-8
Python
false
false
1,853
py
from conans import ConanFile, tools import os required_conan_version = ">=1.43.0" class TslHopscotchMapConan(ConanFile): name = "tsl-hopscotch-map" license = "MIT" description = "C++ implementation of a fast hash map and hash set using hopscotch hashing" topics = ("structure", "hash map", "hash set")...
694f4c1a1be63ef2db87c8057b17478b668dafac
7da87c6d4c4d8443f1a9930b5edc277ce2a6c358
/009_triangles.py
642b3ede7b4aa5ace5b0e7d418acbdaca8585824
[]
no_license
kazamari/CodeAbbey
2e1f28a20d5f773fc08b5b20899d437d5ba420f2
4f5031585ddad8d8be71ee1f80872712b139051e
refs/heads/master
2021-04-15T14:49:10.839383
2018-03-23T12:18:17
2018-03-23T12:18:17
126,477,191
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
''' Input data: First line will contain number of triplets. Other lines will contain triplets themselves (each in separate line). Answer: You should output 1 or 0 for each triplet (1 if triangle could be built and 0 otherwise). Example: data: 2 3 4 5 1 2 4 answer: 1 0 ''' from sys import stdin def is_triangle(tri...
15a64d10e6323cff866a56ab5326f9f9abfe8c10
97aa1181a8305fab0cfc635954c92880460ba189
/torch/nn/intrinsic/modules/fused.py
47f26dbdc203a870d09cbb6c19b5a68b2b260f95
[ "BSD-2-Clause" ]
permissive
zhujiang73/pytorch_mingw
64973a4ef29cc10b96e5d3f8d294ad2a721ccacb
b0134a0acc937f875b7c4b5f3cef6529711ad336
refs/heads/master
2022-11-05T12:10:59.045925
2020-08-22T12:10:32
2020-08-22T12:10:32
123,688,924
8
4
NOASSERTION
2022-10-17T12:30:52
2018-03-03T12:15:16
C++
UTF-8
Python
false
false
5,967
py
from __future__ import absolute_import, division, print_function, unicode_literals import torch from torch.nn import Conv1d, Conv2d, Conv3d, ReLU, Linear, BatchNorm1d, BatchNorm2d, BatchNorm3d class ConvReLU1d(torch.nn.Sequential): r"""This is a sequential container which calls the Conv 1d and ReLU modules. Du...
7ca2f0338361b838e4f68540221bd77ee9e62925
3c349aa9cd58b50d9179bbc9d5f5c2403c491543
/ex33_polygons.py
035896acae30a0b26de698d7161f57a52b167776
[]
no_license
dryabokon/geometry
a2f85f8681d5e878a327235380668ebdb858e70c
9024e963f6a9f308101e6d477d89ce3323038117
refs/heads/master
2023-04-30T12:06:18.130607
2023-04-27T18:23:49
2023-04-27T18:23:49
156,690,211
4
1
null
null
null
null
UTF-8
Python
false
false
2,872
py
import cv2 import numpy import shapely.geometry as geom from scipy.spatial import ConvexHull # ---------------------------------------------------------------------------------------------------------------------- import tools_polygons_i import tools_draw_numpy # --------------------------------------------------------...
dda6f3a8ef102c9ba39babca4de4c8d9b3f4dd59
25f61fb72a60f95e10aff5809e67e95526c5fff7
/leetcode-30day-challenge/May-2019/W1_1_first_bad_version.py
a7d316cfa6cd858db77346c1f616205b8c0c0f1e
[]
no_license
pradeepsinngh/A-Problem-A-Day
19db6baccc68f216cd8206118dafb2cbec962671
f5d598bbb60786a99c00fb338145c564fa70cf84
refs/heads/master
2021-07-18T02:23:04.248782
2020-05-04T22:12:27
2020-05-04T22:12:27
150,642,029
5
2
null
null
null
null
UTF-8
Python
false
false
1,157
py
''' # Prob: First Bad Version # You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed based on the previous version, all the versions after a bad version are also bad. # Suppose you hav...
dcae80393763ae7d1d76bccf63b2810a8ededc78
dfc686228834750216b2cd6eea14d2a6d12422e4
/flask tutorials/DE_project_pharmacy_manage_Sys/run.py
2063f0ac0c73dd73b978aa198fa5e68cfbbaefc0
[]
no_license
Parth-Ps/python
8466e8856bf301908544eb60ae4a68338ccf4550
bb448c2a7996d17883214fe8eb11caa61e211400
refs/heads/master
2023-01-22T13:30:50.507021
2020-12-02T07:59:53
2020-12-02T07:59:53
317,788,331
0
0
null
null
null
null
UTF-8
Python
false
false
78
py
from de_pharma import app if __name__ == '__main__': app.run(debug=True)
852c57d9837e0941432c42026f1c82d0451da187
3cdb4faf34d8375d6aee08bcc523adadcb0c46e2
/web/env/lib/python3.6/site-packages/django/contrib/auth/migrations/0008_alter_user_username_max_length.py
7c9dae09500de428c3e2cea1c22b0419c38beedd
[ "MIT", "GPL-3.0-only" ]
permissive
rizwansoaib/face-attendence
bc185d4de627ce5adab1cda7da466cb7a5fddcbe
59300441b52d32f3ecb5095085ef9d448aef63af
refs/heads/master
2020-04-25T23:47:47.303642
2019-09-12T14:26:17
2019-09-12T14:26:17
173,157,284
45
12
MIT
2020-02-11T23:47:55
2019-02-28T17:33:14
Python
UTF-8
Python
false
false
752
py
from django.contrib.auth import validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('auth', '0007_alter_validators_add_error_messages'), ] operations = [ migrations.AlterField( model_name='user', name='usern...
3afca15c44b03004f1a13b16f2ce4c2a33cdf1b7
d1c53def818f9c7e1bd660e3303a754f297aff43
/code/ch7/4_13_b.py
ea53b0fad8491987b7b00a7fb0c995791a2c1aef
[]
no_license
khimacademy/c104
dcdcae13499e5b68905f09ea009e1a2b9f552e1c
83443858d5b85c23c107fa09cd672d17549776ee
refs/heads/master
2020-03-26T10:57:52.536935
2018-08-25T06:17:04
2018-08-25T06:17:04
144,822,712
0
0
null
null
null
null
UTF-8
Python
false
false
916
py
''' 4-13. 뷔페 뷔페 스타일의 음식점이 있는데 기본 음식은 다섯 가지밖에 없습니다. 단순한 음식 다섯 가지를 생각하고 튜플로 저장하세요. - for 루프를 써서 이 식당의 각 음식을 출력하세요. - 항목 중 하나를 수정하는 시도를 해보고 파이썬에서 변경을 거부하는지 확인하세요. - 식당에서 메뉴를 교체하려 합니다. 항목 중 두 개를 다른 음식으로 바꾸세요. 튜플을 덮어쓰는 코드 블록을 추가하고, for 루프를 써서 바뀐 메뉴의 각 항목을 출력하세요. Output: You can choose from the following menu items: - rockf...
69869ebc03984e9a181bfa01398bf27569c1070f
fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd
/tools/perf/core/trybot_command.py
42d3f8caba6a4ce90339060b8195a004ce92b4b3
[ "BSD-3-Clause", "LGPL-2.0-or-later", "Apache-2.0", "LGPL-2.0-only", "MIT", "LicenseRef-scancode-unknown", "LicenseRef-scancode-unknown-license-reference", "LGPL-2.1-only" ]
permissive
wzyy2/chromium-browser
2644b0daf58f8b3caee8a6c09a2b448b2dfe059c
eb905f00a0f7e141e8d6c89be8fb26192a88c4b7
refs/heads/master
2022-11-23T20:25:08.120045
2018-01-16T06:41:26
2018-01-16T06:41:26
117,618,467
3
2
BSD-3-Clause
2022-11-20T22:03:57
2018-01-16T02:09:10
null
UTF-8
Python
false
false
23,224
py
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import base64 import collections import gzip import io import json import logging import os import platform import subprocess import tempfile...
340cdd25e6ba61fafd87bd9b7fb641673e3470b8
ad0b7af5c3547be1081e77594d98fa9939576c69
/program/SGD.py
fecb93355de1de1e74268e73e1c5d474d0eba2db
[]
no_license
UESTC-Liuxin/ML
29ce4a576215520f87049bf1024f659cbd7a0e64
f88ddaa6eb97d1bb31a64ba3a8448fa9f2bead32
refs/heads/master
2022-07-29T22:24:12.997064
2020-05-24T12:48:32
2020-05-24T12:48:32
261,960,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,182
py
# import d2lzh as d2l import math # from mxnet import nd import numpy as np import matplotlib.pyplot as plt def train_2d(trainer): # 本函数将保存在d2lzh包中方便以后使用 x1, x2, s1, s2 = -5, -2, 0, 0 # s1和s2是自变量状态,本章后续几节会使用 results = [(x1, x2)] for i in range(20): x1, x2, s1, s2 = trainer(x1, x2, s1, s2) ...
8d2bf3bac2b602bbaeb7eb68a7b28172a7b6631f
d1d79d0c3889316b298852834b346d4246825e66
/blackbot/core/wss/ttp/art/art_T1055-1.py
ce733c638fed1dee79e232881503ae921bc201e5
[]
no_license
ammasajan/Atomic-Red-Team-Intelligence-C2
78d1ed2de49af71d4c3c74db484e63c7e093809f
5919804f0bdeb15ea724cd32a48f377bce208277
refs/heads/master
2023-07-17T12:48:15.249921
2021-08-21T20:10:30
2021-08-21T20:10:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,874
py
from blackbot.core.utils import get_path_in_package from blackbot.core.wss.atomic import Atomic from terminaltables import SingleTable import os import json class Atomic(Atomic): def __init__(self): self.name = 'Privesc/T1055-1' self.controller_type = '' self.external_id = 'T1055' s...
7062f8cb946b9bae96404c59fcbabca669313e2f
5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5
/blimgui/dist/OpenGL/raw/GL/VERSION/GL_2_0.py
6f786b758b73de315862fddade51267e6005a07b
[ "MIT" ]
permissive
juso40/bl2sdk_Mods
8422a37ca9c2c2bbf231a2399cbcb84379b7e848
29f79c41cfb49ea5b1dd1bec559795727e868558
refs/heads/master
2023-08-15T02:28:38.142874
2023-07-22T21:48:01
2023-07-22T21:48:01
188,486,371
42
110
MIT
2022-11-20T09:47:56
2019-05-24T20:55:10
Python
UTF-8
Python
false
false
14,306
py
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import ctypes _...
55405e3d6382798737ab5eaecff2a1af521ff606
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/MuonSpectrometer/MuonCablings/MuonCablingServers/python/__init__.py
46ac7323b0e0050a72f16f3a5a65d27ae41069ce
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
234
py
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration # File: MuonCablingServersConfig/__init__.py __version__ = '1.0.0' __author__ = '[email protected]' __all__ = [ 'MuonCablingServersConfig' ]
51df6f78e9135e31af7333b8fb60f766d0b4e202
389569a591284a2adcdc38046114e7b1038afd94
/polygon/polygon/main_test1.py
e577151b68aaee98d00b80a0414e0977b53d0787
[]
no_license
xytysingle/AnnotationTool
b797daf2fd472f602341b16f24fb1ed9b702aef1
a217d4376ceee739e0d8c43515c403133982e86e
refs/heads/master
2020-04-11T18:16:10.438919
2019-07-31T10:21:18
2019-07-31T10:21:18
161,992,153
0
0
null
null
null
null
UTF-8
Python
false
false
7,227
py
# import re # # s = '1中文中文:123456aa哈哈哈bbcc' # print(re.match(u"[\u4e00-\u9fa5]+", s) ) # # None. 只从字符串的开始匹配,没有匹配上返回None,否则返回matchobject # # pat = '中文' # print(re.search(pat, s).group()) # # matchobject. 对整个字符串进行匹配,,没有匹配上返回None,否则返回matchobject # # newpat = '这里是中文内容' # news = re.sub(pat, newpat, s) # 正则部分替换,将s中的所有符合p...
45baff1dc3b4200e7558995235b4bbe599e0dcc1
ae76cc0d5432573bd263ad2c0539ac341a406719
/SniffSpoof/scapy-examples/3.py
66368a3d8799893f2832b375a98274e366b1ed26
[]
no_license
Samyak2/SEEDLabs-Examples
aa250405c77fed5fda8f3a22dee3538efbf74dbf
028ba10f99f7dbe1a50ccbdcbe1a45f6340b0898
refs/heads/master
2021-01-26T03:44:56.272708
2020-02-26T15:29:08
2020-02-26T15:29:08
243,296,486
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
#!/usr/bin/python3 from scapy.all import * def print_pkt(pkt): pkt.show() pkt = sniff(filter='icmp', prn=print_pkt)
8389f0e2b24980237a4f8e788106d6c081298b48
06957bcc77891d2a6cca5661625f9571918e47ae
/python/400.Nth Digit.py
223b008c80d6116e012cac1ab8c0fc25cdfd95bf
[]
no_license
Leputa/Leetcode
c869af806dadff5c2c456a67ca61bf91fb54284f
1f0a2a3150cee119bbe28f0061f467403ceddbee
refs/heads/master
2021-06-03T11:47:56.992171
2020-07-01T09:22:23
2020-07-01T09:22:23
106,419,034
0
1
null
null
null
null
UTF-8
Python
false
false
119
py
class Solution(object): def findNthDigit(self, n): """ :type n: int :rtype: int """
3d0f4e92f82aeca0ee2486764345fa694bfe6656
8fd28b248511f42ad8732ca1e574aada33908376
/configs/recognition/slowonly/slowonly_r50_8x8x1_256e_kinetics400_rgb.py
02c50db20d8fa02519d4fe1ad7364d0967dfce15
[ "Apache-2.0" ]
permissive
vt-vl-lab/video-data-aug
28bd175535cab1444055502389c8f5d7d75e4bd2
01667cdbd1b952f2510af3422beeeb76e0d9e15a
refs/heads/main
2023-09-01T02:36:40.034893
2021-07-21T01:31:42
2021-07-21T01:31:42
352,920,339
29
6
Apache-2.0
2021-07-21T01:29:36
2021-03-30T08:06:54
Jupyter Notebook
UTF-8
Python
false
false
3,720
py
model = dict( type='Recognizer3D', backbone=dict( type='ResNet3dSlowOnly', depth=50, pretrained=None, lateral=False, conv1_kernel=(1, 7, 7), conv1_stride_t=1, pool1_stride_t=1, inflate=(0, 0, 1, 1), norm_eval=False), cls_head=dict( ...
d07b9ec027e3387ad373a6fcb4dc243fa3964750
3f763cf893b09a3be562858613c928703ff349e4
/client/verta/verta/_swagger/_public/modeldb/metadata/model/MetadataGetLabelsRequestResponse.py
18ffa3ba5b5186c19c9a7ab2962468b46c703524
[ "Apache-2.0" ]
permissive
VertaAI/modeldb
636e46fc025b01a514d599b10e228c8735503357
ec9ac7712500adb13fd815dfd476ce9f536c6921
refs/heads/main
2023-08-31T00:45:37.220628
2023-08-30T18:45:13
2023-08-30T18:45:13
71,305,435
844
142
Apache-2.0
2023-09-14T19:24:13
2016-10-19T01:07:26
Java
UTF-8
Python
false
false
566
py
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType class MetadataGetLabelsRequestResponse(BaseType): def __init__(self, labels=None): required = { "labels": False, } self.labels = labels for k, v in required.items(): if self[k] is None and v: ...
de67c007364dfb0b71dd50d487c78eea39e615d6
cfbbe1303ed4a2feaf7e0023e62aa910b7eee733
/doc/conf.py
a4b1bca880898a236fea88f11043c0d203a934b7
[ "BSD-3-Clause" ]
permissive
717524640/fatiando
8fa4fef8920770735d1a0d655259e87bc9382001
bf09661c40423bec85e47f15a14b786f25b7e873
refs/heads/master
2021-01-20T21:29:26.742259
2015-03-18T19:15:45
2015-03-18T19:15:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,807
py
# -*- coding: utf-8 -*- import sys import os import datetime import sphinx_bootstrap_theme # Sphinx needs to be able to import fatiando to use autodoc sys.path.append(os.path.pardir) # and the cookbook.py module to build the cookbook sys.path.append(os.path.split(os.path.abspath(__file__))[0]) from fatiando import __...
7d1953fb1da45033d63049d7b07cc49f0cbb273e
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/e93cdecef17fe3027247389bba5934607c63372e-<run>-fix.py
358973030efe43d7b9bb143ecbcf224ff7f0da99
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,366
py
def run(self, tmp=None, task_vars=None): if (self._play_context.connection != 'local'): return dict(failed=True, msg=('invalid connection specified, expected connection=local, got %s' % self._play_context.connection)) module = module_loader._load_module_source(self._task.action, module_loader.find_plugi...
408df962b97cfeeb22d6bd8877223f600cbcaf2e
3ee982b28adec7154777a9962dacae5c17fbebe0
/data3/hadoop-2/PageRank1/PageRank.py
86f0a067ab8c03d973c7f59125f0f7d6d44aa98d
[]
no_license
nycdatasci/aetna
406a5194b0ffff6b78c2ce1d34c2b090c3d82840
095c476210ebe4fef0a702a6a0a56981fe91c8ff
refs/heads/master
2020-04-24T05:40:48.464871
2019-03-15T15:06:42
2019-03-15T15:06:42
171,737,873
0
0
null
null
null
null
UTF-8
Python
false
false
875
py
#!/usr/bin/env python import os from sys import argv script, input_file, iters = argv iters = int(iters) streaming = '''hadoop jar $HADOOP_HOME/share/hadoop/tools/lib/hadoop-streaming-*.jar \ -files PageRankMap.py,PageRankReduce.py \ -input %s \ -output PageRankOutput \ -mapper PageRankMap.py \ -reducer PageRankReduc...
7c79dc9fc7a73da8dbaa46e617aa02e1400a73a7
ae8f61a8c0c4a569f00529c3f07c73dbfc884f71
/tiled/server/models.py
f46b8b543646104f2e61cef8595a3bcd5815ac21
[ "BSD-3-Clause" ]
permissive
untzag/tiled
1ba705303193312711d8ac75b977a26d6d9e7571
43a8ba82660ce3be077f2b6b060bdd2a23cf956b
refs/heads/main
2023-04-18T18:34:13.545139
2021-04-28T21:27:59
2021-04-28T21:27:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,385
py
import enum import pydantic import pydantic.dataclasses import pydantic.generics from typing import Any, Dict, Generic, List, Optional, TypeVar DataT = TypeVar("DataT") class Error(pydantic.BaseModel): code: int message: str class Response(pydantic.generics.GenericModel, Generic[DataT]): data: Optiona...
e99dd85e1f058f54beede6d60e8a291aa7cccccd
e38f7b5d46fd8a65c15e49488fc075e5c62943c9
/pychron/processing/vcs_data/vcs_manager.py
56048e37f366b487a7135bf49ed42f78aeb4bc64
[]
no_license
INGPAN/pychron
3e13f9d15667e62c347f5b40af366096ee41c051
8592f9fc722f037a61b0b783d587633e22f11f2f
refs/heads/master
2021-08-15T00:50:21.392117
2015-01-19T20:07:41
2015-01-19T20:07:41
111,054,121
0
0
null
null
null
null
UTF-8
Python
false
false
10,622
py
# #=============================================================================== # # Copyright 2013 Jake Ross # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with the License. # # You may obtain a copy of the License at # # # # http://www.ap...
51cbf596ebc778a532ab71e8d4bc5c3334d54fc2
6fe477a55bd565c78b55e5ec79ae704186e2c1fc
/chatgui.py
aceede2560445b3cbe0b67e7c8c2db77c079ae00
[]
no_license
jayz6/chatboty
4f7ef8ea0105394230b076261f0f5a4828abfcde
e419faac730c9644269b6093e35bc375e2f723b8
refs/heads/master
2023-06-15T14:45:36.542008
2021-07-11T12:27:29
2021-07-11T12:27:29
374,563,728
0
0
null
null
null
null
UTF-8
Python
false
false
3,646
py
import nltk from nltk.stem import WordNetLemmatizer lemmatizer = WordNetLemmatizer() import pickle import numpy as np from keras.models import load_model model = load_model('chatbot_model.h5') import json import random intents = json.loads(open('intents.json').read()) words = pickle.load(open('words.pkl','rb')) classe...
5a238a1582affefe50b7405410ac9c64ff303309
edcc26728370aa5bfabfbf5615933c34b108ed21
/sketches/readLines/readLines.pyde
eb9caaf92a7754dd7c22440ad54ab00eda3f75ef
[ "MIT" ]
permissive
kantel/processingpy
9e94f4116257e9cfcd59c1f71d7572559c703058
1eef60347d41563aef7a092ff35434bd47d931d2
refs/heads/master
2023-08-15T12:04:46.713124
2023-07-29T16:41:14
2023-07-29T16:41:14
73,006,897
5
3
null
null
null
null
UTF-8
Python
false
false
599
pyde
# Font-Test auf UTF-8; aus der Dokumentation: # Starting with Processing release 0134, # all files loaded and saved by the Processing API # use UTF-8 encoding. font = None def setup(): size(500, 500) # fontList = PFont.list() # printArray(fontList) font = createFont("Palatino-Roman", 32) textFont(...
808c4ec297fe02c4849e4ad2d8562f28cd8a4e8c
55a9b1b294d5a402c63848f9f7386e3bf93645da
/docker/src/clawpack-5.3.1/visclaw/src/python/visclaw/data.py
83a00cc67a98eecde9d7e4e3d64ae7a12ff2a277
[ "LicenseRef-scancode-public-domain", "CC-BY-4.0", "MIT" ]
permissive
geohackweek/visualization
b606cfade5d31f59cc38602df05930aed6e19b17
5d29fa5b69d69ee5c18ffaef2d902bd51f5807c8
refs/heads/gh-pages
2021-01-21T13:34:44.622039
2019-09-06T23:28:08
2019-09-06T23:28:08
68,648,198
11
13
NOASSERTION
2019-09-06T23:28:09
2016-09-19T21:27:33
Jupyter Notebook
UTF-8
Python
false
false
39,350
py
""" Plotting Data Module Contains the general class definition and the subclasses of the Clawpack data objects specific to plotting. """ import os import copy import numpy as np import re import logging import clawpack.clawutil.data as clawdata import gaugetools import time import clawpack.pyclaw.controller # ======...
a0bb2dd4a72b7f004884bdda564b3762452634f9
c2d681e9a4c7b1be07e9d581ad3ac00a5c783604
/classes.py
f9cca27f147dc0814ed33409926ddb4d9e4d635e
[]
no_license
DennisMufasa/PythoneCode
6291ddf2d08a8361fe82e81bc5747eb0123848f6
d9b74205de0c60fec2c088e1b6c2b0b7a91c1273
refs/heads/master
2021-04-05T23:45:50.256668
2019-04-07T16:17:20
2019-04-07T16:17:20
124,888,947
0
0
null
null
null
null
UTF-8
Python
false
false
668
py
class Mufasa: def __init__(self,name,age,profession,health): self.name=name self.age=age self.profession=profession self.health=health def career(self): if self.profession=='Developer': print(self.name,' is a developer.') else: print(self...
c936f1c418ea6c456cf0dd6c2b5cec291e39acf2
905f40a4ad8e17bb4871cf87b6ee184a76a77c2a
/BCM/management/commands/remove_templates.py
bd73841db58291945cf21bda90d4758966cf6519
[]
no_license
sai9912/mypyton
5e1f7ca278051d5f588af1d9accae5fd1780020b
338fd6396dbdce971bc542718fbb9608bdcfc2a7
refs/heads/master
2022-12-16T05:04:34.590818
2019-04-18T09:18:06
2019-04-18T09:18:06
176,324,427
0
0
null
2022-12-08T02:31:10
2019-03-18T16:16:56
Python
UTF-8
Python
false
false
1,975
py
from django.core.management import BaseCommand from member_organisations.models import MemberOrganisation, ProductTemplate, ProductAttribute, ProductPackaging IMPORT_DEBUG = True class Command(BaseCommand): """ python manage.py remove_templates """ def add_arguments(self, parser): parser.ad...
79ecffd0003b8f52b8e02699f96264b491844e07
d66818f4b951943553826a5f64413e90120e1fae
/hackerearth/Algorithms/Palindromes/solution.py
2287b35b7d8a759993933e56e1c6c55558875c88
[ "MIT" ]
permissive
HBinhCT/Q-project
0f80cd15c9945c43e2e17072416ddb6e4745e7fa
19923cbaa3c83c670527899ece5c3ad31bcebe65
refs/heads/master
2023-08-30T08:59:16.006567
2023-08-29T15:30:21
2023-08-29T15:30:21
247,630,603
8
1
MIT
2020-07-22T01:20:23
2020-03-16T06:48:02
Python
UTF-8
Python
false
false
418
py
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here s = input().strip() temp = s if len(set(s))...
a04ef908392a402d41fe90499306a7c8d326b53a
9307d42ca27c8f07115197851a4d2355a7492abc
/shared/views.py
ef3b27912011c7aa2b20c022011f458b65b3a524
[]
no_license
dkutelov/djangoevents
2a1c05d187a32557d4e5195cbe349efb05611ce4
9b6c4c9db366d7e282542cb853123dcca6191f8e
refs/heads/master
2023-01-29T15:37:47.664373
2020-12-13T13:17:58
2020-12-13T13:17:58
314,523,415
0
0
null
null
null
null
UTF-8
Python
false
false
593
py
from django.core.exceptions import PermissionDenied class GroupRequiredMixin: groups = None def dispatch(self, request, *args, **kwargs): user = request.user if not user.is_authenticated: raise PermissionDenied groups_set = set(self.groups or []) raw_groups = use...
e9cdc4ae77fecdbb0421ffa2a8da67c5833881db
f9a2e67dd2f40b37d8ff81bf6cdce47c38d2dee4
/.c9/metadata/environment/fb_post_learning/fb_post/utils/get_reaction_metrics.py
6e0d0e0bfcaaef57360b9dcf368f1f57eab9341b
[]
no_license
mohan277/backend_repo
4eae065cf0fffa29866a2b549028cb8df4c97643
25dbb4d0f1c174b6da95f4c73737e49db9978429
refs/heads/master
2022-11-13T00:08:37.600743
2020-07-09T04:36:44
2020-07-09T04:36:44
278,259,585
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
{"filter":false,"title":"get_reaction_metrics.py","tooltip":"/fb_post_learning/fb_post/utils/get_reaction_metrics.py","undoManager":{"mark":1,"position":1,"stack":[[{"start":{"row":6,"column":1},"end":{"row":6,"column":2},"action":"insert","lines":["u"],"id":12}],[{"start":{"row":6,"column":1},"end":{"row":6,"column":2...
e772c8886cb376be4c127bf28013a9fc58b59e69
2eff2b24d5b6f5dffc42c9cbde6102ec9317502f
/src/Bits.py
49ff824b30bb9cf591b4e5c06713a9fefbb9b567
[]
no_license
JakobKallestad/Python-Kattis
599a14e71a8d5c52aae779b8db3d35f0e4d01e88
51656964e79cc861e53f574785aacb213ef10b46
refs/heads/master
2022-10-24T23:12:45.599813
2021-12-08T12:31:54
2021-12-08T12:31:54
156,881,692
2
1
null
2022-10-02T12:36:57
2018-11-09T15:34:09
Python
UTF-8
Python
false
false
231
py
n_test_cases = int(input()) for _ in range(n_test_cases): line = input() max_bits = 0 for i in range(1, len(line)+1): num = bin(int(line[:i])) max_bits = max(max_bits, num.count('1')) print(max_bits)
90a2df92f2f7c3fbf6c29a1d42bb305edf250d74
a32c2ee4e6b2b1c6f8db02320c4bd50b17940af5
/modules/AlipayDepostIII/AlipayDepostIII.py
361f92c906504347a3178c30def95f38e7ca6b45
[]
no_license
wszg5/studyGit
93d670884d4cba7445c4df3a5def8085e5bf9ac0
bebfc90bc38689990c2ddf52e5a2f7a02649ea00
refs/heads/master
2020-04-05T02:55:17.367722
2018-11-07T06:01:03
2018-11-07T06:01:03
156,494,390
2
2
null
null
null
null
UTF-8
Python
false
false
26,351
py
# coding:utf-8 import logging from PIL.ImageShow import show from uiautomator import Device from Repo import * import os, datetime, string, random from zservice import ZDevice import sys from PIL import Image import colorsys from Inventory import * class AlipayDepostIII: def __init__(self): self.repo = Rep...
644400cc50052b08c364c1f2f950b52d631c448a
cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc
/Python Books/Athena/training/exercises/exercises/software_craftsmanship/fancy_math/fancy_math_solution.py
f6812946aeb6e236e271e1b69504b96c23643970
[]
no_license
theGreenJedi/Path
df24fca355590efef0c6cb5c52e7216c6b5d2464
b5ed2805dbb046480929e49e550bfd8af5bb4d6f
refs/heads/master
2023-07-27T14:23:37.694546
2021-07-16T01:38:55
2021-07-16T01:38:55
87,686,563
8
2
null
2023-07-11T22:49:03
2017-04-09T05:57:30
Jupyter Notebook
UTF-8
Python
false
false
1,523
py
""" Test Driven Development Example Write a function called `slope` that calculates the slope between two points. A point is specified by a two element sequence of (x,y) coordinates. >>> pt1 = [0.0, 0.0] >>> pt2 = [1.0, 2.0] >>> slope(pt1, pt2) 2.0 Use Test D...
25c5217e5d12a8af8f78be0b6b050e94d56d9462
7e53ebbbe711bf6554774b96abb94354c0eb1c3a
/src/arcresthelper/portalautomation.py
a225035bccd9115825ee70423f79bd4d19618ee4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
lpsnyd/ArcREST
0ac59f5d70a97fa603769b6bb7fa8f8f2529497a
b0366ced8cd20e59431373211aa484409c5359c0
refs/heads/master
2021-01-18T02:02:03.437015
2015-11-03T00:04:02
2015-11-03T00:04:02
45,482,870
0
0
null
2015-11-03T17:21:47
2015-11-03T17:21:47
null
UTF-8
Python
false
false
24,821
py
""" @author: ArcGIS for Utilities @contact: [email protected] @company: Esri @version: 1.2 @description: Used to create reports, maps and apps @requirements: Python 2.7.x, ArcGIS 10.2 @copyright: Esri, 2015 """ import gc import sys, os, datetime import json import csv from arcpy...
387e099c4bd771eae8b41a1b0168202680e46074
31747dd8c61085421d7bd4166f7bd4f9429cf914
/tests/test_visitors/test_tokenize/test_keywords/test_starts_with_dot.py
71c475e0052d8cbb4394f153df8ed6fd363f4019
[ "MIT" ]
permissive
edytagarbarz/wemake-python-styleguide
0e9ed4080a13a6727b8e80785e113b8407409352
74b86156d73c2a4fe9c755138f6953fec41fab3b
refs/heads/master
2021-03-03T19:21:54.807089
2020-03-07T23:35:15
2020-03-07T23:35:15
245,981,718
1
1
MIT
2020-03-09T08:31:55
2020-03-09T08:31:54
null
UTF-8
Python
false
false
1,483
py
import pytest from wemake_python_styleguide.violations.consistency import ( LineStartsWithDotViolation, ) from wemake_python_styleguide.visitors.tokenize.syntax import ( WrongKeywordTokenVisitor, ) # Correct: correct_dot_attr = """ some_line = some.attr( some.other, ) """ correct_elipsis = """ first[ ...
14b359d92f3e1da24aa1a431953c9de91141cae3
449f6888bff99d7e4fd86fa6ffa6b3316084e34e
/Solutions/248.py
febd366352a6f0c6d1e9f9292f83bc6b4f1906f7
[ "MIT" ]
permissive
All3yp/Daily-Coding-Problem-Solutions
e94679a5858b8a83ffe58d14b824fe80de21a694
199b9606474edb45bd14b20b511b691ada437586
refs/heads/master
2023-03-18T21:06:30.675503
2021-03-13T03:52:31
2021-03-13T03:52:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
""" Problem: Find the maximum of two numbers without using any if-else statements, branching, or direct comparisons. """ def get_max(num1: int, num2: int) -> int: return num1 ^ ((num1 ^ num2) & -(num1 < num2)) if __name__ == "__main__": print(get_max(1, 5)) print(get_max(4, 3)) print(get_max(-3, 6)...
7af9d20303a6cb0534c7e8fa34538d9028d47d3a
e40381a0aa3320616e5a5b82533c2c5cfe0fa2ce
/Dark_Scripts/plot_ValidationScores-LoopSeeds.py
40dc9786c4c96c2cd21b3edd21e4a9bd9de57c82
[ "MIT" ]
permissive
zmlabe/predictGMSTrate
7220b26f86839699635fe2f04e45348095183bc7
ac4238c7f1c33dc9d30382e4dbdc26a2f63352f5
refs/heads/main
2023-04-10T03:46:16.053123
2023-01-11T14:08:27
2023-01-11T14:08:27
396,942,451
4
3
MIT
2022-01-19T22:15:19
2021-08-16T19:30:55
Python
UTF-8
Python
false
false
5,612
py
""" Create plots to show validation scores for different seeds Author : Zachary M. Labe Date : 27 September 2021 Version : 2 (mostly for testing) """ ### Import packages import sys import matplotlib.pyplot as plt import matplotlib.colors as c import numpy as np ### Plotting defaults plt.rc('text',usete...
d87d2fd7a1df348093b2c383f2a073227f39de42
4e691a59c67915d5e2cc5a367137dfb02894f4cc
/main/migrations/0005_auto_20191118_1131.py
f8539f0214cc916cee8f0cc19c14e6206fb9725e
[]
no_license
antocaroca/clase-4
fd7395e25debfa807fde2c5823b968747c5d9222
b88b78b022102156ba01cd4804307fafd3c6966b
refs/heads/master
2022-04-30T14:48:03.361465
2019-11-23T13:22:33
2019-11-23T13:22:33
223,596,303
0
0
null
2022-04-22T22:53:32
2019-11-23T13:51:00
Python
UTF-8
Python
false
false
406
py
# Generated by Django 2.2.7 on 2019-11-18 14:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0004_activemanager'), ] operations = [ migrations.AlterField( model_name='productag', name='products', ...
ee912e4cffffee0781c744461002eba138ced516
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/sdssj9-10_233719.19+062504.0/sdB_sdssj9-10_233719.19+062504.0_lc.py
0f09a4e3130e72011e6fee900f36b7ea6ab8c394
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[354.329958,6.417778], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj9-10_233719.19+062504.0/sdB_sdssj9-10_233719.19+062504.0_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0...
1c6f272ebd1ff04f050865ce0bd785f5e92cc25c
af9268e1ead8cdb491868c14a2240d9e44fb3b56
/last-minute-env/lib/python2.7/site-packages/django/db/migrations/executor.py
a19af992f2af78ad965ede2ad59e5a039ef25855
[]
no_license
frosqh/Cousinade2017
d5154c24c93ca8089eeba26b53c594e92cb6bd82
c34d5707af02402bf2bb7405eddc91297da399ff
refs/heads/master
2021-01-20T07:57:34.586476
2017-10-22T18:42:45
2017-10-22T18:42:45
90,074,802
1
0
null
null
null
null
UTF-8
Python
false
false
17,835
py
from __future__ import unicode_literals from django.apps.registry import apps as global_apps from django.db import migrations, router from .exceptions import InvalidMigrationPlan from .loader import MigrationLoader from .recorder import MigrationRecorder from .state import ProjectState class MigrationExe...
a715fbf63f7649d806c5d3fabc06da2a4ecab666
cc44edfa1edbedea3ad044805be7548e0ccba70d
/0x01-python-if_else_loops_functions/4-print_hexa.py
6306e03ac91e63adc4b344e653568933bf78f701
[]
no_license
set808/holbertonschool-higher_level_programming
421f0da1f91cd56eb2daa4e07a51b4a505d53edc
eb276a4e68e5cc43498459eec78fc05f72e2cd48
refs/heads/master
2020-03-09T13:07:43.824914
2018-09-08T00:26:46
2018-09-08T00:26:46
128,802,718
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
#!/usr/bin/python3 for i in range(0, 99): print('{:d} = {:#02x}'.format(i, i))
880d0dabd65d48c9ab7140cf7942a975a4dc87e3
f5e7882e9fa8dca9b49d74819918063963eaf515
/FILES/prob2.py
09b48eba87e8bfcd175f537d161d9ee3a423e5a3
[]
no_license
marri88/python-base
66ede5e3da3bce92e2661fabf8a2119644dd5ab3
00002724412f4081ee6d1b91c22cb1ccb5ed92fe
refs/heads/master
2023-06-09T16:13:08.921614
2021-07-02T09:16:38
2021-07-02T09:16:38
382,293,700
0
0
null
null
null
null
UTF-8
Python
false
false
592
py
# -week_2:Работа С файлами- ##################################################################################### # first picture: prob №2 # Создайте файл users.txt. # Напишите программу которая спрашивает у пользователя его Логин и Пароль и записывает в файл users.txt. r = open('/home/aimira/python/python3/week2...
86550fb12d249da7e19769464f8dd19eee7951c5
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_sharpening.py
511f6993ea47ed80907f9f44fb3fcbe24158ade6
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
#calss header class _SHARPENING(): def __init__(self,): self.name = "SHARPENING" self.definitions = sharpen self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['sharpen']
73418a4efc33f77e2110c61b4fae9a8d028f2537
14a26103e97b1669ca6f1f44996c4ad65b9f0179
/bim1/week4/16.6.5.py
714f4bcd5a24a3f05a9b49443eec7b91589b1e9e
[]
no_license
igorbragaia/CES-22
6ea0fc3da7ba2274080954071f0070ba78a7f1f4
7c09bdec315421e57f2cd44d50f919f3965144ac
refs/heads/master
2021-09-17T14:40:31.426602
2018-07-02T18:54:40
2018-07-02T18:54:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,916
py
import sys def test(did_pass): """ Prints test result :param did_pass: test result :return: """ linenum = sys._getframe(1).f_lineno # Get the caller's line number. if did_pass: msg = "Test at line {0} ok.".format(linenum) else: msg = ("Test at line {0} FAILED.".format(...
3d4a9d8593553e43461522b4f38e4009058c4b7f
46355bd117d38191f2ebd23e9250ab121bf839fc
/Airbnb/roundPrice.py
dfa2edbe6aa3ad782e2593c4a64dd5308c29feb7
[]
no_license
Jason003/Interview_Code_Python
f1e1a59e87cfada78a931be6a27a51898442aca4
75dbc8d3906bd00c8129c8ed0b584794c8b41d6b
refs/heads/master
2020-08-12T20:11:56.454848
2019-11-12T01:36:52
2019-11-12T01:36:52
214,835,963
4
1
null
null
null
null
UTF-8
Python
false
false
1,203
py
import math def roundPrice(A): # attention: in python3, round(1.5) = 1 !!! def round(x): fac = x - math.floor(x) return math.ceil(x) if fac >= 0.5 else math.floor(x) if not A: return A roundSum = sum(map(round, A)) sumRound = round(sum(A)) print(roundSum) print(sumRo...
e38b81ecb5dcb797e6cabf948bf96fed37fc0bb9
22bf086e3e7d43b72f0d05aaa3359b766a688a79
/scripts/extract_clues_info.py
5b22dcb47717b771f546fc7cd1ccda68132dab69
[]
no_license
kaspermunch/humanXsweeps
aa7a4e6a175be276713f17f79d7179a5dd644ff5
3a2c4aa496aaffa837eb15dd3d382f7712266f38
refs/heads/master
2023-04-07T13:36:11.619973
2023-03-18T08:05:18
2023-03-18T08:05:18
161,376,285
1
0
null
2023-01-11T14:12:39
2018-12-11T18:25:53
Jupyter Notebook
UTF-8
Python
false
false
886
py
import sys import re import os import pandas as pd import h5py _, output_file_name, steps_dir, *clues_file_names = sys.argv # pylint: disable=unbalanced-tuple-unpacking # open output file: output_file = open(output_file_name, 'w') # loop over base names of for clues_file_name in clues_file_names: # 98000000_995...
71ba6aabb8bb089ad893dcdffa33d9eec54dcd76
65dc8b306c1a22dc3a8ebf53d399135c5b894b69
/guestbook/forms.py
7936a074493597f70ce0116429f3fece381a3b2e
[]
no_license
tokibito/python-hackathon2-guestbook
49e7f144d2c4f9920abea639816645d0edbca292
dfa152cf6cb7ebea1779c63846e36f8dbb90d8c1
refs/heads/master
2020-07-25T08:20:37.459468
2009-11-13T04:53:40
2009-11-13T04:53:40
208,228,426
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
# coding: utf8 from django import forms from guestbook.models import Greeting class GreetingForm(forms.ModelForm): """ ゲストブックの書き込みフォーム モデルを元に生成する """ class Meta: model = Greeting # 書き込み日時は除く exclude = ('create_at',)
b006bdd2968ab6b20d0f4cebef10dca4504e7561
b8ea631aae5d132c7b0236684d5f7c12d3c222be
/ABC/ABC_114C_zentan.py
6204c22fc19b6d2aae27bac78f48b889f8173b21
[]
no_license
Ryushi-tech/card3
68c429313142e58d4722a1cd5a4acc4ab39ca41f
883636b2f518e38343a12816c5c641b60a87c098
refs/heads/master
2021-07-05T22:46:33.089945
2020-12-12T15:31:00
2020-12-12T15:31:00
209,176,836
0
0
null
null
null
null
UTF-8
Python
false
false
313
py
import itertools as it n = int(input()) l = len(str(n)) res = [] for i in range(3, l + 1): for gen in it.product("357", repeat=i): gen_s = "".join(gen) if int(gen_s) <= n: res.append(gen_s) cnt = 0 for r in res: if all(r.count(c) for c in "357"): cnt += 1 print(cnt)
93d9228177ee76f0b5d92291e7212790f6c0557e
6a0e51fc8d2ea8819711acb7948f4c21c277c771
/the_list.py
bf381ad611c0d6716c2dc2a1241e1b868e580752
[]
no_license
sunzhiyan/Python
eb0bd60edbc85e670ad02af9009df53f5936bff3
3881d124b71f81b7e0bd1e70bcd336238fbcfa3f
refs/heads/master
2022-10-08T21:38:22.799102
2021-03-05T02:32:57
2021-03-05T02:32:57
244,139,633
1
0
null
2022-09-23T22:42:18
2020-03-01T11:50:40
Python
UTF-8
Python
false
false
321
py
# -*- encoding: utf-8 -*- ''' @File : 列表.py @Time : 2020/03/03 22:09:13 @Author : xdbcb8 @Version : 1.0 @Contact : [email protected] @WebSite : www.xdbcb8.com ''' # here put the import lib list=[56,23,89,99,56,45,87,56,65,100] print(max(list)) print(min(list)) print(sum(list)) print(sum(list)/len(list))
38b3cfd6f2bac9bca72f1b1a81f348801111e789
00cb405170a6a9572bef0ec8f373813eada08c03
/Game Structure/geometry/version5/mypainter.py
ce5e1b632d327bbb6cd9614946dd573bfe5136dd
[]
no_license
MarcPartensky/Python-Games
c0ad2857be5832d6029642bb0a96bc8e403a12e3
ebfcaaf4a028eddb36bbc99184eb3f7a86eb24ed
refs/heads/master
2022-09-03T00:04:16.402288
2022-08-12T17:10:22
2022-08-12T17:10:22
166,606,022
2
1
null
2021-03-07T16:20:15
2019-01-19T23:56:04
Python
UTF-8
Python
false
false
7,413
py
from mycase import Case from myabstract import Point, Form import mycolors import numpy as np import shelve from pygame.locals import * class Painter: def __init__(self, *args, **kwargs): """Create a painter.""" self.paints = [Board(), Paint(*args, **kwargs)] self.paint_brush = PaintBrus...
270742e36424951d8024a33594d64497bf5758e2
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/331/usersdata/293/94058/submittedfiles/funcoes1.py
cc9f91b72aa5433b90fafe6a6f90c9742a3cf68e
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
# -*- coding: utf-8 -*- def crescente(n,lista_crescente): #escreva o código da função crescente aqui cont_crescente=0 for i in range(0,n-1,1): if lista_crescente[i]<lista_crescente[i+1] cont_crescente= cont_crescente + 1 if cont_crescente==len(lista_crescente)-1 return ("S")...
1fa310f9ae1a6793e62ea6ef82a206a3635c31df
d74daa1dfe1f4eac96ceb1d006c59ba19b55d37a
/CS401/GG-Project/GG-Project/productProcessers/ProductReader.py
e6a04f2b514a3650ae352f1cd5ba9b37d87b4018
[]
no_license
muratcancicek/Assignment-Projects
7aac0cced54f392e26b39f6bc46af813faddd628
41c7df2b60f20eb840d409f3fedb4ec6feeafdcc
refs/heads/master
2021-06-06T17:27:11.616251
2017-09-06T12:17:40
2017-09-06T12:17:40
58,016,251
0
1
null
null
null
null
UTF-8
Python
false
false
5,422
py
from MainSrc.PythonVersionHandler import * from .BsonIO import * from paths import * def getCategories(filename): categoriesData = readBson("categories.bson") categories = categoriesData['data']['categories'] print_(len(categories)) deepestCategories = [c for c in categories if c['deepest'] == 'Y'] ...
fa033282eb9b9f69fe0f237ea0dc575bb19602c9
78d35bb7876a3460d4398e1cb3554b06e36c720a
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_09_01/operations/_vpn_sites_configuration_operations.py
681ea2f9326309464669ed83ca33a7a38ae17a3a
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
catchsrinivas/azure-sdk-for-python
e35f59b60318a31b3c940a7a3a07b61b28118aa5
596227a7738a5342274486e30489239d539b11d1
refs/heads/main
2023-08-27T09:08:07.986249
2021-11-11T11:13:35
2021-11-11T11:13:35
427,045,896
0
0
MIT
2021-11-11T15:14:31
2021-11-11T15:14:31
null
UTF-8
Python
false
false
8,375
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
ac36af1e489a5c9b31c7590762b0a39c7afac82e
7243df7ee2090f76a3d82b898f8a0f2e82198071
/csv_to_kml.py
e98a31ab4bea4bcfb7c771d945aefad94930d2ad
[]
no_license
TimSC/air-quality-analysis-2018
6e3b8dce1a4ab76b36a362229572e20f7014db09
64a163a1b406f708a66a6f510647d9bfd49b7e5c
refs/heads/master
2020-03-18T13:32:16.576221
2019-06-13T13:07:49
2019-06-13T13:07:49
134,790,376
0
0
null
null
null
null
UTF-8
Python
false
false
4,320
py
#!/usr/bin/env python '''Example of generating KML from data in a CSV file References: ''' from __future__ import print_function import csv import urllib2 from datetime import datetime from lxml import etree from pykml.factory import KML_ElementMaker as KML def makeExtendedDataElements(datadict): '''Converts a dic...
14949c91a4d0ab5a8e7d226a1ccfb3b8e203319e
b74d9c0655593d488f1bbf3e6d97a6d587fae9e8
/printing/wsgi.py
d8b6927a26ae5b4d5ae3ab65cd51e6dc08659019
[]
no_license
dbca-wa/printing
d3353dce75412cfb1a1cf4a1f3f88373b4d36194
e0c5359fecf84a5512c4b9ede71f56acd9058bf9
refs/heads/master
2022-12-12T23:02:43.993583
2016-04-28T07:48:28
2016-04-28T07:48:28
57,281,158
0
0
null
2020-09-09T09:07:44
2016-04-28T07:41:33
JavaScript
UTF-8
Python
false
false
393
py
""" WSGI config for printing project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETT...
4a8e75faab481c89f697e468241dc944b98ee689
e5654e71ad4f043bb28105c3b6f3cd833e1c52dc
/openai/venv/lib/python3.10/site-packages/sqlalchemy/dialects/mysql/base.py
9948602d3dbf1e8ba0c16adcb1a9cec0447c32a8
[]
no_license
henrymendez/garage
0b795f020a68fe2d349b556fb8567f6b96488ed5
b7aaa920a52613e3f1f04fa5cd7568ad37302d11
refs/heads/master
2023-07-19T20:16:02.792007
2023-07-07T16:58:15
2023-07-07T16:58:15
67,760,348
0
0
null
null
null
null
UTF-8
Python
false
false
115,423
py
# mysql/base.py # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php r""" .. dialect:: mysql :name: MySQL / MariaDB :full_support: 5.6, 5.7, 8.0 ...
829d8ceb31ec21a8324a4ee14faa7bf5ad47e755
20f951bd927e4e5cde8ef7781813fcf0d51cc3ea
/fossir/modules/events/papers/controllers/base.py
ae72c3fe163c825494ededfcc8484349b10fe67e
[]
no_license
HodardCodeclub/SoftwareDevelopment
60a0fbab045cb1802925d4dd5012d5b030c272e0
6300f2fae830c0c2c73fe0afd9c684383bce63e5
refs/heads/master
2021-01-20T00:30:02.800383
2018-04-27T09:28:25
2018-04-27T09:28:25
101,277,325
0
2
null
null
null
null
UTF-8
Python
false
false
2,637
py
from __future__ import unicode_literals from flask import request, session from werkzeug.exceptions import Forbidden, NotFound from fossir.modules.events.contributions.models.contributions import Contribution from fossir.modules.events.controllers.base import RHDisplayEventBase from fossir.modules.events.management...
d89c6d607ae28029364a25d266750f8ce316d329
e718d3ccc181a72e7bfe0faad42285f2829a96e5
/GDP_projectOriginal/service/urls.py
a21fadcfe3bedc40bf12129e1924b069fbbf87aa
[]
no_license
Jerrykim91/GDP_project
8a17e75276ee92c93ad621163bffa57a528c258f
cd8e626cc3f01c1051f13115ad3d6217dd99ddc6
refs/heads/master
2022-05-02T01:08:33.955292
2021-03-25T14:43:21
2021-03-25T14:43:21
234,493,053
0
0
null
2022-04-22T23:27:15
2020-01-17T07:16:07
Jupyter Notebook
UTF-8
Python
false
false
651
py
# service\urls.py # import from django.urls import path from . import views urlpatterns = [ # GDP_graph path('search_main', views.search_main, name="search_main"), path('search_detail', views.search_detail, name="search_detail"), path('search_show', views.search_show, name="search_show"), p...
84f719db77d5ee7f722e08c95dd6bff85761425f
25e989e986522cf91365a6cc51e3c68b3d29351b
/databases/migrations/2018_06_26_165322_add_is_active_to_users_table.py
e16a431117d57b3dbff7c92a8a01d0b377b0c016
[ "MIT" ]
permissive
josephmancuso/gbaleague-masonite2
ff7a3865927705649deea07f68d89829b2132d31
b3dd5ec3f20c07eaabcc3129b0c50379a946a82b
refs/heads/master
2022-05-06T10:47:21.809432
2019-03-31T22:01:04
2019-03-31T22:01:04
136,680,885
0
1
MIT
2022-03-21T22:16:43
2018-06-09T01:33:01
Python
UTF-8
Python
false
false
398
py
from orator.migrations import Migration class AddIsActiveToUsersTable(Migration): def up(self): """ Run the migrations. """ with self.schema.table('users') as table: table.integer('is_active').nullable() def down(self): """ Revert the migrations. ...
240b036586fb7f56681f4b847e5c7f238329931a
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/plantagenet.py
2477aa615648c2fa4fd3b2f52656b0e68052b2f4
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
177
py
ii = [('TennAP.py', 1), ('ClarGE2.py', 1), ('ClarGE.py', 1), ('LandWPA2.py', 1), ('WadeJEB.py', 2), ('SoutRD2.py', 1), ('MereHHB2.py', 2), ('SadlMLP2.py', 1), ('BeckWRE.py', 1)]
6bfa7de91c5b3465d54ffa63e86ba56adc35cf78
ba0731b2dbc4c1529eaaa79811ec15754c19b4cd
/references/domain.py
9d612aaa40fa48d9746f598c63c465aedf4bba37
[ "MIT" ]
permissive
arXiv/arxiv-references
35f87084cf91947c572faf1a86f119b308fada66
a755aeaa864ff807ff16ae2c3960f9fee54d8dd8
refs/heads/master
2022-12-21T02:34:57.166298
2018-05-04T20:30:48
2018-05-04T20:30:48
94,906,433
8
6
MIT
2022-12-08T02:06:20
2017-06-20T15:26:25
Python
UTF-8
Python
false
false
3,178
py
"""Core data structures in the references application.""" from typing import List, Optional from datetime import datetime from base64 import b64encode from dataclasses import dataclass, field, asdict from unidecode import unidecode @dataclass class Author: """A parsed author name in a bibliographic reference."""...
7b66b925a73790e4aaf1a9068d9c96e34ae8985d
2d048e630f8d9c546860820ef27700c1020b44cd
/th.py
5ae01e2c7426d7eb7c21903856965982279d5aca
[]
no_license
0h-n0/tch-mnist-simple-benchmak
60ce3b6500f161f9a768e965d82eadf50a1e051f
c2f07661b64c83de82ad760b4a7b20b601a7129b
refs/heads/master
2020-12-31T22:36:26.946751
2020-02-08T02:40:40
2020-02-08T02:40:40
239,057,622
0
0
null
null
null
null
UTF-8
Python
false
false
5,243
py
from __future__ import print_function import time import argparse import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms from torch.optim.lr_scheduler import StepLR class Net(nn.Module): def __init__(self): super(Net, sel...
ed34089d75838c5200f1175d0b9aece8648523e1
36b75aac4236e928e22552e8812abd45d32aecf1
/modules/dbnd-airflow/src/dbnd_airflow_contrib/utils/system_utils.py
88d9452cd26e2ec091d604cdb48fdd92751efb1d
[ "Apache-2.0" ]
permissive
reloadbrain/dbnd
7793aa1864f678005de626068b0ac9361d637d65
ec0076f9a142b20e2f7afd886ed1a18683c553ec
refs/heads/master
2023-09-01T08:04:09.486666
2021-10-14T16:43:00
2021-10-14T16:43:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,451
py
import logging import re import subprocess logger = logging.getLogger(__name__) def print_stack_trace(stack_frame): try: import traceback traceback.print_stack(stack_frame) except Exception as e: logger.info("Could not print stack trace! Exception: %s", e) def print_cpu_memory_usa...
e5d148377f281451a04b29aa1ba61f66b2a2f021
150d9e4cee92be00251625b7f9ff231cc8306e9f
/LongestCommonSubsequenceSP.py
bcfcc3820f481d704dc5053bddf126c12d6f8f44
[]
no_license
JerinPaulS/Python-Programs
0d3724ce277794be597104d9e8f8becb67282cb0
d0778178d89d39a93ddb9b95ca18706554eb7655
refs/heads/master
2022-05-12T02:18:12.599648
2022-04-20T18:02:15
2022-04-20T18:02:15
216,547,245
0
0
null
null
null
null
UTF-8
Python
false
false
1,680
py
''' 1143. Longest Common Subsequence Given two strings text1 and text2, return the length of their longest common subsequence. If there is no common subsequence, return 0. A subsequence of a string is a new string generated from the original string with some characters (can be none) deleted without changing the relati...
d8604f174194d617ea021a36342e8bb56ed872f3
555cf712793ecf24ee32b3b8193b88f9380b6681
/cybox-2.0.0b6/cybox/objects/x509_certificate_object.py
e7f038c63312e96356b96c60d55f2faf550603ce
[]
no_license
bopopescu/crits_dependencies
b198d45d75d0ce2f60867d26bd4fda232fa5b78a
112e380b203069fe97e13a20bce1e926ffe18ba5
refs/heads/master
2022-11-21T15:01:42.761440
2014-06-02T22:18:38
2014-06-02T22:18:38
282,258,349
0
0
null
2020-07-24T15:43:44
2020-07-24T15:43:43
null
UTF-8
Python
false
false
26,783
py
# Copyright (c) 2013, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import cybox import cybox.utils as utils import cybox.bindings.x509_certificate_object as x509_certificate_binding from cybox.common import ObjectProperties, String, Integer, DateTime, NonNegativeInteger class X50...
d971cd5adcf944f961e3a880ed247c1f0f3464c2
0ef98f8a60e4d30001c918dae6fa7ac6283abca9
/61.py
8fb34a02053700a90124fd61efbb6ce24271c8d1
[]
no_license
samrithasudhagar/pro
a0169fc89c8c6d6189ac984ec3fab26e23269264
c90cb60fefb74174f12db5ee80812c2374e4e3ce
refs/heads/master
2020-04-22T11:00:47.588732
2019-06-20T09:43:28
2019-06-20T09:43:28
170,324,794
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
a=input() c=input() s="" l=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] for i in range(len(a)): k=l.index(a[i]) p=l.index(c[i]) s=s+l[(k+p)%26+1] print(s)
869346c339d17559765444ba752e5b7d83edd7bd
1d0da695f42cf0c20311c2c583f23e8f68e5acbc
/tensor2tensor/mesh_tensorflow/simd_mesh_impl.py
3033e53d3cd9a466f9c396bd67dec0022c95fca4
[ "Apache-2.0" ]
permissive
fbpatel/tensor2tensor
be5ed143bdad30ffa41274cf64268dcc45ad6b99
271da5289a10249f41fcebf3b7fbb50bbbd9041e
refs/heads/master
2020-03-25T20:41:40.663350
2018-08-09T04:57:35
2018-08-09T04:58:07
144,141,419
1
0
null
2018-08-09T11:08:08
2018-08-09T11:08:08
null
UTF-8
Python
false
false
11,524
py
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
db970fba12cef3fd3dc931f70a998a1bb9b80ed5
5b52feaf975c810693bbd9c67deb061824cdca32
/Darlington/phase-2/FILE 1/O/day 84 solution/qtn3.py
13efc55791274ad1db6d3c1951ab660afa1f5ddb
[ "MIT" ]
permissive
darlcruz/python-challenge-solutions
1dd21796b86f8fdcfa9a1a15faa26ab3e8e0f7b1
3e03a420d01177b71750d4d1b84cb3cbbf8c6900
refs/heads/master
2022-12-20T23:50:08.641120
2020-09-28T21:34:14
2020-09-28T21:34:14
263,591,779
0
0
MIT
2020-05-13T10:00:21
2020-05-13T10:00:20
null
UTF-8
Python
false
false
372
py
# program to create a file where all letters of English alphabet are listed by # specified number of letters on each line. import string def letters_file_line(n): with open("words1.txt", "w") as f: alphabet = string.ascii_uppercase letters = [alphabet[i:i + n] + "\n" for i in range(0, len(alphabet), n...
69729b36949e741a9c7edf3832821394f61312c9
44f216cc3bb4771c8186349013ff0ed1abc98ea6
/torch/distributed/_shard/sharded_tensor/_ops/math_ops.py
6d3ed59da38cc711b1b67bbf8fd16e507d64083c
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
eiphy/pytorch
a8fc21a3c0552b392ed8c3a1d69f7ed8660c56ac
104f0bf09ec7609d1c5626a7d7953ade4f8c9007
refs/heads/master
2022-05-23T02:10:13.158924
2022-05-07T21:26:00
2022-05-07T21:26:00
244,914,898
2
0
NOASSERTION
2020-03-04T14:00:53
2020-03-04T14:00:53
null
UTF-8
Python
false
false
3,242
py
import torch from torch import Tensor from torch.distributed._shard.sharded_tensor import ( ShardedTensor, sharded_op_impl ) from torch.distributed._shard.replicated_tensor import ReplicatedTensor from torch.distributed._shard._utils import narrow_tensor def binary_math_op_impl(op, types, args=(), kwargs=None...
c00894ef0c8a747b7a9d05f73efe554aa75785e6
5111b0c881c8d86705f2b237e14024396e34091a
/task_check_list/models/task_check_list.py
88812aad7bc1b21e05fae5f1a896ebb05a2373dd
[]
no_license
odoomates/odooapps
a22fa15346694563733008c42549ebc0da7fc9f6
68061b6fa79818d17727ef620e28fff44b48df72
refs/heads/16.0
2023-08-11T15:25:28.508718
2023-08-10T17:58:45
2023-08-10T17:58:45
173,598,986
182
306
null
2023-08-10T17:58:46
2019-03-03T16:20:23
Python
UTF-8
Python
false
false
1,019
py
# -*- coding: utf-8 -*- from odoo import models, fields, api class ProjectTask(models.Model): _inherit = 'project.task' @api.depends('task_checklist') def checklist_progress(self): total_len = self.env['task.checklist'].search_count([]) for rec in self: if total_len != 0: ...
1c68bb6b8863c584a3f0728adcaa19a31159f831
754d26af3d5fa0900d1dbfc934f3b9f0970e2a47
/unchained/community/announcement/views.py
da9977b7d41c7f38d2fd2e479fe5ec88fbdaba8e
[]
no_license
live-wire/community
8a7bfdb4e2d6562d12be334ba0e655ffe041bb5f
7b2efa7b78465134138ee08fc557f4fedf678394
refs/heads/master
2021-07-11T10:26:31.535653
2020-03-20T02:37:30
2020-03-20T02:37:30
140,683,308
3
2
null
2020-06-06T12:03:38
2018-07-12T08:17:50
JavaScript
UTF-8
Python
false
false
1,121
py
from django.shortcuts import render from rest_framework import generics from rest_framework import mixins from django.contrib.auth.models import User from rest_framework import permissions from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.reverse import r...
639352824e62fb004ba1510bda6aad1babb20041
e6dab5aa1754ff13755a1f74a28a201681ab7e1c
/.parts/lib/django-1.4/tests/regressiontests/custom_columns_regress/__init__.py
b7533f1e4ee752db1b64d6e4502cd93c5563b205
[]
no_license
ronkagan/Euler_1
67679203a9510147320f7c6513eefd391630703e
022633cc298475c4f3fd0c6e2bde4f4728713995
refs/heads/master
2021-01-06T20:45:52.901025
2014-09-06T22:34:16
2014-09-06T22:34:16
23,744,842
0
1
null
null
null
null
UTF-8
Python
false
false
122
py
/home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/tests/regressiontests/custom_columns_regress/__init__.py
50a4aa9cfcccc1e4f762802aeab4c1d0c615195b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p04019/s609202447.py
9cd2c625f2777b825900b773714a1f4e6fb7849b
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
S=input() n=0 s=0 w=0 e=0 for i in range(len(S)): if S[i]=="N": n+=1 if S[i]=="S": s+=1 if S[i]=="W": w+=1 if S[i]=="E": e+=1 if n!=0 and s!=0 and w!=0 and e!=0 or n==0 and s==0 and w!=0 and e!=0 or n!=0 and s!=0 and w==0 and e==0: print("Yes") else: print("No")...
96df2462240b880242a521c7a6728ce366df98c0
553b34a101c54090e68f540d96369ac7d5774d95
/python/python_koans/python2/koans/about_list_assignments.py
aa05dc5b8a69e50728be9798b3455af462f5c023
[ "MIT" ]
permissive
topliceanu/learn
fd124e1885b5c0bfea8587510b5eab79da629099
1c5b1433c3d6bfd834df35dee08607fcbdd9f4e3
refs/heads/master
2022-07-16T19:50:40.939933
2022-06-12T15:40:20
2022-06-12T15:40:20
21,684,180
26
12
MIT
2020-03-26T20:51:35
2014-07-10T07:22:17
JavaScript
UTF-8
Python
false
false
947
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Based on AboutArrayAssignments in the Ruby Koans # from runner.koan import * class AboutListAssignments(Koan): def test_non_parallel_assignment(self): names = ["John", "Smith"] self.assertEqual(['John', 'Smith'], names) def test_parallel_ass...
b883d4613806a95ab753103d22f2fcd096a20b3f
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/others/Pix2Pix/util/__init__.py
4de848e30b5a486d7214bec80276e35a3a4d0d04
[ "BSD-3-Clause", "BSD-2-Clause", "Apache-2.0", "MIT", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
667
py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law or agreed to in ...
9c439dd90703b73edc146cfbc628fab4e7984a37
cfa08425d0a457e0c673543b6e16f0a02effe05f
/projects/admm_4bus/data/sixbus/plot.py
86a8e56d3602f498a28cb6b6409a2bb9500fe2cf
[]
no_license
missinglpf/Distributed_optimization
5b3dfea8b2a29225761537531322e421be83d7a8
84040eebd3f04acf4c09e5e4ff2e59e752bf3fae
refs/heads/master
2020-08-01T03:42:36.455932
2018-06-25T15:59:44
2018-06-25T15:59:44
210,850,421
1
0
null
2019-09-25T13:20:11
2019-09-25T13:20:10
null
UTF-8
Python
false
false
4,376
py
import matplotlib.pyplot as plt import pandas as pd import numpy as np from datetime import datetime # df0 = pd.read_csv('lamda300/data_A_0.csv') # df1 = pd.read_csv('lamda300/data_A_0.csv') # df0 = pd.read_csv('lamda200/data_A_0.csv') # df3 = pd.read_csv('lamda100/data_A_0.csv') df0 = pd.read_csv('lamda50/...
dcb4426c63d6078fb4f8014c3c418f8b6a9dbfa6
4b0a0793238d31413b95b71b3af8fc37ac883427
/tools/crash_server.py
e10273e43c04f2656507d2911736c2f74ddc52b0
[ "BSD-3-Clause" ]
permissive
sarthak-saxena/cef_node_webkit
a408c8b4b620923e5546dab5d05c7431de7e81f4
cca786066cdc635d2bcfb67315a70a1c40c5d77a
refs/heads/master
2023-05-04T22:09:59.270934
2021-05-16T14:19:43
2021-05-16T14:19:43
367,562,455
1
0
NOASSERTION
2021-05-15T07:04:05
2021-05-15T06:58:07
C++
UTF-8
Python
false
false
11,992
py
#!/usr/bin/env python # Copyright 2017 The Chromium Embedded Framework Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be found # in the LICENSE file. """ This script implements a simple HTTP server for receiving crash report uploads from a Breakpad/Crashpad cli...
61f0d940e0be707a4e8b350b845a65d6547f2c95
1c4a406177d7e0ae58b284fd999a21034ef7ea5a
/slack/version.py
c23ca1c4cac964caa33a86a4b6f8538659f2d17f
[ "MIT" ]
permissive
taras-y/python-slackclient
b374acc70f8d06a1c3675d7f3139064c8e243a00
3706b0811c3fa569f039eb9d7158f4bf8c8f0223
refs/heads/master
2021-07-19T12:20:23.008646
2020-09-19T11:23:58
2020-09-19T11:23:58
215,239,132
0
0
MIT
2020-09-19T11:23:59
2019-10-15T07:50:52
null
UTF-8
Python
false
false
100
py
# see: http://legacy.python.org/dev/peps/pep-0440/#public-version-identifiers __version__ = "2.9.0"
dff7bbe98971ffdb3c3cbf46dcd27dd587faf52e
75f45278006fe833aab248c00a05fb099d5de96b
/20201129-pyconchina/typeschema_parser.py
fddb1a0516bca51c609914c26662e08ea5fc1cbe
[ "MIT" ]
permissive
thautwarm/Slides
851acbed5e3f39eab1ab624a4bdda82c3f8127fe
f88832c1dcc38b9a7afdbb2986515c9a58d2b077
refs/heads/master
2021-07-03T13:59:51.895168
2020-12-02T12:33:18
2020-12-02T12:33:18
203,609,797
1
0
null
null
null
null
UTF-8
Python
false
false
31,907
py
""" Copyright thautwarm (c) 2019 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the foll...
f10558c3ce38710d78fcfffc21dda605820129e7
eae4038397ea0b0b1ea56424888f53369a1e4282
/moai/parameters/optimization/optimizers/adam_srt.py
3c7177f5e0e17de45e0f93db114d5f7383798fe5
[ "Apache-2.0" ]
permissive
iampakos/moai-0.1.0a2
b2378e9e0a84b85c0e2251a419d39d3da7ea17f9
2f066bffc66faca0bdc9af53e7992df34d09ce5d
refs/heads/main
2023-03-13T13:27:54.318498
2021-04-01T14:36:52
2021-04-01T14:36:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,401
py
import functools import math import torch import typing __all__ = ['AdamSRT', 'AdamS'] #NOTE: from https://github.com/ymontmarin/adamsrt/blob/master/adamsrt/optimizers/adam_srt.py class AdamSRT(torch.optim.Optimizer): """Implements the AdamSRT algorithm. - **Paper**: [Spherical Perspective on Learning with ...
afb02e97b0e4004e14d9c672ec1972d124005491
f1bff0e018463081513c30258a67f238f5d08396
/finalizing.py
b5105ab4545ed0f1ea81bf1665dca4f52c311693
[]
no_license
bellyfat/speaker-Identification
cfcedd86ea634d5df19e560acea250c5b8dbc5d0
34c9ce12c6400f116e04a0d1be75e0e79228d599
refs/heads/master
2022-04-07T12:23:59.446618
2019-08-26T07:59:44
2019-08-26T07:59:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,290
py
from recoder import * import glob, os import wave import pylab def training(): get_model() print("training complete....") # getting the audio def getAudio(): rec = Recorder() print("Start recording") rec.start() time.sleep(11) print("Stop recording") rec.stop() print("Saving") rec...