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
615d6cfeafcfe95a0b3e8aefee6f571baf69f697
dc9d2f036ef72f254db5d0ba9e4cc8dcd95aa4aa
/WebCrawler by Bucky.py
f19ac7e98901e43ff512090c967cf9b3627184c6
[]
no_license
YhHoo/Python-Tutorials
d43171a21fb8d51271c66bea6f2566ff3effc832
9774dd5b3f0b9d0126d4a2bcbac347348e914b71
refs/heads/master
2021-09-03T21:23:22.099224
2018-01-12T03:33:23
2018-01-12T03:33:23
110,725,041
0
0
null
null
null
null
UTF-8
Python
false
false
833
py
''' THIS IS BUCKY WEB CRAWLER EXAMPLES ''' ''' HERE PART 1: Fetch all the href link in <a> tag of the page ''' import requests from bs4 import BeautifulSoup def trade_spider(): url = 'http://www.ckmusic.com.my' # parent URL, rmb don't end with '/' source_code = requests.get(url) # connect to the web pa...
[ "hooyuheng@gmail.com" ]
hooyuheng@gmail.com
895f55c73c05abed86e355cd53adbf875d22d6f5
c46ef0ccf030cee783a75d549e3c9bc0810579ff
/tutorial-contents/405_DQN_Reinforcement_learning.py
20fa80cdeeb85f8daeac040cef09380718a56006
[ "MIT" ]
permissive
cocodee/PyTorch-Tutorial
37827b3daa5de1dee6ca174161d948a1933d4453
a7b14b80913485735a3ee87da6998a511a1f1950
refs/heads/master
2021-07-19T16:01:13.106848
2017-10-26T22:06:10
2017-10-26T22:06:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,348
py
""" View more, visit my tutorial page: https://morvanzhou.github.io/tutorials/ My Youtube Channel: https://www.youtube.com/user/MorvanZhou More about Reinforcement learning: https://morvanzhou.github.io/tutorials/machine-learning/reinforcement-learning/ Dependencies: torch: 0.2 gym: 0.8.1 numpy """ import torch import...
[ "mz@email.com" ]
mz@email.com
6c480eedf63fb3b23986bdead3354dd3b065ad59
6afed1b1548c0f8f6442423908136e602e2cc890
/runexe/dist/main/src/fightResult.py
ef15906a2a74430b6ac2b4404a66507182c943a9
[]
no_license
dont-stay-up-late/software-engineering
12663869ae1cf4c20b238db71a4ea357e1ec4d4e
6b57c473e7cd9f08d9c7e4e8cf01a2e5d406f9ba
refs/heads/master
2020-07-31T13:22:24.198814
2020-01-03T10:31:48
2020-01-03T10:31:48
210,616,030
2
2
null
2019-11-08T12:48:59
2019-09-24T13:55:56
Python
UTF-8
Python
false
false
6,080
py
import pygame,sys,time from pygame.locals import * from src.path import path from src.models import * from src.map import * from src.bgm import * from src.equipments import * def endFight(screen, clock, modeID, flag_mapinfo, isWin, attackers, defenders, mapload, defendersID, attackersID, attackerPicOld, attackerDetect...
[ "m18101220382@163.com" ]
m18101220382@163.com
32cfdd87226d303193c8392e399fa29e2acb19e7
00d7e9321d418a2d9a607fb9376b862119f2bd4e
/sandbox/demo_turtle_undo.py
931cafb0e9c9c9f5496dcd7d5da4abb55455705a
[ "MIT" ]
permissive
baluneboy/pims
92b9b1f64ed658867186e44b92526867696e1923
5a07e02588b1b7c8ebf7458b10e81b8ecf84ad13
refs/heads/master
2021-11-16T01:55:39.223910
2021-08-13T15:19:48
2021-08-13T15:19:48
33,029,780
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
#!/usr/bin/env python from turtle import * for i in range(10): forward(100) left(90) forward(10) left(90) forward(100) right(90) forward(10) right(90) for i in range(30): undo()
[ "none" ]
none
65896134956b1a0d21f51e18c4c4728ec570d555
fed4cad9553b9ea4be9f52eb79477209570db23a
/python_scripts/pexpect_reboot.py
ca5d05b60023816eba10acfa02bbeecfca678d30
[]
no_license
zincsoda/devbin
00142ddf0d2f1fecfa37bb77baa6801d12bc9997
315002ebd096abbd3a3a6fbc2181aac467716899
refs/heads/master
2021-01-19T14:52:43.901479
2013-10-30T14:28:35
2013-10-30T14:28:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
#!/usr/bin/env python ''' Uses pexpect to logon to pdu and reboot certain machines ''' import sys import pexpect if len(sys.argv) < 3: print "usage: ./apc_reboot.py <apc_ip> <id1> [<id2>]" exit(1) apc_ip = sys.argv[1] machine1 = sys.argv[2] machine2 = "" if len(sys.argv) == 4: machine2 = sys.argv[3] c...
[ "steve.walsh@sap.com" ]
steve.walsh@sap.com
49b6112e1be3b45b26bf7f72760c35c921b79efb
751db61d03d819435338d270e75ae610c9fb1268
/manet-dtn/wscript
db45d20effcd94c81128bb89e24198e092ae2f28
[]
no_license
SuaveRichard/MINET2019_Research
a544bc6d82b17cd6c447314cefe32a37deb97571
20aac4469654d178092ead0a5c769a40fae4dd55
refs/heads/master
2020-09-22T01:50:02.266293
2020-01-11T10:20:12
2020-01-11T10:20:12
225,007,516
0
0
null
null
null
null
UTF-8
Python
false
false
1,258
# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # def options(opt): # pass # def configure(conf): # conf.check_nonfatal(header_name='stdint.h', define_name='HAVE_STDINT_H') def build(bld): module = bld.create_ns3_module('manet-dtn', ['internet']) module.source = [ ...
[ "bp16014@shibaura-it.ac.jp" ]
bp16014@shibaura-it.ac.jp
c119b58fd79cafa69e4acd27fbdbee3334e333d4
766d1840e7cf244e294896c79ad01160fdac48c4
/plotting_routines/misc/halo_selector.py
050098e9414a08d58e36ceaa6c8d4af87ab2bc53
[]
no_license
mooratov/Sasha-Muratov-codes
290c045bd4b90fedcfffee3b9123fcc1ca34a111
6cade012c25bfdfac7c55e58c61227f6f2aea566
refs/heads/master
2021-01-10T06:05:51.231079
2016-11-16T03:28:53
2016-11-16T03:28:53
48,888,665
0
0
null
null
null
null
UTF-8
Python
false
false
8,241
py
import sys import os import math from datetime import date import numpy as np import matplotlib.pyplot as plt import Sasha_functions as SF from tasz import tfora today = date.today() print today z_int_tolerance = 0.5 fhires_tolerance = 0.94 npart_tolerance = 5e4 doplots = 'y' if (len(sys.argv)<2): print 'syntax bl...
[ "mooratov@gmail.com" ]
mooratov@gmail.com
f2276f7e65fd1cded1b291ed6e217a163050705d
baafc9731096b0d51885c4e793dfe14aa779a6a4
/experiment_domainadapt_meanteacher.py
4619ba038a8fd6e2f607fafcfc578e087db0bb01
[ "MIT" ]
permissive
AliaksandrSiarohin/self-ensemble-visual-domain-adapt
ee095a059e588cd84eda1eff733122c736ff6670
0d8d036bb8fe65ae2dc8e713d383742c93521cc9
refs/heads/master
2020-04-06T15:42:06.353628
2018-11-14T18:00:01
2018-11-14T18:00:01
157,589,370
0
1
MIT
2018-11-14T17:58:33
2018-11-14T17:58:33
null
UTF-8
Python
false
false
24,376
py
""" Incorporates mean teacher, from: Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results Antti Tarvainen, Harri Valpola https://arxiv.org/abs/1703.01780 """ import click @click.command() @click.option('--exp', type=click.Choice(['svhn_mnist', 'mnis...
[ "brittix1023@gmail.com" ]
brittix1023@gmail.com
16ff808606231b89b1720413ba6a98d65a1ea375
1ea77105dc42b6f7103ba93d00f981c546a10c63
/saas/scripts/init_price_policy.py
6280f4f1ca10e4c66263c544b66556a4ab0e8dc9
[]
no_license
cat-fans/web_back
23845ac5b73cf5ad99dcfd53c1b38d068dc8c9c9
1c405be433159223bf8e2f35aaf40d934b99ae9b
refs/heads/master
2023-03-02T21:57:15.888633
2021-02-04T22:07:59
2021-02-04T22:07:59
331,644,076
0
0
null
null
null
null
UTF-8
Python
false
false
681
py
import os import sys import django base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(base_dir) os.environ.setdefault("DJANGO_SETTINGS_MODULE", 'SaaS.settings') django.setup() from django.db import models from web import models def run(): exists = models.PricePolicy.objects....
[ "qaq_cat_fans@163.com" ]
qaq_cat_fans@163.com
b06d0d074997ea00aafd40074701a98e48338e51
a11e5af74bb270d59f2c3a871495df1742204678
/evaluation.py
60518cca0385e9d7de175e5ee90e7ca57a78f944
[]
no_license
ns-rokuyon/kaggle-bengali-classification
7f38d3f438e40535ffa8ff2ff15f7ed6a40711cf
7a28190c99254767702448c68666cd73da493775
refs/heads/master
2022-04-09T04:31:22.520786
2020-03-17T06:15:30
2020-03-17T06:15:30
236,469,518
0
0
null
null
null
null
UTF-8
Python
false
false
569
py
import numpy as np import sklearn.metrics def hierarchical_macro_averaged_recall(pred_g, true_g, pred_v, true_v, pred_c, true_c): score_g = sklearn.metrics.recall_score( true_g, pred_g, average='macro' ) score_v = sklear...
[ "ness3psi@gmail.com" ]
ness3psi@gmail.com
bfce3c180df9785f4b1ddb3651cdcc6f0e4a4fbb
d9b48307710d35a4656fc0fd6cb3e3ed2e895e2d
/codeTop/link-list/22链表中倒数第K个节点.py
37c6d77e7f5d0d3237ee6ca96c2104d721b6fb70
[]
no_license
odinfor/leetcode
a9137fb533c607509167b45a92fbdd076bbf82c4
d265eb981a7586d46d0ced3accc2ea186dc7691c
refs/heads/master
2023-05-25T23:02:17.457122
2023-05-16T08:57:02
2023-05-16T08:57:02
243,485,598
0
0
null
null
null
null
UTF-8
Python
false
false
950
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2021/7/5 11:46 上午 # @Site : # @File : 22链表中倒数第K个节点.py # @desc : class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def getKthFromEnd(self, head: ListNode, k: int) -> ListNode: # 简单直观...
[ "yangjun@dinktalk.com" ]
yangjun@dinktalk.com
30a4f20cc66cd435aa5f1c61e2618945db9d0dca
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03775/s238849097.py
e1fbd653ac8d41a71208142afafc985c89f140a4
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
import math N = int(input()) ans = len(str(N)) for i in range(1, int(math.sqrt(N))+1): if N % i == 0: j = N // i k = max(len(str(i)), len(str(j))) ans = min(ans, k) print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
fb90e8e5f424588febde9c9abbebf7d35a95076a
e497f3060a98581e0975db566b0b60e01da978e7
/src/naamataulu/api/migrations/0002_auto_20181024_1418.py
2a39e4fad2f97f8e9ee92c0ef3e1be4f5664c500
[ "MIT" ]
permissive
Honksu/naamataulu-backend
e512d8b3c0f49d36a55e9a0a8753f2c33b96748f
79300788f062ffac06be208814689683b55abb35
refs/heads/master
2020-04-25T17:55:43.855482
2019-02-03T21:34:27
2019-02-03T21:34:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
# Generated by Django 2.1.2 on 2018-10-24 14:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='face_features', fi...
[ "kallonen.antti@gmail.com" ]
kallonen.antti@gmail.com
b53e913f62067c78e64e90cef8a3b642a6f57d41
1c9af33b1b8b6bdee0c192ff9c30d2d39d211e08
/CIFAR10/Session4/dl_vision/utils/lr_finder.py
8135301d7a31a8e81c9419581a1dcd5438ab93bb
[ "MIT" ]
permissive
TrellixVulnTeam/Pytorch_Vision_A3VP
2c048eaa0aa09839cb478c716edccca99552eaf5
54367b83e9780fe14c6f8b93157091ffdf7266eb
refs/heads/main
2023-04-07T16:06:49.575644
2021-04-16T16:42:18
2021-04-16T16:42:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,340
py
import copy import matplotlib.pyplot as plt import numpy as np import os import torch from tqdm.notebook import tqdm from torch.optim.lr_scheduler import _LRScheduler from torch.utils.data import DataLoader class StateCacher(object): def __init__(self, in_memory, cache_dir=None): self.in_memor...
[ "gmshashank@gmail.com" ]
gmshashank@gmail.com
d8878e4c240a1df81923f2be1ccf471003596f27
711ed5ed4c69e2b9b6248f44fd8aa3a1b353577c
/IS 201/Examples/z_module5_exception_file_op.py
62ace4e434b60b8010efa4daf291e94ed81aacb4
[]
no_license
Ret-David/Python
e2a2f5bedba76f1e1106f24b2a2aeb4282e8fa15
fa2994c59b0ea238efe277c011017afea601ebc0
refs/heads/main
2023-07-27T15:12:46.552957
2021-09-09T23:30:40
2021-09-09T23:30:40
398,095,142
0
0
null
null
null
null
UTF-8
Python
false
false
4,499
py
# # - Exception Handling # while True: try: x = int(input("Please enter a number: ")) break except ValueError: print("Oops! That was no valid number. Try again...") while True: try: inChar = input("Please enter \"X\" or \"O\": ").upper() if(inChar == 'X' or inCha...
[ "david.a.martinez15@outlook.com" ]
david.a.martinez15@outlook.com
5155c2c3afea4fbd1ae4e454aeced5e8b1febe74
48998d6274b360a756f1e879cb3d021de289518c
/lava.py
5dfa88a3276974e2007fae639f1e919d1097b165
[]
no_license
markuskaa/lavalamp-client
3c6bee0695712ddda7e67665a56e1a734fb63507
5b7b2ea3109321bcdd0381ed06c5c89ef3d16d1c
refs/heads/master
2020-05-18T07:35:12.070356
2014-12-04T09:04:56
2014-12-04T09:04:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,367
py
import urllib2 import concurrent.futures import logging import ConfigParser import wx logging.basicConfig() #URL = 'http://svr-dev-20:8080/?cmd=isGlowing' LAMP_ON = '1' LAMP_OFF = '0' LAMP_UNDEFINED = '?' UNDEFINED_STATE = [LAMP_UNDEFINED, 'Getting invalid response(s) from server'] OK_ICON = 'data\\ok.png' FAIL_ICON...
[ "marek.krempa@erni.sk" ]
marek.krempa@erni.sk
5ddc3470a08baf2e88626a2156e4d15e32f943ae
19710aeaa5c270818eb513586bd0941bfb4149bb
/utils.py
4f12b3f2ab0eb1bdd97ec43b8d97571381e357c6
[]
no_license
DadouneDa/RaceCar
34fb3cc8a51a30b29fd2e849627d9d100624222f
d1ade03c9d9155224b91e067e979c2ed51f52626
refs/heads/master
2023-09-01T14:54:07.562325
2021-10-18T11:37:36
2021-10-18T11:37:36
418,472,932
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
import pygame def scale_image(img, factor): size = round(img.get_width() * factor), round(img.get_height() * factor) return pygame.transform.scale(img, size) def blit_rotate_center(win, image, top_left, angle): rotate_image = pygame.transform.rotate(image, angle) new_rect = rotate_image.get_rect(cen...
[ "David.Dadoune@audiocodes.com" ]
David.Dadoune@audiocodes.com
1143e59461beae0fee58432e015065cfd7fe3fb2
50f00c6555556593a45b94c6923169191db7a853
/lab6/tournament.py
fd316c89448d89da3fff534c6fa9cb9130f68ea5
[]
no_license
DeagaDH/CS50_Homework
9e239ceaa186de027019a7b5b93ec377d95414ac
91e42ba0c1f8aeca692acf508fb49f53c588abb6
refs/heads/main
2023-03-16T11:45:54.603364
2021-03-02T17:29:27
2021-03-02T17:29:27
342,089,864
0
0
null
null
null
null
UTF-8
Python
false
false
2,249
py
# Simulate a sports tournament import csv import sys import random # Number of simluations to run N = 1000 def main(): # Ensure correct usage if len(sys.argv) != 2: sys.exit("Usage: python tournament.py FILENAME") # Initialize teams as an empty list teams = [] # Read teams from file g...
[ "dhdeaga@gmail.com" ]
dhdeaga@gmail.com
208cb47479c2c4a5bef8b3ece331d195ca00839b
70cdf0741a22c678401a306229003bf036ffe5a6
/ocbind/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_isis_neighbor_attribute/neighbors/neighbor/instances/instance/__init__.py
f819af22ccad6a5cc866476ee6a03e4789bfe20d
[]
no_license
zsblevins/nanog81-hackathon
5001e034339d6b0c6452ae2474f06916bcd715cf
1b64fd207dd69837f947094fbd6d6c1cea3a1070
refs/heads/main
2023-03-03T09:39:28.460000
2021-02-15T13:41:38
2021-02-15T13:41:38
336,698,856
2
0
null
null
null
null
UTF-8
Python
false
false
55,942
py
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
[ "zblevins@netflix.com" ]
zblevins@netflix.com
f56fead72b282e8b8135708cb3b9e5e8e1b808cf
557d51cd6c7459f3492f6e5e6a44e10b9026b805
/osipkd/views/akuntansi/ak_jurnal_item.py
c48df4ce5028c9d20d58ec888dc49af8df0ab6d5
[]
no_license
aagusti/zosipkd
e6a3bd8ca71b240dc3141c89dba252291c2c9ea7
fbb4fcc74d772a9f1692a4e8b45cb63ce77e85f2
refs/heads/master
2021-01-17T10:23:14.182025
2016-05-04T07:34:05
2016-05-04T07:34:05
28,517,748
0
0
null
null
null
null
UTF-8
Python
false
false
8,936
py
import os import uuid from osipkd.tools import row2dict, xls_reader from datetime import datetime from sqlalchemy import not_, func from sqlalchemy.orm import aliased from pyramid.view import (view_config,) from pyramid.httpexceptions import ( HTTPFound, ) import colander from deform import (Form, widget, ValidationFai...
[ "aa.gustiana@gmail.com" ]
aa.gustiana@gmail.com
0563ccfcace9c68878dcee8c2ae4a64f1e154969
493ee321c961421eaf1edc38a2de93556b14cc78
/py_scripts/sample_nets_discrete_weights.py
a8adc8e54817405bc3cf38f8eb056085061552af
[]
no_license
guillefix/simpbias-tools
4127b7cb939b301074f30ed480b249e418d2eb2d
76ab7d1fc45b08ff33f61a39ac49d7df72b5f609
refs/heads/master
2020-05-18T12:53:51.388198
2019-05-01T14:46:14
2019-05-01T14:46:14
184,422,339
0
1
null
null
null
null
UTF-8
Python
false
false
6,634
py
import tensorflow as tf import numpy as np # from sklearn.metrics import confusion_matrix # import time # from datetime import timedelta import math from collections import Counter np.set_printoptions(threshold=np.nan) from KC_LZ import calc_KC import pickle import sys #(idx, N) = [int(ar) for ar in sys.argv[1:]] idx...
[ "guillefix@gmail.com" ]
guillefix@gmail.com
146c641d33adeb6defa68ddc3f71c766beb13d5a
fa571a842f04bcbc77ff203a5ed6f6ee776eed6d
/codes/tuple10.py
8744bc79540b217dd7df2fc0a2637049f35feee4
[]
no_license
krishna-rawat-hp/PythonProgramming
b25c0916475724e6d2de4b7d59cf40b5b5e8330b
d24df17ca6aff9271c44ef8c73b80c00cd065ded
refs/heads/master
2023-03-11T19:24:34.529059
2021-02-27T14:09:22
2021-02-27T14:09:22
282,611,873
0
0
null
2020-07-26T10:38:54
2020-07-26T08:52:49
null
UTF-8
Python
false
false
441
py
# Python tuple Built-in function tup1 = (1,2,3,4,5) # Example-1 length of tuple print("Length of tuple: ",len(tup1)) # Example-2 min value in tuple print("Minimum value in tuple: ",min(tup1)) # Example-3 Max value in tuple print("Maximum value in tuple: ",max(tup1)) # Example-4 tuple() method in python tuples str ...
[ "rawatkrishnakant8319@gmail.com" ]
rawatkrishnakant8319@gmail.com
20acca3bfc69b22f14aaa71a2ac8f06c519510a5
66ab73cc79e80f6c42669f2d8c3c9a342da49058
/selection_sort.py
3103de6e217909ea22eb898f1475980c82947455
[]
no_license
brleinad/algorithms-practice
3c3ef8b6a6111620a56c147992950f5f7290fe7f
a74204e94f6b3883bd593613806cc244e644eed6
refs/heads/master
2022-04-24T19:56:28.491571
2020-04-29T13:01:06
2020-04-29T13:01:06
250,367,726
0
0
null
null
null
null
UTF-8
Python
false
false
462
py
import random def selection_sort(a): for i in range(len(a)): mina = a[i] swap = False for j in range(i+1, len(a)): if mina > a[j]: mina = a[j] k = j swap = True if swap: a[k] = a[i] a[i] = mina r...
[ "daniel.rodas.bautista@gmail.com" ]
daniel.rodas.bautista@gmail.com
70715af74016fb193e1dc17cc87fb1632d93526a
cedf3c65061222b3099852f27dde39ff0dfe492b
/blog/migrations/0006_auto_20200101_2255.py
41d4c082f868854719fb951f9bc736479520f459
[]
no_license
smrkhan123/myblog
1fd87b2c528cb2edccaf3f60c66a8c298774447a
8d0c33fcc74c582f21a32150d3460cce62ad6dd2
refs/heads/master
2020-12-08T21:50:32.352065
2020-01-10T18:23:56
2020-01-10T18:23:56
233,105,398
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
# Generated by Django 2.2.4 on 2020-01-01 17:25 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0005_comment'), ] operations = [ migrations.RenameField( model_name='comment', old_name='comment', new_n...
[ "sk862147@gmail.com" ]
sk862147@gmail.com
f9ab128fb82107ad73c13d8bff645ad4cfd837d4
2f63688febd21dc3ae6b19abfa79ad313c820154
/AlgoExpert/coding_interview_questions/Dynamic_Programming/Max_Subset_Sum_No_Adjacent.py
35e8fc100f69daaeac1de7c8a7e1b7ba9ce4c161
[]
no_license
novayo/LeetCode
cadd03587ee4ed6e35f60294070165afc1539ac8
54d0b3c237e0ffed8782915d6b75b7c6a0fe0de7
refs/heads/master
2023-08-14T00:35:15.528520
2023-07-30T05:56:05
2023-07-30T05:56:05
200,248,146
8
1
null
2022-11-19T04:37:54
2019-08-02T14:24:19
Python
UTF-8
Python
false
false
387
py
''' main idea: dp time comp: O(n) space comp: O(1) - where n is the length of the input array ''' def maxSubsetSumNoAdjacent(array): # Write your code here. if not array: return 0 if len(array) <= 2: return max(array) a = array[0] b = array[1] c = a + array[2] for i in range(3, len(array)): d = a...
[ "eric_shih@trendmicro.com" ]
eric_shih@trendmicro.com
2f3751c4f91d23b270504d3274d7d3e235779172
7535c04ce6b5c980db31b7561cb60e3daff184a6
/personal/settings.py
616a66c6d67f78282612c5e1f9dc4c3c214aa6d1
[]
no_license
tehis/personal-website
32e9f5715410009c16cbf62f22e2edf6ef4fc793
af1700504084784eca8ddfab1406764e97570237
refs/heads/master
2022-12-19T02:08:01.604427
2019-06-23T02:40:31
2019-06-23T02:40:31
191,114,826
0
0
null
2022-07-06T20:09:49
2019-06-10T07:00:42
Python
UTF-8
Python
false
false
3,354
py
""" Django settings for personal project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ from builtin...
[ "ali.khoshtinattt@gmail.com" ]
ali.khoshtinattt@gmail.com
2f1b8379c5905acde785ca4c1d763570cae45ca1
049972e12c0c9177831b2d4eaf9e070439b074fa
/pyrf/gui/wsa4000blocking.py
dafa479d68079aaf084faab57fe962fc04912e3a
[]
no_license
nikhilrf/pyrf
19b4a1f6e3e98aa739e954f8d760419d889b3153
bfc4d597af8a01703fe59d9cfa30c28e0bdce026
refs/heads/master
2021-01-16T23:01:32.808909
2013-01-29T01:56:09
2013-01-29T01:56:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,404
py
import sys from PySide import QtGui, QtCore from pyrf.gui.gui import MainWindow, MainPanel from pyrf.numpy_util import compute_fft from pyrf.devices.thinkrf import WSA4000 from pyrf.util import read_data_and_reflevel REFRESH_CHARTS = 0.05 class BlockingMainWindow(MainWindow): """ Override the MainWindow metho...
[ "ian@excess.org" ]
ian@excess.org
2257eb1cd70d0cfccc996cfe65d9ed17c6593ca4
8a55bdec478d2fb48508deac13ca3aeeda46fa06
/contrib/devtools/symbol-check.py
4bcbde4f62eeb0412e726b862b311d0049b94f42
[ "MIT", "LicenseRef-scancode-public-domain" ]
permissive
hideoussquid/aureus-core-gui
83b0525e1afa349e0834e1a3baed5534043cd689
ce075f2f0f9c99a344a1b0629cfd891526daac7b
refs/heads/master
2021-01-19T00:04:39.888184
2017-04-04T08:15:18
2017-04-04T08:15:18
87,142,504
0
0
null
null
null
null
UTF-8
Python
false
false
6,191
py
#!/usr/bin/env python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' A script to check that the (Linux) executables produced by gitian only contain allowed gcc, glibc and libstdc++...
[ "thesquid@mac.com" ]
thesquid@mac.com
5012edbc0bc687552fcf3a1bbaf558b0a4f335ae
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=3.5_rd=0.5_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=47/params.py
cfa7029e7fd66ff63cb0e7d697a6e4c827251ce2
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
{'cpus': 4, 'duration': 30, 'final_util': '3.532381', 'max_util': '3.5', 'periods': 'harmonic-2', 'release_master': False, 'res_distr': '0.5', 'res_nmb': '4', 'res_weight': '0.04', 'scheduler': 'GSN-EDF', 'trial': 47, 'utils': 'uni-medium-3'}
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
5d8b036d1bb1d63079d0c9d9a2cfff38fe2b25f0
21ac4a005da4c199f7285ef2518ab58e6f05a1d3
/python-practice/prod.py
8a943f35daabe3f4a5a87e0aa1fd38b754d3f045
[]
no_license
abstivc/ab
716f30c317e8413410689225272c6fc4db6b8a57
d7e7799164d23352b0768bc4404442933c82ffcb
refs/heads/master
2022-12-10T18:56:50.215303
2020-03-01T16:08:25
2020-03-01T16:08:25
160,114,489
0
0
null
2022-12-10T05:34:35
2018-12-03T01:19:33
JavaScript
UTF-8
Python
false
false
228
py
## 求积 from functools import reduce def prod(L): return reduce(lambda x,y: x*y, L) print('3 * 5 * 7 * 9 =', prod([3, 5, 7, 9])) if prod([3, 5, 7, 9]) == 945: print('测试成功!') else: print('测试失败!')
[ "13162403691@163.com" ]
13162403691@163.com
2a4361eed27401266db65745f6e2de63910dc4b1
201abab0f90f965f7814cc78a6d6be17d2784265
/python/pandemic_simulator/data/h5_data_loader.py
cc7c2fdd98e8bbf02390b0b6495866bb8b058aa6
[ "Apache-2.0" ]
permissive
maxsvetlik/PandemicSimulator
deb1377400b1caaaa7935221ff7b28bab09ca096
6c902522bf697f6e69c4031ec01a058e382c34a6
refs/heads/main
2023-02-26T10:47:20.729667
2021-01-29T22:36:56
2021-01-29T22:36:56
320,059,841
0
0
Apache-2.0
2020-12-09T19:33:53
2020-12-09T19:33:52
null
UTF-8
Python
false
false
3,726
py
# Confidential, Copyright 2020, Sony Corporation of America, All rights reserved. import dataclasses from collections import OrderedDict from pathlib import Path from typing import Sequence, Set, Tuple, Any import h5py as h5 import numpy as np from pandemic_simulator.environment import PandemicObservation from .inte...
[ "kompella@cogitai.com" ]
kompella@cogitai.com
6098d1665fc44c5b9392cbb7fc9e9de0a2f639aa
c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce
/flask/flaskenv/Lib/site-packages/tensorflow/python/keras/engine/base_layer_utils.py
9ff1ab45c3de06a9b41edbb8de2197633c8c4ac7
[]
no_license
AhsonAslam/webapi
54cf7466aac4685da1105f9fb84c686e38f92121
1b2bfa4614e7afdc57c9210b0674506ea70b20b5
refs/heads/master
2020-07-27T06:05:36.057953
2019-09-17T06:35:33
2019-09-17T06:35:33
208,895,450
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:a687562a5029ffbfb9a948ea45a12f73bca931230a551f19634b253752a45fe1 size 21452
[ "github@cuba12345" ]
github@cuba12345
0ef10254fbdabb6e7fe8d80b3d482b026df6db59
55892efb295a7f2faa8b50e0a3079b4e5c62587a
/thick_barbell/settings.py
f8020ee0bd4abb9ccd9ebd1e75cdb11c266d881e
[]
no_license
azimny86/Thick-Barbell1
1b674ab7b5fe19f49fd40911f08c83332fb601f6
03ac6f333c470e85842974c05b224ded36d0ee88
refs/heads/main
2023-08-24T10:29:48.109273
2021-10-13T11:25:19
2021-10-13T11:25:19
412,230,259
0
1
null
null
null
null
UTF-8
Python
false
false
4,361
py
""" Django settings for thick_barbell project. Generated by 'django-admin startproject' using Django 3.2.7. 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 p...
[ "azimny86@gmail.com" ]
azimny86@gmail.com
42499fc2f051b56c4c4ec3113f61c2d0327f6fe2
e9fa26be4d9e7a725d3f889b6aa9cf5029f47c2d
/lib/sqlalchemy/sql/selectable.py
590c4d32dd9059e0da44d631c08a57ab22ee146c
[ "BSD-3-Clause" ]
permissive
ahriman-ru/azure-test
2e0ee70a8b453534cf82e44860f04dddd3ab8095
3c377163192139d046b4ec20ce5b44a0492aecd8
refs/heads/master
2021-07-17T03:53:14.025065
2017-10-20T12:04:11
2017-10-20T12:04:11
100,267,395
0
0
null
2017-08-14T12:54:01
2017-08-14T12:54:01
null
UTF-8
Python
false
false
131,244
py
# sql/selectable.py # Copyright (C) 2005-2017 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """The :class:`.FromClause` class of SQL expression elements, representing ...
[ "root@MININT-HAS5VVP.europe.corp.microsoft.com" ]
root@MININT-HAS5VVP.europe.corp.microsoft.com
bde67ddb3e38f3f93f676b6a7935b603396b8515
4be3122f5acfb05058ef9a4651fea3e421bbfe6f
/chess/treegentest.py
30794c6ec164cbfe713c9b8d71acdde86703a2c5
[]
no_license
BossFightGames/christophermarinos.github.io
af092a1809002835109dc4914212fd691621393e
d5f8cb48dfcf5dd2175f6d6e9b92860ff6121e2e
refs/heads/master
2021-01-22T09:26:26.886059
2017-10-07T11:50:51
2017-10-07T11:50:51
81,955,665
0
0
null
2017-02-14T14:50:08
2017-02-14T14:50:08
null
UTF-8
Python
false
false
328
py
#driverprog.py legalmoves.py printboard.py readchessfileFEN.py recursemoves.py treegentest.py #legalfork.py poopFEN.py print_pretty.py readFENfunc.py scoreFEN.py import readFENfunc import legalmoves import recursemoves testpos = readFENfunc.readFEN('rooktest.FEN') recursemoves.recursemoves(5,testp...
[ "noreply@github.com" ]
noreply@github.com
a1470df5a8e0b49cf11e7e5d92df310b1adc83f5
5fc72b72b1f2d01212fb59ba9ce8f83ffee9f9de
/ecomauth/settings.py
8c83cf08a536588cc30cbf40a01a82c7023cea8d
[]
no_license
surianmau/ecomvauth
19994045c13402f70c01f993dca27f1c0b17623f
eea060e595b2cb4bd59e8dd186161220072bbf0f
refs/heads/master
2023-01-04T20:37:44.736880
2020-11-04T06:53:13
2020-11-04T06:53:13
309,695,209
0
0
null
null
null
null
UTF-8
Python
false
false
3,484
py
""" Django settings for ecomauth project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathli...
[ "kishorekumaar28@gmail.com" ]
kishorekumaar28@gmail.com
8af57e7ba06ece00e227464da13627d61ea4e041
c5f8f7bc1cdf05ab816ac17b0170f8a1ff86ff53
/python/simpleReadline/main.py
bda0ba74cc4815794d96fac5be48a6756d728e2e
[]
no_license
lros/rda
9b8036ca5998d10ea320535a2e6fe9ca6ea7ca6e
4c5a27e54445f37f0e25b5883b0009a08e1c7712
refs/heads/master
2021-01-17T07:10:38.285749
2016-05-31T03:45:38
2016-05-31T03:45:38
12,476,400
0
1
null
null
null
null
UTF-8
Python
false
false
985
py
# Simplified version of Python readline module that does not require the # GNU readline package (which is available only on Linux). # This Python module implements two key features: # 1. Tab completion # 2. History # The history is optionally persistent in a file. # Tab completion optionally includes identifiers fro...
[ "sclark724@gmail.com" ]
sclark724@gmail.com
84694bc46f6a3fdcf329eda57ccb7f50aaa76f3c
8f9ea3f14bdf2187de759939b2bbc87fe68ccfc0
/tensorflow/python/estimator/model_fn.py
3edf9fe940b19c7a0b1a7c21a9674189faba5acb
[ "Apache-2.0" ]
permissive
davidstanke/bazel-mvn-demo
4ea43f0ba293a28b916a27eab5f0812e9b753c2c
cff14dddce15ea7152988da576673bd15bab6c6e
refs/heads/master
2022-10-20T07:52:29.651851
2018-11-22T13:17:51
2018-11-22T13:17:51
157,782,756
2
0
Apache-2.0
2022-10-04T23:47:05
2018-11-15T22:54:09
C++
UTF-8
Python
false
false
15,435
py
# Copyright 2016 The TensorFlow Authors. 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 applica...
[ "davidstanke@gmail.com" ]
davidstanke@gmail.com
2374beb6c85a9a76648f371f7c054394f971a644
cb6af06aa8d1d04cf912f8e0ce059e1b38354fde
/general/apps.py
0a63481c6ee47baace478f8c322634277cfe1e19
[]
no_license
derogg1991/CMDB
d90403a53a19a31727bfd63bf55428f2e448a12c
c5fde5a37132dd5520a32bff4e90d1fa63cfa734
refs/heads/master
2020-04-02T20:34:42.576431
2019-01-07T09:26:56
2019-01-07T09:26:56
154,772,989
0
0
null
null
null
null
UTF-8
Python
false
false
117
py
from django.apps import AppConfig class GeneralConfig(AppConfig): name = 'general' verbose_name = '通用'
[ "derogg1991@gmail.com" ]
derogg1991@gmail.com
762a52726011f2e93e7f5758c055c3e77dd2d88c
6b05605f80a0a87295491dc3ffb293d7b07d34d8
/charity_app/migrations/0002_institution.py
0510c9890c447594f0eb3bf091d46067884f2bc2
[]
no_license
Wojtek775/oddam_w_dobre_rece
d5f9fe00ae885ae80bb6ab7d4604b5fc87f930e7
a27f2c39b65ca1a804419d52c4f23c558478cde6
refs/heads/main
2023-06-07T08:02:28.261902
2021-07-01T13:09:21
2021-07-01T13:09:21
377,143,823
0
0
null
null
null
null
UTF-8
Python
false
false
823
py
# Generated by Django 3.2.4 on 2021-06-19 13:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('charity_app', '0001_initial'), ] operations = [ migrations.CreateModel( name='Institution', fields=[ ...
[ "wojciech.kazibet@gmail.com" ]
wojciech.kazibet@gmail.com
817c752e00db2148a4dd5635779329f98737565d
52a3beeb07ad326115084a47a9e698efbaec054b
/horizon/.venv/lib/python2.7/site-packages/openstackclient/identity/v3/policy.py
74a783b06a575e12b7a843a14ab6debc95d39f85
[ "Apache-2.0" ]
permissive
bopopescu/sample_scripts
3dade0710ecdc8f9251dc60164747830f8de6877
f9edce63c0a4d636f672702153662bd77bfd400d
refs/heads/master
2022-11-17T19:19:34.210886
2018-06-11T04:14:27
2018-06-11T04:14:27
282,088,840
0
0
null
2020-07-24T00:57:31
2020-07-24T00:57:31
null
UTF-8
Python
false
false
5,046
py
# Copyright 2012-2013 OpenStack Foundation # # 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 la...
[ "Suhaib.Chishti@exponential.com" ]
Suhaib.Chishti@exponential.com
a54ee60048f664f87ad665f65457b1ccf4497053
fcd18384606ad0cb7419c7385ff9646fa63c7c31
/day3.py
61c852ea1490c4853f0b7c222eae0793dbb772df
[]
no_license
Wellwick/AdventOfCode2020
a3e171ea9eeb2b280a88ec78ea50f913fb511df5
8bafebdbc12b8415da566bad2bd6816a132d87f5
refs/heads/master
2023-02-01T15:12:15.339982
2020-12-17T14:38:11
2020-12-17T14:38:11
317,620,453
0
0
null
null
null
null
UTF-8
Python
false
false
891
py
# Does part 1 and 2! inputs = [] with open("inputs/day3.input", "r") as i_file: inputs = i_file.readlines() # We're getting a bunch of newlines at the end of each line map = [] for i in inputs: map += [i.strip()] # We could make classes which return true for tree, false for empty, but let's # b...
[ "michael.boyle@autodesk.com" ]
michael.boyle@autodesk.com
36900d5037cea41134da343d9661f09b3d6383ed
146229f47d5d50db80e214547efd4cfd170cb23b
/src/words_tweeted.py
807f77c71e71d1a660b78de03a9eaa32787fb65b
[]
no_license
karenxi/tweet_analyzer
be0b6d4985522ef7ba26263f3d8f48ac66ead861
2e3b4be22cbd35b6b565bfd3abd2ec8d6b5b10d4
refs/heads/master
2021-01-01T05:48:45.063970
2015-07-10T19:31:11
2015-07-10T19:31:11
38,861,940
0
0
null
null
null
null
UTF-8
Python
false
false
1,317
py
from operator import itemgetter import sys class StreamWordsCounter: out_file = None # using dict to keep each word and its counts words_count ={} def __init__(self, output_filename): self.out_file = open(output_filename, 'w') def read_tweets(self, filename): f = open(filename, '...
[ "yingxitamu@gmail.com" ]
yingxitamu@gmail.com
59e02a15a093d4b68a7b4c78186457fb6cb974be
aa1d9d60de89f92351cf37d9e1f4df04cd9b0449
/gcp/dag_runner/dag_runner/datetime_param.py
dfbac5471ac37381978fc03d5cf5457c728783f2
[]
no_license
zhoufengzd/python
7ca0de97fa0050f4984d866c87ea0f3069ad3cfa
036e2e17fde91c5ef46b22af00fc73e41bf75428
refs/heads/master
2022-10-13T23:10:10.538705
2022-09-25T03:51:26
2022-09-25T03:51:26
209,899,423
0
0
null
null
null
null
UTF-8
Python
false
false
3,931
py
import datetime class DateTimeParam: """ Support: 1. parse date time string with a few format 2. parse time window string flexible format, and date delta 3. predefined tags: {{ today }}, {{ yesterday }}, {{ tomorrow }}, {{ n_days_ago }}, {{ n_months_ago }} "...
[ "zhoufengzd@gmail.com" ]
zhoufengzd@gmail.com
c22925ad34757142231db2f60b884b3ca8820a8b
8eab24418af4c8915a332b1f8c5e4fc857628b18
/day_1/listdir_ex5.py
993a4b088619750b08b772f8dbb3b96f4fcc5d98
[]
no_license
dsklopp/python_class
94d9a62a6a6d262d0a26467ba4f9161010bb4d51
bb6143576adf7743e43c816f9331ea4b30da2d73
refs/heads/master
2016-09-11T12:49:19.075545
2014-06-12T14:38:51
2014-06-12T14:38:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
import os,sys if len(sys.argv) > 1: os.chdir(sys.argv[1]) files=os.listdir(".") for afile in files: if afile.startswith("file."): file_no=afile[5:] if len(file_no) == 1: digit="00"+ file_no # 001 elif len(file_no)== 2: digit="0" + file_no # 010 elif len(file_no) == 3: ...
[ "dsklopp@gmail.com" ]
dsklopp@gmail.com
3024834057b6bffb97f68853d275971dfdcb5d78
56c23dfabac2b6cdcecfc20f6cc1e53d0041fd7a
/stanCode projects/popularity_name_search_system/babynames.py
a96812b406548096a99f6a2b7b3bfe25882f0a0a
[ "MIT" ]
permissive
rogerchang910/stanCode-projects
174144bcb67b5e141f7acc320e5a14027134bc2a
92beb09b23a40c09a093dfad80837d97a90c8e3a
refs/heads/main
2022-12-30T10:11:23.402634
2020-10-19T07:57:46
2020-10-19T07:57:46
303,656,754
0
0
null
null
null
null
UTF-8
Python
false
false
5,415
py
""" File: babynames.py Name: Roger(Yu-Ming) Chang ----------------------------------------------------- SC101 Baby Names Project Adapted from Nick Parlante's Baby Names assignment by Jerry Liao. ----------------------------------------------------- This python file is to build several functions and create a python dict...
[ "noreply@github.com" ]
noreply@github.com
179efb6dc7e69f13add2b48bd48138775e9b3571
79e45a6e4846927da432087aba845036b11c5622
/PROD/bin/MarketData/Daily/DUSTdailyOHLC_withvol.py
ffea6ec37568125022acaf737d97cd3ed1ed8540
[]
no_license
mjserpico/Scarlett-Trading
cba2bcfaacf886b9d851d978683b4ce641c8f6ad
9778717393dbb0818ee026356996d1806345a6c2
refs/heads/master
2020-03-21T21:39:51.108503
2019-05-09T02:06:26
2019-05-09T02:06:26
139,076,454
0
0
null
null
null
null
UTF-8
Python
false
false
13,169
py
# -*- coding: utf-8 -*- """ Created on Sun Jan 08 09:16:43 2017 @author: Michael """ import mysql.connector from ib.opt import Connection from ib.ext.Contract import Contract import time import logging import datetime import datalink #universal logins for environment import math Flag = 0 CCY1 = "DU" CCY2 = "ST" Table...
[ "mjserpico@gmail.com" ]
mjserpico@gmail.com
1810aa37912ac37bb9d5123d8a114c813bb5d85e
52fc1808a1eb342a08fe402e668c2045a1f9febd
/saber.py
e452a0768bec0e5476483450606a9381a19de42d
[]
no_license
BoiseStateAutomationClub/AutomationClub
c9eb91ae4a70be0d5861adbe831090f6868bcd52
912848f908e7665a324eb656defd44d9cc9d78a1
refs/heads/master
2021-04-15T03:46:25.990411
2018-07-15T23:26:14
2018-07-15T23:26:14
126,913,415
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
from pysabertooth import Sabertooth saber = Sabertooth('/dev/serial0',baudrate=115200,address=125,timeout=0.1) saber.drive(1,50) saber.drive(2,-75)
[ "alexmussell@gmail.com" ]
alexmussell@gmail.com
9822128d048432a0a887770ad6757bcefc3d287d
7b6313d1c4e0e8a5bf34fc8ac163ad446bc69354
/python/[hackerrank]Minimum Height Triangle.py
7f3143c59379db448635a1872d49f9dacbc86239
[]
no_license
menuka-maharjan/competitive_programming
c6032ae3ddcbc974e0e62744989a2aefa30864b2
22d0cea0f96d8bd6dc4d81b146ba20ea627022dd
refs/heads/master
2023-05-01T05:23:09.641733
2021-05-23T16:22:21
2021-05-23T16:22:21
332,250,476
0
0
null
null
null
null
UTF-8
Python
false
false
272
py
#!/bin/python3 import sys import math def lowestTriangle(base, area): x=math.ceil((2*area)/base) return x # Complete this function base, area = input().strip().split(' ') base, area = [int(base), int(area)] height = lowestTriangle(base, area) print(height)
[ "maharjanmenuka8@gmail.com" ]
maharjanmenuka8@gmail.com
f4476ad1cff0d97701afa2544924788af2b900f8
fb909b0716f62ae118afa7d505cbcbd28f62bc63
/main/migrations/0066_auto_20200911_1141.py
1d62edbe74183d9bf7fcc2d790cd66555eadc459
[]
no_license
dkalola/JustAsk-Final
a5b951462cd3c88eb84320bb8fcf10c32f959090
c2e7c2ffae4d3c2d870d5ba5348a6bae62db5319
refs/heads/main
2023-05-24T16:02:17.425251
2021-06-16T19:33:52
2021-06-16T19:33:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,049
py
# Generated by Django 3.1.1 on 2020-09-11 11:41 import datetime from django.db import migrations, models import tinymce.models class Migration(migrations.Migration): dependencies = [ ('main', '0065_auto_20200906_1119'), ] operations = [ migrations.AlterField( model_name='ebo...
[ "divyanshukalola88@gmail.com" ]
divyanshukalola88@gmail.com
e98a3f63200d83d60e2c0f781f28dda84c30a26a
e150a99684c449e11dc9979f2a80abcd0acb27ae
/prelabs/Prelab02/ioTasks.py
39e90b4145483eca64e5509735e0586da4acbb26
[]
no_license
MorrisHsia/ECE364-python-bash-shell
fe3c22b6841be9c437af6de65d2844bc6fc21071
2ca4bc91df595b10f245a1e9467d2e05dc0ad1af
refs/heads/main
2023-03-14T11:59:25.291237
2021-03-08T03:17:28
2021-03-08T03:17:28
345,515,617
0
2
null
null
null
null
UTF-8
Python
false
false
4,470
py
#! /usr/bin/env python ####################################################### # Author: Tsung Lin Hsia # email: thsia@purdue.edu # ID: ee364g21 # Date: 01/15/2019 ####################################################### import os import sys # Module level Variables. (Write this stat...
[ "noreply@github.com" ]
noreply@github.com
f9bc5ad8586c2bea44572eba30d6fa69696fb018
eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7
/google/cloud/talent/v4/talent-v4-py/google/cloud/talent_v4/services/completion/async_client.py
4a61a595b6f482e3f9a5c84d598f49b9f47efb5e
[ "Apache-2.0" ]
permissive
Tryweirder/googleapis-gen
2e5daf46574c3af3d448f1177eaebe809100c346
45d8e9377379f9d1d4e166e80415a8c1737f284d
refs/heads/master
2023-04-05T06:30:04.726589
2021-04-13T23:35:20
2021-04-13T23:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,683
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
2c7103e5eb6fd62b3aefb14762964e870f356d27
54ffba1123bbff84c28de7b20338038dae7a07de
/tests/test_cmd_csv.py
431b8091b119b8714be16232fafd073e709cfef8
[ "MIT" ]
permissive
Satook/paycalc
1a2aeb95035503f525ea9f8d4b037fe82047d88e
2769c7cd84049565dd7c7d427cd60e627d777d9d
refs/heads/master
2020-06-16T04:45:28.425883
2019-07-07T15:20:13
2019-07-07T15:20:13
195,482,897
1
0
null
null
null
null
UTF-8
Python
false
false
1,989
py
import sys from io import StringIO from nose.tools import eq_, raises import paycalc.tax as pt import paycalc.cmd.csv as pcsv class TestCSVCmd: ''' Uses the same test data to test both do_paycalc and process_csv Just helps pinpoint any issues ''' def setUp(self): TEST_CSV = """ David,Ru...
[ "me@satook.com" ]
me@satook.com
78e78913ef96cbe4198de937b77a26b9c81e87bd
6ae18002762f6b578560c5763bf05198d20ac43b
/whats_your_name.py
f8fb4543dee2ed779a8db9d5cd3c99985777ed65
[]
no_license
Souravvk18/Python-Tutorials
5093d65f708d0df67f10f99a9b85a567da0f7424
224b5050f6d8edc8d4e6399ed91bb665691c6b89
refs/heads/master
2023-07-03T18:20:36.881799
2021-08-04T06:44:29
2021-08-04T06:44:29
388,396,364
0
0
null
null
null
null
UTF-8
Python
false
false
99
py
def print_full_name(a, b): print('Hello'+' '+a+' '+b+'!'+' '+'You just delved into python'+'.')
[ "souravlakshan6@gmail.com" ]
souravlakshan6@gmail.com
1863ed33c75a4114a986b15983e8039d257910f5
a80943c82d8723e49f1f88cec90a41051c54b949
/chloe/plots.py
916fcbf5d1cd5bc6274cbbab0cf77c197c9302fa
[]
no_license
munozchris/jacc
decaebec6ed5da0305c16a252138cc79ba0aafaa
f6ea8316c69a8b30f4d77f0f14ae4a9f6613c584
refs/heads/master
2021-01-11T17:11:40.468185
2017-03-14T20:40:12
2017-03-14T20:40:12
79,737,052
0
0
null
null
null
null
UTF-8
Python
false
false
6,349
py
import sqlite3 import matplotlib.pyplot as plt import numpy as np # Helper functions to determine if a departmnent is in a table: def is_dept_in_ex(c, dept): depts_in_ex = c.execute("SELECT DISTINCT Dept FROM e_xTA;").fetchall() depts_in_ex = [entry[0] for entry in depts_in_ex] if dept in depts_in_ex:...
[ "amr@cs.uchicago.edu" ]
amr@cs.uchicago.edu
70524268a8513ee28ba8c529abac584e1da23674
c5c3ee2ac4393e7bdbf61f32677221bef5523973
/src/jk_asyncio_logging/AsyncioMulticastLogger.py
268925e318a8be94b847fbb09df74c97c6f773e7
[ "Apache-2.0" ]
permissive
jkpubsrc/python-module-jk-asyncio-logging
249960382c61353bc0809b77e30312779d3482f2
97b6ca79f8f11353c4b554875e353535d1bbf6fc
refs/heads/master
2022-10-02T03:10:18.771557
2020-01-20T18:38:41
2020-01-20T18:38:41
235,171,209
0
1
null
2022-09-03T13:55:36
2020-01-20T18:37:53
Python
UTF-8
Python
false
false
863
py
import jk_logging from .AsyncioLogWrapper import AsyncioLogWrapper class AsyncioMulticastLogger(AsyncioLogWrapper): @staticmethod def create(*argv): loggers = [] for l in argv: if isinstance(l, AsyncioLogWrapper): loggers.append(l._l) else: assert isinstance(l, jk_logging.AbstractLogger) ...
[ "pubsrc@binary-overflow.de" ]
pubsrc@binary-overflow.de
b3ad9085d450b0be9e16f6a891885dfb9b831d08
d9be34d92ec5bfec5756d5310c2e34226d726cb4
/nn/mnist_loader.py
611bbf70f967542ec27724a4dfa39e3107c7a9a6
[]
no_license
Oldpan/manim
43119e4cf0b2d7c17affd66d1f64ce7a6c3bce81
ac079f182a977bf0d830ab7647971b67cf9e5160
refs/heads/master
2021-07-20T11:23:45.752896
2017-10-27T22:12:29
2017-10-27T22:12:29
108,652,804
1
0
null
2017-10-28T13:47:39
2017-10-28T13:47:39
null
UTF-8
Python
false
false
3,532
py
""" mnist_loader ~~~~~~~~~~~~ A library to load the MNIST image data. For details of the data structures that are returned, see the doc strings for ``load_data`` and ``load_data_wrapper``. In practice, ``load_data_wrapper`` is the function usually called by our neural network code. """ #### Libraries # S...
[ "grantsanderson7@gmail.com" ]
grantsanderson7@gmail.com
216c5b1b3a0a8f7e6817f114a95c54b37c974700
f222202da3ad7d9f897608363c4f6ad18ccb6238
/srm693/triangle_easy.py
5653185d846f7f345f2925e924e89c84de93c355
[]
no_license
antontomusiak/TopCoder
fbc510b53bd2f201443f3846a7143db752116094
124d8426c9faeedc787ce0fa9643a6e80828126e
refs/heads/master
2020-08-22T11:31:23.436037
2019-10-20T16:08:42
2019-10-20T16:08:42
216,384,917
0
0
null
null
null
null
UTF-8
Python
false
false
424
py
class TriangleEasy: def find(self, n, x, y): g = [[False for j in range(n)] for i in range(n)] for i in range(len(x)): g[x[i]][y[i]] = True g[y[i]][x[i]] = True res = 3 for i in range(n): for j in range(i+1, n): for k in range(j+1, n): connected = 0 if g[i][j]: connected += 1 if ...
[ "noreply@github.com" ]
noreply@github.com
c9559a8b576c76a9430b39c8fa258346be60f87c
6ff002de02c737db8ca7b907a8e1b50e3139024b
/metrics/metrics.py
ed73c8c829a6318f54863aaeb582c9fa05aac8a4
[]
no_license
JoseLGomez/CNN_framework_PyTorch
6f43928ac122c9c78ceaffc084c3db105ae5a2c1
1f3deeb6d64843107188d105b5ea6e0798f81a48
refs/heads/master
2021-05-10T18:11:21.653057
2018-02-08T07:42:13
2018-02-08T07:42:13
118,625,106
1
0
null
null
null
null
UTF-8
Python
false
false
3,744
py
import os from math import ceil import numpy as np import torch import torch.nn.functional as F from torch import nn from torch.autograd import Variable import sys def _fast_hist(label_pred, label_true, num_classes): mask = (label_true >= 0) & (label_true < num_classes) hist = np.bincount( num_classes...
[ "gvillalonga@cvc.uab.es" ]
gvillalonga@cvc.uab.es
71129ccf4d7c4c9abc25071b57f797dae7f50228
3aeab4f3a442b186e042325df76b3f34916852cd
/src/commons/views.py
e60b4fec3965dfd497525bd0c8a680ca5e1a959c
[]
no_license
marcioinfo/reviews
4d690d7102474688137c59ce0cb83a68adffe8de
3d55e9b9d84bc944db7254ac229e0ba80634c574
refs/heads/master
2022-06-03T12:59:23.636548
2019-11-26T13:21:13
2019-11-26T13:21:13
222,530,589
0
0
null
2019-11-18T19:46:50
2019-11-18T19:45:32
Python
UTF-8
Python
false
false
1,529
py
# THIRD PARTY IMPORTS from rest_framework.views import APIView from django.contrib.auth.models import User # PROJECT IMPORTS from commons import exceptions #from commons import exceptions from authentication.services import AuthenticationServices #from authentication.services import AuthenticationServices class Cus...
[ "marcioinfo.correa@gmail.com" ]
marcioinfo.correa@gmail.com
606b8ca46b5d83f1cf877de3f7c597a4ed281927
28dcf73b1f31aa4cbce3f96121e068efa87d8769
/mount-pp
0f933045b5fa612a724b66aca20154eaa4ec00b9
[]
no_license
megacoder/mount-pp
e1faac5e6aa84f07c47780164a2977ce4b821b5d
2a07bdf389d62ba7281dc107e0caee3b0995df30
refs/heads/master
2021-01-25T00:56:17.159682
2017-06-18T16:41:37
2017-06-18T16:41:37
94,700,033
0
0
null
null
null
null
UTF-8
Python
false
false
735
#!/usr/bin/python # Print /etf/fstab getting the fields as close to their intended columns as may # be. Long fields push the remainder of the line over as little as is possible # so that the columns come nearer to alignment. import os def pad(parts,cols): s = "" while len(parts) > 0: c = cols.pop(0) ...
[ "Oldest.Software.Guy@gmail.com" ]
Oldest.Software.Guy@gmail.com
229bde7a28f796c2b05d06510b721e757b2aa411
1fbf09a5127a87434c8cfe7131f4b5879966cf04
/web/dashboard/controller/project.py
d96b19e04ea25e26e2855f477d372df8b086c182
[ "MIT" ]
permissive
pombredanne/Kunlun-M
cb0495c583e6ae39e168e96341f4fd2cb01d30ae
ab3b3cc843edee6a558a485d89daf944d8fd7f8e
refs/heads/master
2023-08-23T05:58:12.433991
2021-09-30T10:04:04
2021-09-30T10:04:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,965
py
#!/usr/bin/env python # encoding: utf-8 ''' @author: LoRexxar @contact: lorexxar@gmail.com @file: project.py @time: 2021/7/20 15:50 @desc: ''' import re import ast from django.contrib.auth.decorators import login_required from django.http import JsonResponse, HttpResponseNotFound from django.views.generic import Te...
[ "lorexxar@gmail.com" ]
lorexxar@gmail.com
097070139417fc16e5f2a0c6fdef23fc212ec909
4f906856e07f82f5d14ddabfd3c00c491d4ce8c8
/diagonal.py
db6d178b8c7d3c44671efdabeb8c983b76e18130
[]
no_license
SoliareofAstora/NumericMethods
d4ce4d6559b9f0fbad72082ca2f2197ea3c1d349
6696a07d0ae45a6f18a44c1257f5631ab78bd859
refs/heads/master
2021-09-05T11:10:18.370598
2018-01-26T20:05:56
2018-01-26T20:05:56
112,853,919
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
# -*- coding: utf-8 -*- """ Created on Sat Dec 2 21:02:09 2017 @author: SoliareOfAstora """ import numpy as np class Diagonal: x = np.array([]) row = 0 def setNumbers(self, rownumber, vector): self.x = vector self.row = rownumber def getNumber(self, rownumber): temp = rownum...
[ "piotr1kucharski@gmail.com" ]
piotr1kucharski@gmail.com
25b74e239ea33c4f95a5a9e3af28b4ae11b3f352
3c00534e9554eeae59d4d0a17e1f06ef8fd3a1f6
/bgt_payroll/wizard/slip_report.py
27b9bf10bc9734f3f9b194ad5e74d20b320ecc10
[]
no_license
bambangbc/HRIS-YT---ODOO-10
26524eed207d535aa1ae071a4bc0d1c994778bb0
f5e3e983f244bc57ffda175d3178fc1c4c74dab0
refs/heads/main
2023-06-28T00:06:47.834302
2021-07-16T06:22:27
2021-07-16T06:22:27
386,532,297
0
0
null
null
null
null
UTF-8
Python
false
false
93,108
py
# -*- coding: utf-8 -*- # @Author: xrix ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the ...
[ "87510026+bambangbc@users.noreply.github.com" ]
87510026+bambangbc@users.noreply.github.com
abf1af7ecf2a32b6a43a8befe1c0c7f05827072e
2f3960422d08af95bf67c9057b83244540be51e9
/transformer_tf/Transformer.py
3770aeca1afbf23d880663bb7f1c7c30fc57fffe
[]
no_license
FreeFlyXiaoMa/text_classify_base_model3
2d4eb8f392a4e38bd62f15f45cf29f7bf4546e96
a6b91b557fa307b685d077dd32609f5d83db487a
refs/heads/master
2020-11-28T16:18:40.007655
2019-12-24T03:50:54
2019-12-24T03:50:54
229,865,838
1
0
null
null
null
null
UTF-8
Python
false
false
11,770
py
import tensorflow as tf import math import numpy as np from tensorflow.python.ops import array_ops class Muti_head_Attention(object): def __init__(self, max_length, num_classes, vocab_size, embedding_size, hidden_num, num_blocks, num_heads): # placeholders for input output and dropout self.input_...
[ "2429825530@qq.com" ]
2429825530@qq.com
851e384fda359ccf94fda0ea42fca93a306ac30e
4744458daef53d006d8a594dae0b949e361090a9
/lib/apex/apex/pyprof/prof/usage.py
549a7d8b807a0a89cc5a87ed275a7340a1f89fa7
[ "BSD-3-Clause" ]
permissive
jiangyuefeng/WiFIPerson3D
5452eeb25a6da6bcf4ccd0a3a0c2d6a57b950c9d
e0410254024e9287618e497a2921c5a106d59d73
refs/heads/master
2023-05-02T16:40:34.912691
2021-01-25T11:03:23
2021-01-25T11:03:23
330,856,206
1
0
null
null
null
null
UTF-8
Python
false
false
2,091
py
import sys import argparse def parseArgs(): """ Print usage and parse arguments. """ def check_cols(value): valid = ["idx", "seq", "altseq", "tid", "layer", "trace", "dir", "sub", "mod", "op", "kernel", "params", "sil", "tc", "device", "stream", "grid", "block", "flops", "bytes"] cols = value.split(...
[ "2464944950@qq.com" ]
2464944950@qq.com
7ff9408dd67efb5e19493bdf1a3062ef1c11f42f
453d83e4a0c40d3b545c9f391e5aef7b3e52eda5
/Q1.py
302da56bcf9d10a544ec2afdbd2eabfd978f4a51
[]
no_license
Aasdeep/Test
253d14019a9d7b74e930c3d15c2e301c92b7a989
6d55eb9ec1cd1b63786d2d4233fb4a40125a9cf8
refs/heads/main
2023-01-23T00:02:46.840047
2020-11-13T10:58:28
2020-11-13T10:58:28
312,550,495
0
0
null
null
null
null
UTF-8
Python
false
false
3,603
py
import pandas as pd import numpy as np import sys def normalized_matrix(filename): '''To normalize each of the values in the csv file''' dataset = pd.read_csv(filename) #loading the csv file into dataset attributes = dataset.iloc[:,1:].values #keeping the attributes of the dataset in a different varaiable...
[ "aasdeepsingh17@gmail.com" ]
aasdeepsingh17@gmail.com
4b4b5d0c7b1faee950bee5284213bd7125db5dea
5cf8ace5b3576b5cf32995ec2954a21a4873f9fe
/gpsfun/gpsfun/DjHDGutils/megatestrunner.py
5a5df160bf0d2178ac832df538393d5053ffaf76
[ "BSD-3-Clause" ]
permissive
rishinkaku/gpsfun
23898b22f2d4046ab56fb9e120ff5e7d4abea225
ea1a94619bac3c3922b17ee0396c0b35d25d1fcf
refs/heads/main
2023-06-01T19:04:39.221376
2021-06-11T19:30:47
2021-06-11T19:30:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,677
py
#!/usr/bin/python import unittest from django.test.simple import DjangoTestSuiteRunner class MegaTestSuiteRunner(DjangoTestSuiteRunner): """ works like standart django test suite runner. Addition: Testcases with true EXISTING_DB attr run on working database. All other testcases exec...
[ "kostin@ua2web.com" ]
kostin@ua2web.com
3701af3c5aa78ba520a3a4fd09bf90eda20f534d
f7c009ef99cd805c774d883dcb3609c8187dae75
/bubble_sort.py
5677f356a44c7459b8e3bf4dd50b5ae456c3216a
[]
no_license
Anu1996rag/Algorithms
8289ca1fd9327d564dfb6a6ceec42f972257e935
3bf20004a42cc09f604d2141954680de3439538c
refs/heads/master
2021-12-24T13:58:31.851649
2021-10-12T02:53:22
2021-10-12T02:53:22
231,182,709
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
def bubble_sort(arr): n = len(arr) for i in range(0, n - 1): swapped = False for j in range(0, n - i - 1): if arr[j] > arr[j + 1]: arr[j], arr[j + 1] = arr[j + 1], arr[j] swapped = True if not swapped: break return arr a = [3...
[ "anuragpatils1996@gmail.com" ]
anuragpatils1996@gmail.com
74da43d943824f403bfbc1574bb761a092614292
aa767379b2ef99642a1eddadc48438844a3f9b76
/haxecleanup/common.py
8315323c05c0b90dab95827db2d598c5a6e1648e
[]
no_license
DoclerLabs/Undebt-UniTest-converting-AS3-to-Haxe
336253f2546f3b68cb0b583a21bb771d1e0e9812
d550fadc2a6bc5f5ccb3839cd98afdf40b031725
refs/heads/master
2020-12-24T12:12:31.139089
2016-11-07T12:26:07
2016-11-07T12:26:07
73,069,326
0
0
null
null
null
null
UTF-8
Python
false
false
1,738
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from pyparsing import Keyword from pyparsing import SkipTo from undebt.cmd.logger import log from undebt.pattern.common import LPAREN from undebt.pattern.common import RPAREN from unde...
[ "stepan.vyterna@gmail.com" ]
stepan.vyterna@gmail.com
181307d16f17f8e6f9ce7810bd4e20fcbfcc2b9b
17ac5451a684ef7ceb05531830631c6008d41347
/Stack and Queue/Stack.py
769b33c944bfd1898cf3505fad319b8fe130bebf
[]
no_license
neeraj1bh/Data-Structures-Algorithms
f1d50f6066d5de3e1eff114a437a88ee65e8de6a
ffae883e9277b51976a447368aa3aaed2a3ad325
refs/heads/master
2020-12-19T18:17:37.290150
2020-03-11T17:54:54
2020-03-11T17:54:54
235,812,234
0
0
null
null
null
null
UTF-8
Python
false
false
1,432
py
class EmptyStackError(Exception): pass class Stack: def __init__(self): self.items = [] def is_empty(self): return self.items == [] def size(self): return len(self.items) def push(self, item): self.items.append(item) def pop(self): if self.is_empty(...
[ "neeraj1bh@gmail.com" ]
neeraj1bh@gmail.com
e08d3e3779e75b1c76e59be8ac90edd7793825b1
6ee00fa0c116c697ed1840e129d97380c183b1e4
/PaginationDemoFBVFolder/PaginationDemoFBVFolder/PageFBVProject/PageFBVProject/urls.py
e060abe76a2c133710f2d03a6641e54ba301be84
[]
no_license
poonampatil26/Pagination-FBV
ab24ae780c6da0880754f5f7c2b2300bb70d8f53
47ea83df87734914035c9f652b91c1f1e4e59d40
refs/heads/main
2023-08-02T09:56:26.311391
2021-09-19T14:19:16
2021-09-19T14:19:16
408,145,180
0
0
null
null
null
null
UTF-8
Python
false
false
812
py
"""PageFBVProject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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') Clas...
[ "poonampatil900@gmail.com" ]
poonampatil900@gmail.com
28af2e56ac4f77f2fa99d0efb8a0ca4a81013aae
26c7e107ec619d8891dde765ba715ae845cda699
/algorithms/MultilayerPerceptron.py
9662d2843d83bb1f3a3c9eb38bf5aabdda33e399
[]
no_license
cipriancus/checkThat-2019-UAICS
73e45991d2f253a211d2579553a46731843e2b2b
5493c0cb58d3a8cc423e87259d1a11581d065b72
refs/heads/master
2022-08-01T03:25:24.762163
2020-05-15T09:55:55
2020-05-15T09:55:55
249,636,993
0
0
null
null
null
null
UTF-8
Python
false
false
745
py
from pyspark.ml import Pipeline from pyspark.ml.feature import HashingTF, IDF, StopWordsRemover from pyspark.ml.feature import Tokenizer from pyspark.ml.classification import MultilayerPerceptronClassifier class MPClassifier(object): def __init__(self, data): self.tokenizer = Tokenizer(inputCol="text", o...
[ "cipriancus@gmail.com" ]
cipriancus@gmail.com
b7bb6f433a614f530de7f24c83596e5d1d083e36
84f1fea102aeb2d324e8ad3908e1765d04a0a730
/emails/migrations/0002_sentemail_transaction_event.py
367b922c18a634054c774c56a9edd85a29f73e26
[ "Apache-2.0" ]
permissive
Natsoye/explorer
c205f8eb8d08705c2c4ee4ee45c28f7d0a534b10
638c70204d6001d9c5c56701917a6273a02c90cf
refs/heads/master
2021-08-30T10:42:56.371192
2021-08-17T15:43:04
2021-08-17T15:43:04
181,131,891
2
0
Apache-2.0
2021-08-17T15:43:05
2019-04-13T06:43:15
Python
UTF-8
Python
false
false
526
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('emails', '0001_initial'), ('transactions', '0001_initial'), ] operations = [ migrations.AddField( model_...
[ "mflaxman@gmail.com" ]
mflaxman@gmail.com
8737cd2b0d8f72b063a39e23b4cb76f20b2b2e95
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/arista/eos/tests/unit/modules/network/eos/test_eos_eapi.py
a01bf1eb370a2fdae9d8734baa3d9a7804e49bea
[ "GPL-3.0-or-later", "GPL-3.0-only", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
SimonFangCisco/dne-dna-code
7072eba7da0389e37507b7a2aa5f7d0c0735a220
2ea7d4f00212f502bc684ac257371ada73da1ca9
refs/heads/master
2023-03-10T23:10:31.392558
2021-02-25T15:04:36
2021-02-25T15:04:36
342,274,373
0
0
MIT
2021-02-25T14:39:22
2021-02-25T14:39:22
null
UTF-8
Python
false
false
6,923
py
# (c) 2016 Red Hat Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is dis...
[ "sifang@cisco.com" ]
sifang@cisco.com
8dbfcfab6fdd34079b0975e4973fe5f14c3f3d57
2cc48f190536c8e6fc80a0646107a6be1fed20c0
/myvenv/Scripts/django-admin.py
d51ea5ce43dfb940a1d58b101d39c2f83fc50ad5
[]
no_license
agatawojtas/My-first-blog
f4952c479ef9d877103181de23dfaa9e076dd277
e9b22a64e571ac0ac639526208a9d18683d98d73
refs/heads/master
2020-03-19T16:17:28.543607
2018-06-09T14:48:27
2018-06-09T14:48:27
136,709,461
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
#!c:\users\agata\djangogirls\myvenv\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "agattawojtas@gmail.com" ]
agattawojtas@gmail.com
fb6d9adf18bd2639ec500f4b40a5b86cb6d22047
65120ec2a6c4d5552cbac993808d9a5fae72d60c
/final-calculator.py
5209556649d5a7fedf1314c5095d545d78292c37
[]
no_license
Math69lyon/Epitech_coding_academy
fa9de3ca3f4513e0720beecbcfaea3afcfee3f9d
80f35e7bf78a42bb9753517f8fe0207331ebe4b5
refs/heads/master
2022-04-27T13:52:43.377821
2020-04-22T13:24:28
2020-04-22T13:24:28
257,892,244
0
0
null
null
null
null
UTF-8
Python
false
false
5,478
py
#!/usr/bin/env python3 from tkinter import * import math window = Tk() window.title("CALCULATRICE") window.geometry("525x400") window.configure(background="#c1b7b0") button_color=("lightblue") largeur = 10 hauteur = 3 ops = { "*": (lambda a, b: a * b), "/": (lambda a, b: a / b), "-": (lambda a, b: a - b), ...
[ "noreply@github.com" ]
noreply@github.com
b579fafb520c67f2f8a7754378a7d77105b66e5a
199f62f5403d3e439a0ae6fbd5c62a19128256e0
/challenges/hashmap-tree-intersection/hashmap_tree_intersection/hashtable.py
9f486a78677a9cbba35d9b01ccb482a7c4daebc7
[ "MIT" ]
permissive
odai1990/data-structures-and-algorithms
af1eae747499bcc6c04415eae9c639436c4e0246
fde43d7bdb241f6ef8de7018edab7e741b65cf77
refs/heads/main
2023-07-04T02:47:30.798531
2021-08-05T15:15:01
2021-08-05T15:15:01
358,676,763
0
0
MIT
2021-05-04T09:54:03
2021-04-16T17:43:33
JavaScript
UTF-8
Python
false
false
575
py
from hashmap_tree_intersection.linked_list import LinkedList class HashTable: def __init__(self,size): self.size=size self.map=[None]*size def hash(self,key): sum_of_ascii=0 for ch in key: sum_of_ascii+= ord(ch) temp_value = sum_of_ascii*19 hashed_k...
[ "odai22odai78@gmail.com" ]
odai22odai78@gmail.com
592455b55bce8593c9c6de40e2c5ab30d292c7f7
7cce0635a50e8d2db92b7b1bf4ad49fc218fb0b8
/郭鑫程序交接/source.code.2012.06.11/source.code/python/format_segd_header.py
ad56f33d571e2ff5c768e8e1c56fbf10091862db
[]
no_license
liquanhai/cxm-hitech-matrix428
dcebcacea58123aabcd9541704b42b3491444220
d06042a3de79379a77b0e4e276de42de3c1c6d23
refs/heads/master
2021-01-20T12:06:23.622153
2013-01-24T01:05:10
2013-01-24T01:05:10
54,619,320
2
2
null
null
null
null
UTF-8
Python
false
false
5,487
py
import string, sys start_str = """ int i = 0x0; SEGD_TRACE_HEADER_EXTENSION_x_PRIVATE_PTR ptr_p = trace_header_extended_private; SEGD_TRACE_HEADER_EXTENSION_x_PTR ptr = trace_header_extended; if(be_reverted_private){ """ else_str = """ } else{ """ end_str = """ }""" assign_str_1 = "ptr_p->{0...
[ "chengxianming1981@gmail.com" ]
chengxianming1981@gmail.com
48851803546ccb9183415be908bbea74e16bf05e
476a2b2db03772214ac3894a619600a712a41399
/crawler/settings.py
eaff1cdb67a3efa6eb95352ffabaf6818a4f3ae7
[ "MIT" ]
permissive
felix1m/spotify-crawler
42615ecadbf656de22b736ea5a73313549f07b4c
2496e3a62fabc0f7de515903070d0a981053efba
refs/heads/master
2021-01-01T19:24:00.274395
2015-08-02T22:47:06
2015-08-02T22:47:06
39,686,084
2
0
null
null
null
null
UTF-8
Python
false
false
307
py
# -*- coding: utf-8 -*- CLIENT_ID='6ed9ddb967c140239cbf6f8ee128bae1' CLIENT_SECRET='d55c1e8a2a8940028cceca8ef2095c09' REDIRECT_URI='http://localhost:8888/callback' SCOPE = 'user-library-modify user-library-modify playlist-read-private playlist-modify-private playlist-modify-public' USERNAME = '1121777861'
[ "mueller.fe@gmail.com" ]
mueller.fe@gmail.com
f6bd8a6f62a7a43c131c70f831861995b02990a5
427b02ad0649b4f9a0897b97e9d23e7f510800d0
/src/DeepDeterministicPolicyGradients/dataset/RLdataset.py
65b4e0f864810f0d738ef3185d5335da3a1987e2
[ "MIT" ]
permissive
RahulSajnani/Reinforcement-learning
8312dc1453944dbd55776b8cd66e7a1093c56b74
007c985173a80548636313d32cb8c1e0e4ad5612
refs/heads/main
2023-05-01T18:46:54.988745
2021-05-16T20:06:25
2021-05-16T20:06:25
324,405,097
5
0
null
null
null
null
UTF-8
Python
false
false
2,024
py
from collections import deque, namedtuple from torch.utils.data import DataLoader from torch.utils.data.dataset import IterableDataset from typing import List, Tuple import numpy as np # Named tuple for storing experience steps gathered in training Experience = namedtuple('Experience', field_names=['state', 'action',...
[ "rahulsajnani2010@hotmail.com" ]
rahulsajnani2010@hotmail.com
ee950b3986dfc67d84d4a8a1a013efa56e985e3a
9c7797a0cc7f3488d30a19bcbc0bd9d43668021f
/backend/contactsAPI.py
52df3071dfe361e901e32a5771a5311f8f2708d1
[]
no_license
bcdasilv/my-contacts-backend
96424de4947ef70b5fa4f956533141b2e4478dca
e96ada7f541ebfc6e195ee7988681cf0a37a1315
refs/heads/master
2022-10-14T13:58:20.892420
2020-05-19T03:14:03
2020-05-19T03:14:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,870
py
from flask import Flask, Response from flask import request from flask import jsonify from flask_cors import CORS import random import string from database import User, Contacts app = Flask(__name__) # CORS stands for Cross Origin Requests. CORS(app) # Here we'll allow requests coming from any domain. Not recommende...
[ "baileywickham@gmail.com" ]
baileywickham@gmail.com
16ddc7ae6c87de1a8063e42a34d0a94fa0d71ab1
4e7d6dced349c2c3a5ec09f8eca7dd8f70564467
/pool.py
ec24bd20146fde313626544ed146c84bbadeeefb
[]
no_license
VB6Hobbyst7/gmsh_scripts
c0a0baec0ae1b6be6d085d2d4fb7cc9479ced765
28029c52f0a82d5f1deff24d0858f2ae3690f358
refs/heads/master
2022-12-28T18:58:26.359184
2019-10-18T17:48:00
2019-10-18T17:48:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,224
py
import json from complex import Complex from complex_primitive import ComplexPrimitive from divided_cylinder import DividedCylinder from matrix import Matrix from cylinder import Cylinder from support import check_file class Pool(Complex): """ Matrix structure of Complex objects """ def __init__(sel...
[ "bra@ibrae.ac.ru" ]
bra@ibrae.ac.ru
d7f837c05ba26e0c9e8112c5db6507046782745f
7b2bc33a8575f3501fba05df86aed3844785949c
/pythonlibs/modelgrid/modelgrid/__init__.py
4b4adef398a22161473e3cec6453ceafd32a25bb
[ "MIT" ]
permissive
liqun1981/NERSC-HYCOM-CICE
9ef6f6411a2e9652b13af329c61f8861701c1b1a
c71e3d87473d5c3641fda37d8f9981cbfe77e728
refs/heads/master
2022-04-11T12:07:10.172643
2019-11-16T20:32:49
2019-11-16T22:01:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
from grid import Proj4Grid, ConformalGrid from confmap import ConformalMapping
[ "vc.yumruktepe@gmail.com" ]
vc.yumruktepe@gmail.com
3786cda539c2758029469435453faa4ddf75d5b5
9724c8cd81ad39f7f9a2419e2873d7d74cb10c72
/pyabc/external/__init__.py
2cb45567dc2210c4965c2f9d98839dbe36b6260c
[ "BSD-3-Clause" ]
permissive
ICB-DCM/pyABC
36b7fc431fe4ba4b34d80d268603ec410aeaf918
d1542fb201edca86369082e1fc7934995e3d03a4
refs/heads/main
2023-09-01T13:42:52.880878
2023-08-18T16:55:04
2023-08-18T16:55:04
96,995,608
187
49
BSD-3-Clause
2023-08-18T16:55:05
2017-07-12T10:30:10
Python
UTF-8
Python
false
false
871
py
""" .. _api_external: External simulators =================== This module can be used to easily interface pyABC with model simulations, summary statistics calculators and distance functions written in programming languages other than Python. The class :class:`pyabc.external.ExternalHandler`, as well as derived Model...
[ "noreply@github.com" ]
noreply@github.com
c3f6ff00a01a16b4aec15ae9a9ed25d9f93b75db
e84298cebe97a418028409ba460c1dc0be21fd25
/sisterload.py
f3996d7e1c73205fa9d42a97aa32ce829d0041f5
[]
no_license
Jetlef/SisterLoad
c994d96d37a616babb95a2a3f60d9397998d70ff
3ec20941ebf06ce34a4403dc81adfb8619edf53c
refs/heads/master
2020-12-25T19:15:43.355638
2013-04-12T10:56:10
2013-04-12T10:56:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
#!/usr/bin/env python import os def clear(): if os.name == "posix": os.system("clear") else: os.system("cls") command = raw_input("SisterLoad~ ") while command != "exit": print "HUD GOES HERE" print "*"*22*80 command = raw_input("SisterLoad~ ") clear()
[ "luca@iMac-di-Luca.local" ]
luca@iMac-di-Luca.local
b5ebcfaaa14070990a7c483c41fc28391b4d8e78
a4fc181d20759ad7f1b077afbe772f52b786d054
/DiveIntoDLPytorchDemos/Chapter3_DL_basics/3.12_weight-decay.py
233abf2cd670f1f7ed50d5d1b00c5e9a2e5b597e
[]
no_license
guanguanboy/machineLearning
a2b3a7657a17d8de7dacdbdbeebade5dd03d535c
092df185bbaf25066824a58973e4bd78cc8fff4d
refs/heads/master
2021-06-21T22:20:30.384417
2021-01-01T09:18:16
2021-01-01T09:18:16
158,904,016
0
0
null
null
null
null
UTF-8
Python
false
false
3,220
py
import torch import torch.nn as nn import numpy as np import sys import torch.utils sys.path.append("..") import d2lzh_pytorch as d2l print(torch.__version__) #高维线性回归实验 n_train, n_test, num_inputs = 20, 100, 200 true_w, true_b = torch.ones(num_inputs, 1) * 0.01, 0.05 features = torch.randn((n_train + n_test, num_i...
[ "liguanlin@orbbec.com" ]
liguanlin@orbbec.com
fb3c572463a2d0d63d7c3ccf7b78cf070b687087
a7d6e250ecb407fe27ebd50b5fc87a339491be06
/service_area/forms.py
1b1deebd617e2d3cf5ec799ad90c7686901f1f07
[]
no_license
mingfeng/samap
ce51f447c96372f75a13321bcdd5f6dc5a3117c5
f8b843a7f75e8057e3019fac1dd362346cfbe098
refs/heads/master
2020-03-23T20:50:03.048464
2018-08-23T17:06:59
2018-08-23T17:18:43
142,065,382
0
0
null
null
null
null
UTF-8
Python
false
false
1,084
py
from django import forms from django.conf import settings from django.contrib.gis.geos import Point from django.contrib.gis.gdal import SpatialReference, SRSException class ServiceAreaForm(forms.Form): location = forms.CharField() distance = forms.FloatField(min_value=0) srs = forms.CharField() def c...
[ "mfdevworld@gmail.com" ]
mfdevworld@gmail.com
86c51ce7df8660d7720991739f19d168a936867b
ef6377447197b75ce1fd2837928ffdf26e192889
/Requests_lianxi/test_qiyeweixin/api/tag.py
57e71e1d50557fa08b31a8b70098804247e5fbcd
[]
no_license
fanchaoasdqwe1/PyTest_01
a6eafccb533c337d208b78b7cd6905fff9de7ab9
3347876b6c8ee8df000894e64129bf86fa410bf7
refs/heads/master
2023-03-28T00:34:26.479335
2021-03-31T14:50:05
2021-03-31T14:50:05
327,633,183
1
0
null
null
null
null
UTF-8
Python
false
false
1,448
py
import requests from Requests_lianxi.test_qiyeweixin.api.base_api import BaseApi from Requests_lianxi.test_qiyeweixin.api.wework import WeWork class Tag(WeWork): secret = "Yk-zuf3-um8wJYr0V9CwhPSRdxbf6PzpY9-pfkBSWi8" # 获取所有标签 def get(self): url = 'https://qyapi.weixin.qq.com/cgi-bin/externalcont...
[ "769029077@qq.com" ]
769029077@qq.com
0a792293e4a77a07abaf9f4e415181af5f8c98e6
0a2f79a4338615113abf34dbd027d6bec762c981
/tries.py
066636c52b3e15a0e99ff4763be6533413bc7248
[]
no_license
SmithChen-364/learngit
d56220cb5902b30b7832f3cdeb4d429c58583d1c
b5202a269d06d745477c146bf0379a5f16a6b585
refs/heads/master
2020-06-20T12:11:19.678310
2019-08-06T07:47:29
2019-08-06T07:47:29
197,118,166
0
0
null
null
null
null
UTF-8
Python
false
false
3,807
py
#tries for search words #tries类 class tries: #根节点root root=None #添加方法 def add(self,word): #如果没有根节点,则将第一个单词的第一个字符添加为根节点, #如果有根节点,从第一个字符开始添加节点 if(not self.root): self.root=self.add_element(word,0,self.root) self.root.parentNode=self.triesNode("root") ...
[ "you@example.com" ]
you@example.com
a19334f1c449b0d526d1f065a06c9b9cde1c65e4
cf101f1b638538efa926148193261afe4925cab3
/img/Week 3/script5.py
305951cebd7ad1bbcd92fb767f25dbe89dc6c9b8
[]
no_license
vaib-saxena/vaib-saxena.github.io
3249d5714c520fad126604a8e8a86cf76874c6ec
512e2232309d5504961ae582b9ba141d30e46878
refs/heads/master
2022-12-11T00:44:28.857477
2022-11-27T12:13:39
2022-11-27T12:13:39
192,065,153
0
0
null
null
null
null
UTF-8
Python
false
false
1,332
py
import rhinoscriptsyntax as rs import random for c in range(20): listofpoint=[] for i in range(3): x=random.uniform(-200,200) y=random.uniform(-200,200) z=random.uniform(-300,300) a=rs.AddPoint(x,y,z) rs.MoveObject(a,(random.uniform(-400,400),random.uniform(-200,200),random.uniform(-400,400))) print a ...
[ "vaibsaxena93@gmail.com" ]
vaibsaxena93@gmail.com
dce8de867049b21d45d17ae05f6fc6605d789d27
6192fe0c70c253205cd827fd34a82e9211080762
/webchat/views.py
db9aedc35b2e343a37918298d266f3764f3d6aac
[]
no_license
EcthelionF/Chatroom
34cf45ed3b7a84004ea011eb8ed7e502a7876f39
24cbe60164c46a507f0ac729f2c53a6cb09a6b89
refs/heads/master
2021-06-16T19:48:45.511079
2017-05-28T10:17:48
2017-05-28T10:17:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,421
py
# -*- coding: utf-8 -*- import json import Queue import time from django.shortcuts import render from django.views.generic.base import View from django.contrib.auth import authenticate, login, logout from django.http import HttpResponse, HttpResponseRedirect from django.core.urlresolvers import reverse from webchat....
[ "yipwinghong@outlook.com" ]
yipwinghong@outlook.com
0b80ce65c0fc141d50afe93732e5bb02641dcfc7
5ab3a6b8ea64920a99d24ed41531cf56a3f5d53a
/app.py
cd4fb90b15aacff43cdf5765e0f2d6b8e3c0d943
[]
no_license
ElisabethHolm/TelloDrone
3c9d7f999cbfce2c42946333e9816cc16928f2b0
0252b635842a15b321efc7d600a57548e255aca3
refs/heads/master
2023-05-07T15:09:20.828990
2021-06-01T16:05:32
2021-06-01T16:05:32
359,876,024
0
0
null
null
null
null
UTF-8
Python
false
false
2,329
py
#python 3.8.10 from tello import Tello import sys from datetime import datetime import time import argparse #cd Downloads/Coding/TelloDrone/auto_flight #python app.py #git push -u origin master ''' def parse_args(args): """ Parses arguments. :param args: Arguments. :return: Parsed arguments. """ ...
[ "elisabeth.holm.21@bishops.com" ]
elisabeth.holm.21@bishops.com
46bb51490ebff49d214f39c06b122e5380a53c96
cdc36e2178e5613ec7dbde4ac4dab8b1c83a0301
/learning_site/venv/lib/python2.7/site-packages/google_compute_engine/metadata_watcher.py
c24ac81d7741753a5457fd426ddd10a393bb6a07
[]
no_license
stephen279/learning_site_project
1519f587e3daf4f71b415e8b6f89744a1b8fcc31
2d70c282f50c046158877f81df49253e16f00e52
refs/heads/master
2023-01-10T01:02:41.972990
2018-03-20T19:08:10
2018-03-20T19:08:10
85,703,449
0
1
null
2022-07-06T19:45:18
2017-03-21T13:11:39
Python
UTF-8
Python
false
false
7,364
py
#!/usr/bin/python # Copyright 2016 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 appli...
[ "stephenholland279@msn.com" ]
stephenholland279@msn.com
f8f6c560af57cbf61a38d972855a3a4233da4ed2
3dc6a841ce46e37ae49aad26dae479ab23fcd951
/customized.py
8633f2dbfdf8e2f93cd259be39db4aa6233c3a43
[]
no_license
SeanMelody/python-password-generator
ded205103ebcb3167fc67dbc9cffefb6d84ee93e
ac7e606c4a4e493c10e3e78610a19f7b8f2942a3
refs/heads/main
2023-05-06T09:06:05.991633
2021-05-28T22:34:59
2021-05-28T22:34:59
371,557,165
0
0
null
null
null
null
UTF-8
Python
false
false
1,196
py
import random import string characters = "" # capsCar = string.ascii_letters capsCar = string.ascii_uppercase specialCar = [",", "-", "!", "@", "#", "$", "&"] numberCar = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"] length = int(input("How long would you like your password?: ")) caps = input( "Would you l...
[ "seandmelody@gmail.com" ]
seandmelody@gmail.com
50efae8cf3c6ae5e6053a7c24c353564133793bc
8b7334be253552c4a2982e3022d211ad8970abf6
/data/migrations/0053_merge_20180615_1859.py
77b069dd59b066015e97cf4ed41046967c32178f
[ "MIT" ]
permissive
Duke-GCB/bespin-api
e5442bf66471bd9469f8094575a1efc00eafc700
cea5c20fb2ff592adabe6ebb7ca934939aa11a34
refs/heads/master
2021-08-16T05:36:25.323416
2019-10-18T15:30:16
2019-10-18T15:30:16
69,596,994
0
3
MIT
2021-06-10T18:55:46
2016-09-29T18:41:56
Python
UTF-8
Python
false
false
333
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2018-06-15 18:59 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('data', '0051_merge_20180615_1758'), ('data', '0052_auto_20180615_1537'), ] operatio...
[ "johnbradley2008@gmail.com" ]
johnbradley2008@gmail.com
30a61d31abd4ae7c19afeb6c9bf02cb104b70bf1
4a948a38a8291fbb7bdf2b4b58739b364add7cc1
/test_database.py
3ec142bcbf495d1de074cab9b80209b5f42a973d
[ "MIT" ]
permissive
akitanak/tus-sample
f8b7d0d1277c2041daafb89998627d4743daa494
6c2b7d7084387dbf2e2fa7507e18fcae1c396af3
refs/heads/master
2022-12-09T15:06:49.431841
2019-07-21T22:36:49
2019-07-21T22:38:35
189,846,083
0
0
MIT
2022-12-08T05:14:23
2019-06-02T12:52:10
Python
UTF-8
Python
false
false
1,651
py
import pytest from database import Database @pytest.fixture def database(): return Database() def test_add_uploads_save_new_upload_data(database): upload_length = 100 metadata = { 'key1': 'value1', 'key2': 'value2' } upload_concat = 'partial' data = database.add_uploads(upl...
[ "akihito_tanaka@me.com" ]
akihito_tanaka@me.com
75dca9b33013e2ffe6ceaf9593620fdf7888d4a4
c79ddb3d77dabba4fe09ba23a43821056867042f
/movieRecommender/DAO/engineDAO.py
db08dbb2a4cf5f2b211549da24e0183a4979c2e8
[]
no_license
Ajaypal91/Movie-Recommendation-webapp
75a070104e08aac27f8b65894d599047bcf4525e
7a9f087c4223610c9fe6bbb9941f388b8517f628
refs/heads/master
2021-01-12T09:39:44.510678
2018-01-13T02:07:31
2018-01-13T02:07:31
76,221,325
2
1
null
2018-01-13T02:07:32
2016-12-12T04:14:21
Python
UTF-8
Python
false
false
1,611
py
import movieRecommender.DAO as DB #function to retrieve movies belonging to list of indexes def getMoviesFromIndex(movieIDs) : db = DB.getDBConnection() quer = '' if len(movieIDs) == 1 : quer = 'select * from idmovietable where index = %s' % movieIDs[0] else : movieIDs = tuple(movieIDs...
[ "erajaypal91@gmail.com" ]
erajaypal91@gmail.com
1f86627758048720cf0ace6eb7d2dd45f66cc0ef
c8ac0119f06aad2360a82be4c14a14d564c0261d
/main/run_test.py
1f16b12c6aee20524a7d4aa853eab234bee131e2
[]
no_license
BaiYaoIsland/NLX_TEAMALL_INTERFACE
b4a6d20683bc441c142730c8ea111551c9cd27b1
818bd4075f2cbb7a60d74064121fe93a86777b71
refs/heads/master
2020-07-05T06:03:33.909749
2019-08-18T11:00:24
2019-08-18T11:00:24
202,547,385
0
0
null
null
null
null
UTF-8
Python
false
false
3,179
py
# coding:utf-8 from base.runmethod import RunMethod from data.get_data import GetData from util.common_util import CommonUtil from data.dependent_data import DependentData from util.send_email import SendEmail import HTMLTestRunner from log.user_log import UserLog logger = UserLog().get_log() class RunTest...
[ "5zhishi20xb@sina.com" ]
5zhishi20xb@sina.com
e0875903db0c36f69dddf93a4340c5d4ecf016e0
2efbcc75ac0e0b0388dc50e05eb1d5cd2ae327d9
/jiqiren/text.py
751b0352bf7fb03ddbd281de000f93fcdbe871fe
[]
no_license
lifengywh/mygit
b38d340d0eaf04188fbb2838aae76b58e48abb86
987605b83e28d2a48daeb5866d53be7ab3bd333e
refs/heads/master
2020-04-15T06:37:50.648519
2016-12-13T10:27:39
2016-12-13T10:27:39
34,562,767
0
0
null
null
null
null
UTF-8
Python
false
false
2,931
py
#-*-encoding:utf-8-*- import requests import sys sys.path.append("..") import pprint from tool_my import commen import time import random import pymongo import pprint import requests import math from bs4 import BeautifulSoup # commen.space_delete('answer_tuling_new.txt','answer_tuling.txt') user_dict = {"lifeng200545...
[ "2271095585@qq.com" ]
2271095585@qq.com