blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
8d5457965017cbb80a4b50425dea2a0cb0eddd79
dfa54c8b452f5651b3ee01a3adad280187d7d964
/lsqpy/util/numpy_iface.py
0b718a2669ec22347b2b4f819d0e84bdfe0f1876
[]
no_license
keegango/lsqpy
0283e688c1a733ca9001754da8cdd25b618fa916
ed2b415667dbcb327b6dbbc95ed407909b9ca906
refs/heads/master
2020-05-04T21:06:11.400682
2014-08-06T21:45:09
2014-08-06T21:45:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
numpy_iface.py
""" """ import numpy as np from lsqpy.exprs.affine import Affine from lsqpy.exprs.variable import Variable def override(name): def ufunc(x, y): if isinstance(y, Affine): return NotImplemented return getattr(np, name)(x, y) return ufunc np.set_numeric_ops( ** { ufunc : override(ufunc) for ufunc in ("equal") ...
52ed6cb20d0393fa541ff8785bb40f86b387535d
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_96/718.py
642cf38ac6ffbd22f5c046477b19201e370cda61
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
444
py
718.py
t = open('input2.txt') t.readline() SUR = {} NOTSUR = {} for index, l in enumerate(t): l = map(int, l.split()) N = l[0] S = l[1] p = l[2] T = l[3:] smallest = max(p-2, 0) * 2 + p cbs = 0 good = 0 for t in T: if t < smallest: continue elif t in (3*p - 4, ...
c9b863e3dd18f3b16ffd7c0e88fd735a450fca50
7f2e0e8be1a264b41f05668baaed73a3c3433bc6
/tensorflow-models/rnn/rnn_clf_mnist_test.py
0254bff167829b90fabb3c69a10b839f1ad83376
[]
no_license
ewanlee/finch
0f00ae8dde113fdc6fbacbd6f7edcdb936b28859
5999ffa6a6e481dcf18f2c86a2997a980a142609
refs/heads/master
2021-06-22T18:34:43.595056
2017-07-24T09:48:25
2017-07-24T09:48:25
98,173,308
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
rnn_clf_mnist_test.py
from rnn_clf import RNNClassifier import numpy as np import tensorflow as tf if __name__ == '__main__': mnist = np.load('/media/DB/Student/WHL/finch/tensorflow-models/autoencoder/mnist.npz') X_train = mnist['x_train'] y_train = mnist['y_train'] X_test = mnist['x_test'] y_test = mnist['y_...
1d1198f592f491b37710776f9f3f30ee05e40174
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2521/60891/299094.py
8384a0bd4348274dfaa48e7fdcb736d9a2e991c7
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
261
py
299094.py
a = eval(input()) a.sort(reverse=True) ans_l = [a[0]] form_x = a[0] a.remove(form_x) while len(a) > 0: for i in range(len(a)): if a[i] != form_x: form_x = a[i] break ans_l.append(form_x) a.remove(form_x) print(ans_l)
595e9b2e779d0d43aada03f1378c209773675e22
19e3d99ff07f05bd1442e733495b0942520c3b1a
/crawlAppPelita.py
d761bdaf430a0ee49e83cd0718dca9b0a2dbbf32
[]
no_license
jamilsalsabila/crawlApp
920d3080f4ef668b2027bdc5a1a5ceb1d5828bc7
1649dbdeabeb09cfa42d52b96db4fbcd751c54a9
refs/heads/master
2021-01-10T10:34:55.508182
2015-10-25T03:39:06
2015-10-25T03:39:06
44,895,101
0
0
null
null
null
null
UTF-8
Python
false
false
1,128
py
crawlAppPelita.py
import urllib import time class crawl: # method constructor def __init__(self, urlSeed, numberOfPages): self.readLinkOkezone = urlSeed self.numberOfPages = numberOfPages self.urlHistoric = {} self.postpound = [i*1000 for i in range(1,11)] def start(self) : for count in range(36, self.numberOfPages): ...
f46541485b911bff1c3ae48a1d906c9d0d661b8c
a708056dcef13c5853b74885be7710382c18286d
/archive/pycharm_project/analyse_state_data_germany.py
08ebfbf0cd259da925e031b3dbf57c7f5ecf484d
[]
no_license
jostelo/COVID-Analysis
d8d2d4cafae3dc1e6f40bb0ed4031ed9e09205be
0873a0de033d4c47f54dee553f0b795dba02f532
refs/heads/master
2023-01-24T20:59:15.286072
2020-11-24T21:25:54
2020-11-24T21:25:54
315,756,452
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
analyse_state_data_germany.py
import numpy as np import pandas as pd import os os.chdir("C:/Users/Jost/Desktop/Master/Masterarbeit/python") data = pd.read_csv("data/RKI_COVID_individuals.csv") data.head()
1a1314962f9bf77487fb0417fa1ce2a5bf79a646
e623117ab88b8611bf452c9252e4b33429769f95
/pgoapi/protos/POGOProtos/Inventory_pb2.py
fbb7779dc0f37807b84fa487c8f10392f5605827
[ "MIT" ]
permissive
Wingo7239/Pokemon-Go-Bot-Working-Hack-API
f101345f421167b41a62f40bd6cb5f71bca5bd23
6a7097f16c3dad0de31a7fb789a466c084904660
refs/heads/master
2020-12-31T03:16:51.025575
2016-07-26T02:27:02
2016-07-26T02:27:02
64,183,061
0
3
null
2016-07-26T02:24:24
2016-07-26T02:24:24
null
UTF-8
Python
false
true
29,134
py
Inventory_pb2.py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: POGOProtos.Inventory.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import ...
57110516cd1523837d4ee1baba1ffe2d245560b3
53e67bb2b6a2f0f07a6d46838e1aaf812c4d8324
/examples/06_identificadores.py
ccc8a3e2d426ed7889b0d4382fe1404cc0b85356
[]
no_license
GaryBriceno/boto3
e7b6060fd46e4e7157d1d4b2aa4b469bcaad2098
642fa69506fa06ff8631d9e53dec707b427cf496
refs/heads/master
2022-11-13T09:19:22.582023
2020-07-04T14:07:25
2020-07-04T14:07:25
277,119,288
2
2
null
null
null
null
UTF-8
Python
false
false
489
py
06_identificadores.py
import boto3 # Let's use Amazon S3 session = boto3.session.Session(profile_name='club') s3 = session.resource('s3') # S3 Object (bucket_name and key are identifiers) obj = s3.Object(bucket_name='jug-peru-boto-3', key='hello_world.mp3') print(obj.bucket_name) print(obj.key) print(obj.last_modified) try: new_obj =...
1ef4023b12d3d2091a952fe11b6e247ee336df3e
dce4a52986ddccea91fbf937bd89e0ae00b9d046
/jni-build/jni-build/jni/include/tensorflow/contrib/learn/python/learn/coordinated_session.py
4b04ebabe727059e22fbf063f590a0973fe86c92
[ "MIT" ]
permissive
Lab603/PicEncyclopedias
54a641b106b7bb2d2f71b2dacef1e5dbeaf773a6
6d39eeb66c63a6f0f7895befc588c9eb1dd105f9
refs/heads/master
2022-11-11T13:35:32.781340
2018-03-15T05:53:07
2018-03-15T05:53:07
103,941,664
6
3
MIT
2022-10-28T05:31:37
2017-09-18T13:20:47
C++
UTF-8
Python
false
false
2,651
py
coordinated_session.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...
ebc30af59a3e978d8904431989292167f22c8929
7ee737da3548e989c79d0635f3f0483e8e57df4f
/userApp/urls.py
9cbe90615edad6d8ffc2b39fc0e0b04244353dc2
[ "MIT" ]
permissive
asifmohd/issueTracking
fc4a0d8e3d7f625b3ceb8431acdc7753933580c6
343c3a29563dc7645e6a9ca60a54ee46e88d6ec7
refs/heads/master
2022-09-02T18:49:45.447943
2022-08-04T10:53:30
2022-08-04T10:53:30
19,072,320
1
0
MIT
2022-02-28T07:25:51
2014-04-23T14:18:35
Python
UTF-8
Python
false
false
362
py
urls.py
from django.urls import path from userApp import views app_name = 'userApp' urlpatterns = [ path('login/', views.login, name='login'), path('signup/', views.register, name = 'register'), path('profile/', views.profile, name='profile'), path('logout/', vi...
87dd0a445130887b17f620a911b496c44416ac62
ff30eb1ddd625f1070c92287385d03389f0f9879
/src/GillespieVersion/extended_model/NovoModelo.py
804a2ebee5cd5da908b55bba6b9cdef84372eefa
[ "MIT" ]
permissive
MaicomPX/covid19model
11d598529b97495318d2ecb19123767eb93989cf
6ba5a6f5dfd0240aa4d0c5aa1c89e12afcf48e33
refs/heads/master
2023-04-22T11:04:17.960470
2021-05-01T18:40:19
2021-05-01T18:40:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,537
py
NovoModelo.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Sep 28 16:48:27 2018 @author: carlabonin """ from scipy import integrate import numpy as np ####################################0############################################### #Resolvendo o sistema de EDOs #########################################...
46af67477ffa41daa15da8c2d860d04eb8383d49
6b09043b97fb379aebd4363ff07d4cc53e8ec0b9
/Day 8/08-DailyFlash_Solutions/22_Jan_Solutions_One/Python/program4.py
cd6a21b31c6eed6296e3a2dadbc5b3993d26be07
[]
no_license
Aadesh-Shigavan/Python_Daily_Flash
6a4bdd73a33f533f3b121fae9eef973e10bf3945
b118beeca3f4c97de54ae1a610f83da81157009a
refs/heads/master
2022-11-28T13:03:17.573906
2020-08-06T15:36:36
2020-08-06T15:36:36
276,581,310
0
0
null
null
null
null
UTF-8
Python
false
false
548
py
program4.py
try: print("Enter Numbers : ") a = int(raw_input()) b = int(raw_input()) print("Enter Operation :") op = ord(raw_input()) except ValueError as e: print("Invalid") exit(0) pass except TypeError : print("Invalid") exit(0) pass if(op == ord("+")): print("Addition : {}".format(a + b)) elif(op == ord("*")): ...
e89d118b1ef1dd9ff19d2dbd825c4a59557667ea
bbc044e4e7637b8ebb64bc3b156e0f0f182a3603
/misc/socket-examples/udp/udpserver.py
8240b0f47761e27b3a44108bbc627248ae7bc2d3
[]
no_license
bowmnath/cis-457-w21
3a901d5acfd9649b4763becc8c805f2f41514b9e
9d1223f20ce0ab22cddd2b679325b9ce5ca1dcec
refs/heads/master
2023-04-05T03:18:44.122005
2021-04-21T20:30:42
2021-04-21T20:30:42
330,687,761
2
0
null
null
null
null
UTF-8
Python
false
false
632
py
udpserver.py
''' Example UDP server. Taken from Kurose and Ross with slight modifications. Example is for demonstration purposes and does not include error-checking code that would be best practice. ''' import socket server_ip = 'localhost' server_port = 12000 buffer_size = 2048 server_socket = socket.socket(socket.AF_INET, so...
60aeffa777eaeec3a0ff8d951ec4e3f6bed99aa9
138200ab4d31e2267a704b62b4fbc86eda6495c2
/pokeai/sim/move_info_db.py
966a4f2a11c5c207c46fbbed1048259f6affa54d
[ "MIT" ]
permissive
juntamura/pokeai
abd22a929e1f14566c7d8ddaa0bd49def4473d4f
0349f6ab1109eab9aa114fbae3a8a08b42e901ab
refs/heads/master
2020-04-10T20:02:42.812860
2018-11-01T12:21:30
2018-11-01T12:21:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,579
py
move_info_db.py
from typing import List, Dict, Callable from pokeai.sim.move import Move from pokeai.sim.poke import PokeNVCondition from pokeai.sim.poke_db_move_info import PokeDBMoveInfo from pokeai.sim.move_flag_db import move_flag_db from pokeai.sim.move_group import move_group, MoveGroupName move_info_db = {} # type: Dict[Move,...
5d99b3f2be1319d1600425810624aefe0a969a0f
ab4089239438e8ba0c5f7ba6f310fd6966fbc760
/Streamlit/project2.py
7a131335d7edaa5f9cdb66f0d38f85a1487c7c08
[]
no_license
GabrielaDS11/Domotica-Assistiva
3adccc6ce1aa2630ff5b906aba162b56d74b090f
9b92d47b6e8da03aff99366f02e9c8a16697a140
refs/heads/master
2023-02-08T05:19:52.379760
2021-01-02T20:16:32
2021-01-02T20:16:32
277,615,211
0
0
null
null
null
null
UTF-8
Python
false
false
7,578
py
project2.py
import streamlit as st import pandas as pd import numpy as np #import ploty.express as px from sklearn import metrics from sklearn.metrics import classification_report, confusion_matrix from sklearn.model_selection import train_test_split from sklearn.preprocessing import LabelEncoder from sklearn.preprocessin...
1e2009fae02242ccac72ff125b5ded530e331a91
40a1ca8ddbdcd96a58703913f98b29b435a42745
/combination sum.py
3b33e46d716714b8939c55095e54d4318b483e2c
[]
no_license
GaganDureja/Algorithm-practice
3eaca2cfc03fcee3671b87b5efda1f950fd36212
d40e08287754594d016801a093becc3f69f4bcc1
refs/heads/master
2023-05-06T11:58:35.471799
2021-06-01T03:49:58
2021-06-01T03:49:58
292,361,813
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
combination sum.py
#Link:https://edabit.com/challenge/9gmNpQ3m9BTYm3FKr from itertools import combinations as cb def lucky_seven(lst): return any(sum(x)==7 for x in cb(lst,3)) print(lucky_seven([2, 4, 3, 8, 9, 1]))
305310104170c88e62b884947beb6a0f3a8f7f49
f8e19abb7c5964578468ba6c0e79ed420daf70b9
/tasks/anthem1/generate.py
12fd0abbb335a635539ad29ca27bed47990519ed
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
teamteamdev/ugractf-2020-quals
7768c9ed4cb4b1acecb0e0dc529229a342d21642
0a1d24c17b342dd57c4ff2bca051e7e21bdaf6d3
refs/heads/master
2022-10-21T17:06:07.781975
2020-06-14T19:05:14
2020-06-14T19:05:14
247,122,269
4
2
null
null
null
null
UTF-8
Python
false
false
2,822
py
generate.py
#!/usr/bin/env python3 import hmac import json import os import random import sys import subprocess import tempfile PREFIX = "ugra_do_the_guys_a_favor_" SECRET = b"rotten-disproportional-gas-script-olive" SALT_SIZE = 12 def get_flag(): user_id = sys.argv[1] return PREFIX + hmac.new(SECRET, str(user_id).encod...
95406d993c8f3abafc7f80f7c8123d36a25a69ed
c22481f477c9cbae79e905cce6ef9c779c6b76a5
/additional/gbk_to_tsv.py
e151f4f36b57ade70acb7b2ea1ecc855689d919a
[]
no_license
matthewonorato/genomics-pipelines
7fc3055ab0cee1772634190333a3b3eb86c412c7
7ab7470d2ee9b03a881c0ada5affa6ecd1cd9b1c
refs/heads/master
2023-01-23T17:27:55.584336
2020-11-25T03:11:35
2020-11-25T03:11:35
315,813,701
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
gbk_to_tsv.py
#!/usr/bin/env python3 from ParseGBK import ParseGBK """ DESCRIPTION: This script extracts genes, locus_tags, protein products, E.C. numbers, and translation sequences from an S. auerus strain used to test a new iron-containing drug called FS-1. """ def main(): gbk = ParseGBK('control-strain_NC.gbf...
9926fa5ae4618c82ca6635d0ab6d4ec6a7186bfe
f6b8fa6841d20c67e70dc14c06dd64410ecb96f1
/client/kedastorclient.py
2233b51bb0ce9133d086b029081852b235b93b6f
[]
no_license
saurabhvartak1982/kedastorqueue
d8b30e53dcec91137a33d60b943fbef970061a80
7a037b44c03dd873a17f4308b074192184aa4132
refs/heads/master
2022-12-21T00:45:58.204792
2020-09-25T17:08:19
2020-09-25T17:08:19
298,620,232
0
1
null
null
null
null
UTF-8
Python
false
false
451
py
kedastorclient.py
import os, uuid from azure.storage.queue import QueueServiceClient, QueueClient, QueueMessage # Storage connection string storconnstring = "<>" queue_name = "kedatest" #Number of messages to be enqueued in the storage queue msgcnt = 3 queue_client = QueueClient.from_connection_string(storconnstring, queue_name) # S...
82b83accfe3fd454c9685dc7eedf573e34c6b7fc
17ec2113c6bc7f62ab0db2fa749db4c2eae0341b
/excel/readCensusExcel.py
1aa9432774ef8298a5aa9c7907c4b8d994a9c789
[]
no_license
friendbear/AutomateWithPython
7ea30bf7bf20b6688143f982236decdc42e78dcd
560c35f1b8c54310debc891387c6c772cd8d573e
refs/heads/master
2020-05-05T06:35:01.280373
2019-06-19T04:06:10
2019-06-19T04:06:10
179,794,006
1
0
null
2019-06-19T04:06:11
2019-04-06T05:46:29
Python
UTF-8
Python
false
false
875
py
readCensusExcel.py
#! python3 # readCensusExcel.py import openpyxl, pprint import setup print('workbook opening...') wb = openpyxl.load_workbook('censuspopdata.xlsx') # readCensusExcel.py:8: DeprecationWarning: Call to deprecated function get_sheet_by_name (Use wb[sheetname]). sheet = wb['Population by Census Tract'] county_data = {}...
57c880ec6733091ff6878922c0763f3f64c984de
802ff21dc092752b09e37b69ebcce603ca6681d6
/Lab02/Bai11chuong9.py
4e8d416f9ef1163773d140186c7ed621ad73f1fb
[]
no_license
long945/Pythonadvance
076dc625e3292d51f41c06a8b7c61d09170577db
e8664d0ec1669ae3a03ef24bbf35ffd7852f08f4
refs/heads/main
2023-09-04T19:43:13.738269
2021-11-07T10:32:56
2021-11-07T10:32:56
425,467,862
0
0
null
null
null
null
UTF-8
Python
false
false
148
py
Bai11chuong9.py
sum=0 count=0 for number in range(2,23): sum+=number count+=1 for number in range(2,23): print(number) average=sum/count print(average)
73a6f5222347a09e1b4bae9638f01157b667efdb
fb7ee6c5076cb9b863e797781d635cf2c4eff503
/USPS.py
d4141cca9814cd7654f62634b945339e0c189570
[]
no_license
suni08/Machine-Learning-Classification-Problem
b14d4744ce390d635fd499a74e7875c75119f96c
5ddf0de6f9db11fa9f1b3c056825a86610375dd9
refs/heads/master
2020-03-08T02:19:22.585640
2018-12-30T00:43:21
2018-12-30T00:43:21
127,856,186
0
0
null
null
null
null
UTF-8
Python
false
false
1,337
py
USPS.py
#Extracting file from USPS dataset import gzip, zipfile import sys, os import numpy as np from PIL import Image filename="proj3_images.zip" #Defining height,width for resizing the images to 28x28 like MNIST digits height=28 width=28 #Defining path for extracting dataset zip file extract_path = "usps_data" #Defining...
456cfa8ac24247646432b074e68b60583cc7b157
ec9f751ec1b888a5d2415a59959d8e0a1e4a2796
/ljpro1/ljpro1/spiders/ljpro1.py
2daff94e20f27dc06931924c3f7fe9410d43d9f1
[]
no_license
emmmmwaaa/My_stuff
3aad36386b01e77e844ae02212db350adb3f9730
90b3a34e8e69819ccc6a29f9659d86779b313b9d
refs/heads/master
2020-05-03T14:38:36.759466
2019-04-17T09:22:48
2019-04-17T09:22:48
178,683,082
1
0
null
null
null
null
UTF-8
Python
false
false
4,406
py
ljpro1.py
import scrapy from scrapy import Selector import re from lxml import etree from bs4 import BeautifulSoup as BS from ljpro1.items import Ljpro1Item class ljpro1(scrapy.Spider): name = 'ljpro1' def __init__(self): self.allow_domains = ['lianjia.com'] self.start_urls = ['https://bj.lianjia.com/er...
c7804244b2cb6c9abd2937d24bffbd5e5752df85
a37b756e34fc39c1237fc68997dbef77df9fa6fc
/keras/keras17-33/keras23_EarlyStopping.py
5caa948d2d235cea65ecbde8e90d6312021b4306
[]
no_license
jvd2n/ai-study
e20e38493ad295940a3201fc0cc8061ca9052607
a82f7c6d89db532f881c76b553b5ab3eea0bdd59
refs/heads/main
2023-08-06T03:24:39.182686
2021-10-06T14:41:01
2021-10-06T14:41:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,974
py
keras23_EarlyStopping.py
from icecream import ic from sklearn.datasets import load_boston import numpy as np datasets = load_boston() x = datasets.data y = datasets.target ic(datasets.feature_names) # ic(datasets.DESCR) from sklearn.model_selection import train_test_split x_train, x_test, y_train, y_test = train_test_split(x, y, ...
512ba62d0919e3f5dc6a7e45cab18c1dee0cb0a3
1ee25790a457a700a11f0181826d2e7d38403fef
/testFiles/primes/primes73.py
a2012457c5276bc7dcb479b40260ea3aedec744e
[]
no_license
janeon/automatedLabHelper
f6b29c9791352d1ca5efbbb1bf9dd1b7295a7658
ce6cbefe3d9b87b960058d82b6daa13f3ff262bc
refs/heads/master
2020-05-05T11:51:55.253461
2019-05-15T04:00:06
2019-05-15T04:00:06
180,006,728
0
0
null
null
null
null
UTF-8
Python
false
false
782
py
primes73.py
def isPrime(x): for f in range(2, x): if x%f == 0: return False if x <= 1: return False return True def main(): print() print("This program will print out prime numbers and twin primes.") n = eval(input("Please enter the number of prime numbers you wish to se...
24c596adf232d53bfb26c4839d70112b0eaccb69
7985621211de87423c63879527d3e352e2eba031
/backend-api/armaps/api/heartbeat.py
ab01177d735621b643def75b6cd2a7832443e3f0
[]
no_license
katevc/ARmaps
95d4477c516718bc1db3638042de013ffe954b18
366a236ec3571105fa66ac80879ca753df6c54fa
refs/heads/main
2023-08-14T19:14:02.650287
2021-04-24T21:56:29
2021-04-24T21:56:29
406,228,326
1
0
null
null
null
null
UTF-8
Python
false
false
158
py
heartbeat.py
""" Heartbeat header. URLs include: / """ import flask import armaps @armaps.app.route('/', methods=["GET"]) def heartbeat(): return flask.jsonify()
6e83128b0716c32f0cadd436fa4bf981658bb1ff
bed34365a9dab825fd9f4a4ff1b0863f441266ac
/neutron/tests/functional/db/migrations/test_c3e9d13c4367_add_binding_index_to_.py
988caf1e8031ebc1b374f32867aeb3bdc0bee07f
[ "Apache-2.0" ]
permissive
openstack/neutron
0913ee3cd69d5bdb9c10aa084d4e1803abee320c
dde31aae392b80341f6440eb38db1583563d7d1f
refs/heads/master
2023-08-31T13:09:41.831598
2023-08-31T11:37:30
2023-08-31T11:37:30
2,400,289
1,174
1,325
Apache-2.0
2022-06-29T08:00:05
2011-09-16T16:04:08
Python
UTF-8
Python
false
false
4,076
py
test_c3e9d13c4367_add_binding_index_to_.py
# Copyright 2017 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 law ...
9db6daa48f82f3466067fdb48f94a211b247185e
4a038f6ae2c87c4eabad381fdec61e7f230eddde
/app/migrations/0007_auto_20190303_0642.py
13688d93d813bff589087aaa916c77ebedab9335
[]
no_license
chaitanyarahalkar/Cyberfort-CTF-Website
6681875a344d4bb19069939c95da4e4c4c1d638f
d0e1aa82049dc2a58d98ef0bf8a5e3042bf394bc
refs/heads/master
2022-05-08T22:51:19.753784
2020-03-06T14:20:29
2020-03-06T14:20:29
229,793,657
1
5
null
2022-04-22T22:54:46
2019-12-23T17:11:57
JavaScript
UTF-8
Python
false
false
443
py
0007_auto_20190303_0642.py
# Generated by Django 2.1.1 on 2019-03-03 06:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0006_questions_questionid'), ] operations = [ migrations.AlterField( model_name='team', name='category', ...
7abd753b01fde6813125c491e95c25356ba951b9
c3cc7ad0d59f919958ec6f553c8ab0e9bf47b3ce
/Regression/Multiple_Linear_Regression/Backward_Elimination.py
1410ab0495e0c2f81481eaa473e30418b493a808
[]
no_license
Kdotseth7/Machine-Learning-Mastery-using-Python
3630bd4ad36f8a3bdad094a3b426561fb390ff97
bbd9225b004bf902eba1de36572f333906f68d61
refs/heads/master
2020-03-26T09:56:17.240763
2018-10-19T14:21:07
2018-10-19T14:21:07
144,772,716
0
0
null
null
null
null
UTF-8
Python
false
false
2,348
py
Backward_Elimination.py
# Multiple Linear Regression using Backward Elimination # Importing the Libraries from pandas import read_csv import numpy as np import matplotlib.pyplot as plt # Importing the Dataset fileName = "50_Startups.csv" data = read_csv(fileName) X = data.iloc[:, :-1].values Y = data.iloc[:, 4].values # Encoding Categorica...
0ba672e9472d27162ff480b9bdce033ba554198c
b7c7881145214631c7e07ec684a5a9b92c089674
/Mp4info.py
eb5bd813784a6dd16a5770d14325087a9f4a5268
[ "MIT" ]
permissive
kakasearch/bili_to_yhdm
d2a56aa862cdf979112cea5cf615122102109e62
38811a7e248b778a7b2042e2c4c18d09c9000500
refs/heads/main
2023-07-09T03:04:51.337200
2021-08-06T15:25:32
2021-08-06T15:25:32
386,690,113
0
0
null
null
null
null
UTF-8
Python
false
false
1,765
py
Mp4info.py
import requests import struct class Mp4info: #获取video 信息 def __init__(self, file): self.file = file self.seek = 0 self.duration = 0 self.s = requests.session() self.timeout = 6 self.s.headers = { 'Connection': 'keep-alive', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp...
329f249dfe9cdefdaa0abed90c516871947c3407
175d6cff12514da71aafef6b9ff48dd56a87db2d
/alveus/main_frame.py
625cee9db89fd518bdb1eb854f63a94195c05e5b
[ "MIT" ]
permissive
FrederikLehn/alveus
d309eea98bd36f06709c55a18f0855f38b5420a9
71a858d0cdd8a4bbd06a28eb35fa7a8a7bd4814b
refs/heads/main
2023-06-26T02:29:59.236579
2021-07-30T11:07:17
2021-07-30T11:07:17
391,029,935
4
3
null
null
null
null
UTF-8
Python
false
false
80,080
py
main_frame.py
# generic imports ------------------------------------------------------------------------------------------------------ import os import gc import pickle from pubsub import pub import matplotlib.pyplot as plt # wxPython imports ---------------------------------------------------------------------------------...
25cd047fadf5e1a33a0b0f314572e0cce8a3925a
b00e9f892f3e87df724999ffc0e9c3342d19d4f6
/kWTA-Activation-master/SVHN.py
516c6db9cca2ba91e93810cca246527756557c06
[]
no_license
COMP6248-Reproducability-Challenge/Deep-learning-ASDA
6fb3d9bc7ed890ffd8fa21652a33101f4998b90d
e5d14192b1af4ffa2cb7ecfa9978e1440efbf638
refs/heads/master
2022-09-25T17:40:28.594729
2020-05-29T14:23:44
2020-05-29T14:23:44
267,833,085
2
0
null
null
null
null
UTF-8
Python
false
false
15,804
py
SVHN.py
##evaluate #SVHN import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.optim import lr_scheduler from torchvision import datasets, transforms from torch.utils.data import DataLoader import torchvision import numpy as np import json import time import sys import copy...
fccc132a0bae69fe3c5d966fedb140b8cf4d66ba
eb23f6caf884ff2f9624902ffa83eddb93f62cf4
/Euler 41-50/euler49.py
2771b83e9940893826d29da3760327b2a7bbb1d9
[]
no_license
HenriqueDomiciano/projetosEulereOutros
f47ac9514a929d9cdc6d0b23fa82f14118377532
1753988c93597fff17e5c61c5be5df289b3050ff
refs/heads/master
2023-06-25T10:08:18.025187
2021-07-22T17:40:32
2021-07-22T17:40:32
284,487,756
0
0
null
null
null
null
UTF-8
Python
false
false
1,052
py
euler49.py
import itertools import time start_time=time.time() def sieve(p,n): is_prime = [True]*n is_prime[0] = False is_prime[1] = False is_prime[2] = True # even numbers except 2 have been eliminated for i in range(3, int(n**0.5+1), 2): index = i*2 while index < n: is_prime...
5ecae87fac050bec9638861bf2b9289a664feec2
b6307faecfd9f33f4a1c8275788d8314ef9e8ed8
/bindings/pydeck-carto/examples/carto_layer_geo_tileset.py
ada1777ba5b6a72f73b5283c9a730716347c769a
[ "MIT", "BSD-3-Clause" ]
permissive
exlimit/deck.gl
21bd0de36c479178fc3596dcbf41a290ec363c3f
f481154481860a9b56378c757125cd5aac3f2991
refs/heads/master
2022-09-18T08:13:29.047722
2022-09-01T20:20:29
2022-09-01T20:20:29
99,755,849
0
0
null
2017-08-09T02:19:00
2017-08-09T02:19:00
null
UTF-8
Python
false
false
827
py
carto_layer_geo_tileset.py
""" CartoLayer ========== Render cloud data from a tileset. """ import pydeck as pdk from pydeck_carto import register_carto_layer, CartoAuth from pydeck_carto.layer import CartoConnection, MapType register_carto_layer() carto_auth = CartoAuth.from_file("./carto_credentials.json") layer = pdk.Layer( "CartoLayer"...
7208bd00d4dc6b86f5bbfc1ceeed88acfcc987b5
3eb9553a4ebdba77d274de529107d640d0a114cd
/HardCode/scripts/parameters_for_bl0/new_current_open_details.py
d9795018aa6151e4956052465179be52f3e9c950
[]
no_license
Anandesh-Sharma/Ananlysis-Node
6ad1b1f76b3899303febb617e9c939ea01e1b75b
984e96ca4a693821d87522a480ded311ed34bcd4
refs/heads/development
2023-06-10T07:52:07.331920
2020-06-16T10:32:50
2020-06-16T10:32:50
272,643,068
0
0
null
2023-05-27T16:03:35
2020-06-16T07:45:26
Python
UTF-8
Python
false
false
682
py
new_current_open_details.py
from datetime import datetime from HardCode.scripts.loan_analysis.last_loan_details import get_final_loan_details def new_current_open(cust_id): count = 0 try: last_loan_details = get_final_loan_details(cust_id) initial_date = datetime.strptime("2020-03-01 00:00:00", "%Y-%m-%d %H:%M:...
27b48e0817fa7e68450ee63147a3d71a161f9bea
55bf6e94e9fe17bb527e63c4dbe073fecacf0b4a
/banco de dados estudo/conexão.py
0dcdd1c24f6871418925c727efeae99c4b55f0c2
[]
no_license
Gufinger07/Projeto-Simulacao
3bcbeea4d29ee88bb1714ee84974d3479e83f212
8e4475d95837fefc9a923a6cdc8e1a59fae7323e
refs/heads/master
2023-02-11T01:37:24.897180
2021-01-04T03:08:42
2021-01-04T03:08:42
326,550,400
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
conexão.py
import sqlite3 database = "TimesBR.db" conexao = sqlite3.connect("TimesBR.db") #criei a conexao com o bd cursor = conexao.cursor() #executar os comandor cursor.execute("""CREATE TABLE if not exists tb_equipes( equipe text, pontos integer, sg integer )""") conexao.commit() cursor.close...
a798b8062decab9afe047d5b28c222d5ee392006
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/VMWARE-VA-AGENTCAP-MIB.py
57abcec36bc5fb0cd335aaf7d447d18d87bf3de7
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
2,519
py
VMWARE-VA-AGENTCAP-MIB.py
# # PySNMP MIB module VMWARE-VA-AGENTCAP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/VMWARE-VA-AGENTCAP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:28:04 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (d...
8e1b5b5f95b9bbdd72217861e7e8579d381ed891
74a8de5d30414575c8f5b1dee96ed799503d7c31
/game/enemy.py
003b208ae7bd91f906e1bf52c42fd4da5d91bcd8
[]
no_license
takumi0712/pixelgame
ae813a3c7804b736109485aa8f7d272c0fed2ce9
ba2f9a5e1c3b4c8925c5428a083c2821ccfada31
refs/heads/main
2023-06-23T16:27:21.816258
2021-07-21T22:24:41
2021-07-21T22:24:41
387,474,930
0
0
null
null
null
null
UTF-8
Python
false
false
5,982
py
enemy.py
import pyxel import random from effect import * from item import Bullet from player import * enemy_list=[] def CollisionDetectionAttack(p,bg): for enemy in enemy_list: for attack in attack_list: if ( attack.x + attack.w > bg.m_x+enemy.x and bg.m...
051155c585fc38d342219a1f1b8b4b832c55d8eb
e16d2f0717022a77e6d6a9b125f365d49987656f
/SPUG_Code/Code_Pi_New/PDDL_Generator.py
e93f087d3d6bd9a7fe3c228b4c8939d12935dd6e
[]
no_license
DeepakNadagouda/SPUG
bc73cb93b746f827aa56fc3f1027411006d1d496
7b51900768ffd8990f51077d0b965fcd5179e70f
refs/heads/main
2023-02-26T18:38:20.402345
2021-02-02T10:18:29
2021-02-02T10:18:29
335,239,940
0
0
null
null
null
null
UTF-8
Python
false
false
8,466
py
PDDL_Generator.py
import time import requests import sys from itertools import combinations class PDDL_Generator: def Initialize_Values(self): self.map_size = 4 self.number_spug = 1 self.start_point_spugs =[(0,0)] self.end_point_spug =(2,2) def Set_Initial_Point(self, X_Coordinate, Y_Coo...
77d5f63ae5f263b6e2d35615cbc3081759b9865c
3b4c518fc6d30c62ee577df7362a0c2e8b63a5f4
/wtf/dates.py
e6520b31825cb39669253076bee0f6c5295ba2c5
[]
no_license
rootoor225/whatthefeuille
be98c58f68cbe6db9a3779a46bb5405e962e2abd
ff7b6b67c8a73b249539790caca8dd23a57816a7
refs/heads/master
2021-05-27T08:43:59.051542
2013-02-17T11:46:55
2013-02-17T11:46:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
dates.py
import dateutil.parser def ordinal(value): try: value = int(value) except ValueError: return value if value % 100 // 10 != 1: if value % 10 == 1: ordval = u"%d%s" % (value, "st") elif value % 10 == 2: ordval = u"%d%s" % (value, "nd") elif va...
a29016e00a72c8b8b2dfac98c9cc4ad59e82799b
3b93fc92d4d95dab66438ebf221f6cb4745aac5f
/src/content/views.py
d019878a4f42911f49de97e5cf2db807f5dc3033
[ "MIT" ]
permissive
vollov/django-restful
f20fb1236e2c4d16c62f7f7a6318e842dac0b6ce
ee796ded68470fd1609a9313fbf21e89481bccce
refs/heads/master
2021-01-10T01:32:42.643182
2016-02-23T15:18:44
2016-02-23T15:18:44
46,464,534
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
views.py
from django.contrib.auth.models import User, Group from rest_framework import viewsets from serializers import PageSerializer class PageViewSet(viewsets.ModelViewSet): """ API endpoint that allows users to be viewed or edited. """ queryset = Page.objects.all().order_by('-created_at') serializer_cl...
4b68b02bb367eeaebbb988b7e394ea0f1227d8fd
e3a8f374800b87c02fca1e3ca0d13c6cf7fe4d63
/compcamps_cash_miner/wrapper.py
52dcf4bdd70fe935c2e5997f1cb33d8d3658ca9c
[]
no_license
Sanae6/compcamps_cash
dd321bb79ede5e7dbcdc3ca256593e2ca74a806c
9620563372ef11c8879559ab718e10595e338123
refs/heads/master
2022-01-28T08:19:23.726022
2019-07-05T22:46:28
2019-07-05T22:46:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
781
py
wrapper.py
import os from compcamps_cash_api.entities import Block, Transaction, Keys, Prefix from compcamps_cash_api.entities.block import nextBlock import miner import balance import transaction while(1): os.system('clear') print("Welcome to Campcoin miner") print("") print("Select an option:") print("(M)...
90e7ff4bd675efe671f3071c57d7ff8fd08a8f2b
5f59c4076d68a1186aa9329d4a6ff379b7abba85
/venv/lib/python3.7/site-packages/tests/test_result.py
cc8ee6c0db6fa504b164b9168c566d357addb82e
[ "MIT" ]
permissive
C16735211/webmap2
f71497eb86deaf55fe6eeaa0363e3955ae131013
1111539348bd6bfe3312537253147def014bd432
refs/heads/master
2023-04-27T15:10:42.461395
2020-04-11T08:38:37
2020-04-11T08:38:37
227,618,373
0
0
MIT
2023-04-21T20:41:53
2019-12-12T13:52:16
Python
UTF-8
Python
false
false
5,151
py
test_result.py
import pytest import overpy from tests import read_file, new_server_thread, BaseRequestHandler class HandleResponseJSON02(BaseRequestHandler): """ """ def handle(self): self.request.send(b"HTTP/1.0 200 OK\r\n") self.request.send(b"Content-Type: application/json\r\n") self.request...
8ee2c1555bd112c49786a06f078c568f73d3edc8
ecea1ac4c5475e2eaf4e8790643db176e4200a6d
/Negocio/Pirinola.py
ad1c5f5c33a617f63c9b499b05809b5f52faaa77
[]
no_license
jeffersoncy/Pirinola
970b7f68057ece13b7ad72e573aa5ac37676441c
6a0f67a6d42e89653075740ce75ba2646e7a0e88
refs/heads/main
2022-12-25T05:50:18.889618
2020-10-15T04:38:19
2020-10-15T04:38:19
303,520,953
0
0
null
null
null
null
UTF-8
Python
false
false
1,320
py
Pirinola.py
"""Presentado por : Danny Alberto Días Mage Jefferson Eduardo Campo Yule""" from Negocio.Partida import Partida class Pirinola: ListPartidas = list() def __init__(self,nombre_piri,id_partida,valor_partida): self.nombre_piri=nombre_piri self.partida = Partida(id_partida,val...
49c25aecbe53758e9507dc75711394acc59ae904
8e68fa08e0275bb77a57f2dcb1b2082afbd928e9
/src/cutadapt/files.py
77ab3ed739dba6f1b0e80360b3d0e78f17cf5f3a
[ "MIT" ]
permissive
marcelm/cutadapt
a892a871ed8b5b8491c2177ede43a6ebe0b43810
cefb3e0bc6bacf5e15a842174502852466bd6990
refs/heads/main
2023-09-01T08:14:21.694545
2023-08-31T08:18:46
2023-08-31T08:18:46
4,577,614
450
165
MIT
2023-09-11T06:48:19
2012-06-06T20:26:25
Python
UTF-8
Python
false
false
7,668
py
files.py
import errno import io import sys from typing import BinaryIO, Optional, Dict, Tuple import dnaio from xopen import xopen from cutadapt.utils import logger try: import resource except ImportError: # Windows resource = None # type: ignore def xopen_rb_raise_limit(path: str): """ Open a (possibl...
c0d23761f49feecb1dce6f28b7ef157aa8c2dda4
3f051449601187af1b6d8971664ae96826b977f6
/python/codewars kata/13 fibonnaci.py
f2eff77abfb0df06611260c2fb8738d719617b1a
[]
no_license
Ukabix/projects
5fe84c5d8eefd516d3993b3c65dc911c4260e8c5
e528782c100d98240d2a13067153d775e0557715
refs/heads/master
2022-12-24T01:50:10.230242
2021-11-28T20:33:56
2021-11-28T20:33:56
212,777,496
0
0
null
2022-12-15T09:53:08
2019-10-04T09:15:48
Python
UTF-8
Python
false
false
1,297
py
13 fibonnaci.py
# Write a program that asks the user how many Fibonnaci numbers to generate and then generates them. Take this # opportunity to think about how you can use functions. Make sure to ask the user to enter the number of numbers in the # sequence to generate.(Hint: The Fibonnaci seqence is a sequence of numbers where the ne...
a96c92d57b7a879807d7615ce15f8d9d613308ba
7e11408457e5fec14a45ebdf5e80a87dfa20657c
/app.py
d4c06848f4dfd60add5965ae203484e2175b3942
[]
no_license
Sundarapandy/spwebsite
1ade63c511c26b4d408e1f5c61dc5444834e100d
a232aff62124d7eb7df53fc06ff73e998da5b48d
refs/heads/master
2023-03-21T23:48:39.531480
2020-08-03T13:40:11
2020-08-03T13:40:11
284,696,160
0
0
null
2021-03-20T04:56:54
2020-08-03T12:38:23
HTML
UTF-8
Python
false
false
976
py
app.py
from flask import Flask, render_template, url_for , request , redirect app = Flask(__name__) @app.route('/') def hp(): return render_template('index.html') @app.route('/works.html') def hp1(): return render_template('work.html') @app.route('/about.html') def hp2(): return render_template('about.html...
612539b576600f1c4300ea27b2d67af9c3996ad3
9c6522db2db8c4c075e23f2953776384973891a8
/cn.zero/py.ori.fmt/c1330.bin.py
8b95ce7bf1764babda3f5c308dbb82e9fb10fc2b
[]
no_license
ZhenjianYang/ZeroAoVoiceScripts
b388c28b498049d7d4277b8344cdc098488fd258
7e0b696d743912739b855acb4306f1dcf564d6c0
refs/heads/master
2021-05-18T08:58:59.482674
2021-02-19T08:22:19
2021-02-19T08:22:19
94,624,272
12
5
null
2021-02-19T08:22:20
2017-06-17T13:06:15
Python
UTF-8
Python
false
false
27,527
py
c1330.bin.py
from ZeroScenarioHelper import * def main(): CreateScenaFile( "c1330.bin", # FileName "c1330", # MapName "c1330", # Location 0x001B, # MapIndex "ed7100", 0x00002000, # Flags ...
6f4e70d9a2a6847c98c6afd9dae62e7984635d36
54511c722e83e84516a1e100248e73879bb8fca7
/Day_5 OOP/3_employee.py
1e021a9273d99654cb42d4ef25c921026d354eb6
[]
no_license
Oleksandr015/Python-podstawy
a453c1e6848019d859c1114836fb996ce497b2d2
9fa910684c6ffa981db64f0ab2e8423714269636
refs/heads/master
2023-06-16T04:03:43.547947
2021-07-13T12:56:53
2021-07-13T12:56:53
282,299,345
0
0
null
null
null
null
UTF-8
Python
false
false
1,599
py
3_employee.py
class Employee: raise_amount = 1.05 def __init__(self, first_name, last_name, salary): self.first_name = first_name self.last_name = last_name self.salary = salary @property def fullname(self): return f'{self.first_name} {self.last_name}' @property def email(se...
74bc63043fab35c80969e2d6c30781877946b44d
428b16f60024dd839194dcdb91a61ef360c7f84d
/signatureGV.py
c2615fab1c09053d2d9bcbcb5871ddf90ceea33c
[]
no_license
shanni12/Elliptic-curve-cryptography
3ef997d7c149e9fb0300fa77d35aa79f98555659
906143941b9ba1540b7e860b5ac1a752b89e0a1c
refs/heads/master
2023-03-23T10:06:36.958700
2021-03-21T10:27:09
2021-03-21T10:27:09
345,548,089
1
0
null
null
null
null
UTF-8
Python
false
false
814
py
signatureGV.py
import secrets import ellipticcurve N=ellipticcurve.N GPoint=ellipticcurve.GPoint def signature_generation(privKey,HashOfThingToSign): print("Signature Generation") RandNum= secrets.randbelow(int(N,16)) xRandSignPoint, yRandSignPoint = ellipticcurve.EccMultiply(GPoint,RandNum) r = xRandSignPoint % int...
91fedbc34410f313b2ef24cf8ccb3d46b218ca61
a9d89247d9c49ce51e2b74a8fd8cded95123cd5d
/dlna/dlna_service.gypi
50e5f9d6ae39ff2616429426e2f72bb9e0f1780d
[]
no_license
lubing521/librhino
e021062a3fa4b947487cd62bec6a09cf122128c3
08983a744fe01dc4446168d46cdee4f532b974cd
refs/heads/master
2022-01-16T03:12:02.189216
2014-11-21T01:28:32
2014-11-21T01:28:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,345
gypi
dlna_service.gypi
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'configurations': { 'Debug': { 'defines': [ 'DEBUG', 'DLNA_ENABLE_LOG', ]...
a6db9f1535553e6d4d6e2e310c53505b55ddc6b7
30ea7b9b9a88d542e9ea3c5b8def38e1b1d778e5
/hw4/prototypical_net/dataset.py
fd4ebf42e3a8edfa90cfba3617830477eb2ebe90
[]
no_license
kai860115/DLCV2020-FALL
96ee63cc73969f4efe872870a0e6f8b0dfff08fd
cd07b9ac131b3bc5c22f92d57c80960dfc071ea3
refs/heads/main
2023-02-26T00:19:59.325488
2021-02-04T05:38:36
2021-02-04T05:38:36
335,480,530
5
0
null
null
null
null
UTF-8
Python
false
false
1,047
py
dataset.py
import os import sys import argparse import torch import torch.nn as nn import torchvision import torchvision.transforms as transforms from torch.utils.data import DataLoader, Dataset from torch.utils.data.sampler import Sampler import csv import random import numpy as np import pandas as pd from PIL import Image fi...
6fcf52da6d621cc22bcfab1b1082f98b4afda535
80e7cb7c68d11930e079826c89c4c7287ed0d84f
/prepare.py
8322c6028868bae969d06171c1440b46581ad03d
[]
no_license
CurtisJohansen/classification-exercises
097d873f4a7d95fd041b691e460b0a248a21415d
7508797dc60d3789b3ee018359f966a77127a046
refs/heads/main
2023-07-15T20:46:49.637867
2021-08-27T14:39:56
2021-08-27T14:39:56
395,432,222
0
0
null
null
null
null
UTF-8
Python
false
false
5,027
py
prepare.py
import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.impute import SimpleImputer ###################### Prep Iris Data ###################### def prep_iris(df): ''' This function takes in the iris df acquired by get_iris_data Returns the iris df with ...
93e6022ea6d737454cab456cb557ccd9db0b72c3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03304/s733087802.py
a33877732969012bc4d0ce785ac3fc5e565a769c
[]
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
145
py
s733087802.py
li = list(map(int,input().split())) ok = (li[0]-li[2]) if li[2]==0 else (li[0]-li[2])*2 a = (li[1]-1)*ok/(li[0]*li[0]) print("{:.10f}".format(a))
6e5f1ecb378a78ffc1fb7820d7a80090e2259119
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part004218.py
577d620ec69b8e130b2ec8ab23a5e6b864987504
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
13,349
py
generated_part004218.py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
b1d46e6124d38fcf382f1fd88a6aeb574cf1350c
7918d00a8235c1252fdd75e2db6de4d323740318
/inventario/urls.py
4e0b0b31799faa8862ebcb592a07c68a5a2884fb
[]
no_license
tom-sb/Mayorista
92e1a68402a35785f355fe11ad935071cc7264d3
635f26aae073da42ea58d3f056959a35e08a4bd3
refs/heads/master
2020-11-24T16:46:46.271448
2019-12-19T11:14:27
2019-12-19T11:14:27
228,254,669
0
2
null
2019-12-19T11:14:29
2019-12-15T21:22:34
CSS
UTF-8
Python
false
false
748
py
urls.py
from django.conf.urls import url from . import views from django.views.generic import TemplateView #from recursos import views from django.contrib.auth import views as auth_views from django.views.generic import TemplateView urlpatterns = [#cambiar url logout url(r'^inventario/new', views.InventarioInsert.as_view(), ...
bc9dbd673e65faaa76f9ae7090ec407a0ab91c1b
c2332b85f3ffffd0063d59503b34d973d3ed992d
/scripts/simAnalysis.py
9e992ac1f561f28790191015e8ebee86d2b4a0ba
[]
no_license
nirm123/Blaze-Simulation
3ebc91490d5639d13f480de3d5637bdb863c5472
918002f7a58f9f495a1e4a60b8128410786b0320
refs/heads/master
2020-05-09T16:46:37.289736
2019-04-14T17:03:21
2019-04-14T17:03:21
181,220,055
0
0
null
null
null
null
UTF-8
Python
false
false
6,240
py
simAnalysis.py
import csv import math from scipy import stats # Number of trials num = 1000 # Which sigma model version = "3_1_Sim" # Complete filepath/filename dir_file = "../" + str(version) + "/" + str(num) + "/" file_nam = version + "_run_" # Alpha/Mean for variance reduction with control variates alpha = -4.4 alpha2 = -5.2 ...
73097d249215db712022390839b0f202df422b03
5511ab61a9a57368b2e0225e6d6a1e4b8cf37a98
/crypto/rsa_bigE/solve.py
d54c189f6327c82e6e157f928d908336606e9291
[]
no_license
JaysesS/ctf_writeups
f39780b65db268eae3ddf3473146fa112ebcbcf8
02f966ebd56e742db4c76bc6441ba84344a310d5
refs/heads/master
2021-01-05T09:23:22.213310
2020-12-14T08:06:18
2020-12-14T08:06:18
240,969,966
1
0
null
null
null
null
UTF-8
Python
false
false
1,342
py
solve.py
from Crypto.Util.number import long_to_bytes from Crypto.PublicKey.RSA import import_key from gmpy2 import lcm c = 162675409010048791238594246720874861885486288280637895284286744674644074438715998659933375558695304862411391386506418383774197348978013808836298941663532252880061482104536770237506881751923172414404577687...
b2545413db105df7a4cfd0d4b14c480194422b53
9d58d151eb1ff615b0f53ab27dc9141727a6e995
/Python/0009_special_Pythagorean_triplet.py
3f8d3907e53446142f33b66292fa11e393b60f88
[]
no_license
paznewman/project-euler
058c93cce5c225f47c801f27f80aa27be441fec4
2ddb8399a830c497bac5253de180713db9d7b4f9
refs/heads/master
2020-04-09T01:52:33.261500
2018-12-06T11:23:56
2018-12-06T11:23:56
159,920,466
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
0009_special_Pythagorean_triplet.py
""" A Pythagorean triplet is a set of three natural numbers, a < b < c, for which a^2 + b^2 = c^2 For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2. There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product abc. """ def sum_triplets (n): """ generates all triplets of natu...
9eaf4d3c4dd120d1e209692c1b96f4bce5df4bb3
8e21bcb321a0614c643dbafaa4a63e388fa2abfa
/app.py
d494627b952d295769d955b3c129674802787cca
[]
no_license
u-akshay/revenue-report-codelattice
a5e3ab4a8959f2a94ff2cb2c49b29357ccb0c613
1bba907200912cd8f8962826c15a4781981b0e9d
refs/heads/main
2023-03-04T06:36:04.942473
2021-01-30T03:40:45
2021-01-30T03:40:45
334,201,212
0
0
null
null
null
null
UTF-8
Python
false
false
787
py
app.py
from flask import Flask,render_template,request,url_for, send_file from werkzeug.utils import secure_filename import os import time import final app = Flask(__name__) ################################################################ @app.route('/', methods=['GET' , 'POST']) def login(): if request.method...
5b13e1c5f23f30a51ad0edee93e8f4d9112f05be
0cb361019555e1d371eb6c3f89eb887d1f6991dc
/helix/engines.py
13fd212eb7923e35a380b483a671761992aaef1b
[ "Apache-2.0" ]
permissive
phantomii/helix
b747c9a9fdeacc7009e32e3648b56f6d01ebba82
88a7270f20554943fa2cb22e1432d0f653ba9ae7
refs/heads/master
2021-01-17T15:08:35.568279
2017-02-23T18:20:54
2017-02-23T18:20:54
33,501,841
0
0
null
null
null
null
UTF-8
Python
false
false
4,090
py
engines.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2016-2017 Eugene Frolov <eugene@frolov.net.ru> # # 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 # # ...
92721120b74b6ff525fa032502c7deb43d52bd77
bafe6480c4071d89e6490a1c0adca31d82d6e34f
/students/jim/Lesson06/title_case.py
623a70292e5b54a9da40949dbde7d157b8d6c115
[]
no_license
UWPCE-PythonCert-ClassRepos/Wi2018-Classroom
c05763940ca22f21dd3e96f795a210e0f5658fdb
f0a6d8df31d28f0fecf32add03a05285e58aac22
refs/heads/master
2018-09-18T17:27:06.925189
2018-06-06T04:36:30
2018-06-06T04:36:30
115,212,326
3
40
null
2023-03-17T04:15:30
2017-12-23T17:51:25
Python
UTF-8
Python
false
false
321
py
title_case.py
# test_case.py def title_case(x): if not isinstance(x, str): raise TypeError('Please provide a string argument') return x.title() def test_string(): with pytest.raises(TypeError): title_case(9) def test_title_case(): assert title_case('lady gaga') == 'Lady Gaga' test_title_case()...
83c73aabba5f4e9f04dbad8cb50e94f386e51b66
b74320ad439e37dfa48cd8db38dab3b7a20a36ff
/src/diffusers/pipelines/controlnet/__init__.py
c89a705350a2b05bcc795af77372cd051cbaab94
[ "Apache-2.0" ]
permissive
huggingface/diffusers
c82beba1ec5f0aba01b6744040a5accc41ec2493
5eeedd9e3336882d598091e191559f67433b6427
refs/heads/main
2023-08-29T01:22:52.237910
2023-08-28T18:16:27
2023-08-28T18:16:27
498,011,141
17,308
3,158
Apache-2.0
2023-09-14T20:57:44
2022-05-30T16:04:02
Python
UTF-8
Python
false
false
990
py
__init__.py
from ...utils import ( OptionalDependencyNotAvailable, is_flax_available, is_torch_available, is_transformers_available, ) try: if not (is_transformers_available() and is_torch_available()): raise OptionalDependencyNotAvailable() except OptionalDependencyNotAvailable: from ...utils.dum...
0377bb9a7693f02ba4d4d49d89e0441d3cdac642
4e90fa247c00e05ca57392b9cf64b9db49ce0974
/sanfoundary/Dictionary/10.CountFrequencyOfWordFromString.py
17d09be598c6126588ce4c098b69d31896793f6c
[]
no_license
AmritaDeb/Automation_Repo
b200b94f2552e5238388d11023bba8ab04afb5ec
c0332eff751d752c4a8dec77b65286b0db791ed0
refs/heads/master
2020-06-03T08:49:50.445606
2019-06-12T10:50:34
2019-06-12T10:50:34
191,514,320
1
0
null
null
null
null
UTF-8
Python
false
false
167
py
10.CountFrequencyOfWordFromString.py
s="I am Amy. I love programming." l=[] l=s.split() result={i:l.count(i) for i in l} print(result) duplicate={i:l.count(i) for i in l if l.count(i)>1} print(duplicate)
4a4585c6836b183cfe9968f11df06eedc49c8e1e
11cd362cdd78c2fc48042ed203614b201ac94aa6
/desktop/core/ext-py3/pysaml2-7.3.1/src/saml2/attributemaps/adfs_v20.py
20a0067564262f8ae08336db690f0b3c6cb65860
[ "Apache-2.0", "CC-BY-3.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "ZPL-2.0", "Unlicense", "LGPL-3.0-only", "CC0-1.0", "LicenseRef-scancode-other-permissive", "CNRI-Python", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-or-later", "Python-...
permissive
cloudera/hue
b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908
dccb9467675c67b9c3399fc76c5de6d31bfb8255
refs/heads/master
2023-08-31T06:49:25.724501
2023-08-28T20:45:00
2023-08-28T20:45:00
732,593
5,655
2,244
Apache-2.0
2023-09-14T03:05:41
2010-06-21T19:46:51
JavaScript
UTF-8
Python
false
false
2,283
py
adfs_v20.py
CLAIMS = "http://schemas.xmlsoap.org/claims/" COM_WS_CLAIMS = "http://schemas.xmlsoap.com/ws/2005/05/identity/claims/" MS_CLAIMS = "http://schemas.microsoft.com/ws/2008/06/identity/claims/" ORG_WS_CLAIMS = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/" MAP = { "identifier": "urn:oasis:names:tc:SAML:2.0:...
a595e364b7eaafbf9509f26f8cf97ab636d38dc0
f3b379001648141e72b6d96b2f2e172bfe5fbd89
/IsItMe.py
3c51ef08fee3391c4ed2bb304a467a0a9c6e2c32
[]
no_license
tstrouth/IsItMe
d5e85ac4037ae97a8d7aa4e9e2e9da1ae8720f62
97499821f72ebd34cfa71d8a1790403c79f408ad
refs/heads/master
2021-07-11T05:47:22.617581
2019-04-13T16:38:48
2019-04-13T16:38:48
98,023,405
0
0
null
null
null
null
UTF-8
Python
false
false
5,412
py
IsItMe.py
import tkinter as tk from tkinter import filedialog as tkfd import cv2 import numpy as np from PIL import ImageTk, Image import time #constants WINDOW_HEIGHT = 700 WINDOW_WIDTH = 800 #not constants photo_name_list = ["", "", "", "", ""] image_reference_list = [None, None, None, None, None] Bool = None ...
1c6189919602476fba986a302320f3ea96641e1b
448b642be9c09f003d003ed8da6806211e203c62
/scrolling-chars2-0.0.1.py
a3598facdaa8524d2b503d978fb3f5a855d584f9
[ "MIT" ]
permissive
dave4th/DualMatrix8x8
a2d18b704a38756ab59e3e3a338aaadbd67fc9d9
786fa09a1a3ebd4250fc25e3c50a0ceee38eac42
refs/heads/master
2021-01-10T12:50:59.335479
2015-10-19T09:17:21
2015-10-19T09:17:21
44,523,470
0
0
null
null
null
null
UTF-8
Python
false
false
21,372
py
scrolling-chars2-0.0.1.py
#!/usr/bin/python import sys # Potrei anche toglierla se non la uso import spidev import time max7221sx=spidev.SpiDev(0,0) max7221dx=spidev.SpiDev(0,1) #spival=max7221sx.readbytes(1) #print("Valore attuale:", spival) #for arg in sys.argv: # print arg # Shutdown (Spegne) max7221sx.writebytes([0x0C,0x00]) max722...
1f0707132dc12873bb9796f975e2363c41e856fe
8c8beabaf6148b25531fda88b0040c16e6803ba7
/handlers/system/monitor.py
772631f98f9088d3617e4599779607581c762fad
[ "MIT" ]
permissive
LIUSANSHAO/xnote
2903cd1c4cf54c6541e2128c3f667154a5df7dbb
e53078a818b6187f0c03767f3defa3f263c56319
refs/heads/master
2021-07-25T00:18:03.650750
2017-11-06T12:09:04
2017-11-06T12:09:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,799
py
monitor.py
# -*- coding: utf-8 -*- import web import time import os import platform import xutils import logging from logging.handlers import TimedRotatingFileHandler import json import threading import re import xtemplate import xconfig try: import psutil except ImportError as e: psutil = None sys = xutils.sys def fo...
ce2cfeb5eefcb3ca34abaf3ea439eaf198294dcd
29392f582c7c56a741453b52c0c3919246197dad
/file.py
b56985c604d7db4d09b143d85bdaac1627a75cc2
[]
no_license
sevenjoyce/project1
a8666d88c95ff61a6860c7682d93246a1f3dd46a
07ec5b050e3ef48d24e21899f1dbdec1633bce26
refs/heads/master
2022-06-14T22:04:15.175752
2020-05-07T12:40:30
2020-05-07T12:40:30
261,964,279
0
0
null
null
null
null
UTF-8
Python
false
false
818
py
file.py
# fo = open('E:\\简历\\松勤\\新建文本文档.txt') # # print(fo.read()) # print(fo.read(2)) # print(fo.tell()) # print(fo.seek(1,0)) #(1进几步,0)0模式从头开始 # print(fo.tell()) ''' name: Jack ; salary: 1200 name: Jack ; salary: 1800 name: Jack ; salary: 100 ''' rdir = r'E:\简历\松勤\Python\ex_file.txt' wdir = r'E:\简历\松勤\Python\ex...
feeacea2f9a509d4e3e0753edb787c4a212c08ef
11b210e3cb6e2ba802ebb77fddf81e7e3d186bf8
/3. train data/create_data_train_3.py
93d92d7262630a836d75c65914f66205c05d2dc3
[]
no_license
thanhan1181999/NER-address
82ffcd47cc32eab188357ed20ec43709f6abf5ae
642287e3ba8611f97334a3ae0cf9e16c83aedf26
refs/heads/main
2023-05-27T09:07:46.569801
2021-06-10T15:33:03
2021-06-10T15:33:03
366,754,369
1
0
null
null
null
null
UTF-8
Python
false
false
1,948
py
create_data_train_3.py
# lưu file location import numpy as np import random # read file class ProcessData: def __init__(self): self.location_tokens, self.location_tags, self.location_len = self.read_data("../2. token each data/location.txt") #read file def read_data(self,file_path): tokens = [] tags = [] tweet_tokens...
60181937449444c7edea669c47889809d217fda3
99aa9b2be5199bf1b2f670bc9bb1a5bc7cec1c89
/Hash_Table/L388_Longest Absolute File Path.py
511c1b2ebd97eea46af68bc59b8b79e27f6c810a
[]
no_license
SimonFans/LeetCode
5196e85dec886b18cb2350419a4a2ae3c751966c
0a34a19bb0979d58b511822782098f62cd86b25e
refs/heads/master
2023-02-08T00:49:30.916655
2023-01-31T06:32:32
2023-01-31T06:32:32
145,938,196
1
0
null
null
null
null
UTF-8
Python
false
false
2,628
py
L388_Longest Absolute File Path.py
Suppose we abstract our file system by a string in the following manner: The string "dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext" represents: dir subdir1 subdir2 file.ext The directory dir contains an empty sub-directory subdir1 and a sub-directory subdir2 containing a file file.ext. The string "dir\n\ts...
00a7ca83676371b6fc034fbb4eaa10f5a8078ab2
f09c7f7cc9f63887d32b4d883b4cf0fb4898c03a
/webdriver/tests/support/fixtures_bidi.py
3bcebb95f4b5be91054219dd669274d3c8a3ff2a
[ "BSD-3-Clause" ]
permissive
youennf/web-platform-tests
c91f7d7ffd23b5d3ff8678eb8c7b067774f6628b
825b8cfbf84c250bb351d2172525912d999677a4
refs/heads/master
2023-07-12T04:52:55.165033
2022-06-21T11:14:05
2022-06-21T11:27:05
16,095,666
4
0
NOASSERTION
2023-03-09T14:29:15
2014-01-21T07:25:29
HTML
UTF-8
Python
false
false
1,635
py
fixtures_bidi.py
import asyncio from typing import Any, Mapping import pytest import webdriver @pytest.fixture async def new_tab(bidi_session, current_session): # Open and focus a new tab to run the test in a foreground tab. context_id = current_session.new_window(type_hint="tab") initial_window = current_session.window_...
e6f916c1032fca8fc2d375b0ae6c609a1c6084a7
debc6540db6242c6cf9292ddd00071abb5bbd2e9
/MySQLDatabase/student_script.py
807884dcf1239cbe9f70af9627fb96b8a6f042d2
[]
no_license
cam719/Resume
07e19843aa7a6cfc0cdced6b1d5703544a8d2bd6
3b6b1326bd992a2c98fa7fa38e71038fbbcfa0fc
refs/heads/master
2021-01-17T06:37:41.126925
2016-06-23T02:18:08
2016-06-23T02:18:08
48,020,375
0
0
null
null
null
null
UTF-8
Python
false
false
1,238
py
student_script.py
import mysql.connector from datetime import date, datetime, timedelta cnx = mysql.connector.connect(user='cmoneal', password='829812390', host='127.0.0.1', port='8080', database='cmoneal') cursor = cnx.cursor() with open("Stud...
4b4a8d8113472bb7fd8ce64177a458764a6784e6
e788163a1e2de87551ac4fa16d84e13202e46cc9
/chia/wallet/did_wallet/did_wallet_puzzles.py
1873e01ec1da1b6886aeff38522d93970494d9fb
[ "Apache-2.0" ]
permissive
xorinox/chia-blockchain
d985de4f655f8741128a2dde250d46f4c854f91a
2d95bb831b03d04438bdce5e7fe6f6b6ca0716a4
refs/heads/main
2022-07-17T23:59:43.673237
2022-06-30T14:35:43
2022-06-30T14:35:43
397,941,396
1
0
Apache-2.0
2022-02-14T06:37:06
2021-08-19T12:49:43
Python
UTF-8
Python
false
false
7,238
py
did_wallet_puzzles.py
from chia.types.blockchain_format.sized_bytes import bytes32 from chia.types.blockchain_format.program import Program from typing import List, Optional, Tuple, Iterator, Dict from blspy import G1Element from chia.types.blockchain_format.coin import Coin from chia.types.coin_spend import CoinSpend from chia.util.ints im...
5a8ebf605dc21b7d1e122046543b3881de80f440
9e22a045f65d650be40ac9b4d31f31331e52e864
/movie/__init__.py
54bf6cedf1f1d7e05b869efe81a8d1b83af2f7b6
[]
no_license
luozm/Movie_sale
c64b9c8865ebc93eb3d58dc27eb4c80e45d5109a
8e70b170d1ea7b451486d1cdfbd63bfbd4977a99
refs/heads/master
2022-12-13T11:44:52.323509
2018-12-11T03:33:51
2018-12-11T03:33:51
160,883,831
0
2
null
2022-12-08T01:28:26
2018-12-07T22:58:58
Python
UTF-8
Python
false
false
325
py
__init__.py
from flask import Flask from flask_login import LoginManager # from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config.from_object('config') # db = SQLAlchemy(app) login_manager = LoginManager(app) login_manager.login_view = 'login' from movie import views, models, database, api database.init_app(...
b367b806347e6c505012c7de1d5987f0aed61b82
ad761fb30f7990053eda8820b6117c6294f56a3f
/sample.py
2e0281244b0b492b07fda680e1ddbd4db81766f3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
rachelnicole/Cognitive-Face-Python
ff7f238e0339ca7d1bee6014f0fb234284dba5b9
6093054a8d773597e7e99efbb2c69259d4c18e66
refs/heads/master
2021-01-20T02:22:25.512220
2017-04-26T21:03:45
2017-04-26T21:03:45
89,398,995
0
0
null
2017-04-26T14:22:44
2017-04-25T19:32:04
Python
UTF-8
Python
false
false
1,285
py
sample.py
import cognitive_face as CF import faces as face from picamera import PiCamera from time import sleep import subprocess KEY = '06add3ffb377418fa5a4ed59d3d4325c' # Replace with a valid Subscription Key here. CF.Key.set(KEY) camera = PiCamera() camera.start_preview() sleep(2) camera.capture('/home/pi/Desktop/image....
c7bfc9f68614c4df7e57dfc4656813322d1df65d
405082652f56c4837007eb0eaeff9250b0b12cdb
/kevin/tests/utils/test_bst.py
db232f06b4f2f8a28f53f27237c430b9dcf487e6
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
kalyons11/kevin
1398c666ec70bfd460d2507f8ef10a649bb2da2a
4e222fcd8ee7f2a275390f532c2fa5fef39060e8
refs/heads/main
2021-07-20T18:12:05.914762
2021-07-06T18:22:08
2021-07-06T18:22:08
99,180,621
1
0
MIT
2019-12-20T21:59:48
2017-08-03T02:17:38
Python
UTF-8
Python
false
false
983
py
test_bst.py
""" BST utils test script. """ from unittest import TestCase from kevin.utils.bst import BST, TreeNode class TestBSTUtils(TestCase): def test_bst_make(self): n = TreeNode(0) x = BST(n) def test_init_from_list_empty_should_fail(self): keys = [] with self.assertRaises(ValueErro...
4c85306b9a9439622172cb65e88468aa72d154f6
aac8ec3f561d156f3425064843e545cdd84f4b3f
/40-extra/02-left-view.py
863298b08514934b61a1518bc8caa1fb3a13947a
[]
no_license
okmd/codingblocks
5106f9c606140e24f3a7eb2c4e393b3e13f126f1
07c8805dbe5d455ed1ebb1984949690840342447
refs/heads/master
2022-03-04T03:10:19.102060
2022-02-05T10:02:00
2022-02-05T10:02:00
192,055,010
2
1
null
null
null
null
UTF-8
Python
false
false
1,635
py
02-left-view.py
# Note: Done class Node: max_level = 0 def __init__(self, val): self.value = val self.left = None self.right = None def reset_level(self): Node.max_level = 0 def pre_order(self): if self.value != -1: print(self.value, end=" ") if self.left: self.left.pre_order() if self.right: self.right.pre...
2deb8e0e6f08a427bac0f37acf238686fa3e0e0e
f8b8906b57fcbf9d591a054680ab2b4000b53c70
/Loops/for-loop.py
cb1b9c75f55180efb87f7e6cf9e8211401a5e136
[]
no_license
robertclemo/python-fundamentals-1
4b44ad8ae5f26fc4c31bf2dea23528cc7f8a86a9
5475df6e1a7a886102749a74e72db325ae6e6f1a
refs/heads/master
2023-01-03T03:52:01.632195
2020-10-28T19:32:25
2020-10-28T19:32:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,395
py
for-loop.py
counteri = 0 counterj = 0 counterx = 0 countery = 0 for i in range(1, 11): # this will loop 10 times print(' ') print(f'\033[1;31;40mi -----------------{i}') counteri+=1 for j in range(1, 6): # this will loop 5 times print(f'\033[1;33;40mj -----------{j}') counterj+=1 for ...
098c50d9491ceed1b750ddbf92a3f8a8fcf5749d
8a84f1436a2f734191ce9573694f03033b1cbeff
/apply_model.py
779e11fdae27de658fbe0c007d1ca36120ee24c5
[]
no_license
kwehmeyer/ArborMetrix_Assesment
f9619bcac6a180ae3c8b58e428215c6ebdbf4945
26a2f636e7f1c8f0d896bea0e549ed7f68a97313
refs/heads/main
2023-01-22T00:35:16.815089
2020-12-02T20:01:57
2020-12-02T20:01:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,611
py
apply_model.py
# %% import pandas as pd import pickle as pk from sklearn.cluster import KMeans import data_prep as dp import sys, os from datetime import datetime # %% File Path Handling if len(sys.argv) == 1: print("\nNo paths to CSVs provided. Defaulting to given data.\n") patients_path = "data/patients.csv" encounte...
8be46c4a916f508eec3dfc0678887fedea0aacea
984ea50a81cda8c7afad5e7651628a7371878e28
/familyanalyzer/newick.py
3f1414e302d214cef9e7e05503dcce3380eb1a49
[ "MIT" ]
permissive
DessimozLab/familyanalyzer-deprecated
2d0ff4e8af4e2ba055d7b89b7765e6cb84895b5c
829dcfee5fc16b496da04e62c21a413f10564339
refs/heads/master
2022-12-07T04:16:21.973247
2020-08-28T08:50:32
2020-08-28T08:50:32
46,989,913
0
1
null
null
null
null
UTF-8
Python
false
false
8,338
py
newick.py
from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import from future.builtins import next from future.builtins import str from future import standard_library standard_library.install_hooks() from past.builtins import basestring ...
ce9d398b4dc60f4e7aa1d3b47345c21972eca27f
2613a8cbcc910ba50fbb025741b9832558c4ad0f
/scripts/standard/sound_player.py
b9e9b4a1f2ef67e4b422ba4aadfc6b038fb9d9fd
[]
no_license
JacobViertel/Biped
9cc6430f96ec3fd82821eeeed5e173be12b1177c
02ad195a4f7469e27f418cb2b127d6387a1f30a7
refs/heads/master
2022-12-04T20:21:41.685992
2020-07-30T13:17:08
2020-07-30T13:17:08
255,377,135
1
0
null
null
null
null
UTF-8
Python
false
false
866
py
sound_player.py
#!/usr/bin/env python import rospy import time from dynamixel_msgs.msg import JointState from std_msgs.msg import UInt8 from std_msgs.msg import Float64 from std_msgs.msg import String import os from math import log from playsound import playsound from subprocess import call import sys global in_action in_action = 0 ...
5d2ad5f5de7030ab22c3afa7cee5efe01606d769
d2a39fcb63732c715d613ccb3908b16f62dfcc4a
/write_include/ts_include.py
fd815e7afacac55a6416fe0b478c76845fe62f09
[ "MIT" ]
permissive
namedyangfan/Python_practice
e00885e3ff0c43642a6c43c47d809ba3dae81e91
7f7394d82bb5afc13b039eec286b9485a775ae39
refs/heads/master
2021-05-15T12:32:32.349425
2017-10-26T19:09:59
2017-10-26T19:09:59
108,454,783
0
0
null
null
null
null
UTF-8
Python
false
false
4,060
py
ts_include.py
import os, glob, shutil from convert_tecplot import hgs_loadfile as hl import pandas as pd import numpy as np class Write_asc_include(): def __init__(self, grok_directory, inc_folder, o_folder, o_name): ''' build include file for PET and PCP''' self.grok_directory = grok_directory self.inc...
e8a81c20d231f16ddcaeeb6e39ec6f362623ced8
711756b796d68035dc6a39060515200d1d37a274
/output_cog_tags/optimized_9770.py
24656c4735bf4ce0f9d1d4951e94f28a7a4bbaae
[]
no_license
batxes/exocyst_scripts
8b109c279c93dd68c1d55ed64ad3cca93e3c95ca
a6c487d5053b9b67db22c59865e4ef2417e53030
refs/heads/master
2020-06-16T20:16:24.840725
2016-11-30T16:23:16
2016-11-30T16:23:16
75,075,164
0
0
null
null
null
null
UTF-8
Python
false
false
4,582
py
optimized_9770.py
import _surface import chimera try: import chimera.runCommand except: pass from VolumePath import markerset as ms try: from VolumePath import Marker_Set, Link new_marker_set=Marker_Set except: from VolumePath import volume_path_dialog d= volume_path_dialog(True) new_marker_set= d.new_marker_set marker_set...
aa0d8e98520d28a772a98a316935db931386a1e4
2843acb3ac44a6b9716bbb7dc1230b775a2bcb4b
/Day 16/Day 16.py
2194915443efacd212fdd3fcdfef40273ccdd3f6
[]
no_license
bakkerjangert/AoC_2020
d2ba7f32ad7a209359a158f74dea48aa82d9fd50
7a1974af29e7adb3ca9229da4c92d2c40ea96a18
refs/heads/master
2023-02-14T15:23:58.966080
2021-01-08T09:11:34
2021-01-08T09:11:34
322,614,901
0
0
null
null
null
null
UTF-8
Python
false
false
2,521
py
Day 16.py
with open('input.txt') as f: lines = f.read().splitlines() valid_numbers = set() ordered_numbers = dict() for line in lines: if line == '': break row_numbers = [] start_1 = int(line.split(': ')[1].split('-')[0]) start_2 = int(line.split('or ')[1].split('-')[0]) end_1 = int(line.split('...
a281522b2bcdffedb3c707e75e82b8e81ecab2c5
2e6f8f4bc21a01dbf7991807d9401e5bb4141ddc
/Accuracy.py
2de5d388c4f19177d12f1735daf1f3014d7ed8a6
[]
no_license
JohnnyBoy2419/Border-Patrol
00ac7379412d7944484b1374a39c8b9a05457a3b
d7b4b3eb461149e11ae41186ea4491e405abeef7
refs/heads/main
2023-08-22T06:18:31.089174
2021-10-23T01:20:30
2021-10-23T01:20:30
420,283,454
0
0
null
null
null
null
UTF-8
Python
false
false
87
py
Accuracy.py
import pygame from sys import exit pygame.initialize pygame.display.set_mode(800, 600)
e3200f79c5953e494f33da4432ae97af300ba483
13800b7827598e76428a335559b7bf11867ec2f0
/python/ccxt/async_support/base/ws/functions.py
23ab0feffd946a25fe523a5d838217f9c8c7e07e
[ "MIT" ]
permissive
ccxt/ccxt
b40a0466f5c430a3c0c6026552ae697aa80ba6c6
e4065f6a490e6fc4dd7a72b375428b2faa570668
refs/heads/master
2023-09-04T03:41:29.787733
2023-09-03T19:25:57
2023-09-03T19:25:57
91,253,698
30,798
8,190
MIT
2023-09-14T21:59:09
2017-05-14T15:41:56
Python
UTF-8
Python
false
false
1,495
py
functions.py
# -*- coding: utf-8 -*- from zlib import decompress, MAX_WBITS from base64 import b64decode from gzip import GzipFile from io import BytesIO import time import datetime def inflate(data): return decompress(data, -MAX_WBITS).decode('utf-8') def inflate64(data): return inflate(b64decode(data)) def gunzip(d...
e1f476f7bedc2f0e656c452af4fb9c6cb38c5a22
3defe888509596087794613c330c8363b67c42d7
/src/repos/adjustmentRepo.py
9db41380dd32fcdbb6bd599db9cb335f351ad3a2
[]
no_license
Akashv1507/statisticalDayAheadDemandForecasting
091c9f46115fa69285e6a822d8a7ae1b64f17044
484c63765cd90de6e80811b40ea31edc74164ba5
refs/heads/master
2022-12-28T14:20:52.639237
2020-10-19T07:42:50
2020-10-19T07:42:50
291,350,753
0
0
null
null
null
null
UTF-8
Python
false
false
6,210
py
adjustmentRepo.py
import cx_Oracle import datetime as dt from typing import List, Tuple import pandas as pd from src.utils.checkSpecialDay import checkSpecialDay class Adjustment(): """adjustment repo to check D-2 is special or not based on which modification takes place """ def __init__(self, con_string: str) -> Non...
42953c886b097f32b5e1af3b1913037fa9107ad2
74674a6c8329b608969eff88c1226c1420820056
/pycuda/tools.py
05ac3c52ec3e2e998c6e9be4337d1b8dfa1f04df
[ "MIT", "Apache-2.0" ]
permissive
mitkotak/pycuda
ea82e9655d5f3e05db8dd8c9ba8c9704dff4af24
4a46ab6a4bd59340b78c6fae14e3f60feafa46e9
refs/heads/main
2023-06-29T09:44:04.453121
2021-08-04T03:09:34
2021-08-04T03:09:34
383,649,154
0
0
NOASSERTION
2021-07-22T00:25:13
2021-07-07T02:16:32
null
UTF-8
Python
false
false
14,771
py
tools.py
"""Miscallenous helper functionality.""" __copyright__ = "Copyright (C) 2008 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wi...
6fb5908effe2cf2063cb9e8aa1def3071ccd5cf1
92e855fb0d37dac3c43e55a6b20abf31069e57e9
/discoverer.py
f5006054e0ecd7a1d4892bc14ba8f84ebe657c70
[]
no_license
klimksh/undec
09a4f2544e16f9f4c227f15e9f60b206ef02d36e
3f04e6faa9133c8acc60e7da5e3cf9cb7bba7ee5
refs/heads/master
2020-04-06T15:54:31.629123
2018-11-14T19:07:52
2018-11-14T19:07:52
157,597,543
0
0
null
null
null
null
UTF-8
Python
false
false
2,401
py
discoverer.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import spacy from spacy.lang.en import English from uncertainty_recogniser import UncertatintyRecognizer from spacy.pipeline import EntityRecognizer import plac def main(text="I think this is a test phrase", *uncertainties, ents): # For simplicity, we start off with o...
b0a4c4085dd5c524bc27b89d5453e1f7df2d6f82
b8237e26b261da495e131d7d2eb5d4dbffef69f2
/project2/project2.py
4f4b16c33516e23e1eda259837a3d4a7fbdf3182
[]
no_license
mwleeds/cs260
054441db1687da5c414c1fee419391cde72d0fc5
e4faa68f3301d8611504856785173aaa136d6e61
refs/heads/master
2020-12-07T03:49:48.904858
2014-09-01T16:21:29
2014-09-01T16:21:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,190
py
project2.py
#CS 260 Project 2: Infix to Postfix Converter #Written by Matthew Leeds from arraystack import ArrayStack from linkedstack import LinkedStack from scanner import Scanner from tokens import Token class IFtoPFConverter(object): def __init__(self, scanner): self.scanner = scanner def convert(self): ...
0d67fd016b667d55e2cc9a12ae80214db055f3e4
7d71b7de0a8579787c411ad4213b5a39a4dfd8be
/Python/solution_008.py
4256eaa3c781a78d72f53992788d86191ee2474d
[]
no_license
mkollers/project-euler
3d24824a87abc054131872f17d177cb60859154c
277cf6955d0569a259aabb797c8cc803a61d1dc3
refs/heads/master
2023-01-06T05:28:48.103379
2019-08-10T19:07:47
2019-08-10T19:07:47
64,850,186
1
0
null
2022-12-30T18:20:12
2016-08-03T13:56:27
JavaScript
UTF-8
Python
false
false
1,304
py
solution_008.py
def execute008(): n = "73167176531330624919225119674426574742355349194934969835203127745063262395783180169848018694788518438586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557668966489504452445231617318564030987111217223831136222989342338030813533627661428280644448664...
0ff71e09f70be16a7614fbe8842b4adb327c9140
4e396f2a9ca6a6a83b3654897dbb9ba3d97c05b3
/dfx_security.py
fd728818dc69284f33333d88b49e67a6885663d4
[]
no_license
giridharanbabu/DFXClassification_V1
84f92ca32b8d8b990fe5cfcb3729d03e5a624964
8a3221205fc129f11c82d73a0dd3874d3a4e4138
refs/heads/master
2023-01-09T15:44:01.191270
2020-03-18T15:01:34
2020-03-18T15:01:34
248,262,872
0
0
null
2022-12-26T20:56:38
2020-03-18T15:01:10
Python
UTF-8
Python
false
false
1,234
py
dfx_security.py
import os import error_updation import configparser config = configparser.ConfigParser() config.read('config.ini') def get_security_token(): import requests as req import json try: sec_token_url = config['CLASSIFIER']['SEC_TOKEN_URL'] sec_username = config['CLASSIFIER']['SEC_USERNAME'] ...
77cffe497e50172917cb17dd427d0f2afa85deea
95d3c2e57e8b2e9691c385cf8c7bfc280adaf572
/garnahata_site/cms_pages/migrations/0008_auto_20150722_0108.py
35ced597802164926f4817e811f1d3878267e2b6
[ "MIT" ]
permissive
dchaplinsky/garnahata.in.ua
850c52d4c8e697c19b6e3ba264ca25b48a769ccb
02cd9772cdc4a99a24525b60ba1040b7343d76f6
refs/heads/master
2022-07-11T23:05:08.414036
2019-05-28T15:16:43
2019-05-28T15:16:43
35,701,644
9
4
MIT
2022-07-01T11:51:01
2015-05-15T23:25:35
JavaScript
UTF-8
Python
false
false
1,199
py
0008_auto_20150722_0108.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import modelcluster.fields import modelcluster.contrib.taggit class Migration(migrations.Migration): dependencies = [ ('taggit', '0001_initial'), ('cms_pages', '0007_auto_20150721_2318'), ...
ec6f78b39b3239554ede864de8a9e8317435ba5d
d0021c3cf6758b092e56883fbb5503192dcd1e10
/result_analyzer/scraper/tasks.py
cc98ad5dd9a93efc7fffeb0e9459b92cfbb9558a
[ "MIT" ]
permissive
animesh21/result-analyzer
fccfac82fc4b4ccd483d591993c38fac67d0420a
4d7f2351b9d2b24651f7436ea8a74bbb604aab6f
refs/heads/master
2021-01-10T13:50:35.167625
2016-01-03T16:56:57
2016-01-03T16:56:57
48,638,671
0
0
null
null
null
null
UTF-8
Python
false
false
1,670
py
tasks.py
import requests import urllib.request, random from bs4 import BeautifulSoup def get_results(rollno): with requests.Session() as s: url = 'http://www.uptu.ac.in/results/gbturesult_11_12/Even2015Result/frmbtech4semester_2015nrqiop.aspx' response = s.get(url) plain_text = response.text ...
a170110dc277abe3d6ed1a0d03918bbc1987bb47
67494eefb926d8bfab2ff73431bb8b487e5eb245
/Big_Brother.py
6750949fd5da086dfe8e3afdfd14d0f990877bfb
[]
no_license
Kathik-R/Big_Brother
56616cf03091b4f02189bd9e3f6fe8b63f53f0d5
077bd4aba3967674983fce553d1776ec0d84ff7f
refs/heads/master
2020-09-02T16:34:10.797713
2019-11-03T09:10:50
2019-11-03T09:10:50
219,260,361
0
0
null
null
null
null
UTF-8
Python
false
false
3,041
py
Big_Brother.py
#Importing the libraries import cv2 import numpy as np import pandas as pd #Import cascade classifier which will be used to detect the face face_cascade=cv2.CascadeClassifier('Cascades/data/haarcascade_frontalface_alt.xml') #Import the trained Facial Recognition Model created using Model_Train recognizer= cv2.face.LB...
a59d1d71e67acd2eea418a0e28c324163c2a42c1
5e72125a4f8c384bae394b9d7e66b67cb2f2f486
/AtlassianKeyRotate/app/rotatekeysinput.py
0a390e07330cce72e831540a1bd8ce9ee2826d7a
[]
no_license
mradityagoyal/python
a04be4edab324028d5cea10375c6a37cc17e40c2
df6baf7766ae245e43494def024c7e58a640d3b9
refs/heads/master
2021-01-10T06:11:19.987562
2018-11-13T20:29:14
2018-11-13T20:29:14
51,448,584
1
0
null
null
null
null
UTF-8
Python
false
false
947
py
rotatekeysinput.py
from __future__ import print_function, unicode_literals from PyInquirer import prompt, print_json #Literals BITBUCKET_USERNAME = 'bitbucket_username' BITBUCKET_PASS = 'bitbucket_pass' SSH_DIR = 'ssh_dir' REPO_DIR = 'repo_dir' # end literals #Input prompts questions = [ { 'type': 'input', 'name': ...
8272079170cdc927ccdbf246ccaab7fd1b6588bd
40ee1f5b92c250c60db3a8b7c7f844b3843bcfb9
/quoteengine/__init__.py
ecc29fd13f838292783e93983618ae9c0187b6c8
[ "MIT" ]
permissive
moon0440/meme-generator
ad699befa5171961c81b31a12d12ea717dd7fc37
25ee9e79da34ed68bb58655801c3399aa0a43272
refs/heads/master
2023-07-30T21:14:50.134396
2021-10-01T14:37:23
2021-10-01T14:37:23
412,186,609
0
1
null
null
null
null
UTF-8
Python
false
false
163
py
__init__.py
"""`quoteengine` module responsible for ingesting many types of files that contain quotes.""" from .quote_models import QuoteModel from .ingestors import Ingestor
e869beed6a0dc3681a1c31f0e8adc9ff28d3f43b
3a1367285c4a2709560cebc5f0ce5a480bfc3cd2
/dicod/multivariate_convolutional_coding_problem_2d.py
dc5bd08c6146d9422e4fff6a77456daec9363e5d
[]
no_license
tomMoral/Dicod
105843b956914efa61688931316bcd40a968940e
41be87d427a3a85edad783152b36a7f3aa5d96f8
refs/heads/master
2021-07-05T18:53:21.627884
2018-08-09T13:53:37
2018-08-09T13:55:29
106,170,506
12
1
null
2018-08-09T13:40:43
2017-10-08T11:18:30
Python
UTF-8
Python
false
false
6,991
py
multivariate_convolutional_coding_problem_2d.py
import numpy as np from scipy.signal import fftconvolve from ._problem import _Problem from joblib import Parallel, delayed class MultivariateConvolutionalCodingProblem2D(_Problem): '''Convolutional Sparse coding by coordinate descent Parameters ---------- D: array-like (n_dict (K), n_dim(d), height...
3e129b837d74b6078d5e8e37702c2af71d1fb802
9a032a36afba95e688b2f5b8987ad471f6717634
/baidumap/webservices.py
ea32cc3058421150b091394c526024447c83b859
[]
no_license
christopher-ustb/vangogh
d77680d945086e0146912d59462a6e9326600d6d
0d0333b1a8e51b648e0dd06ac93eaa5e71b625ea
refs/heads/master
2020-05-01T15:02:59.846807
2019-05-02T14:38:09
2019-05-02T14:38:09
177,536,604
0
0
null
null
null
null
UTF-8
Python
false
false
937
py
webservices.py
import hashlib from urllib import parse import requests from vangogh import settings _BAIDU_MAP_DOMAIN = "http://api.map.baidu.com" def _generate_sn(uri): # 对queryStr进行转码,safe内的保留字符不转换 encoded_str = parse.quote(uri, safe="/:=&?#+!$,;'@()*[]") # 在最后直接追加上yoursk raw_str = encoded_str + settings.BAIDU_...