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
f4b8ace87d62e440bda718c65dc67ddae293fc3c
5fd80d4197d725533177233e0dc9892b2f6afba2
/code/MNI/nii_fix_header_100um_bstem_MNI.py
1aef6a29e7ee011008e7041df6cb8f4077ebd0af
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sitek/subcortical-auditory-atlas
3ceaaacd2fc0d0d401ff61b5854b2395a28022f6
8218140c457ab97a6d897eb26aae4d6240596033
refs/heads/master
2021-10-26T00:20:11.108550
2021-10-18T14:12:11
2021-10-18T14:12:11
172,933,637
3
3
null
2019-02-27T15:44:40
2019-02-27T14:47:40
null
UTF-8
Python
false
false
1,135
py
"""Modify nifti header to make 100um bstem volume overlay correctly on MNI. Notes ----- I have compared nifti headers from MNI 0.5 data (2009b) and our resampled brainstem-only 100um images. Sform and Qfroms were different. So I have copied headers from MNI and override sform with a translation-only transformation. Th...
[ "farukgulban@gmail.com" ]
farukgulban@gmail.com
1b4a77dd9c603ea369037e6c87ffc15467da8465
6f2267dcb42d1090d2a94269824544af64415baf
/parsimonyProteinEstimator.py
af3d39ec9d18789d6ae48b17b1852a0720a03f24
[ "MIT" ]
permissive
jfnavarro/proteomics
2e9aac6b1e96cf8eb0897bdf57fed40d9e2f7023
55af142236a032659e573a32717065f67423aefc
refs/heads/master
2020-05-27T21:22:50.918090
2017-03-02T12:14:31
2017-03-02T12:14:31
83,673,385
1
0
null
null
null
null
UTF-8
Python
false
false
7,638
py
#! /usr/bin/env python # @Created by Jose Fernandez # dec 10th, 2011 import sys import os from operator import itemgetter, attrgetter import getopt import random import copy from pygraph.classes.graph import graph from pygraph.algorithms.accessibility import connected_components import itertools import percolatorUtils...
[ "jc.fernandez.navarro@gmail.com" ]
jc.fernandez.navarro@gmail.com
6112c697a70e833d28ce13dd17b7f78303aec4f9
e5a511e346f5be8a82fe9cb2edf457aa7e82859c
/SANFOUNDRY/File Handling/Number_LetterAppear.py
5c6adf41bfcd151db5e2de09c794ffc47e2a345c
[]
no_license
nekapoor7/Python-and-Django
8397561c78e599abc8755887cbed39ebef8d27dc
8fa4d15f4fa964634ad6a89bd4d8588aa045e24f
refs/heads/master
2022-10-10T20:23:02.673600
2020-06-11T09:06:42
2020-06-11T09:06:42
257,163,996
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
#Python Program that Reads a Text File and Counts the Number of Times a Certain Letter Appears in the Text File word = input() k= 0 with open("C:\\Users\\nekapoor\\git\\Python-and-Django\\PYTHON PROGRAMS\\file_data\\word.txt",'r',encoding='utf-8') as file1: for line in file1: words = line.split() f...
[ "neha.kapoor070789@gmail.com" ]
neha.kapoor070789@gmail.com
df33c2ed146024e9a89e9fa33a8835490f3d3ce2
6acea1c5206052393beb5cba132f40e55b637c11
/doc_curation_projects/puraaNa/mahaabhaarata/main.py
cbe38e919df4ee2f9ad880ee70f89e4ed95a3d39
[ "MIT" ]
permissive
sanskrit-coders/doc_curation
a44afacf68d1711bcebd02c97b30a42b6d82bccc
db330393d3df052c008811f4b442421900e5fa84
refs/heads/master
2023-08-27T09:41:22.784001
2023-08-11T05:40:46
2023-08-11T05:40:46
157,027,340
8
4
MIT
2022-12-08T08:26:49
2018-11-10T22:32:26
Python
UTF-8
Python
false
false
861
py
import os import regex from doc_curation.md import library from doc_curation.md.library import arrangement from doc_curation.md.file import MdFile from doc_curation.md.library import metadata_helper from indic_transliteration import sanscript ROOT_DIR = "/home/vvasuki/gitland/vishvAsa/purANam/content/mahAbhAratam/g...
[ "vishvas.vasuki@gmail.com" ]
vishvas.vasuki@gmail.com
e5ca3860812a92b08a9e1ea5bc17d91c194f55d7
fe096ed06c34ae3adf958760886dd5f2fc64fa90
/String/checkIfWordEqualsSummationOfTwoWords.py
a6adc034bdc42de68d00ca52d496cce63c76a4ed
[]
no_license
harshmalviya7/LeetCode_Coding_Questions
c9d8a93f4a5664dcf57098cd58f3f1d95667b0c0
47edb51e55e390861ed539972d8bf66b41b4cdd7
refs/heads/master
2023-08-23T01:09:40.110710
2021-10-21T12:53:36
2021-10-21T12:53:36
373,072,675
4
0
null
null
null
null
UTF-8
Python
false
false
560
py
# 1880. Check if Word Equals Summation of Two Words # https://leetcode.com/problems/check-if-word-equals-summation-of-two-words/ class Solution: def isSumEqual(self, firstWord: str, secondWord: str, targetWord: str) -> bool: a=b="" for i in firstWord: a+=str(ord(i)-ord("a")) for ...
[ "harsh.malviya.9869@gmail.com" ]
harsh.malviya.9869@gmail.com
38e9ecf7b71facdb55664abfe8b885fe3a91ee90
5286255a93db21ea9defc1f8f6fc71990c3c2fa9
/hadronic/python/.svn/text-base/Binned_AlphaT_HT_275.py.svn-base
709f4b7e180d10b4434e91c1b011e146b727939b
[]
no_license
brynmathias/AnalysisV2
1367767dbf22eef6924700c4b0a00581ea8ed965
ee17c019bb04243876a51c7ef7719cc58a52adea
refs/heads/master
2021-01-01T19:20:27.277628
2012-04-17T13:34:26
2012-04-17T13:34:26
2,600,415
0
2
null
null
null
null
UTF-8
Python
false
false
3,620
#!/usr/bin/env python import setupSUSY from libFrameworkSUSY import * from libHadronic import * from icf.core import PSet,Analysis from time import strftime from time import strftime from Binned_Sample_Config import * mu_id = PSet( doJetLoop = False, MuID = "Tight", MinPt = 10., MaxEta = 2.5, MaxI...
[ "brynmathias@gmail.com" ]
brynmathias@gmail.com
3a01a8fdba71a65adf3baf88eba22afbbf524627
d299522b5fd95946f9b9819cd78ba684566bfcc6
/zypmediaProject/zypmediaProject/asgi.py
d34e5f23b474357d2ae427de022e4fcd736fad1f
[]
no_license
knkemree/zypmedia
48a94024725e2761f3dee16eb39af48d4b427041
b87845f7d0ac40e57a73811903c93642b809ee41
refs/heads/master
2023-07-18T17:37:18.436487
2020-04-20T00:38:09
2020-04-20T00:38:09
257,132,264
0
0
null
2021-09-22T18:54:05
2020-04-20T00:33:28
Python
UTF-8
Python
false
false
407
py
""" ASGI config for zypmediaProject project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJAN...
[ "konakziyaemre@gmail.com" ]
konakziyaemre@gmail.com
40283026b2164dae89e7d3fb2f708c301a700d78
90afc972b2259054e7cc9b63ec19bf11c3153e48
/problems/A/YetAnotherTwoIntegersProblem.py
527f947faa292d49591c35c063e6e3570581acc9
[ "MIT" ]
permissive
Ahsanhabib1080/CodeForces
88ca768ceefa409b0c10cac500148bfaf19e3c7e
707b374f03012ec68054841f791d48b33ae4ef1b
refs/heads/master
2023-05-26T20:58:23.180369
2021-06-19T02:40:15
2021-06-19T02:40:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
850
py
__author__ = 'Devesh Bajpai' ''' https://codeforces.com/problemset/problem/1409/A Solution: Since we can use all numbers from 1 to 10, we try greedily to employ 10 to either increase or decrease a so that we get a and b only differ in units place. Now for that, we do one another move using the suitable number from 1 ...
[ "devesh.bajpai19@gmail.com" ]
devesh.bajpai19@gmail.com
4e46214fbc28086d5728ea814bfb61aa885e5d64
7a8e69fe45340351119cf014f757284722b784dd
/log/regenerate_log_config.py
ca7d3a9ba76c40cf775e6d636390406db7dbe2b9
[]
no_license
texttest/capturemock
41b819089f1656f38be6a5be8d8ba1b31f34ef6c
427b95518ab30c43fddd4b7eff6c4d87b38d500d
refs/heads/master
2023-08-31T00:42:52.995777
2023-08-30T08:10:55
2023-08-30T08:10:55
173,738,877
1
2
null
null
null
null
UTF-8
Python
false
false
514
py
#!/usr/bin/env python import logconfiggen, os if __name__ == "__main__": gen = logconfiggen.PythonLoggingGenerator("logging.conf", prefix="%(LOCAL_DIR)s/", postfix="diag") enabledLoggerNames = [] installationRoot = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) coreLib = os.path....
[ "geoff.bache@jeppesen.com" ]
geoff.bache@jeppesen.com
db099f4d8f989a94cf875c679029348dfbefb853
05ec80585e500eb75baade82bada8f0c5a2a76dc
/Dynamic programming/longest _increasing_subsequence.py
e966438fa3a49d8ced2e5c92660e90d237b00f5a
[]
no_license
NenadPantelic/GeeksforGeeks-Must-Do-Interview-preparation
24477da148d4b9fe8113f669f21984d081327563
180c6b1bc6a4b6e1b44c409c220368b391b672b8
refs/heads/master
2021-01-05T19:16:22.436554
2020-11-15T14:39:02
2020-11-15T14:39:02
241,113,139
1
0
null
null
null
null
UTF-8
Python
false
false
909
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 27 20:44:18 2020 @author: nenad """ def longest_increasing_subsequence(arr): n = len(arr) # dp array - stores length of lic so far, to that element (lic = longest incr. subseq.) dp = [1] * n for i in range(1, n): for j...
[ "nenadpantelickg@gmail.com" ]
nenadpantelickg@gmail.com
b8e791d73735e95cad87affccd971e1b2eb3e33a
a29b8d6ae6642ef80d04ae99d721b703de06db69
/maro/rl/training/proxy.py
04f1af849809f1515574dcb8ba1b90573d02b320
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
microsoft/maro
6aab1a4e86fddabf7f242f0d1020d985a5f7a5f3
b3c6a589ad9036b03221e776a6929b2bc1eb4680
refs/heads/master
2023-08-24T16:52:38.250279
2023-05-15T04:31:58
2023-05-15T04:31:58
230,389,247
764
158
MIT
2023-07-25T20:59:06
2019-12-27T06:48:27
Python
UTF-8
Python
false
false
4,451
py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from collections import defaultdict, deque from typing import Deque from maro.rl.distributed import DEFAULT_TRAINING_BACKEND_PORT, DEFAULT_TRAINING_FRONTEND_PORT, AbsProxy from maro.rl.utils.common import bytes_to_pyobj, pyobj_to_bytes from maro...
[ "noreply@github.com" ]
microsoft.noreply@github.com
58d9aabaac368bc6ae17836b33c9f76efc4dc49f
68bad4b3d92872bb5b77b4ee503e588d20511a27
/python/scripts_inhibition/old_script/simulate_beta_ZZZ28.py
5684088f6e8cd344eda96ce56369f172ea5f94da
[]
no_license
mickelindahl/bgmodel
647be626a7311a8f08f3dfc897c6dd4466fc0a92
78e6f2b73bbcbecd0dba25caf99f835313c914ee
refs/heads/master
2023-08-29T13:57:04.122115
2022-02-11T14:28:23
2022-02-11T14:28:23
17,148,386
7
3
null
null
null
null
UTF-8
Python
false
false
3,080
py
''' Created on Aug 12, 2013 @author: lindahlm ''' from core import monkey_patch as mp mp.patch_for_milner() from scripts_inhibition.base_simulate import (get_path_rate_runs, get_path_logs, get_args_list_oscillation, get_kwargs_list_indv_nets, par_pro...
[ "mickelindahl@gmail.com" ]
mickelindahl@gmail.com
fb2346b9ad315ac2189f0206a2f221d970aa4b10
9cd0f22b1b335c8dd59addcbe3032141e76af8b5
/5. Modules/Time Functions/max.py
1574df91767dea2f55ddce024edfb2a537f6facb
[]
no_license
Swapnil2095/Python
06e6249d8f50767fce8fcdddbfd0aefc23d3deae
d11270391c4d3c30f59266a5bc3216dad8fc81b7
refs/heads/master
2022-02-28T08:12:27.266950
2019-09-24T15:48:20
2019-09-24T15:48:20
103,416,564
0
2
null
2019-10-24T11:16:40
2017-09-13T15:22:54
HTML
UTF-8
Python
false
false
530
py
# Python code to demonstrate the working of # fromtimestamp(), min() and max() # importing built in module datetime import datetime from datetime import date # using fromtimestamp() to calculate date print ("The calculated date from seconds is : ",end="") print (date.fromtimestamp(3452435)) # using min() to print mi...
[ "swapnilgaikwad7291@gmail.com" ]
swapnilgaikwad7291@gmail.com
90a6640e143b216a86533c52753f190d8b2451d5
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_8/fkzluv001/question2.py
79e0901ce8ec1b3c98e8f143163aacb12caab979
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
478
py
""" a program that uses a recursive function to count the number of pairs of repeated characters in a string. Luvo Fokazi 10 May 2014""" x=input("Enter a message:\n") def Pairs(rString,n,count): d=n+1 if d > (len(rString)-1): return count elif(rString[n]==rString[d]): count=count+1 ...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
ae60b65118d3c1180e197aad843b28bad254a6a6
f8aa2abd61af6a6f4ac770f203e36403551d2c55
/server/swissvoice/__init__.py
1b0167924380b0359bc9d86a3cd60acb9cf8c284
[ "MIT" ]
permissive
DeepSwissVoice/SwissVoice
cebee779e49149ecf57a4be5bd44e2a0160f77bb
b99efff65112ee30fdfa089ef7b2755018290921
refs/heads/master
2021-05-08T20:17:02.416722
2018-09-07T08:20:18
2018-09-07T08:20:18
119,602,340
2
1
MIT
2018-09-07T08:20:19
2018-01-30T22:25:50
JavaScript
UTF-8
Python
false
false
140
py
import logging.config from . import config logging.config.dictConfig(config.logging) from .__info__ import * from .swissvoice import app
[ "siku2@outlook.de" ]
siku2@outlook.de
b0816e688ccd18e04b9c7d02949605c44f46615a
8dad9c4fc22ba754179a86a5c74467249685b171
/GCP/json_iot/json1.py
bb660dae90fab86e85c42e30b61f2ff2e8022988
[]
no_license
ANTZ314/raspi
d3aefab9694c73767e0b243a8539f0c2fbb713a5
a1688c2c3b0f0372f3c5674c8e098dcbebbfd38a
refs/heads/master
2021-06-10T18:08:50.308992
2021-06-03T14:58:03
2021-06-03T14:58:03
173,297,127
0
0
null
null
null
null
UTF-8
Python
false
false
4,183
py
# -*- coding: utf-8 -*- """ Description: Read from text file - which will be the QR Code scan Fill in data feilds in the dictionary with QR data Convert all data from dictionary to JSON format Write to JSON file NOTE: File CANNOT be called "json.py" -> causes error """ import json from datetime import datetime ## Pro...
[ "antony.smith411@gmail.com" ]
antony.smith411@gmail.com
b0078682d9309b0533457415986f66be8d1f638d
a8042cb7f6a4daec26b8cea6b7da2cb7cb880a84
/1344_AngleBetweenHandsofaClock.py
b0035c31ef61dbd58bc25508541a1fc4c9a5d6bb
[]
no_license
renukadeshmukh/Leetcode_Solutions
0108edf6c5849946623a75c2dfd57cbf9bb338e4
1211eac167f33084f536007468ea10c1a0ceab08
refs/heads/master
2022-11-10T20:48:42.108834
2022-10-18T07:24:36
2022-10-18T07:24:36
80,702,452
3
0
null
null
null
null
UTF-8
Python
false
false
1,674
py
''' 1344. Angle Between Hands of a Clock Given two numbers, hour and minutes. Return the smaller angle (in sexagesimal units) formed between the hour and the minute hand. Example 1: Input: hour = 12, minutes = 30 Output: 165 Example 2: Input: hour = 3, minutes = 30 Output: 75 Example 3: Input: hour = 3, minutes = ...
[ "renud1988@gmail.com" ]
renud1988@gmail.com
9590a703ebd7cccb5148bfef900a8672639e429e
09d44d959a474c55feea0d5560f505db4daa059b
/cfripper/cfripper/rules/iam_roles.py
2f2daf9ce03d5897877fe345f4f68083a5c25528
[ "Apache-2.0" ]
permissive
chuckbnorris/Canivete
c0b50809d09c5cf9b01ea969799ab90503593d9d
b8acef26765816c0bf33ed195a8bd74df03c7b70
refs/heads/main
2023-03-22T21:39:41.459158
2021-03-14T17:00:37
2021-03-14T17:00:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,629
py
__all__ = ["IAMRolesOverprivilegedRule", "IAMRoleWildcardActionOnPolicyRule"] from typing import Dict, Optional from pycfmodel.model.cf_model import CFModel from pycfmodel.model.resources.iam_managed_policy import IAMManagedPolicy from pycfmodel.model.resources.iam_role import IAMRole from cfripper.config.regex impo...
[ "gustcol@gmail.com" ]
gustcol@gmail.com
b0f15efaa73a6cb10404b27c2f307b17bb478b20
0ee9b76436f68987799551cbfcee7d37c78bdab8
/plugin.video.sportwa/resources/lib/cfdecoder.py
c8aba2e94e58746063852219459e972283cbb95b
[]
no_license
gacj22/WizardGacj22
69f83b04c09b255525ba4247272fb5931b80b5e7
ed4d80d1e6f09634c12c0c3096e39667c6642b95
refs/heads/master
2020-07-26T01:05:50.007884
2019-09-14T17:59:28
2019-09-14T17:59:28
208,479,686
4
3
null
2022-09-12T18:27:37
2019-09-14T17:47:12
Python
UTF-8
Python
false
false
5,458
py
# -*- coding: utf-8 -*- # -------------------------------------------------------------------------------- # Cloudflare decoder # -------------------------------------------------------------------------------- import re import time import urllib import urlparse from decimal import Decimal, ROUND_UP cl...
[ "gacj22@gmail.com" ]
gacj22@gmail.com
f009f0e8ca0d881ad1dfb5102ac402dd2ce76e63
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03286/s282830666.py
cb4c4d47baf0e6a86b226dc3e24f194a19006427
[]
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
240
py
n = int(input()) if n ==0: print(0) else: res = [] while n != 0: if n % 2 == 1: res.append("1") else: res.append("0") n = (n-n%2) // -2 res = res[::-1] print("".join(res))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
0025685bbe25181fb9210203d6fd0bc7601d399c
597ed154876611a3d65ca346574f4696259d6e27
/dbaas/workflow/steps/mysql/deploy/config_fox.py
8f08763a6f19fa5c2a30c3acf4de4ee9f655767f
[]
permissive
soitun/database-as-a-service
41984d6d2177734b57d726cd3cca7cf0d8c5f5d6
1282a46a9437ba6d47c467f315b5b6a3ac0af4fa
refs/heads/master
2023-06-24T17:04:49.523596
2018-03-15T19:35:10
2018-03-15T19:35:10
128,066,738
0
0
BSD-3-Clause
2022-05-10T22:39:58
2018-04-04T13:33:42
Python
UTF-8
Python
false
false
4,386
py
# -*- coding: utf-8 -*- import logging from dbaas_foxha.dbaas_api import DatabaseAsAServiceApi from dbaas_foxha.provider import FoxHAProvider from dbaas_credentials.models import CredentialType from time import sleep from util import get_credentials_for from util import full_stack from workflow.steps.util.base import B...
[ "ricardo@ricardodias.org" ]
ricardo@ricardodias.org
44136e42828dbba47981c10618d40d8e870d3cc2
d2252cfd56688a9b1e54e63a469040748bc17793
/agendas/urls.py
34b0bd02af41406081cef97b3a89338b0d76b206
[]
no_license
eos87/cafod
ef7552ce2dbc1063354b8138a16f03f43ec8bc2c
c54180820184fdda52c62a85b3705a43af5d94c2
refs/heads/master
2020-12-30T18:50:28.442831
2012-04-24T18:01:12
2012-04-24T18:01:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
770
py
from django.conf.urls.defaults import * from django.views.generic import ListView, DetailView from models import Agendas urlpatterns = patterns('agendas.views', url(r'^$', ListView.as_view(model=Agendas, template_name="agendas/agenda_list.html"), name="...
[ "crocha09.09@gmail.com" ]
crocha09.09@gmail.com
aad36ae7779eab72d847a210a7a42ff81d040814
210ecd63113ce90c5f09bc2b09db3e80ff98117a
/AbletonLive9_RemoteScripts/Axiom_AIR_25_49_61/MainModeSelector.py
1e5dca0b0ab306770c25455c0474ee9f72ec08d9
[]
no_license
ajasver/MidiScripts
86a765b8568657633305541c46ccc1fd1ea34501
f727a2e63c95a9c5e980a0738deb0049363ba536
refs/heads/master
2021-01-13T02:03:55.078132
2015-07-16T18:27:30
2015-07-16T18:27:30
38,516,112
4
1
null
null
null
null
UTF-8
Python
false
false
2,976
py
#Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_64_static/midi-remote-scripts/Axiom_AIR_25_49_61/MainModeSelector.py from _Framework.ModeSelectorComponent import ModeSelectorComponent from consts import * class MainModeSelector(ModeSelectorComponent): """ SelectorComponent that assigns navi...
[ "admin@scoopler.com" ]
admin@scoopler.com
0fb22da2909a7387a61baac96c3c237148f450a9
435749b1e6c9bd4c40d845da6d278411fdc4dec4
/app/api_1_0/posts.py
572a094f02a3bab99cdeaa549171e5719eaf45eb
[ "MIT" ]
permissive
purelind/My_blog_purelind
da23bed1b3fece5a09a3968073362e1acffdc601
196227c9ef9b96f669761ea08535f8a4d963abe9
refs/heads/master
2022-12-24T04:26:42.413441
2018-04-29T11:27:01
2018-04-29T11:27:01
97,668,456
2
1
MIT
2022-12-08T00:41:31
2017-07-19T03:23:10
HTML
UTF-8
Python
false
false
1,729
py
from flask import jsonify, request, g, url_for, current_app from .. import db from ..models import Post, Permission from . import api from .decorators import permission_required from .errors import forbidden @api.route('/posts/') def get_posts(): page = request.args.get('page', 1, type=int) pagination = Pos...
[ "kevinsocial@outlook.com" ]
kevinsocial@outlook.com
d2c46374856bff3fbfc0f573b2bdc2e1b1254fee
1183f422948d4a9283c196ff6e19b68f04cb12dd
/profiles_login/profiles_login/asgi.py
29ba23763739e5d30fe2f5f9db29be0ab3ddfe2b
[ "MIT" ]
permissive
madlad33/restapi-django-login
8cfbb9bf207646da2156ed4128fcd2c907285ad1
08b8821c41b8a15131fc3ad6860d0c105daa4c90
refs/heads/master
2023-02-12T09:09:34.983026
2021-01-06T19:31:47
2021-01-06T19:31:47
325,009,193
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
""" ASGI config for profiles_login project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANG...
[ "tanmay.milky33@gmail.com" ]
tanmay.milky33@gmail.com
b07688bb8ef54773e0e75112e3faa692c2509309
ae81b16cf4242d329dfcb055e85fafe87262cc7f
/leetcode/I though I have idea/657. 机器人能否返回原点.py
f2dd8180150d1d75db7f5304cf708803f499d3e5
[]
no_license
coquelin77/PyProject
3d2d3870b085c4b7ff41bd200fe025630969ab8e
58e84ed8b3748c6e0f78184ab27af7bff3778cb8
refs/heads/master
2023-03-18T19:14:36.441967
2019-06-19T02:44:22
2019-06-19T02:44:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,073
py
'''在二维平面上,有一个机器人从原点 (0, 0) 开始。给出它的移动顺序,判断这个机器人在完成移动后是否在 (0, 0) 处结束。 移动顺序由字符串表示。字符 move[i] 表示其第 i 次移动。机器人的有效动作有 R(右),L(左),U(上)和 D(下)。如果机器人在完成所有动作后返回原点,则返回 true。否则,返回 false。 注意:机器人“面朝”的方向无关紧要。 “R” 将始终使机器人向右移动一次,“L” 将始终向左移动等。此外,假设每次移动机器人的移动幅度相同。 示例 1: 输入: "UD" 输出: true 解释:机器人向上移动一次,然后向下移动一次。所有动作都具有相同的幅度,因此它最终回到它开始的原...
[ "zhangyiming748@users.noreply.github.com" ]
zhangyiming748@users.noreply.github.com
21cf6bb802c5aa58846b9b9de90827a2f539a540
fa3430fd579456707bad560f2bece51b39e2f007
/applications/common/utils/gen_captcha.py
c97b8acffa92687081581d2fdf8664a85f557daa
[]
no_license
xuguangzong/LnkunAdmin
4a9b2c1784f2d7386a5602b82b1648d0ace66d7f
8be30d9f3049d36b6ad0e239ddccf647194d2ce6
refs/heads/main
2023-08-14T06:37:33.389291
2021-09-14T02:03:26
2021-09-14T02:03:26
405,866,258
0
0
null
null
null
null
UTF-8
Python
false
false
715
py
#!/usr/bin/env python # _*_ coding: UTF-8 _*_ """ @Project : LnkunAdmin @File : gen_captcha.py @IDE : PyCharm @Author : 小生爱吃窝窝头 @Date : 2021/9/13 10:44 """ import random from PIL import Image from captcha.image import ImageCaptcha def gen_captcha(): """ 生成验证码 """ image = ImageCaptcha() # 获取字符串 captcha...
[ "2359301733@qq.com" ]
2359301733@qq.com
14de130cea077914525bf74fa8127bafba667024
d44b67c55baa9fe6045ff947407eec04519dbebf
/rlpyt/experiments/scripts/atari/dqn/train/atari_r2d1_async_alt.py
1ed66c15d4f47236e511cb369d1cc0ff158183a2
[ "MIT" ]
permissive
zizai/rlpyt
e9ce863837473dab7540099d2ad399ff7729ff05
85d4e018a919118c6e42fac3e897aa346d84b9c5
refs/heads/master
2022-09-12T03:26:30.497037
2020-05-21T02:20:44
2020-05-21T02:20:44
266,970,605
1
0
MIT
2020-05-26T07:11:24
2020-05-26T07:11:24
null
UTF-8
Python
false
false
1,686
py
import sys from rlpyt.utils.launching.affinity import affinity_from_code from rlpyt.samplers.async_.alternating_sampler import AsyncAlternatingSampler from rlpyt.samplers.async_.collectors import DbGpuResetCollector from rlpyt.envs.atari.atari_env import AtariEnv, AtariTrajInfo from rlpyt.algos.dqn.r2d1 import R2D1 f...
[ "adam.stooke@gmail.com" ]
adam.stooke@gmail.com
09e8d3733e1efc959b3957f7fcac8ad861ad3b10
bf79a856c8a9dd2d72190883dc31f5e652a3b9e7
/run/idp-sql/credentials.py
5726c809cf317a3025b6c5c3b612acae58c4d859
[ "Apache-2.0" ]
permissive
aog5/python-docs-samples
5630c2864ee4f141e09d6909de3a3b7ac211703a
300527f4b12369f6b0ad59fba42cc66159853bdd
refs/heads/master
2022-10-28T04:48:52.060095
2022-10-18T06:50:12
2022-10-18T06:50:12
157,914,880
2
0
Apache-2.0
2018-11-16T19:55:30
2018-11-16T19:55:30
null
UTF-8
Python
false
false
1,761
py
# Copyright 2021 Google LLC # # 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 law or agreed to in writing, s...
[ "noreply@github.com" ]
aog5.noreply@github.com
47edb6a977a55366f35ced83009722935e716631
cb13037cdbd3e0ab6108670108e9497cc1e2a5a7
/0.leetcode/3.刷题/2.算法系列/2.搜索/1.DSF/6.不同的二叉搜索树/95.mid_不同的二叉搜索树 II.py
3bd6c923b2d79b8b21c894bac7c6b103a510ed5f
[]
no_license
GMwang550146647/network
390fe0d1c72dcaca8b6d6dd1307adca0d56b55ce
576de9b993f7763789d25a995702b40c9bc6fa57
refs/heads/master
2023-06-15T04:42:54.306077
2021-07-12T06:06:02
2021-07-12T06:06:02
315,488,828
0
0
null
null
null
null
UTF-8
Python
false
false
888
py
from fundamentals.test_time import test_time from fundamentals.tree import TreeNode class Solution(): def __init__(self): pass @test_time def generateTrees(self,n): def gen_tree(s,e): if s>=e: return [None] else: all_trees=[] ...
[ "550146647@qq.com" ]
550146647@qq.com
57098ad2da3b116599cd2c0adeb305b1750f3568
ddfc20cb2df0c936585f93f7fa879ce904151c29
/core/python/SampleBase.py
a83769e7b8f34093c26d3d90736277415f9b8f73
[]
no_license
llechner/RootTools
dc2b705217fdc3cb5871646956412a3f678bb4c3
21c1de6b087ea40c7356c056d049d385832d90ef
refs/heads/master
2021-10-27T08:12:37.415387
2021-10-22T07:22:49
2021-10-22T07:22:49
160,841,285
0
0
null
2019-09-06T15:30:36
2018-12-07T15:28:45
Python
UTF-8
Python
false
false
1,968
py
''' Abstract Class for a Sample. ''' #Abstract Base Class import abc # Logging import logging logger = logging.getLogger(__name__) # RootTools imports import RootTools.core.helpers as helpers class SampleBase( object ): __metaclass__ = abc.ABCMeta def __init__(self, name, files, normalization, xSection...
[ "robert.schoefbeck@cern.ch" ]
robert.schoefbeck@cern.ch
1fa62a48c08e3fc2cd09a033787c83a390e6f9d8
d77bb1886aa50cffb4c935f40fb128ac5e2964d0
/model.py
144615ca98063d2160d709abb1baae8856672ef8
[]
no_license
katbelle/Flask_testing_2
0c59846b0d20a070f65b3b7375ebc9e70ba677cf
01ba9836b064a571227b06db9c4daccd5f99fbc8
refs/heads/master
2020-04-04T12:06:31.867337
2018-11-02T19:46:10
2018-11-02T19:46:10
155,914,415
0
0
null
null
null
null
UTF-8
Python
false
false
976
py
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class Game(db.Model): """Board game.""" __tablename__ = "games" game_id = db.Column(db.Integer, primary_key=True, autoincrement=True) name = db.Column(db.String(20), nullable=False, unique=True) description = db.Column(db.String(100)) d...
[ "no-reply@hackbrightacademy.com" ]
no-reply@hackbrightacademy.com
d25e5c3569452cd14edab6cc10d74f9b72f57f49
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_123/433.py
f77b594fdf56cd704d96486a776478ed16be74ce
[]
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
813
py
import fileinput fi = fileinput.input() T = int(fi.readline()) for caseN in xrange(T): A,N = map(int,fi.readline().strip().split()) sizes = map(int,fi.readline().strip().split()) sizes.sort() mysize=A answer=0 if A==1: answer=N else: myind=0 nadd=[] while myind < N: if mysize>sizes[myind]: mysiz...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
f518af21128ee7cee1ea64a6666ac5b2ecfab9a1
6bbacd62a5dec87855fbaa6271be97d5219b9125
/places/models.py
8df50ed8e92a1526e30e7a4ad3a908f9662618d4
[]
no_license
chenchiyuan/zoneke
e8889ae94e1fcf0ad2818cdbb12d76408b1498f3
d4a29f36a725a43cc23c3f61d8faf510e3686932
refs/heads/master
2021-01-13T01:50:56.286112
2012-05-20T03:00:59
2012-05-20T03:00:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,522
py
# -*- coding: utf-8 -*- from mongoengine.document import Document from mongoengine.fields import StringField, GeoPointField, ListField from core.const import CENTER_PLACE, PER_GEO, SLUG_MAX, PLACE_MSG_CENTER_PREFIX from place_listener import PlaceMsgCenter __author__ = 'chenchiyuan' class Area(Document): ''' ...
[ "chenchiyuan03@gmail.com" ]
chenchiyuan03@gmail.com
9a8817e759e43f3af0651f0fb3f2e10caf11518d
2db25c568278495ac6101d5e6f89a61e9c8eca8d
/pyrl/processors/drop.py
b9487c56044c63dd8a4e9a22894981198fcd0bb8
[ "MIT" ]
permissive
abesto/pyrl
b49a40301501bf8b514e9aaad4c11158e98f4f1a
34eb9843217ed5b557bff99ed66ef46b49b5c295
refs/heads/master
2020-09-23T11:17:16.356169
2019-12-02T23:23:29
2019-12-02T23:23:29
225,488,000
13
1
null
null
null
null
UTF-8
Python
false
false
1,046
py
#!/usr/bin/env python import tcod from pyrl.components import Energy, Equipment, Inventory, Name, Position from pyrl.components.action import Action, DropFromInventory from pyrl.resources import Messages from pyrl.world_helpers import ActionProcessor, act class DropProcessor(ActionProcessor): @act(DropFromInvent...
[ "abesto@abesto.net" ]
abesto@abesto.net
ff0f0d79b8cc81265392a840fd0e45be6aa0c778
efabb0e2b80fc4bbc6924231aeb762fb0049a498
/train_schedule/utils/repr.py
86dae38ff60bc2c9d54311a1f4e880da87600ab9
[]
no_license
entwanne/horaires_trains
52bf76db99a8287ab987452daade959c6a9d1f8b
a2550ad50ac34b5cf454bf470023ccc7939882ed
refs/heads/master
2023-06-24T15:01:15.323053
2021-07-17T07:59:35
2021-07-17T08:00:56
333,986,037
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
import itertools def cls_repr(cls, /, *args, **kwargs): """ Get representation of a class instance cls_repr(Object, 1, 'a', foo='bar') => "Object(1, 'a', foo='bar')" """ args = (repr(arg) for arg in args) kwargs = (f'{key}={arg!r}' for key, arg in kwargs.items()) args_txt = ', '.join(...
[ "antoine.rozo@gmail.com" ]
antoine.rozo@gmail.com
b5c6f0351496f459b743e6cfedafcdd1cd206d37
172d7d1bd13bc1c0ead439a7481a819f4c880d26
/services/database/check_database.py
c97c1eee5ae1d853c5d5b27705f77e1334520de8
[]
no_license
arezamoosavi/f-on-top
9b360b83c552ebfd47bfb2ad93ec7d71c2d6407c
7515cd1ab01348d8eb9dbeade3bc712bf1c17202
refs/heads/master
2022-11-25T18:51:57.417916
2020-08-06T19:44:46
2020-08-06T19:44:46
285,553,205
1
0
null
null
null
null
UTF-8
Python
false
false
235
py
from database.config import Mongo mongo = Mongo() if __name__ == "__main__": try: mongo.connect() mongo.disconnect() exit(1) except Exception as e: print("Error! {}".format(e)) exit(0)
[ "sdamoosavi@gmail.com" ]
sdamoosavi@gmail.com
d0d3c632afeb3259298540e97b346d3c3f152346
edd8ad3dcb6ee9b019c999b712f8ee0c468e2b81
/Review/Chapter08/8-14.py
db65b086ad09e74387cbe157eb25acb5a6d8f519
[]
no_license
narinn-star/Python
575cba200de35b9edf3832c4e41ccce657075751
14eba211cd3a9e9708a30073ba5b31d21d39eeef
refs/heads/master
2023-05-25T22:57:26.079294
2021-06-07T15:29:39
2021-06-07T15:29:39
331,647,462
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
x = 10 y = 2 # 8-14(a) print(x > y) print(x.__gt__(y)) print("===================") # 8-14(b) print(x != y) print(x.__ne__(y)) print("===================") # 8-14(c) print(x % y) print(x.__mod__(y)) print("===================") # 8-14(d) print(x // y) print(x.__floordiv__(y)) print("===================") # 8-14...
[ "skfls2618@naver.com" ]
skfls2618@naver.com
ace6da3b0f80ab5996b64bde9f9dd29985ab9bf6
60208add51b6a53021f86e37d707608dd315e13a
/ListenandSpeak_OLDER.py
82d3b4f368eeada108b2ff79a9e58f29345131f4
[]
no_license
joeyuan19/LilJohnScheme
f65dcd38b9cb70eca9e18598cb95573cc8319810
093096924aa3d7c1f9c90754a8f189da511b616b
refs/heads/master
2021-01-01T20:15:49.614268
2013-04-07T06:10:20
2013-04-07T06:10:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,290
py
import numpy as np import pyaudio import time import winsound import sys import struct nFFT = 512 BUF_SIZE = 4 * nFFT FORMAT = pyaudio.paInt16 CHANNELS = 2 RATE = 44100 def listen(stream, MAX_y): # Read n*nFFT frames from stream, n > 0 N = max(stream.get_read_available() / nFFT, 1) * nFFT dat...
[ "joe.yuan19@gmail.com" ]
joe.yuan19@gmail.com
fce6e329403d6adc3262c995dc5ec9e02d334024
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_101/ch18_2020_03_18_01_26_47_664499.py
ae423b53ce7158a56867362da050ab4cb87abd32
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
def verifica_idade(idade): if idade>=21: return "Liberado EUA e BRASIL" elif idade>=18: return "Liberado BRASIL" else: "Não está liberado"
[ "you@example.com" ]
you@example.com
79b18add60709484457e73c0838b1a7fb16b513e
2afb1095de2b03b05c8b96f98f38ddeca889fbff
/Midterm_Project/parsing_each_day_link.py
79d8485cbda5b1d24eaf883627d7993fec6d78db
[]
no_license
draganmoo/trypython
187316f8823296b12e1df60ef92c54b7a04aa3e7
90cb0fc8626e333c6ea430e32aa21af7d189d975
refs/heads/master
2023-09-03T16:24:33.548172
2021-11-04T21:21:12
2021-11-04T21:21:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,152
py
import pandas as pd from bs4 import BeautifulSoup import glob,os def parsing_each_day_link(): assert str(os.listdir('box_office_pages')) != '[]', \ "You should download each year's page first!\n\nCheck if you have run [ web_scrapping.py ]" link_data = pd.DataFrame() for one_file in ...
[ "13701304462@163.com" ]
13701304462@163.com
55b32e118aa983ce739a92544409021a43d3c14b
ceead28beb1ea6cb56a2bb4472bc1d2396b39e6f
/gen_basis_helpers/analyse_md/get_neb_lists.py
267c11c2a33d31024d5021c370da14579320c1cb
[]
no_license
RFogarty1/plato_gen_basis_helpers
9df975d4198bff7bef80316527a8086b6819d8ab
8469a51c1580b923ca35a56811e92c065b424d68
refs/heads/master
2022-06-02T11:01:37.759276
2022-05-11T12:57:40
2022-05-11T12:57:40
192,934,403
3
0
null
null
null
null
UTF-8
Python
false
false
1,530
py
#import plato_pylib.shared.ucell_class as uCellHelp import itertools as it import numpy as np import MDAnalysis.lib.pkdtree as pkdTreeHelp from . import mdanalysis_interface as mdAnalInter #TODO: Its possible to use search() instead of search_pairs() to get a more limited set of neighbour lists #Will probably need ...
[ "richard.m.fogarty@gmail.com" ]
richard.m.fogarty@gmail.com
f7be66852d2297a69e36cff64bd054ce2ec50de2
edcc26728370aa5bfabfbf5615933c34b108ed21
/sketches/kochschneeflocke/kochschneeflocke.pyde
4458f243cd6685e7561ac27b2975cf2d5e7e6482
[ "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
1,051
pyde
add_library('Turtle') # Konstanten-Deklaration WIDTH = 400 HEIGHT = 400 colors = [color(18, 184, 116), color(200, 23, 223), color(95, 145, 40), color(8, 124, 127)] seiten = 4 # Anzahl der Seiten der Schneeflocke, # entweder 3 oder 4 it = 5 # Iterationstiefe def setup(): g...
[ "joerg@kantel.de" ]
joerg@kantel.de
db062f1697b0a95aef5dbb3aeb1aa34811af1a44
f914e863f4eae0c6474f8b8150a40969fc8e1a86
/tests/test_readme/test_readme.py
70904a408ba0170e163518e81d7ff5020465b322
[ "MIT" ]
permissive
jvrana/pyblast
0ff430f3f1f51d5b2118e1749f74e1dc8ff3b67f
0f7ee7575e97470bfd05a2373d9c68247ec4ead0
refs/heads/master
2021-06-03T23:04:03.734484
2020-09-11T22:46:31
2020-09-11T22:46:31
102,554,910
0
0
MIT
2020-09-11T20:15:01
2017-09-06T02:49:51
Python
UTF-8
Python
false
false
1,538
py
def test_example1(): from pyblast import BioBlast from pyblast.utils import make_linear from Bio.SeqRecord import SeqRecord from Bio.Seq import Seq import json queries = [ SeqRecord( Seq( "ACGTGATTCGTCGTGTAGTTGAGTGTTACGTTGCATGTCGTACGTGTGTAGTGTCGTGTAGTGCTGATGC...
[ "justin.vrana@gmail.com" ]
justin.vrana@gmail.com
6e4840b7eb1aae2c3bdd2aacea996611949c4e99
578f88ce737dfd3ac01a7dbffbed430b2634d9c2
/django_project_lb_02/response_demo/views.py
dba5398c17aa3e4985d21e0763c667e4cc46975d
[ "MIT" ]
permissive
libin-c/Django_Exercise
94af81f9bf0f1467797447ce40722002b0e9cf16
6e29d51a3dea6b0169d69d4cb8fce18c9af67a9b
refs/heads/master
2020-05-23T14:54:35.092106
2019-05-20T01:31:19
2019-05-20T01:31:19
186,815,315
2
0
null
null
null
null
UTF-8
Python
false
false
1,564
py
from django.shortcuts import render from django.http.response import HttpResponse from django.http.response import JsonResponse # Create your views here. def response_demo(request): # 参数 # return HttpResponse( # # 响应体 # content="content 参数 响应体", # # MIME 文件交互格式 # content_typ...
[ "84045407@qq.com" ]
84045407@qq.com
377b5de4b2c8a8636a78a2064f4df613fdf749e1
0836756af2e9b8cfe65dbbe1abefd435c212095c
/tensorpack/models/_common.py
8f6d161aa67f92d83047e7700a106692797319df
[ "Apache-2.0" ]
permissive
chagge/tensorpack
dafc4c7733b346de85b6525f2292e3f63861a6dc
abd38c594184ee5ad97a0037a16754c62a41a8d7
refs/heads/master
2020-12-30T22:09:26.989520
2016-07-08T07:09:14
2016-07-08T07:09:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,004
py
# -*- coding: UTF-8 -*- # File: _common.py # Author: Yuxin Wu <ppwwyyxx@gmail.com> import tensorflow as tf from functools import wraps import six import copy #from decorator import decorator from ..tfutils import * from ..tfutils.modelutils import * from ..tfutils.summary import * from ..utils import logger # make s...
[ "ppwwyyxxc@gmail.com" ]
ppwwyyxxc@gmail.com
783eb8c4deaa8acb1e143bfb453ae71ecc17beee
1da977fdb87a566b4ea75390ae819f0189ee7c73
/api/migrations/0006_auto_20200201_1532.py
230354a5c07ba10de71322ddef733103b0d4a665
[]
no_license
python3django/api-create-notification
14c95d4aab9a4850bd8c25656c0c7cbab571e511
96370a3a7a06b5c43a1971f4a22d4f78d55059e9
refs/heads/master
2022-04-14T19:29:07.344015
2020-02-02T19:24:05
2020-02-02T19:24:05
237,822,903
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
# Generated by Django 3.0.2 on 2020-02-01 13:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0005_auto_20200201_1521'), ] operations = [ migrations.AddField( model_name='preference', name='test_email', ...
[ "python3github@gmail.com" ]
python3github@gmail.com
4b3cded7cda307990dbefe0ea6e0e4bd14cb4f68
da7e1c70fb9a130764fdc1d31e32d9a18773f93e
/custom_apps/controllers/controllers.py
db7a593dbabb8c097c59c592df115ac8856f5b28
[]
no_license
halltech-ci/apps
0c8c636c2f6fb0cf4552bb2c97d80846b77f489b
b3ac18a762f4a85c980e5ee05c89aad81acd8f47
refs/heads/master
2023-01-28T09:10:46.060261
2020-11-06T08:41:14
2020-11-06T08:41:14
208,519,835
0
1
null
2022-12-23T17:29:12
2019-09-15T00:15:32
Python
UTF-8
Python
false
false
777
py
# -*- coding: utf-8 -*- from odoo import http # class CustomApps(http.Controller): # @http.route('/custom_apps/custom_apps/', auth='public') # def index(self, **kw): # return "Hello, world" # @http.route('/custom_apps/custom_apps/objects/', auth='public') # def list(self, **kw): # ...
[ "maurice.atche@halltech-africa.com" ]
maurice.atche@halltech-africa.com
4e7299da311db36d0ac0f414eba7bfb92c91606a
85a2bee1cae078e1c45a294ab5213a8bc18e8540
/keras_study/classifier_study/Keras-TextClassification/keras_textclassification/m01_FastText/train.py
f850807a0bdbe76319e9ea0409c39402ccd6823c
[]
no_license
hbwzhsh/NLP_study
d1bbd220e16d48c1aded6bc46ad48f32d61a381c
1a77bd8c1d6355d9b335aab954d227dc723d393c
refs/heads/master
2021-04-01T04:10:59.626790
2020-03-17T08:32:38
2020-03-17T08:32:38
248,155,203
1
0
null
2020-03-18T06:27:17
2020-03-18T06:27:17
null
UTF-8
Python
false
false
4,765
py
# -*- coding: UTF-8 -*- # !/usr/bin/python # @time :2019/6/3 10:51 # @author :Mo # @function :train of fast text with baidu-qa-2019 in question title # 适配linux import pathlib import sys import os project_path = str(pathlib.Path(os.path.abspath(__file__)).parent.parent.parent) sys.path.append(project_path) # 地址 ...
[ "958747457@qq.com" ]
958747457@qq.com
2916159a9c3163bde7aee6b197f3bd6c34db943a
02acc785d4a0cb00d2cf7ee114cb08a27f8139be
/tests/user_recommend_test.py
1449a8d85a06dbd02a89c2350c1efeca90c16009
[ "Apache-2.0" ]
permissive
SmileChen007/owllook
f67883542880e2cb7beffd0e771f789e34c30698
95c9d8bf246f439cea685641dc470a27d3c376e0
refs/heads/master
2021-01-15T18:00:25.916550
2017-08-06T10:18:20
2017-08-06T10:18:20
99,774,259
1
0
null
2017-08-09T06:45:12
2017-08-09T06:45:12
null
UTF-8
Python
false
false
1,415
py
#!/usr/bin/env python import uvloop import asyncio import os os.environ['MODE'] = 'PRO' from pprint import pprint from copy import deepcopy from owllook.database.mongodb import MotorBase from owllook.recommend.cosinesimilarity import CosineSimilarity from owllook.fetcher.function import get_time async def get_user_...
[ "xiaozizayang@gmail.com" ]
xiaozizayang@gmail.com
4606fe119e96c68755bf249443f7b81c01bd14c3
70b63fe24818e3beb1e8bf679807b3a299b9754d
/lianjia_slave/lianjiaSpider/lianjiaSpider/items.py
4c62ab9b1c86a0bd141ce03456a2717a53e5bd5f
[]
no_license
adivxkk/lianjia_ershoufang_spider
cbb3c325d5099b17f8ddb6f2bd58d355c25dd990
40be5b4d3ef3cc603d5808ceadd093588f0a23db
refs/heads/master
2020-06-11T14:48:20.236528
2019-06-27T01:55:42
2019-06-27T01:55:42
194,002,680
1
0
null
null
null
null
UTF-8
Python
false
false
951
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy class LianjiaspiderItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() title = scrapy.Field() targe...
[ "xlyjxkk@gmail.com" ]
xlyjxkk@gmail.com
633814b2851e3f9f9d0daad050e364f459b9b9e1
4dda597dac544b237cf8f8b04b3c9e662b988a92
/day66/day66/settings.py
b78c66d4c8f81382b9584ce74fd4a56b129c8b6d
[]
no_license
beriuta/history
02ac9414c0475fde59f6a455c23c56235fe3c4bc
026c965f694e84120825069bedf7bfac235318b5
refs/heads/master
2020-04-11T17:24:39.558174
2018-12-16T02:08:18
2018-12-16T02:08:18
161,959,735
0
0
null
null
null
null
UTF-8
Python
false
false
3,245
py
""" Django settings for day66 project. Generated by 'django-admin startproject' using Django 1.11.16. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os ...
[ "2457409765@qq.com" ]
2457409765@qq.com
847dc294fe323978a0ceb9b9a341b936d9abd026
e84428e210418bbec84831863073d81f7123a3aa
/wepppy/wepp/stats/channel_watbal.py
0ee3d144e87b4bebe9796081e86ffa09be9681e8
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jneris/wepppy
6c78b3fa74e1f689908cc4f708a2747063b275ef
477f67570db936fdd0798a1bc03948231c8ec663
refs/heads/master
2022-01-25T13:09:24.264957
2019-06-09T19:48:47
2019-06-09T19:48:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,772
py
# Copyright (c) 2016-2018, University of Idaho # All rights reserved. # # Roger Lew (rogerlew@gmail.com) # # The project described was supported by NSF award number IIA-1301792 # from the NSF Idaho EPSCoR Program and by the National Science Foundation. from os.path import join as _join from os.path import exists as _e...
[ "rogerlew@gmail.com" ]
rogerlew@gmail.com
2e4a242d9c0f1d5e0eae167a88f8a94f485954c9
c819e434d642670ad02c1b3919a5300568dc8b99
/lib/python3.8/site-packages/django_swagger_utils/drf_server/utils/server_gen/get_path_param_from_regex.py
bca628e9f7877e751d703adc0918bf1a8f7c3d04
[]
no_license
ushatirumalasetty/venv
c8dcf002c8259501cb745b65d38fe753d4ae2da1
7c892873c1221a816a62cdba0fb9ad491cfba261
refs/heads/master
2022-11-27T18:54:54.643274
2020-07-23T09:54:42
2020-07-23T09:54:42
281,914,259
0
1
null
2022-11-20T15:47:34
2020-07-23T09:54:18
Python
UTF-8
Python
false
false
292
py
def get_path_param_from_regex(url_string): import re index = url_string.find("{") param_name = "" if index != -1: p = re.compile(r"^(.*)(\{)(.*)(\})(.*)$") m = p.match(url_string) groups = m.groups() param_name = groups[3] return param_name
[ "rayvaleshusha@gmail.com" ]
rayvaleshusha@gmail.com
34870986e4a0b7fa8c4fb71c400af9df79f4c312
b287c232165bb0d248d619e978f57c864cc36a1c
/leo/unittests/core/test_leoRst.py
8b5142a26620d1e9626446d54b807d377a02959c
[ "BSD-3-Clause", "MIT" ]
permissive
tbpassin/leo-editor
39ec8cfc6c35c867b89a21f495b8049b1254bcc6
76b60e5c58781f84c86a603b9c50b709250682b8
refs/heads/master
2023-08-09T05:05:54.064246
2023-03-01T14:12:14
2023-03-01T14:12:14
247,962,821
0
0
NOASSERTION
2020-03-17T12:22:03
2020-03-17T12:22:02
null
UTF-8
Python
false
false
5,825
py
#@+leo-ver=5-thin #@+node:ekr.20210902055206.1: * @file ../unittests/core/test_leoRst.py """Tests of leo/core/leoRst.py""" import textwrap try: import docutils except Exception: # pragma: no cover docutils = None import leo.core.leoRst as leoRst # Required for coverage tests. assert leoRst from leo.core.leoT...
[ "edreamleo@gmail.com" ]
edreamleo@gmail.com
fd6cf14a929984706395981c9995faa54fc414c8
84faf13bcd316e34ac553e6a89f77cd67a6eebaf
/curso/apps.py
3722562d19607ec417e436a461173809309bb878
[ "MIT" ]
permissive
Stufinite/curso
10bf8ad2a1b7ccddb831079cdf877d3cb80b85c6
ba646a50e8588706a8c926440e155644bfbfcdf6
refs/heads/master
2021-01-11T17:38:52.257461
2018-01-20T11:40:03
2018-01-20T11:40:03
79,813,841
0
0
MIT
2019-10-03T15:15:43
2017-01-23T14:51:30
Python
UTF-8
Python
false
false
1,017
py
# -*- coding: utf-8 -*- from django.apps import AppConfig import urllib, requests, json from timetable.models import Course from ngram import NGram class SearchConfig(AppConfig): name = 'curso' class SearchOb(object): """docstring for SearchOb""" def __init__(self, uri=None): from pymongo impo...
[ "davidtnfsh@gmail.com" ]
davidtnfsh@gmail.com
715135e5ece4244019762ed9c85c44090dcd1fe4
0b842bcb3bf20e1ce628d39bf7e11abd7699baf9
/oscar/a/api/yang/modules/tech/content/qwilt_tech_content_pre_topper/tech/content/pre_topper/pre_topper_maapi_base_gen.py
de0d797525bb8a8e79c6c433adff18e0010c1bd0
[]
no_license
afeset/miner2-tools
75cc8cdee06222e0d81e39a34f621399e1ceadee
81bcc74fe7c0ca036ec483f634d7be0bab19a6d0
refs/heads/master
2016-09-05T12:50:58.228698
2013-08-27T21:09:56
2013-08-27T21:09:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,612
py
# Copyright Qwilt, 2012 # # The code contained in this file may not be used by any other entities without explicit written permission from Qwilt. # # Author: naamas from a.infra.basic.return_codes import ReturnCodes class PreTopperMaapiBase(object): def __init__ (self, logger): raise NotImplementedEr...
[ "afeset@gmail.com" ]
afeset@gmail.com
b244fdd913be768f7fe729e90237357ea3b2732c
8b9d3fa48e87579a74b187abf781d5916b6b47df
/geoutils/tests/test_nitf.py
31f6f50ffa3c2f3517d8c61999d39b68cf7a41e3
[]
no_license
loum/geoutils
3f34b10bfaff8978af09f01de03723b71cd8be4f
034787d9a54856dac12988aaa05c366c5da4d7ec
refs/heads/master
2021-01-19T08:54:54.983763
2014-12-01T04:59:50
2014-12-01T04:59:50
22,494,847
0
0
null
null
null
null
UTF-8
Python
false
false
1,050
py
# pylint: disable=R0904,C0103 """:class:`geoutils.NITF` tests. """ import unittest2 import os import geoutils class TestNITF(unittest2.TestCase): """:class:`geoutils.NITF` test cases. """ @classmethod def setUpClass(cls): cls._file = os.path.join('geoutils', ...
[ "lou.markovski@gmail.com" ]
lou.markovski@gmail.com
86e20121a08cbdb4613777f7744533b64d522332
9e647f3093638e82635bad8399d752387041032f
/horizon_autotests/app/pages/access/tab_api_access.py
c96117153d0bf06e939d1b8838f54be8f18c6c11
[]
no_license
schipiga/horizon_autotests
bf563dc05c34ab066703779caf33895ac0f79d87
f04f4c60992c9464e4a233ced2ccddb91644829f
refs/heads/master
2021-06-03T08:08:56.100537
2016-08-02T08:26:12
2016-08-02T13:16:33
61,306,269
1
2
null
null
null
null
UTF-8
Python
false
false
1,936
py
""" Keypairs tab. @author: schipiga@mirantis.com """ # 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 law or...
[ "schipiga@mirantis.com" ]
schipiga@mirantis.com
333a5e440e022c7ff2792364c10b6f6c2391012b
957ad0ab8e0af913fc6c548354d4d844cea1481a
/matching/migrations/0002_userimage_reated_date.py
b593afdc4dd656730ad023fc9a463d3964198f7d
[]
no_license
tateishi-sagyou/matching-site
090067262f17fb463ca437119d0385b63f0a4529
1895e71c4cd3ae5ba288b3fb08fca8548516c529
refs/heads/master
2023-06-26T16:09:15.821055
2021-07-28T07:11:04
2021-07-28T07:11:04
388,492,879
0
0
null
null
null
null
UTF-8
Python
false
false
435
py
# Generated by Django 3.2.5 on 2021-07-23 09:44 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('matching', '0001_initial'), ] operations = [ migrations.AddField( model_name='userimage', ...
[ "you@example.com" ]
you@example.com
a214d4ff04dcbdb4f0e29786c2ac97de50ad4d1c
5462142b5e72cb39bea5b802dd46f55357c4ea84
/homework_zero_class/lesson10/装饰器的引入-times_2.py
2dd7e05a4d5234cf278ccb6ca821b728ef7b8eb4
[]
no_license
qqmadeinchina/myhomeocde
a0996ba195020da9af32613d6d2822b049e515a0
291a30fac236feb75b47610c4d554392d7b30139
refs/heads/master
2023-03-23T05:28:53.076041
2020-08-24T08:39:00
2020-08-24T08:39:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,294
py
#!D:\Program Files\Anaconda3 # -*- coding: utf-8 -*- # @Time : 2020/7/25 18:38 # @Author : 老萝卜 # @File : 装饰器的引入-times_2.py # @Software: PyCharm Community Edition # 求任意两个数的和 def add(a,b): return a + b def mul(a,b): return a * b r=add(1,2) print(r) # 给函数增加两个功能 def add(a,b): print("函数正在计算") print("函...
[ "newwxm@126.com" ]
newwxm@126.com
109b2e16195ad4a748a5d0c122cba767707716f7
a74b980fd95d5d810315f181449fc9d1710e6923
/.history/onlyobject/dl_20210304105729.py
db9a6f5cddc51747a4a005763ecd22af5689d815
[ "Apache-2.0" ]
permissive
cbbbbbbbb/sspywork
b70f5539203b47b21eec2f0514ddca155affc2b8
8f05a6b91fc205960edd57f9076facec04f49a1a
refs/heads/master
2023-03-22T19:45:13.024076
2021-03-08T01:24:21
2021-03-08T01:24:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
""" 单例模式 """ import time import threading class Singleton(object): _instance_lock = threading.Lock() def __init__(self): time.sleep(1) @classmethod def instance(cls, *args, **kwargs): with Singleton._instance_lock: if not hasattr(Singleton, "_instance"): ...
[ "shiyuegege@qq.com" ]
shiyuegege@qq.com
b7e0497f27a42f8f37a2051e01e43a3e90558690
0e4d09b2a1b93aaa6d623d16905854d993a934ae
/Python/Django/helloDjango/helloDjango/wsgi.py
ff5c044a0203bfbed6ba1a9af4e3b8522c362238
[]
no_license
freefaller69/DojoAssignments
ee7f6308b02041be3244f795422e0e044d4a41b2
f40426ac448026c1172048665f36024ad22f0d81
refs/heads/master
2021-01-17T10:23:39.419514
2017-07-25T00:50:41
2017-07-25T00:50:41
84,012,790
0
1
null
null
null
null
UTF-8
Python
false
false
416
py
""" WSGI config for helloDjango 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.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdef...
[ "freefaller@gmail.com" ]
freefaller@gmail.com
bb380579015fa0d58ee4948800bd74965361f795
1d23c51bd24fc168df14fa10b30180bd928d1ea4
/Lib/site-packages/pydispatch/robust.py
a322e46918ef3ad93e410eacc7bcf06c7b388dd7
[]
no_license
BeaverInc/covid19CityMontreal
62dac14840dadcdf20985663bc2527c90bab926c
1b283589f6885977a179effce20212a9311a2ac0
refs/heads/master
2021-05-22T20:01:22.443897
2020-06-21T08:00:57
2020-06-21T08:00:57
253,067,914
0
0
null
null
null
null
UTF-8
Python
false
false
2,095
py
"""Module implementing error-catching version of send (sendRobust)""" from pydispatch.dispatcher import Any, Anonymous, liveReceivers, getAllReceivers from pydispatch.robustapply import robustApply def sendRobust( signal=Any, sender=Anonymous, *arguments, **named ): """Send signal from sen...
[ "36340780+lanyutian88@users.noreply.github.com" ]
36340780+lanyutian88@users.noreply.github.com
beb70ae4b0ada901b61520d562bf609dc7679bac
42da48b96811354c1b729fd788ec268cae95fe6f
/mysite/blog/forms.py
02bffebec1841334648b8577c3678e833514e872
[]
no_license
mkwiatek770/BlogProject
1d7d49bc5ddcde2ea778eab4fd1c122e74230ce9
fd5d767aa99656ee0be6d26fae10599051697dc4
refs/heads/master
2020-04-16T13:06:45.197796
2019-04-02T21:54:06
2019-04-02T21:54:06
165,611,921
1
0
null
null
null
null
UTF-8
Python
false
false
388
py
from django import forms from blog.models import Article class ArticleForm1(forms.ModelForm): class Meta: model = Article fields = ("title", "thumbnail", "categories") widgets = { 'categories': forms.CheckboxSelectMultiple() } class ArticleForm2(forms.ModelForm): ...
[ "michalkwiatek9@o2.pl" ]
michalkwiatek9@o2.pl
5bb0d7370a587f780a2d1ee16b678f430c7cc7e0
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_013/ch24_2019_03_31_12_46_19_052928.py
6b9e9b7f173f6392494349ec8addcb651da34fbd
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
def classifica_triangulo(a,b,c): if a == b and a == c: return "equilátero" elif a == b or a == c or b == c: return "isóceles" else: return "escaleno"
[ "you@example.com" ]
you@example.com
c1b70ec60d1bc8a5131863830bf018188cc5eb39
7ad4cb50df6ef413dd12b472f47b01b526a47d32
/0061_Rotate_List/leetcode061.py
e488e1fbdad5d273f57e0932529fc5f368a219eb
[]
no_license
persiststudy/LeetCode
0f62f55505e2870d206fc723cd29a532e7f66944
496bb1aa549f06d567c61274f0ba29dbfaf4ec50
refs/heads/master
2020-04-07T19:01:08.161105
2018-12-19T02:37:11
2018-12-19T02:37:11
158,633,189
2
0
null
2018-11-22T02:42:40
2018-11-22T02:42:39
null
UTF-8
Python
false
false
798
py
# !/usr/bin/env python3 # -*- coding:utf-8 -*- # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # 60ms def rotateRight(self, head, k): """ :type head: ListNode :type k: int :...
[ "lxh1997zj@163.com" ]
lxh1997zj@163.com
867eb1d7188b8663d68740d3cd7af887adba8cd9
a19275ff09caf880e135bce76dc7a0107ec0369e
/catkin_ws/build/robot_driver/CANopen_v1-master/testcan/cmake/testcan-genmsg-context.py
1c0115efc50277b10d93c98daa8166094007a5f7
[]
no_license
xtyzhen/Multi_arm_robot
e201c898a86406c1b1deb82326bb2157d5b28975
15daf1a80c781c1c929ba063d779c0928a24b117
refs/heads/master
2023-03-21T14:00:24.128957
2021-03-10T12:04:36
2021-03-10T12:04:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
676
py
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/home/d/catkin_ws/src/robot_driver/CANopen_v1-master/testcan/msg/IpPos.msg;/home/d/catkin_ws/src/robot_driver/CANopen_v1-master/testcan/msg/Frame.msg" services_str = "" pkg_name = "testcan" dependencies_str = "std_msgs" langs = "gencpp;geneus;genlisp;...
[ "qyz146006@163.com" ]
qyz146006@163.com
6ee81ba6166bb01edc9cfc8decef41974349373c
aedec1d76481d9674f76d94e1874e893f642866e
/coil.py
060b750f3504dd6ad15ef6808b7ddd5634031dcb
[]
no_license
KipCrossing/Coil_Physics
3ea10de72aa00cc93e4a901a26e238518c2126e0
0641a287d6fea2466ae5c9d39564ff27faf6f550
refs/heads/master
2020-04-13T04:28:16.872054
2019-05-23T10:16:04
2019-05-23T10:16:04
162,962,556
1
0
null
null
null
null
UTF-8
Python
false
false
4,858
py
# By Kipling Crossing # kip.crossing@gmail.com import numpy as np from Euler import rotation_matrix class Coil(object): # Put some of these into init coil_I = 1 supply_volt = 12 coil_position = [0, 0, 0] coil_axis = [0, 0, 1] coil_radius_in = 0.005 coil_radius_out = 0.015 coil_radius...
[ "kip.crossing@gmail.com" ]
kip.crossing@gmail.com
9a561bb195836f6e9c0a835a45093401c07a6c87
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/8d944bd7c751429d862b314299a27ed4.py
2dbe82cb5cf767ebf66eb058b38a3706e738d3aa
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
691
py
def hey(string): # catch all answer that sticks if no other cases are fulfilled answer = 'Whatever.' # case for 'addressing bob without saying anything' # if this is the case, no other cases can be true, so return the value instead of wasting cycles if string.isspace() or len(string) < 1: answer = ...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
cfbc12776d2a9e8224f262dc9abff52844394a5f
e17686788c8fd31e3020636b32138e04d1538721
/models/__init__.py
c74f3f98d19b81daf19250f97021e5f4549e19d6
[]
no_license
HoldenGs/AirBnB_clone
1d401da21f0f8e5e3886fe2b5cc58cbd3b9840b9
3b119e7c29d5c2a4b101d062a1c695495c2794e4
refs/heads/master
2021-01-13T11:39:49.318758
2017-03-16T19:33:37
2017-03-16T19:33:37
81,266,623
0
0
null
2017-02-09T12:48:28
2017-02-07T23:44:12
Python
UTF-8
Python
false
false
423
py
#!/usr/bin/python3 __all__ = ["BaseModel", "User", "State", "City", "Amenity", "Place", "Review"] from models.base_model import BaseModel from models.user import User from models.state import State from models.city import City from models.amenity import Amenity from models.place import Place from models.review impor...
[ "holdeng96@gmail.com" ]
holdeng96@gmail.com
7d0ccdbbc6f63d04e161b5b27da224ffc2f8591a
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/arc005/A/4814600.py
dac640f5038716824e38929179bc6de9b3d0a4eb
[]
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
209
py
N = int( input()) W = list( input().split()) W[-1] = W[-1][:-1] ans = 0 for i in range(N): if W[i] == "TAKAHASHIKUN" or W[i] == "Takahashikun" or W[i] == "takahashikun": ans += 1 print( ans)
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
37b601138ce1aece6a30dc1d0139dbef3c377104
0b1b92e30893d4428b0e04342490da8aef121a65
/Python/lowestCommonAncestorBST.py
210d955fc731f43dac458c86d2ec4c481ecd905a
[]
no_license
miaojiang1987/LeetCode
280dc892f8adbf8c18f30c180e76b045b3797f8c
d8f96b0ec1a85abeef1ce8c0cc409ed501ce088b
refs/heads/master
2021-06-09T14:46:43.858955
2021-05-20T09:06:24
2021-05-20T09:06:24
155,755,065
1
0
null
null
null
null
UTF-8
Python
false
false
526
py
class Solution(object): def lowestCommonAncestor(self, root, p, q): """ :type root: TreeNode :type p: TreeNode :type q: TreeNode :rtype: TreeNode """ if not root: return None if root.val>p.val and root.val>q.val: return...
[ "miaojiang1987@gmail.com" ]
miaojiang1987@gmail.com
4d26e8b0ed02c5f6b25cedd01cd8c2e98e5ca054
05f2c697517b968eb71d1dc109864dfaf5cdb1a8
/venv/lib/python3.6/site-packages/lis/settings.py
00872bae4465d46759a5251988d547ebf99d39d3
[]
no_license
motovmp1/pom_robotframe
74c8af75a3e41b7cd3ee74127dfec630ee0af20b
7c5129779644eeb391c83a50b75db86238f684d3
refs/heads/master
2022-04-16T16:15:51.383152
2020-04-14T06:20:34
2020-04-14T06:20:34
255,515,686
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
import logging from logging.config import dictConfig dictConfig({ "version": 1, "disable_existing_loggers": False, "formatters": { "basic": { "format": "[%(asctime)s] [%(process)d:%(thread)d] [%(levelname)s] [%(name)s] %(filename)s:%(funcName)s:%(lineno)d %(message)s", "dat...
[ "vinicius.mpinho@gmail.com" ]
vinicius.mpinho@gmail.com
d74fb2a6f6a84b5d10c118b04dd52e5fea460bd9
738b6d6ec4572f5848940b6adc58907a03bda6fb
/tests/pymcell4_positive/1825_unimol_surf_rxn_callback/model.py
cea292de6f7d25c5f4842ff8678da9670b0cb7d8
[ "MIT", "Unlicense", "LicenseRef-scancode-public-domain" ]
permissive
mcellteam/mcell_tests
09cd1010a356e0e07c88d7e044a73c5606c6e51a
34d2d967b75d56edbae999bf0090641850f4f4fe
refs/heads/master
2021-12-24T02:36:24.987085
2021-09-24T14:19:41
2021-09-24T14:19:41
174,733,926
1
0
null
null
null
null
UTF-8
Python
false
false
3,647
py
#!/usr/bin/env python3 import sys import os import math import numpy as np MCELL_PATH = os.environ.get('MCELL_PATH', '') if MCELL_PATH: sys.path.append(os.path.join(MCELL_PATH, 'lib')) else: print("Error: variable MCELL_PATH that is used to find the mcell library was not set.") sys.exit(1) import mcell a...
[ "ahusar@salk.edu" ]
ahusar@salk.edu
3d85448f4560b3ebf1ecf23117411e9950bcb953
0331ec0869e6371889e28f673b54ee31f4bfcb7c
/peek_plugin_graphdb/tuples/GraphDbImportSegmentLinkTuple.py
2899997b379860ea6f7609bfd5133c681cadaf9a
[]
no_license
Synerty/peek-plugin-graphdb
bb1bfd9b3b9be7f5ca96e384eec680a12e04d164
3daab5e5f8c03a7a010ba457b015abd48aef93af
refs/heads/master
2021-06-03T05:46:46.157432
2020-10-27T04:55:51
2020-10-27T04:55:51
135,005,519
0
0
null
null
null
null
UTF-8
Python
false
false
698
py
from typing import Dict, Any from peek_plugin_graphdb._private.PluginNames import graphDbTuplePrefix from vortex.Tuple import Tuple, addTupleType, TupleField @addTupleType class GraphDbImportSegmentLinkTuple(Tuple): """ Segment Link Tuple This tuple is the publicly exposed Segment Links """ __tuple...
[ "jarrod.chesney@synerty.com" ]
jarrod.chesney@synerty.com
921bcf4e2203052c6db2706194cdf826d2605c82
e1b8fb9a5500516f28d3d7e9a5f259c49ef35f14
/top/api/rest/SimbaAdgroupsChangedGetRequest.py
a0af7e63a311acb34f6df63809995ef3f39c3dd5
[]
no_license
htom78/taobao_comet_py
9224dbca1a413a54bcc5569873e4c7a9fc9ba059
ad8b2e983a14d3ab7665244449f79dd72f390815
refs/heads/master
2020-05-17T10:47:28.369191
2013-08-27T08:50:59
2013-08-27T08:50:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
''' Created by auto_sdk on 2013-06-16 16:36:02 ''' from top.api.base import RestApi class SimbaAdgroupsChangedGetRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.nick = None self.page_no = None self.page_size = None self.start_time = ...
[ "tomhu@ekupeng.com" ]
tomhu@ekupeng.com
87a1b2933d7909f09798277e26667dd0bcf9613b
ac64fda7f1bfc92f7897efd60b8f3f0aeb22b4d7
/syntactic_mutations/mnist_tr/mutants/mutant32.py
b5ad2d61cb2606dc1420c2005c3d4f3a6be86bd3
[]
no_license
dlfaults/mutation_operators_evaluation
ea7f33459ba7bcf7d70092d9db8b40f9b338d516
7d1ff30e901931a46bf8908e9bb05cae3daa5f0f
refs/heads/master
2020-12-27T15:45:07.262012
2020-02-03T12:22:01
2020-02-03T12:22:01
237,955,342
1
0
null
null
null
null
UTF-8
Python
false
false
2,640
py
import datetime import keras from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense, Dropout, Activation, Flatten from keras.layers import Conv2D, MaxPooling2D from keras import backend as K now = datetime.datetime.now batch_size = 128 num_classes = 5 epochs = 5 (img_rows...
[ "gunel71@gmail.com" ]
gunel71@gmail.com
1f9ebac20081ec5873d734ae65bc23026fc530e2
330496f132e25e7f80143af3c6352d318aaba569
/eventex/core/migrations/0001_initial.py
8f81da1986a2c5cd6e66c5db854a302badc41590
[]
no_license
macndesign/wttd
9101b5f01d4b450ababbb1a87f42e5be8015aa4b
a376ab7f1fbb73fee44b95763f1248726b19a20c
refs/heads/master
2021-01-10T07:47:08.109279
2016-02-24T02:30:59
2016-02-24T02:30:59
47,862,224
0
1
null
null
null
null
UTF-8
Python
false
false
742
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-01-24 03:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Speaker',...
[ "macndesign@gmail.com" ]
macndesign@gmail.com
017cfba434445e0fb0de6bb0053f75945c187546
56782846ce12a4aa65c0cdd41231f82fb09bb2e2
/python/10871.py
91cafba1df5595ce0a957b1e918adb786f0c097f
[]
no_license
Zigje9/Algorithm_study
2eb7255ffae734954944e549ccaab7c4573c3b99
a6c526b42f8c0e01daf1d699f55c9b0a78741be8
refs/heads/master
2023-08-14T02:08:26.395265
2021-09-23T01:10:31
2021-09-23T01:10:31
256,192,531
1
0
null
null
null
null
UTF-8
Python
false
false
224
py
import sys N, X = map(int, sys.stdin.readline().split()) num_list = list(map(int, sys.stdin.readline().split())) answer = [] for ele in num_list: if ele < X: answer.append(ele) print(" ".join(map(str, answer)))
[ "pjkwprn@gmail.com" ]
pjkwprn@gmail.com
89488c376ce18a6320a26af432ffb10c21f46b71
885929d52504b89ec8568dec5cf8fe09d57ff710
/backend/api/models/media_image_sized_model.py
b6c0a61f5f1f6644b336cb51efda61ee1ee527f2
[ "MIT" ]
permissive
ferdn4ndo/infotrem
165d3084c5f57d024f072454ca7f536b5280b7ea
49f941387eae03e8e26aefabd87ca0b48212b059
refs/heads/master
2023-09-04T07:13:05.246074
2022-02-17T16:54:22
2022-02-17T16:54:22
200,339,872
0
0
MIT
2023-03-06T04:55:50
2019-08-03T06:18:22
Python
UTF-8
Python
false
false
862
py
from django.contrib import admin from django.db import models from django.utils.translation import gettext_lazy as _ from .generic_audited_model import GenericAuditedModel from .media_model import Media class MediaImageSized(GenericAuditedModel): media_item = models.OneToOneField(to=Media, on_delete=models.CASC...
[ "const.fernando@gmail.com" ]
const.fernando@gmail.com
a17bb73c8e3c92732c65495cb5afcfa611668ef9
c6634a86b42477746df3fb37590ec40896344245
/Ciclo 1/Hackerrank/temp.py
3f11f114122664f671b644ea17b46e6e75224c79
[]
no_license
lordjuacs/ICC-Trabajos
2163818fe52d3102c4258b1e8f3462092b55f8e1
68f4fc3ae1bd63d76fdbc0490300b9e4130e792e
refs/heads/master
2022-04-11T06:58:00.367990
2020-03-29T19:40:43
2020-03-29T19:40:43
251,117,665
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
def suma(lista, tamano): bandera = False for valor in lista: for i in range(tamano): a = lista[i] b = lista[i - 1 + 1] if valor == a + b: bandera = True return bandera tamano = int(input()) numeros = input().split(" ") for i in range(tamano): numeros[i] = int(numeros[i])...
[ "50754596+lordjuacs@users.noreply.github.com" ]
50754596+lordjuacs@users.noreply.github.com
2bf1d57536ff4ff1e135024c49529357adb70a19
a82f1ca95b15b0f3165f64132928579d5322afca
/实例学习Numpy与Matplotlib/matplotlib 柱状图.py
3ee7295f9cb08dd3d047d9f76dc73aa0dc53ee98
[ "LicenseRef-scancode-mulanpsl-1.0-en", "MulanPSL-1.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
3453566/pythonbook
29da62edfa1112119d89546e325f1da5e8cd165c
17a225169873b3c232bdfcccf7c0366d2a688354
refs/heads/master
2022-11-12T20:07:47.586868
2020-06-25T08:58:06
2020-06-25T08:58:06
274,847,189
1
0
null
null
null
null
UTF-8
Python
false
false
250
py
import matplotlib.pyplot as plt import numpy as np k = 10 x = np.arange(k) y = np.random.rand(k) plt.bar(x, y) # 画出 x 和 y 的柱状图 # 增加数值 for x, y in zip(x, y): plt.text(x, y , '%.2f' % y, ha='center', va='bottom') plt.show()
[ "4448445@qq.com" ]
4448445@qq.com
9334e8b3909347fc1fac4c0440536a4f1eefa627
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Scraper/scrapy/scrapy/spidermiddlewares/offsite.py
bbd53094409f3057c47655e78e299b8f612772b2
[ "BSD-3-Clause" ]
permissive
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:a23eca5d109bd72562c4b084b507e927ff3c7d2e0c3ff978a14c8a943de69321 size 2563
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
3313ee4bc107fe1ef46fe364ade0c04727f1c4a2
0b9e588b3d6ddf95d87a0a0f02d10ef6efcccf51
/eduapi/playlists/views.py
b63e63a48e156f7e2b82b9e1baf6ccfb026b44ed
[]
no_license
omni360/inspiration-edu-api
b5d07a7fe3a473689d5323e60e6f88dd3d6fb4cb
6e1bbf8d895082d4c44af4ae35b9f5aa5cc9addc
refs/heads/master
2022-01-22T23:30:09.879433
2016-04-28T02:02:46
2016-04-28T02:02:46
57,559,736
0
0
null
2022-01-06T22:24:03
2016-05-01T06:35:12
Python
UTF-8
Python
false
false
1,476
py
from django.core.cache import cache from rest_framework import generics from rest_framework.response import Response from playlists.models import Playlist from playlists.serializer import PlaylistSerializer class PlaylistList(generics.ListAPIView): serializer_class = PlaylistSerializer def get_queryset(self...
[ "frida.cai@autodesk.com" ]
frida.cai@autodesk.com
d13bbebe1b6b282333577c49fb0454b41e13a3b7
c4edcdff1a4ebe45e7198aaf65caf3a1f71053ab
/friskby/GW/friskby_gw.py
beb2c20012ddd284a98129ca716b707dc5e6dcf6
[]
no_license
FriskByBergen/friskby
5584cb2ea099e2c0fecd4762f56effc714fd06ee
7a444af87c23ffd6b638055e49ccd608efcd3ee6
refs/heads/master
2020-05-21T15:09:43.367245
2017-06-06T17:48:58
2017-06-06T17:48:58
45,236,960
3
10
null
2017-06-06T17:48:59
2015-10-30T07:58:33
Python
UTF-8
Python
false
false
3,279
py
import requests import datetime import json ROOT_URL = "https://friskby.herokuapp.com/" class FriskByHttp(object): def __init__(self , url): self.url = url def getRootURL(self): return self.url def getFromURL(self , api_url , params = None): url = self.url + api_url ...
[ "joakim.hove@gmail.com" ]
joakim.hove@gmail.com
8e9b9e2ac223245c6374fc84cd05fee0e9b6f073
d24a6e0be809ae3af8bc8daa6dacfc1789d38a84
/ABC/ABC201-250/ABC205/F.py
88429c37d5cfc48b64e4fe0775a97e76b725b777
[]
no_license
k-harada/AtCoder
5d8004ce41c5fc6ad6ef90480ef847eaddeea179
02b0a6c92a05c6858b87cb22623ce877c1039f8f
refs/heads/master
2023-08-21T18:55:53.644331
2023-08-05T14:21:25
2023-08-05T14:21:25
184,904,794
9
0
null
2023-05-22T16:29:18
2019-05-04T14:24:18
Python
UTF-8
Python
false
false
2,747
py
from collections import deque class Dinic: def __init__(self, n): self.n = n self.g = [[] for i in range(n)] self.level = [None] * n self.it = None def add_edge(self, fr, to, cap): forward = [to, cap, None] forward[2] = backward = [fr, 0, forward] self....
[ "cashfeg@gmail.com" ]
cashfeg@gmail.com
eb3eab921ca29faa7a424e1059e31aadbb3e75f0
1f94767da0b3d9260cf2548014ff264127704796
/ml/rl/workflow/dqn_workflow.py
12672c8cabee184da530586bef5da6ae2f64f973
[ "BSD-3-Clause" ]
permissive
johncliu/Horizon
9ea6de069a0294f6e97a3821137394be9ae66c34
cfa7a873ada5de3bb01e78e2f237d9849b8270b2
refs/heads/master
2022-11-26T21:15:07.795468
2018-12-09T00:27:42
2018-12-09T00:29:27
160,994,599
0
0
NOASSERTION
2022-11-21T22:30:40
2018-12-09T01:44:45
Python
UTF-8
Python
false
false
5,553
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import logging import os import sys import time import numpy as np from ml.rl.preprocessing.preprocessor import Preprocessor from ml.rl.thrift.core.ttypes import ( DiscreteActionModelParameters, InTrainingCPEParamet...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
dfde0285448aa488fa51c61b0e6cabe3ddc27d1d
44064ed79f173ddca96174913910c1610992b7cb
/Second_Processing_app/temboo/Library/NPR/StoryFinder/Columns.py
740c7eecc5bdf8b57740847633724783b5192f27
[]
no_license
dattasaurabh82/Final_thesis
440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5
8edaea62f5987db026adfffb6b52b59b119f6375
refs/heads/master
2021-01-20T22:25:48.999100
2014-10-14T18:58:00
2014-10-14T18:58:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,058
py
# -*- coding: utf-8 -*- ############################################################################### # # Columns # Retrieves a list of NPR column titles and corresponding IDs. Also used to look up the IDs of specific NPR columns by specifying the title as an optional parameter. # # Python version 2.6 # ############...
[ "dattasaurabh82@gmail.com" ]
dattasaurabh82@gmail.com
2b8cb05488e5c7ec946ffbaccb28d5f3cc7af771
fa0c53ac2a91409eaf0fc7c082a40caae3ffa0d8
/com/lc/python_1_100_Days_Demo/Day41-55/code/oa/hrs/admin.py
f05c6381b3c987978a0f2d27f258372298a07aec
[]
no_license
ahviplc/pythonLCDemo
aba6d8deb1e766841461bd772560d1d50450057b
22f149600dcfd4d769e9f74f1f12e3c3564e88c2
refs/heads/master
2023-07-24T01:41:59.791913
2023-07-07T02:32:45
2023-07-07T02:32:45
135,969,516
7
2
null
2023-02-02T03:24:14
2018-06-04T04:12:49
Python
UTF-8
Python
false
false
2,756
py
from django.contrib import admin from hrs.models import Dept, Emp, BlogsPost import django class DeptAdmin(admin.ModelAdmin): # listdisplay设置要显示在列表中的字段(id字段是Django模型的默认主键) list_display = ('no', 'name', 'location', 'excellent') # ordering设置默认排序字段,负号表示降序排序 ordering = ('no', ) # 搜索字段 search_...
[ "ahlc@sina.cn" ]
ahlc@sina.cn
c0dd317c4bd9cdb7db967eb7f65225c05b192d8d
05522651c1574424d8dd95656ed897decc547e9f
/snippets/serializers.py
fd946a81966413849c86b9cef8d3a2cc629b7606
[]
no_license
donhwi94/django_rest_framework_tutorial
5c4eb39bf08949d79d575c831e581a4f3e6da293
f2819067c65006f466304d1286b724ba485444e6
refs/heads/main
2023-06-15T08:43:28.322304
2021-07-15T07:08:20
2021-07-15T07:08:20
361,979,885
0
0
null
null
null
null
UTF-8
Python
false
false
2,138
py
from django.contrib.auth.models import User from rest_framework import serializers from snippets.models import Snippet, LANGUAGE_CHOICES, STYLE_CHOICES class SnippetSerializer(serializers.ModelSerializer): owner = serializers.ReadOnlyField(source='owner.username') highlight = serializers.HyperlinkedIden...
[ "ehsgnl123@naver.com" ]
ehsgnl123@naver.com
d23b697cf51326b6d8eca32a4924c25771cad6a1
49ca440fbf80bb663d990b42f30486a8922039af
/examples/adafruit_io_mqtt/adafruit_io_simpletest_cellular.py
42ca892aa48a8858f1be74a32413b3da455bc5a6
[ "MIT" ]
permissive
jepler/Adafruit_CircuitPython_AdafruitIO
a77f835851d91f779f0425fd700f070c7de7f60e
2fcef79413a5318254addce3022b08ee7b7e226c
refs/heads/master
2022-12-15T03:32:14.769740
2020-08-07T03:41:46
2020-08-07T03:41:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,790
py
# Example of using the Adafruit IO CircuitPython MQTT client # to subscribe to an Adafruit IO feed and publish random data # to be received by the feed. # # Example by Tony DiCola for Adafruit Industries # Modified by Brent Rubell for Adafruit Industries, 2019 import time from random import randint import board import...
[ "robots199@me.com" ]
robots199@me.com
b8b50adad7a8105dcb6603ba9cba51e3cbcb703c
f359c953ef823cc44f7d87a3736c3e4fb1817c0b
/EDBRGenStudies/test/genJetStudy.py
c8537c55995064824cb0a25c667d0ed1d4f67abd
[]
no_license
jruizvar/ExoDiBosonResonancesRun2
aa613200725cf6cd825d7bcbde60d2e39ba84e39
b407ab36504d0e04e6bddba4e57856f9f8c0ec66
refs/heads/Analysis76X
2021-01-18T20:00:57.358494
2016-05-30T21:30:19
2016-05-30T21:30:19
23,619,682
1
1
null
2016-04-22T18:38:45
2014-09-03T12:41:07
Python
UTF-8
Python
false
false
3,118
py
import FWCore.ParameterSet.Config as cms process = cms.Process("MCMatch") process.load("FWCore.MessageService.MessageLogger_cfi") process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) ) process.MessageLogger.cerr.FwkReport.reportEvery = 1000 process.load("Configuration.StandardSequences.Fronti...
[ "jruizvar@cern.ch" ]
jruizvar@cern.ch
07fa703604ee9cd47ede27e9d2181e76da4ead1b
c99d1169ed594bc2d2dc1b65f43cdf58b70bd6a2
/setup.py
c1bbe4185a252cdc52d06bab56e9dbb44fa87a06
[ "MIT" ]
permissive
martsberger/django-aggregate-if
61bdcc490a0bc4bd65adfcbb98a14bdc0fad5c60
12024eccb7b2ae15ac612a46027f6ec7b259d0bd
refs/heads/master
2021-01-16T22:26:39.321223
2014-03-21T02:28:42
2014-03-21T02:28:42
17,953,667
1
0
null
null
null
null
UTF-8
Python
false
false
1,005
py
# coding: utf-8 from setuptools import setup import os setup(name='django-aggregate-if', version='0.3.1', description='Conditional aggregates for Django, just like the famous SumIf in Excel.', long_description=open(os.path.join(os.path.dirname(__file__), "README.rst")).read(), author="Henrique...
[ "henrique@bastos.net" ]
henrique@bastos.net
1cad0a474a9fe4607039a9cdc65eb9562926b5b6
e72f1cbd7cce20376e7d39ebe67ad4974be45b41
/src/main/dec22/searchnode.py
ea9cdc8dca67cd2e9b9dc06f18af5d7d8069be15
[]
no_license
andersberggren/AdventOfCode2018
ea9eb46eac275ca8613bc7c2c38dbfc9a69a014a
05f12330ea0b9fac77648f2b0ac0881eb5445357
refs/heads/master
2020-04-09T19:44:50.740771
2019-01-04T15:07:11
2019-01-04T15:07:11
160,551,913
0
0
null
null
null
null
UTF-8
Python
false
false
1,879
py
from aoclib.direction import Direction from aoclib.geometry import getManhattanDistance2 from dec22.cave import Tool class SearchNode: def __init__(self, parentNode, cave, location): self.parentNode = parentNode self.cave = cave self.location = location self.timeSpent = 0 self.equippedTool = Tool.torch if...
[ "anders.berggren@acino.se" ]
anders.berggren@acino.se
71d8c314f485c02e70267f331c15b5d4387c0ede
afdeedfb743fbb149d36c14cfad65feaf03acd21
/code/1547-minimum-cost-to-cut-a-stick.py
441bf419cf02cd0f4cbae78e5ae4fdcdbfda0bdc
[]
no_license
linhx13/leetcode-code
f16cd4a0d35be34c41b86715fc9f3e8ec4b0a577
c71574acfc68174a091c1751f10985b8f5737a1f
refs/heads/master
2021-07-04T03:45:20.030275
2021-06-09T13:55:18
2021-06-09T13:55:18
70,423,464
0
1
null
2019-08-01T09:37:49
2016-10-09T18:48:33
null
UTF-8
Python
false
false
559
py
from typing import List class Solution: def minCost(self, n: int, cuts: List[int]) -> int: m = len(cuts) cuts = [0] + sorted(cuts) + [n] dp = [[0] * (m + 1) for _ in range(m + 1)] for l in range(2, m + 2): for i in range(0, m + 2 - l): j = i + l - 1 ...
[ "mylhx288@gmail.com" ]
mylhx288@gmail.com
434a567ca040dd1a43ba1858f151bf84116a77f0
fff4e1431391956292afe5514b03f81035a3f402
/RL/DQN-maze/RL_brain.py
3c54a5a6a2ea48f40fd0d942e31d45bae208dcdd
[]
no_license
recomdDN/DL_practice
b1d0172bc91a735a32ae01379965247bc9b71a91
5addd8629533b7547a62f68c518138af48e174f2
refs/heads/master
2020-04-16T23:02:12.324842
2019-02-18T09:29:53
2019-02-18T09:29:53
165,995,401
4
3
null
null
null
null
UTF-8
Python
false
false
4,842
py
import tensorflow as tf import numpy as np import tensorflow as tf np.random.seed(1) tf.set_random_seed(1) class DeepQNetwork: def __init__(self, n_actions, n_features, learning_rate=0.01, reward_decay = 0.9, e_greedy=0.9, ...
[ "593476874@qq.com" ]
593476874@qq.com
3c0152a2c600a35ad9289f795cd72cb7505abfdf
f8f2536fa873afa43dafe0217faa9134e57c8a1e
/aliyun-python-sdk-drds/aliyunsdkdrds/request/v20190123/CreateDrdsDBRequest.py
a69e602e8fd1b1b21c1973ed37bb193db2958912
[ "Apache-2.0" ]
permissive
Sunnywillow/aliyun-openapi-python-sdk
40b1b17ca39467e9f8405cb2ca08a85b9befd533
6855864a1d46f818d73f5870da0efec2b820baf5
refs/heads/master
2022-12-04T02:22:27.550198
2020-08-20T04:11:34
2020-08-20T04:11:34
288,944,896
1
0
NOASSERTION
2020-08-20T08:04:01
2020-08-20T08:04:01
null
UTF-8
Python
false
false
4,386
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
5abe42150b34dec45f6d24b13ec7569bb5fb25bb
ad96a1e490583637eb1f825292f780f65bad184b
/parse/parser_test.py
5d4a43507fb87ca9da51d494596779887f3b879b
[ "Apache-2.0" ]
permissive
suraj-testing2/System_Post_office
91ee68db366fc739fa9f101326e6d9507948241b
c7a1bdd9044b00b67e1fc21a48365e424eace0c0
refs/heads/master
2022-10-22T02:19:59.184585
2015-02-11T17:30:38
2015-02-11T17:31:27
267,727,510
0
0
null
null
null
null
UTF-8
Python
false
false
2,990
py
# -*- coding:utf-8; python-indent:2; indent-tabs-mode:nil -*- # Copyright 2013 Google Inc. 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/l...
[ "kramm@google.com" ]
kramm@google.com
9968af34d73ecd465674bec13bb37b2ee667da28
b7125b27e564d2cc80a2ce8d0a6f934aa22c8445
/.history/sudoku_20201031002226.py
1dcb4be834f6bfdcc32c89d45090abef5193a49a
[]
no_license
JensVL96/Puzzle-solver-for-fun
4c15dcd570c3705b7ac555efb56b52913e81083c
6d8a4378a480372213a596a336a4deca727a00fc
refs/heads/master
2021-07-15T05:19:42.185495
2020-11-08T13:59:49
2020-11-08T13:59:49
224,855,888
1
0
null
null
null
null
UTF-8
Python
false
false
3,209
py
# -*- coding: utf-8 -*- from __future__ import print_function from config import * from create_board import * from solve_bloard import * from display_board import * from string import * import pygame as pg import numpy as np def get_cord(pos): global box_index_x box_index_x = (pos[0] - TOP_LX)//BLOCK_SIZE ...
[ "jle040@uit.no" ]
jle040@uit.no