blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
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
684 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
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
d4160e38a5fe5b321cdff170039b55d5691b1787
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_2692487_0/Python/Sibi/osmos.py
358f3037cb7d86476c1f1042cd07a622eda406f5
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
1,084
py
from math import log def solve(mySize,sizes): if len(sizes) == 0: return 0 while sizes[0] < mySize: mySize = mySize + sizes.pop(0) if len(sizes) == 0: return 0 if sizes[0] < 2*mySize-1: return 1+solve(2*mySize-1,sizes) for insertions in range(1,100): if mySize*(2**insertions)...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
4711c9358a365a673a560438a3d01eaa7bc1cdcd
abd9537f8b90a990e195ded5f9fafdcc108d2a48
/swea/d4/1861/1861_june.py
8790efff9e44731cc0c47a060c8eb6dc902bcd0a
[]
no_license
ohdnf/algorithms
127171744631406c1d08cc2583aa569a094fa2cd
6f286753dab827facc436af4f2130f11dad2d44f
refs/heads/master
2023-08-09T11:19:56.445351
2021-08-31T13:11:46
2021-08-31T13:11:46
236,180,615
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
import sys sys.stdin = open('input.txt') sys.stdin = open('n1000.txt') dx = [0, 1, 0, -1] dy = [1, 0, -1, 0] t = int(input()) for test_case in range(1, t+1): n = int(input()) room = [list(map(int, input().split())) for _ in range(n)] v = [0] * (n**2 + 1) for i in range(n): for j in range(n): ...
[ "jupyohong7@gmail.com" ]
jupyohong7@gmail.com
e410945fdc90dfec260540d9e96b5aa39d3d487e
20f951bd927e4e5cde8ef7781813fcf0d51cc3ea
/fossir/modules/bootstrap/blueprint.py
cce0f666235dc8c6007c3badae3b258b1efdbb60
[]
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
349
py
from __future__ import unicode_literals from fossir.modules.bootstrap.controllers import RHBootstrap from fossir.web.flask.wrappers import fossirBlueprint _bp = fossirBlueprint('bootstrap', __name__, template_folder='templates', virtual_template_folder='bootstrap') _bp.add_url_rule('/bootstrap', 'index', RHBootstr...
[ "hodardhazwinayo@gmail.com" ]
hodardhazwinayo@gmail.com
856bafa4536d68bf54de8ad934805089bf2d0897
0bce7412d58675d6cc410fa7a81c294ede72154e
/Python3/0303. Range Sum Query - Immutable.py
4d1cb2c5dbaf4b75edcda2762e7d6aa9aa227e01
[]
no_license
yang4978/LeetCode
9ddf010b0f1dda32cddc7e94c3f987509dea3214
6387d05b619d403414bad273fc3a7a2c58668db7
refs/heads/master
2022-01-15T04:21:54.739812
2021-12-28T12:28:28
2021-12-28T12:28:28
182,653,666
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
class NumArray: def __init__(self, nums: List[int]): self.temp = [0] for i in nums: self.temp.append(self.temp[-1]+i) def sumRange(self, i: int, j: int) -> int: return self.temp[j+1]-self.temp[i] # Your NumArray object will be instantiated and called as such: # obj = NumA...
[ "noreply@github.com" ]
yang4978.noreply@github.com
b93689c0be7a720edd4a7d4908073df64f921dc6
29a4c1e436bc90deaaf7711e468154597fc379b7
/modules/ieee/doc/ulpdist.py
ac366398b04284aadd5b1cb7da038ae261d73daf
[ "BSL-1.0" ]
permissive
brycelelbach/nt2
31bdde2338ebcaa24bb76f542bd0778a620f8e7c
73d7e8dd390fa4c8d251c6451acdae65def70e0b
refs/heads/master
2021-01-17T12:41:35.021457
2011-04-03T17:37:15
2011-04-03T17:37:15
1,263,345
1
0
null
null
null
null
UTF-8
Python
false
false
1,870
py
[ ## this file was manually modified by jt { 'functor' : { 'arity' : '2', 'call_types' : [], 'ret_arity' : '0', 'rturn' : { 'default' : 'typename boost::result_of<nt2::meta::arithmetic(T)>::type', }, 'simd_types' : ['real_'], 'type_...
[ "jtlapreste@gmail.com" ]
jtlapreste@gmail.com
91e45e105497e90a01f63258bc61dd9638245813
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc121/B/4971858.py
85a9a317171327639376a274c3b93a09195fc306
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
284
py
N,M,C=list(map(int,input().split())) B=list(map(int,input().split())) a=[] for i in range(N): a.append(list(map(int,input().split()))) cnt=0 for k in range(N): sum=0 for j in range(M): sum+=a[k][j]*B[j] if sum+C > 0: cnt+=1 print(cnt)
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
7871e98f8480ddaec7ab0d3d64ff3ecdf9d6e751
4ca44b7bdb470fcbbd60c2868706dbd42b1984c9
/20.11.23/백준_1018.py
125a30305d44671fe2572d9e6f4d2a4da5de720e
[]
no_license
titiman1013/Algorithm
3b3d14b3e2f0cbc4859029eb73ad959ec8778629
8a67e36931c42422779a4c90859b665ee468255b
refs/heads/master
2023-06-29T17:04:40.015311
2021-07-06T01:37:29
2021-07-06T01:37:29
242,510,483
2
0
null
null
null
null
UTF-8
Python
false
false
2,138
py
import sys; sys.stdin = open('text3.txt', 'r') # def check(x, y): # temp = 0 # color = '' # for p in range(8): # for q in range(8): # if p == 0 and q == 0: # color = arr[x + p][y + q] # continue # if arr[x + p][y + q] == color: # ...
[ "hyunsukr1013@gmail.com" ]
hyunsukr1013@gmail.com
ed3f0747a03be29e372e99f9cf90afa6a0bcb387
19f698ab74cba74ae52c780f5986d273fb319308
/SWExpertAcademy/D5/1242.py
e82ef68270ba4d0834822e4878c2c2d888764f6f
[]
no_license
naye0ng/Algorithm
15023f1070eb7cc5faca9cf7154af2ecffab92c2
1e8848e3e2574b01dc239212ea084b0a4837bc03
refs/heads/master
2021-06-25T14:18:46.117411
2020-10-16T10:47:37
2020-10-16T10:47:37
149,326,399
2
0
null
null
null
null
UTF-8
Python
false
false
3,505
py
""" 1242.암호코드 스캔 """ import sys sys.stdin = open('input.txt','r') match = [[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2]] T= int(input()) for test_case in range(1, 1+T): N, M = map(int, input().split()) # 중복되는 암호문 입력 안받음 empty = str(0)*M arr = [0]...
[ "nayeong_e@naver.com" ]
nayeong_e@naver.com
3bfc14d1d230a18045d9e8d9fb084c3c5c9a87a0
3fe1b6f36bfd02156f606cf90797d69b18dd19d2
/creme/utils/inspect.py
bf12fcf5404537a35e4d08489d98d2d98889f465
[ "BSD-3-Clause" ]
permissive
mihir-thakkar-ai/creme
a19a1975bb462a1a93046b6ea55830e88846cb88
008b0c1beb26b36b448fc3d04537e02e66d402b3
refs/heads/master
2022-12-18T01:15:18.132117
2020-09-15T20:17:16
2020-09-15T20:17:16
296,288,773
0
0
BSD-3-Clause
2020-09-17T10:04:27
2020-09-17T10:04:26
null
UTF-8
Python
false
false
1,404
py
"""Utilities for inspecting a model's type. Sometimes we need to check if a model can perform regression, classification, etc. However, for some models the model's type is only known at runtime. For instance, we can't do `isinstance(pipeline, base.Regressor)` or `isinstance(wrapper, base.Regressor)`. This submodule th...
[ "maxhalford25@gmail.com" ]
maxhalford25@gmail.com
58794e3389ada30651487ebcafdf441f1dd0d6f3
297497957c531d81ba286bc91253fbbb78b4d8be
/testing/web-platform/tests/tools/lint/tests/base.py
f624276e3be4c16d8acd1226e8f4e128812cbd2e
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
marco-c/gecko-dev-comments-removed
7a9dd34045b07e6b22f0c636c0a836b9e639f9d3
61942784fb157763e65608e5a29b3729b0aa66fa
refs/heads/master
2023-08-09T18:55:25.895853
2023-08-01T00:40:39
2023-08-01T00:40:39
211,297,481
0
0
NOASSERTION
2019-09-29T01:27:49
2019-09-27T10:44:24
C++
UTF-8
Python
false
false
295
py
def check_errors(errors): for e in errors: error_type, description, path, line_number = e assert isinstance(error_type, str) assert isinstance(description, str) assert isinstance(path, str) assert line_number is None or isinstance(line_number, int)
[ "mcastelluccio@mozilla.com" ]
mcastelluccio@mozilla.com
5547d118a16dcd0b4cebc4a30404d27ad74d3fe2
fca6a986e735843b667e3714b11cafaed0f390e8
/fastai2/text/models/core.py
235083d04a808132f5d60a270d60480a07014007
[ "Apache-2.0" ]
permissive
mbrukman/fastai2
2c631b515a13738800b5bcce781be6dac807368a
404383912503b69b244e175f3b26a06b532ee4bd
refs/heads/master
2020-11-27T17:59:33.125318
2019-12-21T08:22:48
2019-12-21T08:22:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,013
py
#AUTOGENERATED! DO NOT EDIT! File to edit: dev/33_text.models.core.ipynb (unless otherwise specified). __all__ = ['LinearDecoder', 'SequentialRNN', 'get_language_model', 'SentenceEncoder', 'masked_concat_pool', 'PoolingLinearClassifier', 'get_text_classifier'] #Cell from ...data.all import * from ..core im...
[ "sylvain.gugger@gmail.com" ]
sylvain.gugger@gmail.com
c98395864af6a107b993684c44803e2fb2b6fca7
2181d99f84f4f7556efb13ac203a533fc87f9acd
/tools/CodeGenerators/codegen/app/src/generated/Gui/ComboBoxes/LithologicUnitInBedComboBox.py
9ed3aae608989a0c741cc39df512c59f76b25e5c
[]
no_license
BackupTheBerlios/profilelogger-svn
0f80fd8f63c3b413dc06ecc6d2be623f8ae2cc8c
5ba067205316b0955f0c8876dd8b0f10672abc0a
refs/heads/master
2020-05-18T16:33:31.154612
2010-04-24T16:51:28
2010-04-24T16:51:28
40,822,739
0
0
null
null
null
null
UTF-8
Python
false
false
384
py
from InBedComboBox import * class LithologicUnitInBedComboBox(InBedComboBox): def __init__(self, parent, managementDialogClass, finderClass): DataSelectionComboBox.__init__(self, parent, LithologicUnitInBedManagementDialog, ...
[ "jolo@28dda339-3e7f-0410-9691-cab309f6cb01" ]
jolo@28dda339-3e7f-0410-9691-cab309f6cb01
98e8617fddd53b570991cb56f984fbf05598530a
34a2046714261a5e42692ab7a656eec708395243
/appcode/mri/results/create_nifti_from_raw_data.py
893307757154dbb38935566262c95113f314919d
[]
no_license
royshau/thesis
a64893ca25981bd8fff394161829d0147934a324
a02a8cfea9e00bd98289419eb9f7fb78c36c028e
refs/heads/master
2021-06-03T19:24:21.110455
2020-07-22T13:30:59
2020-07-22T13:30:59
115,911,615
0
0
null
2018-01-01T10:16:46
2018-01-01T10:03:25
Python
UTF-8
Python
false
false
6,904
py
# !/home/ohadsh/Tools/anaconda/bin/python import numpy as np import os from appcode.mri.k_space.k_space_data_set import KspaceDataSet from appcode.mri.data.write_nifti_data import write_nifti_data from appcode.mri.data.mri_data_base import MriDataBase from common.files_IO.file_handler import FileHandler from appcode.mr...
[ "shohad25@gmail.com" ]
shohad25@gmail.com
b65efc5b76e81a98e3d8dbd1d9eeb2f0c675189f
3940b4a507789e1fbbaffeb200149aee215f655a
/lc/399.EvaluateDivision.py
c17e9249c1acf2d9f8603f76a20ff582cbf7453c
[]
no_license
akimi-yano/algorithm-practice
15f52022ec79542d218c6f901a54396a62080445
1abc28919abb55b93d3879860ac9c1297d493d09
refs/heads/master
2023-06-11T13:17:56.971791
2023-06-10T05:17:56
2023-06-10T05:17:56
239,395,822
0
0
null
null
null
null
UTF-8
Python
false
false
3,013
py
# 399. Evaluate Division # Medium # 2633 # 209 # Add to List # Share # You are given equations in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating-point number). Given some queries, return the answers. If the answer does not exist, return -1.0. # The input ...
[ "akimi.mimi.yano@gmail.com" ]
akimi.mimi.yano@gmail.com
c2356c672e81c8d0028769668339da65ff1697aa
f47863b3a595cbe7ec1c02040e7214481e4f078a
/plugins/waf/webknight.py
d46383a64c36e0f5877762772612a77f656d3ac9
[]
no_license
gobiggo/0bscan
fe020b8f6f325292bda2b1fec25e3c49a431f373
281cf7c5c2181907e6863adde27bd3977b4a3474
refs/heads/master
2020-04-10T20:33:55.008835
2018-11-17T10:05:41
2018-11-17T10:05:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
import re from config import HTTP_HEADER __product__ = "WebKnight Application Firewall (AQTRONIX)" def detect(content, **kwargs): headers = kwargs.get("headers", None) status = kwargs.get("status", None) detection_schema = ( re.compile(r"\bwebknight", re.I), re.compile(r"webknight", re....
[ "zer0i3@aliyun.com" ]
zer0i3@aliyun.com
4c18b17007a61eeb0415eb384a1b4980e476f0ba
0d01d65ed67faf09b31b6333013393194b4a25d0
/twitter.py
1bfef6c0550af908369c3cbe09c1674970e8f41f
[]
no_license
AshithaL/twitter-streaming
0d5b16c56c92810496f6b635b03024679cc2c10b
993b6e87fd1d546dcdde5c12db7e49791a5f5890
refs/heads/master
2022-11-09T02:52:17.843457
2020-06-15T04:43:41
2020-06-15T04:43:41
270,915,616
0
0
null
null
null
null
UTF-8
Python
false
false
2,221
py
import socket import sys import requests import requests_oauthlib import json from sql_connection import conn # Replace the values below with yours ACCESS_TOKEN = '1252513694992330753-YpQY1SlyBWIN66ngHXeM8hcZWvvTeZ' ACCESS_SECRET = 'reoC4xZdgp3bqRPjTC2ptxn00vUPrftWlhprHOBIp29jA' CONSUMER_KEY = 'eLsiPuE8adtsJUt8hr0iMku...
[ "you@example.com" ]
you@example.com
66c5b2d003be821beb2127b0ffef1023020ef83a
4b44a299bafbd4ca408ce1c89c9fe4a449632783
/python3/14_Code_Quality/04_mocking/example_5/test_mymodule2.py
fee202b03daf17899388a56cf126c60e665c2088
[]
no_license
umunusb1/PythonMaterial
ecd33d32b2de664eaaae5192be7c3f6d6bef1d67
1e0785c55ccb8f5b9df1978e1773365a29479ce0
refs/heads/master
2023-01-23T23:39:35.797800
2020-12-02T19:29:00
2020-12-02T19:29:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
347
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from mymodule import rm from unittest import TestCase, mock class RmTestCase(TestCase): @mock.patch('mymodule.os') def test_rm(self, mock_os): rm("any path") # test that rm called os.remove with the right parameters mock_os.remove.ass...
[ "uday3prakash@gmail.com" ]
uday3prakash@gmail.com
31f19af81a8c9456a85f2bb8d9ab67906b28f744
a034d4ba39789e4a351112c46dd04a38180cd06c
/appengine/findit/findit_v2/model/atomic_failure.py
8c09489dd8dc8824de2e446a083c0238f3c8698b
[ "BSD-3-Clause" ]
permissive
asdfghjjklllllaaa/infra
050ad249ab44f264b4e2080aa9537ce74aafb022
8f63af54e46194cd29291813f2790ff6e986804d
refs/heads/master
2023-01-10T21:55:44.811835
2019-07-01T14:03:32
2019-07-01T14:03:32
194,691,941
1
0
BSD-3-Clause
2023-01-07T07:12:37
2019-07-01T14:45:29
Python
UTF-8
Python
false
false
3,725
py
# Copyright 2019 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. from google.appengine.ext import ndb from findit_v2.model.gitiles_commit import Culprit class FileInFailureLog(ndb.Model): """Class for a file mentioned...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
176f55c02c04c05f69692175fb1e2ad43a67c3e1
ac39baffc572b72ddd4d25617014a51522ee30a8
/challenge29-34/simpledu/forms.py
dcdb80fff200e1000ecdcd852c6560cf019f5e08
[]
no_license
Yao-Phoenix/challenge
01d72a63eb6c144bb59cd4d5f658e170c8ad0092
d5ce1659f47cbe5295f65b7ac05ca25c79955f00
refs/heads/master
2020-09-24T17:42:02.380190
2020-02-17T03:15:25
2020-02-17T03:15:25
225,810,003
0
0
null
null
null
null
UTF-8
Python
false
false
4,259
py
#!/usr/bin/env python3 from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, BooleanField from wtforms.validators import Length, Email, EqualTo, DataRequired, URL, NumberRange,Regexp from simpledu.models import db, User, Course, Live from wtforms import ValidationError, TextAreaFi...
[ "493867456@qq.com" ]
493867456@qq.com
ae0708cc0342891c5fb01dace708ffbc954432d3
e23a4f57ce5474d468258e5e63b9e23fb6011188
/021_module_collection/namedtuple/_exercises/namedtuple_002_Other Ways to Specify Field Names_template.py
49045eb80045bf9453e1f2c3957cb3e8c0bb1e29
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
1,796
py
# from collections ____ n_t_ # # # Other Ways to Specify Field Names # # There are a number of ways we can specify the field names for the named tuple: # # we can provide a sequence of strings containing each property name # # we can provide a single string with property names separated by whitespace or a comma...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
40ad9596e5995a4fe0ac18d2fdc15a8855e1aa5a
bd62843278ffc297ef8f6d75a931f1f4ca4caaa7
/exercises/friends_family/ff_dictionary/friends_dk_mod.py
e7db5bf1184a32c5d7919883f7ca191f03d5850c
[]
no_license
raysmith619/Introduction-To-Programming
d3bae042b4fc17bd56e8631a4d660233d8cd165b
bedc16eb5f6db0ad3b313355df6d51b5161c3835
refs/heads/master
2023-07-19T08:43:41.229893
2023-07-15T19:22:28
2023-07-15T19:22:28
132,622,195
3
0
null
null
null
null
UTF-8
Python
false
false
4,228
py
#friends_dk_mod.py 13Oct2020 crs # Adapted from friends_mod.py """ A friends "module" which can be used by other programs via from friends_mod import * """ my_friends = {} # Initialize dictionary of friends(names) as an empty list def list_friends(): """ list friends """ nf = 0 ...
[ "noreply@github.com" ]
raysmith619.noreply@github.com
de46d2d1fb94ab7a5c96224c56459fe16cb981cf
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02716/s082816838.py
81eab4bb1d4a40d68a77f483f2899018f648da49
[]
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
529
py
N = int(input()) A = list(map(int, input().split())) DP_odd = [0, 0, A[0]] DP_even = [0, max(A[0], A[1])] if N >= 3: DP_odd = [DP_even[0], max(DP_odd[1] + A[2], DP_even[1]), DP_odd[2] + A[2]] for i in range(3, N): if (i + 1) % 2 == 1: DP_odd = [max(DP_odd[0] + A[i], DP_even[0]), max(DP_odd[1] + A...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
111534e2e8de66694688967bcfb3a213ec10094b
12346be5075d772878a6015053d6eeb4e7227acc
/21. Design Patterns/behavioral/template.py
b5f260abd7cbf6bd3ca2bef6a2a0ad0bdfa3fa25
[ "MIT" ]
permissive
elenaborisova/Python-OOP
2a46bfafce868f03481fb699580fb3e60ca4e3bd
584882c08f84045b12322917f0716c7c7bd9befc
refs/heads/main
2023-04-02T17:41:23.440617
2021-04-10T13:56:38
2021-04-10T13:56:38
321,376,083
1
1
null
null
null
null
UTF-8
Python
false
false
539
py
from abc import ABC, abstractmethod class Storage(ABC): @abstractmethod def get_storage_list(self): pass def save(self, data): self.get_storage_list().append(data) class SelfListStorage(Storage): def __init__(self): self.list = [] def get_storage_list(self): ret...
[ "elenaborrisova@gmail.com" ]
elenaborrisova@gmail.com
10878b61c5e0ebf2a18f06f4fa888b9efee34475
ee904d3335b8fdc5dbb6c260f87dd0e01b7bb605
/personal/models.py
2a3381d9a1a6aa4c51c481316fcf4cac75a423cd
[]
no_license
sudhanshu8917/Techy-Blogger
32930136b479635ec5616e44cc48b7d02bce2795
f7fd26cb223276bd9c35023c8166243ab430b6b4
refs/heads/master
2022-04-25T01:03:57.281784
2020-04-23T19:46:48
2020-04-23T19:46:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
from django.db import models # Create your models here. # PRIORITY = [ # ("H","Low"), # ("L","Medium"), # ("H","High"), # ] # class Question(models.Model): # tilte =models.CharField(max_length=60) # question =models.TextField(max_length=400) # priority ...
[ "sudhanshuraj8917@gmail.com" ]
sudhanshuraj8917@gmail.com
3e216e3ee3078736267939ddfdd51b2ed51045cd
09e5cfe06e437989a2ccf2aeecb9c73eb998a36c
/modules/cctbx_project/wxtbx/phil_controls/boolctrl.py
eb5df59dfbe39578d721ac70b72c30df2989b55a
[ "BSD-3-Clause", "BSD-3-Clause-LBNL" ]
permissive
jorgediazjr/dials-dev20191018
b81b19653624cee39207b7cefb8dfcb2e99b79eb
77d66c719b5746f37af51ad593e2941ed6fbba17
refs/heads/master
2020-08-21T02:48:54.719532
2020-01-25T01:41:37
2020-01-25T01:41:37
216,089,955
0
1
BSD-3-Clause
2020-01-25T01:41:39
2019-10-18T19:03:17
Python
UTF-8
Python
false
false
2,534
py
from __future__ import absolute_import, division, print_function from wxtbx import phil_controls import wx from libtbx import Auto WXTBX_PHIL_BOOL_TRIBOOL = 1 WXTBX_PHIL_BOOL_AUTO = 2 class BoolCtrl(wx.CheckBox, phil_controls.PhilCtrl): def __init__(self, *args, **kwds): kwds = dict(kwds) self._bool_style ...
[ "jorge7soccer@gmail.com" ]
jorge7soccer@gmail.com
a50506c6f1e9b437891467aeec49f7ce0e5d0e3c
5e9b2d0d2a4399fd028c738a082921a1df1f8321
/hacker rank/30 Days Of Code/Day 04 - Class vs. Instance.py
2f6aaced92bd0e97a00c76adb993e0adff08a560
[]
no_license
sunilsm7/python_exercises
42e5a1aee0a0d5402b585e1b1631517145aa1e00
b2754c51464dcd81319c8514c24249a13e18d825
refs/heads/master
2020-12-02T16:19:20.266436
2017-10-27T10:22:37
2017-10-27T10:22:37
96,534,650
0
1
null
null
null
null
UTF-8
Python
false
false
876
py
""" In this challenge, we're going to learn about the difference between a class and an instance; because this is an Object Oriented concept, it's only enabled in certain languages. Task Write a Person class with an instance variable, age, and a constructor that takes an integer, initial_age, as a parameter. The const...
[ "sunil9766@gmail.com" ]
sunil9766@gmail.com
a92d6441a0fd2f223bc21e0d866ebddf7a054b36
17821ba5f1345bcb5181092cec7808e08355abd0
/Django_projects/P2-video fail/my_proj/src/my_proj/migrations/0005_video_name.py
e9e93aa7fe462157356740f1f0b77bf76382fe25
[ "MIT" ]
permissive
Coni63/scripts_Python
be1a416dc702c919120645f2946596c68a6a3fbb
b1ac0bee706504abcc86fd7a72b8ec625ffa12b3
refs/heads/master
2021-07-11T16:50:56.719758
2018-02-25T12:19:29
2018-02-25T12:19:29
95,472,736
0
0
null
null
null
null
UTF-8
Python
false
false
462
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-05-17 09:44 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('my_proj', '0004_remove_video_name'), ] operations = [ migrations.AddField( ...
[ "mine.nicolas@gmail.com" ]
mine.nicolas@gmail.com
1596db543519340af331ebc5b52159918fd4ee73
8848bd7a4ca88e0061ce1c7dfbf45c488968ea52
/ravens/tasks/insertion_goal.py
fc0615b9afcb813910b6af74eada86ff53f36564
[ "Apache-2.0" ]
permissive
gautams3/deformable-ravens
5f390d6bf5af26fa9c746232a8d90403a89fd7ce
1324243b804532d229d91f2af13ee84c6fd4771c
refs/heads/master
2023-08-15T01:46:47.025808
2021-10-13T16:10:32
2021-10-13T16:10:32
416,812,524
0
0
null
null
null
null
UTF-8
Python
false
false
1,501
py
#!/usr/bin/env python import numpy as np import pybullet as p from ravens.tasks import Task from ravens import utils as U class InsertionGoal(Task): """Using insertion, but in a goal-based Transporters context.""" def __init__(self): super().__init__() self.ee = 'suction' self.max_s...
[ "takeshidanny@gmail.com" ]
takeshidanny@gmail.com
26ff43671dca13288c13c63813a52087fc0064b9
136a174f8de72746004aaf28a7ec959fddbd689b
/test_scripts/xx4.py
aca9862f32eab929bf99b84ef4e4d77742fecf20
[]
no_license
xod442/imcServiceNow2
ff3c74ffd633f67ef984c5ab9a65da0010e3bc9d
0dd86659816bae19e5d43bcb8c894005564597cb
refs/heads/master
2021-01-18T18:33:50.203685
2018-01-09T21:25:22
2018-01-09T21:25:22
86,862,461
0
1
null
null
null
null
UTF-8
Python
false
false
1,927
py
import time from flask import Flask, request, render_template, redirect, url_for, flash, session, send_file from flask.ext.bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy from models import db, Imc_alarm_ids from settings import APP_STATIC import os from flask import Flask, request, redirect, url_for...
[ "rick@rickkauffman.com" ]
rick@rickkauffman.com
8af17fb2e3ab102cd0d02489f823a5800a3dac93
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Lazymux/websploit/core/help.py
8b341ed650071223766e292675f6d56d447f26f8
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:ad1e9de5e3288e6454391464b0dbe8b0b42084b82cfbc0f4789743568bbccdf1 size 1001
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
b4f7cdeec17ecd205cbc93e2f5b6bc0444aacb08
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2864/60591/310678.py
b3ddf43088c2b9c36f5b42543811c99ee8acaf76
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
541
py
n = eval(input()) nums = list(map(int, input().split(" "))) if (len(nums) == 1): print(nums[0]) elif(len(nums) == 2): if(abs(nums[1] - nums[0]) == 1): print(max(nums[1],nums[0])) else: print(nums[1] + nums[0]) else: result = 0 temp = [] for x in range(max(nums) + 1): temp...
[ "1069583789@qq.com" ]
1069583789@qq.com
d8a5c1939b6c95386264908ad58cff196f78ef17
5963c12367490ffc01c9905c028d1d5480078dec
/homeassistant/components/numato/switch.py
505d28d0c4036acb28906ca213dd68232a6cd195
[ "Apache-2.0" ]
permissive
BenWoodford/home-assistant
eb03f73165d11935e8d6a9756272014267d7d66a
2fee32fce03bc49e86cf2e7b741a15621a97cce5
refs/heads/dev
2023-03-05T06:13:30.354545
2021-07-18T09:51:53
2021-07-18T09:51:53
117,122,037
11
6
Apache-2.0
2023-02-22T06:16:51
2018-01-11T16:10:19
Python
UTF-8
Python
false
false
3,419
py
"""Switch platform integration for Numato USB GPIO expanders.""" import logging from numato_gpio import NumatoGpioError from homeassistant.const import ( CONF_DEVICES, CONF_ID, CONF_SWITCHES, DEVICE_DEFAULT_NAME, ) from homeassistant.helpers.entity import ToggleEntity from . import CONF_INVERT_LOGIC,...
[ "noreply@github.com" ]
BenWoodford.noreply@github.com
380d34e9731daa55c6f70d3e860fe21844cf1912
32c56293475f49c6dd1b0f1334756b5ad8763da9
/google-cloud-sdk/lib/googlecloudsdk/core/util/semver.py
8fa1edb39fbcb2ec9cf241dd02e65fa0e28e8c38
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT" ]
permissive
bopopescu/socialliteapp
b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494
85bb264e273568b5a0408f733b403c56373e2508
refs/heads/master
2022-11-20T03:01:47.654498
2020-02-01T20:29:43
2020-02-01T20:29:43
282,403,750
0
0
MIT
2020-07-25T08:31:59
2020-07-25T08:31:59
null
UTF-8
Python
false
false
6,611
py
# -*- coding: utf-8 -*- # # Copyright 2015 Google LLC. All Rights Reserved. # # 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 requir...
[ "jonathang132298@gmail.com" ]
jonathang132298@gmail.com
0f03a2ac1686b80d47dda000ad3fd21ef99f7f7a
1ef68ba8f4754bf4d4d86d945bb1392be3ff5beb
/mlagents/envs/communicator_objects/custom_action_pb2.py
1c16809b0b0d05a34b2fe0fb5193e54c3337f10e
[ "MIT" ]
permissive
Abluceli/HRG-SAC
fc1b5fb720f391390b0ac86c23c46187178a3691
334df1e8afbfff3544413ade46fb12f03556014b
refs/heads/master
2022-12-29T22:51:35.584254
2020-02-19T13:39:23
2020-02-19T13:39:23
241,630,517
7
1
MIT
2022-12-08T06:18:57
2020-02-19T13:36:58
Python
UTF-8
Python
false
true
1,939
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mlagents/envs/communicator_objects/custom_action.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf imp...
[ "787873309@qq.com" ]
787873309@qq.com
8de8ea6b1c58ca9b9e86f7823a753e50cc5c3b33
553e6acd1019bb2c7d6a1b08009ca50ef2fa0ad1
/mammoth/optim.py
b7f17e1cecf96cd1842270f07004067b512eda4a
[]
no_license
bkj/mammoth
ac0cfd6f8c5165ce72a5a7e591a938cf823270d3
0bd0122b5bac5ce897436a2318cb47b2fbc84164
refs/heads/master
2021-05-15T00:23:48.290164
2018-07-26T16:15:23
2018-07-26T16:15:23
103,467,821
3
0
null
null
null
null
UTF-8
Python
false
false
2,805
py
#!/usr/bin/env python """ optim.py """ import math import torch import numpy as np class LambdaAdam(torch.optim.Optimizer): """ ADAM optimizer that mimics hypergrads - Difference is addition of `lam` parameter. I noticed that my hypergrad test was converging to eps < 1e-10. Setting ...
[ "bkj.322@gmail.com" ]
bkj.322@gmail.com
8cf1a9534a126b14369a0c65201592f19a07b52f
7a1a65b0cda41ea204fad4848934db143ebf199a
/automatedprocesses_firststage/adsym_InventorySources_v2_DD_testapi.py
3f6dcf9326e7f74dfb04f362aaeebd1489663c43
[]
no_license
bpopovich44/ReaperSec
4b015e448ed5ce23316bd9b9e33966373daea9c0
22acba4d84313e62dbbf95cf2a5465283a6491b0
refs/heads/master
2021-05-02T18:26:11.875122
2019-06-22T15:02:09
2019-06-22T15:02:09
120,664,056
0
0
null
null
null
null
UTF-8
Python
false
false
2,719
py
#!/usr/bin/python2.7 import json from mysql.connector import MySQLConnection, Error from python_dbconfig import read_db_config import aol_api def connect(): # """Gets AOL Data and writes them to a MySQL table""" db = "mysql_dl" # Connect To DB: db_config = read_db_config(db) try: print(...
[ "bpopovich4@gmail.com" ]
bpopovich4@gmail.com
97e4669eaaef04e481d3c1a28889378009c43f5e
c97ae1cc922a037484c5d4794d0a657561cf47f3
/config.py
53c8a1a210fb59cef99d47b41017842907143b96
[]
no_license
AlenAlic/clubpromoters
3059078b02b77745e7a1e49d998f9d24554082e8
f44b3b20c20d5669c1658036cea35fb9a4f223fc
refs/heads/master
2022-12-11T14:38:37.824769
2019-09-08T19:02:49
2019-09-08T19:02:49
190,430,315
0
0
null
2022-12-09T22:02:49
2019-06-05T16:29:25
JavaScript
UTF-8
Python
false
false
664
py
import os basedir = os.path.abspath(os.path.dirname(__file__)) ENV = 'development' SECRET_KEY = 'test-key' SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db?check_same_thread=False') SQLALCHEMY_ECHO = False SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_RECORD_QUERIES = False # MAIL SERVERS #...
[ "aalic89@gmail.com" ]
aalic89@gmail.com
2cbf983911e50399c3a76fb804444089fce74a61
c071eb46184635818e8349ce9c2a78d6c6e460fc
/system/python_stubs/-745935208/_ast/__init__/Global.py
e9f88c95a0171f4bb4c222f70243e1403b25fc9c
[]
no_license
sidbmw/PyCharm-Settings
a71bc594c83829a1522e215155686381b8ac5c6e
083f9fe945ee5358346e5d86b17130d521d1b954
refs/heads/master
2020-04-05T14:24:03.216082
2018-12-28T02:29:29
2018-12-28T02:29:29
156,927,399
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
# encoding: utf-8 # module _ast # from C:\Users\siddh\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\util\_move.cp37-win_amd64.pyd # by generator 1.146 # no doc # no imports from .stmt import stmt class Global(stmt): # no doc def __init__(self, *args, **kwargs): # real signature unknown ...
[ "siddharthnatamai@gmail.com" ]
siddharthnatamai@gmail.com
af7582913055c33dfb0d2fb42261bb2d00085cbd
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/55/usersdata/120/22966/submittedfiles/av2_p3_civil.py
ec623fcaf0928a3823b671b83b40cb785119d3ff
[]
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
686
py
# -*- coding: utf-8 -*- from __future__ import division import numpy as np #definir somalinha def somalinha(a,linha): soma=0 for j in range(0,a.shape[1],1): soma=soma+a[linha,j] return somalinha #definir somacoluna def somacoluna(a,coluna): soma=0 for i in range(0,a.shape[0],1): ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
1f8b9d0f62221cd8a4ea43b57dfb8951433fe248
5c81a33883e052070c557c76b5968aa501d5526e
/products/migrations/0005_attribute_attributeitem.py
24c44104e06e383020c74f454c2c93a8a182519b
[]
no_license
worlddeleteRin/rabbit_vkusno
2ebacdf72d87700d191965481c56e78bfec33e9b
017cdff4b40fa7e9a0f7729e4f7b754f48e93c3a
refs/heads/master
2023-04-03T23:32:42.770973
2021-04-08T06:43:04
2021-04-08T06:43:04
355,661,649
0
0
null
null
null
null
UTF-8
Python
false
false
1,110
py
# Generated by Django 3.0.8 on 2020-10-11 12:39 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('products', '0004_auto_20201010_1810'), ] operations = [ migrations.CreateModel( name='Attribute...
[ "noname@MacBook-Pro-Rin.local" ]
noname@MacBook-Pro-Rin.local
0f2011cb5b2aadf3215ef9f7b51b9c97d83a2488
43ab33b2f50e47f5dbe322daa03c86a99e5ee77c
/rcc/models/study_site_view_rpc.py
a9556784eb2812cdd56b265c2e06679096439101
[]
no_license
Sage-Bionetworks/rcc-client
c770432de2d2950e00f7c7bd2bac22f3a81c2061
57c4a621aecd3a2f3f9faaa94f53b2727992a01a
refs/heads/main
2023-02-23T05:55:39.279352
2021-01-21T02:06:08
2021-01-21T02:06:08
331,486,099
0
0
null
null
null
null
UTF-8
Python
false
false
8,149
py
# coding: utf-8 """ nPhase REST Resource REDCap REST API v.2 # noqa: E501 The version of the OpenAPI document: 2.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from rcc.configuration import Configuration class StudySiteViewRpc(object): "...
[ "thomas.yu@sagebase.org" ]
thomas.yu@sagebase.org
55d11a1f12e6188a1ad698f562dad455168768b3
4129ae27e90b3aa76187203e42aa0ecbae69216f
/img/test.py
b8e635ba0fa6d08d2030bb90c4ad0473dfa34e66
[]
no_license
PinoJoe/WebCrawler
d1a6b84629832222cbebb1037f1cbc0771deadcf
94929bc73bde98569b2992f8bc648c2f39afcccc
refs/heads/master
2022-01-23T13:09:35.853177
2019-08-05T13:40:44
2019-08-05T13:40:44
122,821,572
1
1
null
null
null
null
UTF-8
Python
false
false
1,406
py
#-*-coding:utf-8 -*- import urllib from lxml import etree import requests import time from contextlib import closing def ProcessBar(blocknum, blocksize, totalsize): speed = (blocknum * blocksize) / (time.time() - start_time) speed_str = '下载速度: %s' % format_size(speed) recv_size = blocknum * block...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
b376047b8fffc918dea88a06d8f95217ed1a01eb
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_coolants.py
52648d1c9cbfeb1d8e6f52d2d454be9cc0ff0119
[ "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 _COOLANTS(): def __init__(self,): self.name = "COOLANTS" self.definitions = coolant self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['coolant']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
ae8384d7325ab05aae05cc3dff842e3ae00aef65
632b9b323dc29c67fd6b8cdbec6ec80161ad484a
/extractInstitution.py
126544f887ba375a7c57a7e8e67987ecdd57ee55
[]
no_license
SixingYan/Academic-Relationship-Network
3a08f7cf5d9d1a73f8639c883257fc76dbe86376
94dbfcc76a734005ffceb08e31763112b0d4462b
refs/heads/master
2021-01-21T17:57:14.388478
2018-02-23T09:48:31
2018-02-23T09:48:31
92,003,208
0
1
null
null
null
null
UTF-8
Python
false
false
3,655
py
# -*- coding: utf-8 -*- import re from tool import getResult,getCursor,readTXT from bs4 import BeautifulSoup import os files_path = 'E:/Code/Data/dlibrary' conn,cur = getCursor() #import os;os.chdir('e:/Code/Python');import extractInstitution;extractInstitution.mainFunction() def cleanInstit(instit): # institNe...
[ "plutoyem@outlook.com" ]
plutoyem@outlook.com
fa3e1e5a03b34cf9667f4072e97ba84be7134e14
f8ef8828377131f38a75e25f1571d3e0ea7b4837
/api/migrations/0006_match_expansion.py
6d76c5f3773954536724f113207af5736a647ccb
[]
no_license
szpone/bg-journal
8b46742e2b71db820e5fb1e5f690c0362586661e
80a3570414773daf34458ca068d051cbfe29a8b7
refs/heads/master
2022-05-05T06:10:33.957525
2019-05-02T17:11:48
2019-05-02T17:11:48
165,717,971
0
1
null
2022-04-22T21:07:23
2019-01-14T19:04:02
Python
UTF-8
Python
false
false
499
py
# Generated by Django 2.1.7 on 2019-03-18 20:03 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0005_remove_user_confirm_password'), ] operations = [ migrations.AddField( model_name='m...
[ "nikola.adamus@gmail.com" ]
nikola.adamus@gmail.com
cb562f1501ebd70b4953051bffe97d1b3be9ab1f
147d0863f4590649a90ea5f78c66974723a87247
/api/api_request.py
7e3ae65e10c255203d5ebc25a3c87d4874377cbe
[]
no_license
jinchuika/ligabot
af5bd5443dc0df7d929e7b866869ba075c91db55
69544912e1ac46f281ba2fc78ff913d60d9a2a38
refs/heads/master
2021-01-20T12:50:32.894359
2017-05-08T14:07:47
2017-05-08T14:07:47
90,419,163
0
0
null
null
null
null
UTF-8
Python
false
false
6,788
py
import requests import click from django.conf import settings from datetime import datetime class RequestHandler(object): BASE_URL = settings.BASE_URL API_TOKEN = settings.API_TOKEN LIVE_URL = 'http://soccer-cli.appspot.com/' verbose = False def __init__(self, verbose=False): self.verbos...
[ "jinchuika@gmail.com" ]
jinchuika@gmail.com
f75f33d950309ba2333f6b2ace38e72f6bf95b7c
65675a487fee2ff9651675ae6a09c8d62682c2a4
/23b.py
e44397b4dee9ab0ef0746d70edcb656548770bd5
[]
no_license
Abarn279/advent-of-code-2020
e132f4b04ee1b777ddc00bb97322f707a72c86e0
ea840ee1e7a8cafedfe6f0b9f3e64a2e8b6f0c80
refs/heads/master
2023-02-04T21:11:06.771592
2020-12-26T02:37:25
2020-12-26T02:37:25
317,412,968
0
0
null
null
null
null
UTF-8
Python
false
false
2,037
py
node_dict = {} class SLLNode: ''' Singly linked list node ''' def __init__(self, nxt=None, data=None): if nxt is None: self.next = self else: self.next = nxt self.data = data node_dict[self.data] = self def insert_after(self, other_val): ...
[ "Abarn279@gmail.com" ]
Abarn279@gmail.com
dba760a081168b07da49364f0d7449d2b7849238
b6b380e6f5353dba2256211033cebec638dffe4a
/packages/fuego/fuego/serialization/chemkin/unpickle/parsers/Species.py
cb4d4a0b1bd9d21462be0519db57925920608495
[]
no_license
danse-inelastic/pyre-all
0ddf640b68f6089e40345e9a8e20562a8b035b3c
59cc235b6481586c58415535bbec660470218e31
refs/heads/master
2021-01-18T12:31:27.905459
2015-04-26T04:57:46
2015-04-26T04:57:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,335
py
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 1998-2007 All Rights Reserved # # <LicenseText> # # ~~~~~~~~~~~~~~~~...
[ "michael.aivazis@gmail.com" ]
michael.aivazis@gmail.com
f7debe817af0afd601474afec973beb67886808b
f9183ce2308090dbb6a8c2f5d96c17c56a8ca768
/main/forms.py
c9618dd619531607d80ecd51fc59f05971ac3664
[]
no_license
asad2200/UrlShortener
a9b0e0f5cce203dd2bcc1244de7feb99588c6c71
055d83d5a1bbf9628a8f045d152dc85c58e9460f
refs/heads/master
2023-05-13T23:44:09.748618
2021-05-29T10:56:17
2021-05-29T10:56:17
371,616,730
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
from django import forms from .models import URL class URLForm(forms.ModelForm): class Meta: model = URL fields = ["name", "url"] widgets = { "url": forms.Textarea(attrs={"rows": 2, "cols": 5}), }
[ "asadjakhavala92@gmail.com" ]
asadjakhavala92@gmail.com
d7a25d94dee5bb5c016aa6033dc187cfe73cf882
40f4908483b98fc4f370ff4f2d520e1284d045b3
/phase02/immortals_repo/harness/pymmortals/generated/com/securboration/immortals/ontology/analysis/profiling/simpleresourcedependencyassertion.py
fd72bc793c259cc64cb2bc4289b0667e7140091c
[]
no_license
TF-185/bbn-immortals
7f70610bdbbcbf649f3d9021f087baaa76f0d8ca
e298540f7b5f201779213850291337a8bded66c7
refs/heads/master
2023-05-31T00:16:42.522840
2019-10-24T21:45:07
2019-10-24T21:45:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
652
py
from pymmortals.datatypes.serializable import Serializable from pymmortals.generated.com.securboration.immortals.ontology.core.resource import Resource from pymmortals.generated.com.securboration.immortals.ontology.measurement.codeunitpointer import CodeUnitPointer from typing import Type # noinspection PyPep8Naming ...
[ "awellman@bbn.com" ]
awellman@bbn.com
f57d10cb23fa6300616fe2080588f7d3c6404adb
190072bc404751d83e5aceb99a34ccba1067caae
/photobot/examples/Layer_function_select.py
6437d18ae66b047371f687e0ca0497d59b8a25ed
[ "MIT" ]
permissive
karstenw/Library
ab751bde79bb0bd2bd7f705901dab415ba154476
9c3f665be4988c14d939d28e7729c72819bba446
refs/heads/master
2023-08-14T04:53:15.559747
2023-07-16T12:27:19
2023-07-16T12:27:19
46,520,062
0
0
null
2023-05-18T14:06:29
2015-11-19T21:00:38
Python
UTF-8
Python
false
false
1,223
py
import sys, os # need a different name import random as rnd import pprint pp = pprint.pprint import pdb kwdbg = 0 W, H = 542, 1050 fullwidth = int(W-20) tilewidth = int((fullwidth-10) / 2.0) # check for Nodebox NB = True try: _ctx except(NameError): NB = False if NB: size(W, H) pb = ximport("phot...
[ "karstenwo@web.de" ]
karstenwo@web.de
19a267b88eeda5563af6a304dcbd755284124dfc
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_84/177.py
db6951d5ed962140a11a025f300265217eb10a9c
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
# coding: shift-jis import sys f = file(sys.argv[1]) test_cnt = int(f.readline()) for case in range(1, test_cnt+1): V, H = map(int, f.readline().split()) row = [list(f.readline()[:-1]) for _ in range(V) ] ret = True for v in range(V): for h in range(H): if row[v][h] == '#': if v == V...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
ed9a9a16fa606dc3a0b92e7d93dbca7f3237abe1
7101871e7a82d202483ada3053fec155ce7824a6
/test/functional/sapling_wallet_send.py
39c6d0a107af083c9d58aa278ac3ef4d18f9ad78
[ "MIT" ]
permissive
trumpcoinsupport/TrumpCoin
633a9992e46cab00774d01e569f4611b7f6b4b54
098c62ea249a63ca1cc31d5f37c6209ccdf50e2a
refs/heads/master
2023-01-11T20:22:03.469608
2021-12-31T10:04:39
2021-12-31T10:04:39
194,952,065
15
14
MIT
2023-01-08T02:49:09
2019-07-03T00:24:45
C++
UTF-8
Python
false
false
3,831
py
#!/usr/bin/env python3 # Copyright (c) 2018 The Zcash developers # Copyright (c) 2020 The TrumpCoin developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://www.opensource.org/licenses/mit-license.php . from decimal import Decimal from test_framework.test_framework impor...
[ "sebgruby@gmail.com" ]
sebgruby@gmail.com
d96f1e56f4b8aa0ac94be4330d3f7524cc14c3a7
ffd19240effa4f50b8469432d6ad2078e6b0db7d
/app/models.py
2e9fa0ba6b2c20f730a447db3c7f950342cbe5c6
[]
no_license
Jackson-coder-arch/Studio-session-booker
98e26ca1ef7953b81562884b4306becde097a47c
de20432fa3bb0660c7499efd5dd0917f0218670b
refs/heads/features
2023-03-21T11:42:48.043138
2021-03-12T08:49:34
2021-03-12T08:49:34
345,683,743
0
0
null
2021-03-12T08:49:35
2021-03-08T14:27:54
Python
UTF-8
Python
false
false
1,749
py
from app import db from flask_login import UserMixin from datetime import datetime from werkzeug.security import generate_password_hash,check_password_hash from . import login_manager class User(UserMixin,db.Model): __tablename__ = 'users' id = db.Column(db.Integer,primary_key = True) username = db.Colu...
[ "jacksonikonya@gmail.com" ]
jacksonikonya@gmail.com
6ca7eee9d0ea8b564e470641f42e79dd6d3c8de4
35d3bd909cc232b51496b8b07971386305bbc769
/sitemessage/settings.py
649d4678202125f4fcafd413a1db551e4a45344d
[]
no_license
shtalinberg/django-sitemessage
772810beae344529867df2b58e873a04dc6b5c93
dc1a5312316c5d0269380c1f80752437c7a1d6eb
refs/heads/master
2021-01-22T05:57:43.991672
2017-04-15T04:33:30
2017-04-15T04:33:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
782
py
from django.conf import settings # Module name to search sitemessage preferences in. APP_MODULE_NAME = getattr(settings, 'SITEMESSAGE_APP_MODULE_NAME', 'sitemessages') # Whether to register builtin message types. INIT_BUILTIN_MESSAGE_TYPES = getattr(settings, 'SITEMESSAGE_INIT_BUILTIN_MESSAGE_TYPES', True) # Priori...
[ "idlesign@yandex.ru" ]
idlesign@yandex.ru
6a9727a84a58a3c17a257bafd64c3423e263ac0a
9a93a4d9e8d7424ccc3947ed8486083b815c5276
/websockets/exceptions.py
1b758c648ad74be77879f58c0bf6c315f1664f94
[ "BSD-3-Clause" ]
permissive
MariaElysse/websockets
de40f7dea8fa26c5f29a0cc2bf41d78c1acd2ac8
4216b35384c177981c4d18d763248c712b8e21d4
refs/heads/master
2020-03-26T19:26:29.171235
2018-08-11T10:16:12
2018-08-11T10:16:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,462
py
__all__ = [ 'AbortHandshake', 'ConnectionClosed', 'DuplicateParameter', 'InvalidHandshake', 'InvalidHeader', 'InvalidHeaderFormat', 'InvalidHeaderValue', 'InvalidMessage', 'InvalidOrigin', 'InvalidParameterName', 'InvalidParameterValue', 'InvalidState', 'InvalidStatusCode', 'InvalidUpgrade', 'Invali...
[ "aymeric.augustin@m4x.org" ]
aymeric.augustin@m4x.org
bdf28fd0c02c0410299165e2313553ae48a9f9ea
b92417413ec5b05ca25695de55934ce7072a0f0a
/test/test_v1_role.py
8276850e9eb6f7e6038ba217a2d6777c01ea27fd
[ "Apache-2.0" ]
permissive
detiber/lib_openshift
be1f0f1b3eec62c9bbf50a3fcea61303a870c112
efea21ce6f67e3d48885c03ae22978c576c0b87d
refs/heads/master
2021-01-18T04:12:00.820052
2016-10-04T03:20:43
2016-10-04T03:20:43
63,102,761
0
0
null
2016-07-11T21:15:36
2016-07-11T21:15:36
null
UTF-8
Python
false
false
1,212
py
# coding: utf-8 """ OpenAPI spec version: Generated by: https://github.com/swagger-api/swagger-codegen.git 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 ...
[ "jdetiber@redhat.com" ]
jdetiber@redhat.com
d9b8eb05b29632fdf14022991b75fcc4898142aa
76c8a2593316a74078e5ebe3c280d393b058ff67
/vai/commands/JoinWithNextLineCommand.py
c009849009712410c2f67e842d8f74c84019c1ef
[]
no_license
gavd89/vai
b7f746c3ba31397e8d85f477af9b9b71d01795fb
afa3a31b74ee81f9be8ab2c06cd8bdaebae1baad
refs/heads/master
2021-01-16T22:04:05.131998
2014-10-31T22:35:37
2014-10-31T22:35:37
26,130,434
1
0
null
null
null
null
UTF-8
Python
false
false
825
py
from .BufferCommand import BufferCommand from .CommandResult import CommandResult from ..models.TextDocument import LineMeta class JoinWithNextLineCommand(BufferCommand): def execute(self): cursor = self._cursor document = self._document pos = cursor.pos if pos[0] == document.numLi...
[ "stefano.borini@gmail.com" ]
stefano.borini@gmail.com
b78e36b1360b1dd9d552187653a755c3bb26c881
35ff4e124ea73cd2630ddf25dfe019b4b4e3f5d6
/55_JumpGame/55_JumpGame_3.py
01b5f0afae09de958c5980a9bd943ed3ceab4200
[]
no_license
H-Cong/LeetCode
0a2084a4845b5d7fac67c89bd72a2adf49f90c3d
d00993a88c6b34fcd79d0a6580fde5c523a2741d
refs/heads/master
2023-03-19T15:22:00.971461
2021-03-11T00:33:00
2021-03-11T00:33:00
303,265,129
0
0
null
null
null
null
UTF-8
Python
false
false
775
py
class Solution: def canJump(self, nums: List[int]) -> bool: ''' BackTracking ''' return self.canJumpFromPosition(0, nums) def canJumpFromPosition(self, position, nums): if position == len(nums) - 1: return True furthestJump = min(position + nums[posi...
[ "nych1989@gmail.com" ]
nych1989@gmail.com
ef301480c09e8bf0f702faabb05d320f96d1726c
8b3ca44ee3d990233e74655b7131d616094f70c2
/experiments/cross_validation/movielens_1M/gaussian_gaussian_wishart.py
77b129a3b7aae4cbfca58736af054f4dfb1902a5
[]
no_license
zshwuhan/BMF_Priors
8b8c54271285a72d2085a56a9475c0756f375e67
6a600da1c41f1ccde2f2ba99298b40e68fb9910a
refs/heads/master
2021-05-13T19:10:07.203215
2017-12-01T13:30:21
2017-12-01T13:30:21
116,883,181
1
0
null
2018-01-09T23:36:13
2018-01-09T23:36:13
null
UTF-8
Python
false
false
1,730
py
''' Run nested cross-validation experiment on the MovieLens 1M dataset, with the All Gaussian model (multivariate posterior) and Wishart prior. ''' project_location = "/Users/thomasbrouwer/Documents/Projects/libraries/" # "/home/tab43/Documents/Projects/libraries/" # import sys sys.path.append(project_location) fro...
[ "tab43@cam.ac.uk" ]
tab43@cam.ac.uk
d0a7aeff905f45c9098ea9c161be390f6f6400d6
00b24ff5ec169210b1b7cce53b621cbc0ee0fe40
/migrations/versions/e812a221262e_initialized_database.py
5944c31f6d72464d38c440607572aeca5fe9a83d
[]
no_license
carter3689/fakebook-march
1242c052fa51826f56aeb187cfdf41e0464ca4f8
41c2c388e0f19d849eef4572a13fcdffb41d3de4
refs/heads/main
2023-05-04T02:59:00.245789
2021-05-18T16:28:38
2021-05-18T16:28:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
938
py
"""initialized database Revision ID: e812a221262e Revises: Create Date: 2021-04-26 11:24:10.910838 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e812a221262e' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands au...
[ "derekh@codingtemple.com" ]
derekh@codingtemple.com
d2bda2941a3c280e45de65afc578c06a0a1341f7
95f9c734c4bf5de8e5d0adff9ac2cf0228df75ac
/django-pro/opweb/opweb/wsgi.py
afbe2f475b239ff7eb311f1c9c1e5d1dd89b1289
[]
no_license
holen/Python
7a996b13ff2224084397223879c380169d47ff8c
506fff291d6e9c6f80c30a51cc3b77e9dd048468
refs/heads/master
2022-12-12T22:12:51.561716
2019-10-16T03:08:00
2019-10-16T03:08:00
14,278,665
1
0
null
2022-12-08T00:51:26
2013-11-10T15:29:59
Python
UTF-8
Python
false
false
385
py
""" WSGI config for opweb 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.7/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "opweb.settings") from django.core.wsgi ...
[ "yh_zhl@sina.com" ]
yh_zhl@sina.com
15b35b4d0ed83d0b99c75f0e25604fb40d79f538
ea6b3b74c8f1ff9333c5d4b06a0e4dd9bbdb3bba
/tests/rpc/test_reflect_service.py
b7a206e547357b2ef8b7398477b04497c4742ae9
[ "MIT" ]
permissive
sgalkina/venom
d495d296a388afcb25525491bbbe590bfd258a05
e372ab9002e71ba4e2422aabd02143e4f1247dba
refs/heads/master
2021-01-23T03:27:17.239289
2017-03-24T15:05:56
2017-03-24T15:05:56
86,077,951
0
0
null
2017-03-24T14:40:46
2017-03-24T14:40:46
null
UTF-8
Python
false
false
557
py
from unittest import TestCase from venom.rpc import Service, Venom from venom.rpc.reflect.service import ReflectService class ReflectServiceTestCase(TestCase): def test_service_registration(self): class BeforeService(Service): pass class AfterService(Service): pass ...
[ "lars@lyschoening.de" ]
lars@lyschoening.de
a19b592b9058d5945dee87f774bc4ee913bbecf1
0b5f2442b222da2895cdad06913c3687162f06bb
/pyclustering/container/__init__.py
27e87524cc9610c785f192f53863d1b4e7d5a005
[]
no_license
Kinddle-tick/ML_clustering
a765fadde581392de098227b0ee4a9b3572ef24f
27f9887cb383d0d1ea0a4a42788eddc2f4c85c67
refs/heads/master
2023-03-14T18:15:08.350604
2021-03-23T07:16:51
2021-03-23T07:16:51
350,600,754
0
0
null
null
null
null
UTF-8
Python
false
false
168
py
"""! @brief pyclustering module of data structures (containers). @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2020 @copyright BSD-3-Clause """
[ "h88888888123@163.com" ]
h88888888123@163.com
05932b5eb4efff7df2c4efaadaa8037452a9e61d
cd90bbc775cbce9a7e0bc46cbb9437e3961e587f
/misc/advent/2017/5/e.py
4d998c22b9ab5cb25fc7a904a5b71e05e17ea209
[]
no_license
llimllib/personal_code
7b3f0483589e2928bf994184e3413f4b887e1f0c
4d4662d53e0ac293dea8a4208ccca4a1f272e64a
refs/heads/master
2023-09-05T04:02:05.075388
2023-09-01T12:34:09
2023-09-01T12:34:09
77,958
9
16
null
2023-08-16T13:54:39
2008-11-19T02:04:46
HTML
UTF-8
Python
false
false
571
py
def run(cmds): location = 0 counter = 0 l = len(cmds) while 1: try: cmd = cmds[location] if cmd >= 3: cmds[location] -= 1 else: cmds[location] += 1 location += cmd if location < 0: print(c...
[ "bill@billmill.org" ]
bill@billmill.org
b314afaaabc9bbf3ea4b69fe5f6f89638900efc2
04d55063219d484f29bf1a351b87e972b374e9a6
/inversetoon/core/light_estimation/light_estimation.py
f6a43a8535f4fe512287218f1850a235825d8872
[ "MIT" ]
permissive
tody411/InverseToon
5530f63d225f91d1c497f3f80f24c4ccf086aa8f
bc5b922cae9bbf99ed1f020c93b1577c4747ff92
refs/heads/master
2020-05-18T13:32:25.285723
2015-10-06T02:35:15
2015-10-06T02:35:15
39,255,745
4
0
null
null
null
null
UTF-8
Python
false
false
1,150
py
# -*- coding: utf-8 -*- ## @package inversetoon.core.light_estimation # # inversetoon.core.light_estimation utility package. # @author tody # @date 2015/09/07 import numpy as np from inversetoon.np.norm import normalizeVector from inversetoon.core.light_estimation.light_estimation_common import testTo...
[ "tody411@gmail.com" ]
tody411@gmail.com
050fe8dd60fa24022d363e59407aef735c810440
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/P/protanto/vultus_christi_archive.py
a3494ec9528161e0c530bce04e116f028619d6fe
[]
no_license
BerilBBJ/scraperwiki-scraper-vault
4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc
65ea6a943cc348a9caf3782b900b36446f7e137d
refs/heads/master
2021-12-02T23:55:58.481210
2013-09-30T17:02:59
2013-09-30T17:02:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,560
py
from datetime import datetime, timedelta import scraperwiki import requests import lxml.html from lxml.cssselect import CSSSelector as CSS import dateutil.parser import dateutil.tz TARGET = "http://vultus.stblogs.org/archives.html" HEADERS = { 'User-agent': 'Mozilla/5.0 (X11; CrOS i686 2268.111.0) AppleWebKit/536...
[ "pallih@kaninka.net" ]
pallih@kaninka.net
266635f8db60fe89592c32c152f3b53a7832a8f6
2b3f859e7bde80f19e0f823b5e6e73ddb44cb3fe
/tests/migrators/test_group.py
a08a14e4fd2b0715b54d3f317b4ef5b0ed0de7b1
[]
no_license
stormpath/stormpath-migrate
4a0d4bc949da7df416529820bdcd76f590a8fe89
ee43dbddda29a0b85c9901ea1e678660ef3bce36
refs/heads/master
2021-01-22T10:01:37.030105
2017-03-06T19:17:13
2017-03-06T19:17:13
43,518,049
3
1
null
null
null
null
UTF-8
Python
false
false
2,665
py
"""Tests for our GroupMigrator class.""" from os import environ from unittest import TestCase from uuid import uuid4 from stormpath.client import Client from migrate.migrators import DirectoryMigrator, GroupMigrator from migrate.utils import sanitize # Necessary environment variables. SRC_CLIENT_ID = environ['SRC...
[ "r@rdegges.com" ]
r@rdegges.com
86ac7f9bcafb82d17cf1e1940c1920b2fc108579
0b414a080c9853997bfba016c7f66e5f11d80a14
/cj_env/lib/python3.6/site-packages/pysnmp/proto/rfc1901.py
8b7dec076254fc3b3a6d3e95de8296083ff5f1db
[]
no_license
alkhor/Cable_Journal
2bd4bf00210f78c08fcc5508c13833b5e8aa3c46
e64fb1bfcc4d1b7844b2e0a10653264d58039259
refs/heads/master
2021-01-22T19:09:33.562313
2018-04-15T19:42:16
2018-04-15T19:42:16
100,772,711
2
0
null
null
null
null
UTF-8
Python
false
false
554
py
# # This file is part of pysnmp software. # # Copyright (c) 2005-2017, Ilya Etingof <etingof@gmail.com> # License: http://pysnmp.sf.net/license.html # from pyasn1.type import univ, namedtype, namedval from pysnmp.proto import rfc1905 version = univ.Integer(namedValues=namedval.NamedValues(('version-2c', 1))) class M...
[ "khomenkoalexandr@gmail.com" ]
khomenkoalexandr@gmail.com
32a95aa4742fabf685bb335ad6a630b7ee37a801
975b2d421d3661e6770b601929d5f11d981d8985
/msgraph/generated/models/data_subject_type.py
8af8f9227c69c2dc7db37be9eb47d8afd69c4c11
[ "MIT" ]
permissive
microsoftgraph/msgraph-sdk-python
a7c551b85daadeebf76ec4ae12668664ea639b42
27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949
refs/heads/main
2023-09-03T21:45:27.989672
2023-08-31T06:22:18
2023-08-31T06:22:18
534,665,999
135
18
MIT
2023-09-14T11:04:11
2022-09-09T14:00:17
Python
UTF-8
Python
false
false
357
py
from enum import Enum class DataSubjectType(str, Enum): Customer = "customer", CurrentEmployee = "currentEmployee", FormerEmployee = "formerEmployee", ProspectiveEmployee = "prospectiveEmployee", Student = "student", Teacher = "teacher", Faculty = "faculty", Other = "other", Unknown...
[ "GraphTooling@service.microsoft.com" ]
GraphTooling@service.microsoft.com
34405ad77c78331d0d5982215aff3c9b75139970
54ddb3f38cd09ac25213a7eb8743376fe778fee8
/topic_08_functions/examples/6_visibility_global.py
ec56199933ecb0c82714c47ca80123e9fa749b43
[]
no_license
ryndovaira/leveluppythonlevel1_300321
dbfd4ee41485870097ee490f652751776ccbd7ab
0877226e6fdb8945531775c42193a90ddb9c8a8b
refs/heads/master
2023-06-06T07:44:15.157913
2021-06-18T11:53:35
2021-06-18T11:53:35
376,595,962
0
0
null
null
null
null
UTF-8
Python
false
false
208
py
x = 0 def outer(): x = 1 def inner(): global x x = 2 print("inner:", x) inner() print("outer:", x) outer() print("global:", x) # inner: 2 # outer: 1 # global: 2
[ "ryndovaira@gmail.com" ]
ryndovaira@gmail.com
66925b569b205b36e465e85da39a6c1ca0b998ab
cccf8da8d41ae2c14f5f4313c1edcf03a27956bb
/python/python2latex/writeLTXtextrm.py
25de7160851c9ab2eed55ced5886e34a78ecaea7
[]
no_license
LucaDiStasio/transpilers
e8f8ac4d99be3b42a050148ca8fbc5d025b83290
c55d4f5240083ffd512f76cd1d39cff1016909b8
refs/heads/master
2021-01-12T01:57:00.540331
2017-11-01T13:59:55
2017-11-01T13:59:55
78,448,378
1
0
null
null
null
null
UTF-8
Python
false
false
3,283
py
# Autogenerated with SMOP from smop.core import * # @function def writeLTXtextrm(filepath=None,args=None,options=None,*args,**kwargs): varargin = writeLTXtextrm.varargin nargin = writeLTXtextrm.nargin ## #============================================================================== # Copyright (c)...
[ "luca.distasio@gmail.com" ]
luca.distasio@gmail.com
e3d03d32e51e516989a28022f99a1ecc931a3bb1
cb0e7d6493b23e870aa625eb362384a10f5ee657
/solutions/python3/0199.py
55bf7f22754e31867cd312d03f303f6cb6b10e0b
[]
no_license
sweetpand/LeetCode-1
0acfa603af254a3350d457803449a91322f2d1a7
65f4ef26cb8b2db0b4bf8c42bfdc76421b479f94
refs/heads/master
2022-11-14T07:01:42.502172
2020-07-12T12:25:56
2020-07-12T12:25:56
279,088,171
1
0
null
2020-07-12T15:03:20
2020-07-12T15:03:19
null
UTF-8
Python
false
false
384
py
class Solution: def rightSideView(self, root: TreeNode) -> List[int]: def dfs(root: TreeNode, depth: int) -> None: if not root: return if depth == len(ans): ans.append(root.val) dfs(root.right, depth + 1) dfs(root.left, depth +...
[ "walkccray@gmail.com" ]
walkccray@gmail.com
36aa53c07596f0697adcc2a9facc301ec460cbac
c9a6b59b7164b6e402105c802b91d6c2695cec21
/blog/templatetags/isliked.py
36f43c2eee37d031b1f40c6b9824525f9ca61c65
[]
no_license
harunurkst/amar-campus
9b9d10e216c9e85b2c78e0c6720310084d389187
fe0474274fb7419ef70f9463842260af7d6dea2f
refs/heads/master
2021-01-18T20:24:40.343852
2017-04-25T06:07:26
2017-04-25T06:07:26
86,963,328
1
5
null
null
null
null
UTF-8
Python
false
false
391
py
from django import template register = template.Library() @register.filter(name="is_liked") def is_liked(user): post_id = request.POST.get('id', None) post = get_object_or_404(Post, pk=post_id) if post.likes.filter(id=user.id).exists(): post.likes.remove(user) is_liked = False else: ...
[ "harun1393@gmail.com" ]
harun1393@gmail.com
1fa19d44a1c11b59e3a25c948ed5ac15c23cdb30
8c917dc4810e2dddf7d3902146280a67412c65ea
/v_11/EBS-SVN/trunk/purchase_custom/__manifest__.py
90748a083184db83669186389d9fa5f1e7757874
[]
no_license
musabahmed/baba
d0906e03c1bbd222d3950f521533f3874434b993
0b997095c260d58b026440967fea3a202bef7efb
refs/heads/master
2021-10-09T02:37:32.458269
2018-12-20T06:00:00
2018-12-20T06:00:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,230
py
# -*- coding: utf-8 -*- { 'name': "purchase_custom", 'summary': """ Short (1 phrase/line) summary of the module's purpose, used as subtitle on modules listing or apps.openerp.com""", 'description': """ Long description of module's purpose """, 'author': "My Company", '...
[ "bakry@exp-sa.com" ]
bakry@exp-sa.com
b7ac2271f415f595aa5380f77be150c49345beab
f0e25779a563c2d570cbc22687c614565501130a
/Think_Python/ackermann.py
58574bbcd3d3e680558b07a0a04c15c6a2349f44
[]
no_license
XyK0907/for_work
8dcae9026f6f25708c14531a83a6593c77b38296
85f71621c54f6b0029f3a2746f022f89dd7419d9
refs/heads/master
2023-04-25T04:18:44.615982
2021-05-15T12:10:26
2021-05-15T12:10:26
293,845,080
0
0
null
null
null
null
UTF-8
Python
false
false
503
py
"""This module contains code from Think Python by Allen B. Downey http://thinkpython.com Copyright 2012 Allen B. Downey License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html """ def ackermann(m, n): """Computes the Ackermann function A(m, n) See http://en.wikipedia.org/wiki/Ackermann_function n, m: n...
[ "cherry.kong0907@gmail.com" ]
cherry.kong0907@gmail.com
bdb9812cf2874f454a6ae0a548efa9589981824c
3528abad46b15133b2108c237f926a1ab252cbd5
/Core/_Axiom/Transport.py
bc2b7d2b4e8787c324fb18ec12fce7581ef3879f
[]
no_license
scottmudge/MPK261_Ableton
20f08234f4eab5ba44fde6e5e745752deb968df2
c2e316b8347367bd157276f143b9f1a9bc2fe92c
refs/heads/master
2020-03-20T10:56:32.421561
2018-06-14T19:12:47
2018-06-14T19:12:47
137,389,086
1
0
null
null
null
null
UTF-8
Python
false
false
3,693
py
# Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_Axiom/Transport.py # Compiled at: 2018-04-23 20:27:04 from __future__ import absolute_import, print_function, unicode_literals import Live from .consts import * class Transport: u""" Class represent...
[ "mail@scottmudge.com" ]
mail@scottmudge.com
d9e0bc511e4e2824de47b2ed8a38c4a528b2ad2b
1333a965058e926649652ea55154bd73b6f05edd
/4_advanced/ai-py-param-validation/src/paramvalidator/exceptions/validation_exception.py
594afb62d07c15d96b2052c9d63a8accbf4eb5fb
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
grecoe/teals
42ebf114388b9f3f1580a41d5d03da39eb083082
ea00bab4e90d3f71e3ec2d202ce596abcf006f37
refs/heads/main
2021-06-21T20:12:03.108427
2021-05-10T19:34:40
2021-05-10T19:34:40
223,172,099
0
2
null
null
null
null
UTF-8
Python
false
false
269
py
""" (c) Microsoft. All rights reserved. """ class ParameterValidationException(Exception): """ Base exception for parameter validation """ def __init__(self, message): self.message = message def __str__(self): return self.message
[ "grecoe@microsoft.com" ]
grecoe@microsoft.com
a7be7d0c99595985e6a9bcda3ec4af33a03ae376
18057e01c81dc792a73a2e0bd1a4e037de8fefcb
/kaohantei/ninsiki.py
606ec732585a18eb525347fe8015002c5d6950de
[]
no_license
kentahoriuchi/Kenta
15e80018f5c14e1409ac13a7a52c4f64acdce938
97bb657a37f0d89525b04f9157a223b47664793e
refs/heads/master
2020-03-22T14:21:30.221093
2018-07-08T14:22:15
2018-07-08T14:22:15
140,173,191
0
0
null
null
null
null
UTF-8
Python
false
false
1,025
py
from keras.models import load_model from keras.utils.np_utils import to_categorical from keras.optimizers import Adagrad from keras.optimizers import Adam import numpy as np import cv2 import sys dir = "face.jpeg" img = cv2.imread(sys.argv[1]) filepath = "sys.argv[1]" cascade_path = "haarcascade_frontalface_defaul...
[ "dorahori_108@yahoo.co.jp" ]
dorahori_108@yahoo.co.jp
b7721870d8d7c53ef25f4eb6c25ca932b7aa76e7
10d8fab4b21d55cfef0139c04a7f70881f5196f4
/Stack/simplify-directory-path-unix-like.py
db6af1a41488710662509a134bcd9f11f7e8172a
[]
no_license
wilfredarin/geeksforgeeks
a2afcfd2c64be682b836019407e557332d629ab8
5e27cb6706e0ae507694c2170fa00370f219c3e6
refs/heads/master
2021-08-07T05:48:39.426686
2020-08-19T07:25:19
2020-08-19T07:25:19
212,023,179
0
1
null
null
null
null
UTF-8
Python
false
false
2,284
py
"""Simplify the directory path (Unix like) Given an absolute path for a file (Unix-style), simplify it. Note that absolute path always begin with ‘/’ ( root directory ), a dot in path represent current directory and double dot represents parent directory. Examples: "/a/./" --> means stay at the current directory 'a...
[ "noreply@github.com" ]
wilfredarin.noreply@github.com
5dbea0ee8b5ef1ca38d84fa1aaf715f0c794feb4
d89581e043a154a56de69f419f9e7c2f67cf4ff2
/Apps/Engines/Nuke/NukeTools_1.01/Python/minorVersionUp.py
214d1a6323b578537a59a33a18fc91be3ffd8409
[ "MIT" ]
permissive
yazici/CyclopsVFX-Unity
38b121333d5a5a610cf58489822c6f20f825be11
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
refs/heads/master
2020-04-29T15:05:04.942646
2017-11-21T17:16:45
2017-11-21T17:16:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,921
py
#The MIT License (MIT) # #Copyright (c) 2015 Geoffroy Givry # #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, m...
[ "geoff.givry@gmail.com" ]
geoff.givry@gmail.com
975050352947450358340060f69ced694a7463e3
143eb3ced0ff1f9cad745c620fcb572f72d66048
/Assignment4/atom3/Kernel/GenericGraph/models/test_GenericGraph_mdl.py
fd96c32e3307d5950cd3b3ee0c3afc1ddfd9c6c7
[]
no_license
pombreda/comp304
2c283c60ffd7810a1d50b69cab1d5c338563376d
d900f58f0ddc1891831b298d9b37fbe98193719d
refs/heads/master
2020-12-11T07:26:19.594752
2014-11-07T12:29:28
2014-11-07T12:29:28
35,264,549
1
1
null
2015-05-08T07:18:18
2015-05-08T07:18:18
null
UTF-8
Python
false
false
1,825
py
from graph_ASG_ERmetaMetaModel import * from stickylink import * from widthXfillXdecoration import * from ASG_GenericGraph import * from ASG_GenericGraph import * from GenericGraphNode import * from GenericGraphEdge import * from ATOM3Enum import * from ATOM3String import * from ATOM3BottomType import * from ATOM3Const...
[ "shankland@bigvikinggames.com" ]
shankland@bigvikinggames.com
65b3e12a7a4232da82a51c7d4fddf642b3b3700e
2df82b931c89ac70d49b0716d642d8e355926d50
/product/urls.py
87647f6494c6266c870dd2feb79bc260185026f8
[]
no_license
khanansha/producthunt
1a638104e83803b9afc4a51ff3ead438ae47cab6
03b8d45091c88a2ff142f0a3082910ac1fa0ba41
refs/heads/master
2021-05-26T03:21:35.246011
2020-04-08T08:41:17
2020-04-08T08:41:17
254,031,608
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
from django.urls import path, include from . import views urlpatterns = [ path('create', views.create, name='create'), path('<int:product_id>', views.detail, name='detail'), path('<int:product_id>/upvote', views.upvote, name='upvote'), ]
[ "anjumkhan88987@gmail.com" ]
anjumkhan88987@gmail.com
7f33ebf6e4c0e218d49274dab77575fbad6f4e72
b3638a57ff986c9af7281f057bd4cb5641c11589
/백준/210803_최단경로/11404플로이드.py
e3904cdf037eb2b00770b01adef797ef64f2da63
[]
no_license
commGom/pythonStudy
6adc01faddbe3ef88e0cbab9da174caa77857ff7
a5d52e66dfd0b3b7538454ca2b6fcd9665f83e6c
refs/heads/main
2023-08-25T12:21:27.670495
2021-10-04T08:19:42
2021-10-04T08:19:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,119
py
# 5 # 14 # 1 2 2 # 1 3 3 # 1 4 1 # 1 5 10 # 2 4 2 # 3 4 1 # 3 5 1 # 4 5 3 # 3 5 10 # 3 1 8 # 1 4 2 # 5 1 7 # 3 4 2 # 5 2 4 import sys input=sys.stdin.readline # 도시의 갯수 N, 버스의 갯수 M N=int(input()) M=int(input()) # 버스의 도착도시, 드는 비용 값을 저장할 graph #버스의 출발도시 도착도시 드는비용 순으로 값을 M번 받는다 graph=[[0 for col in range(N+1)] for row ...
[ "babywhitebear2021@gmail.com" ]
babywhitebear2021@gmail.com
aeeee04864a4e9f90e0b78751f06a0c1734023fe
ffca2ab12cb1dad9e3ddd6bf0f615cef91db62e5
/test.py
cf87ab1380fb1dd2c650be87a67e7c934d453c5d
[ "MIT" ]
permissive
CyborgVillager/Block-Tower-Defense
0ee26678bb00951b1168f5bc20c762c04cf8a648
287da85c852e8596de9e57827845c6d7db286ec9
refs/heads/master
2020-12-02T02:22:29.347524
2019-12-30T10:54:27
2019-12-30T10:54:27
230,857,127
0
0
MIT
2019-12-30T06:00:15
2019-12-30T06:00:14
null
UTF-8
Python
false
false
1,138
py
import pygame pygame.init() screen = pygame.display.set_mode((640, 480)) pygame.display.set_caption("Hello, world!") background = pygame.Surface(screen.get_size()) background = background.convert() background.fill((100, 60, 25)) clock = pygame.time.Clock() keepGoing = True color = (100, 100, 100) size = (150, 50) po...
[ "almawijonathan@gmail.com" ]
almawijonathan@gmail.com
d5a5c939def085847ffa6a958f51d3a0dee2867d
ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f
/Sourcem8/pirates/world/ZoneLOD.py
484017d0780e356d8af203a398a3626258d15e5c
[]
no_license
BrandonAlex/Pirates-Online-Retribution
7f881a64ec74e595aaf62e78a39375d2d51f4d2e
980b7448f798e255eecfb6bd2ebb67b299b27dd7
refs/heads/master
2020-04-02T14:22:28.626453
2018-10-24T15:33:17
2018-10-24T15:33:17
154,521,816
2
1
null
null
null
null
UTF-8
Python
false
false
7,823
py
from pandac.PandaModules import * from direct.showbase.DirectObject import DirectObject from direct.showbase.PythonUtil import * from otp.otpbase import OTPGlobals from pirates.piratesbase import PiratesGlobals class ZoneLOD(DirectObject): notify = directNotify.newCategory('ZoneLOD') def __init__(self, unique...
[ "brandoncarden12345@gmail.com" ]
brandoncarden12345@gmail.com
b6f879be814c5cb7ae7e78b1b76cb8c2557580c5
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_4_neat/16_0_4_kylewilson_d.py
f0a169990ea6d378bafc747d1a45704aacf52a63
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
355
py
f = open("D-small-attempt0.in", "r") fo = open("out.txt","w") count = int(f.readline()) for case in xrange(0,count): print case line = f.readline().split() k = line[0] c = line[1] s = line[2] fo.write("Case #" + str(case + 1) + ":") if s < k: fo.write(" IMPOSSIBLE") else: for x in range(int(k)): fo.wr...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
0468f8f8d3852fec3500d09cba904bdbd0e2e2c9
bc9abf538f5d4093324b2f055f0b090fe4b03247
/python/etc/primer3d.py
e4712fca4b2656dfe05717a7fff112e19d3cfd1f
[]
no_license
galaxysd/GalaxyCodeBases
3c8900d0c2ca0ed73e9cf4c30630aca4da6cc971
58946261bf72afd6a7287e781a2176cdfaddf50e
refs/heads/master
2023-09-04T04:59:35.348199
2023-08-25T01:04:02
2023-08-25T01:04:02
33,782,566
7
6
null
2020-09-04T06:06:49
2015-04-11T16:12:14
C
UTF-8
Python
false
false
4,773
py
#!/usr/bin/env python3 import argparse import logging import primer3 # https://github.com/libnano/primer3-py # https://brcaexchange.org/variants and click "Show All Public Data", then click "Download" to get `variants.tsv`. # gzcat ~/Downloads/variants.tsv.gz|head -n30|awk -F'\t' '{if (length($124)+length($125)==2 ||...
[ "galaxy001@gmail.com" ]
galaxy001@gmail.com
d2fe44622bb24756b61b213bf3e55799154afa69
ca752ad55da471392e8690437d9a672c9a52bf2a
/manage.py
30ad0b0215c06bac6732623c2d633d4d66ec30aa
[]
no_license
fortable1999/zhaomengblog
9280f8bbb1b8f8bbb8e56e26b0b7fb074e07685b
f9ee379affee99ebf8a4a6da2b322fb469451fe9
refs/heads/master
2021-01-10T21:30:37.297876
2013-07-12T13:05:47
2013-07-12T13:05:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "zmblog.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "fortable1999@gmail.com" ]
fortable1999@gmail.com
e7b36c21f59ad06459d4b86ada0988020ae3ef90
463c8ba5baad086d37819804af4ee10f43ab6dd5
/Algorithm/190911/실수_연습문제3.py
82ce02e942a893598cacf8b5c5949694673348f5
[]
no_license
sooya14/TIL
dbbb0608d45ce273ddef6f7cea1b1195285f269d
232b0d38d8f6ee2e6e5517bfd6a2a15cf1000dad
refs/heads/master
2023-01-11T17:12:39.370178
2020-05-11T12:06:41
2020-05-11T12:06:41
195,916,241
0
0
null
2023-01-05T18:22:56
2019-07-09T02:17:42
Jupyter Notebook
UTF-8
Python
false
false
169
py
def Bbit_print(i): output = '' for j in range(15, -1, -1): output += '1' if i & (1 << j) else '0' return output a = 0xDEC print(Bbit_print(a))
[ "soosmile9653@gmail.com" ]
soosmile9653@gmail.com
ba50d67df374167270831ee86f66ac7d0f40ba3f
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/F/frabcus/p-francis.py
16380646750da2ccabd56a5aaf6b52e69bb3b125
[]
no_license
BerilBBJ/scraperwiki-scraper-vault
4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc
65ea6a943cc348a9caf3782b900b36446f7e137d
refs/heads/master
2021-12-02T23:55:58.481210
2013-09-30T17:02:59
2013-09-30T17:02:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
import scraperwiki print "hello, world" download = scraperwiki.scrape("http://un.org/") print download data = { 'foo': 10, 'bar': 'hello' } scraperwiki.sqlite.save( ['foo'], data ) import scraperwiki print "hello, world" download = scraperwiki.scrape("http://un.org/") print download data = { 'foo': 10, 'bar': '...
[ "pallih@kaninka.net" ]
pallih@kaninka.net
511a12dcf6ad86e4c5a9d820d091e7c541027811
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03239/s021170085.py
463b5e90f404a028b4f64d43dc4fefef0042eb47
[]
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
280
py
def resolve(): n,T=map(int,input().split()) ans=10000 for i in range(n): c,t=map(int,input().split()) if t<=T: ans=min(ans,c) if ans==10000: print('TLE') else: print(ans) if __name__ == '__main__': resolve()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
db0075a312c5191fbe8ab1c749b93da07077d880
2eeda6bfea74cf746f8223274ee9ec25b9387526
/dgCubeDemo/testString.py
8641d86826c9af2d47311dc85fb3b364d42349e4
[]
no_license
PowerDG/PycharmProjects
74f6468964d64846d8c979260a51f375e5d0476d
74a7f18be4a7337eef546e4bf3cc6320b9f5b39d
refs/heads/master
2022-12-09T09:25:11.993089
2020-09-18T13:28:00
2020-09-18T13:28:00
287,977,596
0
0
null
null
null
null
UTF-8
Python
false
false
2,391
py
# !/usr/bin/env python # -*- coding:utf-8 -*- # outhor:xinlan time: # 我是中国人 """ https://zhuanlan.zhihu.com/p/52770875 我是中国人, 那你呢 """ str1 = '我叫 %s,俺爹是 %s' % ('小王', '老王') print(str1) nameStr = '马爸爸' moneyStr = '有钱' print('用+将字符串合并,', nameStr + moneyStr) # === 列表----[ ] nameList = ['猴子', '马云', '王健林', '马化腾'] n...
[ "1049365046@qq.com" ]
1049365046@qq.com
480312fb4dd33c1c96bed2d89c5eda9c402cec34
b7f3edb5b7c62174bed808079c3b21fb9ea51d52
/third_party/blink/renderer/build/scripts/make_origin_trials.py
db5b93a998e28fcaa8ec63a52fc4e2229de671db
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
otcshare/chromium-src
26a7372773b53b236784c51677c566dc0ad839e4
64bee65c921db7e78e25d08f1e98da2668b57be5
refs/heads/webml
2023-03-21T03:20:15.377034
2020-11-16T01:40:14
2020-11-16T01:40:14
209,262,645
18
21
BSD-3-Clause
2023-03-23T06:20:07
2019-09-18T08:52:07
null
UTF-8
Python
false
false
5,714
py
#!/usr/bin/env python # Copyright (C) 2015 Google Inc. 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 ...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
7c4beb4c63680a1ee45c5c97a528c02e1ef70d08
ae7ba9c83692cfcb39e95483d84610715930fe9e
/yubinbai/pcuva-problems/UVa 12493 stars/main.py
779906f17e251db0fb19cfabdf8ad7b649c8263a
[]
no_license
xenron/sandbox-github-clone
364721769ea0784fb82827b07196eaa32190126b
5eccdd8631f8bad78eb88bb89144972dbabc109c
refs/heads/master
2022-05-01T21:18:43.101664
2016-09-12T12:38:32
2016-09-12T12:38:32
65,951,766
5
7
null
null
null
null
UTF-8
Python
false
false
468
py
import sys import math def primeFactors(n): i = 2 result = [] while i <= math.sqrt(n): while n % i == 0: result.append(i) n /= i i += 1 if n != 1: result.append(n) result.sort() return result sys.stdin = open('input.txt') while True: try: ...
[ "xenron@outlook.com" ]
xenron@outlook.com
c41013fcbae7df51d04a6e80c96ad4de24752f18
d0aade2edd6ba5750d70c70198a4bfe16356355e
/maskrcnn_benchmark/modeling/poolers.py
754b5147485769c9de1ff6429e4a1300a0e27231
[ "MIT" ]
permissive
mjq11302010044/RRPN_pytorch
ca3a6b781d49b80323671581ea0a5c13ca500a7a
a966f6f238c03498514742cde5cd98e51efb440c
refs/heads/master
2022-08-29T07:29:20.311262
2020-10-16T02:29:19
2020-10-16T02:29:19
184,703,273
305
68
MIT
2020-04-30T06:37:19
2019-05-03T05:28:03
Python
UTF-8
Python
false
false
7,295
py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch import torch.nn.functional as F from torch import nn from maskrcnn_benchmark.layers import ROIAlign from maskrcnn_benchmark.layers import RROIAlign from .utils import cat class LevelMapper(object): """Determine which FPN level ...
[ "mjq11302010044@gmail.com" ]
mjq11302010044@gmail.com
ded84433bff0e82fd58f4dc304b9a645a18403dd
dfad28a2e1a0199c0117e551fd1e31804804d5b9
/app/__init__.py
6efcbe27d1084742b368ce958eb28dc8ecdb33de
[ "MIT" ]
permissive
wilbrone/Pitches
c33d60b142b43de9ccf60a86cf59acbc262c6711
b20d234fd930a6551f26d9cf863c6d1631b62bc2
refs/heads/master
2022-12-09T08:02:08.631177
2019-11-25T23:47:13
2019-11-25T23:47:13
223,405,696
0
0
MIT
2022-12-08T06:55:48
2019-11-22T13:09:30
Python
UTF-8
Python
false
false
1,139
py
from flask import Flask from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy from flask_mail import Mail from flask_login import LoginManager from flask_simplemde import SimpleMDE # from flask_uploads import UploadSet,configure_uploads,IMAGES from config import config_options bootstrap = Boo...
[ "wilbroneokoth@gmail.com" ]
wilbroneokoth@gmail.com
fa772d6c102d931e816220e31d045e9b09bf18ab
3fd9c7ee49a32eae3013191b63154a9a5d6dafe6
/12.6驾驶飞船/12.6.4调整飞船的速度/alien_invasion_0.10.py
07be0e8c4159b335189b2368a83e687b00039bf0
[]
no_license
taozhenting/alien_invasion
e0c03cd9797cb33e40ca47a13eadeda8b1c4cf85
fd9bd97d6238da702fbb1eb6fcb78e8352875fe2
refs/heads/master
2020-04-27T05:31:48.862784
2019-01-30T09:43:49
2019-01-30T09:43:50
174,083,029
0
0
null
null
null
null
UTF-8
Python
false
false
885
py
#修改while循环,每次执行循环时调用飞船方法update() import pygame from settings_2 import Settings from ship_4 import Ship import game_functions_5 as gf def run_game(): #初始化游戏并创建一个屏幕对象 pygame.init() #创建Settings实例存储在ai_settings变量中 ai_settings = Settings() #使用ai_settings的属性screen_width和screen_height screen = pygame...
[ "taozt@ichile.com.cn" ]
taozt@ichile.com.cn
584201b3a981910411696aaa3cbbeb9fa1d2944e
8f8f40280afdd0c47fd39664b43c8fb45d86a285
/code_sd_ssc/plot_utils.py
d11d53930b5434a904ba8695ee4e51e7e4f4b739
[]
no_license
shibaji7/IP_Shock_SSC_SuperDARN
d463341c432e14c3007a0540ad96b4325289d6c0
32ea9d72d2ab68a7b80ab12f41228783370b6d4f
refs/heads/main
2023-02-19T14:32:43.806681
2021-01-23T02:41:00
2021-01-23T02:41:00
303,022,533
1
0
null
null
null
null
UTF-8
Python
false
false
3,803
py
#!/usr/bin/env python """plot_utils.py: module is dedicated to plot different types of parameters""" __author__ = "Chakraborty, S." __copyright__ = "Copyright 2020, SuperDARN@VT" __credits__ = [] __license__ = "MIT" __version__ = "1.0." __maintainer__ = "Chakraborty, S." __email__ = "shibaji7@vt.edu" __status__ = "Re...
[ "shibaji7@vt.edu" ]
shibaji7@vt.edu
f0b36e876db026e32aeb47a005d47490db58f2bd
ff23e5c890216a1a63278ecb40cd7ac79ab7a4cd
/clients/client/python/test/test_update_recovery_flow_body.py
91fe274624feee373ef8d631fc0e1e6dd405c9ab
[ "Apache-2.0" ]
permissive
ory/sdk
fcc212166a92de9d27b2dc8ff587dcd6919e53a0
7184e13464948d68964f9b605834e56e402ec78a
refs/heads/master
2023-09-01T10:04:39.547228
2023-08-31T08:46:23
2023-08-31T08:46:23
230,928,630
130
85
Apache-2.0
2023-08-14T11:09:31
2019-12-30T14:21:17
C#
UTF-8
Python
false
false
1,293
py
""" Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 The version of the OpenAPI document: v1.1.51 Contact: support@ory.sh Generated by: https://ope...
[ "3372410+aeneasr@users.noreply.github.com" ]
3372410+aeneasr@users.noreply.github.com