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
373a588df61c9ab9c7435a2a7a4e9cffb1a9a2e5
fead9e8a0aac4fba5463dc4b44c546dc5c1deca4
/1.B-7.py
03ac02afc8c23237a861d8e7fb5b14d41cf28c90
[]
no_license
Lana1308/Praktika
65e4720c834e39b457d24c4c106f0eb565f1cc96
6a2cfcf487d38c1b1295ed1a7b84d1af5331aa90
refs/heads/master
2020-03-21T03:30:35.761571
2018-06-20T19:13:59
2018-06-20T19:13:59
138,057,882
0
0
null
null
null
null
UTF-8
Python
false
false
1,158
py
import datetime def printTimeStamp(name): print('Автор програми: ' + name) print('Час компіляції: ' + str(datetime.datetime.now())) name = printTimeStamp("Lana") house = input("Человечек, где ты живешь? (будинок/квартира/гуртожиток) ") time = int(input("Человечек, сколько ты проводишь времени дома? ")) if h...
[ "noreply@github.com" ]
noreply@github.com
662a6ec1ebac3ecb09c0568da4afd30b9dd69504
1770ba18aa32f7bd05caf2a1a572593cc778ae20
/Spotkanie1/osobowe.py
59c17f38ddf358dab77b5862065636f814a97d91
[]
no_license
kukulap/Warsztaty_Python
1fd325869f6651150abdf9bbed46698bfcbbce56
ea82a200036065ad8af867f376aabb61b374eb78
refs/heads/master
2020-04-10T08:45:40.043958
2018-12-09T11:18:57
2018-12-09T11:18:57
160,913,711
0
0
null
null
null
null
UTF-8
Python
false
false
1,131
py
import bmi class Osoba: def __init__(self, imie, nazwisko, masa, wzrost): self.imie = imie self.nazwisko = nazwisko self.masa = masa self.wzrost = wzrost def __str__(self): return "{0}: {1} {2}, BMI: {3}".format(str(self.__class__.__name__), self.imie, self.nazwisko, b...
[ "kapron.patrycja@gmail.com" ]
kapron.patrycja@gmail.com
dbf85cc91b6700aa01a987a8b6c086f8ad2d04a3
cdbf700691b2397408d690890be078f988052c3f
/Modified_deblurgan/train.py
a2624434ff4fc0d1eef503db348c46c9138b8d13
[]
no_license
dongguk-dm/MDG_CNN
8dd1fe00b051624f96ba85e185d41e0eaa5daead
f3c7e48ad7421719dbcfe57a1b9f8029c6fddcf6
refs/heads/master
2023-06-11T07:19:43.711770
2021-07-01T04:38:22
2021-07-01T04:38:22
381,562,897
0
0
null
null
null
null
UTF-8
Python
false
false
3,543
py
import time import easydict from data.data_loader import CreateDataLoader from models.models import create_model from util.visualizer import Visualizer from util.metrics import PSNR, SSIM from multiprocessing import freeze_support import os def print_current_errors(epoch, i, errors, t, opt): message = '(epoch: %d, it...
[ "choijh1027@gmail.com" ]
choijh1027@gmail.com
a126c611b817d111e72b64053c7ae3059f49d4c7
ff7e78a7fa02ed3a5e56fd9ef37ac0442d4d2413
/confs/test_stopsignal.py
71b4c086cadf3d621b0e5ff6612b7a85e40f9a46
[]
no_license
gbersac/taskmaster_42
ed796963e875ef2bbb688b9100466bdcbe78832e
050443ade7583aac84159a24ac8c5a021a30f074
refs/heads/master
2020-03-30T13:33:42.062239
2015-08-19T16:08:08
2015-08-19T16:08:08
40,602,141
1
0
null
null
null
null
UTF-8
Python
false
false
384
py
#!/nfs/zfs-student-3/users/2013/gbersac/.brew/bin/python3 import signal def signal_handler(sig, frame): if sig == signal.SIGINT: print("SIGINT") if sig == signal.SIGUSR1: print("SIGUSR1") if sig == signal.SIGQUIT: print("SIGQUIT") if __name__ == '__main__': signal.signal(signal.SIGINT, signal_handler) sig...
[ "bersac_1@hotmail.fr" ]
bersac_1@hotmail.fr
15e513d4b634a7e0f9eeee344370860eeb75acfc
c6c90528f11298835ea3d5af78fa65c64cd9f2b3
/project/models.py
47bfeaa9257c38938f652e6f3d242372dc12539a
[ "MIT" ]
permissive
Eiriksak/Folder_structure
a1565f61091984f6c23efadf6957fe720cf0a280
df9aba3232ab4265a5bb766326f64ca694b7b644
refs/heads/master
2022-12-11T18:55:51.836957
2018-10-02T16:12:39
2018-10-02T16:12:39
150,384,697
0
0
null
2022-12-08T02:54:34
2018-09-26T07:17:01
Python
UTF-8
Python
false
false
855
py
from project import db # Lager en klasse for table = banan class Bananer(db.Model): __tablename__ = 'bananer' # Setter hvilke kolonner vi skal ha og eventuelle constraints id = db.Column(db.Integer, primary_key=True, autoincrement=True) type = db.Column(db.String) # Lager en konstruktør for når vi skal l...
[ "eiriksak@hotmail.com" ]
eiriksak@hotmail.com
5d55e8bc244b5488c6992ca537ab21c8079faf1d
b4e9544d5e98438804ba4f1c69b7d56b24da1072
/QuicksortInPlace.py
93cf338c05a8e63da29eda8a6457142357b75f61
[]
no_license
taylortom/AlgorithmicFuntimes
946f57d22bdc726e2f2888711d7092cb9499dae2
76f337701134ded06e3fdff8375e5259060f7632
refs/heads/master
2020-05-07T16:48:05.007295
2012-07-21T19:13:01
2012-07-21T19:13:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,527
py
# # In-place Quicksort # Time: O(n log n) O(n2) worst-case # Space: O(log n) # # Partition algorithm moves all elements less than a pivot point to one part of the array, # and all elements larger to the other part, returning the final position of the pivot in the array. # # Each call to the algorithm reduces the arra...
[ "tom@taylortom.co.uk" ]
tom@taylortom.co.uk
1031decef22a5f8e9fa6d0446887620f1a17bbd6
cb95b3a2714f003e76c5e1db1d3e4726f87f14d8
/pstests/launch_schevers.py
50881808378a6bad2b948300e21df85af51ae09c
[ "Apache-2.0" ]
permissive
DMALab/Het
5aaa9fda1b8c77c0db24a477fe1eccd9665a9fe0
81b7e9f0f593108db969fc46a1af3df74b825230
refs/heads/main
2023-03-30T13:22:03.085283
2021-04-04T05:31:43
2021-04-04T05:31:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,845
py
from athena import gpu_ops as ad import os import sys import yaml import multiprocessing import signal def main(): def start_scheduler(settings): for key, value in settings.items(): os.environ[key] = str(value) assert os.environ['DMLC_ROLE'] == "scheduler" print('Scheduler sta...
[ "swordonline@foxmail.com" ]
swordonline@foxmail.com
f6b131bbddadded5e915501ce5a719b1e74ce352
45e376ae66b78b17788b1d3575b334b2cb1d0b1c
/checkov/cloudformation/checks/resource/aws/APIGatewayXray.py
79b7ec85c6b5ac40b0aaa6c2c422267e4a656db6
[ "Apache-2.0" ]
permissive
bridgecrewio/checkov
aeb8febed2ed90e61d5755f8f9d80b125362644d
e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d
refs/heads/main
2023-08-31T06:57:21.990147
2023-08-30T23:01:47
2023-08-30T23:01:47
224,386,599
5,929
1,056
Apache-2.0
2023-09-14T20:10:23
2019-11-27T08:55:14
Python
UTF-8
Python
false
false
710
py
from checkov.cloudformation.checks.resource.base_resource_value_check import BaseResourceValueCheck from checkov.common.models.enums import CheckCategories class APIGatewayXray(BaseResourceValueCheck): def __init__(self): name = "Ensure API Gateway has X-Ray Tracing enabled" id = "CKV_AWS_73" ...
[ "noreply@github.com" ]
noreply@github.com
8cf5a4624636da19f870de78212d63a1d1b37fb1
b767d70e2f169997ed92842f0488b24f615d8467
/src/decision/scripts/gazebo_polt.py
f9526c443d71cfca82513ba7ec568fa07851a30b
[]
no_license
Taospirit/Dynamic_Navigation
cd111e12b1c61c413ec06c39f789995fbbe30a46
ae57a4b676d44b95b865f66ea72fbaa83fa7f99b
refs/heads/master
2021-08-22T23:38:44.785864
2021-01-09T07:50:34
2021-01-09T07:50:34
239,330,707
1
0
null
null
null
null
UTF-8
Python
false
false
3,021
py
import os import matplotlib.pyplot as plt import matplotlib.patches as mpathes import numpy as np num = 7 file = os.path.abspath(os.path.dirname(__file__)) + '/' + str(num) + '.txt' p_list = [] obs_goal_3 = [3.0, -2.0] obs_goal_4 = [[-1, -2], [2, 2]] obs_goal_5 = [[5, -2], [7, 2]] obs_goal_6 = [[5, 2], [3, -2]] obs_g...
[ "lintao209@outlook.com" ]
lintao209@outlook.com
8a478a87698b48f534a445a89fb732282d8b8ac1
fc6d79382f75f5cebeaae856b255b5d4fba1665e
/News_Website/settings.py
0053cb6cdcd8e5d26e235b06c0e6dc30dd83b621
[]
no_license
amalpmathews2003/NewsApp
db3260e09a41b401e04d51beb823f97817fd707e
84c8b19f3168049c38d34c3f9327a08043b607a1
refs/heads/master
2023-09-02T12:41:17.345822
2021-10-25T08:30:14
2021-10-25T08:30:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,199
py
""" Django settings for News_Website project. Generated by 'django-admin startproject' using Django 3.2.8. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pa...
[ "amalpmathews2003@gmail.com" ]
amalpmathews2003@gmail.com
d421917e4f4ed68d314b39a5b997b54d20bb18ed
c20e238e5e9c4793f69ce9b20a12771b1ac334df
/models/__init__.py
2d678b4a2b0e2cb9b5ab53f9056f5a69f255cace
[]
no_license
SweatMeansWin/Sea-Battle-Game-Engine
466b4e09f7c16709ca205bba451559cb7ccf77ea
b1929203bea4ebdf350343b876ebecd2639d0c16
refs/heads/master
2020-03-21T19:07:52.338779
2018-06-20T19:19:20
2018-06-25T18:01:51
138,931,361
0
0
null
null
null
null
UTF-8
Python
false
false
116
py
""" Export all classes """ from .battle_field import BattleField from .player import Player from .ship import Ship
[ "evgeniyasheis@gmail.com" ]
evgeniyasheis@gmail.com
342bd4082ce36f826efd3b77b90a432568375e8b
6b79e61dfb966c3c934c851de2f22129f2cfa3ce
/entertainment/entertainment/wsgi.py
a22500090a813752239a4694b5bdde1af49995a4
[]
no_license
jrwallace1983/django_entertainment
5a64cde5b7239e89d960c3d0cdc01936d318873c
1f0b0cf88d8e67fe660812448997f5173f744f43
refs/heads/master
2021-01-01T20:03:02.290344
2017-07-30T05:44:35
2017-07-30T05:44:35
98,752,438
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
""" WSGI config for entertainment project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANG...
[ "jrwallace1983@gmail.com" ]
jrwallace1983@gmail.com
afe09cf1138edb28b3e71b6c42799e2c565c0415
6917bb4d0fbc37a4f3ed131f9ab93213f65a7edd
/Leetcode/LeetCode - 1221. Split a String in Balanced Strings.py
052b0cb668b6255b0240d4cf17b5ecd215b8e8f6
[]
no_license
DemondLove/Python-Programming
0e0bffe8abdfbe5a914c572e2b7182846b830955
0dd2332d8a863d5c0ed5573bce68de37bb947688
refs/heads/master
2021-06-01T15:22:58.665226
2020-08-09T18:35:01
2020-08-09T18:35:01
130,158,476
0
0
null
null
null
null
UTF-8
Python
false
false
1,110
py
''' Balanced strings are those who have equal quantity of 'L' and 'R' characters. Given a balanced string s split it in the maximum amount of balanced strings. Return the maximum amount of splitted balanced strings. Example 1: Input: s = "RLRRLLRLRL" Output: 4 Explanation: s can be split into "RL", "RRLL", "RL",...
[ "noreply@github.com" ]
noreply@github.com
7be1f25265abad04394ea8ef6d319e4a2fa54b68
1b9eff84f2ba4bcbe86d502a8cdb883f01b17294
/universalspider/configs/compile_config_rulesV3.py
298fc57827f85611c8e345b775599ff2c68eb1ce
[]
no_license
rym-max/firstspider
f3c76b98838bf65e05cb03d8383eacd5bf16b6db
9c03aba856195f8895ed261d9ff1ce45b81e98ab
refs/heads/master
2020-12-06T16:37:49.544821
2019-09-02T00:55:12
2019-09-02T00:55:12
232,508,373
0
0
null
null
null
null
UTF-8
Python
false
false
5,483
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : compile_config_rulesV3.py @Time : 2019/08/30 10:41:24 @Author : Hzx @Version : 1.0 @Contact : hzxstarcloud@hotmail.com @Desc : None ''' # here put the import lib import pymssql import json import os import datetime SQL_SERVER="localho...
[ "hzxstarcloud@hotmail.com" ]
hzxstarcloud@hotmail.com
e538aa28b1bd9e8f0574539f2c5075b7eea00ec2
ba962c2441572ba45ff97a97bb713eb8a603a269
/lunchmap/models.py
2c9b100ab61729344379c83188a3554f131dd623
[]
no_license
melonpan777/my-first-blog
8158104ba2b3c97a8e6350ac57aac77edf85be26
9ff5eee69523d8fbbbd004e566090ea715b043d5
refs/heads/master
2020-06-04T13:58:16.704685
2019-06-15T11:14:00
2019-06-15T11:14:00
192,051,830
0
0
null
null
null
null
UTF-8
Python
false
false
1,004
py
from django.db import models from django.urls import reverse class Category(models.Model): name = models.CharField(max_length=255) author = models.ForeignKey( 'auth.User', on_delete=models.CASCADE, ) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeFi...
[ "you@example.com" ]
you@example.com
98e8f1034b90045b712c41cdda10e5add841c6ee
213d0403c263c5ce6489fab742c3fc60038e2196
/patrollers/scripts/patrol_monitor.py
e5fcb6dac83b7cd1c939c651b235fea8b65b1509
[]
no_license
blozano824/CS-69-Patrollers
a8b43444d7a7fffe93eb955d845dc694c1b0b292
a87d8495e880c347b165ac89e1313462887fe0d1
refs/heads/master
2020-05-18T09:07:44.543311
2019-05-28T18:30:19
2019-05-28T18:30:19
184,315,371
0
0
null
null
null
null
UTF-8
Python
false
false
2,167
py
import rospy import graph.py class PatrolMonitor(): """ Patrol Monitor Class for publishing velocity commands to all robots. This monitor will track all robots movements and make specific vertex moveent command for individual robot actions Attributes: publisherList (:obj: Publishers):...
[ "noreply@github.com" ]
noreply@github.com
af021860c198c6b94bd42066916fd67b07afa2cc
308f847179153268f22f64ed60d4b68a22be8d16
/venv/bin/python-config
7a5b0828414a679bf06913d9acd8471fb6658f53
[ "MIT" ]
permissive
lurdray/facedetect
b952262469b532626cc7fc57b9cac199f4f29aba
112a852a4f31bd07ea724e9faa4fd9fbb444ff23
refs/heads/master
2022-04-13T08:15:52.516324
2020-04-03T16:13:58
2020-04-03T16:13:58
251,633,441
0
0
null
null
null
null
UTF-8
Python
false
false
2,355
#!/home/raytech/gitdemo/facedetect/venv/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...
[ "odiagaraymond@gmail.com" ]
odiagaraymond@gmail.com
dcff318e512f694dc31b8f2936e54ae11ce40712
638fdc6e95bee246cd8784a3a442bda584295d77
/prj/main/management/commands/import_step.py
79b97b35a8bf7a0f1d0f2e01c90b812ded017f8c
[]
no_license
zdimon/loyer
ac00faf94c4277eb77d6cdc51e8bf99ef2f7ecb2
6df6bc76599bc0fab9ef2bdb600cc3b92daf38c1
refs/heads/master
2020-03-27T16:03:36.358793
2019-04-18T10:05:18
2019-04-18T10:05:18
146,757,036
0
0
null
null
null
null
UTF-8
Python
false
false
8,631
py
# -*- coding: utf-8 -*- from django.core.management.base import BaseCommand, CommandError import json from prj.settings import BASE_DIR import os from main.models import * import requests from bs4 import BeautifulSoup import os.path import time import json from main.tools import headers from main.tools import getSessio...
[ "zdimon@example.com" ]
zdimon@example.com
fdfdb3734d3c38c13ecc576dac219bd5323bcec1
60d0a307e05453530043b20b89e1767d37174dc7
/ex020.py
e0ce86158c3a116877280ca35eebc35104339fea
[ "MIT" ]
permissive
carlosvcerqueira/Projetos-Python
b1167c0fd070c96281fd59ffb04e140e7b81dc62
2fb91a0be8abf436af6a1d57fb2a1eafd0d30394
refs/heads/main
2023-08-16T02:07:14.291569
2021-10-11T16:45:07
2021-10-11T16:45:07
416,007,413
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
import random a1 = input('Primeiro aluno: ') a2 = input('Segundo aluno: ') a3 = input('Terceiro aluno: ') a4 = input('Quarto aluno: ') lista = [a1, a2, a3, a4] ordem = random.shuffle(lista) print('A ordem de apresentação será:') print(lista)
[ "noreply@github.com" ]
noreply@github.com
25001df53eb53de0424c58cb58a0ac920e47da5f
fc8db69812002b37f9d524e5f3a7dac72e4e6e7a
/sample-env/app.py
eb55f551d9fd5a7876a13277b6ac24219a4efa97
[]
no_license
nvk1152/python-tasks
0bd1b0d3a62084964a6e4887c71c3ea5a9d37670
6397ca29b2720fcf608af6714e54dbef48c852e7
refs/heads/main
2023-01-05T05:17:10.377120
2020-10-23T16:46:35
2020-10-23T16:46:35
301,931,306
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
# Day 6 Tasks from flask import Flask from flask import jsonify app = Flask(__name__) student = { "1" : "Vamsi", "2" : "Aishwarya", "3" : "Samantha" } @app.route('/') def helloWorld(): return 'Hello! World' @app.route('/students/all') def getAllStudents(): return student @app.route('/jsoni...
[ "nvk1152@gmail.com" ]
nvk1152@gmail.com
19eb520e240acd85dbbd9f308e71f8690326049c
e297517b8e6ec29a9b13be6cc5a01f77b21b08a2
/new_vad_plot.py
4a4a8aeff6a50d0e0b46d8fc288504025b54c5b9
[]
no_license
jefflai108/LSTM
d6b1ec0d7256a920302b1ca05ff1ddb16eb8cc6a
09764df3f2e91ceb0f1b6854c289f5b08f1e5541
refs/heads/master
2021-01-20T09:56:54.257353
2017-05-04T21:11:58
2017-05-04T21:11:58
90,309,783
7
6
null
null
null
null
UTF-8
Python
false
false
1,899
py
#!/usr/bin/env python import numpy as np np.seterr(divide='ignore', invalid='ignore') import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt from scipy.io import wavfile import os fig = plt.figure() ################################### plt.subplot(2, 1, 1) indir = '/Users/jefflai108/clsp/spoken/' fo...
[ "noreply@github.com" ]
noreply@github.com
c763938e560a4c0f544e659a6ad288e59175bdc0
9a26d5122a235cbb1d5b246bbd211a17d7f16209
/courses/admin.py
2cc85fd258a3c983296e3f90dc50d57794082857
[]
no_license
mohamed591195/LMS
10d1651c34bf17874e8738ae25b05b1131b827ea
24c3e84eb49008f154adfc7958ebd5baf13de22e
refs/heads/master
2020-06-25T05:29:49.223595
2019-08-05T00:05:22
2019-08-05T00:05:42
199,215,487
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
from django.contrib import admin from courses.models import Subject, Module, Course, Content @admin.register(Subject) class SubjectAdmin(admin.ModelAdmin): list_display = ['title', 'slug'] prepopulated_fields = {'slug': ('title',)} class ModuleInline(admin.StackedInline): model = Module prepopulated...
[ "mohammad@pop-os.localdomain" ]
mohammad@pop-os.localdomain
92332d5530fdac81fdd1b7e9ccb8ae37ad1d0f84
71290596a9a2e4a5f24984a69c860ac3873ff07b
/deevovenv/Scripts/pilfont.py
3c278f548bc5650c3040c8a321a61a44e27c52d5
[]
no_license
reginaalyssa/Deevo
87856174070eede215b4c680d113d77023c5b9bc
e45fd8c6d39b581702a2851cd22879b2cf182ba6
refs/heads/master
2021-07-03T09:44:56.284927
2017-09-22T15:45:23
2017-09-22T15:45:23
102,055,086
1
0
null
null
null
null
UTF-8
Python
false
false
1,084
py
#!c:\users\reginaalyssa\documents\github\deevo\deevovenv\scripts\python.exe # # The Python Imaging Library # $Id$ # # PIL raster font compiler # # history: # 1997-08-25 fl created # 2002-03-10 fl use "from PIL import" # from __future__ import print_function import glob import sys # drivers from PIL import BdfFon...
[ "reginaalyssa01809@gmail.com" ]
reginaalyssa01809@gmail.com
95fac5e97fb9e3ad314a5d42c2699ef942e63711
7ede26e96474e15ac0910589cac9eff792571503
/implement-queue-using-stacks.py
3a2f20a185d8600ed828a8dc3e5d37f4a0d06253
[]
no_license
Jordanzuo/Algorithm
0471b766258e4a5aa0cd8334aab3d9edfd078f85
6089a678be920f71c0e58de8914db72917aaad10
refs/heads/master
2022-03-09T06:27:25.468195
2022-03-08T10:23:53
2022-03-08T10:23:53
152,618,141
0
0
null
null
null
null
UTF-8
Python
false
false
1,459
py
class MyQueue(object): def __init__(self): """ Initialize your data structure here. """ self.stack1 = [] self.stack2 = [] def push(self, x): """ Push element x to the back of queue. :type x: int :rtype: void """ self.stack...
[ "zuoxianqing@163.com" ]
zuoxianqing@163.com
47c3d8019181b00a4cc6f1e528455517694034d1
1662507ec7104531e4e54209fc32bfdf397b60cd
/backend/wallet/models.py
c0d4a9fbfaf096d0cda2c061ebe3a3c6041ebd63
[]
no_license
crowdbotics-apps/home-trend-24478
4b2397fbefc9469e2d8f00240dff0b3fc3eaa368
850309d0bb282cf824f8b8d42ef8c6ab3c43bc1c
refs/heads/master
2023-03-07T18:34:15.590576
2021-02-20T00:34:25
2021-02-20T00:34:25
338,431,886
0
0
null
null
null
null
UTF-8
Python
false
false
2,762
py
from django.conf import settings from django.db import models class PaymentMethod(models.Model): "Generated Model" wallet = models.ForeignKey( "wallet.CustomerWallet", on_delete=models.CASCADE, related_name="paymentmethod_wallet", ) account_token = models.CharField( max...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
fd9e1af03b971a1db1d6893bbd1eb4399fbcb3d6
b6c09a1b87074d6e58884211ce24df8ec354da5c
/1720. 解码异或后的数组.py
62dc31fa20f8ded1e4528d692e236b11be60047e
[]
no_license
fengxiaolong886/leetcode
a0ee12d67c4a10fb12d6ca4369762ab5b090cab1
4c0897bc06a297fa9225a0c46d8ec9217d876db8
refs/heads/master
2023-03-18T22:16:29.212016
2021-03-07T03:48:16
2021-03-07T03:48:16
339,604,263
1
0
null
null
null
null
UTF-8
Python
false
false
896
py
""" 未知 整数数组 arr 由 n 个非负整数组成。 经编码后变为长度为 n - 1 的另一个整数数组 encoded ,其中 encoded[i] = arr[i] XOR arr[i + 1] 。例如,arr = [1,0,2,1] 经编码后得到 encoded = [1,2,3] 。 给你编码后的数组 encoded 和原数组 arr 的第一个元素 first(arr[0])。 请解码返回原数组 arr 。可以证明答案存在并且是唯一的。   示例 1: 输入:encoded = [1,2,3], first = 1 输出:[1,0,2,1] 解释:若 arr = [1,0,2,1] ,那么 first = 1 ...
[ "xlfeng886@163.com" ]
xlfeng886@163.com
e7f0c5c99e3c97c1f893a277a28384ed826dae22
3fc69f8ff0b46be4b51a6aace8292669667dc73f
/mask_detect/stats/models.py
ad366a5951330fab154280b97ce1ea8c45e558c2
[]
no_license
Maddie02/mask-detector
19fb616e9d74419b50bc860faacba9a6e4c2a8e6
77f5d2940e7d78622278071b2d14d1ad2d48d5d4
refs/heads/main
2023-04-21T09:45:24.946492
2021-04-09T14:19:01
2021-04-09T14:19:01
308,363,915
0
0
null
2021-04-09T14:00:02
2020-10-29T15:04:30
Jupyter Notebook
UTF-8
Python
false
false
755
py
from django.db import models from accounts.models import Employee class Statistic(models.Model): employee = models.OneToOneField(Employee, on_delete=models.CASCADE, null=True) all_violations = models.IntegerField(default=0) last_seen_without_mask = models.DateTimeField(null=True) def __str__(self): ...
[ "madlensarkisian@gmail.com" ]
madlensarkisian@gmail.com
4424ea1b3cbe8a4131ced9d2daad60c5f6fce5f5
92f8466363e7d930e8516300f9ddc4d674008221
/Testes/teste_leitura_base.py
64208c99f9eb189fa9280da38d7671099d10663f
[]
no_license
ViniBiajoni/StateEstimator
570f3afc7f583936f675498f2177ca25735625ae
d75c143120b618833eb11a89645f8a003ca2e4e6
refs/heads/master
2023-07-11T16:57:22.599890
2021-08-26T18:45:22
2021-08-26T18:45:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
272
py
import numpy as np month=['jan', 'fev', 'mar', 'abril','maio','jun','jul','agost','set','out','nov','dez'] year=['2019'] caso=['14Bus_Base'] file= 'Medidas\int_5-5min\Medidas_ieee_' + month[0] + '_' + year[0] + '_' + caso[0] + 'SE.txt' meas = np.loadtxt(file) print(meas)
[ "vinibiajoni@gmail.com" ]
vinibiajoni@gmail.com
c17c177f1e0e41c6cc8ac57a0ae622644ba082ab
245ceae27f0fbb5185d57976317c5bb376c9b617
/Languages/Python/mcm.py
1c2d9ef17af99fb74c0778340b827b7ed380f649
[ "MIT" ]
permissive
ABHISHEK-AMRUTE/Hacktoberfest-1
e9a6e1a3abe1b8d038f856a1aaa6c9b8da313301
38f7381c16fb35e10bbc32c7105414073cc3e8d2
refs/heads/master
2022-09-20T07:15:26.707100
2019-10-28T09:44:15
2019-10-28T09:44:15
218,013,374
2
0
MIT
2022-09-10T15:11:27
2019-10-28T09:43:41
C++
UTF-8
Python
false
false
1,155
py
# Dynamic Programming Python implementation of Matrix # Chain Multiplication. See the Cormen book for details # of the following algorithm import sys # Matrix Ai has dimension p[i-1] x p[i] for i = 1..n def MatrixChainOrder(p, n): # For simplicity of the program, one extra row and one # extra column are allocated in...
[ "sakshamtaneja@Sakshams-MacBook-Air.local" ]
sakshamtaneja@Sakshams-MacBook-Air.local
5df9e7d1f970854f9b25a62a472d11be15e0cbdf
408b405d1dc185cb7644fecb842461e969dcf494
/profiles/profiles/urls.py
56a846f256e2a2847b0fb1a45b25063c09976ece
[ "MIT" ]
permissive
Manju2012/Manju2012-profiles-rest-api
7e26167e7935e9bcda404663ddaf951dc8147583
b486e865010100454d59433be4cdd579de79928d
refs/heads/master
2023-05-09T15:26:43.765013
2021-05-19T10:11:39
2021-05-19T10:11:39
367,035,181
0
0
null
null
null
null
UTF-8
Python
false
false
794
py
"""profiles URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
[ "naganurprasad@yahoo.in" ]
naganurprasad@yahoo.in
0f9b9713daebb95fb5fdb1e6dbd63f31d8427286
3b8d68f024646db4de6bb71e2f75acc25a2e6554
/todo/settings.py
019fc21e61fc7303739d53270e4fbc727f2c79d2
[]
no_license
kgmaxwell1990/django-todo
dde6ae21372b1819f690f00554ccf0122332deee
77392c7f3a8c1a7a5db53b705e553cef212dc3fa
refs/heads/master
2021-08-11T11:11:37.730092
2017-11-13T16:05:56
2017-11-13T16:05:56
110,008,119
0
0
null
null
null
null
UTF-8
Python
false
false
3,123
py
""" Django settings for todo project. Generated by 'django-admin startproject' using Django 1.11.7. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os im...
[ "katie@codeinstitute.net" ]
katie@codeinstitute.net
1ea6daf003707ce50ab5b63472bc6e8fb402e115
07bf6fb129048e93bfb1bde5c9f57f44870d0336
/ta.py
93ffc371bae5b137e73ffca18f347f529673fbbc
[]
no_license
ayun2001/asd1234qd_trader
ec79309857573e890882b5fc7d9fd60b11b11c00
bfcc1abc7ea1cb749f482780489869f7d988cf73
refs/heads/master
2020-04-15T11:12:36.661127
2019-01-18T07:33:35
2019-01-18T07:33:35
164,619,777
0
0
null
null
null
null
UTF-8
Python
false
false
4,973
py
# coding=utf-8 import talib import common class TA(object): def __init__(self): if not common.file_exist(common.CONST_DIR_LOG): common.create_directory(common.CONST_DIR_LOG) @staticmethod def make_macd_data(dataset, s=12, l=26, m=9): # MACD数据一定要长时间的数据 30个数据点不够, 至少需要90, 这样数据才准 ...
[ "lishengyan@lichengyandeiMac.local" ]
lishengyan@lichengyandeiMac.local
9afe676c878fcd117a985ef2ca7fd25fdf3c3fec
63ca8081ba3e43e7658a500498c41a476b1fa2d2
/app.py
7507e9c3ffea58425ebe4677b8018958ddfca68e
[]
no_license
domoniquecox/eagle-eye
0aad3b930e68c03ec13329fe453579eca1ae672c
ab1936f0d6887bd1b4f9e0d1e15d77ceee6c011d
refs/heads/master
2020-12-19T07:19:12.247589
2020-04-28T20:47:59
2020-04-28T20:47:59
235,660,836
0
1
null
null
null
null
UTF-8
Python
false
false
3,794
py
import cv2 from flask import Flask, render_template, session, redirect, request, url_for, Response import os import firebase_admin import firebase import pyrebase import sys from subprocess import run,PIPE from firebase_admin import credentials, firestore from functools import wraps config = { "a...
[ "noreply@github.com" ]
noreply@github.com
345bcde7408a2d774ec98727350693d566242b99
006ff11fd8cfd5406c6f4318f1bafa1542095f2a
/Geometry/CMSCommonData/python/cmsExtendedGeometry2015XML_RPC2Gap_cfi.py
400cbd05035b4ff5689fd24ee8fd31feea7fbe54
[]
permissive
amkalsi/cmssw
8ac5f481c7d7263741b5015381473811c59ac3b1
ad0f69098dfbe449ca0570fbcf6fcebd6acc1154
refs/heads/CMSSW_7_4_X
2021-01-19T16:18:22.857382
2016-08-09T16:40:50
2016-08-09T16:40:50
262,608,661
0
0
Apache-2.0
2020-05-09T16:10:07
2020-05-09T16:10:07
null
UTF-8
Python
false
false
15,587
py
import FWCore.ParameterSet.Config as cms ## Everything that is currently in the PostLS1 geometry (rpc,csc,beampipe) XMLIdealGeometryESSource = cms.ESSource("XMLIdealGeometryESSource", geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/materials.xml', 'Geometry/CMSCommonData/data/rotations.xml', ...
[ "giulio.eulisse@cern.ch" ]
giulio.eulisse@cern.ch
a809cf5f7c25bbfabfc4c575d1a07b237ec8bc9c
018d3ade7ce3c9797ec53e5b29e93c343cbd41e3
/test/test_dynamic_shapes.py
0d421b04008d224758407fdd0b571cdfd72af613
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
aiot-tech/pytorch
016574055a306f58a46308e4971cf180ffc92e4d
46730aec35ee047b92b288e0366da0f7e993e5ae
refs/heads/master
2022-11-18T14:01:22.576441
2022-11-04T23:11:17
2022-11-05T05:42:07
102,860,737
0
0
null
null
null
null
UTF-8
Python
false
false
20,297
py
# -*- coding: utf-8 -*- # Owner(s): ["oncall: jit"] from torch._C import _disabled_torch_function_impl import torch.fx import torch.nn.functional as F from torch.testing._internal.common_utils import run_tests, TestCase, skipIfTorchDynamo, \ IS_WINDOWS, parametrize, instantiate_parametrized_tests import unittest i...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
f23d73d2815a3e756ad65a90979bd0b36bba33f3
6e8719e86a1b6bef6b7a923bec99ed74936f3972
/budget-app/BudgetApp.py
576feae95b73fbd5a1da47df37042fb425e7b674
[]
no_license
agnesho/scientific-computing-projects
f7808e3e069a2302f02df20bffc86b67b4933461
07f14a0fb787ef713ec39a391e3fec5b301cdc8e
refs/heads/main
2023-06-04T13:59:15.143562
2021-06-20T02:11:05
2021-06-20T02:11:05
378,539,316
0
0
null
null
null
null
UTF-8
Python
false
false
2,982
py
class Category: def __init__(self, category_name): self.name = category_name self.ledger = list() def deposit(self, amount, desc=None): if desc == None: desc = "" self.ledger.append({"amount": amount, "description": desc}) def withdraw(self, amount, desc=""): if self.check_funds(amo...
[ "hoagnes@yahoo.com.sg" ]
hoagnes@yahoo.com.sg
d2a632f411a948ce72638cfc9cc2bc817a789e22
380ca73a9fa28b27dfcba3b3a30588853cf8fda9
/miappotro/link.py
c84c6c7f766ffaa14b655289078604b08f81bb12
[]
no_license
Alejandro-Gutierrez/django
71394a766d07c054fd2038f3b9adbed1291dec66
786cbc2122ba35b99dd1c2c11264576ca4bbef48
refs/heads/master
2021-06-22T22:03:53.451226
2019-08-15T23:02:50
2019-08-15T23:02:50
202,214,891
0
0
null
2021-06-10T22:02:20
2019-08-13T19:56:58
Python
UTF-8
Python
false
false
258
py
from django.urls import path from miappotro.views import * urlpatterns = [ path('', saludar), path('Cocinero/new', cocinero), path('perro/new', perro), path('gato/new', gato), path('loro/new', loro), path('tiburon/new', tiburon), ]
[ "alejandroluis444@gmail.com" ]
alejandroluis444@gmail.com
de25130f84581c63b98110512d16ae48fb0b9636
d2665b95ccbd1eecc5b92a1cd69233f2eab74cb0
/prototype.py
88df86304ba38569ee79daa960e8809680ab1dfa
[]
no_license
sychov/patterns
32a240a2318a7b932fdcc5c1784f13f35769fa3c
f70bddced432b963ac83d865f873088672568e07
refs/heads/master
2020-05-18T13:13:44.737147
2019-05-01T15:00:18
2019-05-01T15:00:18
184,432,887
0
0
null
null
null
null
UTF-8
Python
false
false
1,593
py
#-----------------------------------------------------------------------------# # Name: prototype.py # Author: Ryoga # Created: 18.04.2019 # Description: "Prototype" pattern. # Main idea: copying object using it's own method. #----------------------------------------------------------------...
[ "alexx-lawyer@yandex.ru" ]
alexx-lawyer@yandex.ru
794e2904caebb85aa81ccb41eaed66721843747f
09301c71638abf45230192e62503f79a52e0bd80
/besco_erp/besco_warehouse/general_stock_fifo/__openerp__.py
7aa0010772448e6c5236add7f97c1eec77d47520
[]
no_license
westlyou/NEDCOFFEE
24ef8c46f74a129059622f126401366497ba72a6
4079ab7312428c0eb12015e543605eac0bd3976f
refs/heads/master
2020-05-27T06:01:15.188827
2017-11-14T15:35:22
2017-11-14T15:35:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
841
py
# -*- coding: utf-8 -*- ############################################################################## # ############################################################################## { "name" : "General Stock FIFO", "version" : "9.0", "author" : "Le Truong Thanh <thanh.lt1689@gmail.com>", 'category':...
[ "son.huynh@nedcoffee.vn" ]
son.huynh@nedcoffee.vn
351803413cf100483f00adc08ebc22983a6b6c58
50a3c6da75543b4cefd1054a7f1cb2fc06189397
/multiagent/run.py
acb9b3b679b93799d4c24b5804a943a2f641bb76
[]
no_license
anuragdutt/gasil_robotics
99865f8c3964c8c0fe6866a10507804501f36273
132c7fc834a507faf2e9a1d15d290c3d7963dd10
refs/heads/master
2023-03-07T06:20:46.105025
2021-02-16T05:34:15
2021-02-16T05:34:15
264,075,668
2
0
null
null
null
null
UTF-8
Python
false
false
24,268
py
# -*- coding: utf-8 -*- import os import pickle os.environ['CUDA_VISIBLE_DEVICES'] = '-1' # 使用 GPU 0 import tensorflow as tf import numpy as np import algorithm.common.tf_utils as tf_utils import time import random # read input cmd from standard input device flags = tf.app.flags # Game parameter flags.DEFINE_strin...
[ "anurag2709@gmail.com" ]
anurag2709@gmail.com
9ae53a696d6932a42cbec2b3dbdcca559ebf6b4d
af15fc08a85e9f98db34293764adc4e26a0c0441
/Python3/generators.py
7ccb5ce8cc4ac51f0284193204159937f986502b
[]
no_license
mmuazam98/python-basics
d187ad14fd9d231ea281c22613138ace90937f7a
37e616709a05f4fa44b748e9eb367f522ed72a49
refs/heads/master
2023-04-07T11:34:11.362978
2021-04-22T08:29:02
2021-04-22T08:29:02
313,984,508
1
0
null
null
null
null
UTF-8
Python
false
false
708
py
def main(): # for i in range(10): prints 0-9 # for i in inclusive_range(10): prints 0-10 for i in inclusive_range(1,10,2): print(i, end=' ') print() def inclusive_range(*args): numargs = len(args) start = 0 step = 1 if numargs < 1: raise TypeError(f'expected atleast 1...
[ "mm9084@srmist.edu.in" ]
mm9084@srmist.edu.in
dc2fa899111262ff07ca26dd5d3f00391c89999a
22a0715a4b71deb014cfc333c496385553ed2261
/dijkstra.py
c402863ca15199af38af954715a84ac199bb08c9
[]
no_license
Kharya3/algo
044d8716e65e038f5b5d94f86970bfc886caba93
9df53fc2e8a57fe7cb0d0a4ba198c622953ec801
refs/heads/master
2022-12-22T02:52:40.616235
2020-09-16T08:56:12
2020-09-16T08:56:12
280,258,290
1
0
null
null
null
null
UTF-8
Python
false
false
565
py
from collections import defaultdict def djk(s): X = {s} ln[s] = 0 while X: v = X.pop() for w, weight in g[v]: if ln[w] > ln[v] + weight: ln[w] = ln[v] + weight X.add(w) mx = 10 ** 7 g = defaultdict(list) with open("dijkstraData.txt") as file: ...
[ "noreply@github.com" ]
noreply@github.com
7caca9b675e58b3cf92fdadfc2e2d255f90c481f
63bdeab4f5ed48acfc6fa919ead31244cbd1d7e7
/agentnet/utils/__init__.py
a719f81e995ab17066de7ec9c435a8c0f4504c72
[ "MIT" ]
permissive
gitter-badger/AgentNet
5bad5b4d14cea4a72e785dedcd7206c35f9f0354
ee3aba8b7c799427eba69e9a91e3b5a0f5936094
refs/heads/master
2020-12-11T03:55:21.817033
2016-05-03T21:17:20
2016-05-03T21:17:20
58,045,765
0
1
null
2016-05-04T11:06:29
2016-05-04T11:06:28
null
UTF-8
Python
false
false
164
py
__doc__ = """helper functions for symbolic theano code""" from tensor_ops import * from grad import * from shared import * from persistence import *
[ "jheuristic@cv-gpu01h.ydf.yandex.net" ]
jheuristic@cv-gpu01h.ydf.yandex.net
bd40e87cf094c91dcb5d4c15d6fec0e2daf3068f
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/spaCy/2016/4/test_flag_features.py
880704e28905500ee8aa5b21c6e60fc6e73fdc58
[ "MIT" ]
permissive
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
1,333
py
from __future__ import unicode_literals import pytest from spacy.orth import is_alpha from spacy.orth import is_digit from spacy.orth import is_punct from spacy.orth import is_space from spacy.orth import is_ascii from spacy.orth import is_upper from spacy.orth import is_lower from spacy.orth import is_title @pytest...
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
9d92b6a68e48dc9a49b6e6121c3804f805be4957
f419df1d9c148d0964f05c74ada4f3f218db49b7
/征收所得税问题.py
3f7579b7c32356803d0cb4138f3f871460d336a0
[]
no_license
1354107742/PythonForLearning
5c915be8639cca7074eb902fa7623623a9b67783
780e88b56927db532d0efc004279eff263beb439
refs/heads/master
2020-05-06T13:24:42.090563
2019-07-31T09:23:33
2019-07-31T09:23:33
180,135,107
1
0
null
null
null
null
UTF-8
Python
false
false
463
py
money = int(input('请输入你的个人所得:')) income = 0 if money < 2000: print("你的收入竟然都不用交税,真是可怜") elif 4000 > money >= 2000: income = money - 2000 * 0.03 elif 6000 > money >= 4000: income = money - 2000 * 0.03 - 2000 * 0.04 elif 8000 > money >= 6000: income = money - 2000 * 0.03 - 2000 * 0.04 - 2000 * 0.08 else:...
[ "1354107742@qq.com" ]
1354107742@qq.com
0a069c40b9b698414eb9696b83360c0c93a6f9a9
53dde7748eea471a047942bfcb7f445734bb2c5e
/grafica.py
25b0fa080f4bee7c69b41b75024c8a032592d382
[]
no_license
MicheleCESO/ROAmbulatori
e5e539a6855ce05a91e6513b751519b77b783f74
fd1a25b7f707d10c3e43418f424bdfb3debff9de
refs/heads/master
2023-03-19T09:42:24.280580
2021-03-08T17:10:11
2021-03-08T17:10:11
194,710,759
0
0
null
null
null
null
UTF-8
Python
false
false
7,363
py
from PyQt5 import QtWidgets, uic, QtGui, QtCore import sys class MainWindow(QtWidgets.QMainWindow): def __init__(self, conf): super(MainWindow, self).__init__() self.config = conf # Configurazione uic.loadUi("GUI.ui", self) # Passaggio parametri a widget self.istanza.inizializzaPar(conf, "Istanza") self...
[ "michele.cesari@student.unife.it" ]
michele.cesari@student.unife.it
466a8429bb24cc0cb7bcbc85315544ca6ba9f6fc
32721405fb7e1c1acc130784c17e40bb67034d4b
/src/layout.py
0cf2693c10f6ba4c28ffc7d19c218a66d1f506a7
[]
no_license
ryanQc1216/AutoLayout
b874955805b61c587ee804f9a90e0283afa3d68a
61ec93c55f864f34c96987d57b8c19db4a1d65c1
refs/heads/main
2023-03-07T20:26:04.102543
2021-02-14T03:51:57
2021-02-14T03:51:57
338,213,982
0
0
null
null
null
null
UTF-8
Python
false
false
17,568
py
import os import cv2 import json import copy import numpy as np import itertools import functools import random from src.node import Coordinate, Node, Group, get_default_text_size from src.render import Render, MAX_VALUE, MIN_VALUE, SMALL_VALUE def parsing_children_description(description): if 'children' not in d...
[ "qiancheng1216@163.com" ]
qiancheng1216@163.com
f9774489922882cc2d1ea68f918e5fb9a808c4e8
6f98f1a573b0de18982bf20aa307778dc0eecc20
/NameAndColor.py
709eee38c3d14fa692bf027af05cb5000b831176
[]
no_license
ArnavPalkhiwala/PythonBasics
0eee6dcb4d18792feb3245ae324337d4a3b3d9ff
dafea8c9f4dda4baaed62c8c1978b8f6106f7360
refs/heads/master
2022-11-22T14:50:09.548758
2020-07-24T06:26:10
2020-07-24T06:26:10
256,051,132
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
name = input("What is your name? ") print("Hi " + name) color = input("What is your favorite color? ") print(name + " likes " + color)
[ "noreply@github.com" ]
noreply@github.com
1e9432aa6ff5d3d51c600b42a5c2491c7b26584b
547909f2d5c06848910f23c9e251c404212d6fb4
/dl2cvt.py
a48553306599c95b74b7a40423fe1208eae87f79
[ "MIT" ]
permissive
aldebaran1/gpstec
015ba9a72f4116f45d83bdf583deb6320afe622a
e8d0e38d89a1399741a63c0aa1f8e5ccf7ada9ba
refs/heads/master
2022-03-11T00:29:42.696872
2022-02-11T23:37:33
2022-02-11T23:37:33
151,584,490
1
4
null
null
null
null
UTF-8
Python
false
false
1,072
py
# -*- coding: utf-8 -*- """ Created on Fri Feb 11 12:15:36 2022 @author: smrak@bu.edu """ from datetime import timedelta, datetime from dateutil import parser from argparse import ArgumentParser import subprocess def main(start: str = None, stop : str = None, los : bool = False):# timeout = 900 if los else ...
[ "sebastijan.mrak@gmail.com" ]
sebastijan.mrak@gmail.com
c0a8d77794fc0b272d8c8f71e38f1ad636e7b10b
27144798510348ac511fafb2c451a18735933aa3
/ml_service/cleaning.py
b0fe778d53400f593bb3a6ac76c9ea0feffec5b7
[]
no_license
zhangzexi/capstone
c02019e05d235cc9485f60355f79dd40e3395774
dd37613e76fb633253b13403ad4182308aaee4dd
refs/heads/master
2021-01-18T16:42:44.858129
2018-01-16T07:29:07
2018-01-16T07:29:07
86,756,313
0
2
null
null
null
null
UTF-8
Python
false
false
2,477
py
import pandas as pd from pymongo import MongoClient pd.options.mode.chained_assignment = None def _connect_mongo(host, port, username, password, db): """ A util for making a connection to mongo """ if username and password: mongo_uri = 'mongodb://%s:%s@%s:%s/%s' % (username, password, host, port, db...
[ "zhangzexi.dz@gmail.com" ]
zhangzexi.dz@gmail.com
321218c294aead0ab1e1b51e4d6843485439ce23
89d220f0e0884963279c25dc8bd77bf1f6697ee8
/imagemix.py
839d4fbe01b5510cac161c30e0364fd813788ffb
[ "MIT" ]
permissive
AdityaPai2398/neural_style_transfer_app
2103961aa307d447050a0d8df4028331a530dea3
d87a60fb38e025eaf5ec34c145fefe7446f1e236
refs/heads/master
2020-03-22T03:57:01.236504
2018-07-02T05:35:35
2018-07-02T05:35:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
69,319
py
from kivy.clock import Clock from kivy.uix.screenmanager import ScreenManager from outputscreen import OutputScreen from configscreen import ConfigScreen from contentscreen import ContentScreen from stylescreen import StyleScreen from fastgraphconfigscreen import FastGraphConfigScreen from fastergraphconfigscreen imp...
[ "ansh.iam@gmail.com" ]
ansh.iam@gmail.com
b67c35de5858f8d010e21e187124471ece32cac7
c6e6ad3d3d2b0737a3f75690043767358bf0e959
/Week5/ps5.py
4ff856cf4e91d86512624c03bb911961ec98c867
[]
no_license
wesenu/edx.computational.thinking
c4a43090d46644a5da76b681ba17d80c6ca06c43
f7c80489909b049bb221095130e0639b57813205
refs/heads/master
2022-02-24T17:53:22.314907
2016-05-06T10:58:26
2016-05-06T10:58:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,731
py
# 6.00.2x Problem Set 5 # Graph optimization # Finding shortest paths through MIT buildings # import string # This imports everything from `graph.py` as if it was defined in this file! from graph import * # # Problem 2: Building up the Campus Map # # Before you write any code, write a couple of sentences here # des...
[ "dbnulles@gmail.com" ]
dbnulles@gmail.com
29fdc94457c0a0b0a4ee44a2b125ab4a859821e0
4fe11812295499df6785139a7b63cf1bd7d6a16b
/other/Leetcode1685.py
7fc7b632d074c91ef9bc736414f39bff0ee7a84b
[]
no_license
moonlight035/algorithm
2f25a5ea77806bc2dad086bb90be7597e2bc2968
e178f91ebffff06977e8c231de12786a72b3b13d
refs/heads/master
2022-12-21T19:54:29.037097
2020-09-18T06:51:53
2020-09-18T06:51:53
266,728,998
0
0
null
null
null
null
UTF-8
Python
false
false
970
py
from typing import List class Solution: def findMagicIndex(self, nums: List[int]) -> int: res = -1 next = [[0,len(nums)-1]] while next: left,right = next.pop() while left <= right: mid = left + (right-left) // 2 if nums[mid] == mid: ...
[ "jing.liu14@ucarinc.com" ]
jing.liu14@ucarinc.com
790e09716ca634f73859962629960782dccd97b8
2580d5f300369d4e3234e58c46a56ba641563afa
/Test_Folder/testdriver.py
5302ead44ffd6af879fa93bb3ec9f8a778f0fa0f
[ "MIT", "BSD-3-Clause" ]
permissive
DCZYewen/OpenOLS
465d5df652bc40b9da02c4edefbcb2dd19c04b4e
c2a579c8a5bcc5860062694326c35dd29c81c235
refs/heads/master
2022-11-16T10:13:56.864340
2020-07-11T17:29:37
2020-07-11T17:29:37
252,991,070
5
0
null
null
null
null
UTF-8
Python
false
false
723
py
import libo2lsdb as o2lsdb #o2lsdb.insertFulline('USERS',o2lsdb.makeInsertLine(99999996,'sabee',2099,99,99999997,'pbkdf2:sha256:150000$KtVm7aor$07665da0754c2da66cb1b6945fd057f334cc6562ea8dccfb2aa52a2df4793c7a','sabee','sabee','0','2002020202020200','男','无','无')) #pass! #o2lsdb.deleteByID('USERS',99999996,'user_id') #...
[ "lzhallinone@outlook.com" ]
lzhallinone@outlook.com
5acdd811894d586d73a7e4957bf4f0ed4a5a5ff8
b3ac5b9905871ce0d3270587b30cac32da4583ae
/app.py
fdcb4abb1371c3ae8054deec6d8269a72fd4e2e0
[]
no_license
dcesarz/Taylor-series-for-e-x-implementation.
222bd35f1227896bfd882b8ec600a68e1cf4f9ba
b3036ca801b2f5a504206cd4796739b7766c0cdd
refs/heads/master
2020-12-20T07:06:26.413135
2020-01-24T12:12:40
2020-01-24T12:12:40
235,996,596
0
0
null
null
null
null
UTF-8
Python
false
false
4,636
py
import math import plotly.graph_objects as go import numpy as np import sys sys.stdout = open('DANE', 'w') y2_fin = np.zeros(1000000) y3_fin = np.zeros(1000000) iterate = 0 def rel_err(a, b): n = (math.exp(a) - b) / math.exp(a) return abs(n) # ZE WZORU TAYLORA def taylor_e(x, n): ...
[ "noreply@github.com" ]
noreply@github.com
7e6bb6b7c3d1c869203218a0eaf61d13e5e6e0e3
ea7ec89ec3823b2f05f5c9a426e42905c4b661d3
/catkin_ws/build/ardrone_autonomy/cmake/ardrone_autonomy-genmsg-context.py
9ce3078a49947a1187646853c365ad2bd9e38bf6
[]
no_license
davidhudsont/Senior_Project_SWARM
0bd2c1bf851b886621e2d814128df135c946e44e
6e6b9c984de54163b4131624bba7bfc1180df83b
refs/heads/master
2021-06-03T00:08:07.804922
2020-03-25T19:47:39
2020-03-25T19:47:39
107,053,266
0
0
null
null
null
null
UTF-8
Python
false
false
2,981
py
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/home/viki/catkin_ws/src/ardrone_autonomy/msg/matrix33.msg;/home/viki/catkin_ws/src/ardrone_autonomy/msg/navdata_adc_data_frame.msg;/home/viki/catkin_ws/src/ardrone_autonomy/msg/navdata_altitude.msg;/home/viki/catkin_ws/src/ardrone_autonomy/msg/navdat...
[ "hkdavid74@gmail.com" ]
hkdavid74@gmail.com
24875a336f66ccd4c114ada3a3e42c2d603c2639
e81d274d6a1bcabbe7771612edd43b42c0d48197
/数据库/03_Redis/day48(主从服务器)/demo/02_python操作redis/01.py
9cef9a735360a75455cde6d390c9cebd36992a94
[ "MIT" ]
permissive
ChWeiking/PythonTutorial
1259dc04c843382f2323d69f6678b9431d0b56fd
1aa4b81cf26fba2fa2570dd8e1228fef4fd6ee61
refs/heads/master
2020-05-15T00:50:10.583105
2016-07-30T16:03:45
2016-07-30T16:03:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
#推荐网站 #http://python.jobbole.com/87305/ import redis #获取连接对象 当我们用Redis和StrictRedis创建连接时,其实内部实现并没有主动给我创建一个连接,我们获得的连接是连接池提供的连接,这个连接由连接池管理,所以我们无需关注连接是否需要主动释放关闭的问题。另外连接池有自己的关闭连接的接口,一旦调用该接口,所有连接都将被关闭,连接池的操作不需要程序员管理,系统redis模块自动管理好了。 conn = redis.StrictRedis('127.0.0.1',6379,password=123456) #如果是多个增删改,使用管道对象,默认先存在管道中,当e...
[ "1025212779@qq.com" ]
1025212779@qq.com
2690ccbc7a050b0c554ac9b2591656a86135599d
17078503a7d75f8ef3875c3df5effc8eaf5b67dd
/TurboCopCLI/turbocop.py
7e020fea528c1d725f579e42811768824da94cd3
[]
no_license
dpleshkov/turbocop
4feff74aaa73e1d358226036127dccf4e83a6dc2
773f8ce2048422c3aff6a42e87e5ba61a353a38f
refs/heads/master
2023-08-30T09:54:41.259976
2021-05-14T03:55:43
2021-05-14T03:55:43
223,249,995
0
0
null
2021-08-12T09:33:14
2019-11-21T19:33:45
JavaScript
UTF-8
Python
false
false
1,901
py
#!/usr/local/bin/python3 from time import sleep from webbrowser import open as web_open from termcolor import cprint from json import loads as json_loads from urllib.request import urlopen from sys import exit as sys_exit cprint("Welcome to TurboCop™.", "red") cprint("Program Version: Nov 28 2019 dev release", "yello...
[ "dpleshkov.usa@gmail.com" ]
dpleshkov.usa@gmail.com
b3eb7fb7fa1348c16caf5a59c321cebec111e272
a2b898d08c228381c03dbeb7ef431cce5a8b5bc4
/deep-tree/cheat/test_deep_tree.py
d3f0eab4e4bf534ecc00917f99558e5bb5f278f4
[]
no_license
jtv/eohn-python
e6295b0aebf03c8a07f502da442067de2573d98c
f0b97ec35e983c313a28b528ab79243fe819d634
refs/heads/master
2023-08-15T02:40:48.129929
2017-11-27T10:54:43
2017-11-27T10:54:43
111,695,329
0
0
null
null
null
null
UTF-8
Python
false
false
1,951
py
"""Tests for deep_tree. We'll try to test every function in detail. """ from deep_tree import ( locate_log, print_log, read_log, ) from given import write_text_file from helpers import ( make_temp_file, make_string, ) import json from mock import patch from unittest import TestCase class ...
[ "jeroen.vermeulen@eonics.nl" ]
jeroen.vermeulen@eonics.nl
1a4a84046bb067d8317cba7a3dfb51fef729d588
abf44e8ac8325e1c95b0d0569baee19b8f725b0a
/1_slide_window/7.py
79fadc05e2ce3816ac627747f460e59868bd8734
[]
no_license
terrifyzhao/educative2
05994b0e7f4e0c8d4319106eddd48ba1dfe5317d
00e9d630da117fa9550f2efb2191709734c63c8a
refs/heads/master
2022-12-24T02:51:18.671842
2020-09-24T07:43:08
2020-09-24T07:43:08
276,569,403
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
def length_of_longest_substring(arr, k): start = 0 max_len = 0 count_1 = 0 for i in range(len(arr)): num = arr[i] if num == 1: count_1 += 1 if i - start + 1 - count_1 > k: num = arr[start] if num == 1: count_1 -= 1 ...
[ "zjiuzhou@gmail.com" ]
zjiuzhou@gmail.com
70c639168190033b173f7a292cbe30b9792aca6f
11dcfa814a937cd862acc9bdb68c99c5e1717be7
/fine_refining.py
e53fc771e7aee96d1870998b9a1d022df6fb9d55
[ "Apache-2.0" ]
permissive
tanveer-hussain/DeepRes-Video-Summarization
54ee11adabf437838c1134b26c89a8ca3cf9da9f
2a7bea0d9c665896f45e408274ed1c40c6da70f3
refs/heads/master
2022-09-21T07:39:33.032017
2021-02-04T06:52:15
2021-02-04T06:52:15
222,349,250
4
4
null
null
null
null
UTF-8
Python
false
false
3,072
py
# -*- coding: utf-8 -*- """ @author: Tanveer """ from __future__ import print_function import numpy as np import glob import os import caffe import cv2 from scipy.spatial import distance proto = "Models/deploy.prototxt" model = "Models/squeezenet_v1.1.caffemodel" caffe.set_mode_cpu() net = caffe.Net(proto, model, ca...
[ "40714349+tanveer-hussain@users.noreply.github.com" ]
40714349+tanveer-hussain@users.noreply.github.com
ef5ee3d5be4ed2ccc483f52d41f60c57932a9c32
ea62b28a735066cd48b4c0b04eb4b44ea9efc8c0
/logicaloperators.py
a8f9add8fb3c02c3cce7063f07df80b39bd71b5d
[]
no_license
dsv48/python
7598f2de64e6fd899e97c6c7d9adc272afbbfddd
d2b99ef9d94991c1b090c36abee7719d47f70a72
refs/heads/master
2020-11-25T12:55:41.572337
2019-12-23T18:42:44
2019-12-23T18:42:44
228,662,799
0
0
null
null
null
null
UTF-8
Python
false
false
77
py
a = True b = False print(a and b) print(a or b) print(not a) print(not b)
[ "dev1@gmail.com" ]
dev1@gmail.com
711b1bad3bc88ffe27fe6f94932ad3d106dabdd2
e0ff2350d7f73143bbada6be525615a9c573a06f
/myclang/enumerations.py
c69e010489de4be3c2d8bd467b585e1477f9ba6a
[ "Apache-2.0" ]
permissive
FindDefinition/myclang
19aeac05a58c269903e5aeda6c61689d5500def2
3fa641f3b4fa87e0d3b1d840288e61442293036a
refs/heads/master
2023-04-09T19:26:03.407365
2021-04-20T14:02:08
2021-04-20T14:02:08
309,330,283
0
0
Apache-2.0
2020-12-19T10:19:51
2020-11-02T10:07:21
C++
UTF-8
Python
false
false
1,102
py
#===- enumerations.py - Python Enumerations ------------------*- python -*--===# # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # #===---------------------------------...
[ "yanyan.sub@outlook.com" ]
yanyan.sub@outlook.com
f860c44d119e4913458cb56676421287f0a10d13
d543fc6acfc0e17c91312ce5a5e7d72a586e472b
/v3/utilityV3/utils.py
5b4920727accf49bf74183a016bd3b13cd6c228f
[ "MIT" ]
permissive
workofart/ml-trading-playground
7b6763a46905e5efffd0b8d88d182d56d79cea04
1c619a1917574220798a749fbad2ba1782207362
refs/heads/master
2021-12-15T03:26:57.466282
2021-12-06T01:47:49
2021-12-06T01:47:49
169,917,494
1
0
null
null
null
null
UTF-8
Python
false
false
2,854
py
import numpy as np import matplotlib.pyplot as plt import os import pandas as pd from sklearn.model_selection import train_test_split from sklearn.preprocessing import normalize as norm2 def read_data(filename, ticker): data = pd.read_csv(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'data', ...
[ "hanxiangp@gmail.com" ]
hanxiangp@gmail.com
957032a1a9290967c599011dccdf78a23bb502f8
c45dde290697c10a652e2a5c47d29b59956c29ed
/YALES2/PostProc.py
5a2ba9ae30605b3fb649f2dae006a42394edb856
[]
no_license
gmclove/pymoo-OpenFOAM-YALES2
c73092f12d481c4b8093edbcb99021bcd32153d1
e75abaf8347da29db23574444f4fbee46ae84ce1
refs/heads/main
2023-02-13T10:49:13.871800
2021-01-08T20:37:27
2021-01-08T20:37:27
328,003,083
0
0
null
null
null
null
UTF-8
Python
false
false
2,162
py
import os import subprocess import numpy as np class PostProc: def __init__(self, x, gen): self.x = np.array([[0, 1]]) #[[0, 1]] # x # create array for objectives self.obj = [] dataFile = 'ics_temporals.txt' # Extract parameters for each individual for ind in rang...
[ "noreply@github.com" ]
noreply@github.com
e64dd0cbc65a12a5db722c9d9271767c3209999a
6db9df0fc8629ca61601d8b556d9389feaac657c
/sources/ch06/heritage/rectangle.py
d4b6e8ef06c815d07c00312c51ee91516639bf15
[]
no_license
mba-tradelab/programmation_python_mathematiques
2297d618957cb22caaad4ab9f55640e12316eceb
8b79dffbe0a01ff67aed5d337a9d975f5e289866
refs/heads/main
2023-01-12T01:55:48.693084
2020-11-06T19:08:43
2020-11-06T19:08:43
248,700,679
0
0
null
null
null
null
UTF-8
Python
false
false
948
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ######################################################################## # (C) Alexandre Casamayou-Boucau, Pascal Chauvin, Guillaume Connan # # # # Complément de l'ouvrage : ...
[ "matthieu.brito.antunes@gmail.com" ]
matthieu.brito.antunes@gmail.com
81f5316150af9c908dd4b3ef8628cca2b90db2b0
8fc7635b84b42e61b7efb9eaf7215394b5b5790a
/aliennor-backend copy/aliennorDjangoBackend/aliennorDjangoBackend/wsgi.py
021b6e96cb9641200f626f50804bb038f497e40a
[]
no_license
phamcong/aliennor-platform
f1e8470aab7ed634859e071f6028931f576ddf3e
e1d71532426ac9414d2158d50ee34c32257618f0
refs/heads/master
2021-05-14T17:08:08.629564
2018-02-17T23:35:07
2018-02-17T23:35:07
116,038,495
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
""" WSGI config for aliennorDjangoBackend project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault...
[ "ccuong.ph@gmail.com" ]
ccuong.ph@gmail.com
38351f81842a4db9105255ea57908f440eb430a9
99063cd01e8c148cf62556c54e2c5c85767263bf
/license/migrations/0006_auto_20170620_2306.py
825d85a5e4c4f3381f03ddc16f27fc10da5f1e20
[]
no_license
Fynjiby/ZSP
316f37e47d2ac97d395486d21f6ec9768df46431
0bfe3542f78cfdb658d323d81a2288e1241e43e0
refs/heads/master
2021-05-02T08:36:18.699291
2018-02-08T19:49:22
2018-02-08T19:49:22
120,805,767
0
0
null
null
null
null
UTF-8
Python
false
false
1,875
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-20 20:06 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('license', '0005_auto_20170619_2214'), ] ...
[ "noreply@github.com" ]
noreply@github.com
e4677ab1274dc97869b710e764fc2d18a1774ce5
0df5c7a5385098861b6b1a3486c9ca8a11bd8c23
/maps/generate_maps.py
c7f787ec462c00b13f8068baea70b3faa89377f6
[]
no_license
MarkDabe/CS440_1
69a79c50f84013c88ce3bc2d8164e410e431eec0
a5527df215e61de95cee1cc71aa69528fb5d26de
refs/heads/master
2020-04-24T18:00:14.712342
2019-02-26T04:22:34
2019-02-26T04:22:34
172,166,308
0
0
null
null
null
null
UTF-8
Python
false
false
708
py
from random import random def build_grid(): for counter in range(1, 51): grid = [] for row in range(101): grid.append([]) for col in range(101): grid[row].append(0) gridLength = len(grid) for i in range(gridLength): for j in range...
[ "markhabashy91@gmail.com" ]
markhabashy91@gmail.com
c5b1ad656441fd3672b9400a47c2232d2e21ad2a
17a0ee47a7488b5bf1964118bc5bf3a78145dcb3
/plusOneRecursive.py
50051aa7f28351a9576875c7003aa29e4f3209e9
[]
no_license
kapil87/LeetCode
fec40c0b461495e3f8a8ea800ee0dc0c1e9e4e0f
1412ea8147fbda3bf60c7fa342dc4843c6a865d0
refs/heads/master
2021-07-19T21:07:08.506702
2020-06-28T02:12:13
2020-06-28T02:12:13
63,844,018
0
0
null
null
null
null
UTF-8
Python
false
false
880
py
class Solution(object): def plusOne(self, digits): """ :type digits: List[int] :rtype: List[int] """ def addOne(digits, index): #print 'Returning with index: %s, digits: %s'% (index, digits) if index == 0 and digits[index] < 9: digits[i...
[ "noreply@github.com" ]
noreply@github.com
0a4d4d56b30b5adc4cd0dd2722fb1366ef8b83f6
3f5b816d48fdb1e6580e457c444c84f753599d32
/src/Ruuvi_GW/ruuvi_status.py
eb9fb69aab6572c04edae08cc8eea3387bba8a2b
[]
no_license
theBASTI0N/ruuvi.gateway.micropython
1f3e8be7a0825a3c6c63a4897b71495453e297d7
9637eb271696234885c1bbb4487aef0ae95f875e
refs/heads/ruuvi_gw
2022-11-29T21:48:04.437305
2021-02-04T11:36:07
2021-02-04T11:36:07
250,762,893
3
1
null
2022-11-10T14:22:54
2020-03-28T10:08:11
Python
UTF-8
Python
false
false
983
py
from micropython import const RE_SUCCESS = const(0) RE_ERROR_DATA_SIZE = const(1 << 3) #//!< Data size too large/small. RE_ERROR_INVALID_PARAM = const(1 << 4) #//!< Invalid Parameter. RE_ERROR_NULL = const(1 << 11) #//!< Null Pointer. RE_ERROR_ENCODING = co...
[ "thebasti0ncode@gmail.com" ]
thebasti0ncode@gmail.com
48491a01b1fd6bc95774d3c6ee18ff3a061288f6
0a1e0da3020f1d0f90490424c58c410ffeef7b5d
/node_modules/fsevents/build/config.gypi
49cc3561e588159166076b260c401697588b7429
[ "MIT" ]
permissive
lkaudasch/lkaudasch.github.io
d56946ee21477dd0c3c6cb98977e5e6b226cfb7e
468ed3a4a1d873e2aceef13a9c6de8dfa65859e7
refs/heads/master
2021-01-09T15:49:11.559119
2020-03-01T15:12:34
2020-03-01T15:12:34
242,361,939
0
0
null
null
null
null
UTF-8
Python
false
false
5,471
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "coverage": "false", "debug_devtools": "node", "debug_http2"...
[ "z002nh0@38f9d39f732a.target.com" ]
z002nh0@38f9d39f732a.target.com
40f118a930e06e6edf455277d99dddcc1d85aa9a
2e6c95871bd255873fb563347c0f070e6fcdde74
/ngram_2_model_pca.py
6b077e23c628515f969ffa99bba1c5e5f09cec87
[]
no_license
MSBradshaw/BioHackathon2020
3203c5232bebd70d2c2a88b7f49063a09da023c4
31826b698a408541200b6f75bfe9c03217bf2d1a
refs/heads/master
2022-08-05T11:57:32.221444
2020-05-29T17:30:29
2020-05-29T17:30:29
258,961,184
0
1
null
null
null
null
UTF-8
Python
false
false
4,036
py
import re import pandas as pd from bs4 import BeautifulSoup import datetime import time from sklearn.decomposition import PCA import matplotlib.pyplot as plt import seaborn as sns from sklearn.model_selection import cross_val_score from sklearn.model_selection import train_test_split from sklearn import datasets from s...
[ "michaelscottbradshaw@gmail.com" ]
michaelscottbradshaw@gmail.com
e4f52ac50c48d5174a4789f40b2b50eeba3338a3
79aec114df38f94377b8516630a3222ebd17e838
/chapter_8/try_it_yourself/message_8_1.py
87a566235520da9b005117e400ffa4ae0a2841b5
[]
no_license
colinjpaul/PythonCrash
748472bccb9efa854dd5f24c3bf3648aba3e5ee7
e001491002b861c97a188fc4088f5afa035caea5
refs/heads/master
2022-06-13T00:59:37.765139
2022-05-05T21:30:36
2022-05-05T21:30:36
115,006,817
0
0
null
null
null
null
UTF-8
Python
false
false
92
py
def display_message(lesson): print(lesson) display_message("im learning ML and python")
[ "colin.paul@dell.com" ]
colin.paul@dell.com
d9690f64f2d87fc9c59628ba17f91eaea2b6a063
0dda2261ec49e062e00be848caff3cb566b9fe8f
/sentiment_analysis/simon.py
a0ecb039d1a8e81974ea7012e48bbd8c0d7c3198
[]
no_license
pswedrak/Embedding-Knowledge-Graphs
462362982cd0ff823d92746cfe088a5d0e794f9d
cf4b90c4e13561a1492d66a64478b11d5870acda
refs/heads/master
2023-05-11T10:47:00.075388
2021-05-30T17:03:02
2021-05-30T17:03:02
320,930,030
0
0
null
null
null
null
UTF-8
Python
false
false
9,129
py
import numpy as np from sematch.semantic.similarity import WordNetSimilarity from nltk.corpus import sentiwordnet as swn import seaborn as sns import matplotlib.pyplot as plt from tensorflow.python.keras.utils.np_utils import to_categorical from common.helpers import store_vectors, store_vector from semantic_similarit...
[ "piotrekswedrak@gmail.com" ]
piotrekswedrak@gmail.com
5d701f0a48dd6c81ab978a9683db47f0cf9fb515
587ac0749473666c2bcdfe558bdba8517cb1c0a0
/sp2020/j.py
9470133d7c7fc37f2ee060305d69a2e6d4c99a9d
[]
no_license
katrinafyi/cpg
fc2f408baf19791fa7260561a55d29464a42b212
0631d1983ec6a45cbe1a8df63963ab8caac51440
refs/heads/main
2023-02-21T13:07:02.517306
2021-01-23T06:09:39
2021-01-23T06:09:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,615
py
def ints(): return [int(x.strip()) for x in input().split()] # t is interval of measurement # d is time considered # p is percentile required # r is response delay required for responsiveness num_meas, t, d, p, r = ints() num_attempts = ints() [0] SUBMIT = 'S' REPLY = 'R' MEASURE = 'M' timeline = [] # list of (time...
[ "kenton_lam@outlook.com" ]
kenton_lam@outlook.com
30395fb46f4f90b60cac2dacbfb6cc5c1a0cc15e
eb357dfc2ca3e4ec2170a6d7cb1998886c715b12
/ex31.py
f97866c4f09d5f1bbdc765511c14f6a228bb3a35
[]
no_license
manix1980/lpthw
49feec49a0f67fa8796dc585158ccd39a2f37894
d1b1e4809b18d6a2c37fbab64bf04cffbd35741c
refs/heads/master
2021-07-19T04:18:25.297068
2017-10-25T08:34:00
2017-10-25T08:34:00
104,328,672
0
0
null
null
null
null
UTF-8
Python
false
false
1,390
py
print("""You enter a dark room with two doors. Do you go through door #1 or door #2?""") door = input("> ") if door == "1": print("There is a giant bear here eating a cheese cake.") print("What do you do?") print("1. Take the cake.") print("2. Scream at the bear") print("3. Munch all of the bears ...
[ "mark.ruggles@gmail.com" ]
mark.ruggles@gmail.com
f7ef68c1de1a2734d11f7d19ac6a13e89278dd3b
7196fa6e5bef1c2714dc49bb25eb11cfd531c07d
/examples/astronomy.py
d2763fa0ffc30446e77cb225f497b85d7c28afd8
[ "MIT" ]
permissive
dinarior/daft
0da226bc951195c6c1c92b8cdff87bc303793f60
c982155f5fc27d1da1617ebf8a687af388cd0efa
refs/heads/master
2020-05-09T13:40:50.913111
2019-04-16T12:42:16
2019-04-16T12:42:16
181,163,124
2
2
MIT
2019-07-02T06:06:11
2019-04-13T11:49:00
Python
UTF-8
Python
false
false
7,319
py
""" Astronomical imaging ==================== This is a model for every pixel of every astronomical image ever taken. It is incomplete! """ from matplotlib import rc rc("font", family="serif", size=12) rc("text", usetex=True) import daft pgm = daft.PGM([8, 6.75], origin=[0.5, 0.5], grid_unit=4., node_unit=1.4) #...
[ "dwhogg@gmail.com" ]
dwhogg@gmail.com
c6e8b539cfe2e03de48550078df41e6739fe020d
0936d67c5e72971c465075400fe6b7e8ea4d6d64
/TF1/tf1.py
419f1b54ab9a16233981fa9d2b1083cf303182d1
[ "MIT" ]
permissive
ChengHaoKe/MLtest
324a990a498d8f1722ee37ab0487855ff40dc1fc
bcd713736e19ebba4aaf7bd39595c96f710a052e
refs/heads/master
2020-09-05T17:42:40.831474
2019-11-21T10:22:24
2019-11-21T10:22:24
220,171,852
0
0
null
null
null
null
UTF-8
Python
false
false
2,616
py
import tensorflow as tf import matplotlib.pyplot as plt import os # remove warning for cpu os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # define functions because pycharm doesn't locate them Dense = tf.keras.layers.Dense Flatten = tf.keras.layers.Flatten Conv2D = tf.keras.layers.Conv2D BatchNormalization = tf.keras.layer...
[ "ch.ke@afusion.com" ]
ch.ke@afusion.com
9d7cb819a753857b29721f3b71cd97414ec18f0b
76c5db14cf4cfac8ce587cb65521556993564997
/projects/III_Binary_Exploits_for_Windows/ed309/debruijn.py
9982b4c252caf02b153459a8c313254035ac7253
[]
no_license
0xballistics/CNIT-127-2019-Scripts
f862ef5ce05f555a633c380f58da4146c0ef3693
0314d1976dc4a92fe1d0c89e9b33ba9d6d0b8893
refs/heads/master
2023-06-08T23:12:52.706875
2020-06-02T20:38:11
2020-06-02T20:38:11
268,901,895
0
0
null
null
null
null
UTF-8
Python
false
false
15,319
py
import struct buf = struct.pack ("3000B", *[ 0x41,0x41,0x41,0x42,0x41,0x41,0x43,0x41,0x41,0x44,0x41, 0x41,0x45,0x41,0x41,0x46,0x41,0x41,0x47,0x41,0x41,0x48, 0x41,0x41,0x49,0x41,0x41,0x4a,0x41,0x41,0x4b,0x41,0x41, 0x4c,0x41,0x41,0x4d,0x41,0x41,0x4e,0x41,0x41,0x4f,0x41, 0x41,0x50,0x41,0x41,0x51,0x41,0x41,0x52,0x41,0x41,0...
[ "halilburaknoyan@gmail.com" ]
halilburaknoyan@gmail.com
52cc67b49401a2ab6f5fb96ce878c941ca0fd9c2
91d1d3135ff096852e8a89690d95277428614cd1
/spatial_two_mics/labels_inference/ground_truth.py
972b8bdbc6b067e1f22ef5b61825b16b2dc8da06
[ "MIT", "NCSA", "LicenseRef-scancode-unknown-license-reference" ]
permissive
etzinis/unsupervised_spatial_dc
07a35e2c9e19aa237b4be2dbfb11447c21028859
7330303d3c994b2abdbceedf2ee08660f94bd9ce
refs/heads/master
2021-10-22T18:40:51.430636
2021-10-10T20:41:36
2021-10-10T20:41:36
156,471,783
23
4
null
2021-10-10T20:14:20
2018-11-07T01:19:36
Python
UTF-8
Python
false
false
2,560
py
"""! @brief Infering the masking for eah tf bin independently based on the maximum energy of the sources in each bin @author Efthymios Tzinis {etzinis2@illinois.edu} @copyright University of Illinois at Urbana Champaign """ import numpy as np from pprint import pprint def infer_mask(mixture_info): """ :para...
[ "etzinis2@illinois.edu" ]
etzinis2@illinois.edu
9972d2ca8050c0b4d9a0231a9b533c4390a5e5cc
42371933210691aff00dbbf79c970572490764c1
/files/xain_adapter.py
0f0645afffabace31dc51bc956622e1632b3a156
[ "MIT" ]
permissive
BPChain/private-xain
e188c9491332dc81e5a8f0821cac023a25bf6a4b
b0fc77dc533e2a4c8622f8499bb746c58b2cf0bd
refs/heads/master
2022-12-13T09:41:37.616857
2018-06-05T08:18:29
2018-06-05T08:18:29
118,761,437
4
0
MIT
2022-12-08T02:02:40
2018-01-24T12:18:29
JavaScript
UTF-8
Python
false
false
1,461
py
"""I provide an adapter for the Xain blockchain api""" # pylint: disable=no-member from time import sleep from statistics_reader.block import Block from statistics_reader.blockchain_adapter import BlockchainAdapter from web3 import Web3, HTTPProvider class XainAdapter(BlockchainAdapter): """I am an adapter for ...
[ "anton.weltzien@gmail.com" ]
anton.weltzien@gmail.com
a1e7d70a6c380ecacff8990c1a643540a79ff197
b6296822efeb5a03ae5b4b9c0b94677b7d3783c8
/models/wd.py
79756204621798c94305e1db528f8d4451f4b22f
[]
no_license
AlenUbuntu/CTRLib
4571bc4e595309936ad1f1da5bf6d616d4c729dc
1ce1ce59d4c8e723751439018e7daa94996e62e9
refs/heads/main
2023-04-11T00:14:51.547245
2021-03-25T20:34:04
2021-03-25T20:34:04
349,613,365
1
0
null
null
null
null
UTF-8
Python
false
false
1,191
py
import torch from common.layers import * class WideAndDeepModel(torch.nn.Module): """ A pytorch implementation of Wide & Deep model. Reference: Heng-Tze Cheng, Wide & Deep Learning for Recommender Systems, 2016 """ def __init__(self, cfg, field_info, cross_prod_transform=None): ...
[ "ustcgaoy01@hotmail.com" ]
ustcgaoy01@hotmail.com
26dfeac08449167a930a80d1d44fae4e247ac8ed
d364123a0655bff7e9d725382934fe2c15b5bfc4
/python3Test/Test/test009.py
d27fb2cf894790461b15d3b1ec2464ef190ccbb4
[]
no_license
yuan1093040152/SeleniumTest
88d75361c8419354f56856c326f843a0a89d7ca6
d155b98702bc46c174499042b43257696b861b5e
refs/heads/master
2023-08-31T15:00:25.415642
2023-08-30T09:26:42
2023-08-30T09:26:42
227,269,300
0
1
null
null
null
null
UTF-8
Python
false
false
4,398
py
#coding=utf-8 """ @Author : Yuan Meng @Time : 2022/6/28 17:24 @Software: PyCharm Ctrl+shift+v 历史粘贴版 ctrl+alt+空格 自动补全 ctrl+alt+D 分屏 Ctrl+/ 快速注释 """ import base64,hashlib import json from Crypto.Cipher import AES import binascii from Crypto.Util.Padding import pad aa = "0DIGbxUpV2a8TQTf6l4kiKTtrnNaRI1qcM...
[ "1093040152@qq.com" ]
1093040152@qq.com
fd7afc9a446cecb45eebfc6213eba6e8904175a9
4565630f20dd7ab7f22b6a829d9c93b9d3a7aefa
/main/migrations/0001_initial.py
5a33b3e23a310e66362a2b101449973a1ef38874
[]
no_license
Normal66/nlpsite
fb6d76de57e82adbb243d41f1f0a99e6d8374d3b
5985e51f60a0eec646226069e9374859ce27e24e
refs/heads/main
2023-06-29T14:40:05.490268
2021-07-30T16:30:15
2021-07-30T16:30:15
391,020,486
0
0
null
null
null
null
UTF-8
Python
false
false
1,229
py
# Generated by Django 3.2.5 on 2021-07-28 06:04 from django.db import migrations, models import django.db.models.manager class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='m_SprMenu', fields=[ ...
[ "normal66@yandex.ru" ]
normal66@yandex.ru
419bee1b9fe65c8d11a7d4b70693ec15423d958f
cc578cec7c485e2c1060fd075ccc08eb18124345
/cs15211/24Game.py
ea18464f94d06f61725723f26fa46ca83987f4e3
[ "Apache-2.0" ]
permissive
JulyKikuAkita/PythonPrac
18e36bfad934a6112f727b4906a5e4b784182354
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
refs/heads/master
2021-01-21T16:49:01.482561
2019-02-07T06:15:29
2019-02-07T06:15:29
91,907,704
1
1
Apache-2.0
2019-02-07T06:15:30
2017-05-20T18:12:53
Python
UTF-8
Python
false
false
4,885
py
__source__ = 'https://leetcode.com/problems/24-game/description/' # Time: O() # Space: O() # # Description: Leetcode # 679. 24 Game # # You have 4 cards each containing a number from 1 to 9. # You need to judge whether they could operated through *, /, +, -, (, ) to get the value of 24. # # Example 1: # Input: [4, 1, ...
[ "b92701105@gmail.com" ]
b92701105@gmail.com
0fbd94e2a660cbe47f3fd584e7387b55601c811b
be72929423f60d596078cdc671dd2f34ca443cd0
/Todo/todo_app/models.py
945eb5e2dc7529b4f0f7b41af2c1c224be3d47a6
[]
no_license
GeorgeGithiri5/Django_Postgresql_App
3b845ff749aae436c886a2ff2a059c5da71972d8
1eaf827aed54845b6bb4c7f3eda86ad34e38178f
refs/heads/master
2022-12-17T08:35:45.219542
2020-09-23T03:34:46
2020-09-23T03:34:46
297,686,471
1
0
null
null
null
null
UTF-8
Python
false
false
89
py
from django.db import models class Todo(models.Model): content = models.TextField()
[ "georgegithiri002@gmail.com" ]
georgegithiri002@gmail.com
09ef442b86779731be186e1bc9cea0b1acd17697
4385068eddc701aa884c32421720c30ca7eafee4
/Timonator.py
4b7ba6a76ea279ad79bb30fbfa89cd5c4946ced0
[]
no_license
benjjo/Timonator
72faef3cc111f8c9aa82463cb1b26362cd4c17cd
bad2e76c81beac84f1e4d966b1fd902953fd4041
refs/heads/master
2023-08-12T12:28:14.324387
2021-09-24T06:16:11
2021-09-24T06:16:11
327,108,832
0
0
null
null
null
null
UTF-8
Python
false
false
21,934
py
import os import tkinter as tk from tkinter import filedialog import pandas as pd import matplotlib.pyplot as plt import time from datetime import datetime, timedelta global_file_name = str() start_date = datetime global_df = pd.DataFrame() list_of_bitsets = [] mvb_dictionary = {} folder_name = 'Timon_Plots' def set_...
[ "benjjo@gmail.com" ]
benjjo@gmail.com
b3824074ac433a21af52219d56f5c1c32c9199db
aa7342ae2e7b786ddfcc2fa290f091ee60b70b98
/doerry_board.py
1ed3a8eea3fb49b257f144d35b35f700b0f32ed7
[]
no_license
Clarissac/cs470_project4
3c90e962bd0b4e2129378c6c3d84727018e18657
0927d34d718d035d87b1a6c252f2ea4d70607b71
refs/heads/master
2021-01-19T23:52:34.657635
2017-05-10T02:23:58
2017-05-10T02:23:58
89,044,682
0
0
null
2017-04-22T04:38:27
2017-04-22T04:38:27
null
UTF-8
Python
false
false
4,042
py
#The following code is Doerry's board code and his comments #This class is a simple board viewer. You pass it a board object, which is basically just a NxN 2D array. import tkinter as tk class BoardView(tk, Frame): def __init__(selfself, master=None, initboard=[]): tk.Frame.__init__(self, master) ...
[ "clarissacalderon23@gmail.com" ]
clarissacalderon23@gmail.com
4fe2f24ace7a19b1acc48f98e1b7555884e1392c
6e2e476c5764d5e75c7afe5a531ac5b890ef0c64
/Models_barAllExecutionTimes.py
6dd46654dd04bc45d58214343e8245ce54d8db3f
[]
no_license
BrunoDatoMeneses/PythonPloting
d4611f62f2709465e32d3ab2dc4e0d5cef65e783
b5bd1c7aa5a50144d2db82f29ab754b01084f230
refs/heads/master
2023-05-07T14:08:17.225336
2021-06-02T09:06:13
2021-06-02T09:06:13
297,996,150
0
0
null
null
null
null
UTF-8
Python
false
false
4,065
py
import _PLOT from Utils import transpose import os import csv # transpose.transposeFiles() from _FIG import PLOTTING from _PARAMS import PARAMETERS figEndName = "-AllNCS" #xlabel = 'Learning Cycles (#)' ylabel = 'Times (ms)' yStringLong ="ExecuyionTimes" # figVaryingParamString = "learningCycles" # varyingParamS...
[ "bruno.dato.meneses@gmail.com" ]
bruno.dato.meneses@gmail.com
f8fd6bda1cf814b0318a560ee864f0cde1e89a5e
21b62c71317642b406d0acbd5be74eb1457917a1
/tests/models/test_position.py
e48a40322e96b0b44f5a27b7422405736e82562c
[]
no_license
paulinobruno/mario-kart
bc09e46f2cb93c4648ef7088b3d6ac947fc7c3b3
d0cfa0bad3da63fc8135c76a5102ce671511c6ba
refs/heads/master
2020-06-02T15:13:52.285587
2019-02-14T16:44:13
2019-02-14T16:44:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,631
py
import unittest from mkart.models.driver import Driver from mkart.models.position import Position class TestPosition(unittest.TestCase): def setUp(self): self.load_fixtures() def load_fixtures(self): driver = Driver(1, 'F.MASSA') driver.laps = 1 driver.laps = 2 self...
[ "vtrmantovani@gmail.com" ]
vtrmantovani@gmail.com
f2db0f815309f934b46da888e24855c0aad96a91
914b504e13df945a50f35eca4d850eb2c5b52c0b
/test/compute/test_base.py
f8c9bd3ba3a0fd128e1401b5f2e96d9796badcc2
[ "Apache-2.0" ]
permissive
cloudkick/libcloud
d05c0401bd232279cb38b5abacd3d4c85d7d072f
9c8605e1518c6b5e2511f0780e1946089a7256dd
refs/heads/master
2021-01-01T19:51:41.895189
2011-03-14T02:34:57
2011-03-14T02:34:57
258,426
8
7
null
null
null
null
UTF-8
Python
false
false
2,958
py
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
[ "tomaz@apache.org" ]
tomaz@apache.org
8df9b0fa83f0519444478ee62668187e3d56ebc1
efd6a992f37b66c3f799acc8c0deb01966ee0b28
/FaceDetectionWebcam/face_detect_cam.py
cedaca7c41ba519359e0af99e5e6f109965cd26e
[]
no_license
filikos/OpenCV
fa5f74229b68d15ab9d20e99cb63c6bf2820edd6
ea521ed7ac2f1c6ac05381f2594d53f6f6793f79
refs/heads/master
2021-10-25T09:56:40.167953
2019-04-03T18:37:37
2019-04-03T18:37:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,208
py
''' Created on 15.01.2016 @author: Niko Filippidis ''' import cv2 cascPath = "haarcascade_frontalface_default.xml" faceCascade = cv2.CascadeClassifier(cascPath) #Initialize the webcam. video_capture = cv2.VideoCapture(0) while True: #Get the next frame of the cam. ret, frame = video_capture.r...
[ "noreply@github.com" ]
noreply@github.com
62926e4236f6d5260463602eb5762e132f57bd9a
0047686fffa211457af0f284e6cba48dc762bbd5
/gencmake.py
11153e02700ed00ef88d3deee9bdf7b4e3033fc9
[]
no_license
timre13/gencmake
9ca7bcbf455cbed229a637446b5624ac9b8a38e9
f02f6102c9bad9e5829dd0bf9b3efcab821b0d4f
refs/heads/master
2023-07-09T03:05:01.109679
2021-08-09T15:55:39
2021-08-09T15:55:39
394,062,369
0
0
null
null
null
null
UTF-8
Python
false
false
7,164
py
import sys import os from glob import iglob import subprocess as sp def printerr(s: str): sys.stderr.write(s+"\n") if len(sys.argv) != 2 and len(sys.argv) != 3: printerr("Usage: "+sys.argv[0]+" <project name> <optional: project type>") sys.exit(1) if sys.argv[1] == "--list-project-types".strip() or sys.argv[...
[ "itorteli13@gmail.com" ]
itorteli13@gmail.com
32a29493bd6303aa367a5871b7921ff7df25016d
10c50dd33cbd22a7ef96ace3c5d1a9fa8129b408
/build/releases/release-0.602/src/lisp-etr.py
d3e74c7d0fb2b45deb537161c4218fcbf5ac483c
[ "Apache-2.0" ]
permissive
farinacci/lispers.net
5590089ad296a404c7da07a4410b16b5e98db82d
3c6a4a30b96409406c161e4ad1c3fcaecf4f4ba3
refs/heads/master
2023-08-09T05:43:06.456949
2023-07-27T21:17:53
2023-07-27T21:17:53
114,426,834
36
6
Apache-2.0
2022-11-15T22:15:26
2017-12-16T02:15:08
Python
UTF-8
Python
false
false
70,894
py
#----------------------------------------------------------------------------- # # Copyright 2013-2019 lispers.net - Dino Farinacci <farinacci@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain ...
[ "farinacci@gmail.com" ]
farinacci@gmail.com
d3f9ac25806cb4110f7be0924818e2d79b7e1008
0af4552d69d8f049f8e8de12895fad9b19740925
/kim_munse/hw1.py
2b7edba1ec61892eb7f136235fee61bf6b45df44
[]
no_license
BangDaeGeon/2020_cphys2-1
a3990180a6dd5675ef366a2984ec2c4438ee947c
9a245bc2b511717788a42c83882aaa4ab8d7484c
refs/heads/master
2023-01-21T01:40:56.561030
2020-11-30T03:35:37
2020-11-30T03:35:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
67
py
for x in range(1,10): for y in range(1,10): print(x*y)
[ "71931366+joongjae93@users.noreply.github.com" ]
71931366+joongjae93@users.noreply.github.com
fb54366e606923e522f506648ec99d8422579fe4
6ed8797b868b643c37933cd086ef70b51e5e93c1
/addTopic.py
23cb8d91770f6f722d64c1588a713fc7c500c156
[]
no_license
wumss/add-topic-gui
1350b16f7a3d188d492c5da104d86769e811865d
f06b89c084b77f8bf68d296b4d291b19410e9794
refs/heads/master
2021-01-13T04:26:44.519668
2017-01-26T02:01:27
2017-01-26T02:01:27
79,875,297
0
0
null
null
null
null
UTF-8
Python
false
false
2,612
py
import json from tkinter import * fname = 'suggested-topics.json' # Add a object to the schedule def writeNewTopic(topic): with open(fname) as jsonTopics: topics = json.load(jsonTopics) topics.append(topic) with open(fname, 'w') as jsonTopics: json.dump(topics, jsonTopic...
[ "noreply@github.com" ]
noreply@github.com
825827097adba23db0866260b555a3ed41ff6b70
e301dc54f11c77d6b721220005ae384f7c9d512e
/Problem Set 6 - Python/Cash/cash.py
bbe343aae240c4484372bd8438fcff47fd7465f4
[]
no_license
soufian01/CS50-Harvard-University-Introduction-To-Computer-Science-
6905c6e78ed7dc6af3ef7429f7716b9732e6b9bd
6afde8776c802e6c484c296ad0e4aec29a0a5431
refs/heads/master
2022-08-07T07:08:08.375288
2020-05-19T16:22:16
2020-05-19T16:22:16
259,454,598
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
from cs50 import get_float # importing the get_float function from the cs50 library. change = get_float("Change owed: ") # Ask the user for the input. count = 0 while change < 0: change = get_float("Change owed: ") change = round(change * 100) change = round(change * 100) while change >= 25: change -= 25...
[ "noreply@github.com" ]
noreply@github.com
dae8dcdee9369cf62771b3d6dee303b90dbe166f
2294e0e4fb5b3abd206af4739e1a7ec572db9a95
/enaml_nodegraph/widgets/graphicsview.py
d6904e1dc5b10ce9f08d09801ab3b5b7dea5c5cf
[]
no_license
ulricheck/enaml_nodegraph
382fa06245aa766abd0325356f329936cef83156
14a12f51b10af2934393492c9b591fac3f637742
refs/heads/master
2020-03-23T14:26:42.963110
2018-09-01T14:13:35
2018-09-01T14:13:35
141,676,063
5
0
null
null
null
null
UTF-8
Python
false
false
5,269
py
__author__ = 'jack' import logging from atom.api import Typed, List, Instance, ForwardTyped, ForwardInstance, set_default from enaml.widgets.control import Control, ProxyControl from enaml.core.declarative import d_ from .graphicsitem import GraphicsItem from .graphicsscene import GraphicsScene from .edge_item import...
[ "ulrich.eck@tum.de" ]
ulrich.eck@tum.de
2024c5d4f87fca03d6ed98d0117333ae57ac87d9
b3091e900447227c611337e7f1d09113f1496282
/projdat/result/result/urls.py
cc606e601770ea29185b2b4b4d0bbf243efd0a25
[]
no_license
FinancialEngineerLab/documents
51285a6d13ea3a6a133f9b8af75782632ec46cf6
5ea97493d460dada421e7f04ad31a4d9419a44d1
refs/heads/master
2022-03-10T17:14:31.473383
2014-05-05T15:41:07
2014-05-05T15:41:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: url(r'^$', 'result.todolist.views.home', name='home'), url(r'^add_item/$', 'result.todolist.views.add_item', ...
[ "pvx884@alumni.ku.dk" ]
pvx884@alumni.ku.dk