blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
c699bc32127b8584ebb9ae1852fe8baa996cea26
0f7d186164cafdd90b3e0baae0b5573fead049b4
/多任务/线程/07-线程共享全局变量.py
5b263873df2b9925669df27515c6809dbc31f50f
[]
no_license
DominicRen/Python-learning
603b31ff173cbc0782b3cf3da12d5e0834a74402
a9e7ded5fc0e2a760cee9887d87700769a3b9b6d
refs/heads/master
2022-12-03T07:43:01.052201
2019-04-05T04:10:42
2019-04-05T04:10:42
179,615,987
1
2
null
2022-11-28T19:13:32
2019-04-05T03:54:26
HTML
UTF-8
Python
false
false
490
py
import threading import time # 定义一个全局变量 g_num = 100 def test1(): global g_num g_num += 1 print("-----in test1 g_num = %d-----" % g_num) def test2(): print("-----in test2 g_num = %d-----" % g_num) def main(): t1 = threading.Thread(target=test1) t2 = threading.Thread(target=test2) t1.st...
[ "ren_9510@163.com" ]
ren_9510@163.com
bf77e59520837cbd065542476fdad5c4d1c0a67f
d3e723fe5eb20b868ed6bc7e3d228eba368f22ef
/feedly/feeds/redis.py
03755ba7a7ced91466e476809ae1a508fc9d880f
[ "BSD-3-Clause" ]
permissive
intellisense/Feedly
f33fa42a0f41b73e8e728813ed311d06bd8fb668
4c5fb74aee56e5ff382417301a4825b151c474b0
refs/heads/master
2020-05-29T11:36:24.157740
2014-02-24T16:27:33
2014-02-24T16:27:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
916
py
from feedly.feeds.base import BaseFeed from feedly.storage.redis.activity_storage import RedisActivityStorage from feedly.storage.redis.timeline_storage import RedisTimelineStorage from feedly.serializers.activity_serializer import ActivitySerializer class RedisFeed(BaseFeed): timeline_storage_class = RedisTimeli...
[ "thierryschellenbach@gmail.com" ]
thierryschellenbach@gmail.com
1e27272a6df616fd8ab1ea720081875c1a06bca0
8b280840def0f170a16ea8e0668799e63759e9fc
/react_django/settings.py
1998a01b5810359170d4c639a48fdfc9254837c0
[]
no_license
panu2306/React-Django-REST
0a40830048903a0be8a5d5661ec36e20f8d02656
e0e5976e2b81a91661fed674fa7e1d8177e093f6
refs/heads/master
2021-04-02T01:44:17.179283
2020-03-18T12:55:26
2020-03-18T12:55:26
248,230,980
0
0
null
null
null
null
UTF-8
Python
false
false
3,141
py
""" Django settings for react_django project. Generated by 'django-admin startproject' using Django 3.0.3. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import ...
[ "pranavbhendawade@gmail.com" ]
pranavbhendawade@gmail.com
7cbfc835d5ee7dd706a39b957c365a77352048c5
f64069f0dc90aa41947d1deca317aa37ad9c9080
/CounterCode2015/Campers.py
1be7dba22916115142a5cf672826cd46dc065798
[]
no_license
raunaklakhwani/Algorithms
9fdd7c3f5234b4682690ce3bededa365e75df1e5
a0b36f4f068c100b17fd27b3ed28816e4f3b4e4f
refs/heads/master
2021-01-10T19:39:24.120026
2015-12-20T14:14:48
2015-12-20T14:14:48
27,044,549
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
# URL : https://www.hackerrank.com/contests/countercode/challenges/campers from math import ceil N,K = 8,2 snipers = [2,6] snipers.sort() def getBetween(a,b): #print a,b n = b-a+1 return int(ceil(n/2.0)) pre = 1 s = 0 for i in snipers: s += getBetween(pre, i - 2) #print s pre = i + 2 ...
[ "rlakhwan@cisco.com" ]
rlakhwan@cisco.com
5931a554ba7c93eb81d54d08cc04c2f9183d8c95
9e0136e424c7dfa90fba5672ec3f5dc2de002257
/13: Using Databases/Exception Handling/migration.py
207f68001892acb2752ab333f2b3a410ec8ad8eb
[]
no_license
ntkawasaki/complete-python-masterclass
591a0f936fab0e2df2abcbe447f32adda5b26675
a5eb6ead483da2fc895d169e5ed8ba1e79c2d061
refs/heads/master
2020-03-21T23:35:09.526180
2018-06-29T21:07:18
2018-06-29T21:07:18
139,195,833
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
import ducks flock = ducks.Flock() donald = ducks.Duck() daisy = ducks.Duck() duck_3 = ducks.Duck() duck_4 = ducks.Duck() duck_5 = ducks.Duck() duck_6 = ducks.Duck() duck_7 = ducks.Duck() percy = ducks.Penguin() flock.add_duck(donald) flock.add_duck(daisy) flock.add_duck(duck_3) flock.add_duck(duck_4) flock.add_duc...
[ "ntkawasaki@gmail.com" ]
ntkawasaki@gmail.com
d714be42a3d964458378d2bf219800317028de44
95255c09d3487c1b102f7c87d98298f98187f0fd
/2021-projects/team-2/preprocessing/shuffler.py
f02a4cde9b74bcc98b12be8059ac11e8b1344e34
[ "Apache-2.0" ]
permissive
AmericanEnglish/big-data-reu
e9492c3537e34f82662ec34cc3bcd98f60bae781
bb582821f7a78a57d9bdb1accaa59383f3d09028
refs/heads/main
2023-08-15T19:54:51.072317
2021-10-13T14:33:25
2021-10-13T14:33:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,194
py
trip = { "123": 0, "132":1, "213":2, "231":3, "312":4, "321":5} doubles = { "12 ":6, "21 ":7} dtot = { "124":8, "214":9, "134":10, "314":11, "234":12, "324":13} f = {"444":14} trip_r = {} dtot_r = {} for k in trip.keys(): trip_r[trip[k]] = k for k in dtot.keys(): dtot_r[dtot[k]] = k # Infile from sys import ar...
[ "barajasc@umbc.edu" ]
barajasc@umbc.edu
385f0d7c40d44dfd57c026bd40470aaa4471c8a1
23e7f6c8b69be285f89e02e3517aa4381b8ba785
/detect_failed_test_in_build.py
13c6218068d9237b6183fdb9be2c0ba0feb148fa
[]
no_license
scality/test-result-management
0705df09eeba5e3dde55689a17b484306a3207c2
23b0fed1ad9aafca471973b206cfdc31d98d60d8
refs/heads/main
2023-07-26T19:00:44.651623
2021-08-06T13:11:39
2021-08-06T13:11:39
381,741,755
0
0
null
2021-08-06T08:54:25
2021-06-30T15:06:12
Python
UTF-8
Python
false
false
8,425
py
from ES_query.visitor.interprete_response import ReadData from api_manager.ES_manager import ESManager from ES_query.AST import * from ES_query.visitor.ast_to_query import CreateDictionnary def create_aggregation_from(base_aggregation, aggregation_list): for agg in aggregation_list[::-1]: base_aggregation...
[ "alievre@laposte.net" ]
alievre@laposte.net
1617621ce2482392b966b388185db6166724db0b
010be098dbda518d2f687a1f7ec96ea8b92d6676
/skiliobackup_13012021/skiliobackup_13012021/skilio.py
7f9f7b0ed4b29078408a87afcf4ea114c64b0d9d
[]
no_license
chunyikam/python-getting-started
20afb5b82ee264fc1a925e737656f33b17cd59b1
fc34769f1bbe4d640aa77894acd4ad4bd5832145
refs/heads/main
2023-02-14T13:27:53.161752
2021-01-15T17:10:49
2021-01-15T17:10:49
330,313,095
0
0
null
null
null
null
UTF-8
Python
false
false
53,673
py
# -*- coding: utf-8 -*- """ Created on Sat Jul 11 23:41:50 2020 this is the main codes for production @author: chuny """ import enchant import pandas as pd import nltk import os import re import numpy as np import datetime import json from nltk.corpus import wordnet, words #from dateutil.parser import parse from ...
[ "chunyikam@hotmail.com" ]
chunyikam@hotmail.com
767473019fa471753c9655d05af2834a9282b2e0
e8d4c03c33e0721a26e56a0c0a1a83cbf4685e4c
/abc118/c_3.py
865ea3841c709c790ba9de89f5886a7c8da87de4
[]
no_license
satackey/atcoder
b08dec621dbd98132076b96e0bb3fa093025dfa1
1239f107d3b241f71ae8bfe3a52d0d8b2f3847ed
refs/heads/master
2020-08-28T06:21:20.327249
2020-05-31T12:14:46
2020-05-31T12:14:46
217,619,592
0
0
null
null
null
null
UTF-8
Python
false
false
560
py
n = int(input()) a = list(map(int, input().split())) a = sorted(a) zero_monster_indexes = [] while True: for monster_i in range(1, len(a)): if a[monster_i] == 0: zero_monster_indexes.append(monster_i) else: a[monster_i] %= a[0] if a[monster_i] == 0: ...
[ "21271711+satackey@users.noreply.github.com" ]
21271711+satackey@users.noreply.github.com
2ea33ffcd0cae4ec18e5222c11a9c44aa4035f04
ea3799fc5a6a7109c1c8089dc43993ce24a3fa2a
/FCN.py
368956152f8a4125ed2d103dc0e50a1d8d6a8a28
[]
no_license
gepu0221/FCN
92edfc4bddd2ace1e10d2236a2f9a4ed672705c8
df03409d5974cbec60d3d18853149c838d2f091b
refs/heads/master
2020-03-16T18:14:40.414050
2019-03-11T12:40:44
2019-03-11T12:40:44
132,865,380
0
0
null
null
null
null
UTF-8
Python
false
false
12,367
py
from __future__ import print_function import tensorflow as tf import numpy as np import time import TensorflowUtils as utils import read_MITSceneParsingData as scene_parsing import datetime import BatchDatsetReader as dataset from six.moves import xrange from label_pred import label_visualize,fit_ellipse FLAGS = tf.fl...
[ "cauc_gp@163.com" ]
cauc_gp@163.com
a8966330525ca3601a2eb751b17b6bad44bba10d
1eb8eef3a83ed545984df54f08749887dcb415e8
/common/states/default.py
26233274e1826e1ef29316499cc6c11489f9c9d5
[ "MIT" ]
permissive
sk364/prosfair
e414a2b3efa411205f9a0e4e2d1d1bdae1e782ae
bb16dd19aee9804b0a1b239b00ff99e285d7fd96
refs/heads/master
2021-06-03T01:47:07.748799
2021-04-04T10:13:27
2021-04-04T10:13:27
45,759,836
0
0
null
2015-12-15T11:18:59
2015-11-07T23:54:26
Python
UTF-8
Python
false
false
1,572
py
STATE = { "white": [{ "type": "b", "position": [7, 2], }, { "type": "b", "position": [7, 5], }, { "type": "k", "position": [7, 4], }, { "type": "n", "position": [7, 1], }, { "type": "n", "position": [7, 6], }, { "type": "q", "position": [7, 3], }, { "typ...
[ "skad5455@gmail.com" ]
skad5455@gmail.com
aa3b12bb2e51e85ab4cd8244e92c90386462942e
11f77e8b254ea5c0514251228c7b9538a7f0cf19
/lookup.py
581c16bcabce28965614df069b4e2f4e682b4c6c
[]
no_license
fiesta0211/korean-cnn-text-classifier
ef9a8e8333900d894c086a21450e31f71f5cd119
a679518e6ac2ec97a4c8151170930a576a35dc68
refs/heads/master
2020-11-29T18:49:37.046905
2018-12-17T14:16:31
2018-12-17T14:16:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
462
py
import tensorflow as tf W = tf.Variable(tf.random_uniform([4, 6], -1.0, 1.0)) x = tf.constant( [[0, 1, 2], [0, 3, 2]]) embedded_chars = tf.nn.embedding_lookup(W, x) embedded_chars_expanded = tf.expand_dims(embedded_chars, -1) sess = tf.Session() sess.run(tf.global_variables_initializer()) print(sess.run(embedded_...
[ "a4gkyum@naver.com" ]
a4gkyum@naver.com
c040a11a91612d901166299c6fb7ff05d5c3161c
cfba700693b3fe1590a86f817da94f92457da254
/170401007_hw_2.py
708bb4e15fab53f9ad52a6fa723bcecac1458f36
[]
no_license
ArdaCemBilecan/Programlama-Lab
79cda580901f5a1da7d97e78e8da647b74fa78d2
66f3f15b783308760b30df68c4a2af4f3ec369fd
refs/heads/master
2021-01-07T11:11:40.719509
2020-05-22T18:06:43
2020-05-22T18:06:43
241,673,681
0
2
null
null
null
null
UTF-8
Python
false
false
1,873
py
import sys outputs=[] Days=[] def bubbleSort(list_1): for i in range(len(list_1)-1): for j in range(len(list_1)-1): if list_1[j]>list_1[j+1]: temp = list_1[j] list_1[j]=list_1[j+1] list_1[j+1]=temp def read_File_And_Separation(): f...
[ "noreply@github.com" ]
noreply@github.com
a8dd093e465a4f7450799f4fda9aa351634db949
7508a50ee82a59bde3b2e443b6ef4813b8738c9e
/stuck1.py
8292164be61e9e950f0add6dc54bfe43535f2ac4
[]
no_license
joinalahmed/ttgen
b2c7fc39621768b8d34f0518457de997cc02f233
c19d30b805ab4718f9b7395cbb7cb19dfb7ed035
refs/heads/master
2021-01-10T23:28:14.761892
2017-04-30T15:25:31
2017-04-30T15:25:31
70,583,945
0
0
null
null
null
null
UTF-8
Python
false
false
1,375
py
import sys import subprocess from PyQt4 import QtGui, uic qtCreatorFile = "/home/joy/Desktop/test/stuckat1.ui" # Enter file here. Ui_MainWindow, QtBaseClass = uic.loadUiType(qtCreatorFile) class MyApp(QtGui.QMainWindow, Ui_MainWindow): def __init__(self): QtGui.QMainWindow.__init__(self) Ui_Ma...
[ "joinalahmed@gmail.com" ]
joinalahmed@gmail.com
53d89cc1f1796b277ee380a6a9c9f66fd6838149
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/139/usersdata/247/61611/submittedfiles/diagonaldominante.py
4c46b3db468eb5120f665f18eaa6860ff491cb18
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
117
py
# -*- coding: utf-8 -*- i=1 n=int(input('d')) cont=0 while i<n: if i%2==1: cont=cont+i print(cont)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
9fcfda872969a04db6c4892cc52345f61d0a5a36
2ed86a79d0fcd299ad4a01310954c5eddcf01edf
/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_heating_zone.py
b6835d93ebb01978f226f745fb84a212a4de8ecd
[ "Apache-2.0" ]
permissive
konnected-io/home-assistant
037f12c87bb79e19220192eb918e49db1b1a8b3e
2e65b77b2b5c17919939481f327963abdfdc53f0
refs/heads/dev
2023-05-11T08:57:41.891518
2023-05-07T20:03:37
2023-05-07T20:03:37
109,931,626
24
10
Apache-2.0
2023-02-22T06:24:01
2017-11-08T05:27:21
Python
UTF-8
Python
false
false
7,956
py
"""Support for Atlantic Pass APC Heating Control.""" from __future__ import annotations from typing import Any, cast from pyoverkiz.enums import OverkizCommand, OverkizCommandParam, OverkizState from homeassistant.components.climate import ( PRESET_AWAY, PRESET_COMFORT, PRESET_ECO, PRESET_HOME, P...
[ "noreply@github.com" ]
noreply@github.com
ef0331985cab09f63d6cb638d9717f4a48d79858
7240b8cec438c4d1e9ec023599f91a361cd7c97c
/python-scripts/summing_smalls_numbers.py
1cf2e2497b41742699a2490af8e2dcbe1a24f862
[]
no_license
isacmoura/deep_learning_udacity
8499729030d7bfeb1e51225c5528aee41cabd067
0ec52b5bfb74afc10c4c998382e48449481d356f
refs/heads/master
2020-04-04T09:06:40.972366
2018-11-02T16:54:47
2018-11-02T16:54:47
155,807,363
0
1
null
null
null
null
UTF-8
Python
false
false
186
py
# Somando pequenos números a um número de 1 bilhão big = 10 ** 9 for i in range (10 ** 6): big += 10 ** -6 big -= 10 ** 9 print("{0:.3f}".format(big)) # O resultado não é 1
[ "contatoisacmoura@outlook.com" ]
contatoisacmoura@outlook.com
ccf0391edc7b4cf3a0f5c98a4e48021a6c5e0901
63745d097fa60ae7b3edf4f5d6a87678c273bbe8
/kind/master/MstTrainCompanyKind.py
de8d11c546358b49faca4971feab52c31f1b5749
[]
no_license
ekchuah-aoki/miralServer
48d7ad42c282ccede4a96f0ba2266617448111a8
6942e2c5aa5c3c52cee85359d7f4381689f33c67
refs/heads/master
2021-01-21T04:40:38.878158
2016-06-07T04:53:35
2016-06-07T04:53:35
55,469,708
0
0
null
null
null
null
UTF-8
Python
false
false
535
py
# coding: UTF-8 from google.appengine.ext import ndb from kind.BaseKind import BaseKind class MstTrainCampanyKind(BaseKind): u"""路線マスタ""" campanyCd = ndb.IntegerProperty(indexed=True) #路線事業者コード companyNama = ndb.StringProperty() #路線事業者名コード company...
[ "y.aoki@192.168.1.54" ]
y.aoki@192.168.1.54
dd618eda0c41743443401f194db4990de20d0395
882f29fb4e8dde1a80b67de71aadbcc8f5f3cddc
/checkout/webhook_handler.py
8294e9102ee6425a383bcc534068bd1b68185e66
[]
no_license
GTretiakov/boutique_django
af14dc1d7ea7dbc98b42c1ca55293e0e6b876304
a4dce85ee21c9fe1a831e0516d0e642b2502e8d4
refs/heads/master
2023-04-14T10:01:42.695558
2021-04-29T00:42:13
2021-04-29T00:42:13
349,506,830
0
0
null
null
null
null
UTF-8
Python
false
false
6,003
py
from django.http import HttpResponse from django.core.mail import send_mail from django.template.loader import render_to_string from django.conf import settings from .models import Order, OrderLineItem from products.models import Product from profiles.models import UserProfile import json import time class StripeWH...
[ "g.tret1990@gmail.com" ]
g.tret1990@gmail.com
918fead55de0ee535f3693901f65ecbea534c81b
58ea2e69333d44e073ccbc31077b4268d1dc28f1
/manage.py
79cedce0c7fe8649b38b4f69cf54ef7707db1b1e
[]
no_license
beruangsakti/Peweb
8e2dae370c05d08957a7aade9eda2817838bf553
e83bf948c8d3aba8b0c6f4340e41cc62ee7953b0
refs/heads/main
2023-02-16T14:30:39.227697
2021-01-18T17:48:26
2021-01-18T17:48:26
330,742,867
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'maddi.settings') try: from django.core.management import execute_from_command_line ex...
[ "noreply@github.com" ]
noreply@github.com
5b8904fa1f4944088bfa67fd47c8959d3ab4ffb4
9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56
/google/ads/googleads/v9/resources/types/bidding_data_exclusion.py
9fc75f0ae1869a171b9aa89c12199bed820c8544
[ "Apache-2.0" ]
permissive
GerhardusM/google-ads-python
73b275a06e5401e6b951a6cd99af98c247e34aa3
676ac5fcb5bec0d9b5897f4c950049dac5647555
refs/heads/master
2022-07-06T19:05:50.932553
2022-06-17T20:41:17
2022-06-17T20:41:17
207,535,443
0
0
Apache-2.0
2019-09-10T10:58:55
2019-09-10T10:58:55
null
UTF-8
Python
false
false
4,930
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
noreply@github.com
241ee1d4fb08eab48847636ac8aa19413cffb686
846b11ccf549aba144c1824a24292a4850860ca7
/2-EstruturaDeDecisao/5.py
ecaf59269d84595e978da0a147427a07e1c37567
[]
no_license
paulocesarcsdev/ExerciciosPython
6d1feff293e7efc4cd3fbc62eee0add93f76db99
25bfaa6dc5cb294242e478a2b253a8ca5d9c7078
refs/heads/master
2023-05-15T00:53:22.151884
2021-06-10T03:04:04
2021-06-10T03:04:04
337,847,875
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
''' Faça um programa para a leitura de duas notas parciais de um aluno. O programa deve calcular a média alcançada por aluno e apresentar: A mensagem "Aprovado", se a média alcançada for maior ou igual a sete; A mensagem "Reprovado", se a média for menor do que sete; A mensagem "Aprovado com Distinção", se ...
[ "paulocesarcs.dev@gmail.com" ]
paulocesarcs.dev@gmail.com
0c926511d6608be8a6ffadd86323b3b573462578
55ed0f382be1003415af11031169af01b8242607
/main.py
3ac6bfe484f7b328ebb75757dc83a33e3caa42bc
[]
no_license
DevoidLabs/static-boilerplate
aa541dcb99f7b06b66f1fe941261e7c29b6e5bf0
50b3d310e7ecb7f9a2c7be5b7e186e9c3d39ac9f
refs/heads/master
2020-04-19T01:17:53.556839
2019-01-28T01:26:20
2019-01-28T01:26:20
167,868,371
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
from sanic import Sanic from sanic.response import text app = Sanic() app.static('/pages', './pages') # Blueprints from blueprints.home.main import home_module app.blueprint(home_module) if __name__ == "__main__": app.run(host="0.0.0.0", port=5000)
[ "josuedr11@gmail.com" ]
josuedr11@gmail.com
4d068327d644e12ccaf00e9cc933c0fc2aa829f0
ac5808a7d70cb457e2585ad369aff013d4eaaed6
/s2-061.py
d2d5b41b20c620862085678a1f652d3d0de1bcca
[]
no_license
w9w/CVE-2020-17530
ca73e1d9042a3d4243efb9bba520c1bf06a2bcb0
6ca6298e420a2ad974ea164c19703b1400351da4
refs/heads/main
2023-01-27T18:22:28.534988
2020-12-11T17:21:10
2020-12-11T17:21:10
320,619,487
0
0
null
2020-12-11T16:00:12
2020-12-11T16:00:11
null
UTF-8
Python
false
false
1,142
py
# 2.0.0 ~ 2.5.25 import requests import args parser = argparse.ArgumentParser() parser.add_argument("-u", "--url", help="url to check", action="append") args = parser.parse_args() args.url = str(args.url).replace("['", "") args.url = str(args.url).replace("']", "") url = "%s/struts2_showcase_war/hello.action" %args.ur...
[ "noreply@github.com" ]
noreply@github.com
45d1c23674f5675682b55aca4e6ed974fc6630c2
6f1fee4c59fd3548368dc9c54380abaff759678c
/package_a/src/example_project/application_a/dependency_a.py
0308f4c11f2b91ef71e83b02b2102f17333498d9
[]
no_license
cerna/python_pdm_example
f5f0e117b1daea84e0fcb34363019d99be0bfb0c
67c95b92e8a5aeadf5881b81335345d8dbc4802a
refs/heads/master
2023-04-13T16:00:28.930236
2021-04-20T22:49:13
2021-04-20T22:52:09
359,969,848
0
0
null
null
null
null
UTF-8
Python
false
false
39
py
dependency_for_b = "Some dependency 5"
[ "jakub.fiser@eryaf.com" ]
jakub.fiser@eryaf.com
d46b43e86a84e08abbee21355406b53589c0d6b4
4b7324621542b007c4379efc3e6e3fa28ef61bdf
/insertion_sort.py
405746d03fd765d5cff8680de4868c41694c4c9d
[]
no_license
dbuscaglia/hackerrank_practice
9ce6290c74e3115174d732e61f5ec9b53332785f
3e360225adcac08bec2858d7392ccc6bacf24704
refs/heads/master
2021-01-13T02:32:33.638657
2015-08-24T20:23:18
2015-08-24T20:23:18
41,325,199
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
def sort_numbers(s): count = 0 for i in range(1, len(s)): val = s[i] j = i - 1 while (j >= 0) and (s[j] > val): count += 1 s[j+1] = s[j] j = j - 1 s[j+1] = val return count n = input() for iterate in range( n ): x = input() a = [ ...
[ "daniel@mylively.com" ]
daniel@mylively.com
8729474e8b2422a1e50214878c35fd5195d111dc
f4434c85e3814b6347f8f8099c081ed4af5678a5
/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py
69f1236074986d93928e4b4bce029ea46665aab2
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
yunhaoling/azure-sdk-for-python
5da12a174a37672ac6ed8e3c1f863cb77010a506
c4eb0ca1aadb76ad892114230473034830116362
refs/heads/master
2022-06-11T01:17:39.636461
2020-12-08T17:42:08
2020-12-08T17:42:08
177,675,796
1
0
MIT
2020-03-31T20:35:17
2019-03-25T22:43:40
Python
UTF-8
Python
false
false
10,433
py
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import pyt...
[ "noreply@github.com" ]
noreply@github.com
a22a427fb6779742735f03a5727f7fa1e25dee6d
34c2aaf784356c3445edabbe83acfa7b71b3fa6c
/Batch2/webapp/app.py
7dcb6947d6953a4f0bd583979bec58f298ae758d
[]
no_license
ccw7/BootUP_maxis_data_science_level_2
1d7bf888ecd957d3c79804e33bc7e8e65dce351b
3cbd01e663021a6858d18054bee7c28ea2e4a5f5
refs/heads/master
2023-06-09T15:06:36.495618
2021-06-19T03:13:26
2021-06-19T03:13:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
from flask import Flask app = Flask(__name__) @app.route("/",methods=['GET','POST']) def main(): return "Hello from Flask" @app.route("/predict",methods=['GET','POST']) def main2(): return "Hello from ML model - telecom churn prediction" if __name__=="__main__": app.run(debug=True)
[ "anshuspandey@gmail.com" ]
anshuspandey@gmail.com
f3704e6ffdfc299ccbe48106a9f84b3607dfd38d
a0b7d64efae7804d82aac288f1ab36a98339c32a
/all_repos/manual.py
d8d1cad94614b5206dd88c6a14ebceb5fabfaa03
[ "MIT" ]
permissive
asottile/all-repos
a4e71e2deabd4f82af8d8dda43289a22e9d22b28
54d272b276e391828b74efad9445f5eafc96c998
refs/heads/main
2023-09-01T14:39:35.708565
2023-08-29T15:13:51
2023-08-29T15:13:51
99,260,344
481
81
MIT
2023-09-05T11:38:16
2017-08-03T17:51:41
Python
UTF-8
Python
false
false
1,302
py
from __future__ import annotations import argparse from typing import Sequence from all_repos import autofix_lib from all_repos.config import Config def find_repos(_: Config) -> list[str]: raise AssertionError('--repos is required') def main(argv: Sequence[str] | None = None) -> int: parser = argparse.Arg...
[ "asottile@umich.edu" ]
asottile@umich.edu
4a45b3e33893d6c5227a5305e5e04c43a235d96e
ae250bde55856d7de248fc117dd72a9869f37b8b
/code/dataset/split.py
f07c663196e914bc3e7e13579d0fd4c7d6e0556c
[]
no_license
littlepig2013/HIN-Similarity-Survey
3a5738c1b4e786a4c500b5de08f59a2b6fa7838a
9179e636aa5280acb7e85dcfee2165300fed5c86
refs/heads/master
2021-11-13T06:58:51.608242
2017-11-30T08:51:03
2017-11-30T08:51:03
111,684,812
4
4
null
null
null
null
UTF-8
Python
false
false
863
py
import random fin = open("users_rate.txt",'r') data = fin.readlines() userDict = dict() for record in data: [userStr, movieStr, ratingStr] = record.split(' ') if userStr not in userDict: userDict[userStr] = [(movieStr, ratingStr)] else: userDict[userStr].append([movieStr, ratingStr]) TRAINING_RATE = 0.5 fout1 ...
[ "zhuzichen19960417@gmail.com" ]
zhuzichen19960417@gmail.com
aab29b9633a7d3decbbc59f57fbd3402c63ef5a3
65875c8b063e6b154d396f388a2a59425cce6da0
/Lista_06/Felipe Victor e Pedro Lucas/Questão_1/produto.py
2c608053389a2aeee20088f536b4e33561ed25bc
[]
no_license
limapedro2002/PEOO_Python
fbcf3af1003a56e64eac9f95e0fedc8d2e2c923b
a099fd45ac189415a493b0183e900514c602915b
refs/heads/main
2023-04-27T07:39:37.636631
2021-05-10T19:17:15
2021-05-10T19:17:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
578
py
class Produto: def __init__(self, nome, cod, preço): self.nome = nome self.cod = cod self.preço = preço self.item = None class ItemPedido: def __init__(self): self.item = None self.nome = None self.cod = None self.preço = None def adicionar(...
[ "80356903+limapedro2002@users.noreply.github.com" ]
80356903+limapedro2002@users.noreply.github.com
f5adb7580c35fab602f541d4ce123c7b11f7f72e
e8486731cced94056574e92f8d7fb11b36d49518
/zzh/zzh/spiders/spiderbase.py
5be799e750055e5fdef78b85a08641bea235d740
[]
no_license
jinuoA/spider_zzh
3bef91350b0794ef22dc60a261e890b82c08e99b
3db097b28679b520d2abedac05e544f98b0b89e2
refs/heads/master
2022-12-11T10:01:12.685038
2019-05-06T03:05:45
2019-05-06T03:05:45
185,114,452
0
0
null
2022-12-08T01:45:15
2019-05-06T03:04:27
Python
UTF-8
Python
false
false
4,952
py
# coding=utf-8 from scrapy import log, Request from ..scrapy_redis.spiders import RedisCrawlSpider import traceback from selenium import webdriver import time from selenium.webdriver.common.desired_capabilities import DesiredCapabilities import json import copy import importlib import hashlib from HTMLParser import HT...
[ "wangjun@zhengzihui.com" ]
wangjun@zhengzihui.com
e0077da32f8f0a9b4ddeb55a914be35925f10d0d
64ec0ce37edfec33e1a7c9f074517c07161dc4b3
/torch/overrides.py
049115ebcd779e034d2f864af86cc6a072340b07
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
Yodai1996/pytorch
35ffb1c1ba2f77957193e26c6c823daab5270aef
72274e2a2fd55019ec860e1743dbdc5b0c5a5624
refs/heads/master
2023-07-25T01:25:09.684093
2021-09-08T07:22:05
2021-09-08T07:25:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
83,071
py
""" Python implementation of ``__torch_function__`` While most of the torch API and handling for ``__torch_function__`` happens at the C++ level, some of the torch API is written in Python so we need python-level handling for ``__torch_function__`` overrides as well. The main developer-facing functionality in this fil...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
67f6a2cd184f9c608c5cc151e68f08f81eb3c1b2
9c4225a9d7c7c1a8ba452856c3192f572c136491
/FLAlgorithms/trainmodel/models.py
5141932c9a31fa37af34e32092d917948119dce6
[]
no_license
Noploop/FedGen
58e28b1879550adb2eb84159e30558d3549e8ba1
7c6441b95b8e49443e7a4c597bd8982d1e3ee233
refs/heads/main
2023-09-03T12:51:31.802025
2021-11-11T16:51:01
2021-11-11T16:51:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,892
py
import torch.nn as nn import torch.nn.functional as F from utils.model_config import CONFIGS_ import collections ################################# ##### Neural Network model ##### ################################# class Net(nn.Module): def __init__(self, dataset='mnist', model='cnn'): super(Net, self).__i...
[ "zhuangdizhu@yahoo.com" ]
zhuangdizhu@yahoo.com
3ccdf6ed209887f9451c1262c2dd845d9316aa30
d14651ed2fa6b2f7fb32e224a2cb15c32c75c2b0
/chapter1/p129.py
5097608dfdf9c57785c8b4a90387261c04c85dcd
[]
no_license
gabolecointere/algorithms-and-data-structures
5895405f786e1343581b3ae31436cb7b36ab06a7
56c1bc9a9d56c40e163ba69cd04c09b68d6860ee
refs/heads/master
2020-04-16T22:55:47.705333
2019-01-29T05:19:59
2019-01-29T05:19:59
165,990,443
0
0
null
null
null
null
UTF-8
Python
false
false
1,072
py
# Write a Python program that outputs all possible strings formed by using #the characters c , a , t , d , o , and g exactly once. def permutation(str): lst = list(str) # If lst is empty then there are no permutations if len(lst) == 0: return [] # If there is only one element in lst ...
[ "gabolecointere21gmail.com" ]
gabolecointere21gmail.com
87060dbac8e6dc69ba2a1fda481d7c8736a91514
9a3b88343c740020e676907b87d1f6bfde44cbaa
/DUPMP/Database, User, and Process Management with Python/Section 1/psutil_discspace.py
2cda48df235ebeb651d238b9eab1b25194f46a63
[]
no_license
ramksharma1674/pyprojold
2239f29d06764b53c3f6da89599b3e4560a71190
8db6aa2f587c95ffaba9ce3e54975894a702760a
refs/heads/master
2020-08-17T14:20:27.974040
2019-10-17T06:01:43
2019-10-17T06:01:43
215,677,583
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
import psutil print("disc partitions:") print(psutil.disk_partitions()) print("disc usage:") print(psutil.disk_usage('/')) print("disc io_counter:") print(psutil.disk_io_counters(perdisk=False))
[ "ramksharma@yahoo.com" ]
ramksharma@yahoo.com
f145efce77ef6f63b0b4957d6870284349103a47
d406cddee2d69dbb6961cfb60a96729c752ca997
/Classes pt 3/app.py
12d3e4fb2982ded46510fb43035ac622b942c790
[]
no_license
MasterCoookie/python_basics
6f34173501f2d516a81942968d5f80be5d1f0d5c
1d8f2eea66a4e8bfd12f714adca021af7120ef9b
refs/heads/master
2020-08-10T20:51:31.136121
2019-10-11T11:27:54
2019-10-11T11:27:54
214,418,379
0
0
null
null
null
null
UTF-8
Python
false
false
804
py
class Employee: def __init__(self, first, last, pay): self.first = first self.last = last self.pay = pay @property def fullname(self): return f'{self.first} {self.last}' @property def email(self): return f'{self.first}.{self.last}@gmail.com' #setter - a...
[ "jas.kocurek@wp.pl" ]
jas.kocurek@wp.pl
864eb8aa4218cdc43a380472ef2c3f567f009d1b
b1c2050aab4aeea16e23f0074f3c8989656fd4ce
/UAS/Kivy Sudah Modifikasi/FlappyBird Modifikasi.py
bd32096f86aec2c02243315b0727570931e1dd21
[ "MIT" ]
permissive
musfirotum/Object-Oriented-Programming
3fd2ce0e03e270ca8725ec3736268ff864f8d0f3
81ebd91066007b70e979665eaa2a131d5d85de7b
refs/heads/master
2020-04-01T19:40:44.463984
2018-12-22T14:13:46
2018-12-22T14:13:46
153,566,151
0
0
null
2018-10-21T10:01:54
2018-10-18T05:03:51
Python
UTF-8
Python
false
false
6,416
py
import kivy kivy.require("1.8.0") from random import randint import sys from kivy.properties import NumericProperty, ReferenceListProperty, BooleanProperty, ObjectProperty, ListProperty from kivy.uix.image import Image from kivy.vector import Vector from kivy.app import App from kivy.clock import Clock from kivy.conf...
[ "noreply@github.com" ]
noreply@github.com
1f6b0223ae64b698f778132e92aa7961497b2301
2cd0c89e4002871dddd6d0872c8105b92f730a11
/Publishing/_old/AssetPublish_v01.py
fbfdff88c9d339803ead8ba1e0e6c2f8535a364f
[]
no_license
zethwillie/froggerPipeline
d130d5d13a30aa085061e5af918f59f1c4184517
0ab3a5462b8a3e1f36e21c77df88e1039a7b3e4d
refs/heads/master
2021-04-29T14:40:13.402162
2018-03-14T16:03:34
2018-03-14T16:03:34
121,779,043
0
1
null
null
null
null
UTF-8
Python
false
false
13,037
py
import os from shutil import copy2 as copy2 import fnmatch import maya.cmds as cmds import maya.mel as mel import Utilities.utilityFunctions as uf reload(uf) # the fbx presets preset="X:/Production/Code/Maya/Tools/PipelineTools/Python/Publishing/Cali_Scale_Cm.fbxexportpreset" def publish_maya_scene(versionUp=True, ...
[ "zethwillie@gmail.com" ]
zethwillie@gmail.com
41eaf7e6aec7c41d1fd7d58171b45b152b251f0c
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nncunningli.py
c8167f667286f6af6e6235660cde84e24409626d
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
159
py
ii = [('BailJD2.py', 1), ('CarlTFR.py', 12), ('LyttELD.py', 1), ('WadeJEB.py', 1), ('GodwWLN.py', 1), ('SoutRD.py', 1), ('FitzRNS2.py', 1), ('BowrJMM3.py', 1)]
[ "varunwachaspati@gmail.com" ]
varunwachaspati@gmail.com
9cf7cec01238c998b248e87e2b9351a252bbf803
ee8a3bd3504aca8dd90f66681a3debd54bd3b0d3
/mvurruti/processors/svm/svm2.py
78385362b15a6ec3b6d33ba9293e2f8f5928cf5f
[]
no_license
scipp-ilcadmin/scipp_processors
8927994ba8f206323054f5ce2c0f9d8f7d7da780
24a183d3b1251d6d37a19f8d7eebcc75a9a858a5
refs/heads/master
2020-03-11T16:44:40.106096
2019-12-12T08:00:06
2019-12-12T08:00:06
130,126,202
0
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
import time import argparse import ROOT #list of root files as input #loop through input files and plot based of the types (S,V,M) #Start w/ vector true alone. #plot all true vectors of diff root files in same plot roots = ["bbsignal.root","bwsignal.root","wbsignal.root","wwsignal.root"] files=[] for file_name in ro...
[ "ilcadmin@atlas04.ucsc.edu" ]
ilcadmin@atlas04.ucsc.edu
f9c851f4e6d1354c8ce6b7dcfb1258a810ae2662
20e055f337ca4c3f588388fcd8c1d413c222fc46
/[OLD] disentanglement/reads_data_simulation.py
1fc92303f5d64ff35f747cd762d4f01c85e99aee
[]
no_license
giuliospinozzi/reads_data_simulation
12c3cd52b661cafa13a927f36aea48d41bc8f54e
5be6244d981fc58a1005ce9ba734f115477eb2a4
refs/heads/master
2022-08-25T11:48:12.263664
2014-04-04T08:47:44
2014-04-04T08:47:44
264,126,128
0
0
null
null
null
null
UTF-8
Python
false
false
15,079
py
###Requested Package(s) Import### from time import gmtime, strftime import os # ################################# ###Import Module(s)##### import dataset_module ######################## ### Set-up Paremaeters ########################################################################################### ### Distribut...
[ "brasca.stefano@hsr.it" ]
brasca.stefano@hsr.it
9d20c5e89f09c22618f69cb4e853bf6709cde740
f14fa682ba80297bbc37f58a388311826b4ac787
/.history/tracce/12_gen_2016_20181227102247.py
2549e43d1c94671a4eefb01bc8b26b06e9dc8df0
[]
no_license
Arkango/calcolo_numerico
1b28a311a830f14128a71731717602fe26c839ff
c36e030a0edbcf1df926d558c46131980cd8b705
refs/heads/master
2020-03-31T18:13:09.183066
2019-01-22T17:55:50
2019-01-22T17:55:50
152,449,940
0
0
null
null
null
null
UTF-8
Python
false
false
495
py
""" input tol tolleranza maxIter numero massimo iterate output approssimazione di s^1/3 numIter numero di iterate effetuate """ def radCubic(s,tol,maxIter): if s < 1: print('value inserted not correct') return False x0 = s niter = 0 valoreFisso = 1/3 while x0 > s and niter < maxIt...
[ "asaracino@aryma.it" ]
asaracino@aryma.it
ec2eb4274f2ab5c547553a43a9e89cf4b30551d7
ad357cfbec64afb8f4cc4043b212996768f9755c
/api/barriers/serializers/mixins.py
0bf4ea3db58f439746d9c561c10c87ca5eb2913b
[ "MIT" ]
permissive
uktrade/market-access-api
6b4680e6455eb5c25480ccd3e3d9445654269f36
4da26d1be53843d22411577409d9489010bdda09
refs/heads/master
2023-08-30T14:47:10.373148
2023-08-29T13:58:08
2023-08-29T13:58:08
131,856,014
2
3
MIT
2023-09-14T08:04:42
2018-05-02T13:38:37
Python
UTF-8
Python
false
false
3,729
py
from rest_framework import serializers class LocationFieldMixin(metaclass=serializers.SerializerMetaclass): # Use metaclass to get the fields registered at the serializer where the mixin is used # The field will need to be listed on the serializer using this mixin location = serializers.SerializerMethodFi...
[ "noreply@github.com" ]
noreply@github.com
62738953f7c275cdaa4763d7f206d6520e01fb56
082e6342ca6872420b2960c64cba484f3852351b
/stocktracker/urls.py
2cf81d9c7f0d98b2ffee32ec3efde485c6fa0a7c
[ "MIT" ]
permissive
reihtw/stocktracker
54c7c1dc066d73b9b57836d1ac3ea259d8715632
fd83862ce47dae1615c445a1bed1a39d3a769e80
refs/heads/master
2022-11-23T12:25:56.876883
2020-07-25T19:17:55
2020-07-25T19:17:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,085
py
"""stocktracker URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/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') Class-...
[ "rodrigolins@protonmail.com" ]
rodrigolins@protonmail.com
a7164741d8765f85189f6b65ca4e7eb3f582d20b
baf503ae0a331b3a71d1692b37b6c7ef96f337f8
/knn_movie.py
9e8cca0d151728da1947d867282e108c82dd532d
[]
no_license
mitanachien/Netflix-Movie-Rating-Prediction
3d34ebf46de67348c6f6d8a9ee973e416c9f4aca
72e6687c5d76f23f7567c2c7004b407c7e8f781a
refs/heads/master
2023-05-29T01:27:18.040998
2021-06-08T03:04:19
2021-06-08T03:04:19
351,943,923
0
0
null
null
null
null
UTF-8
Python
false
false
4,020
py
# Note: run avg_movie_rating.py first import pandas as pd import numpy as np from sklearn.metrics import confusion_matrix import time from scipy import stats from statistics import mean from sklearn.metrics import accuracy_score print("Loading dataframe") training = pd.read_pickle('training.pkl') test = pd.read_pickl...
[ "daniellenicolehancock@gmail.com" ]
daniellenicolehancock@gmail.com
1c9687591a895a84bf4597f263816a8942879e51
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/feel_first_hand/work_different_thing_of_next_company.py
1f68da0b0954abd51549c98382a5e50aac67ba34
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
#! /usr/bin/env python def place_or_life(str_arg): right_point_or_important_work(str_arg) print('case') def right_point_or_important_work(str_arg): print(str_arg) if __name__ == '__main__': place_or_life('large_government_and_different_man')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
bded93a7a75b4d88c8572e95d498b5a474c0df35
4b43b97f5188cdb910f7db612dccb5f944a3de9b
/NYC_Training.py
cd6eb8b9712501648d83f15a299ba094f3b93fa8
[]
no_license
kiranikram/NYC-Traffic-Jams-RL
89de6e0d78feb5f91c123cc4f225ea48fc4bef1a
b9c08646a6662390b3323e6e07f3c67e06906077
refs/heads/master
2022-09-03T18:45:08.275515
2020-05-26T15:22:29
2020-05-26T15:22:29
256,841,377
1
0
null
null
null
null
UTF-8
Python
false
false
7,657
py
# ================================== TRAINING ================================== import time start_time = time.time() from IPython.display import clear_output import random import pandas as pd print( 20 * "#" + " Attention resetting Q matrix " + 20 * "#") Q = np.zeros([env.observation_space.n, env.action_space.n]) pri...
[ "noreply@github.com" ]
noreply@github.com
d10439b40f3387f1947cdc3cc6db7738ca628790
59537ab04a54e0b8a00c5de06f99b755851d4932
/src/algorithm/data_structures/queue.py
300cf75b3a31ce421b533c47b8db49baf4f301df
[]
no_license
xqhu2008/Larva
c360af0fb0d4b91e3d12bd7abe6fb3f09e638b9a
cc5850cd8d8e2ed844b39d06998c43356f53a284
refs/heads/master
2021-01-13T21:50:30.970956
2020-03-07T03:08:44
2020-03-07T03:08:44
242,505,732
0
0
null
null
null
null
UTF-8
Python
false
false
1,097
py
#!/usr/bin/env python # -*- encoding:utf-8 -*- ''' queue.py: queue data structure implementation used python ''' import random class Queue: def __init__(self): self._queue = [] def enqueue(self, item): self._queue.insert(0, item) def dequeue(self): return self._queu...
[ "xqhu2008@hotmail.com" ]
xqhu2008@hotmail.com
0345e3681a7ffcb47a73df6e4b2513cd6b8aba8a
0c99bbbcd3845a26cb1e0c67f7ae3efbf02ff7bf
/src/app/env_vars.py
0b8cf91cb00c62baf40ab2c6b91ef73bf603d72b
[ "MIT" ]
permissive
DigitalGeographyLab/hope-aqi-archiver
20f1774b85ec743fb220a0555765e0d76e742983
13a42c0def97d69870ed3a04f11d21e673d9404d
refs/heads/master
2020-12-13T02:15:08.168600
2020-02-13T10:58:42
2020-02-13T12:44:15
234,285,597
0
1
MIT
2020-02-09T18:28:46
2020-01-16T09:40:23
Python
UTF-8
Python
false
false
881
py
import os from glob import glob import csv import traceback from app.logger import Logger def set_env_vars(log: Logger): try: found_secrets = False for var in glob('/run/secrets/*'): k=var.split('/')[-1] v=open(var).read().rstrip('\n') os.environ[k] = v ...
[ "joose.helle@gmail.com" ]
joose.helle@gmail.com
f5b7ecf5498c79c23d17b6a98ceb9627c189511f
2612f336d667a087823234daf946f09b40d8ca3d
/python/lib/Lib/site-packages/django/core/management/commands/diffsettings.py
98b53b405d24da9b10a77e7b0bbc578bc9603626
[ "Apache-2.0" ]
permissive
tnorbye/intellij-community
df7f181861fc5c551c02c73df3b00b70ab2dd589
f01cf262fc196bf4dbb99e20cd937dee3705a7b6
refs/heads/master
2021-04-06T06:57:57.974599
2018-03-13T17:37:00
2018-03-13T17:37:00
125,079,130
2
0
Apache-2.0
2018-03-13T16:09:41
2018-03-13T16:09:41
null
UTF-8
Python
false
false
1,296
py
from django.core.management.base import NoArgsCommand def module_to_dict(module, omittable=lambda k: k.startswith('_')): "Converts a module namespace to a Python dictionary. Used by get_settings_diff." return dict([(k, repr(v)) for k, v in module.__dict__.items() if not omittable(k)]) class Command(NoArgsComm...
[ "dmitry.trofimov@jetbrains.com" ]
dmitry.trofimov@jetbrains.com
028cc16ce14161cfa50a6f6a3ec2903c72b388fc
0f46f4229c763f6908905d41f2dee7d420bad3d0
/Slave/slave-douban/douban/spiders/douban.py
4b45e119a814d2af8ea2ddcfc025c4614b8196af
[]
no_license
csrgxtu/Sauron
c572f20be7eeff1955b77f266f068611a8b0010c
43a9918342f5dc2582f13a6fc254c67fd43752dd
refs/heads/master
2021-01-10T13:16:25.129341
2015-12-07T06:02:43
2015-12-07T06:02:43
46,249,450
2
4
null
null
null
null
UTF-8
Python
false
false
12,553
py
#!/usr/local/bin/python #-*- encoding:utf-8 -*- import json, unirest from scrapy.spiders import Spider,Rule from scrapy.selector import Selector from scrapy.linkextractors import LinkExtractor as sle from collections import OrderedDict import logging from scrapy import signals from scrapy.xlib.pydispatch import dispa...
[ "tianzhaixing@126.com" ]
tianzhaixing@126.com
36e13726a5a0ff5d94d8b169c6571a4fc5a99360
958bdbddef402203fd8e24e35292b4319c28a581
/src/base.py
35fb3507203b15d436472db22bfb025657252f1b
[]
no_license
embatbr/seminario-teoria
54bced421cd16d04f929a1155f0648aa6c25cf50
4bfe4cb9ac012b93ed0bdde78f2eb90dc4141bc6
refs/heads/master
2021-01-13T02:14:25.437718
2014-12-21T03:28:01
2014-12-21T03:28:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,893
py
"""Puts the content of file "shakespeare.txt" in a better format. Creates a base of relative frequencies of letters (with space) and words. """ import re import string DATA_DIR = '../data/' def prebase(filein, fileout): """Reads from filein and writes in fileout words composed of letters only. """ lin...
[ "embatbr@gmail.com" ]
embatbr@gmail.com
6003e09f33ea5a2093645f640b28a8485047d075
09687167864ad825595875f367b192c6ece25122
/20210714 Datastructure & Algorithm/트리/Code08-01.py
0cc727c6f19e948ad73c68ad8988d676fddff2b6
[]
no_license
DaeGyeongYi/00.Basic_step
75bc0462333a35bb714dfb00e270c3fc582f907c
babebb92df42453283a5edf0f9792cd79f57e65e
refs/heads/master
2023-06-19T15:46:13.142725
2021-07-16T19:31:28
2021-07-16T19:31:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
class TreeNode(): def __init__(self): self.left = None self.data = None self.right = None node1 = TreeNode() node1.data = '화사' node2 = TreeNode() node2.data = '솔라' node1.left = node2 node3 = TreeNode() node3.data = '문별' node1.right = node3 node4 = TreeNode() node4.data = '휘인' node2.left...
[ "woo_kyo@naver.com" ]
woo_kyo@naver.com
4e3212529919c336eaa65fb17c0588a940065f09
8e1d25698853dd5bd1fe89327810afaf22aa7306
/companies/api/urls.py
d073232701aab54911a84cdb672e6d455d5c9203
[]
no_license
briancaffey/demo
3351157c7628b58347dd5d3f749429c5159c8616
118b022f9a5558c9dacc0681e8c9593c462d36a4
refs/heads/master
2020-06-26T23:14:59.745396
2017-07-16T20:23:04
2017-07-16T20:23:04
97,034,442
1
0
null
null
null
null
UTF-8
Python
false
false
170
py
from django.conf.urls import url from .views import ( CompanyListAPIView, ) urlpatterns = [ url(r'^api/$', CompanyListAPIView.as_view(), name='company_list'), ]
[ "briancaffey2010@gmail.com" ]
briancaffey2010@gmail.com
f62e734dc2e57e7a0d33cd5e18fad3c83b0280dc
d7adceef44d575e4ae9042e161b2e5cb672586ba
/rename_PATRIC.py
77231c7c759f394dfe778493e23cf6c7e4b8561b
[]
no_license
jwestrob/Script_Toybox
91a726fe7b5572b6d411ea445f0e93fa9b88d76a
e8ed4058925cf9b4504e2284c6814c4e3f49f287
refs/heads/master
2023-06-22T10:21:23.307704
2023-06-11T13:11:27
2023-06-11T13:11:27
130,753,727
1
0
null
null
null
null
UTF-8
Python
false
false
391
py
import os, sys from Bio import SeqIO file_to_rename = sys.argv[1] extension = file_to_rename.split('.')[-1] for rec in SeqIO.parse(file_to_rename, 'fasta'): new_id = '_'.join(rec.description.split('[')[1].split(' |')[0].split()).replace("/", '' ).replace( "(", '').replace(')', '') break new_filename = new_id + '....
[ "jwestrob@biotite.berkeley.edu" ]
jwestrob@biotite.berkeley.edu
2e2f462c213bf71dcaa5ad4aea836a76b57d648f
d446642c55b19d7e927703002d0d6ed6dccfc45c
/tets1.py
93ca1cfb9534c0e787953e721bd38f608401ce93
[]
no_license
vnduc/FB_reg
7c1dd4bc0cb3b48d970a73a64bb6131bc0354197
1321c99d80058c01fe243a1345becfc38927c26d
refs/heads/master
2022-12-08T10:42:34.153601
2020-08-17T13:08:22
2020-08-17T13:08:22
288,182,569
1
1
null
null
null
null
UTF-8
Python
false
false
184
py
from random import sample list1 = ["1", "2", "3", "4", "5", "6" , "7" , "8" , "9" , "0" ] tele = [] list_int = sample(list1,8) list_int_new = "".join(list_int) print(list_int_new)
[ "noreply@github.com" ]
noreply@github.com
5a193de57c62b6a86051cf57edaa3abbbcd154e7
8f28f1535250121e353360e0305bab09434d54cf
/printalllinks.py
7bb78985c2fafc23727f61bd5ec7e93a0332fbf9
[]
no_license
hdsheena/udacitywork
9da9d00e089dde3c5e8353f2fea553ce11bcaca2
3b910dc518ce00ec8e36a0bbc9fb1a1debf69413
refs/heads/master
2021-01-01T16:20:49.738441
2015-07-04T19:53:24
2015-07-04T19:53:24
10,007,293
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
def print_all_links(page): while True: url, endpos = get_next_target(page) if url: print url page = page[endpos:] # advance page to next position else: break print print_all_links('this is a <a href="http://udacity.com">link!</a> sdfsafd this is a <a href="http:/...
[ "hdsheena@gmail.com" ]
hdsheena@gmail.com
a67ef990e808a61cbd88a96d5fd1e42d2ab3f62f
d7be4faa85dfa54686f29cfbde9a69c7d60021ea
/esrally/cluster.py
78983f03c33bb25ea6a2930f6498f7b24c043c28
[ "Apache-2.0" ]
permissive
jasontedor/rally
4135e80923ac7a3dbc5a15d6dbb11a94bffd5460
02c47a2654a3bef1695b8de8aaba476e23848b09
refs/heads/master
2021-01-19T06:56:20.733774
2016-04-19T16:00:20
2016-04-19T16:00:20
56,621,348
0
0
null
2016-04-19T18:27:12
2016-04-19T18:27:11
null
UTF-8
Python
false
false
4,846
py
import socket import elasticsearch import logging from esrally import exceptions, time logger = logging.getLogger("rally.cluster") class Node: """ Represents an Elasticsearch cluster node. """ def __init__(self, process, host_name, node_name, telemetry): """ Creates a new node. ...
[ "daniel.mitterdorfer@elastic.co" ]
daniel.mitterdorfer@elastic.co
fa810c53f901adee5892cdef3330f1fb4281b7f5
5181236d06e04ed8269a4b149714ac382fddf41f
/38.AI Application/Anime-API/app/main/animegan/test.py
8b297b725d56bbe98a686233fc6c07c0b42a023f
[]
no_license
manhntm3/mle_qa
9cc6bbd968604315e82c2c9eae2b5f6d82c94ac9
d473eb31753baaafbcffd2980874d96cb2b5c8ca
refs/heads/master
2023-08-24T06:16:39.596208
2021-10-17T12:18:33
2021-10-17T12:18:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,344
py
import argparse import torch import cv2 import numpy as np import os from .model import Generator torch.backends.cudnn.enabled = False torch.backends.cudnn.benchmark = False torch.backends.cudnn.deterministic = True def load_image(image_path, x32=False): img = cv2.imread(image_path).astype(np.float32) i...
[ "manhntm3@gmail.com" ]
manhntm3@gmail.com
f6eb6eb4052624b2fdedf4152463ad46c120afc0
8043b3e1f1f890bd8e0d735a21b0a9a9d2550f03
/Python/Day6/listLab7.py
cfbbb256f2bd242a9991bec91810f57f47b39815
[]
no_license
so02e/TIL
5ff904d1833761084e2f1d31b1b4db5e7c5c9322
7ad896c849549cb13bd1f7aa154ae8e4bc1d34c8
refs/heads/master
2023-04-21T11:40:18.142005
2021-05-19T12:04:33
2021-05-19T12:04:33
325,268,425
2
1
null
null
null
null
UTF-8
Python
false
false
411
py
# 이차원 리스트 # 행 단위의 합을 구하여 다음과 같이 출력 : 1행의 합은 X입니다. a = [ [10,20,30,40,50], [5,10,15], [11,22,33,44], [9,8,7,6,5,4,3,2,13] ] print("1행의 합은 ", sum(a[0]), "입니다.") print("2행의 합은 ", sum(a[1]), "입니다.") print("3행의 합은 ", sum(a[2]), "입니다.") print("4행의 합은 ", sum(a[3]), "입니다.")
[ "noreply@github.com" ]
noreply@github.com
93029a256b3dcbea4ca295735dd63fa4aee17f03
3e3e47701ed1b5906fbd1c9e46d8d48793584a68
/Interfaz-DB/Flask/DEMOPROJECT/DEMOAPP/migrations/0003_auto_20210823_2109.py
2a101f4b1f92344c56adc24602dc1a8a50df651b
[]
no_license
lfruizr/CAP
75d9198e6bf1b6cc3ee53c1cce6470c3b21f50f0
e47036cfe5b5a813ab16ea472337f138cc7c42ff
refs/heads/main
2023-07-17T11:05:43.937972
2021-09-04T03:28:53
2021-09-04T03:28:53
402,948,782
0
0
null
null
null
null
UTF-8
Python
false
false
969
py
# Generated by Django 3.2 on 2021-08-24 02:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('DEMOAPP', '0002_auto_20210424_0152'), ] operations = [ migrations.CreateModel( name='PlacaIngresando', fields=[ ...
[ "71187345+lfruizr@users.noreply.github.com" ]
71187345+lfruizr@users.noreply.github.com
a20aca59b371f14e741d53f983bccee156955747
0acb619c27c2ff763f4640b04abd9291b571920e
/second_project/second_project/settings.py
9aa638a14fcc4de27c749b452c245d307e9165f6
[]
no_license
munish2301/Learning_Django
98d9955753758cfec21781a965b63cc0754ca244
2991ac3e5daf0c8793159349a024ac611920221b
refs/heads/master
2021-04-03T22:04:22.331928
2020-03-19T03:25:42
2020-03-19T03:25:42
248,400,169
0
0
null
null
null
null
UTF-8
Python
false
false
3,715
py
""" Django settings for second_project project. Generated by 'django-admin startproject' using Django 3.0.4. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ impor...
[ "munishkumar22595@gmail.com" ]
munishkumar22595@gmail.com
7217073a863a5529a749f5fad3a9653d1e1a3984
bb0e8697713865749363dbcb7f41c9ac7a1d4a51
/combine/pipelines/pipeline.py
d830d1259b8aa4d1457d98254e29def9b91cd3b3
[]
no_license
garawalid/Combine
675232d089c47e743ffdb6a4ba4e8b492a2ebcb7
38d758edd7284f9d7eb0e98f57605ac102910024
refs/heads/master
2020-06-17T02:25:43.764125
2019-07-10T12:00:03
2019-07-10T12:00:03
195,767,587
0
0
null
2019-07-10T12:00:04
2019-07-08T08:18:56
Python
UTF-8
Python
false
false
1,017
py
class Pipeline: def __init__(self, id, name, data_source, data_destination, responsible, table_name=None): # Abstract class of Pipeline self.id = id self.name = name self.data_source = data_source self.data_destination = data_destination self.responsible = responsibl...
[ "gwalid94@gmail.com" ]
gwalid94@gmail.com
74639eabdeca23b37b96f8b661648333360382d0
a99a5ffdf60d8b423c38ddcadb4da2598ca7b5ed
/剑指offer/斐波那契数列.py
c78683001db49cea60156b57ed7bb149548317fd
[]
no_license
seekun/offer-algorithm
e11403062aacd99aae287111f0006122a8eefd41
158034ed4e4a878ea90e731e76dede1aa8041a22
refs/heads/master
2020-04-25T03:35:51.655914
2019-03-06T12:32:07
2019-03-06T12:32:07
172,482,149
0
0
null
null
null
null
UTF-8
Python
false
false
839
py
# -*- coding:utf-8 -*- # 斐波那契数列 # 从0开始, f(0) = 0 , f(1)= 1, f(n)= f(n-1) + f(n-2) # 如果利用递归求解, 会重复计算一些子问题。递归是将一个问题划分为多个子问题求解, 动态规划也是如此, 但是动态规划会把子问题的解缓存起来, 从而避免重复求解子问题 # 考虑到第 i 项只与第 i-1和第i-2项有关, 因此只需要存储前两项的值就能求解第 i 项。 # 由于待求解的 n 小于40, 因此可以将钱40项的结果先计算 class Solution: def Fibonacci(self, n): tempArray = [0, 1]...
[ "tmsshikun@gmail.com" ]
tmsshikun@gmail.com
d1d491f8f79855abed8c338119a1e9b7dc8348b6
cc1b9cb964683f97705421f2c91f530d7fc8de22
/blog/admin.py
b3c6b8c5cc709a5b4f9ced4a68f6d4318b0cb4ad
[]
no_license
maddarauci/mysite
9499f59ae2e8ce2e1822c6f17036c1d18dae64a0
bd5878a5decca1fe8d05a4d626bb377bd7e11834
refs/heads/master
2023-03-05T14:56:21.962300
2021-02-09T08:57:08
2021-02-09T08:57:08
337,303,016
0
0
null
null
null
null
UTF-8
Python
false
false
604
py
#blog/admin.py import django.contrib.admin from .models import Post #from django.contrib.auth import admin from django_summernote.admin import SummernoteModelAdmin from .models import Post class PostAdmin(SummernoteModelAdmin): summernote_fields = ('content',) ''' class DisplayAdmin(admin.ModelAdmin): list_di...
[ "maddarauci@users.noreply.github.com" ]
maddarauci@users.noreply.github.com
a0bd51b2deecbd209d6a935c40b68585a3907dc3
78d1aaab865c9fa48220a41153e189ff723b6c54
/myspider/items.py
1eeafde40fee05c608b50e78991f561e76036404
[]
no_license
ChrisLee0211/jobbole_spider
2c71d7a85948476344ca608757f53c5750c071de
caa3060ad7b2e53e1315ce0ee5f2b1e4efadd4e9
refs/heads/master
2020-04-06T16:54:57.736012
2018-11-15T02:26:21
2018-11-15T02:26:21
157,639,148
0
0
null
null
null
null
UTF-8
Python
false
false
2,096
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy import re from scrapy.loader import ItemLoader from scrapy.loader.processors import MapCompose, Join, TakeFirst import datetime class MyspiderItem(scra...
[ "1018596741@qq.com" ]
1018596741@qq.com
2f69d581fa5de77c869fffa4cfadbf409f18cf7e
31704f8810cf13e78863d65337dc7bd57c0d2a2b
/FinalCode.py
4be4ea20e3eee7ab952fa94f2413ed5f02352495
[]
no_license
enyeartc/Capstone1-1
b01d51c3b63e7be724a14443e854ab3580f8cff0
58ec99e87f029b6eb1a9b91bca9112a11d434cc3
refs/heads/master
2020-04-01T02:53:11.797216
2018-10-12T14:22:52
2018-10-12T14:22:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,998
py
import matplotlib.pyplot as plt import plotly.plotly as py import plotly.graph_objs as go import numpy as np import pandas as pd import geopandas as gpd def prev_over_time(save_bool, plot_bool): ''' Plot prevalence of groups over time save_bool: 1 == save the plot, 0 == don't save it plot_bool: 1 == di...
[ "janestout@Janes-MacBook-Air.local" ]
janestout@Janes-MacBook-Air.local
917995ac73a5bf09f647a885d5c631b5e4545361
5f92dd1e312a22c84eb826035b859b5fbffb7f4d
/FoTStreamServer/conceptdriftOld/algorithms/cusum.py
05f8ff161141730c3fdcd0d7a37383d8942f8561
[]
no_license
BrennoMello/FoT-Simulation-SDN-ML
a5a967d31c8df99d2f77978efa36eb8ed8d09928
bfaa7439db3d3b4b2470e342c5fdbe41106ed700
refs/heads/master
2023-05-08T10:01:01.099838
2021-06-03T02:33:52
2021-06-03T02:33:52
351,583,489
0
0
null
null
null
null
UTF-8
Python
false
false
1,947
py
""" The Tornado Framework By Ali Pesaranghader University of Ottawa, Ontario, Canada E-mail: apesaran -at- uottawa -dot- ca / alipsgh -at- gmail -dot- com --- *** The Cumulative Sum (CUSUM) Method Implementation *** Paper: Page, Ewan S. "Continuous inspection schemes." Published in: Biometrika 41.1/2 (1954): 10...
[ "None" ]
None
f5d6dce4c097a2eff49e3a25f83fc8c13ef299ab
c6087972059ce3a4a811f5e2cb3417e06dd0c8d7
/Chapter 2 - variables and simple data types/Do it yourself/ulubiona_liczba.py
431d4b72445c3293de489860c392273b9f73bb93
[]
no_license
sbrylka/learning-python
6c91ebb2ad8cc06e374296c1220f30dfb5578ad1
042cd82b7516be07a52526d8b3aacec09f3418d1
refs/heads/master
2021-04-11T06:27:16.332876
2020-11-06T17:48:20
2020-11-06T17:48:20
248,999,688
0
0
null
null
null
null
UTF-8
Python
false
false
162
py
#Program opowiadający o mojej ulubionej liczbie ulubiona_liczba = 4 #oto ona Komunikat = "Moja ulubiona liczba to" print(Komunikat + " " + str(ulubiona_liczba))
[ "sbrylka96@gmail.com" ]
sbrylka96@gmail.com
4e39c4d74b0c6d03aff4d8ece1697f67389a6d68
c07eac033b881cd6bddff5449abfe6b14ff4dcf9
/pymc/examples/lda/DistributedLDA.py
708a322b353aee8277db11d1aec7875c2cca83df
[ "AFL-3.0", "LicenseRef-scancode-public-domain", "BSD-3-Clause" ]
permissive
mertterzihan/pymc
3ea1c49361da2bd9d201da4d6288d9fc072329bc
9f45837120b610c470d2500562dda069fe59ac08
refs/heads/pyspark
2020-04-08T13:51:06.007822
2014-08-22T10:26:41
2014-08-22T10:26:41
20,168,682
23
5
null
2014-09-16T19:21:02
2014-05-25T23:20:01
FORTRAN
UTF-8
Python
false
false
7,124
py
from numpy.random import randint total_topics = 10 phi_seeds = randint(1000000, size=total_topics) def model_function(data, global_param): ''' This is the function which generates the PyMC model for LDA (naively distributed) Parameters ---------- data : list of strings list of lines where each line represents ...
[ "mertterzihan@gmail.com" ]
mertterzihan@gmail.com
8ed210de7b773b2d858db28b0e98b28b8888fd8a
b2d3bd39b2de8bcc3b0f05f4800c2fabf83d3c6a
/examples/pwr_run/checkpointing/final/predict_error/job66.py
764442a07ebe3d86ebd0814af1b025e37c398848
[ "MIT" ]
permissive
boringlee24/keras_old
3bf7e3ef455dd4262e41248f13c04c071039270e
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
refs/heads/master
2021-11-21T03:03:13.656700
2021-11-11T21:57:54
2021-11-11T21:57:54
198,494,579
0
0
null
null
null
null
UTF-8
Python
false
false
7,630
py
""" #Trains a ResNet on the CIFAR10 dataset. """ from __future__ import print_function import keras from keras.layers import Dense, Conv2D, BatchNormalization, Activation from keras.layers import AveragePooling2D, Input, Flatten from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, LearningRa...
[ "baolin.li1994@gmail.com" ]
baolin.li1994@gmail.com
0a3c8dbe5801337e199918aea0ad1750be687380
224459455cda5cc97511c200ee6200038e2d415b
/meshdynamic/meshDynamic-Density.py
51cda0fd7015ab6166cc279518c001e6dcd14ae9
[ "MIT" ]
permissive
deepkashiwa20/DeepUrbanEvent
d252a659a875030c300f1ce10127dc3158e0cd97
69292578d2a2d5d47ae50f0ea2f3810f5199a1c5
refs/heads/main
2023-07-18T09:58:26.442342
2021-08-24T02:43:13
2021-08-24T02:43:13
383,077,914
1
0
null
null
null
null
UTF-8
Python
false
false
25,307
py
import csv import numpy as np import os import sys import time import jismesh.utils as ju import pandas as pd curPath = os.path.abspath(os.path.dirname(__file__)) rootPath = os.path.split(curPath)[0] sys.path.append(rootPath) from common.datastructure.Point import Point from common.datastructure.Mesh import Mesh # m...
[ "jiangrh@csis.u-tokyo.ac.jp" ]
jiangrh@csis.u-tokyo.ac.jp
28d69c649d104842a33a3b0faa6f551bdb3b6b1f
64c90b077af7feed265041c0e94cbeee4be92f01
/tools~/gen_docs.py
96f62efb1a882dda15b4f1aafa1de18cfee027cc
[ "Zlib" ]
permissive
Fopoon/Fopoon.ScenesKit
5713dd7f420a22079fd9ba57b5984836ec7ca35d
acb45bc02ea6f091f7ec36e232a3bc232f528992
refs/heads/master
2022-11-26T19:24:40.789089
2020-08-10T04:20:51
2020-08-10T04:20:51
286,259,406
0
0
null
null
null
null
UTF-8
Python
false
false
2,089
py
from json import loads from pathlib import Path from typing import Dict from scriptgen import \ StringBuilder, \ diff_text, \ interpolate_text, \ write_text_file def get_text( template: str, expressions: Dict[str, str], template_name: str = None ) -> str: sb = StringBuilder() # A...
[ "elmernocon@gmail.com" ]
elmernocon@gmail.com
2714bb62292bff5293f353b4b1affaa9982d21a1
9756a40b783cde0e4892d214e83ca13ad5c9355a
/src/core/views.py
2e6b432f298d8468f6866a5f7278c021f76740e6
[]
no_license
omisoul/fst_backend
81fa4462b99a411f31ff9aa655dc398524c3fdff
922837e4f8e9fdc54fc11f8931732a3f261807a3
refs/heads/master
2022-11-17T17:00:11.069062
2020-07-14T22:49:56
2020-07-14T22:49:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
620
py
from django.shortcuts import render from django.http import JsonResponse from rest_framework.views import APIView from rest_framework.response import Response from core.models import TestModel from core.serializers import TestModelSerializer # Create your views here. # def test_view(request): # data = {'first_na...
[ "generalms16@gmail.com" ]
generalms16@gmail.com
f082c269790521be387563f31f0067dedbab377d
1041f604a62a021b19ca703e64c6fd05a8d2207e
/task2.py
bfc026fa8fc6e6b1fcb6b6c4b3e719241f5f91a6
[]
no_license
Ridwan-AI/Cambridge-Pre-Release-Material-2021
ec7e74557f6f0ad9fc87214cc72624bc0730ec75
df777506c9e09fb6a8f4ed798f1493d5345566fd
refs/heads/master
2023-03-30T23:09:08.441199
2021-04-12T14:32:52
2021-04-12T14:32:52
352,997,952
0
0
null
null
null
null
UTF-8
Python
false
false
1,751
py
# Task 2 print ("\nGood morning\n") #Initialise structure data passenger_left_departure = (480, 480, 480, 480) passenger_left_return = (480, 480, 480, 480) totalmoney_departure = (0, 0, 0, 0) totalmoney_return = (0, 0, 0, 0) #Screen display code print ("Train times and remaining tickets along with price are shown b...
[ "ridwan@rnetworks.cf" ]
ridwan@rnetworks.cf
027b999a01bbcd37423c696d75684e32e04760d0
d37138da36ef75a8998c27a0cc0b989284f8616d
/search_CR.py
22fc3cbdfdfddb2cd2e81ff8a6c1db121506b667
[]
no_license
thomasyp/project
d5e52bb75a6e7cc35bbfa0069fa97e290d9c98ec
754a9c74a84176be3ab31c06bf5261c87a6b4c38
refs/heads/master
2021-12-26T04:12:44.793079
2021-09-09T02:36:43
2021-09-09T02:36:43
135,041,022
2
1
null
2021-09-09T02:36:44
2018-05-27T11:42:01
Python
UTF-8
Python
false
false
20,858
py
#!/home/yangpu/bin/anaconda3/bin/python # -*- coding: utf-8 -*- from compoundcalculator.compound_density import Nuclide, Element, Compound, Material from tool.handle_mcnpinp import McnpinpHandler from tool.mcnp_reader import McnpTallyReader import argparse import os import re import numpy as np from pathlib import Path...
[ "yangpu@sinap.ac.cn" ]
yangpu@sinap.ac.cn
a06633e06927cb52c9f5e436e32aa8d187f9f385
1e7a40f7a40384680f6a2f30e24274743dbb872c
/PenBlog/wsgi.py
72e9bda83aff84c9fc40b335bb5ed216e92050aa
[ "Apache-2.0" ]
permissive
quanix/PenBlog
3a48dcfece7b8a9fa1bcb33109204d870372ca64
6d017b847115bba595215d6cfc9a1ca9f84807bb
refs/heads/master
2021-01-10T19:05:17.815773
2015-08-28T09:21:53
2015-08-28T09:21:53
27,486,776
4
0
null
null
null
null
UTF-8
Python
false
false
385
py
""" WSGI config for djj project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "PenBlog.settings") from django.core.wsgi ...
[ "quanix@163.com" ]
quanix@163.com
e4d3058c5df4339858f132c3c4b40205b9024103
0967654b942c4a0d8f33fb8a1c5753de7da53166
/rcnn.py
c50abe1912b726d7fd032676d5f217dea75d087e
[ "MIT" ]
permissive
nithinrajendran/text_classification_models_tf_master
a255857d6dcb683d19874471e5f2546fb30d4881
64bfa21c0f034f4187ff89eeed5e72a1b1ddbf23
refs/heads/master
2022-11-11T19:00:17.404961
2018-10-03T17:02:18
2018-10-03T17:02:18
151,448,195
0
1
MIT
2022-11-04T03:21:17
2018-10-03T16:55:56
Python
UTF-8
Python
false
false
2,559
py
import tensorflow as tf from tensorflow.contrib import rnn class RCNN(object): def __init__(self, vocabulary_size, document_max_len, num_class): self.embedding_size = 256 self.rnn_num_hidden = 256 self.fc_num_hidden = 256 self.learning_rate = 1e-3 self.x = tf.placeholder(t...
[ "noreply@github.com" ]
noreply@github.com
037b4a377cefa4f9c913c9b919835caeb0f89ad1
65f378ce824afb65ff44a9e7634eb5e403a15250
/discussions/01-python_basics/tests/q32.py
758113e39d3b23c219799996407eb3ed034b979d
[]
no_license
ucsd-ets/dsc10-2021-sp-public
c067f00a853f12510ac3a897a40296e00b8db247
d4af09fedd51f988de8136173ba40dc0d0e19c2d
refs/heads/master
2023-05-25T04:54:36.076251
2021-06-06T23:25:31
2021-06-06T23:25:31
351,519,451
0
1
null
null
null
null
UTF-8
Python
false
false
235
py
test = { 'name': 'q32', 'points': 1, 'suites': [{'cases': [{'code': '>>> county_most_fires == "Los Angeles County"\nTrue', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
[ "nixrunner@localhost" ]
nixrunner@localhost
d21b4c860e1218b31a532415e92120f84ca61277
490fec3ee09b4699ba05ea8d152cb4089f0a1760
/old_versions/mkcov_ASD.py
422a8b31ad6a3f2734e0865e6c14b69476f46e71
[]
no_license
fdamani/GP_fourier
54971b90ed4a8bde654c68ae201b88fc5b2f9141
c717c05a872837077a9403a275b6afbd7fcc99fe
refs/heads/master
2021-08-30T07:17:14.335185
2017-12-16T17:04:56
2017-12-16T17:04:56
114,474,827
0
0
null
2017-12-16T16:30:42
2017-12-16T16:30:41
null
UTF-8
Python
false
false
716
py
def RadialBF(len,rho,nx) # % Generate ASD covariance matrix, also known as RBF or squared-exponential kernel # % # % C = mkCov_ASD(len,rho,nx) # % # % Covariance matrix parametrized as: # % C_ij = rho*exp(((i-j)^2/(2*len^2)) # % # % INPUTS: # % len - length scale of ASD kernel (determines smoothness) # % rho -...
[ "stephenlkeeley@gmail.com" ]
stephenlkeeley@gmail.com
74049eafb1a70e3e93a8436117e0d7acd79dc95c
bfe96cf3185f59169a6a15d121094ee7f8eb707d
/deep_learning_with_tensorFlow/Chapter05/p12401.py
5af66fad2c0e1ccd89fc611c070f902a09a4dc9b
[ "Apache-2.0" ]
permissive
pearpai/TensorFlow-action
ca45c22064fbad5f47957f179940b837de712efc
264099d933988532ed59eaf0f2ad495d40ede4d2
refs/heads/master
2021-01-19T10:35:03.211566
2017-04-24T09:59:05
2017-04-24T09:59:05
87,879,220
3
4
null
null
null
null
UTF-8
Python
false
false
658
py
import tensorflow as tf # 可以读取checkpoint文件中保存的所有变量 reader = tf.train.NewCheckpointReader("Saved_model/model.ckpt") # 获取所有变量列表。 这个是一个冲变量名到变量维度的字典 all_variables = reader.get_variable_to_shape_map() for variable_name in all_variables: # variable_name为变量名称,all_variables[variable_name]为变量维度 print(variable_name, a...
[ "469901870@qq.com" ]
469901870@qq.com
76583011a04470b4007449f2c51fbef24a96c354
3636c0aacdb00d61c88fda35c8c5df4bb9ad2b61
/Server/server.py
4238456366c08a1276f25a55225123f040587fec
[]
no_license
Arunkumar1999/Web_tech_project
1c6a376f0bbee672b36e696f47354418f52c56de
a44dcd1fd2769cafbb57db2d388fb869f6058b0e
refs/heads/master
2021-05-23T18:41:46.060799
2020-06-15T17:13:56
2020-06-15T17:13:56
253,420,930
0
0
null
null
null
null
UTF-8
Python
false
false
11,897
py
# import sqlite3 from flask import Flask, render_template,jsonify,request,abort,Response import requests import json from flask_cors import CORS import draw_graph import base64 import mysql.connector from mysql.connector import Error import change connection = mysql.connector.connect(host='localhost', ...
[ "48383390+Arunkumar1999@users.noreply.github.com" ]
48383390+Arunkumar1999@users.noreply.github.com
5124b6b8ae0f31df7809797678631fdaaf6b2c24
fd326562890d4f1987c384fc7c60374938231222
/PythonAdvanced/PongGame/game.py
3e9796356f4d3b20fa9b545010373e402f2496ff
[]
no_license
miro-lp/SoftUni
cc3b0ff742218c9ceaf93f05c319ccfeed5bc8a4
283d9328537919de49f7f6a301e58593bae9ca2a
refs/heads/main
2023-08-23T21:22:07.856226
2021-08-25T15:10:18
2021-08-25T15:10:18
318,134,101
2
1
null
2021-08-10T12:51:54
2020-12-03T09:03:08
Python
UTF-8
Python
false
false
2,113
py
class Game: def __init__(self): self.width = 800 self.high = 400 self.__ball_pos = (0, 0) self.__ball_delta_x = 1 self.__ball_delta_y = 1 self.paddle_a_pos = (-self.width / 2 + 50, 0) self.paddle_b_pos = (self.width / 2 - 50, 0) self.paddle_height = s...
[ "miro_lp@abv.bg" ]
miro_lp@abv.bg
123139ec57df29955a3b09425f13ccfa128f0ad3
01c8cec807463271af03c527eb5869eec3b5cbc8
/0x0A-python-inheritance/4-inherits_from.py
0dc2d56b5e59e818704855712f550cb26ff6882c
[]
no_license
Deinstein37/holbertonschool-higher_level_programming
2b2b26f419eb1a010294b71b41d73d64b67e6f05
665e6c546cec3081730417feba5a263b3f68d01b
refs/heads/master
2023-03-17T09:14:31.438191
2018-01-14T23:03:37
2018-01-14T23:03:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
#!/usr/bin/python3 ''' module: 4-inherits_from ''' def inherits_from(obj, a_class): '''function inherits_from obj: an object a_class: a class returns True if type of obj inherits from a_class, but is not class ''' return type(obj) != a_class and isinstance(obj, a_class)
[ "lmadeo76@gmail.com" ]
lmadeo76@gmail.com
1d63518936cb6c7dd07da624adee9a388b513d68
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_086/ch2_2019_08_12_14_38_49_563421.py
b972fa739df8d6f21034c9041e0194bba7ac4e1c
[]
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
84
py
def calcula_velocidade_media = (d,t) return (d/t) print(calcula_velocidade_media)
[ "you@example.com" ]
you@example.com
299979bbe9b2eb8b65b2921f4bd2f9e42a541143
a66f75ac69e3494099886b14aa8c2abad11be89c
/partition_for_transaction.py
e999312058657c109630b1521a90f401ca395b3e
[ "MIT" ]
permissive
ryokugyu/1M_Generalization
fb54b30d5a870f8d8a8c81e96d260cc66aa4f781
679ca565e7390af2f2b2d7d85400b339a32a782d
refs/heads/master
2020-09-29T18:55:56.529124
2016-11-18T07:16:05
2016-11-18T07:16:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,522
py
""" main module of partition """ #!/usr/bin/env python # coding=utf-8 import pdb from models.bucket import Bucket from itertools import combinations from utils.utility import list_to_str _DEBUG = False PARENT_LIST = {} ATT_TREES = {} LEAF_NUM = 0 ELEMENT_NUM = 0 RESULT = [] DATA = [] # compare fuction for sort tre...
[ "qiyuangong@gmail.com" ]
qiyuangong@gmail.com
93a81014fd2d0ff040a7d8cfc18746e5819cf227
f2bc287bdb21e80c16f7cd477c5068808b0e8a6e
/howdy/views.py
994fcc86eb065db2546901158621d2b282869a64
[]
no_license
michaelwoon/blog-post-site
c2f82233679f72859be9756c7da723c86a44d5c4
5e7538fc2b7a431f07c52bc3677d6a9100b1b7c8
refs/heads/master
2020-03-30T08:44:47.499904
2018-10-05T01:06:22
2018-10-05T01:06:22
151,036,294
0
0
null
null
null
null
UTF-8
Python
false
false
814
py
from django.shortcuts import render # Create your views here. from django.views.generic import TemplateView from .models import Post from django.http import HttpResponse from django.views.generic import DetailView from django.views.generic import ListView # Create your views here. class HomePageView(Templat...
[ "michael_woon17@yahoo.com" ]
michael_woon17@yahoo.com
cc7b73d9f854a55e82733530243f061b1a953b83
4bd555bc662b8182a2e7644976bfdb00ed5e1ebe
/PythonistaAppTemplate/PythonistaKit.framework/pylib/wave.py
28156a0cddf1d07e96068e0ef3c724e3e4e903a9
[]
no_license
fhelmli/homeNOWG2
a103df1ef97194dec9501dbda87ec1f7c111fb4a
e794fd87b296544542fd9dc7ac94c981c6312419
refs/heads/master
2020-04-04T13:40:20.417769
2019-01-30T21:41:04
2019-01-30T21:41:04
155,970,686
0
0
null
null
null
null
UTF-8
Python
false
false
22,852
py
#\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo ...
[ "tberk@gmx.at" ]
tberk@gmx.at
94dcf60cb414f3bbaf1ec9c048cb9ef470d5f0c7
caca669828d6d2cd4819b2411e3487c74c4dde3f
/NaDesigner_2021_v.08-07/build/testuserdir/config/nbPython/debug/nbpythondebug/jpydaemon.py.bak
a5ea6b6c54d5c777a378e4f985973779ae38e35a
[]
no_license
Hitbee-dev/NaDesigner
475552126b92c8c12ca9f0af8bf742a5f61b433c
fd6c1fc6c903168d4e42f8adf8d55b7c24c2eb69
refs/heads/master
2023-08-13T20:01:54.263905
2021-10-05T14:30:12
2021-10-05T14:30:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
61,673
bak
#! /usr/bin/env python """ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2010 Oracle and/or its affiliates. All rights reserved. * * Oracle and Java are registered trademarks of Oracle and/or its affiliates. * Other names may be trademarks of their respective owners. * * The contents of this ...
[ "jhjeong.esw@gmail.com" ]
jhjeong.esw@gmail.com
1aebfecfb7c535dfb772e03f670341e3dd8d9f6f
d9af6a6cba2fb35083f8144af047b0851b1ccab3
/scripts/combine_sets.py
a5cb44c50a055204aaaef50fcc17aa5da26226a1
[]
no_license
sunnyxxchen/tuhh-gate-resnet
ebc7c4009fc0fe3ffde14515adf15c5f5799f182
d1bddeda865e7ff81260a6037b3ead1c42e83b25
refs/heads/master
2020-06-29T23:31:27.339348
2019-08-05T14:31:42
2019-08-05T14:31:42
200,654,668
1
1
null
null
null
null
UTF-8
Python
false
false
810
py
from shutil import copyfile import numpy as np #paths = ['orig/', 'far/', 'farther/', 'nearest/'] paths = ['combined/', 'combined/noised/'] save_path = '/home/hippoc/bin/beauvoir/data/thin_distract_plus/dataset/' #nums = [48000, 6400, 8000, 8000] nums = [70400, 70400] comb_labels = open(save_path+"labels.txt", "w") ...
[ "nils.timmermann@tuhh.de" ]
nils.timmermann@tuhh.de
c6661a7e9616eed67978d13d3c3dd95ef4e35baf
7b1cb400a7c7231500e61abdf19ec3174d03fa3b
/week2/toposort/toposort.py
c3f6803611c009bceeb32c2c22a96dd48b275942
[]
no_license
limberc/Algo_Graphs
f5cd9611fee891fd3d5e67d154e608a0d9bde11a
3419752091a406ca3e81015453b6699d07b41b2d
refs/heads/master
2021-09-06T17:48:02.193657
2018-02-09T08:45:38
2018-02-09T08:45:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
845
py
#!/usr/bin/env python # -*- coding:utf-8 -*- # Copyright (c) 2017 - Limber Cheng <cheng@limberence.com> # @Author : Limber Cheng # @File : toposort.py # @Software: PyCharm import sys postorder=[] visited = [] def explore(v): visited.append(v) for w in adj[v]: if not w in visited: explore(w...
[ "chengzehua@outlook.com" ]
chengzehua@outlook.com
7c57d6860abff8a5484f84fb659be9b27b7e8034
adf3ca8f0ce8b3333d70c83118932d0e46d90182
/examples/query_condition_sparse.py
bfcfbf6fad2eda34dca7cf95093452e45ca1d9e9
[ "MIT" ]
permissive
TileDB-Inc/TileDB-Py
77ccce93e1607ce4280d57d2f715cf490aa9f0d3
223ee9939e23ecb618bd98d89dc9e874ebd47a2d
refs/heads/dev
2023-08-28T14:13:52.112262
2023-08-25T20:03:54
2023-08-26T01:19:46
91,851,641
167
35
MIT
2023-09-14T19:07:10
2017-05-19T23:06:53
Python
UTF-8
Python
false
false
3,311
py
# query_condition_sparse.py # # LICENSE # # The MIT License # # Copyright (c) 2021 TileDB, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limita...
[ "noreply@github.com" ]
noreply@github.com
d1efe9d67f223730bef933381d68ee21792604ce
52e64b9bd500a594be966c77017e3bbeea13eaea
/run_classification_items_baseline.py
665c2fd7c6d1e9b672ce79f63fdf2c9e29957249
[]
no_license
ShabdizGUni/MasterThesis
722715f603bd3bf0b1d145d8e64fa6ee1ba93267
a809828f6df84bcf4d66c408bef725716190aed9
refs/heads/master
2021-09-15T08:05:03.135373
2018-05-28T22:34:16
2018-05-28T22:34:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,798
py
from data.constants import PATCHES import Lib.Classification.DataHandling as dh import Lib.Classification.Classifiers_items as cl import Lib.Classification.common as common import sys print("Items Base started!") limit = int(sys.argv[1]) # Ashe, Ezreal, Caitlyn, Varus, Jhin champions = [22, 51, 81, 110, 202] tiers =...
[ "s_ghas02@uni-muenster.de" ]
s_ghas02@uni-muenster.de
c54d7cda8a3aed953a639a4c8a739c6ecaa5a602
9ddb3f463f1efcc4b6b25beee2dfcf1804b379cf
/accounts/migrations/0001_initial.py
b3c17d1a76035ffcbad397ac8a929b2ea305ba24
[ "BSD-3-Clause" ]
permissive
risha700/django-accounts
798173d3bc1b574bee06ba0dbe0f4aa8304a7d05
161fe35fe55c94c33812bbf3c1da7beb59a96524
refs/heads/master
2023-08-04T08:01:03.471029
2021-09-21T09:36:10
2021-09-21T09:36:10
317,861,119
0
0
null
null
null
null
UTF-8
Python
false
false
5,619
py
# Generated by Django 3.1.4 on 2020-12-01 19:17 import accounts.utils from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import phonenumber_field.modelfields cl...
[ "ahbox@outlook.com" ]
ahbox@outlook.com
d717179f481b649b48ed81755b643fe987d9aa26
68b32fde030b026e42be4a8ff8c9ea015f76d3a7
/sitepr/worldcup/migrations/0001_initial.py
3f2b0a90568eaee06559e8be121c5b4358860f16
[]
no_license
ndarriulat/worldcupapp
3b934492f0d68b1631eacb289cd750fbe35fabc0
2735d818e20c031c959c190b227529e3b1487b19
refs/heads/master
2020-03-15T04:40:22.527315
2018-05-14T00:21:23
2018-05-14T00:21:23
131,971,048
0
0
null
null
null
null
UTF-8
Python
false
false
3,367
py
# Generated by Django 2.0.4 on 2018-05-03 13:58 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Player', fields=[ ...
[ "nicolasd92@gmail.com" ]
nicolasd92@gmail.com
730b0a1040f8e4f50725192f208820e686e100fc
8af0ba5202aa891a2c325158c4c6d44a7a538ec5
/migrations/versions/a66cf42e2dfa_initial_migration.py
77992b0486e740fc8e74d2671c4ef08b25a55370
[ "MIT" ]
permissive
Queen-Uwitonze/Pitch-web-app
50695a39a84875239849c1dc172bd7e65f2bdca6
5a76fa271019ce8a0a718d372fb61c192befc406
refs/heads/master
2020-04-25T15:03:52.797482
2019-03-07T13:59:37
2019-03-07T13:59:37
172,865,147
0
0
null
null
null
null
UTF-8
Python
false
false
965
py
"""Initial Migration Revision ID: a66cf42e2dfa Revises: 4848c5a32802 Create Date: 2019-02-27 13:33:22.130949 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'a66cf42e2dfa' down_revision = '4848c5a32802' branch_labels = None depends_on = None def upgrade(): ...
[ "uwitonzeq@gmail.com" ]
uwitonzeq@gmail.com
e190f872d162e5db26094b8a89a2d964a28c88ac
05ee54ae8fe5f12e5af1e297331d5e15aa7c789d
/Utils/FilesUtils.py
4593fcef1ddcc74d84d3b0f8f645a90cccb817ca
[ "MIT" ]
permissive
spanoselias/RealTimeReplicationTool
1b205fb53211596f58362da7e301ddde28861f44
8fdc968e4fdf82992b704e1c7422f3a5591798eb
refs/heads/master
2020-04-07T05:50:29.036666
2019-02-11T21:10:13
2019-02-11T21:10:13
158,112,615
0
0
null
null
null
null
UTF-8
Python
false
false
766
py
import shutil import json def zipFiles(sourcePath, destPath, currentTimestap): finalSourcePath = str(sourcePath) + '_' + str(currentTimestap).replace(':', '_') shutil.make_archive(finalSourcePath, 'zip', str(destPath)) return def unzipFiles(sourcePath, destPath): shutil.unpack_archive(str(sourcePat...
[ "spanoselias@outlook.com" ]
spanoselias@outlook.com
3ebabab1cc0ec29075386911102d4c4d892eed04
16ba38ef11b82e93d3b581bbff2c21e099e014c4
/haohaninfo/即時範例/61.py
6e90415a943dd91a9a3bc4319e97582c7b9dabb8
[]
no_license
penguinwang96825/Auto-Trading
cb7a5addfec71f611bdd82534b90e5219d0602dd
a031a921dbc036681c5054f2c035f94499b95d2e
refs/heads/master
2022-12-24T21:25:34.835436
2020-09-22T09:59:56
2020-09-22T09:59:56
292,052,986
2
5
null
null
null
null
UTF-8
Python
false
false
657
py
# -*- coding: UTF-8 -*- #取得報價資訊,詳情請查看技巧51 execfile('function.py') #取得上下五檔價量資訊 for i in getUpDn5(): UpDn5Info=i.split(',') UpDn5Time=UpDn5Info[0] totalUpPrice=0 totalUpQty=0 totalDnPrice=0 totalDnQty=0 #開始進行上下五檔加權平均值 for j in range(0,5): totalDnPrice+=int(UpDn5Info[1+2*j])*int(UpDn5Info[2...
[ "penguinwang@smail.nchu.edu.tw" ]
penguinwang@smail.nchu.edu.tw
85cee0f893635d531b95b5d312f8e209a6f535dc
fefb1e9b0b736da4e49d7754f8d1dbaf37f2fa6a
/.history/7_3_2_20210208211227.py
2021ca036ff147a699a385552cc614517dc2ef19
[]
no_license
wh-debug/python
5a78a2227874ebc400d075197de0adab9f55d187
1467eeda670f170e6e2d7c0a0550f713f1ee9d75
refs/heads/master
2023-03-12T22:08:12.608882
2021-02-17T09:49:52
2021-02-17T09:49:52
334,032,494
0
0
null
null
null
null
UTF-8
Python
false
false
1,191
py
''' Author: your name Date: 2021-02-08 21:11:05 LastEditTime: 2021-02-08 21:12:27 LastEditors: Please set LastEditors Description: In User Settings Edit FilePath: \python\7_3_2.py ''' ''' _oo0oo_ o8888888o 88" . "88 (| -_- |) ...
[ "1813763848@qq.com" ]
1813763848@qq.com