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
2ae4c9670b68771f35af5acc4c3578cfdcd7c4ef
478422b7042926f243a6dcfa90d9c8640e37ec83
/PyAlgoTradeCN/01_SamplesFromPyAlgoTradeCN/stratlib/thrSMA_live.py
952ac0bff90d021982742eb2af5b50f33f4102fc
[ "MIT" ]
permissive
JohnnyDankseed/midProjects
c70e4c19680af50c1a3869726cca4e9ea2cd4de7
ed6086e74f68b1b89f725abe0b270e67cf8993a8
refs/heads/master
2021-06-03T05:24:32.691310
2016-07-25T17:13:04
2016-07-25T17:13:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,764
py
# -*- coding: utf-8 -*- """ Created on Tue Nov 03 13:06:56 2015 @author: Eunice """ if __name__ == '__main__': import sys sys.path.append("..") from pyalgotrade import bar from pyalgotrade import plotter # 以上模块仅测试用 from pyalgotrade.broker.fillstrategy import DefaultStrategy from pyalgotrade.broke...
[ "upsea@upsea.cn" ]
upsea@upsea.cn
83ab91127cfd012ac6082da0ab35a359b9d36368
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2535/60647/283667.py
9ed53c7cab12facc604a276ec4facf9ffd08731e
[]
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
534
py
list=input() #如果从这个数开始,每一个数都比前一个大, 则加一 def num(a,list): for i in range(len(list)): if int(list[i])<int(a): return False return True max=0 list1=[] res=1 for i in range(len(list)): if int(list[i])>=max: if i==len(list)-1: res+=1 else: max=int(list[i...
[ "1069583789@qq.com" ]
1069583789@qq.com
b1e51b9190495225dce3a0f41da983608c9957cf
5864e86954a221d52d4fa83a607c71bacf201c5a
/carbon/common/script/entities/Spawners/encounterSpawner.py
4d5bb3f2a0bdebce0ec3d76e2e5daec0453da68f
[]
no_license
connoryang/1v1dec
e9a2303a01e5a26bf14159112b112be81a6560fd
404f2cebf13b311e754d45206008918881496370
refs/heads/master
2021-05-04T02:34:59.627529
2016-10-19T08:56:26
2016-10-19T08:56:26
71,334,417
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\script\entities\Spawners\encounterSpawner.py from carbon.common.script.entities.Spawners.runtimeSpawner import RuntimeSpawner class EncounterSpawner(RuntimeSpawner): __guid__ = 'cef.EncounterSpawner'
[ "le02005@163.com" ]
le02005@163.com
d00a29e77a591aa61625df863e903de88e36ea7c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03213/s787167232.py
875bd7ad591f6ef540a3b100a4dfaa4648a17478
[]
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
1,419
py
#template def inputlist(): return [int(k) for k in input().split()] #template def factorization(n): arr = [] temp = n for i in range(2, int(-(-n**0.5//1))+1): if temp%i==0: cnt=0 while temp%i==0: cnt+=1 temp //= i arr.append([i, cn...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f0e99347c8713ef9c69c0f8b8fe5543221c7f17f
e3b9aa9b17ebb55e53dbc4fa9d1f49c3a56c6488
/red_canary/komand_red_canary/actions/create_activity_monitor/action.py
73804a2de359e817432441c993f2c0436e600e90
[ "MIT" ]
permissive
OSSSP/insightconnect-plugins
ab7c77f91c46bd66b10db9da1cd7571dfc048ab7
846758dab745170cf1a8c146211a8bea9592e8ff
refs/heads/master
2023-04-06T23:57:28.449617
2020-03-18T01:24:28
2020-03-18T01:24:28
248,185,529
1
0
MIT
2023-04-04T00:12:18
2020-03-18T09:14:53
null
UTF-8
Python
false
false
954
py
import komand from .schema import CreateActivityMonitorInput, CreateActivityMonitorOutput # Custom imports below class CreateActivityMonitor(komand.Action): def __init__(self): super(self.__class__, self).__init__( name='create_activity_monitor', description='Creates a new...
[ "jonschipp@gmail.com" ]
jonschipp@gmail.com
4b105aca2fcf5637f1b9c2ead4204f34d9ebdd74
9577a25e8dfca9d45942b739d9b24b1170dd8a0e
/groovebox/app.py
c115e123781f665800f5575ad0b3b7c5d53dac1a
[ "Apache-2.0" ]
permissive
ArchiveLabs/groovebox.org
31a075dc55b2edc8d633b1bbe3e0017271cd808d
62378347e7152eac68b9f6685e2e064f39c0a042
refs/heads/master
2021-01-18T02:08:49.728837
2015-10-22T00:01:33
2015-10-22T00:01:33
46,458,090
3
0
null
2015-11-19T01:05:43
2015-11-19T01:05:42
CSS
UTF-8
Python
false
false
452
py
#!/usr/bin/env python # -*-coding: utf-8 -*- """ app.py ~~~~~~ :copyright: (c) 2015 by Mek :license: see LICENSE for more details. """ from flask import Flask from flask.ext.routing import router import views from configs import options urls = ('/favicon.ico', views.Favicon, '/<path:uri>', v...
[ "michael.karpeles@gmail.com" ]
michael.karpeles@gmail.com
cde792f26d913f7e253f942c3f79c8b50cd05070
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03665/s533070063.py
36f4b83274d20d183a9103fb57d80ae329081a87
[]
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
510
py
from math import factorial def combinations_count(n, r): return factorial(n) // (factorial(n - r) * factorial(r)) n,p = map(int,input().split()) a = list(map(int,input().split())) eve = 0 odd = 0 for i in range(n): if a[i]%2==0: eve += 1 else: odd += 1 eve_cb = 2**eve odd_cb1 = 0 odd_cb2 = 0 if p==1: ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
75b6137cb632fbf92961924ccf4818e4055d273e
009d7750dc8636c31bd8da890bdf4be3770bfddd
/tmp/env/lib/python3.6/site-packages/tensorflow/_api/v1/compat/v1/train/experimental/__init__.py
c8952a33efd54ba1f9937e7d3a5c0e526da1988f
[ "Apache-2.0" ]
permissive
Nintendofan885/Detect_Cyberbullying_from_socialmedia
241a5ae70405494ea5f7e393f9dac273ac2ff378
2f3d0a1eca0e3163565a17dcb35074e0808ed176
refs/heads/master
2022-11-25T18:56:27.253834
2020-08-03T13:16:16
2020-08-03T13:16:16
284,701,752
0
0
NOASSERTION
2020-08-03T13:02:06
2020-08-03T13:02:05
null
UTF-8
Python
false
false
886
py
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Public API for tf.train.experimental namespace. """ from __future__ import print_function as _print_function from tensorflow.python.training.experimental.loss_scale import DynamicLossSc...
[ "e.fatma.e@gmail.com" ]
e.fatma.e@gmail.com
bb36f1b7530eb689956bb608eb5bdb38787a27cc
7437ecc0d856adef02ae0a84b51dd1db04fc7c79
/matplot.py
fab461f597050c2a5afd30669263b1e5976c235b
[]
no_license
samarthdubey46/Matplotlib
06c6e2ac1abbd125c1a3d8c0fbe6e57dce0a032b
31fe567938a5cb5183860b723747675b3741d56b
refs/heads/master
2022-11-18T13:57:23.610309
2020-07-18T11:17:14
2020-07-18T11:17:14
280,640,303
1
0
null
null
null
null
UTF-8
Python
false
false
1,355
py
from matplotlib import pyplot as plt plt.style.use('dark_background') #DATA ages_x = [18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55] py_dev_y = [20046, 17100, 20000, 24744, 30500, 37732, 41247, 45372, 488...
[ "samarthdubey46@gmail.com" ]
samarthdubey46@gmail.com
3ecba571246a2f523371be75f8e62af98fbc9f0f
bc54edd6c2aec23ccfe36011bae16eacc1598467
/simscale_sdk/models/celllimited_gauss_linear_gradient_scheme.py
29431b00d80dc5ff4282a783ef1a700d8721c50e
[ "MIT" ]
permissive
SimScaleGmbH/simscale-python-sdk
4d9538d5efcadae718f12504fb2c7051bbe4b712
6fe410d676bf53df13c461cb0b3504278490a9bb
refs/heads/master
2023-08-17T03:30:50.891887
2023-08-14T08:09:36
2023-08-14T08:09:36
331,949,105
17
5
null
null
null
null
UTF-8
Python
false
false
5,471
py
# coding: utf-8 """ SimScale API The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from simscale_sdk.configuration import Configuration class CelllimitedGaussLinearGradientScheme(object): """NOTE: This cla...
[ "simscale" ]
simscale
7b91548e9141af53338a31e7040127830dbfe2eb
b5ac4c1f7906bf6722ffab8b04e1aacde632b9d5
/server/server/view.py
174ca7df8d1faefbf616028cb5dc2c3f9c21d7df
[]
no_license
mportela/chrome_plugin
e661d4fbb26685683c067ffd0a6441d88f04766d
2e84ba8c86e786b86d6ba8572ee28f9f3bb54f15
refs/heads/master
2021-01-10T06:10:57.730223
2016-03-15T16:40:53
2016-03-15T16:40:53
53,960,830
0
0
null
null
null
null
UTF-8
Python
false
false
526
py
import json from django.http import HttpResponse from server import models def display(request): return HttpResponse(models.UrlReached.objects.all().values('url','date_time'), content_type='application/json') def process(request): res_dict = {"true": 1} name = str(request.GET.get('query')) # not used i...
[ "you@example.com" ]
you@example.com
b5b3bdb6ee9ad2097b89fd0245c51af814711a6d
3c4198d76240852d4abcf9b7c940927e217635b3
/conanizer/template/test_package/conanfile.py
df0cf5cc551fc76ea950b35bd5579c4189adda39
[ "MIT" ]
permissive
lasote/vcpkg
a3ba4b07936df4395709e4566859bea57cb4a754
a92528a9ddf626ac640e80762e3b6dc00001812e
refs/heads/master
2021-01-19T04:49:13.330532
2017-03-13T09:14:06
2017-03-13T09:14:06
69,260,019
3
2
null
2017-03-13T09:08:15
2016-09-26T14:43:08
C++
UTF-8
Python
false
false
1,459
py
from conans import ConanFile, CMake import os channel = os.getenv("CONAN_CHANNEL", "vcpkg") username = os.getenv("CONAN_USERNAME", "lasote") class VcpkgwrapperTestConan(ConanFile): settings = "os", "compiler", "build_type", "arch" requires = "**NAME**/**VERSION**@%s/%s" % (username, channel) generators ...
[ "lasote@gmail.com" ]
lasote@gmail.com
d9303ea004b2f1d96a416f13066197be0e531418
4b0c57dddf8bd98c021e0967b5d94563d15372e1
/run_MatrixElement/test/emptyPSets/emptyPSet_STopT_T_JESDown_cfg.py
042a3a7c8fdb4c02eb45821cf68f515dc5dea706
[]
no_license
aperloff/TAMUWW
fea6ed0066f3f2cef4d44c525ee843c6234460ba
c18e4b7822076bf74ee919509a6bd1f3cf780e11
refs/heads/master
2021-01-21T14:12:34.813887
2018-07-23T04:59:40
2018-07-23T04:59:40
10,922,954
0
1
null
null
null
null
UTF-8
Python
false
false
914
py
import FWCore.ParameterSet.Config as cms import os #! #! PROCESS #! process = cms.Process("MatrixElementProcess") #! #! SERVICES #! #process.load('Configuration.StandardSequences.Services_cff') process.load('FWCore.MessageLogger.MessageLogger_cfi') process.MessageLogger.cerr.FwkReport.reportEvery = 5000 process.load...
[ "aperloff@physics.tamu.edu" ]
aperloff@physics.tamu.edu
3b9d08febc3ef5b0a1a002a405d4fddb1b6182df
5a37472eae214d70dbe90b9dc61d03d01b8ccead
/accounts/models.py
9e4d1366d3e2d05f7d54cc80f88b60c1a2695f51
[]
no_license
Anuragjain20/ChatApp
5e65d3264f27fe7bef5fdf8a9c5517220653d767
4db975c522a3f410a4e918e96087144e8abe7c06
refs/heads/main
2023-08-24T19:23:47.617916
2021-10-28T18:55:54
2021-10-28T18:55:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
272
py
from django.db import models from django.contrib.auth.models import User # Create your models here. class Profile(User): name = models.CharField(max_length=255) is_verified = models.BooleanField(default=False) def __str__(self): return self.name
[ "anuragjain2rr@gmail.com" ]
anuragjain2rr@gmail.com
dffdc0c909630a0d178787445594c46956598d25
dcadfaaf6d5aca5a52b422df68a7ddef67b37ec1
/pay-api/migrations/versions/7e51d3ce4005_statement_settings.py
5f5f0dc12d331e69986fef93636af1629b78e6f6
[ "Apache-2.0" ]
permissive
pwei1018/sbc-pay
ec161e2d2574272b52a7cad38a43cf68e105f855
137b64ab57316f0452c760488301e33be6e9bbe0
refs/heads/development
2022-06-08T17:36:20.226648
2021-04-07T17:00:42
2021-04-07T17:01:07
168,407,310
0
4
Apache-2.0
2019-06-12T19:06:58
2019-01-30T20:05:36
Python
UTF-8
Python
false
false
4,488
py
"""statement_settings Revision ID: 7e51d3ce4005 Revises: 567df104d26c Create Date: 2020-08-18 10:04:08.532357 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = '7e51d3ce4005' down_revision = '567df104d26c' branch_labels = None depends_on = None def upgrade(): ...
[ "sumesh.pk@aot-technologies.com" ]
sumesh.pk@aot-technologies.com
d0fd835e3d61a7db44b259b0c1d9a05bc4796396
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/DPGAnalysis/SiStripTools/python/apvcyclephasemonitor_cfi.py
9814e0f8f7209992f5a68a743eef2f4a9d42ad1f
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
198
py
import FWCore.ParameterSet.Config as cms apvcyclephasemonitor = cms.EDAnalyzer('APVCyclePhaseMonitor', apvCyclePhaseCollection = cms.InputTag("APVPhases"), )
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
deae5050d581b1d17e3c50c20f4ab36e74df1bd1
d2c229f74a3ca61d6a22f64de51215d9e30c5c11
/qiskit/circuit/library/templates/nct/template_nct_9c_7.py
b9f87f69effbf1b0646eb719daee998d4d86ad23
[ "Apache-2.0" ]
permissive
1ucian0/qiskit-terra
90e8be8a7b392fbb4b3aa9784c641a818a180e4c
0b51250e219ca303654fc28a318c21366584ccd3
refs/heads/main
2023-08-31T07:50:33.568824
2023-08-22T01:52:53
2023-08-22T01:52:53
140,555,676
6
1
Apache-2.0
2023-09-14T13:21:54
2018-07-11T09:52:28
Python
UTF-8
Python
false
false
1,620
py
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
[ "noreply@github.com" ]
1ucian0.noreply@github.com
7e7607f6a093f30de9aba7f216f56bb3e00dda94
ddacbd31a215de3560d4c79489915f8b3bdf9a8d
/vertmodes.py
e4a45500783bee6e110328750660bec3d6ed6c71
[]
no_license
jklymak/pythonlib
40cfce6ee34f36a90c03350d3bf50e5e99655e26
e71b1713394b5ac38ba0ea2f32d3fdff6f5118ff
refs/heads/master
2021-06-18T12:53:57.051465
2017-05-29T19:14:27
2017-05-29T19:14:27
21,134,313
1
0
null
null
null
null
UTF-8
Python
false
false
3,236
py
from matplotlib import pylab def vertModes(N2,dz,nmodes=0): """" psi,phi,ce,z=vertModes(N2,dz,nmodes=0) Compute the vertical eigen modes of the internal wave solution on a flat bottom Parameters: ----------- N2 : (M) is buoyancy frequency squared (rad^2/s^2) as an 1-D array. ...
[ "jklymak@gmail.com" ]
jklymak@gmail.com
7d454b4ee957e03dc6015d34bb5973486b64293d
1e0a8a929f8ea69e476d8a8c5f3455aaf5317de6
/scripts/utils/_rabbitmq.py
71b8a0f02aff9298131339204af550da774c7e2f
[ "MIT" ]
permissive
jearistiz/guane-intern-fastapi
aa41400fa22076111e96be695fde0a1ff6f118d0
269adc3ee6a78a262b4e19e7df291fd920fae2e1
refs/heads/master
2023-06-25T08:58:03.729614
2023-06-11T15:28:59
2023-06-11T15:28:59
370,229,796
63
9
MIT
2021-06-11T01:28:52
2021-05-24T04:45:23
Python
UTF-8
Python
false
false
4,175
py
import time import warnings from pathlib import Path from typing import Tuple from subprocess import Popen, run, CompletedProcess def local_rabbitmq_uri( user: str, pwd: str, port: str, vhost: str ) -> str: return f'amqp://{user}:{pwd}@0.0.0.0:{port}/{vhost}' def init_rabbitmq_app( rabbitmq_user: str, ...
[ "jeaz.git@gmail.com" ]
jeaz.git@gmail.com
653fdc5ad9a6a125e22f78463105e985e68a1d81
79a61715a94e0a78e3268a514f97e5211c3e770b
/processors/notes_to_comments.py
4653bc214790c24cf0339ee01b7a1289fbb470ce
[ "MIT", "ISC" ]
permissive
eads/desapariciones
2f120c18316e9ee3416b4c9eae1d68f72ec00e9c
6069b21f26cc5175e78af54efb5cda0a64a2d9c5
refs/heads/master
2023-03-09T09:16:30.321455
2022-05-15T18:40:16
2022-05-15T18:40:16
188,893,244
5
0
MIT
2023-03-03T00:20:30
2019-05-27T18:42:01
R
UTF-8
Python
false
false
577
py
import click import csv from jinja2 import Template from slugify import slugify TEMPLATE = """ comment on column processed.cenapi.{{nombre_variable}} is '{{descripción}}'; """ @click.command() @click.argument('input', type=click.File('r', encoding='utf-8-sig')) @click.argument('output', type=click.File('w')) def ge...
[ "davideads@gmail.com" ]
davideads@gmail.com
2cff4d3069d8f77d32a1cdbe93772331360cc8ba
89dedd7f3c7acc81d12e2bcb2e716f9af9e5fa04
/third_party/libwebp/libwebp.gyp
67c03685dd3d9b42591b4f5d3b52fc8671446cb8
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-google-patent-license-webm", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0" ]
permissive
bino7/chromium
8d26f84a1b6e38a73d1b97fea6057c634eff68cb
4666a6bb6fdcb1114afecf77bdaa239d9787b752
refs/heads/master
2022-12-22T14:31:53.913081
2016-09-06T10:05:11
2016-09-06T10:05:11
67,410,510
1
3
BSD-3-Clause
2022-12-17T03:08:52
2016-09-05T10:11:59
null
UTF-8
Python
false
false
7,956
gyp
# Copyright (c) 2012 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. { 'target_defaults': { 'conditions': [ ['os_posix==1 and (target_arch=="arm" or target_arch=="arm64")', { 'cflags!': [ '-Os' ], ...
[ "bino.zh@gmail.com" ]
bino.zh@gmail.com
c64d298bed0f1f677a17ca3bac15570c447556a7
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/resources/v20190801/get_resource_group.py
2f0d4bd30068643085cd612cac2f5e047a4d6f33
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,102
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
3621b7bff933e2d4959271d79594fd29094aa68c
1698fe3ff15a6737c70501741b32b24fe68052f4
/django-request-master/request/models.py
102d2270e1323708bb13dd219052f6e37150f524
[]
no_license
menhswu/djangoapps
4f3718244c8678640af2d2a095d20a405e337884
039a42aa9d1537e7beb4071d86bea7a42253d8b3
refs/heads/master
2023-03-04T03:56:01.070921
2021-01-28T07:35:02
2021-01-28T07:35:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,049
py
from socket import gethostbyaddr from django.conf import settings from django.contrib.auth import get_user_model from django.db import models from django.utils import timezone from django.utils.translation import gettext_lazy as _ from . import settings as request_settings from .managers import RequestManager from .u...
[ "jinxufang@tencent.com" ]
jinxufang@tencent.com
dbe246c5716bc5805439e941fe6ceb98c1161194
e9539de5b8832e2a09365917fe201a945bf5d99b
/leetcode16.py
c6fc3a8fc977080489f30d083f334013a3f341b1
[]
no_license
JoshuaW1990/leetcode-session1
56d57df30b21ccade3fe54e3fd56a2b3383bd793
6fc170c04fadec6966fb7938a07474d4ee107b61
refs/heads/master
2021-09-20T16:18:15.640839
2018-08-12T09:40:51
2018-08-12T09:40:51
76,912,955
0
0
null
null
null
null
UTF-8
Python
false
false
874
py
class Solution(object): def threeSumClosest(self, nums, target): """ :type nums: List[int] :type target: int :rtype: int """ ans = None minDiff = float('inf') nums.sort() for i in xrange(len(nums) - 2): if i == 0 or nums[i] > nums[i...
[ "Jun.Wang@tufts.edu" ]
Jun.Wang@tufts.edu
0c28ae315ae4aca9b257d2bda00cbfc798cdca4e
092a13e08cc412d85f2115b9efaad17e1afdfc1a
/common/models/food/Food.py
068207c4915f3f47faa1deb6364f04b1ec590403
[]
no_license
Willanzhang/flask_mvc
283196e1850f8676f1db52fe6361aa8706276e9d
408470329494cd40691e4014b85ccdc9ba11711d
refs/heads/master
2022-12-12T11:13:06.202893
2019-08-04T14:21:48
2019-08-04T14:21:48
173,304,987
0
0
null
2022-12-08T04:54:05
2019-03-01T13:18:14
JavaScript
UTF-8
Python
false
false
1,501
py
# coding: utf-8 from sqlalchemy import Column, DateTime, Integer, Numeric, String from sqlalchemy.schema import FetchedValue from application import db class Food(db.Model): __tablename__ = 'food' id = db.Column(db.Integer, primary_key=True) cat_id = db.Column(db.Integer, nullable=False, server_default=db...
[ "631871612@qq.com" ]
631871612@qq.com
9514c4458b97cb367130adb69501908c8ee29532
51a37b7108f2f69a1377d98f714711af3c32d0df
/src/leetcode/P5664.py
146ff2962cd3355bf82250c46bf4e1657269de8d
[]
no_license
stupidchen/leetcode
1dd2683ba4b1c0382e9263547d6c623e4979a806
72d172ea25777980a49439042dbc39448fcad73d
refs/heads/master
2022-03-14T21:15:47.263954
2022-02-27T15:33:15
2022-02-27T15:33:15
55,680,865
7
1
null
null
null
null
UTF-8
Python
false
false
610
py
class Solution: def minimumBoxes(self, n: int): t = 0 m = 0 i = 1 while True: t += (i * (i + 1)) >> 1 if t >= n: m = i break i += 1 if t == n: return (m * (m + 1)) >> 1 t -= (m * (m + 1))...
[ "stupidchen@foxmail.com" ]
stupidchen@foxmail.com
bca93284647db372a5236cc8a447f4654434f78c
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_grout.py
989f969bf4769d1c0640642da950d88a9f05f5b4
[ "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
302
py
#calss header class _GROUT(): def __init__(self,): self.name = "GROUT" self.definitions = [u'mortar used for grouting'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, obj1 = [], obj2 = []): return self.jsondata
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
f421e5d3c9490ad52705ea07bdcf8dd9763a729b
ec551303265c269bf1855fe1a30fdffe9bc894b6
/old/t20190416_divide/divide.py
19521d6d57481134378c263ec0fe597333aca22a
[]
no_license
GongFuXiong/leetcode
27dbda7a5ced630ae2ae65e19d418ebbc65ae167
f831fd9603592ae5bee3679924f962a3ebce381c
refs/heads/master
2023-06-25T01:05:45.683510
2021-07-26T10:05:25
2021-07-26T10:05:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,694
py
#!/usr/bin/env python # encoding: utf-8 ''' @author: KM @license: (C) Copyright 2013-2017, Node Supply Chain Manager Corporation Limited. @contact: yangkm601@gmail.com @software: garner @file: divide.py @time: 2019/4/16 11:56 @desc: 22. 括号生成 给定两个整数,被除数 dividend 和除数 divisor。将两数相除,要求不使用乘法、除法和 mod 运算符。 返回被除数 ...
[ "958747457@qq.com" ]
958747457@qq.com
899c7ea862d1368e04b45d33aabd03d943fa2d16
1b845de8123c750e8735ccf4297bf1e5861cbb4b
/katas/5kyu/kata11.py
4c378777c4c279724b5df14f510e2318865c2f63
[]
no_license
jorgemira/codewars
3ef2b05fa90722cdd48bb8afb0f7536627bcfec9
701a756f3d466dbfe93f228b2e294cf49a7af2ae
refs/heads/master
2020-12-19T19:07:51.485286
2020-01-23T15:54:52
2020-01-23T15:54:52
235,824,468
3
0
null
null
null
null
UTF-8
Python
false
false
941
py
""" Codewars 5 kyu kata: Finding an appointment URL: https://www.codewars.com/kata/525f277c7103571f47000147/python """ def t2n(time): h, m = (int(i) for i in time.split(':')) return (h - 9) * 60 + m def n2t(num): h = ('' if num / 60 else '0') + str(num / 60 + 9) m = ('' if num - num / 60 * 60 else '0...
[ "jorge.mira.yague@gmail.com" ]
jorge.mira.yague@gmail.com
15a699a1ba9a4aff30701aeada95d57169f75f68
fc5708b8f291c314dad85f53e23c5728d7b9627f
/week3/excercise_3.py
81fb9030a46a6251b5d5e74230201b77b1756328
[]
no_license
OnestoneW/UZH
d271beeb9cfa31c67a5ce9e6f8a7b9ec5d3b8658
9c243a6e92c504f83d5fc091a5d67bd05e79d905
refs/heads/master
2021-05-07T05:03:58.526573
2017-11-22T19:55:46
2017-11-22T19:55:46
111,398,660
0
0
null
null
null
null
UTF-8
Python
false
false
904
py
import pylab as plb import numpy as np import matplotlib def calc_average_radiation(data_set): values = data_set[:,0] errors = data_set[:,1] #calc the measurements for "per year": values = values*365*24 errors = errors*365*24 weights = 1/(errors**2) average = sum((weights*values))/sum(we...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
45f25cb7ac03ba31a0808b28ae688e323ba4c5d7
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/youtube-dl/2016/12/amcnetworks.py
87c803e948fd2e04cde6b0b43251d3f804b952a0
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
4,211
py
# coding: utf-8 from __future__ import unicode_literals from .theplatform import ThePlatformIE from ..utils import ( update_url_query, parse_age_limit, int_or_none, ) class AMCNetworksIE(ThePlatformIE): _VALID_URL = r'https?://(?:www\.)?(?:amc|bbcamerica|ifc|wetv)\.com/(?:movies/|shows/[^/]+/(?:full-...
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
8c3cc63178cb6a0d72b3a1b00ef7ca7fcc050cf5
523f8f5febbbfeb6d42183f2bbeebc36f98eadb5
/140.py
8533e0a38d71ce3286ff6fbbbf15ed5d61c38e6e
[]
no_license
saleed/LeetCode
655f82fdfcc3000400f49388e97fc0560f356af0
48b43999fb7e2ed82d922e1f64ac76f8fabe4baa
refs/heads/master
2022-06-15T21:54:56.223204
2022-05-09T14:05:50
2022-05-09T14:05:50
209,430,056
2
0
null
null
null
null
UTF-8
Python
false
false
1,708
py
class Solution(object): def wordBreak(self, s, wordDict): """ :type s: str :type wordDict: List[str] :rtype: List[str] """ if len(s)==0 or len(wordDict)==0: return [] dict=set(wordDict) dp=[False for _ in range(len(s)+1)] pre=[[]...
[ "1533441387@qq.com" ]
1533441387@qq.com
80e8c98591b0afb1451043bb84bd90a39ef8b326
71012df2815a4666203a2d574f1c1745d5a9c6dd
/4 Django/solutions/mysite/polls/views.py
ee7ecc4a4c55eaec3ae5baa8abb4803fe3c76ed1
[]
no_license
PdxCodeGuild/class_mouse
6c3b85ccf5ed4d0c867aee70c46af1b22d20a9e8
40c229947260134a1f9da6fe3d7073bee3ebb3f7
refs/heads/main
2023-03-23T14:54:39.288754
2021-03-20T01:48:21
2021-03-20T01:48:21
321,429,925
1
7
null
null
null
null
UTF-8
Python
false
false
1,007
py
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from django.urls import reverse from .models import Question, Choice # Create your views here. def index(request): questions = Question.objects.order_by('-pub_date') context = { 'question...
[ "anthony@Anthonys-MBP.lan" ]
anthony@Anthonys-MBP.lan
52e8847e9de82e204fdf0c8cd2b6aae8698321bd
534b315921a7ad091aaef3ad9dd33691a570adad
/ex_03_02.py
92e6efbfca059085bac104c573028c8f2f8773d7
[]
no_license
epicarts/Python-for-Everybody
42d91b66f6c5fbae47caabee98f64269ac4b2437
edbe916b0beb9087e2a4a57516ccb3a315ac95d7
refs/heads/master
2020-03-21T21:00:07.393582
2018-07-17T10:58:11
2018-07-17T10:58:11
139,041,394
0
0
null
null
null
null
UTF-8
Python
false
false
322
py
sh = input("Enter Hours: ") sr = input("Enter Rate: ") try: fh = float(sh) fr = float(sr) except: print("Error, please enter numeric input") quit() if fh > 40 : reg = fr * fh otp = (fh - 40.0) * (fr * 0.5) xp = reg + otp else: xp = fh * fr print("Pay:", xp...
[ "0505zxc@gmail.com" ]
0505zxc@gmail.com
390ca1273fd423bf42edd83f7b629397e189fd4b
bca124bc2cecb5d3dec17c9666ec00d29fadf517
/i03Python-API-Development-Fundamentals/ch8pgination_search_order/resources/user.py
438080c8c6bf226f01b9b4c26477bcc73ceb2276
[]
no_license
greatabel/FlaskRepository
1d1fdb734dd25d7273136206727c76b2742a915f
85d402bc7b4218d3ae33d90f4a51dbac474f70ee
refs/heads/master
2023-08-19T18:30:33.585509
2023-08-07T14:12:25
2023-08-07T14:12:25
60,396,096
5
0
null
2023-02-15T18:18:42
2016-06-04T06:11:32
JavaScript
UTF-8
Python
false
false
5,782
py
import os from flask import request, url_for, render_template from flask_restful import Resource from flask_jwt_extended import jwt_optional, get_jwt_identity, jwt_required from http import HTTPStatus from webargs import fields from webargs.flaskparser import use_kwargs from extensions import image_set from mailgun i...
[ "myreceiver2for2github@gmail.com" ]
myreceiver2for2github@gmail.com
ae84bb1551d919d5a78e142d3902aadd859be877
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03475/s980181713.py
a507864b19aaa3ae22e296c2df9129769450df61
[]
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
506
py
#!/usr/bin/env python3 N = int(input()) data = [] for _ in range(N - 1): data.append(tuple(map(int, input().split()))) for i in range(N - 1): c_i, s_i, f_i = data[i] ans = c_i + s_i if i == N - 2: print(ans) continue for j in range(i + 1, N - 1): c_j, s_j, f_j = data[j] ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
eb46806d343bb2682eec400c2d940d7baf75857f
819ea4165220ecaed5b168e37773282195501a38
/src/snakemake/rules/bcftools_stats.smk
d5aa48244c3c2de15c3a78a09a1ed77da8eda257
[ "MIT" ]
permissive
guillaumecharbonnier/mw-lib
662fe4f1ca28ed48554971d5fbf47bb11bb210d9
870f082431fb92d0aeb0a28f9f1e88c448aebd8a
refs/heads/master
2023-07-06T05:36:42.436637
2023-06-26T10:34:38
2023-06-26T10:34:38
198,626,514
0
1
MIT
2023-04-14T07:06:10
2019-07-24T11:57:07
Python
UTF-8
Python
false
false
1,285
smk
rule bcftools_stats_dev: input: "out/scalpel/discovery_--single_--bed_chr1:10000000-60000000_fa-genome-hg19-main-chr/samtools/index/samtools/sort/samtools/view_sam_to_bam/bwa/mem_se_fa-genome-hg19-main-chr/gunzip/to-stdout/ln/alias/sst/all_samples/fastq/Jurkat_SRR1057274_H3K27ac/variants.indel.vcf", ...
[ "guillaume.charbonnier@outlook.com" ]
guillaume.charbonnier@outlook.com
8936e6c360a6169bb413fbc6ec891dedb2385f3a
c317312696645e061d955148058267dea10c9743
/backend/home/migrations/0002_load_initial_data.py
147470d221ed4d67a3edd73ef542a9b807f60286
[]
no_license
lorence-crowdbotics/shiny-block-1
96dc1fb4af1bae7eb535d1db25430a8114c124eb
64452c85dd1ebb6437437a637f4dff0402f57a9c
refs/heads/master
2023-02-08T10:32:14.106980
2021-01-04T11:51:18
2021-01-04T11:51:18
326,667,249
0
0
null
null
null
null
UTF-8
Python
false
false
1,298
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "Shiny Block" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage") ...
[ "lorence@crowdbotics.com" ]
lorence@crowdbotics.com
99f471c3fbb40c19903e3f7b38741578d0324710
2e74c7339c63385172629eaa84680a85a4731ee9
/infertility/male_attr.py
59775495fac01fe5138790d83275bb10332c138e
[]
no_license
zhusui/ihme-modeling
04545182d0359adacd22984cb11c584c86e889c2
dfd2fe2a23bd4a0799b49881cb9785f5c0512db3
refs/heads/master
2021-01-20T12:30:52.254363
2016-10-11T00:33:36
2016-10-11T00:33:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,587
py
import os import argparse os.chdir(os.path.dirname(os.path.realpath(__file__))) from job_utils import draws, parsers ############################################################################## # class to calculate attribution ############################################################################## ...
[ "nsidles@uw.edu" ]
nsidles@uw.edu
d592e11371f738e326662c96b83751e6fe5f369f
f6bc15034ee1809473279c87e13cc3131bc3675c
/reader/migrations/0008_chapter_views.py
cb0aeea0af86abf7285e39283b5f7ac21f6a41cf
[ "MIT" ]
permissive
mangadventure/MangAdventure
d92e4c184d1ad91983cf650aa7fa584ba9b977ce
e9da91d0309eacca9fbac8ef72356fe35407b795
refs/heads/master
2023-07-20T04:54:49.215457
2023-07-14T15:34:20
2023-07-14T15:34:20
144,012,269
70
16
MIT
2022-08-13T12:22:39
2018-08-08T12:43:19
Python
UTF-8
Python
false
false
444
py
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [('reader', '0007_series_licensed')] operations = [ migrations.AddField( model_name='chapter', name='views', field=models.PositiveIntegerField( db_index=T...
[ "chronobserver@disroot.org" ]
chronobserver@disroot.org
7f7ae6f458cc8b68f26e89c645ab071ca90deb65
0199004d124f05c820a39af7914d57c3b53a44ff
/instagram/urls.py
96937019d58b89e8d2fa9c66381ddbb822b51d97
[ "MIT" ]
permissive
AnumAsif/instagram
ae6e4ffb7ce7aa2df5025f19fd25eef73fb62702
619731f799109b216e6ae0f75a4edd8057aa340c
refs/heads/master
2022-12-10T13:03:39.219406
2019-03-14T09:30:33
2019-03-14T09:30:33
174,493,800
0
0
null
2022-12-08T04:51:45
2019-03-08T07:58:40
Python
UTF-8
Python
false
false
1,046
py
from django.conf.urls import url, include from django.contrib.auth import views as auth_views from django.conf import settings from django.conf.urls.static import static from . import views urlpatterns = [ url(r'^home/$', views.home, name = 'home'), url(r'^$',views.signup, name='signup'), url(r'^activat...
[ "anum@cockar.com" ]
anum@cockar.com
77f2499232cafc4fe32a56e198bb85a9b79b4c31
3fbbd07f588aaeca78f18a4567b2173ce0154a85
/contours.py
6a57fb5fac998614e8a1a363cd6813b7e554a908
[ "MIT" ]
permissive
MuAuan/read_keiba_paper
d0af6e7454da04e89ad3080649df0436f09e26a6
b7c523f5880d1b4d1d397450baaefddbbdd6cfff
refs/heads/master
2020-06-10T23:51:11.406246
2019-07-30T07:20:57
2019-07-30T07:20:57
193,795,441
0
0
null
null
null
null
UTF-8
Python
false
false
2,974
py
import numpy as np import cv2 import matplotlib.pyplot as plt import os, shutil, time, cv2, math import csv from operator import attrgetter from operator import itemgetter output_root_path = './text_detection/data' if not os.path.exists(output_root_path):os.mkdir(output_root_path) output_root_path += '/takaraduka'...
[ "noreply@github.com" ]
MuAuan.noreply@github.com
4b9e181c5fe7aac13ac618f98100dd7d6fa48825
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02678/s166039907.py
c6ab12488d55986930af9ba0117c10dc1bcf8bd2
[]
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
423
py
N, M = map(int, input().split()) route = [[] for _ in range(N)] sign = [0]*N #print(route) for i in range(M): a,b = map(int, input().split()) route[a-1].append(b-1) route[b-1].append(a-1) #print(route) marked = {0} q = [0] for i in q: for j in route[i]: if j in marked: continue ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e2cad7806874150acb3e00e8b4608cc4353915a9
ee81f6a67eba2d01ca4d7211630deb621c78189d
/my_profile/manage.py
b4a7631a6dfab5e670a48068f1d1f80597c22456
[]
no_license
zkan/saksiam-django-workshop
d452fa0ffec687a287965988a9afe256222a7920
ccef5359e04693681040c482865350720fa49189
refs/heads/main
2023-06-07T00:17:02.524926
2021-06-28T15:43:22
2021-06-28T15:43:22
374,397,011
1
1
null
2021-06-28T15:43:23
2021-06-06T15:33:50
Python
UTF-8
Python
false
false
1,062
py
#!/usr/bin/env python import os import sys from pathlib import Path if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for som...
[ "zkan.cs@gmail.com" ]
zkan.cs@gmail.com
00706a0ce78e5eee13d25f0e6fae2b55a8f50fe9
6ce826375d4ecc7b15cd843a0bf85438db7d1389
/cbmcfs3_runner/scenarios/demand_plus_minus.py
05177670f00eb079ad601a2bbc5d8ca5533566b6
[ "MIT" ]
permissive
xapple/cbmcfs3_runner
b34aaeeed34739d2d94d4ee485f4973403aa6843
ec532819e0a086077475bfd479836a378f187f6f
refs/heads/master
2021-12-26T07:06:02.073775
2021-10-25T14:15:53
2021-10-25T14:15:53
172,949,685
2
0
null
null
null
null
UTF-8
Python
false
false
1,759
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Written by Lucas Sinclair and Paul Rougieux. JRC biomass Project. Unit D1 Bioeconomy. """ # Built-in modules # # First party modules # from plumbing.cache import property_cached # Internal modules # from cbmcfs3_runner.scenarios.base_scen import Scenario from cbmc...
[ "649288+xapple@users.noreply.github.com" ]
649288+xapple@users.noreply.github.com
e7d80b8d7f8bb438a4b24d5e18068fb5eefecd31
43acaf9718b0a62594ed8e42b6c01099acd2d075
/apps/asistencias/migrations/0003_auto_20200402_1450.py
0de223587557a923ebbda4dff048d594001e03b5
[]
no_license
JmSubelza/Demo
2f357889975c183b4a0f627330a80e535823faea
affceeadb87f1f14fb4e481851a1ac107e512f48
refs/heads/master
2023-05-14T18:16:38.153963
2020-04-28T16:15:27
2020-04-28T16:15:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
574
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2020-04-02 19:50 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('asistencias', '0002_auto_20200305_1646'), ] operations = [ migrations.AlterModelOptio...
[ "Chrisstianandres@gmail.com" ]
Chrisstianandres@gmail.com
5abfe9793871b012e49279286068e81223a85910
44d8042c77a8f18c03bec92b619425a0787e3ddb
/Classes/py3intro/EXAMPLES/creating_dicts.py
fc407b28becb13ff2907caaa355638516327a687
[]
no_license
Jgoschke86/Jay
3015613770d85d9fa65620cc1d2514357569b9bb
9a3cd87a5cff35c1f2a4fd6a14949c6f3694e3e2
refs/heads/master
2023-05-26T15:49:08.681125
2023-04-28T22:16:09
2023-04-28T22:16:09
215,616,981
0
0
null
null
null
null
UTF-8
Python
false
false
710
py
#!/usr/bin/python3 d1 = dict() d2 = {} d3 = dict(red=5, blue=10, yellow=1, brown=5, black=12) airports = { 'IAD': 'Dulles', 'SEA': 'Seattle-Tacoma', 'RDU': 'Raleigh-Durham', 'LAX': 'Los Angeles' } pairs = [('Washington', 'Olympia'),('Virginia','Richmond'), ('Oregon','Salem'), ('California', 'Sacramento')]...
[ "56652104+Jgoschke86@users.noreply.github.com" ]
56652104+Jgoschke86@users.noreply.github.com
275e7ee7138368d6558257df45f8773d5533b5f9
8e858eea97c8654040552d190574acfc738b66e0
/tests/test_util.py
70f815d479ff6bf91ee0eb438df8782123904ec6
[ "MIT" ]
permissive
Typecraft/casetagger
73f0105caa7ab8a84e7ae3f84720797966addd31
b311f33449c8796e656600e8c9f255b40c4c2dce
refs/heads/develop
2023-01-14T00:28:06.339217
2017-05-10T10:44:09
2017-05-10T10:44:09
65,621,998
1
0
MIT
2022-12-26T20:26:26
2016-08-13T14:47:36
Python
UTF-8
Python
false
false
6,592
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from casetagger.util import * from typecraft_python.models import Text, Morpheme, Phrase, Word class TestUtil(object): @classmethod def setup_class(cls): pass def test_get_morphemes_concatenated(self): morpheme = Morpheme() morpheme...
[ "tormod.haugland@gmail.com" ]
tormod.haugland@gmail.com
b193d042f11de77758ebb4740dee22fad21ba1f8
684658837ca81a9a906ff8156a28f67b0ed53e81
/venv/bin/jupyter-serverextension
5493e28add6cf5377f63b4abb7dde6311928fb15
[]
no_license
sangramga/djangocon
30d6d47394daadfa162c5f96bf2e8476e580906d
d67203a7a7be2cefedbd75e080a6737e71a5bad3
refs/heads/master
2020-03-17T21:20:35.097025
2017-08-15T19:45:47
2017-08-15T19:45:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
277
#!/Users/lorenamesa/Desktop/bootstrap_ml_project/venv/bin/python3.5 # -*- coding: utf-8 -*- import re import sys from notebook.serverextensions import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "me@lorenamesa.com" ]
me@lorenamesa.com
31f6af36af85cf21686384f18d934765ad86235b
e1add42d3095608e73717cddf39646a1eaa62729
/setup.py
67db060118ca11d8cd2841bba696b5410defe1a0
[ "MIT" ]
permissive
PhoenixEra/mbcd
70870e7a774f649b22bb42810118640333d8c822
4be85b964bf02818f2fc83b21f2b339b3fc7a14f
refs/heads/main
2023-07-01T21:28:00.506563
2021-08-04T15:03:06
2021-08-04T15:03:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
522
py
from setuptools import setup, find_packages REQUIRED = ['numpy', 'pandas', 'matplotlib', 'stable-baselines'] with open("README.md", "r") as fh: long_description = fh.read() setup( name='mbcd', version='0.1', packages=['mbcd',], install_requires=REQUIRED, author='LucasAlegre', author_email...
[ "lucasnale@gmail.com" ]
lucasnale@gmail.com
d7f322eb83e4c6777bb715eb2d33ac92cdd6091e
6146e33102797407ede06ce2daa56c28fdfa2812
/python/GafferSceneUI/CopyOptionsUI.py
ec82897c8adf729127236f6d11032db45fc406ed
[ "BSD-3-Clause" ]
permissive
GafferHQ/gaffer
e1eb78ba8682bfbb7b17586d6e7b47988c3b7d64
59cab96598c59b90bee6d3fc1806492a5c03b4f1
refs/heads/main
2023-09-01T17:36:45.227956
2023-08-30T09:10:56
2023-08-30T09:10:56
9,043,124
707
144
BSD-3-Clause
2023-09-14T09:05:37
2013-03-27T00:04:53
Python
UTF-8
Python
false
false
2,430
py
########################################################################## # # Copyright (c) 2016, Image Engine Design 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: # # * Redistrib...
[ "thehaddonyoof@gmail.com" ]
thehaddonyoof@gmail.com
9a4de1381f1804be5dae1d274c222ccdc3d44048
21c09799d006ed6bede4123d57d6d54d977c0b63
/python2/framework/Drawer.py
3db7fba10a54fe603542ecd1b16e825c7fa55e41
[]
no_license
corvettettt/DijetRootTreeAnalyzer
68cb12e6b280957e1eb22c9842b0b9b30ae2c779
e65624ffc105798209436fc80fb82e2c252c6344
refs/heads/master
2021-05-06T09:57:12.816787
2019-04-18T15:32:38
2019-04-18T15:32:38
114,043,763
1
0
null
2017-12-12T22:02:46
2017-12-12T22:02:46
null
UTF-8
Python
false
false
1,924
py
import os import ROOT as rt from rootTools import tdrstyle as setTDRStyle class Drawer(): """Class to draw overlayed histos for data and signals""" def __init__(self, hData, hSignal): print "Drawer::init" self._hData = hData self._hSignal = hSignal self._dataHistos = {} ...
[ "zhixing.wang@ttu.edu" ]
zhixing.wang@ttu.edu
6aa09349aae1917b65ddc6cca2c954c8cddbb364
bd5303f1fd7a6b8244c9d7f2f9037fd52f55686a
/crawler.py
08d56a24c3aac2d588ee945756150c353267800b
[]
no_license
mmmmkin/crawler
dfe446871ca09844e1dc8182d370f89cf24d2c78
8247270733ebd07284d93539c59e460e3d4458d7
refs/heads/master
2020-05-25T11:01:54.044397
2019-05-20T12:47:28
2019-05-20T12:47:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
import ssl from datetime import datetime from urllib.request import Request, urlopen def crawling(url='', encoding='utf-8'): try: request = Request(url) ssl._create_default_https_context = ssl._create_unverified_context resp = urlopen(request) try: receive = resp.read...
[ "kickscar@gmail.com" ]
kickscar@gmail.com
a583c5437d4f807b407d482f5e2221cce5862b2f
677f4896f21c46aee199c9f84c012c9733ece6f6
/ddsp/losses_test.py
dd4a23020c2d427443b4fb0f729ffa8fa5546d67
[ "Apache-2.0" ]
permissive
werkaaa/ddsp
90b2881a350dad9f954e28ead4f145140c7d2ad4
92ce8724e22c17822d7f7564547733ed7fe918e2
refs/heads/master
2022-12-13T06:41:48.871697
2020-09-03T15:50:49
2020-09-03T15:50:49
286,489,693
0
0
Apache-2.0
2020-08-10T13:57:00
2020-08-10T13:57:00
null
UTF-8
Python
false
false
1,770
py
# Copyright 2020 The DDSP Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
[ "no-reply@google.com" ]
no-reply@google.com
09cce8fbbaa41efbc8ae40424576b47d84a05964
0e4d09b2a1b93aaa6d623d16905854d993a934ae
/Python/Django/belt_reviewer/apps/bookReviews/admin.py
ac72368c4b888b1d7d074e846a9860e09e00d9d3
[]
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
261
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from .models import Book, Author, Review # Register your models here. admin.site.register(Book) admin.site.register(Author) admin.site.register(Review)
[ "freefaller@gmail.com" ]
freefaller@gmail.com
5686d5a00a202f2b6cb60723f475bbd967b5cc76
5b4c803f68e52849a1c1093aac503efc423ad132
/UnPyc/tests/tests/CFG/2/return/return_if+elif_if+elif+else_.py
4d3f6e3a97f865aea7e5a8d94a62fe7ad96b04a8
[]
no_license
Prashant-Jonny/UnPyc
9ce5d63b1e0d2ec19c1faa48d932cc3f71f8599c
4b9d4ab96dfc53a0b4e06972443e1402e9dc034f
refs/heads/master
2021-01-17T12:03:17.314248
2013-02-22T07:22:35
2013-02-22T07:22:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
def f(): if 1: if 1: return elif 1: return elif 1: if 1: return elif 1: return else: if 1: return elif 1: return
[ "d.v.kornev@gmail.com" ]
d.v.kornev@gmail.com
e6dddca50724f057823cd02a76e2d1c2cb00d118
44e6fecee8710156333e171ad38a2b4d4cd4e3e3
/2-numpy/ex.5.19.py
d32d0241d72a77738eec995557aa944742c2e792
[]
no_license
3141592/data-science
5b0291ca40b275a1624e699828db5e63b5502b3c
f4f9bec56ee09bbd521b6dbacb0b221693a78637
refs/heads/master
2021-05-04T14:43:09.094396
2018-02-04T20:31:06
2018-02-04T20:31:06
120,209,026
0
0
null
null
null
null
UTF-8
Python
false
false
1,083
py
import numpy as np print("arr") arr = np.arange(0,11) print(arr) print("=============") print("arr[8]") print(arr[8]) print("=============") print("arr[1:6]: ") print arr[1:6] print("=============") print "arr[:6]" print arr[:6] print("=============") print "arr[0:5] = 100" arr[0:5] = 100 print arr print("=======...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
8e3ef950698fbf7d3e8c20133ccd2085180d1c8d
e204cdd8a38a247aeac3d07f6cce6822472bdcc5
/.history/app_test_django/models_20201116131143.py
ff79574c97012778681ec2385d75639933239b9a
[]
no_license
steven-halla/python-test
388ad8386662ad5ce5c1a0976d9f054499dc741b
0b760a47d154078002c0272ed1204a94721c802a
refs/heads/master
2023-04-08T03:40:00.453977
2021-04-09T19:12:29
2021-04-09T19:12:29
354,122,365
0
0
null
null
null
null
UTF-8
Python
false
false
2,333
py
from django.db import models import re class UserManager(models.Manager): def user_registration_validator(self, post_data): errors = {} EMAIL_REGEX = re.compile( r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$') if len(post_data['first_name']) < 3: errors['first_na...
[ "69405488+steven-halla@users.noreply.github.com" ]
69405488+steven-halla@users.noreply.github.com
7debb913ce33acbbf107e40036794d0f9b9fd499
affdb1186825486d40c1140314cc04fe63b153b7
/bike-sharing-demand/preprocessing/preprocessing.py
1f949627fbcd95c8b691834f548fd29c225a61bb
[]
no_license
Yagami360/kaggle_exercises
2f9a8a12c48a6e55ded6c626ceef5fb0cfca935b
17b731bb6f1ce0b81254047ffc56371f4c485df0
refs/heads/master
2022-11-22T23:00:27.176123
2020-07-23T05:05:00
2020-07-23T05:05:00
252,343,652
2
0
null
null
null
null
UTF-8
Python
false
false
4,293
py
import os import numpy as np import pandas as pd from sklearn.preprocessing import LabelEncoder from sklearn.preprocessing import StandardScaler from sklearn.preprocessing import MinMaxScaler def preprocessing( args, df_train, df_test ): # 全データセット df_data = pd.concat([df_train, df_test], sort=False) # 時...
[ "y034112@gmail.com" ]
y034112@gmail.com
7dc2bc6f99ef24ea573366cb23999dea0e981450
ed54290846b5c7f9556aacca09675550f0af4c48
/salt/salt/modules/win_path.py
7e1601e22563416628aa2d70fd625b8e953dbe4f
[ "Apache-2.0" ]
permissive
smallyear/linuxLearn
87226ccd8745cd36955c7e40cafd741d47a04a6f
342e5020bf24b5fac732c4275a512087b47e578d
refs/heads/master
2022-03-20T06:02:25.329126
2019-08-01T08:39:59
2019-08-01T08:39:59
103,765,131
1
0
null
null
null
null
UTF-8
Python
false
false
4,719
py
# -*- coding: utf-8 -*- ''' Manage the Windows System PATH Note that not all Windows applications will rehash the PATH environment variable, Only the ones that listen to the WM_SETTINGCHANGE message http://support.microsoft.com/kb/104011 ''' from __future__ import absolute_import # Python Libs import logging import r...
[ "5931263123@163.com" ]
5931263123@163.com
82097c0eafbc46e1235c7382b6d048e7d4ef8aa8
eec267b544295bccb2ab88b13b221ff4fd3d2985
/test_plot_rms_map.py
c6bf17198c876c8af1635ee13bbe3c644bcfd488
[]
no_license
ralfcam/sandbox_scripts
dda368dcf8b8d01147660dedc6d0fcae2d15f80c
6fa53a63152c4a00396b38fb92ae7dc6f72d6b90
refs/heads/master
2022-05-29T02:02:24.849913
2020-05-01T02:23:57
2020-05-01T02:23:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
# -*- coding: utf-8 -*- """ Created on Wed Feb 28 13:42:25 2018 @author: jpeacock """ import mtpy.modeling.modem as modem import matplotlib.pyplot as plt import scipy.interpolate as interpolate import numpy as np res_fn = r"c:\\Users\\jpeacock\\Documents\\Geothermal\\Umatilla\\modem_inv\\inv_03\\um_err03_cov03_NLCG_...
[ "peacock.jared@gmail.com" ]
peacock.jared@gmail.com
f28154c1d8284b4c1afcf2b115181573d4880ff2
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5658282861527040_0/Python/ChevalierMalFet/lottery.py
187e6b8d05f410b95b0987ef03b00f8a8567c866
[]
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
509
py
inputFile = open('B-small-attempt0.in', 'r') outputFile = open('B-small-attempt0.out', 'w') numTests = int(inputFile.readline()) for i in range(numTests): nums = map(lambda x: int(x), inputFile.readline().split()) a = nums[0] b = nums[1] k = nums[2] count = 0 for m in range(a): ...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
211199e7bff2d13c497e7a08f172ffc279744939
3dcf3b4d1822fefc0dcab8195af1239abe7971a1
/AMAO/apps/Avaliacao/Questao/views/__init__.py
554a3a1467bf3ffcd4b9de57c04ac01067e84fd5
[ "MIT" ]
permissive
arruda/amao
a1b0abde81be98a04dee22af9ff0723ed7697fb8
83648aa2c408b1450d721b3072dc9db4b53edbb8
refs/heads/master
2021-01-13T02:11:52.776011
2014-09-20T15:43:16
2014-09-20T15:43:16
23,271,083
2
0
null
null
null
null
UTF-8
Python
false
false
134
py
#from temporario import * from resolucao import * from gabarito import * from criar import * from exibir import * from listar import *
[ "felipe.arruda.pontes@gmail.com" ]
felipe.arruda.pontes@gmail.com
de77b537516f29eb8f057077717c9b426ad9d33f
a4e4c3faa29043fc80f62a8442e2f8333cd23933
/MPI_test.py
5801da732e8dd08ddffe0d60fb141f04be8e6599
[]
no_license
FangYang970206/Intrinsic_Image
652ab87c2d95b400cf80c6a49d1863a40d1cba07
3b8ec261b7b3aeaa1c611473f53fb4e23b82893b
refs/heads/master
2023-01-21T05:18:40.748488
2020-11-24T02:22:00
2020-11-24T02:22:00
228,824,635
0
0
null
null
null
null
UTF-8
Python
false
false
4,477
py
import os import random import argparse import torch import torch.optim as optim from tensorboardX import SummaryWriter from torch.backends import cudnn # import RIN import RIN import RIN_pipeline import numpy as np import scipy.misc from utils import * def main(): random.seed(9999) torch.manual_seed(9999) ...
[ "15270989505@163.com" ]
15270989505@163.com
0b4f08bcee570cf762e0b682205d8fdcec785a9e
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_289/ch88_2020_05_11_13_11_45_850336.py
5e8eda89358bc1e91ffb03476a4549962854f650
[]
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
241
py
class Retangulo: def calcula_perimetro(self): dy = self.y - self.x dx = self.x - self.y return 2*dx + 2*dy def calcula_area(self): dy = self.y - self.x dx = self.x - self.y return dx*dy
[ "you@example.com" ]
you@example.com
e8bfec56b5c39e4bd3a759a4a033e6502c721abf
e5bc2c2c7ce172bf66cb526e6a27578e2919b807
/python/libs/r.py
c314af5e861f0aee2ddfd68a42af50f714b87c8b
[]
no_license
github188/libs-1
c561c3e8875f2fed3351692af62f833585e95511
83bfeeb29e9fafdd274ef645d2602f81290fd9e2
refs/heads/master
2020-05-29T11:43:55.629814
2016-03-04T11:11:41
2016-03-04T11:11:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
#! python import re import sys def MatchString(p,s): spat = re.compile(p) if spat.search(s): print '(%s) match (%s)'%(p,s) sarr = re.findall(p,s) print 'match (%s) (%s) (%s)'%(p,s,repr(sarr)) else: print '(%s) not match (%s)'%(p,s) if __name__ == '__main__': MatchString(sys.argv[1],sys.argv[2])
[ "jeppeter@gmail.com" ]
jeppeter@gmail.com
fdef8858fee95042d8bf62e3cc9b60a763ae012f
cd557e3c2b34f30f2e7caf7c79c07ff6e109fbd3
/k2/addons/k2-monitor/monitor/__init__.py
0ffee09d23f4e86d8b089538069e89f0c4c99707
[ "Apache-2.0" ]
permissive
Zenterio/opensourcelib
f005174c049df0f5deddc1269d7c343a8e219ca5
07f0dabffaceb7b6202b5f691cbad46dac5868a8
refs/heads/master
2022-12-09T02:53:36.444094
2021-04-28T18:03:24
2021-05-27T13:14:58
186,092,997
5
6
NOASSERTION
2022-12-07T23:37:26
2019-05-11T05:44:37
Groovy
UTF-8
Python
false
false
290
py
from zaf.messages.message import EndpointId, MessageId MONITOR_ENDPOINT = EndpointId('monitor', """\ The K2 monitor addon endpoint. """) PERFORM_MEASUREMENT = MessageId( 'PERFORM_MEASUREMENT', """ Request that a monitor performs its measurements. data: None """)
[ "per.bohlin@zenterio.com" ]
per.bohlin@zenterio.com
66e68b0679a6c7ab9e1e751a07a8086ef46b0705
f0d3ef10061147fb3bd04774a8b4eac9e4d9b671
/feedly/serializers/cassandra/activity_serializer.py
9e1d0ac4a1564c446dc88d23ab34e3b65db56800
[ "BSD-3-Clause" ]
permissive
jblomo/Feedly
9929077be3364d827aa03c4506ade29b819141cb
3e4999cc794231841e3b4909f0a73beabfcca046
refs/heads/master
2021-01-20T21:19:21.017683
2013-09-06T12:33:48
2013-09-06T12:33:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
972
py
from feedly.activity import Activity from feedly.storage.cassandra.maps import ActivityMap from feedly.verbs import get_verb_by_id import pickle from feedly.serializers.base import BaseSerializer class CassandraActivitySerializer(BaseSerializer): def dumps(self, activity): return ActivityMap( ...
[ "thierryschellenbach@gmail.com" ]
thierryschellenbach@gmail.com
df16df9b7b4a3e8e07986df56e4f464254235aaa
0090756d7a6eb6ab8389ad23b20e89cd68dbd0e4
/배열정렬.py
2be7e2bad6cda422e8b99414109ecc6efe66010d
[]
no_license
ssh6189/2019.12.16
5c3093e03ac793d5f0a93cf99e78c6483fcee6d8
c1021bb72b3fdc05d7f5e8ae350bbd6eee65b0d3
refs/heads/master
2020-12-13T19:19:04.558270
2020-01-17T08:47:04
2020-01-17T08:47:04
234,507,219
0
0
null
null
null
null
UTF-8
Python
false
false
517
py
import numpy as np #ndarray 객체는 axis를 기준으로 요소 정렬하는 sort 함수를 제공합니다. unsorted_arr = np.random.random((3, 3)) print(unsorted_arr) #데모를 위한 배열 복사 unsorted_arr1 = unsorted_arr.copy() unsorted_arr2 = unsorted_arr.copy() unsorted_arr3 = unsorted_arr.copy() unsorted_arr1.sort() #배열 정렬 print(unsorted_arr1) unsorted_arr2.sort(...
[ "ssh6189@naver.com" ]
ssh6189@naver.com
992d39d8e5c5649b6954e1bd952fb77fbc4f0cb5
768c3fd42e0d3b407d89ccd9a3b3ace9eb0414c5
/user/migrations/0004_city.py
5c51ffa30bf5c417f1dc9f699aad8d54ad519165
[]
no_license
samkayz/LocationAPi
a644a45c6eb4ba6fb198b9992b5b79a89d6d9960
e7d601467e73ab127c61be257c2354dcd3aee21c
refs/heads/master
2023-08-14T03:33:32.574732
2020-05-03T18:38:08
2020-05-03T18:38:08
260,606,040
0
0
null
2021-09-22T18:57:32
2020-05-02T03:27:12
JavaScript
UTF-8
Python
false
false
761
py
# Generated by Django 3.0.5 on 2020-05-02 02:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0003_auto_20200430_1954'), ] operations = [ migrations.CreateModel( name='City', fields=[ ('...
[ "ilemobayosamson@gmail.com" ]
ilemobayosamson@gmail.com
3d294da817dabde94948c630eda7e6f79b1cf950
233f97c6f360d478bf975016dd9e9c2be4a64adb
/guvi_4_1_3.py
00eb925ae9c76c8511522e660cf1e63382c44343
[]
no_license
unknownboyy/GUVI
3dbd1bb2bc6b3db52f5f79491accd6c56a2dec45
d757dd473c4f5eef526a516cf64a1757eb235869
refs/heads/master
2020-03-27T00:07:12.449280
2019-03-19T12:57:03
2019-03-19T12:57:03
145,595,379
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
s1,s2=input().split() column=len(s1)+1 row=len(s2)+1 c=[[0 for i in range(column)] for i in range(row)] for i in range(1,row): c[i][0]=i for i in range(1,column): c[0][i]=i for i in range(1,row): for j in range(1,column): if s2[i-1]==s1[j-1]: c[i][j]=min(c[i-1][j-1],c[i-1][j],c[i][j-1]) ...
[ "ankitagrawal11b@gmail.com" ]
ankitagrawal11b@gmail.com
0cc0ef34f5666bda22936a734d144ace9100a9b7
9d123c6b87b0baf80a6fce070023e19d68048b90
/slothql/utils/case.py
bb1ab8d97d84957c3449f009eb68fe74385f063f
[ "MIT" ]
permissive
IndioInc/slothql
ea4da3727cb974360eeb3b38517ead4328687e81
64a574013e249968746044555bd8779ac353b13f
refs/heads/master
2021-05-08T11:07:34.420797
2018-04-14T02:08:55
2018-04-14T02:08:55
119,881,523
2
0
MIT
2018-04-15T01:31:10
2018-02-01T19:16:50
Python
UTF-8
Python
false
false
527
py
import re CAMELCASE_SNAKE_REGEX = re.compile(r'([a-z\d])([A-Z])') def snake_to_camelcase(string: str) -> str: first_char = next((i for i, c in enumerate(string) if c != '_'), len(string)) prefix, suffix = string[:first_char], string[first_char:] words = [i or '_' for i in suffix.split('_')] if suffix els...
[ "karol.gruszczyk@gmail.com" ]
karol.gruszczyk@gmail.com
6e94648de2944ea3fae80b2f53a1364afd58c094
82da0dd86f0d8bbd526578f1a5252955bb2cc63b
/testClient.py
57082ea4c12edf7776d4b22583c80de163542678
[]
no_license
guldfisk/HexCG
a200a4790782fc91147da8342300cb618bdcb0c6
435511a8e61656baa8f7addb8f64128977033349
refs/heads/master
2021-01-12T06:35:58.738660
2017-04-27T21:24:15
2017-04-27T21:24:15
77,392,407
0
0
null
null
null
null
UTF-8
Python
false
false
956
py
import drawSurface import os import sys from PyQt5 import QtWidgets, QtGui, QtCore class MainView(QtWidgets.QWidget): def __init__(self, parent=None): super(MainView, self).__init__(parent) botsplitter = QtWidgets.QSplitter(QtCore.Qt.Horizontal) botsplitter.addWidget(drawSurface.DrawSurface()) botsplitter.ad...
[ "ce.guldfisk@gmail.com" ]
ce.guldfisk@gmail.com
82c30f1ac576e4d5f43336166d9b2aa053797c7c
6be845bf70a8efaf390da28c811c52b35bf9e475
/windows/Resources/Dsz/PyScripts/Lib/dsz/mca_dsz/file/cmd/get/type_Result.py
e6ebf7d8de0e5bc766dae92b2644b9a4e230863d
[]
no_license
kyeremalprime/ms
228194910bf2ed314d0492bc423cc687144bb459
47eea098ec735b2173ff0d4e5c493cb8f04e705d
refs/heads/master
2020-12-30T15:54:17.843982
2017-05-14T07:32:01
2017-05-14T07:32:01
91,180,709
2
2
null
null
null
null
UTF-8
Python
false
false
6,656
py
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: type_Result.py from types import * import mcl.object.MclTime import array RESULT_FLAG_IGNORED_DUE_TO_FILESIZE = 1 class ResultFileInfo: def __i...
[ "kyeremalprime@gmail.com" ]
kyeremalprime@gmail.com
8ba65c3c7211433bf61d3a399af108469c4e73d0
ee974d693ca4c4156121f8cb385328b52eaac07c
/env/lib/python3.6/site-packages/setuptools/sandbox.py
2ed7a0bf7fe00623e3280c9c013f6ef5a25e57e6
[]
no_license
ngonhi/Attendance_Check_System_with_Face_Recognition
f4531cc4dee565d0e45c02217f73f3eda412b414
92ff88cbc0c740ad48e149033efd38137c9be88d
refs/heads/main
2023-03-12T07:03:25.302649
2021-02-26T15:37:33
2021-02-26T15:37:33
341,493,686
1
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:48ec4eb0b34103d21dc9a1544c6daed3406c040dc389ef8a07380ec677ad2ecf size 14767
[ "Nqk180998!" ]
Nqk180998!
1f0274c73fe51e1f7184f82248d76deb389cbc77
08d99e1d2d8dc2adbfea957855279c6ed62f9a5b
/Udemy-kurs-zaawansowany/sekcja_4/4.58_returing_function_L.py
e9e085670c87d5208d149c3c816435631b39d2c0
[]
no_license
rucpata/udemy-python-zaawansowany
23f6202edea8879f5a0ca24800908e11af59486e
597de3ceca723b799e1b31d13552bbb2c9d57a74
refs/heads/master
2022-03-15T20:48:36.076232
2019-12-09T14:19:09
2019-12-09T14:19:09
218,304,905
0
0
null
null
null
null
UTF-8
Python
false
false
1,167
py
from datetime import datetime def time_span_m(start, end): duration = end - start duration_in_s = duration.total_seconds() return divmod(duration_in_s, 60)[0] def time_span_h(start, end): duration = end - start duration_in_s = duration.total_seconds() return divmod(duration_in_s, 3600)[0] ...
[ "rucinska.patrycja@gmail.com" ]
rucinska.patrycja@gmail.com
54befdb3e0a8b30d69a2aeeaa1a1cc346bb4cf05
18ca2e0f98b98941ff9d9e098e0be89166c8b87c
/Abp/Cp9/c9_4_2_backupToZip.py
9fec4c043c7091fcbfe196e42c9554230ca52d3c
[]
no_license
masa-k0101/Self-Study_python
f20526a9cd9914c9906059678554285bfda0c932
72b364ad4da8485a201ebdaaa430fd2e95681b0a
refs/heads/master
2023-03-07T07:38:27.559606
2021-02-22T16:24:47
2021-02-22T16:24:47
263,381,292
1
0
null
2020-06-09T17:32:06
2020-05-12T15:47:48
Python
UTF-8
Python
false
false
908
py
# -*- coding: utf-8 -*- #! python3 # backupToZip.py - フォルダ全体を連番付きZIPファイルにコピーする import zipfile, os def backup_to_zip(folder): # フォルダ全体をZIPファイルにバックアップする folder = os.path.abspath(folder) # 既存のファイル名からファイル名の連番を決める number = 1 while True: zip_filename = os.path.basename(folder) ...
[ "noreply@github.com" ]
masa-k0101.noreply@github.com
29dee4c6ed46e6c4f30e6d3f5b852347f06edfa7
668e32dea18d0a7dd3884801d773009b207b35d9
/api/migrations/0002_profile_phone.py
c7d193c54362c88c647621c0abd58f150cf0223d
[]
no_license
aviox-git/driss-backend
7a1b0759e899354b4dcbcb9e5dd20120667b0c5f
8825722c7c3c26896ebb2827075445f364bd2764
refs/heads/master
2020-06-13T12:35:10.939614
2019-10-05T14:33:52
2019-10-05T14:33:52
194,655,723
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
# Generated by Django 2.2.1 on 2019-06-13 14:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.AddField( model_name='profile', name='phone', field=m...
[ "user@example.com" ]
user@example.com
14fec06ce8e0cefe82323f6b61ffa8b906026b8c
537b58ea8a1d1fcd961862876662da31efe4880f
/django/blog/migrations/0001_initial.py
ee37d7ab85daeacc6a7fc1012305eb781ec4eb54
[]
no_license
petershan1119/Djangogirls-Tutorial
d82e4ecdb6322f9c03dbe4d365087e692c265443
2f9bc6a6d0599859cf22d0f315553a5932814b39
refs/heads/master
2021-05-09T06:16:47.077800
2018-02-25T05:30:25
2018-02-25T05:30:25
119,325,945
0
0
null
null
null
null
UTF-8
Python
false
false
995
py
# Generated by Django 2.0.1 on 2018-01-29 07:01 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
[ "peter.s.han.1119@gmail.com" ]
peter.s.han.1119@gmail.com
c4ac81f2ad3729430ee488e572e843dd780a98fc
f04fb8bb48e38f14a25f1efec4d30be20d62388c
/牛客Top200/89验证IP地址.py
8194a075a514d37ea432617022318981185de087
[]
no_license
SimmonsChen/LeetCode
d8ef5a8e29f770da1e97d295d7123780dd37e914
690b685048c8e89d26047b6bc48b5f9af7d59cbb
refs/heads/master
2023-09-03T01:16:52.828520
2021-11-19T06:37:19
2021-11-19T06:37:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,327
py
# # 验证IP地址 # @param IP string字符串 一个IP地址字符串 # @return string字符串 # class Solution: def isIpv4(self, chs): ans = 0 for ch in chs: if not ch.isdigit(): return False ans = ans * 10 + int(ch) if ans > 255: return False else: return True ...
[ "15097686925@163.com" ]
15097686925@163.com
d8f81028d7f2a386824631eaa7c1a4f7c435a895
510b4d4db394191f1e5a6058555c29903c24d8c8
/geomat/stein/fields.py
36429148fa889e8ab0f43283d62e9e37732fff29
[ "BSD-3-Clause" ]
permissive
GeoMatDigital/django-geomat
8635735776b924d3ce4d8b2c64b2835d2a6b20d0
8c5bc4c9ba9759b58b52ddf339ccaec40ec5f6ea
refs/heads/develop
2021-09-10T07:19:04.212942
2019-10-31T15:56:12
2019-10-31T15:56:12
45,467,102
3
0
BSD-3-Clause
2021-09-07T23:33:48
2015-11-03T13:09:05
Python
UTF-8
Python
false
false
955
py
from django import forms from django.contrib.postgres.fields import ArrayField class ChoiceArrayField(ArrayField): """ A field that allows us to store an array of choices. Uses Django 1.9's postgres ArrayField and a MultipleChoiceField for its formfield. Usage: choices = ChoiceArrayField(m...
[ "gecht.m@gmail.com" ]
gecht.m@gmail.com
54c3c7e8fe81cb1aab1bd644c8e54b0d2a2a2f5a
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_PolyTrend_Seasonal_Second_LSTM.py
97fe0297c57bed7d7cbbb7625f8f3d5fea08b058
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
163
py
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Anscombe'] , ['PolyTrend'] , ['Seasonal_Second'] , ['LSTM'] );
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
8f8b7378f3e164e8ce802728ec439babb5859ec9
45b9beebad2f297486c9c12da537a0e28cbcd597
/users/config.py
c7d8704328ab790aebaaafcefe3ccfb2dccb3bf3
[]
no_license
thinkingserious/flask-microservices-users
27a00c3a0e5194a2ab8b7c244365cf343e8b6d57
943d0717db72600be590df3df9b8d21e8cf5c4a3
refs/heads/master
2021-09-08T08:49:48.978016
2018-03-08T22:30:19
2018-03-08T22:30:19
115,350,010
2
0
null
null
null
null
UTF-8
Python
false
false
645
py
import os class BaseConfig: """Base configuration""" DEBUG = False TESTING = False SQLALCHEMY_TRACK_MODIFICATIONS = False SECRET_KEY = 'my_precious' class DevelopmentConfig(BaseConfig): """Development configuration""" DEBUG = True SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_UR...
[ "elmer@thinkingserious.com" ]
elmer@thinkingserious.com
88c23711f8433fde27a7f539630b6a9d0120f461
a4753147801dbabfec45f6f9f47572cda77efb81
/debugging-constructs/ibmfl/evidencia/evidence_recorder.py
fa7058b58049d01df8a7237e81121f847aabfab1
[ "MIT" ]
permissive
SEED-VT/FedDebug
e1ec1f798dab603bd208b286c4c094614bb8c71d
64ffa2ee2e906b1bd6b3dd6aabcf6fc3de862608
refs/heads/main
2023-05-23T09:40:51.881998
2023-02-13T21:52:25
2023-02-13T21:52:25
584,879,212
8
0
null
null
null
null
UTF-8
Python
false
false
1,115
py
""" Licensed Materials - Property of IBM Restricted Materials of IBM 20221069 © Copyright IBM Corp. 2022 All Rights Reserved. """ """ Abstract base class for providing evidence for accountability. """ from abc import ABC, abstractmethod class AbstractEvidenceRecorder(ABC): """ Class that supports providin...
[ "waris@vt.edu" ]
waris@vt.edu
94ba0c13938603187c3de37f00105a9894637186
a359c7be79fd15809b659ae745352757b052e5fa
/web/pgadmin/feature_tests/table_ddl_feature_test.py
9fb90d662ca4225e39d306f7b864db3be67ce747
[ "PostgreSQL" ]
permissive
harshal-dhumal/pgadmin4
579cfd91a1659d1e27445accb542511e73c88e4f
1977a5fcda44b78b00d6eaac2e6a99df355d5105
refs/heads/master
2020-12-02T22:16:34.682407
2017-07-03T10:19:02
2017-07-03T10:19:02
96,105,663
1
0
null
2017-07-03T11:54:02
2017-07-03T11:54:02
null
UTF-8
Python
false
false
2,316
py
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2017, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## from regression.f...
[ "dpage@pgadmin.org" ]
dpage@pgadmin.org
f197366b23568d36afd7a0adc83041610a363335
85eaa822b3a565163820a2c8f997c508c43b1d13
/Table/iris_table.py
ef34c72bb85f390990dfc039b6df43c383cf2c3b
[]
no_license
woorud/GuiTest
5e59db21eeb640db734b114ff351f25bc12fcdce
50b35818b09220b73092a01e86dd9cee174fc3ae
refs/heads/master
2023-01-01T05:44:10.969120
2020-10-06T16:09:49
2020-10-06T16:09:49
293,092,869
0
0
null
null
null
null
UTF-8
Python
false
false
1,197
py
import sys from PyQt5.QtWidgets import QMainWindow, QApplication, QTableWidgetItem from PyQt5.uic import loadUiType import pymysql import pandas as pd form_class = loadUiType("iris_table.ui")[0] class ViewerClass(QMainWindow, form_class): def __init__(self, parent=None): QMainWindow.__init__(self, parent)...
[ "woorud96@gmail.com" ]
woorud96@gmail.com
92d3bb59489918ddcbcf0506d9c0336019d219e1
bc91d344ed2ee3f4f93547ec16350f2713e5f704
/.history/CRUD/views_20190108014602.py
5ca799bd23b34134d8e78785ed5186cce9299464
[]
no_license
SabitDeepto/Chitra
10ecf0c4a7588234f0a50adf038783c9ce8706d0
160e5d64c8e4ee56a95bb639386785590160ff07
refs/heads/master
2020-04-27T21:55:09.685341
2019-03-09T16:14:35
2019-03-09T16:14:35
174,716,372
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
from django.shortcuts import render from urllib3 import request # Create your views here. def home(request): executive = Exe templates = 'index.html' context = { 'name': 'deepto' } return render(request, templates, context)
[ "deepto69@gmail.com" ]
deepto69@gmail.com
a798a0e843c705439966420e50750750658888f2
c7e028d71b5dd72eb18b72c6733e7e98a969ade6
/src/algoritmia/problems/traversals/treetraversals.py
418311d170e2b266f36eec01d2d8af08272ec59a
[ "MIT" ]
permissive
antoniosarosi/algoritmia
da075a7ac29cc09cbb31e46b82ae0b0ea8ee992f
22b7d61e34f54a3dee03bf9e3de7bb4dd7daa31b
refs/heads/master
2023-01-24T06:09:37.616107
2020-11-19T16:34:09
2020-11-19T16:34:09
314,302,653
8
1
null
null
null
null
WINDOWS-1258
Python
false
false
3,233
py
#coding: latin1 from algoritmia.datastructures.queues import Fifo #[]level from algoritmia.datastructures.queues import Lifo #[]prepro from collections import namedtuple from abc import ABCMeta, abstractmethod class ITreeTraverser(metaclass=ABCMeta): #[interface @abstractmethod def traverse(self, tree...
[ "amarzal@localhost" ]
amarzal@localhost
7d6c3094add2dc3f6c27c81424781b777d17f603
4cb79aeadba003db92f295931012f4b85f0a10fa
/purkinje_model/neuron2morph.py
29afa103e60a24f35f9080a4d79b8f0cb7727d71
[]
no_license
ModelDBRepository/225089
77f64de167ac148336189c0e1c93cb94f55ec000
4d8cfd8d93cf74eda52df7a14b988eed691dc27c
refs/heads/master
2020-05-29T18:26:35.794854
2019-05-31T03:23:31
2019-05-31T03:23:31
189,299,613
0
0
null
null
null
null
UTF-8
Python
false
false
652
py
######################################################################### # This script is provided for # # Chen W and De Schutter E (2017) Parallel STEPS: Large Scale Stochastic Spatial Reaction-Diffusion Simulation with High Performance Computers. Front. Neuroinform. 11:13. doi: 10.3389/fninf.2017.00013 # #########...
[ "tom.morse@yale.edu" ]
tom.morse@yale.edu
49771ad3463b7f6cc1c7859994b5db00ce8fe7aa
48d232cc6dcf57abf6fca9cbbef8943e189acb04
/longest-peak-ae.py
81f9a6e95a133066bda1afc53954f3e21569d6c1
[]
no_license
csusb-005411285/CodeBreakersCode
dae796ba4262770e0a568e9c27597a041db0775c
8f218164e1b9e42c1a928d22ef5a76328abb66a2
refs/heads/master
2022-01-12T09:11:33.668338
2021-12-27T04:45:13
2021-12-27T04:45:13
232,490,141
1
1
null
2021-01-29T23:09:14
2020-01-08T06:02:11
Python
UTF-8
Python
false
false
2,198
py
# tc: o(n2), sc: o(n) def longestPeak(array): if len(array) < 3: return 0 peaks = get_peaks(array) path_to_from_peak = get_path_from_peak(array, peaks) if not path_to_from_peak: return 0 max_len = float('-inf') for i in path_to_from_peak: max_len = max(max_len...
[ "noreply@github.com" ]
csusb-005411285.noreply@github.com
fdbe466ecb4fc79c93bb6a16feee06d295ce8d0b
f121695e2dff353607fa47fb42482470e03bbf8a
/capitulo_08-Funcoes/magicos.py
908835a823b126a47b6d631c241eec625501b463
[]
no_license
ranog/python_work
76cbcf784c86fae4482be5383223e4b0a34f4130
47c442a90dcf32d5aef70858693a772a3c76a7ac
refs/heads/master
2022-12-22T11:02:26.482059
2021-04-17T01:12:22
2021-04-17T01:12:22
233,634,221
2
1
null
2022-12-08T07:38:43
2020-01-13T15:58:46
Python
UTF-8
Python
false
false
916
py
#! /usr/bin/env python3 """ NOME magicos.py - FAÇA VOCÊ MESMO. SINOPSES chmod +x magicos.py ./magicos.py Mágicos famosos: - Harry Houdini - Fu-Manchu - Richiardi Jr - Jasper Maskelyne - Dai Vernon - David Blaine - Siegfried Fischbacher - David Copperfield DESCRIÇÃO ...
[ "jprnogueira@yahoo.com.br" ]
jprnogueira@yahoo.com.br
77fd6bb439e708106d8cb5ef3ab6313444780583
2455062787d67535da8be051ac5e361a097cf66f
/Producers/BSUB/TrigProd_amumu_a5_dR5/trigger_amumu_producer_cfg_TrigProd_amumu_a5_dR5_450.py
540db515812846a4d296cd0d53441e47d7f6a26e
[]
no_license
kmtos/BBA-RecoLevel
6e153c08d5ef579a42800f6c11995ee55eb54846
367adaa745fbdb43e875e5ce837c613d288738ab
refs/heads/master
2021-01-10T08:33:45.509687
2015-12-04T09:20:14
2015-12-04T09:20:14
43,355,189
0
0
null
null
null
null
UTF-8
Python
false
false
3,360
py
import FWCore.ParameterSet.Config as cms process = cms.Process("PAT") #process.load("BBA/Analyzer/bbaanalyzer_cfi") process.load("FWCore.MessageLogger.MessageLogger_cfi") process.load('Configuration.EventContent.EventContent_cff') process.load("Configuration.Geometry.GeometryRecoDB_cff") process.load("Configuration.St...
[ "kmtos@ucdavis.edu" ]
kmtos@ucdavis.edu
5e45d92c570a19aed882561fb8ce582ded4238ea
aeac131d9da991853a7eb0a68bc7be4f848b9ed6
/API_DB/adjacent.py
0c0f176ff137a3bd764efc066cb40a5b8bbd3aaa
[]
no_license
xuqil/-Crawler
d5b10c137beedb9daa8a33facf8ed80f62e8e53f
c9703d8ee2a7ea66ae50d20e53247932987122e6
refs/heads/master
2020-04-04T11:25:34.729191
2018-12-15T11:49:16
2018-12-15T11:49:16
155,890,694
0
0
null
2018-12-06T11:43:28
2018-11-02T16:09:30
HTML
UTF-8
Python
false
false
1,708
py
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, ForeignKey from sqlalchemy.types import Integer, Unicode from sqlalchemy.orm import relationship, sessionmaker, joinedload, joinedload_all Base = declarative_base() Engine = create_engine('mysql+...
[ "13829842679@163.com" ]
13829842679@163.com
d10a5e2e66da614421ca8064583cae2b09a27942
09aea7ebe2ce7214ac9f18741e85e49a3d8bcd5e
/testes.py
f37cee7c457681542087f83cf56ef77f62f49f01
[]
no_license
bmsrangel/Projeto_Biblioteca
3555bf10058d450ad3d3b61bb20bd7427fe65a4d
4789c8070d194dd1ab8e1c2c0e7cc3102086d058
refs/heads/master
2020-04-27T15:12:24.472246
2019-03-07T23:51:35
2019-03-07T23:51:35
174,436,851
0
0
null
null
null
null
UTF-8
Python
false
false
3,407
py
import unittest from livro import Livro from pessoa import Pessoa from emprestimo import Emprestimo from database import Database class TestDatabase(unittest.TestCase): def setUp(self): self.db = Database() self.db.conectar() self.db.criar_tabelas() self.db.desconectar() d...
[ "bmsrangel@hotmail.com" ]
bmsrangel@hotmail.com
2f26d83ce23d45e2fed8f7f4851fecfb82a00b63
c7c969259d9600eaa152d6896b8c3278e019f8c1
/cluster/util.py
5d2baf066105077e0c19e50a6cd6507549c3fc92
[]
no_license
jwintersinger/csc2515-project
4874d1fec5c3825cff7091ac6b9af147be88b9c5
ccd71032ae0617a2cc125c73b9b0af6e92a902c0
refs/heads/master
2016-09-11T12:20:29.766193
2015-04-17T03:23:08
2015-04-17T03:23:08
34,094,429
2
0
null
null
null
null
UTF-8
Python
false
false
682
py
import multiprocessing import numpy as np def load_mutpairs(fnames, in_parallel=True, limit=None): if limit: fnames = fnames[:limit] if in_parallel: results = multiprocessing.Pool(8).map(load_single_mutpairs, fnames) else: results = map(load_single_mutpairs, fnames) mutpairs = np.zeros(shape=(len(...
[ "jeff.git@wintersinger.com" ]
jeff.git@wintersinger.com
d46a62a0887148e9646d19c3afb237ce53409f3d
bd8ec52d55798ae62bbea1906847f56b37593911
/vtol/python/hw11/vtolController_lat.py
b9da0e6822e1f52d3f630250183268a61562076e
[]
no_license
jaringson/Controls_EcEn483
2d4e4a65d84afb8f9ddc74925b85349d348a59d5
1ca4f24dad65ce92f1ab5310242adf08062e22d1
refs/heads/master
2021-08-29T22:14:18.007719
2017-12-15T05:06:42
2017-12-15T05:06:42
103,585,334
0
0
null
null
null
null
UTF-8
Python
false
false
1,987
py
import vtolParamHW11_lat as P import sys sys.path.append('..') # add parent directory import vtolParam as P0 import numpy as np class vtolController_lat: ''' This class inherits other controllers in order to organize multiple controllers. ''' def __init__(self): # Instantiates the SS_ctr...
[ "jaringson@gmail.com" ]
jaringson@gmail.com
79510f66671377a5b36333913b1852dbca847db4
8afb5afd38548c631f6f9536846039ef6cb297b9
/MY_REPOS/INTERVIEW-PREP-COMPLETE/notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/_Another-One/networking_flow/Minimum_cut.py
33daad3378607ec598d9c9fbdfc725885e05db27
[ "MIT" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
1,583
py
# Minimum cut on Ford_Fulkerson algorithm. def BFS(graph, s, t, parent): # Return True if there is node that has not iterated. visited = [False] * len(graph) queue = [] queue.append(s) visited[s] = True while queue: u = queue.pop(0) for ind in range(len(graph[u])): ...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
65f119cbba27c8105c81c41132cf967b03783924
bdda458001808a029b171c09286f022a1384d180
/prove/provascript.py
b5d257652e5cc5bda09a9bc81170655522f2767a
[]
no_license
bianchimro/crm-django
4189f5c0c31f03d23a2b644a14403d63b8efdf0a
d8e4d18174cb050fd7a22d53fe8bb152e6e43120
refs/heads/master
2021-04-27T15:15:28.219887
2018-02-22T16:51:00
2018-02-22T16:51:00
122,466,604
1
0
null
null
null
null
UTF-8
Python
false
false
321
py
import sys from libreria import helpers def provafunzione(a, b=10, c=6): print(a) print(b) provafunzione(10) provafunzione(10, b=2) provafunzione(10, b=2, c=10) provafunzione(10, c=10) def main(msg): print(msg) x = helpers.somma(1, 2) print(x) if __name__ == '__main__': main(sys.argv[1])...
[ "bianchimro@gmail.com" ]
bianchimro@gmail.com
40d0f3711fc75767e77a31c5fdf441b71a49d137
89b7b6375226e5224321e8e467b1047830bd2073
/easy/palindromeLinkedList.py
ecedabb47a8c88feecda91c0c12e7b75e6f9ff09
[]
no_license
xiao-bo/leetcode
9cf5ec1dd86faa699f51b3a616929da4ebdb3053
671383b9ee745ed84fbb6d76a91d8be353710096
refs/heads/master
2023-03-18T19:10:28.990610
2023-03-11T10:11:43
2023-03-11T10:11:43
154,341,943
0
0
null
2023-03-11T10:11:44
2018-10-23T14:24:15
Python
UTF-8
Python
false
false
2,993
py
# Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def isPalindrome(self, head): """ :type head: ListNode :rtype: bool """ # Definition for singly-linked list. ...
[ "ay852852@gmail.com" ]
ay852852@gmail.com
bd9c12207e291abf0c6e8140048b593d0520e4c7
9b20743ec6cd28d749a4323dcbadb1a0cffb281b
/07_Machine_Learning_Mastery_with_Python/05/correlation_matrix_generic.py
bef6f583b5a4eab07926d46ad4579350536cf8f3
[]
no_license
jggrimesdc-zz/MachineLearningExercises
6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178
ee265f1c6029c91daff172b3e7c1a96177646bc5
refs/heads/master
2023-03-07T19:30:26.691659
2021-02-19T08:00:49
2021-02-19T08:00:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
# Correlation Matrix Plot (generic) from matplotlib import pyplot from pandas import read_csv filename = 'pima-indians-diabetes.data.csv' names = ['preg', 'plas', 'pres', 'skin', 'test', 'mass', 'pedi', 'age', 'class'] data = read_csv(filename, names=names) correlations = data.corr() # plot correlation matrix fig = py...
[ "jgrimes@jgrimes.tech" ]
jgrimes@jgrimes.tech