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
213 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
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
6af8977c2b1e73ffa5af4c350cdb9502a5c999c4
98cf41377e195a721b149a025ef91320c0ef7b88
/snippets/migrations/0001_initial.py
6486bd40517221ced0d93e030d7a4da4c648f093
[]
no_license
Rokin1/api_tutorial
50d61ae8cb965e11b52c07a8d53e3c1b3a9c065d
d5e231d763c1a1558b67fb142a9faf117aab436e
refs/heads/master
2023-06-13T05:36:40.006379
2021-07-01T12:02:56
2021-07-01T12:02:56
382,018,300
0
0
null
null
null
null
UTF-8
Python
false
false
938
py
# Generated by Django 3.2.4 on 2021-06-28 22:05 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Snippet', fields=[ ('id', models.BigAutoFie...
[ "casselled@yahoo.com" ]
casselled@yahoo.com
cca5c51733d6ca993705e645a989644358f8fd2a
6a3b128e875d9651d82580693f95d3c5931556a9
/CNN_models/train3.py
ab813b2dc957214db4b91d52dbb8bccae2e6eacc
[]
no_license
akshayg056/Empass_Emotion_Video
5469102357f755969b0602ac01056918a44baffb
bfdbef70d6d106ab763d9888385f2fdf9ed05353
refs/heads/master
2020-05-04T23:53:01.726081
2019-05-14T19:27:40
2019-05-14T19:27:40
179,558,278
0
0
null
null
null
null
UTF-8
Python
false
false
3,929
py
import numpy as np import keras from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPooling2D,Convolution2D,ZeroPadding2D,BatchNormalization from keras import backend as K from keras.preprocessing import image from keras.applications.m...
[ "noreply@github.com" ]
akshayg056.noreply@github.com
5a1b36e45a7a634f8372895574c63ff61a13cc53
8a10ac7e5719e91f43dbfb4cc9384b82aae1b891
/honcho/tasks/weather.py
3886cab165a7024c549bb0af51faab3b01a3f7e9
[]
no_license
wallinb/amigos3
4984abb65d1373345dc14117c693a1f0e500b065
e14a94f7ba23657e519ba858fa85b1538e638505
refs/heads/master
2021-10-21T09:13:47.258538
2021-10-15T22:54:52
2021-10-15T22:54:52
191,256,566
0
2
null
2021-07-27T02:21:59
2019-06-10T22:53:57
Python
UTF-8
Python
false
false
4,729
py
import re from collections import namedtuple from contextlib import closing from datetime import datetime from logging import getLogger from time import time from serial import Serial import honcho.core.data as data from honcho.config import (DATA_TAGS, GPIO, TIMESTAMP_FMT, WXT_BAUD, WXT_PORT, ...
[ "bruce.wallin@nsidc.org" ]
bruce.wallin@nsidc.org
a8ee75b513d0a8bea3478ab3b83b92f1085ef5a6
85462df28c512100858b15b98190a5e8712a41d2
/env/bin/easy_install
573be730858fc3781720e110c85349b6da44e724
[ "BSD-2-Clause" ]
permissive
adboy316/bynder_unsplash_task
e3ff2dcfcc290cce9bbd42145f945a7e1d0830ad
08fdb923c823c110e953add3cb1a2bc56926f5ad
refs/heads/master
2020-07-04T18:45:17.958237
2019-08-14T15:38:03
2019-08-14T15:38:03
202,379,022
0
0
null
null
null
null
UTF-8
Python
false
false
276
#!/Users/arieldelgado/Desktop/unsplash_bynder/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "adboy316@yahoo.com" ]
adboy316@yahoo.com
546e940aa043ed0cd00aac18668d4579cc5fa46b
6cb56dda8534844791c0efd81f14f193cafa5c29
/apps/employers/migrations/0011_listing_charge_id.py
99a90fefaeddcf78dadd6839c14136b6c961187a
[]
no_license
KristoD/JobScout
7ba97b073d64053948182c8a61a82c530d52d1a0
817b255a642e86ff93990213fdecef584c0dda41
refs/heads/master
2021-01-24T16:26:13.555450
2018-08-13T10:58:00
2018-08-13T10:58:00
123,190,298
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2018-03-01 01:58 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('employers', '0010_auto_20180228_0624'), ] operations = [ migrations.AddField(...
[ "chrisdedeian@gmail.com" ]
chrisdedeian@gmail.com
a15643e59225b148d20c4da1d1959c67b1701020
f4658fa85ff0d90fcda3297f3cc54d1bfb5c1fc2
/pattoo/post.py
f033ffe32bfb5e64ea1d507e243eeb955c4aa278
[ "Apache-2.0" ]
permissive
palisadoes/pattoo-os
a3a00744f14d0b86a507819fb493d69d8daeb26b
cccf0ddb50a8bb971c0c527b4ea5ef96c6819fac
refs/heads/master
2022-02-24T15:02:25.962388
2019-10-07T04:17:24
2019-10-07T04:17:24
213,039,355
0
0
Apache-2.0
2019-10-05T17:12:07
2019-10-05T17:12:07
null
UTF-8
Python
false
false
5,500
py
#!/usr/bin/env python3 """Pattoo Agent class. Description: This script: 1) Processes a variety of information from agents 2) Posts the data using HTTP to a server listed in the configuration file """ # Standard libraries import os import socket import json from collections import defau...
[ "blackriver@simiya.com" ]
blackriver@simiya.com
d7e179f6b91e6c3f2e74f659376f96638fbc3564
574eadde8091c12fb0bb0189d77cb23102321a88
/Chapter 3/abcdCallStack.py
d3bae82b5c77b9d39d436140e9edbeaf134311f0
[]
no_license
kmanago/AutomateTheBoringStuff
ae7c3fe14bbd95ef03693566b5a7bdb558e1e6f9
94b71d4778f0e246f63762ceed0b7389ca0b40cb
refs/heads/master
2020-06-05T08:45:36.815486
2020-05-19T19:00:11
2020-05-19T19:00:11
192,381,228
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
def a(): print('a() starts') b() d() print('a() returns') def b(): print('b() starts') c() print('b() returns') def c(): print('c() starts') print('c() returns') def d(): print('d() starts') print('d() returns') a()
[ "martaisa.manago@alithya.com" ]
martaisa.manago@alithya.com
e0f904c27fe02a117392aafbc7b49302eb66c8b4
2ee57961747f70474cd67a275b8440af2370e11f
/16.py
caf30ff3fc6e658f1740f1f099c770ab716ec65a
[]
no_license
usha-developer/seleniumtestingpractice
5b1fd0eb14469895be0ce1a2159c01429adf6b57
1d06c365370a757ec8f56da7b164b2c022390a74
refs/heads/main
2023-06-22T18:08:49.820354
2021-07-27T10:51:17
2021-07-27T10:51:17
389,946,329
0
0
null
null
null
null
UTF-8
Python
false
false
1,010
py
from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.options import Options #chromeOptions=Options() #chromeOptions.add_experimental_option("prefs",{"download.default_directory": "C:\Downloadedfiles"}) driver=we...
[ "noreply@github.com" ]
usha-developer.noreply@github.com
877758f85ad31b3384a6c75d08e3a516dc9c78e0
24c19c0317e1767f0b1ccb9e6c6e3e229624d877
/test/webdnn_test/graph_test/operators_test/concat_test.py
0d309686bccc9134aa912e0951fdb7bd27feb30d
[ "Zlib", "MIT" ]
permissive
dolaameng/webdnn
6742fc556957845ea0faedd599359da251873f1e
c56154709a95706a68343555f926222e1fc0516a
refs/heads/master
2021-01-24T07:32:32.452789
2017-06-04T03:11:07
2017-06-04T03:11:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,633
py
import itertools from typing import Type import numpy as np from nose.tools import raises from webdnn.graph.axis import Axis from webdnn.graph.operators.concat import Concat from webdnn.graph.order import Order, OrderC, OrderNC, OrderCN, OrderNHWC, OrderHWNC, OrderHWCN, OrderCNHW, \ OrderCHWN, OrderNCHW from webd...
[ "y.kikura@gmail.com" ]
y.kikura@gmail.com
c206acf5923a912bf8e43b30901c1781e630b082
f1e2e511dcd1b23f5633bd56d7d52b61f0ba8f9b
/Python/Lecture9/9-0.py
65f6029203b3a16558947cb56db32b6e52b7ff31
[]
no_license
hamin7/ITE3035_Python
6a9bd7854fcaba2e5381f07dc2a76d4d80abf0d1
49d582b6772456bfa03f10500299063de26e8d98
refs/heads/master
2021-06-25T10:05:46.827177
2020-12-28T13:36:15
2020-12-28T13:36:15
188,181,758
0
0
null
null
null
null
UTF-8
Python
false
false
1,070
py
import random import time chance = random.randint(1,2) print(''' ----------인생역전프로그램---------- 축하합니다. 당신은 인생역전 프로그램에서 최후의 1인이 되어 마지막 선택을 해야합니다. 당신 앞에는 천사카드와 악마카드가 뒤집어져 있습니다. 천사카드를 고르면 상금 10억원을 타게 될 것이고 악마카드를 고르면 모든것을 잃고 빈손으로 돌아가게 됩니다. ''') ans = 'yes' while ans != 'no': choice = int(input('어떤 카드를 고르실까요? 1,2')) ...
[ "ggamini7@gmail.com" ]
ggamini7@gmail.com
69e45ca1b5115c546bb8ab6ec2b5ec62ba9dd980
aabdb61eeea7b93076017f264b214161231ff3a5
/polls/models.py
a8a4c8474c0ce0d0a24477bba8a6755a26c14dfa
[]
no_license
scottbenton/django-getting-started
644c07b33bf9dc3304a0c55b535d5ade4ac67273
d25a34e0edd2d54d505f2f877197d3cb3bbe1ace
refs/heads/master
2023-03-24T07:14:55.211998
2021-03-21T03:27:46
2021-03-21T03:27:46
349,597,932
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
import datetime from django.db import models from django.utils import timezone # Create your models here. class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def was_published_recently(self): return self.pub_date >= (t...
[ "scott@scottbenton.dev" ]
scott@scottbenton.dev
57ddc7252c0f15fd814ffcf0c64541feb898d1de
a46116d41839b4aa9d0eac6154f67fd9a50142e9
/387-First_Unique_Character_in_a_String.py
0b20136094c8d8762aa94f96fc45c3ff49d853d1
[]
no_license
weichuntsai0217/leetcode
85a600385d0d9a5d6d35788b0fccfd325b3e9157
f2ea7165d40b392b8f8892ba7152438001900a4d
refs/heads/master
2020-04-17T23:53:14.151694
2016-10-19T09:04:10
2016-10-19T09:04:10
66,351,875
0
0
null
null
null
null
UTF-8
Python
false
false
453
py
class Solution(object): def firstUniqChar(self, s): """ :type s: str :rtype: int """ freq = {} for i, c in enumerate(s): if c not in freq: freq[c] = [i, 1] else: freq[c][1] += 1 first = len(s) for...
[ "jimmy_tsai@trend.com.tw" ]
jimmy_tsai@trend.com.tw
17709bfd1c3d21385da4ef5150b7684988173639
38dd9951c21efc2a60a60a076f5e9a2c4a5cd423
/fantasm/state.py
8660dd4abfaa9e7d88895ad52cf82016b6a63998
[]
no_license
awolf/Foojal
9a6886a3a2294e6cf566b67b37d71ee398f442e0
0227b9621c7b0d5103ee483cebd2f9e5275dbd0f
refs/heads/master
2020-05-31T13:55:45.358657
2011-10-15T16:04:38
2011-10-15T16:04:38
2,582,406
1
0
null
null
null
null
UTF-8
Python
false
false
9,069
py
""" Fantasm: A taskqueue-based Finite State Machine for App Engine Python Docs and examples: http://code.google.com/p/fantasm/ Copyright 2010 VendAsta Technologies Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may ob...
[ "adam.wolf@bluecognition.com" ]
adam.wolf@bluecognition.com
43a9a9c0d9b65b4a0aad5d154adebfbe78b142f0
9fd9a5cf4c945af1baffb4f42521a962890ce165
/dele.py
a94090117c4904a2f668417f96b1e98b1a92af44
[]
no_license
UjjwalDash/Quiz_app
332053175265eb5677a15969e0c9e945ac0bc91c
9a27527c17d4227e0744f5b1f09adb6186066b1f
refs/heads/main
2023-06-24T04:43:08.730752
2021-07-24T06:26:12
2021-07-24T06:26:12
389,015,053
1
0
null
null
null
null
UTF-8
Python
false
false
1,984
py
from tkinter import * import sqlite3 import tkinter.messagebox mem1=Tk() mem1.title('Quiz') mem1.maxsize(1000,300) mem1.configure(bg='Powder Blue') member=Frame(mem1,bg='Powder Blue',bd=5) member.pack(side=TOP) btnfra=Frame(mem1,bg='Powder Blue',bd=5) btnfra.pack(side=BOTTOM) mno=StringVar() def reset(): ...
[ "noreply@github.com" ]
UjjwalDash.noreply@github.com
6b20acbcf552ec7d07c9b06d8609f99fa16c7ac1
343bdaddfc66c6316e2cee490e9cedf150e3a5b7
/0001_0100/0045/0045.py
20c9548c49061dd274fa02cae02fc43c06c24438
[]
no_license
dm-alexi/acmp
af7f6b4484b78f5922f3b464406a0ba5dea0d738
3fa0016d132adfeab7937b3e8c9687a34642c93a
refs/heads/master
2021-07-09T15:14:25.857086
2020-10-20T19:08:54
2020-10-20T19:08:54
201,908,038
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
with open("input.txt", "r") as f, open("output.txt", "w") as q: n = int(f.read()) s = "1" if n else "10" if n > 1: a = [0] * 10 for i in range(9, 1, -1): while n % i == 0: n //= i a[i] += 1 s = "".join((str(i) * a[i]) for i in range(2, 10))...
[ "dm2.alexi@gmail.com" ]
dm2.alexi@gmail.com
743a6e1ca84db32348dd91efedde31759a3ada4a
0e4860fecfdd34a3255003cc8c8df086c14083dd
/python/source_code/AutomatePython/13-pdf-word/addContentToDocx.py
e226f5539fac401c7112e21e3072b634221c2153
[]
no_license
anzhihe/learning
503ab9a58f280227011da5eaa4b14b46c678e6f3
66f7f801e1395207778484e1543ea26309d4b354
refs/heads/master
2023-08-08T11:42:11.983677
2023-07-29T09:19:47
2023-07-29T09:19:47
188,768,643
1,443
617
null
2023-08-24T02:10:34
2019-05-27T04:04:10
Python
UTF-8
Python
false
false
302
py
import docx doc = docx.Document() doc.add_paragraph('Hello world!') paraObj1 = doc.add_paragraph('This is a second paragraph.') paraObj2 = doc.add_paragraph('This is a yet another paragraph.') paraObj1.add_run(' This text is being added to the second paragraph.') doc.save('multipleParagraphs.docx')
[ "anzhihe1218@gmail.com" ]
anzhihe1218@gmail.com
18338717c675007d1f1c14af64e1a6bdf17381ab
c069fd1d580ab986c976bf0fe1509bac6338440e
/venv/Scripts/django-admin.py
0d65b5a4ceba6c2b091549191470943f923bcf89
[]
no_license
adamsagas/PythonReq2
01b7f653e13b2b59e8acf8770ab30b797f88ef83
b2790878658e369c1dc40a135605fcbbb4d84085
refs/heads/master
2023-06-02T11:26:37.880719
2021-06-23T13:37:24
2021-06-23T13:37:24
379,613,372
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
#!C:\Users\AdamSagas_jxgmrac\PycharmProjects\Git\PythonReq2\venv\Scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "78692714+adamsagas@users.noreply.github.com" ]
78692714+adamsagas@users.noreply.github.com
82fa358282ffc2c663186533546e78ee84f2c20d
c938453d1772d3d8c24a2169dd3aba1862a4d925
/config/urls.py
00fd1693683027995fde720c5de887b65056069c
[ "MIT" ]
permissive
dcopm999/sibdev
ab13d880cb91c84a96107345939dd7184a1aa267
9dc01ed5d172869d4870c847f01d168602f31be8
refs/heads/master
2022-11-17T10:59:23.412299
2020-07-20T12:52:42
2020-07-20T12:52:42
279,256,258
0
0
MIT
2020-07-20T12:39:28
2020-07-13T09:23:34
Python
UTF-8
Python
false
false
2,101
py
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.urls import include, path from django.views import defaults as default_views from django.views.generic import TemplateView from res...
[ "dcopm999@gmail.com" ]
dcopm999@gmail.com
b4e044fe4e30acb0804ab1dc73629fab8472c4cf
a0d2b0dc48b8d97f5b0a08aab8e4abd07a4ea759
/markov-data-boti.py
3798d299debd5b13923fbf9f25b1e4909b53e3d3
[ "MIT" ]
permissive
saefsten/supermarket
12fc6a16c6ee967a11efec5f9c60796a74a2f18a
9c324bf78dd1f16acae0da733b2ecb5a7e3b54c5
refs/heads/main
2023-01-12T06:09:24.096172
2020-11-20T17:11:25
2020-11-20T17:11:25
313,380,853
0
1
null
null
null
null
UTF-8
Python
false
false
2,574
py
#!/usr/bin/env python # coding: utf-8 """ Project Markov - @author: boti """ # Import pandas etc import pandas as pd import numpy as np import matplotlib.pyplot as plt import os def plotsections(df,dayofweek): totalcustomers = df['customer_no'].nunique() print(totalcustomers) print (f'Total number o...
[ "x@vitos.tv" ]
x@vitos.tv
c77fd258ec69e67562ba66cf3d8d9e89497f10d5
06fef9d2d307cca6d5143990d3032c2f566654b2
/checkpoint_log_parser.py
afdbc44171c7c8ce8d36819bb9a4f22ae7cef92a
[]
no_license
aditya-wate/checkpoint_log_parser
f9a5052cc198bcf2400dbd95df2151c7977f184f
9eccf1e0be7b87829b141493660bb373b5e86930
refs/heads/master
2020-04-06T04:55:32.478223
2017-03-21T16:37:51
2017-03-21T16:37:51
71,390,283
1
0
null
null
null
null
UTF-8
Python
false
false
704
py
import re log_file = "C:\Users\\awate\Documents\Miscellaneous\server.log" #log_file = "one_line_cp.log" log_list = list() def extract_fields_to_dict(): with open(log_file) as ol: for line in ol: try: rx = \ r"([A-Za-z0-9_:;. ]*)(>eth[0-9]{1,2} )([A-Za-z0-9_:;.{}...
[ "awate@C02T40WXG8WL.local" ]
awate@C02T40WXG8WL.local
b72973b13e4ff60b549ba28635d34749e129df63
fe8c94060b208d686ebb987fbc37c4d175c5c047
/peco.py
00e0d631726c76a99a175656d8c09ff5d6849e0a
[]
no_license
hachibeeDI/peco-chrome
aa2cbf42014a8c4536f9620a08aad8c93cfeb6d4
fc48238fa28af9d0110f59fa1030a89ed24567a5
refs/heads/master
2021-01-10T11:06:06.019871
2015-06-02T08:47:51
2015-06-02T08:47:51
36,720,315
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
# -*- coding: utf-8 -*- from __future__ import (print_function, division, absolute_import, unicode_literals, ) from subprocess import Popen, PIPE, STDOUT class Peco(object): def filter(self, source): peco_filterd = Popen(["peco", '--query', '"$LBUFFER"'], stdin=PIPE, stdout=PIPE, stderr=STDOUT, shell=Tru...
[ "8hachibee125@gmail.com" ]
8hachibee125@gmail.com
a28a4cb0c2674b62b154309a34f9e712e93ccdb1
f754b014aa2af7487f09040d0208a6080719088e
/3.18可视化/pandas绘图.py
7b7985b04b9a7900d77efc637539c08a44c1d6fd
[]
no_license
aallenchen2018/2019.3.20shujufenxi
09f39e0dbd20225f537d001981cc380a923d5d57
d4cccfb4784598d101f80ceb6b5cd2f147c0c4b2
refs/heads/master
2020-04-30T06:38:11.289204
2019-03-24T04:08:14
2019-03-24T04:08:14
176,657,675
0
0
null
null
null
null
UTF-8
Python
false
false
1,030
py
import numpy as np import pandas as pd import matplotlib.pyplot as plt plt.rcParams['font.sans-serif'] = ['SimHei'] plt.rcParams['axes.unicode_minus'] = False data=pd.DataFrame(100*np.abs(np.random.rand(4,4)),index=['one','two','three','four'],columns=['HW','ZTE','ESSS','NOKIA']) ####线状图 data.plot(kind='line',...
[ "346782257@.com" ]
346782257@.com
2019198f76ce1c4e2f551f82364ead186b64aa98
0008bf21bfd8600668a263a2c68542d4ac476e1f
/pong-game/main.py
8988419ade33b399c7a849146fdcc17eee59110f
[]
no_license
gabbar23/python-intermediate-projects_
9ff0086c4f5f99d8d597dd82c3d22511d0a12d8c
aecc5d4bca93ba80d0a401b2e4974ae0456e299a
refs/heads/master
2023-05-10T05:40:47.050701
2021-06-09T12:47:32
2021-06-09T12:47:32
368,608,011
1
0
null
null
null
null
UTF-8
Python
false
false
1,069
py
from turtle import Turtle, Screen from paddle import Paddle from ball import Ball from score import Scoreboard import time START_CORD1 = ((-340, 0), (-340, 20), (-340, 40)) START_CORD2 = ((340, 0), (340, 20), (340, 40)) ball = Ball() score_l=Scoreboard((-50,220)) score_r=Scoreboard((50,220)) screen = Screen() screen...
[ "amansaini842@gmail.com" ]
amansaini842@gmail.com
514105a53d73bf3577e4eb05e8072badc6037bc8
fb3bfc4ad9cef735a0a78f64c100796cb3280dab
/day19.py
645bb2407a89c2b21ed9e9a15530c0093e7d0878
[]
no_license
morteako/advent-of-code
c50904f294922ff5872bc07db997c3092e3edd6b
ece7de49c4e903ba0049bc259cf26f3725c395a7
refs/heads/master
2020-06-15T19:07:54.928476
2017-11-05T17:28:12
2017-11-05T17:28:12
75,269,420
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
import numpy as np num = 5 # num = 3005290 elves = [[1,"nr"+str(x+1)] for x in range(num)] length = num i = 0 while len(elves) > 1: print(len(elves)) mod = i % len(elves) mod1 = (i+1) % len(elves) # print(123) # if elves[mod][0] == 0: print(i,elves,mod,mod1,elves[mod]) ...
[ "Morten Aske Kolstad" ]
Morten Aske Kolstad
a012a1945078592972a0b0eb86bd73c2f1c91307
817447bfc083893542a98024e546a23d828c23b2
/main.py
ceb0e3209e0647804c310bc14285ec801f5d1255
[]
no_license
Woofka/tgbot-remote-helper-daemon
53bc94361d601cafdec8500af98d8fa197801f80
0c6ba76ab3f95da45c24275d2a2981096986e379
refs/heads/master
2022-11-30T22:09:08.525015
2020-08-01T21:52:10
2020-08-01T21:52:10
282,190,058
0
0
null
null
null
null
UTF-8
Python
false
false
1,923
py
import subprocess import re import socket import logging import os import datetime from logger import setup_logger from protocol import Protocol setup_logger() log = logging.getLogger('logger') RU = { 'encoding': 'cp866', 'startup_time': 'Время загрузки системы', 'mac': r'.{0,}Физический адрес.{0,}', ...
[ "v.d.sobolev@ya.ru" ]
v.d.sobolev@ya.ru
f237237b67de61db0dbd706d30d17fdb4a1b2095
6923f7ea47f0e59c44dfb7ca908352009712d8a6
/ch09/ch09_01/store/store_01.py
2ce3967c6ecda53a6b4c021f201c3efd1d42452e
[ "MIT" ]
permissive
AngelLiang/the-hackers-guide-to-python-3rd-edition
489ed40bad8c8ba3b9bfc9b85ab9962beaf2436c
4e06c8d58e0d18fff612762e2c57a5050d22cc96
refs/heads/master
2021-07-08T07:20:09.387450
2019-12-28T07:10:48
2019-12-28T07:10:48
230,555,454
0
0
MIT
2021-03-20T02:53:08
2019-12-28T03:58:12
Python
UTF-8
Python
false
false
516
py
""" 考虑这样一组方法,它们在被调用时检查“用户名”参数 """ class Store(object): def __init__(self): self.storage = {} def get_food(self, username, food): if username != 'admin': raise Exception('This user is not allowed to get food') return self.storage.get(food) def put_food(self, username,...
[ "pl01665077@163.com" ]
pl01665077@163.com
a780996a48a3597eac28adbdf55912a7bac858d6
f61e1a78a630dab7f6ec0bfc67e596c843c4517b
/03_functions_as_objects/03_function_decorators_and_closures/06_using_nonlocal_variables_to_calculate_a_running_average.py
27bd6b3def8a7473d73912b27c2592c0b41fa3e7
[]
no_license
xwzliang/fluent_python
0e8879997dca36a19da1127de6d35ad5cf901151
9477b544309616f43de4da65e103428f8f8512a6
refs/heads/master
2021-08-06T15:27:15.896536
2020-06-03T05:46:44
2020-06-03T05:46:44
183,656,945
0
0
null
null
null
null
UTF-8
Python
false
false
2,172
py
# Our previous implementation of make_averager was not efficient. We stored all the values in the historical series and computed their sum every time averager was called. A better implementation would just store the total and the number of items so far, and compute the mean from these two numbers. def make_average_br...
[ "18706703437@163.com" ]
18706703437@163.com
ca22028c3a9cf36604959663a52a6adf5c7b1067
b3ab259a24aec7aa0f1f11ec70bf6e33ea094724
/airflow_ml_dags/tests/conftest.py
8ed2ba77d81e5de4cfc651765423227064c7bec9
[]
no_license
made-ml-in-prod-2021/opl242-test
56ac054ae43c3f0d496363783b87ffa76f46fecf
7e7116ca27b980dcf57caade4a99e94075cbf9fb
refs/heads/main
2023-06-08T22:00:02.151094
2021-06-25T09:46:04
2021-06-25T09:46:04
353,401,501
0
0
null
2021-06-25T09:46:05
2021-03-31T15:20:31
Jupyter Notebook
UTF-8
Python
false
false
146
py
import pytest from airflow.models import DagBag @pytest.fixture() def dag_bag(): return DagBag(dag_folder="../dags", include_examples=False)
[ "alexey.opolchenov@hpe.com" ]
alexey.opolchenov@hpe.com
bb2ccaef367f272790672ad675bf028e70f72b1a
6a7ff23548f88f079411fb99192bfa26e5b085da
/src/linear_regression.py
83b8944a0ad280493220e47428ccfb47384819d3
[]
no_license
AlexMontgomerie/ML
c399fc12e3b7c304c3939173fa8b1ff5121f586d
84406a35f60379a6346755f6cca34ac2def5ca08
refs/heads/master
2021-01-25T12:42:40.750142
2018-03-23T00:09:24
2018-03-23T00:09:24
123,496,831
1
0
null
2018-03-23T00:09:24
2018-03-01T21:54:26
Python
UTF-8
Python
false
false
9,851
py
from matplotlib import pyplot as plt from sklearn import linear_model from sklearn.metrics import accuracy_score import numpy as np import seaborn as sns from sklearn.svm import SVR from sklearn.model_selection import KFold from sklearn.metrics import mean_absolute_error np.random.seed(0) NUM_FEATURE = 12 def get_da...
[ "AlexMontgomerie@github.com" ]
AlexMontgomerie@github.com
d349920afeff629eaa5fa25892e2b4a8db4469c3
db0f2cd9a6eda7bfe05141e707936765a12fc342
/Backend/FuzzingManager.py
c19ff0e33d1db739cb9b18f62324c421da2d3485
[]
no_license
nhrade/software-2-cerberus5
b96b063406588595f94b52104e0d1e5a768846ef
d2fe157b695e5d4514263f990cbd87397914e493
refs/heads/master
2020-04-27T10:13:19.845541
2019-05-17T15:41:28
2019-05-17T15:41:28
174,244,955
0
0
null
null
null
null
UTF-8
Python
false
false
691
py
from PacketModifier import * from Fuzzer import * from scapy.all import * import sys import afl ''' FuzzingManager.py Manages the fuzzing of packets and is external interface to other subsystems ''' class FuzzingManager: def __init__(self): self.packetModifier = PacketModifier() self.fuzzer = Fuzz...
[ "noahh717@gmail.com" ]
noahh717@gmail.com
12efc0252584a8df85b0a963bb3f768250a40eaf
0e69b74bf7a7eee0937a2a8f199ce1538e4e72b4
/__init__.py
e59b4b940c9ae8eef2e0ae07f9bdfb25adbe78ae
[ "MIT" ]
permissive
Zhou-chengy/Pyai
5a99059c704a36f5f8761aed6a3a993d947c2e08
152aab5ed2b0d87357d5756bfda6c48b310fbbab
refs/heads/main
2022-12-22T12:30:06.907229
2020-10-03T07:51:02
2020-10-03T07:51:02
300,823,917
0
0
null
null
null
null
UTF-8
Python
false
false
1,608
py
__version__ = '1.0.1' class robot(object): def myrobot(self): print('你好,请问需要什么帮助?') ji = input() if ji=='你好': print('你好') if ji=='你的名字叫什么': print('我的名字叫Robin') if ji=='你会说中文吗': print('我当然会啊!') if ji=='你会Pyhon吗?': print('我想做一条蟒蛇,把你紧紧缠住,一辈子') if...
[ "noreply@github.com" ]
Zhou-chengy.noreply@github.com
6d4da2ccd59c101b899a3bbe4bc058c17268285a
a0aa4fe19b6723bd81da4d96739462dd4d5aa4ec
/thebreeze_app/apps.py
7d4fb58f7a750f316241f2239bb4aad863e2c152
[]
no_license
PickleEric/thebreeze
c44c45b7a51db160d0b7e5f5468fa0ec3f7eff6a
83cc40a014a88c1b11ec695cdd935630385db34c
refs/heads/master
2023-05-29T16:18:52.872082
2021-06-23T04:08:26
2021-06-23T04:08:26
371,221,655
0
0
null
2021-06-23T04:08:27
2021-05-27T02:19:07
Python
UTF-8
Python
false
false
100
py
from django.apps import AppConfig class ThebreezeAppConfig(AppConfig): name = 'thebreeze_app'
[ "60155510+PickleEric@users.noreply.github.com" ]
60155510+PickleEric@users.noreply.github.com
8932559676ce4581eaab77f86fe87fe17d5d9f15
af688fedfc22824e29ecb61aff6d9cf786c26db1
/fluidics/valves/tc_commands.py
45c9a9eeb6978ddc4fb9547e32f7252119e8b782
[]
no_license
keyuxi/fluidics-control
f8ee6be456a0b7493004f9567e37987a95f42edf
ff7df176a788e08a7f61ece0e252f1c760f51fae
refs/heads/master
2020-12-07T11:52:34.702159
2020-01-16T00:55:30
2020-01-16T00:55:30
232,716,278
0
0
null
2020-01-09T03:44:00
2020-01-09T03:44:00
null
UTF-8
Python
false
false
5,953
py
import serial def tc_initialize(ser): cmd_name = ["1. INPUT1 (reads the temperature of the primary thermistor)","2. DESIRED CONTROL VALUE (set value)","3. POWER OUTPUT","4. ALARM STATUS","5. INPUT 2","6. OUTPUT CURRENT COUNTS","7. ALARM TYPE", "8. SET TYPE DEFINE (the desired control temperature ...
[ "keyuxi@yeah.net" ]
keyuxi@yeah.net
b98ec8bf3c86e1530a28a16eb01c6257fb3d0e96
8dab1c4de820c66b386cf4560ff8c661a1ce6dea
/prueba/public/my-project/application.wsgi
c05f2d91cc25b3b565a15a8e06b0336d6186304a
[]
no_license
danmcode/servicios-telematicos
fc83cecac4eb0f87809bbf3ebdcdc10c4f9d787f
ab5913a138626aa8ced6cd4ad3bca8375a402833
refs/heads/master
2023-04-06T04:18:38.760867
2021-04-20T02:50:18
2021-04-20T02:50:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
106
wsgi
#!/usr/bin/python import sys sys.path.insert(0,"/var/www/my-project/") from app import app as application
[ "danielmuelasrivera483@gmail.com" ]
danielmuelasrivera483@gmail.com
186559069415e595b28a5f470d5ff3dad932a6ae
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/travelport/models/base_search_rsp_5.py
b0dbc89115df2f46fc141656bd0422326d1818ea
[]
no_license
tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
2023-06-25T07:21:04
2019-11-18T21:00:37
Python
UTF-8
Python
false
false
666
py
from __future__ import annotations from dataclasses import dataclass, field from travelport.models.base_rsp_5 import BaseRsp5 from travelport.models.next_result_reference_5 import NextResultReference5 __NAMESPACE__ = "http://www.travelport.com/schema/common_v37_0" @dataclass class BaseSearchRsp5(BaseRsp5): class...
[ "chris@komposta.net" ]
chris@komposta.net
b6fe39655b437a466d7d0d92b5db2d795146ce61
cf3c6990c7470ad37a3ff509deb5b427baa4f682
/Map_Gen/Engine.py
f246b7a375e09625b4be78139f669d2067bcc5bb
[ "Apache-2.0" ]
permissive
Djsurry/WordRPG
350c550929a36ad0f921b1d861887a5fa3ad301f
03dec4244530fed43c4e925d1489ad0356c265b0
refs/heads/master
2020-04-11T14:45:20.859080
2018-12-15T02:13:45
2018-12-15T02:13:45
161,866,734
0
0
Apache-2.0
2018-12-15T03:39:11
2018-12-15T03:39:11
null
UTF-8
Python
false
false
8,258
py
##-- Import --## import os import time import random import sqlite3 import pandas ##-- Custom Import --## #from Map_Gen import Biome from Map_Gen import Biome from Map_Gen import SubBiome ##-- GLOBAL VERAIBLES --## ##-- Map Width and Hight ...
[ "43012445+cowboy8625@users.noreply.github.com" ]
43012445+cowboy8625@users.noreply.github.com
108f22444d17c4261db1d0bb0766a7ed666a18ff
5244b65ca44d1d66f827d608462186ae3eba0b17
/cst042_oblig2/src/src_client.py
55c0edfac431d8bd4435007bbd61305cd2c0874a
[]
no_license
camillavilla1/inf_2301
08d6bf2ff2bc224bb9099b6d8470177907c91c3e
db9a8992cdd5f9a7c30bd7083b5de75d58e940ae
refs/heads/master
2021-08-29T17:13:20.259405
2017-12-14T12:07:09
2017-12-14T12:07:09
114,245,850
0
1
null
null
null
null
UTF-8
Python
false
false
1,783
py
import socket, sys from Crypto.PublicKey import RSA from Crypto.Cipher import AES class Client(object): def __init__(self, ): self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Create a socket object def rsa_pub_key(self): """Generate new RSA-key, send public key to server""" self.new_k...
[ "dc-milla@hotmail.com" ]
dc-milla@hotmail.com
71b7d904c4b631395ebd6d5e10b3d98b8233d49e
3d6159a65ef09aa7f01aa5c53111d918f8b59dee
/smssearchreqs/models.py
8329592040210fcfb9e2c508af96b0f388ce9e3e
[]
no_license
codeht1/foxsearch
6e3e5a7de086fefba10c8cab259fa519b06aa7fc
2cc706a592949802dc8e6b3f66504ce27bc7d020
refs/heads/master
2016-09-06T06:19:31.256647
2014-10-28T17:37:50
2014-10-28T17:37:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
from django.db import models # Create your models here. class smssearchreq(models.Model): mobilenum=models.DecimalField(max_digits=10,decimal_places=0) query = models.CharField(max_length=200) timestamp=models.DateTimeField(auto_now_add=True) def __unicode__(self): return "%s" %(self.mobilenum)
[ "praveenyadav1193@yahoo.com" ]
praveenyadav1193@yahoo.com
a8b8e6b8f9a3395df1433080c32261269530e44f
73a55f07a5c0bf3b3dbfc696f2f22cb2c9485c5f
/lab3/ex3_1.py
ef074fba9e7a5293646cddeae992b5f5804d5114
[]
no_license
korliakov/infa_2020_Oksanichenko
158ec38eae8693f00cf3fe1330845c36730eba93
0064c1319fe16e234ded394d7aee3b30a4b88cf9
refs/heads/master
2022-12-22T11:49:10.569667
2020-09-24T07:58:50
2020-09-24T07:58:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,108
py
import pygame import numpy as np from pygame.draw import * pygame.init() FPS = 30 screen = pygame.display.set_mode((600, 600)) WHT = (255, 255, 255) YLW = (255, 255, 0) BLC = (0, 0, 0) RED = (255, 0, 0) screen.fill(WHT) circle(screen, YLW, [300, 300], 200) circle(screen, BLC, [300, 300], 200, 1) circle(screen, BLC, ...
[ "okssolotheodor@gmail.com" ]
okssolotheodor@gmail.com
b3b049e2bbef6b4c5bd3b74c884bd4c0cff4e8c8
c688d5e3f3e550ffc74e4fcb0f356dc04d864173
/chess/dl/models.py
3f16a6448bc97fc6dc7c438484f55aba6ea16853
[]
no_license
HenryDashwood/chess-engine
1fc82b67eb44c9f4c834ac07fc5089455f456335
1030656035f56535ab6093dcc4f735dbcf16d812
refs/heads/master
2021-06-26T06:34:02.887173
2020-10-25T23:58:14
2020-10-25T23:58:14
154,219,729
0
0
null
null
null
null
UTF-8
Python
false
false
2,104
py
import torch from torch import nn from torch.nn import functional as F class Model1(nn.Module): def __init__(self): super(Model1, self).__init__() self.fc1 = nn.Linear(773, 400) self.bn1 = nn.BatchNorm1d(400) self.fc2 = nn.Linear(400, 200) self.bn2 = nn.BatchNorm1d(200) ...
[ "henry.dashwood@curationcorp.com" ]
henry.dashwood@curationcorp.com
0706579f4674885cfbd07584590fb145738a4ed9
bc4554da10f2e1670f13da68c350b7ae8ee91a9e
/forms.py
d7bc04c504a3ca3b6f09772cc2ac7f4016c2372b
[]
no_license
ryan-ormsby/FlaskApp
cc470dfac2969d54fcb3beaf3f22c84e04fd341c
4960ff5f167ea1f9a96db134711bb9a2479201fc
refs/heads/master
2021-08-24T02:01:41.520546
2017-12-07T15:17:29
2017-12-07T15:17:29
109,185,343
0
0
null
null
null
null
UTF-8
Python
false
false
384
py
from flask_wtf import FlaskForm from wtforms import StringField, BooleanField from wtforms.validators import DataRequired class AddRiskForm(FlaskForm): orderid = StringField('orderid', validators=[DataRequired()]) class AddReviewForm(FlaskForm): nickname = StringField('nickname', validators=[DataRequired()]) ...
[ "ryan.ormsby@shopify.com" ]
ryan.ormsby@shopify.com
274b1254246dc752a8cf053ff8afd8f8684334b5
a9e1e7ecbdb8d4f82a0b5e626f1c1ec4e365853d
/lib/Stochastic.py
626389c2fd44a4e8998306a641078267d3694241
[]
no_license
ahrgomez/apTrader
6d1df2f52c3c82879ef0575aa0bc4c5ae5b39919
879f3af42dd0f7c926f0bc974fd320a7a0ff0dbc
refs/heads/master
2022-12-16T07:04:12.526346
2022-12-08T12:15:28
2022-12-08T12:15:28
85,666,771
0
1
null
2022-06-21T21:16:40
2017-03-21T06:24:06
Python
UTF-8
Python
false
false
1,130
py
import pandas as pd import numpy as np import SimpleMobileAverage class Stochastic(object): periods = 0 smoothing = 0 sma = None def __init__(self, period, smoothing): self.periods = period self.smoothing = smoothing self.sma = SimpleMobileAverage.SimpleMobileAverage(smoothing...
[ "root@agtemac.local" ]
root@agtemac.local
a24d776dc821a4f9c43ad84683108ed6172c2508
f597f371bb2b18ce4d28001b1e9508616bf8e0fa
/staging/versions/53e5dd8445f9_.py
93da22374527b4f3429b794515cb298f4871ffbe
[ "MIT" ]
permissive
farbodab/flatteningthecurve
e7b3bb21d8fba9857c5cc2ef41bbae4a7ac863b3
692fd9c8d78355e1208ff85a2cd1038da11c392f
refs/heads/master
2022-12-11T09:26:55.405564
2021-07-11T16:35:00
2021-07-11T16:35:00
249,292,508
1
3
MIT
2022-12-08T03:51:54
2020-03-22T23:31:49
Python
UTF-8
Python
false
false
897
py
"""empty message Revision ID: 53e5dd8445f9 Revises: 0d0d42ac0c04 Create Date: 2020-05-19 18:56:45.511549 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '53e5dd8445f9' down_revision = '0d0d42ac0c04' branch_labels = None depends_on = None def upgrade(): # ...
[ "farbod.ab@hotmail.ca" ]
farbod.ab@hotmail.ca
4ad17512530bf395fbef90133d6f3bfe4cf30fd6
21a7462f5c6d7258aa4add66f3961bcced6fcb7e
/plugins/check-printer-hp-2600n/check_printer_hp_2600n.py
44a34228d174a8d108fde45b945a975f31e1b0cf
[]
no_license
titilambert/monitoring-tools
dfa7188ab448fa1c9648c5ec403bdd6a7202dd8f
ef0331019d5fe999675a697194b4eefe5f8ef1e3
refs/heads/master
2021-01-18T17:31:36.409890
2015-06-04T13:34:23
2015-06-04T13:34:33
37,618,022
1
0
null
2015-06-17T20:05:51
2015-06-17T20:05:51
null
UTF-8
Python
false
false
22
py
check_printer_hp_2600n
[ "alexandre.viau@savoirfairelinux.com" ]
alexandre.viau@savoirfairelinux.com
47cf7a841d1897bf19ffa23851159a81a5ff34fc
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startPyquil3185.py
e768b8db399f05c768b8bac81015e4c147695c7e
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
1,946
py
# qubit number=4 # total number=44 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(3) # number=19 prog...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
db3925664d66c296e75f8e1ca15616bf73b1098e
24e004c618421f2dfaf81d746d99b6303d9118f0
/john_sinclair/load_albums.py
4723d2114cb223535a8308a29bb740c7f9b023d4
[ "MIT" ]
permissive
benmaier/drei-fragezeichen-sleeping-beauty
34c4f22506a2678f8537ad18df4c2beab2ca6366
a43b9d0e0a052b37262bad218be99d79507b7f73
refs/heads/main
2023-06-24T03:38:08.167569
2021-07-28T12:38:24
2021-07-28T12:38:24
390,154,323
2
0
null
null
null
null
UTF-8
Python
false
false
1,185
py
import spotipy from spotipy.oauth2 import SpotifyClientCredentials import simplejson as json import pathlib from rich import print with open(pathlib.Path.home()/".spotipy"/"identity.json",'r') as f: credentials = json.load(f) sp = spotipy.Spotify(auth_manager=SpotifyClientCredentials(**credentials)) #results =...
[ "benjaminfrankmaier@gmail.com" ]
benjaminfrankmaier@gmail.com
d482b07206cd0fd67c54015df9dad615eb0158b6
5f57fe6ee9e31a135ba50bc0b045f11945edb2ca
/tests.py
9b71544f987973d5b3d70276f3092aaae82a7053
[]
no_license
should-you-contribute/should-you-contribute.github.io
1985a4a86c4fb28c20c82ae324a6deab0bb321b9
b3c561c5c6b5e698cfc84fb2d77181b667d363ce
refs/heads/master
2020-06-09T02:08:54.297994
2018-10-01T21:35:31
2018-10-01T21:35:31
37,884,905
1
1
null
2016-01-05T02:27:37
2015-06-22T22:56:02
HTML
UTF-8
Python
false
false
8,389
py
from selenium import webdriver from selenium.webdriver.common.keys import Keys import unittest import time class NewVisitorTest(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() def tearDown(self): self.browser.quit() def test_can_get_information_from_github(self): ...
[ "shaunagm@gmail.com" ]
shaunagm@gmail.com
9131b2f1dacab69bf3da816ef02ec61aed408220
895234e39ee4cd7b1d893f172df9979b95ab5279
/magenta/models/music_vae/lstm_models.py
5bb32c46abda12ecd42e38013af3941fe9869568
[ "Apache-2.0" ]
permissive
craffel/magenta
039224afb9eb9cd197f4dc4e28029c932390072e
4a5e55ef27040b0c963eae9d828162ec6a7c20f9
refs/heads/master
2021-05-05T05:16:14.626337
2018-01-25T01:06:30
2018-01-25T01:06:30
118,673,643
1
0
null
2018-01-23T21:41:53
2018-01-23T21:41:53
null
UTF-8
Python
false
false
36,283
py
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "noreply@github.com" ]
craffel.noreply@github.com
7775347dd18c90d2568ca4294082bdaac633f810
315a6f349eb7c475ecbb7c8a1a9a79f01198ace2
/Exercicios-Python/Basico/Exercicios/exercicio28.py
29d66cf493d2f057c6d74727fdc1040a36b501f5
[]
no_license
SobrancelhaDoDragao/Exercicio-De-Programacao
59447e7fd87621a05f52d21dfed96757be96437b
1ee7976acc978274f0314ae7e985c537d78bb462
refs/heads/master
2020-05-24T04:08:06.160008
2019-08-10T22:53:18
2019-08-10T22:53:18
187,085,332
0
0
null
null
null
null
UTF-8
Python
false
false
523
py
# Escreva um programa que faça o computador "pensar" em um número # inteiro entre 0 e 5 e peça para o usuário tentar descobrir qual # foi o número escolhido pelo computador. from random import randint from time import sleep numero_sorteado = randint(0, 5) chute_usuario = int(input("Adivinhe um numero de 1 à 5: ")) pri...
[ "eudson.duraes@gmail.com" ]
eudson.duraes@gmail.com
3b5a6cd1c83b112f9da518dd26ccae02d454cd09
cacef898f68f8adec19e8f56e28a021176c33d6b
/SDICE.py
6c795876ff3c6564bbe4feaa2c76582c0b75907e
[]
no_license
CharmiShah26/Code-Chef
851f3731ed7d8df460a7de9ee768667f5707b1b1
a79347fe147bc8f47997e8a85f431c9fec48f139
refs/heads/main
2023-05-31T09:41:04.328454
2021-06-07T08:36:09
2021-06-07T08:36:09
345,911,668
0
0
null
null
null
null
UTF-8
Python
false
false
774
py
# -*- coding: utf-8 -*- """ Created on Sat Apr 3 12:08:04 2021 @author: charm """ for i in range(int(input())): n=int(input()) result=mod=div=0 mod=n%4 div=n//4 if(n>4): betn_layer=16*(div-1)#top most 4 4 4 4 of 1 row gets subracted since 60 is of subtracted 1's in it ...
[ "noreply@github.com" ]
CharmiShah26.noreply@github.com
5193fbf761d9b6189a54c73713e04d10544fd94c
f2604c10b9f32feb5935fb29e2a8d798371854e3
/Functions/is_prime.py
c55958d891db898f5a432611986402fb85cbab3c
[]
no_license
dlordtemplar/python-projects
622cc25f2de93f01d32e6eabe8ee1df3789be78b
d4428cc3b11fe229ce1bc3a0c42176882b153b0f
refs/heads/master
2021-08-06T15:45:44.411257
2017-11-06T11:31:54
2017-11-06T11:31:54
109,685,569
0
0
null
null
null
null
UTF-8
Python
false
false
635
py
''' Implement a function is_prime(x) that returns True if x is prime, False otherwise. (1 Point) >>> is_prime(7) True >>> is_prime(15) False ''' # ... your code ... def is_prime(num): if (num == 1): return False isPrime = True for y in range(2, num - 1): if (isPrime): if (num...
[ "dlordtemplar@gmail.com" ]
dlordtemplar@gmail.com
e76b6a4c02c2a9399cb5b61415395bea8bac28bd
fc51acde1574581ecc116d7c4558790d6489e2ee
/shipping/views.py
524cc23869871781b6395c18c89328edd9ec83ca
[]
no_license
sherylg343/janeric
9d2a7c270a4a158376b06c052c4c7aa644ae8c01
7c936edaf0cb823fcfd094e7412fc818eec2dc18
refs/heads/master
2023-02-15T19:47:56.179613
2021-01-09T03:58:22
2021-01-09T03:58:22
317,326,327
1
1
null
null
null
null
UTF-8
Python
false
false
163
py
from django.shortcuts import render def shipping(request): """ A view to render shipping.html page """ return render(request, 'shipping/shipping.html')
[ "sheryl.s.goldberg@gmail.com" ]
sheryl.s.goldberg@gmail.com
d0c81444b3d07eba38ec63fe0377e35b735e9fe5
f4136db076face6d5c5b6126c70b25e55f67148c
/src/days-2-4-adv/item.py
e244fe3d0466471b4a216bbd519272ce8c8bfbb2
[]
no_license
Jameson13B/Intro-Python
cb22e0505bf63d2d32a1777881c62539b60174b2
9bd5d7e94bb68ab5206247dc9f81bbbf4284ef2c
refs/heads/master
2020-03-27T09:22:19.010909
2018-08-31T15:18:43
2018-08-31T15:18:43
146,335,007
0
0
null
2018-08-27T18:03:24
2018-08-27T18:03:23
null
UTF-8
Python
false
false
109
py
class Item: def __init__(self, name, description): self.name = name self.description = description
[ "jameson@Jamesons-MacBook-Pro.local" ]
jameson@Jamesons-MacBook-Pro.local
10e1cc18c2b18658d9f17170ea4c128edbd1504f
1dbc928c3e3372e89c32d54e901341cdb3348684
/raspi/raspi_controller.py
4a501d5ee55e721d6af3a4165a28d14399b371bb
[]
no_license
RowlandOti/facial-barnacle-backend
af83b82c5e1d0c8741259e2e521ba13cc5ba84ca
4915bb446eaa87e0fb0e58b2df3b4fc5b66dba1b
refs/heads/main
2023-04-23T07:43:31.707773
2021-05-03T12:31:02
2021-05-03T12:31:02
359,898,080
1
0
null
null
null
null
UTF-8
Python
false
false
619
py
import time import RPi.GPIO as GPIO def should_drive_wheels(is_granted_access): servo_pin = 12 GPIO.setmode(GPIO.BCM) GPIO.setup(servo_pin, GPIO.OUT) servo = GPIO.PWM(servo_pin, 50) # GPIO 12 for PWM with 50Hz if is_granted_access: servo.start(2.5) # Initialization set_angle(18...
[ "r.otieno@kokonetworks.com" ]
r.otieno@kokonetworks.com
79104c091b2bd910ae0b1582fc58fb639954928b
9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb
/sdk/eventhub/azure-eventhub/azure/eventhub/_transport/_uamqp_transport.py
064ea88b753f0dbfadbc058344d508691cbfa84e
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
openapi-env-test/azure-sdk-for-python
b334a2b65eeabcf9b7673879a621abb9be43b0f6
f61090e96094cfd4f43650be1a53425736bd8985
refs/heads/main
2023-08-30T14:22:14.300080
2023-06-08T02:53:04
2023-06-08T02:53:04
222,384,897
1
0
MIT
2023-09-08T08:38:48
2019-11-18T07:09:24
Python
UTF-8
Python
false
false
29,890
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ "noreply@github.com" ]
openapi-env-test.noreply@github.com
c04b226c5c404639c6f664392701c8166de8a5e7
6e8581602f34e5d8fd4c927193cbe0b52b8b8302
/firebasetri.py
8bbec63156468fc38fc367d10aa8e529b94f3c97
[]
no_license
akshaynaik797/index
5a9563fae6d6f91cea53ad16196c6f4b51a70e86
829f03adf27f53c132551cc78b08413fa980471a
refs/heads/master
2023-05-31T04:07:58.267651
2021-06-22T06:32:52
2021-06-22T06:32:52
309,669,567
0
0
null
null
null
null
UTF-8
Python
false
false
973
py
import firebase_admin from firebase_admin import credentials, messaging cred = credentials.Certificate("iclaim-918b7-firebase-adminsdk-fpmv7-20c88a4f47.json") firebase_admin.initialize_app(cred) def send_to_token(): # [START send_to_token] # This registration token comes from the client FCM SDKs. registra...
[ "akshaynaik797@gmail.com" ]
akshaynaik797@gmail.com
c3d7754f00bdd9a1907ead98375207583f3c1a8c
44bb8188bd5256441c0f0bfd0d9c1dec1d4d7468
/Prob.py
1ae93eb5a00baad6f4f16452c686c3d384972c73
[]
no_license
Yout-bit/Dice-sum-prob
4c523f5e8f2219db122e8ca31742201af7ce4530
cb7cd78a319d9642ccc4293733986e301d5ffed9
refs/heads/main
2023-06-18T08:04:27.312155
2021-07-08T09:38:14
2021-07-08T09:38:14
316,950,773
0
0
null
null
null
null
UTF-8
Python
false
false
1,556
py
from flask import Flask app = Flask(__name__) @app.route("/") def main(): d1 = int(input("Sides of first dice ")) d2 = int(input("Sides of second dice ")) d = [] dd = [] out = [] prob = [] for i in range (1, (d1+1)): d.append(i) for i in r...
[ "noreply@github.com" ]
Yout-bit.noreply@github.com
167f2c008bc7e27652e62eb02f51f79cf0b391d9
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc110/A/4933080.py
c8c5fd0fc109d36630a34059e1349e32e3756574
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
105
py
A = list(map(int,input().split())) A = sorted(A) B = str(A[2]) + str(A[1]) B = int(B) print(B+A[0])
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
5da41aa6243ed621c51c11711148bdb0a6b5b087
0b05aca64d4e9c455da1a4e7fb2dff748e62b9cf
/apps/propositions/migrations/0019_auto_20210821_0530.py
3ac81db0e62b94592b7ba5b060686eac1e9141b8
[]
no_license
abdulwahed-mansour/modularhistory
6215ba45604a1c497ef3a029b6c3e44523a66a75
8bbdc8eec3622af22c17214051c34e36bea8e05a
refs/heads/main
2023-09-03T21:27:17.730946
2021-11-05T21:12:39
2021-11-05T21:12:39
426,674,118
1
0
null
2021-11-10T15:25:24
2021-11-10T15:25:23
null
UTF-8
Python
false
false
3,575
py
# Generated by Django 3.1.13 on 2021-08-21 05:30 from typing import TYPE_CHECKING import django.db.models.deletion from django.db import migrations, models import apps.topics.models.taggable import core.fields.m2m_foreign_key if TYPE_CHECKING: from apps.propositions.models.proposition import Proposition as _Pro...
[ "noreply@github.com" ]
abdulwahed-mansour.noreply@github.com
76f85c0387e0f3625bf4e82becb43ca5b33cf2be
c3b95aa2d66409f549c33b785b1076cd97badd02
/api/client/src/pcluster_client/model/image_builder_image_status.py
0a1066967bbcbe0c6f06db7297463bec5398dc06
[ "Apache-2.0" ]
permissive
sean-smith/aws-parallelcluster
40292c19ca7089d8fab2903862c0e6191b7ba4f0
2def5e9f0c83cd417ae76971f7be0748dbf9eafa
refs/heads/develop
2023-03-11T00:33:50.171466
2022-05-19T19:42:47
2022-05-19T19:45:47
157,621,383
2
0
Apache-2.0
2023-03-03T01:19:05
2018-11-14T22:47:45
Python
UTF-8
Python
false
false
7,427
py
""" ParallelCluster ParallelCluster API # noqa: E501 The version of the OpenAPI document: 3.0.0 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from pcluster_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNo...
[ "charlesg3@gmail.com" ]
charlesg3@gmail.com
752f4ca55382c8effe33b3bf53b17c748dcc7bc4
1fe8d4133981e53e88abf633046060b56fae883e
/venv/lib/python3.8/site-packages/tensorflow/python/util/all_util.py
c8f962d5cc1a185e0522f0a1ae9c6d04cd51f470
[]
no_license
Akira331/flask-cifar10
6c49db8485038731ce67d23f0972b9574746c7a7
283e7a2867c77d4b6aba7aea9013bf241d35d76c
refs/heads/master
2023-06-14T16:35:06.384755
2021-07-05T14:09:15
2021-07-05T14:09:15
382,864,970
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:a170c3a8c37058bfb766d86fa872bc97a2a9455eaf1276230ed371bbe5d22521 size 4693
[ "business030301@gmail.com" ]
business030301@gmail.com
dec0e0d0ae9802f6d1c1999c1944aa061b829a98
0c808f0db20c06aa4aa1e1f97225edd4c8d3674b
/certificate/asgi.py
fff6f2b3cd2937945b3f12173b467f722ef228c3
[]
no_license
SSJ26/certificates-code
86bec19762056880eae0dc957077a9025e1a5f82
85f6b3a4b4e7147dbc9fcb3fec4e7628268f3680
refs/heads/main
2023-03-28T15:29:48.752769
2021-03-29T18:55:57
2021-03-29T18:55:57
352,591,080
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
""" ASGI config for certificate project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_S...
[ "38113204+SSJ26@users.noreply.github.com" ]
38113204+SSJ26@users.noreply.github.com
dba7be6cf6851ccc19e3ed8c1c2b5cdef9d72d93
cf91b4e409ff41debf0b50ff6c0a944afee7114c
/conanfile.py
730e47936de47bcd96d3ef6060e358a7710b8b3c
[]
no_license
bilke/conan-hello
eb835e0be0d0ec29ac444883b99314c0832355e6
3d0cd3cb4ca1b1f68ec4e31b1537d19d03aad9cc
refs/heads/master
2016-08-11T21:02:47.513065
2016-03-17T07:38:06
2016-03-17T07:38:06
54,034,992
0
0
null
null
null
null
UTF-8
Python
false
false
799
py
from conans import ConanFile, CMake class HelloConan(ConanFile): name = "Hello" version = "0.2" generators = "cmake" settings = "os", "compiler", "build_type", "arch" exports = ["CMakeLists.txt"] url="http://github.com/bilke/conan-hello" license="none" def source(self): self.ru...
[ "lars.bilke@ufz.de" ]
lars.bilke@ufz.de
f7e1fdc9190476e573cb65b49eccd73e25157333
925b818801ef282b4fe65f6ace749304832d8b96
/symlearn/recursnn/recursnn_helper.py
99404e8086fadb7135e5dc1177afe6ac34e6645b
[]
no_license
renewang/Symlearn
b5f9a270fe75dfc5ac1710ccded59c2231eae5f0
1da4c4eb6af0d6d839080623b61116baa8d2299d
refs/heads/master
2022-12-26T06:24:32.431991
2018-11-20T15:28:56
2018-11-20T15:28:56
89,684,591
0
0
null
2022-06-21T21:11:23
2017-04-28T08:19:26
Python
UTF-8
Python
false
false
13,437
py
from itertools import groupby from io import StringIO from sklearn.preprocessing import LabelBinarizer from symlearn.csgraph import adjmatrix from . import recursnn_utils from .recursnn_utils import (visit_inodes_inorder, calculate_spanweight, get_spanrange) import numpy as np import scipy as sp import loggin...
[ "renewang@users.noreply.github.com" ]
renewang@users.noreply.github.com
729d713a868825738180938e1458012ac6cbbb8b
200fc6bfe4b6a3004836bf527e62a3dbdc93ff1c
/users/apps.py
666435576b2933cb56a397ed1c08a38f87b5cdf6
[]
no_license
risknet/reference_python_web_standard
0e77c08da300c345e22608e68e34ef1c5b665c11
e2f30f3efc1448094ce5e85562ac3c27d37f4fc4
refs/heads/master
2022-12-05T15:09:45.861554
2020-02-17T15:03:50
2020-02-17T15:03:50
241,135,996
0
0
null
2022-11-22T05:19:47
2020-02-17T15:04:32
Python
UTF-8
Python
false
false
161
py
from django.apps import AppConfig class UsersConfig(AppConfig): name = 'users' # triggering signal def ready(self): import users.signals
[ "jaelee2009@gmail.com" ]
jaelee2009@gmail.com
53485b533dd5e0253e0861a3134cfd9a2f72ecee
8cb5ebd1993d23074f55db2e8aa71eb24dd8ce17
/lib/screens/custom_widgets/tasklist.py
3dbaa62152ec060c21e08cebd219fb06f8cf780b
[]
no_license
JahnsMichael/qtile
0f6bda0dbfe8aabe7fe4000b7d6e6d3fd9164416
419dc2d0f2cc3b4c63c66c98ccbca1686a5b873d
refs/heads/master
2023-07-20T22:25:41.063340
2021-09-01T15:44:02
2021-09-01T15:44:02
361,193,091
0
0
null
null
null
null
UTF-8
Python
false
false
660
py
from libqtile.widget.tasklist import TaskList class CustomTaskList(TaskList): def __init__(self, **config): super().__init__(**config) self.add_callbacks({ 'Button1': self.select_window, 'Button2': self.kill_window, 'Button3': self.maximize_window, }) ...
[ "michael.jf.jm@gmail.com" ]
michael.jf.jm@gmail.com
a0ec26a115c3a0897cbf92beda45b68db9012d59
63a4d28c5af83dc8df0a2939a5817817658e9117
/pet/urls.py
900c720099a32d32b12bd0970064ae46e61e8e5f
[]
no_license
arv1983/KenziePet
12da6c3b94cd9e9be6b7003fea28e8f6b9fad7e6
c4a456247c6bf3a141de1bed060c231a37853e10
refs/heads/main
2023-07-17T00:47:16.405185
2021-08-06T17:11:00
2021-08-06T17:11:00
397,413,149
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
from django.urls import path from .views import GroupView urlpatterns = [ path('animals/', GroupView.as_view()), path('animals/<int:animal_id>/', GroupView.as_view()) ]
[ "ciclista-rs@hotmail.com" ]
ciclista-rs@hotmail.com
2b7c279a57035e546398ab3c7e54d5dccfe603b5
62179a165ec620ba967dbc20016e890978fbff50
/tests/common/test_builder_state.py
2353979abfefdfd4876a61cf0799d1b828e0e4e2
[ "Apache-2.0" ]
permissive
openvinotoolkit/nncf
91fcf153a96f85da166aacb7a70ca4941e4ba4a4
c027c8b43c4865d46b8de01d8350dd338ec5a874
refs/heads/develop
2023-08-24T11:25:05.704499
2023-08-23T14:44:05
2023-08-23T14:44:05
263,687,600
558
157
Apache-2.0
2023-09-14T17:06:41
2020-05-13T16:41:05
Python
UTF-8
Python
false
false
4,436
py
# Copyright (c) 2023 Intel Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writ...
[ "noreply@github.com" ]
openvinotoolkit.noreply@github.com
98b5212ac8776c8d2c2b282ba3d02150f45e9864
f6576c6551a1c44a0b6753587a6ce5cff978cc7c
/crawler/temp.py
0f08e16404990d70f775ad5c759c3c9a438655ba
[]
no_license
sharma-anshul/nRelate-Anshul
4cf1b6f739c82397c8c471c51d398bdaa5cf4ac7
63d8ca30c2e1812940156e69266f474d8eead7d8
refs/heads/master
2021-01-10T21:37:20.711072
2013-07-26T18:23:22
2013-07-26T18:23:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,102
py
import classifier import distmat import patternify def compute_classifier_domain_info(): patterns = set() # Gets a sample of links from the website starting from the homepage already_analyzed = set() links = self._get_all_internal_links(self._start_url) for i in range(depth - 1): if len(links) > 30...
[ "ansharma@seas.upenn.edu" ]
ansharma@seas.upenn.edu
f05cbb3d16420419b9e94c281c67618ca1759539
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/get_long_week/large_fact_and_good_year/want_fact/place_or_number.py
b65c0ab506ff8f0f45c1acdf99cbe05aa37dd954
[]
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
251
py
#! /usr/bin/env python def know_public_part_by_high_problem(str_arg): good_problem(str_arg) print('government') def good_problem(str_arg): print(str_arg) if __name__ == '__main__': know_public_part_by_high_problem('different_man')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
9476c7c9346a2c3ce4257c6f31fcd18dbb75b089
548259a1cd5a0597a53030e48e9bf8437050d3fd
/blockchain_app/urls.py
3d20899ae94c366510538e8fefb545db7e7bb107
[]
no_license
jaqb8/blockchain-app
3de8e7519a773f25a6d546df7f2b773dc736d5dd
765e6478676ab16bd812157d2741660673487235
refs/heads/main
2023-07-10T08:17:56.304102
2020-11-19T14:04:15
2020-11-19T14:04:15
303,366,092
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
"""blockchain_app URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/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') Clas...
[ "qba.anisz@gmail.com" ]
qba.anisz@gmail.com
5f16f0b6165e23db3dcdc7170c7e4f92cd1ec027
d1444abdc292806d175e5550d28adfd5237a462b
/Python-Refresher/29_imports_in_python/code.py
178141af9628d18b66cd6b5d43197498a6dec770
[]
no_license
Bjcurty/PycharmProjects
946cc1f9c215f48e2fb2e7ea3f683bddceabd00a
6e705e445aa207792b596c481d01b27272f0ffd2
refs/heads/master
2022-09-05T13:24:09.740774
2020-05-04T15:15:45
2020-05-04T15:15:45
257,973,095
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
# from mymodule import divide # # print(divide(10, 2)) # print(__name__) # import sys # allows python to find files locally # # error because it doesn't exist # # import sysadsf # # print(sys.path) import sys import mymodule # print(sys.modules) # print(mymodule)
[ "bradley@haulynx.com" ]
bradley@haulynx.com
446557cbbd515e88900a2ae6dd079d11c860fb8f
1a756d45d9e6294ae7945bd018fb0ccebb60806d
/Chapter3/3.3/3.3.3/stack.py
55270b39e3042169e92a69d6fc306c6e21c01874
[]
no_license
WustAnt/Python-Algorithm
0a7f32dfa3da7a640eb303c1e2cbe62896df025e
5da5236e6c0cd3c8410c3925c5744c97d20bfc26
refs/heads/master
2022-12-07T22:19:20.130446
2020-08-21T09:25:28
2020-08-21T09:25:28
284,865,740
8
1
null
null
null
null
UTF-8
Python
false
false
846
py
# -*- coding: utf-8 -*- # @Time : 2020/8/1 9:25 # @Author : WuatAnt # @File : stack.py # @Project : Python数据结构与算法分析 """ Stack()使用列表保存数据,默认将列表的尾部作为栈的顶端 """ class Stack: """ Stack():创建空栈 .push(item):将一个元素添加到栈的顶端 .pop():将栈顶端的元素移除,返回一个参数item .peek():返回栈顶端的元素 .isEmpty():检查栈是否为空,返回布尔值 .size...
[ "ghostimage@163.com" ]
ghostimage@163.com
1a4585ae35eeb8dec7cfd5a98936ed5776bca91b
ecba2b98fbf547e6a5b48f180f2c837ce3e185e6
/Python/AI learns to play FlappyBird/main.py
5d4fa830158def924de4b1aae074deaf44f80ba8
[]
no_license
vafakaramzadegan/scriptshot.ir
0bbce6350fe88563e5584149942d4c11b8528e23
c10ac4407be9e94a1ddddd43a9ed8a7163210b35
refs/heads/master
2023-07-11T14:30:48.815612
2021-08-22T03:48:30
2021-08-22T03:48:30
252,829,910
5
1
null
null
null
null
UTF-8
Python
false
false
11,631
py
''' FlappyBird AI --------------------------------- AI plays FlappyBird using Genetic Algorithm, implemented in Tensorflow and Keras. Author: Scriptshot.ir https://github.com/vafakaramzadegan/scriptshot.ir ''' import pygame from functions import functions import random from...
[ "noreply@github.com" ]
vafakaramzadegan.noreply@github.com
154832d1c75a95da042fa771507421a8b8fc5a0d
697627ec7a9e7ec1bceaad0c7a0da48e966630ac
/Algorithm/plusMinus.py
c64e8b15ac5b7447228d32cf0ca7b4f8c8c16efc
[]
no_license
jasper2326/HackerRank
ab0090cc9906472f29c91225c1cf8f1d3a19113c
1e5bad3bc734085fc12ce1cbd126742f2be506da
refs/heads/master
2021-05-06T09:49:22.907317
2018-03-27T08:51:59
2018-03-27T08:51:59
114,071,619
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
import sys n = int(raw_input().strip()) arr = map(int,raw_input().strip().split(' ')) minus = 0 plus = 0 zero = 0 for num in arr: if num > 0: plus += 1 elif num == 0: zero += 1 elif num < 0: minus += 1 print plus * 1.0 / n print minus * 1.0 / n print zero * 1.0 / n
[ "jasper_jiao@hotmail.com" ]
jasper_jiao@hotmail.com
163957526ce8c555c76ddc5827950cbd122cd6ef
15447259ae95c3df176d0e1c9a2f16b857c2d36d
/data_import_pkg/tweet_parser/read_lid_spaeng.py
4760bedf8a1aec8d5214e6f9a90117866864e1fd
[]
no_license
FilipePintoReis/PLEI_FEUP
4dc0a58f30f66d2304e3903749ded19281532a19
73579e8a2786a5430ff31638ff2d84ec27d2eb5f
refs/heads/main
2023-02-18T10:46:20.152610
2021-01-11T16:48:55
2021-01-11T16:48:55
315,767,969
0
0
null
null
null
null
UTF-8
Python
false
false
1,215
py
''' Contains LinceFileReader ''' class LinceFileReader: ''' This class read files from lince dataset when given a prefix. The file structure inside the prefix folder is ought to be: prefix/ train.conll test.conll dev.conll ''' @staticmethod def train_...
[ "freis@semasio.com" ]
freis@semasio.com
7da99af886cbcc786fce422085ebbf1e0fe50477
9d8b8a91b62f416422d74b02bc64a9d6cc20a8fe
/Other Codes/login.py
afc8a6f2bcdb900488206c59f6629076dc64988b
[]
no_license
sakshid22/HealingManagementSystem
4e7e06e7bac2acb0f7127d04e50626b04ba6b09f
846c1a61ed9f72f66fa022fe928dc9fe35280c3b
refs/heads/master
2021-05-13T21:02:27.564219
2018-01-08T03:50:00
2018-01-08T03:50:00
116,451,496
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
import Tkinter as tk import tkFileDialog as tkfd import tkMessageBox as tkmb #import xlrd #GUI setup root = tk.Tk() root.title("TLA Database Tool") user_label = tk.Label(root, text = "username").pack() user = tk.Entry(root, textvariable = tk.StringVar()).pack() pw_label = tk.Label(root, text = "password"...
[ "noreply@github.com" ]
sakshid22.noreply@github.com
20e89b7811131af3ba6bbfd580c9ce135bd77ec0
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/2/gro.py
fe80ab7e828b5a1f15bb709c847e422fdd054e5c
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
59d265402995ddefa4c085f0fb5aa9cf9e37513d
769c5e0f1836eccff49bf3c041a8951c4c0852c3
/log_profile.py
533b09b6db8e3c9f78e969633330a05e39f3fdef
[]
no_license
Ewenwan/upy-profile
1ee6515d413a77263ed123ae118be9227720e3e3
3c72aa5c720c68359748a77119e89603d1d5b135
refs/heads/master
2022-04-26T02:42:50.634705
2020-04-26T16:01:50
2020-04-26T16:01:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,145
py
import sys import time plog_field_count = 7 plog_size = 0 plog_next_idx = 0 plog = None def alloc_plog(size): global plog_size, plog plog_size = size plog = [[None]*plog_field_count for x in range(size)] def analize_plog(plog): frame_stats = {} func_stats = {} for op, frame_id, parent_frame_id, filename, li...
[ "dbrignoli@audioscience.com" ]
dbrignoli@audioscience.com
526ac7474db46277883c897afc5178b2f2270a15
362e8ab79233f72d0afc6877a59380ea6674c585
/EMuChannel/python/PreselectionWithExplicitEleId.py
235f81be5efb57eb28c8643d340fdc5146aac7b3
[]
no_license
marthaEstefany/DisplacedSUSY
792a07cf15a00def25271930d15bb639dbeac515
81de5ca0c9e9c53d64b91bbe7db4a700bb5af923
refs/heads/Run2
2021-12-05T12:03:09.003009
2018-12-02T19:40:26
2018-12-02T19:40:26
127,357,296
0
0
null
2019-01-13T21:12:11
2018-03-29T23:21:01
Python
UTF-8
Python
false
false
4,688
py
import FWCore.ParameterSet.Config as cms import copy import string from DisplacedSUSY.EMuChannel.CutDefinitions import * from DisplacedSUSY.StandardAnalysis.ElectronIdCutDefinitions import * ########################################################################################## #USE THIS CONFIG ONLY FOR ELECTRON T...
[ "juliette.alimena@cern.ch" ]
juliette.alimena@cern.ch
00be820482646996efd41e15619354b36f008fc3
c7b21d0a6ad68733aacd4722dc804bd5943b15b4
/pur_beurre/tests/test_urls.py
acc4dbce0ea72c8a446abfe004d9b2508abc228d
[]
no_license
pythonmentor/benjamin-p11
e44cc3ed8a4eb140b08a8b4a1689b8155677dc7d
dca43e8ef5952c5eb374f18d955260da03e025f5
refs/heads/master
2022-10-02T15:46:46.619965
2020-06-05T12:08:39
2020-06-05T12:08:39
268,841,345
0
0
null
null
null
null
UTF-8
Python
false
false
444
py
from django.test import TestCase from django.urls import resolve from django.shortcuts import reverse from pur_beurre.views import home, legal_notice class UrlTestCase(TestCase): def test_home_url_view(self): found = resolve(reverse("home")) self.assertEqual(found.func, home) def test_legal...
[ "thierry@chappuis.io" ]
thierry@chappuis.io
8b0bfb43ff5a4f396713d6a971a4594348a49c64
2ab02a03eb1253d43519ee1be1c11ea14172ac00
/cycle/bin/python-config
1a59d23ed62ad9deab3112341190f9947eaa1990
[]
no_license
archi-007/bicycle-rental
1d948a936784ccef9426f571deff2c8660a05d0c
0c4dbb5fde969b8ce29a9852efadc482a8459195
refs/heads/master
2021-09-25T15:35:11.401952
2021-04-11T21:30:32
2021-04-11T21:30:32
239,024,197
0
2
null
2021-09-22T18:32:37
2020-02-07T21:17:07
Python
UTF-8
Python
false
false
2,355
#!/home/archisman/Desktop/banchod/cycle/bin/python import sys import getopt import sysconfig valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', 'ldflags', 'help'] if sys.version_info >= (3, 2): valid_opts.insert(-1, 'extension-suffix') valid_opts.append('abiflags') if sys.vers...
[ "archiribhu@gmail.com" ]
archiribhu@gmail.com
cc6bf9c20b5c44a499abbb56330cd3825302f7b6
b6154329bbca55a1a091f61718cef0d05817914b
/firstpython.py
5744bd0b16bd2045aa9bb69a06009b17651ac71b
[]
no_license
97-shuang-chen/testrepo
c0d9e89fd453823b08cd244eb889156663718bd8
6cd25c1b74a9a71b23de5f73adc03f6b9f0c4e66
refs/heads/main
2023-03-02T17:20:46.106534
2021-02-06T19:22:19
2021-02-06T19:22:19
336,609,389
0
0
null
2021-02-06T19:22:20
2021-02-06T18:37:46
Python
UTF-8
Python
false
false
44
py
# Display the output print('hello, world!')
[ "noreply@github.com" ]
97-shuang-chen.noreply@github.com
0f5f966d6bb914a9176917f7154551b72d0f4c53
26b931a5f38639838d0b0fcba65a3dd858989f41
/auto_ts/utils/colors.py
bf44a1acd4349ff55c28ef1cb630266a4cfa6f31
[ "Apache-2.0" ]
permissive
AutoViML/Auto_TS
7ffd967703b89c74b161386ecef4703393699184
9b13d7d629385f34aebc54cfca82fc8cf7506c48
refs/heads/master
2023-06-07T01:56:55.541110
2023-05-17T01:16:05
2023-05-17T01:16:05
240,736,421
624
110
Apache-2.0
2023-09-01T17:23:44
2020-02-15T15:23:32
Jupyter Notebook
UTF-8
Python
false
false
246
py
class colorful: PURPLE = '\033[95m' CYAN = '\033[96m' DARKCYAN = '\033[36m' BLUE = '\033[94m' GREEN = '\033[92m' YELLOW = '\033[93m' RED = '\033[91m' BOLD = '\033[1m' UNDERLINE = '\033[4m' END = '\033[0m'
[ "rsesha2001@yahoo.com" ]
rsesha2001@yahoo.com
bac401bb4b9e15d012dc3864c835da2b4c0e6e96
ceb3d82494813cd21e38231964e098bb3efe093b
/Segmentation/flood.py
6f30aeb52b98062448c12265b2ebc669cd77d382
[ "Apache-2.0" ]
permissive
Joevaen/Scikit-image_On_CT
0c0a306a9ca18668bd9bb4105e577766b1d5578b
e3bf0eeadc50691041b4b7c44a19d07546a85001
refs/heads/main
2023-03-16T01:28:04.871513
2021-03-16T07:53:57
2021-03-16T07:53:57
344,071,656
0
0
null
null
null
null
UTF-8
Python
false
false
37
py
# Mask corresponding to a flood fill.
[ "joevaen@126.com" ]
joevaen@126.com
c6bf7f7d10fbca23871af2147d25627883f41608
31d48e64439aef62c6b752caaf0210eaf500f99c
/stock_price/admin.py
7fce80fc9a736d61dc01882fa44c8c551e19d585
[]
no_license
RyomaKawata1025/Data_processing_app
c907d19de5dabf64c066eac99f02432ef6025226
5ae8ae89a7fa57e6533846f0001be0b294fb696b
refs/heads/main
2023-03-02T14:30:29.466553
2021-02-15T10:46:38
2021-02-15T10:46:38
339,038,300
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
from django.contrib import admin from .models import NIKKEI,SP500,USDJPY,BITCOIN,COMMON admin.site.register(NIKKEI) admin.site.register(SP500) admin.site.register(USDJPY) admin.site.register(BITCOIN) admin.site.register(COMMON)
[ "kawataryouma@kawadaryoumanoMacBook-Air.local" ]
kawataryouma@kawadaryoumanoMacBook-Air.local
aeef294b4e1f262d5e7de5bcdcb2ef52e9746fd1
066120cc7a5d550a2d8c2c1f404d7fa90a89ac9f
/devs/migrations/0021_remove_device_client.py
27aa693a041ae6a372803b1c23cb27482201c254
[]
no_license
dpg3000/iec60870_5_configurator
7bfd2ae1947d2c4990a429143314e99ab6d4b614
789ed53c735d028050fcc145ac1488ad9aac6858
refs/heads/master
2022-09-14T04:58:58.835395
2020-03-02T12:58:46
2020-03-02T12:58:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
# Generated by Django 2.1.5 on 2019-12-05 14:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('devs', '0020_auto_20191205_1505'), ] operations = [ migrations.RemoveField( model_name='device', name='Client', ), ...
[ "dpou18@gmail.com" ]
dpou18@gmail.com
e9a8dde86248aa09ca4a251fa9cfa9038bc21ee6
808c852c709f76aa0c36362f060128eb9a8b3b54
/torchtimeseries/models/__init__.py
004cf2c1bd9ec0b6d58b5e5c874c0a429ef12d42
[]
no_license
timeseriesAI/timeseriesAI1
fea3a61b89661594026b21cd8fab58687f2186c7
8c0ff06737ab0b15938372de3d298b8a6083b120
refs/heads/master
2021-06-11T01:58:48.739894
2020-11-12T10:17:59
2020-11-12T10:17:59
254,351,793
18
7
null
null
null
null
UTF-8
Python
false
false
135
py
from .FCN import * from .ResNet import * from .ResCNN import * from .InceptionTime import * from .layers import * from .ROCKET import *
[ "oguiza@gmail.com" ]
oguiza@gmail.com
597dc9651bdd04a071d74c5c2b3f9e4e5ffba698
394ed7b7f7d65a309a9a041a472500f160215f55
/marvel_env/bin/alembic
354c8cbdf294b2fcc142b9f3a30cb5017c6659b7
[]
no_license
allyroo/marvel_project
4f5dde0a5e54d3c0525e5ebf43bddaa5d3789829
3533f937d8560fcc7e8ebecdc616f39f15375157
refs/heads/master
2023-06-09T00:15:22.507846
2021-06-28T05:19:00
2021-06-28T05:19:00
380,913,783
0
0
null
null
null
null
UTF-8
Python
false
false
291
#!/Users/Allyse/Documents/coding_temple_rangers_63/week_5/marvel_inventory/marvel_env/bin/python # -*- coding: utf-8 -*- import re import sys from alembic.config import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "allyse.arucan@gmail.com" ]
allyse.arucan@gmail.com
762aed1530a3b36da97232a519cf42dab6b4cfa0
75ef339fd43451036ea7e3540fe097d3c7df212c
/catchphrases_uni.py
9ed13ccc53d43a9236ddaef92b6c2d10c679ff69
[]
no_license
snake48/PIPHRASE
a028ffef652c073fd1c9f4d4b9a82a3af587d135
42774bf35c4d02dede7adb081437755ebb244365
refs/heads/master
2020-05-07T06:03:53.899995
2015-09-06T18:01:59
2015-09-06T18:01:59
42,012,085
0
0
null
null
null
null
UTF-8
Python
false
false
39,322
py
import time,random import unicornhat as uh cp_boat = [ [[[255, 255, 0], [255, 255, 0], [0, 255, 255], [0, 255, 255], [0, 255, 255], [0, 255, 255], [0, 255, 255], [0, 255, 255]], [[255, 255, 0], [255, 255, 0], [0, 255, 255], [0, 255, 255], [0, 255, 255], [0, 255, 255], [0, 255, 255], [0, 255, 255]], [[0, 255, 255], [0,...
[ "jasper@Dads-Mac-mini.local" ]
jasper@Dads-Mac-mini.local
520dfeb3d7c17d3b5bee718128491655c2cac4a8
79b13102627bcd0bcba2fd784fb0b1aeff74993e
/gapps/gspin/forms.py
4cb6e7514983201d32b3eca1b29e4dee9a7009af
[]
no_license
gibeongideon/gspin_backend
c513869ae4cd1c51242fa38fd3024935fe3d4769
2333b5c34c24751796c0775ce2210ca6219e6554
refs/heads/master
2021-06-20T01:58:30.252945
2019-06-29T20:55:32
2019-06-29T20:55:32
194,445,074
0
0
null
2021-03-19T22:29:54
2019-06-29T20:16:13
Python
UTF-8
Python
false
false
1,192
py
from django import forms from .models import Account, Balance, Bet, AccountTopUp, BetResults, GameResult, BetTime, CustomUser class AccountForm(forms.ModelForm): class Meta: model = Account fields = ['account_number', 'is_active', 'custom_user'] class BalanceForm(forms.ModelForm): class Meta...
[ "kipngeno.gibeon@gmail.com" ]
kipngeno.gibeon@gmail.com
77e238f1a0830212c73060732d78d2362591aba1
152683f2e06b417b561400e3a1229426268dbdec
/nn_semisupervised_resnet_18.py
3ed619eef504d6ec1f5adff9e6cfdb7fb48c9e54
[]
no_license
bigsnarfdude/icedChainsaw
593159a5d013a167549569b4d92d0ad2a8da81a3
2158b8eaf0ccc870e444dbb74752dfd5b402e20f
refs/heads/master
2021-08-23T14:24:40.676524
2017-12-05T07:11:14
2017-12-05T07:11:14
113,145,376
1
0
null
null
null
null
UTF-8
Python
false
false
5,877
py
import os import sys from itertools import chain import numpy as np import pandas as pd import torchvision.models import torch.nn.functional as F import torch.optim as optim from torch import nn from torch.utils.data import DataLoader from torchsample.callbacks import CSVLogger, LearningRateScheduler from callbacks...
[ "ohprecio@gmail.com" ]
ohprecio@gmail.com
0c10142f92ee52bdd943118a422ce3fba97826ec
bd00ffb02dd4470447a6ba89c01c5bf57d3eb28f
/섹션 4/8. 침몰하는 타이타닉/AA.py
92be2cc4919c71837eb15e99390a00525f00f4db
[]
no_license
yeong95/python_algorithm_inflearn
24930795882e34c31eb4d5e979533c3a578a3d09
d500f670253c56a8e62e779dde2e579a57d62266
refs/heads/master
2023-02-28T06:52:22.886154
2021-01-22T15:38:14
2021-01-22T15:38:14
326,430,497
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
import sys import os os.chdir(r'C:\Users\CHOYEONGKYU\Desktop\파이썬 알고리즘 문제풀이(코딩테스트 대비)\섹션 4\8. 침몰하는 타이타닉') sys.stdin = open('input.txt', 'rt') n,m = map(int, input().split()) a = list(map(int, input().split())) a.sort(reverse=True) cnt=0 while a!=[]: pop = a.pop(0) tmp=len(a) for i in range(len(a)): ...
[ "cykpig95@gmail.com" ]
cykpig95@gmail.com
2cb43e485765050a7cd4e3a5fecc44b3c7d6801f
f2f8a2ba384dbe68861151cc15ab14c72774bb16
/evaluate.py
e70f24cc371808dc34147c117f9661afa0329a74
[ "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
zphang/bert
06233c65298a97475bd4c0e4a0d649dcc5da8f48
12b4afc019d6da5e0c153608c3fd553c5e7466b1
refs/heads/master
2020-04-05T01:17:18.498275
2018-11-14T20:47:26
2018-11-14T20:47:26
156,430,554
0
0
null
2018-11-06T18:40:47
2018-11-06T18:40:46
null
UTF-8
Python
false
false
4,093
py
import argparse import json import pandas as pd from sklearn.metrics import matthews_corrcoef, f1_score from scipy.stats import pearsonr, spearmanr import run_classifier PROCESSORS = { "cola": run_classifier.ColaProcessor, "sst": run_classifier.SstProcessor, "mrpc": run_classifier.MrpcProcessor, "sts...
[ "email@jasonphang.com" ]
email@jasonphang.com
a831882f7ba810e8c2bcbb7e4e321ee9f6afae0a
b68f83bfa9df1a9d1f5a5beda60e56742c2b9308
/dev/backend/database.py
f5908982106106bdb356fda138f552f82cdbdf05
[]
no_license
amolsurve20/gradscout
1a6be2225735473e3e8709b40430337f51870903
d424c3ea675f994ff3a260ff81e84c92a3a28b9c
refs/heads/master
2020-11-29T14:51:41.242670
2017-04-06T01:33:20
2017-04-06T01:33:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,187
py
#!/usr/bin/env python """Firebase Database Interaction Module.""" from firebase import firebase class Firebase(object): """Class for Accessing Firebase Database.""" def __init__(self): """Initialize Firebase Object for Database Access.""" self.firebase = firebase.FirebaseApplication( ...
[ "b.s.sanathkumar@gmail.com" ]
b.s.sanathkumar@gmail.com
1921b628faebff60e71ddc2dd02c19109b656a35
63cc32b3eacb6695449e3568472d33a1605b8e2d
/liga_asobal/migrations/0002_auto_20170129_1609.py
3bb0470e6d0b04adc4ddc9d6fa79753faffe7dad
[]
no_license
i32gamad/liga_asobal
5646ba782d25265084aa40d7b468a4714afae797
b51c8a8902d78d8b69ac521e912dd8fe0aed97a8
refs/heads/master
2021-01-23T07:51:12.676304
2017-01-31T12:15:00
2017-01-31T12:15:00
80,517,722
0
0
null
null
null
null
UTF-8
Python
false
false
453
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-01-29 16:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('liga_asobal', '0001_initial'), ] operations = [ migrations.AlterField( ...
[ "i32gamad@uco.es" ]
i32gamad@uco.es
a9b548c471b2e055a350b837dc89d441271f681e
3597ecf8a014dbd6f7d998ab59919a94aff8011d
/api-web/src/www/application/modules/page/components.py
634a4e4b5fd6f05c5af1356a2218dfbb8e41d334
[]
no_license
duytran92-cse/nas-genomebrowser
f42b8ccbb7c5245bde4e52a0feed393f4b5f6bf1
d0240ad5edc9cfa8e7f89db52090d7d733d2bb8a
refs/heads/master
2022-10-24T05:26:01.760241
2020-06-14T19:01:35
2020-06-14T19:01:35
272,264,694
0
0
null
null
null
null
UTF-8
Python
false
false
1,554
py
from application.models import * class PageHelper(object): def load_associated_publications(self, id): page = Page.objects.get(pk=id) # Get associtaed pubs publications = [] rows = PageAssociatedPublication.objects.filter(page_id=page.id).all() if rows: for r in ...
[ "thanh.tran@etudiant.univ-lr.fr" ]
thanh.tran@etudiant.univ-lr.fr
12be76ee075152e9b002246390f3443fa75f7f06
504d4814971735c3bc84d577521404c4616bca88
/multithreading/queue_1.py
226192454b0c20bc89fe9cdfcd5e47adb5af1ef7
[]
no_license
caaden/python
203a6fec07b3993345376c2ab60246765e3d7f32
cf89a82331d14abbb376b5d199d546042e1f4f4b
refs/heads/master
2023-03-17T15:08:28.071076
2021-02-28T23:39:35
2021-02-28T23:39:35
267,114,193
1
0
null
null
null
null
UTF-8
Python
false
false
1,368
py
#!/usr/bin/python3 import queue import threading import time exitFlag = 0 class myThread (threading.Thread): def __init__(self, threadID, name, q): threading.Thread.__init__(self) self.threadID = threadID self.name = name self.q = q def run(self): print ("Starting " + self.name) ...
[ "caden@fringeai.com" ]
caden@fringeai.com
194b6313d4b7c20adfb20c53de2ca19ab668783f
91eba4efb54b28722ccbf7f8af8ee37ac4d57fd5
/transformer.py
d0f92ff2a279eb59d84c87efb230aba2f6c1cd42
[]
no_license
h2012c106/create_table_transformer
c4537fe80c9a084665a788ba1b98cd8bd1a1c78c
7e0e92dee362ba3616f64c8736aaff5f11323b91
refs/heads/master
2020-12-02T15:18:47.484966
2019-12-31T08:10:07
2019-12-31T08:10:07
231,046,883
0
0
null
null
null
null
UTF-8
Python
false
false
6,617
py
# -*- coding: UTF-8 -*- import os import jpype import generator import collections def _get_jars_path(lib_path): res = [] for file_name in os.listdir(lib_path): if os.path.splitext(file_name)[1] == '.jar': res.append(lib_path + file_name) return [os.path.abspath(path) for path in res]...
[ "hanxianghuang@xiaohongshu.com" ]
hanxianghuang@xiaohongshu.com
06428f4907937b0f95ba7ebdd85921a3835fb9a1
d733f3d915dd109f233f49240932e86c5f58b343
/Day23/Day23-Part1.py
1cee62e61b7e7c59178ed7913120e517eeb774e2
[]
no_license
MichaelShoemaker/AdventOfCode-2020
90942c55fe91dd025a3dcd5db284aa39ef629f7f
311ef62b69c8da820258ca8bf47ed93f406be074
refs/heads/main
2023-02-03T19:48:45.512523
2020-12-23T20:36:37
2020-12-23T20:36:37
318,268,017
0
0
null
null
null
null
UTF-8
Python
false
false
2,154
py
import time import typing def make_cups(file): cups = open(file,'r').read() return [int(c) for c in cups if c != '\n'] def play(cups: list, turns: int) -> list: counter = 0 for x in range(0,turns): ## print(f"-- move {x+1} --") ## print(f"cups: {cups}") #current cup ...
[ "noreply@github.com" ]
MichaelShoemaker.noreply@github.com