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
c4f437e6f5aaeccb6dd0948c3ed1f1d465bb29ce
72ba6b9d34bd9d7700a0ec03f80e68c57b1fb5e5
/Alexa_project 2.py
92c693c1a931e843f9b9d0af4f661b7985a0b9a6
[]
no_license
tejasghinmine009/Mini-Alexa
234bbce7670be86bfb0eef77626b252d344fcfcc
3eb6daef06f720568d1620271428daa1f59109e5
refs/heads/main
2023-06-20T08:22:47.890098
2021-07-11T15:40:30
2021-07-11T15:40:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,058
py
Alexa_project 2.py
import speech_recognition as sr import pyttsx3 import pywhatkit import datetime listner = sr.Recognizer() engine = pyttsx3.init() #change voices voices = engine.getProperty('voices') engine.setProperty('voice',voices[10].id) rate = engine.getProperty('rate') engine.setProperty('rate', 150) #for machine to say def t...
4ed730369cf065936569a8515de44042829c2143
9fe0162a62ff6042be6f6a7efb7aa55e56fef42d
/com/filehandling/FilesandFolders.py
40a2b8b1f41f1d6ed4c120162dcf13051b325df2
[]
no_license
mailmevijayakarthik/Python_Skills
d5f75d8a74ee5bac4c4576fb3c3ade86d9994a4a
7b7117731fe5c3926cd8e272f44a5eb827997a82
refs/heads/master
2023-03-19T07:21:29.208137
2020-02-24T18:08:19
2020-02-24T18:08:19
213,039,429
0
0
null
2021-03-20T02:21:54
2019-10-05T17:12:34
HTML
UTF-8
Python
false
false
1,029
py
FilesandFolders.py
import os from test.test_unicode_file_functions import filenames def writeUniquerecords(dirpath,filenames): sourcepath=os.path.join(dirpath,filenames) with open(sourcepath,'r') as fp: lines= fp.readlines() destination_lines=[] for line in lines: if line not in destination_l...
b65d25198d55ab4a859b9718b7b225fa92c13a2b
f166eef7d60b2083bdf64985510c31237896e41a
/tests/unit/core/test_rect.py
043f47284d5d1b2a2688eb58fd745d3fea737e32
[ "Apache-2.0" ]
permissive
valer-whylabs/whylogs
fe79b71dffe19ee546cdc1d04b80413b7b01ee5a
f71cc98a250c68365ee19b15f7b1eba72677209a
refs/heads/mainline
2023-06-29T10:23:55.781087
2021-07-29T22:58:10
2021-07-30T01:39:22
360,577,978
0
0
Apache-2.0
2021-04-22T16:04:46
2021-04-22T16:04:45
null
UTF-8
Python
false
false
503
py
test_rect.py
from whylogs.core.annotation_profiling import Rectangle def test_rect(): rect = Rectangle([[0, 0], [10, 10]], confidence=0.8, labels=[{"name": "test"}]) test = Rectangle([[0, 0], [5, 5]]) assert rect.area == 100 assert rect.intersection(test) == 25 assert rect.iou(test) == 25 / 100.0 def test_r...
e78c4f65d84d5b33debb415005e22f926e14d7d4
9e1e1ee12b4523ba015fb9c1dfba733b29b620f8
/src/csv2df/runner.py
bd450f48a1e4c7eedfe4da3033a75f4daf0b45de
[]
no_license
garymau/parser-rosstat-kep
c4f11574ab200221a0e88662eb67523a60b93496
16f90748ca2271fab92bef0c49cf97d31af4a8a5
refs/heads/master
2021-08-28T09:42:37.852235
2017-12-08T09:10:22
2017-12-08T09:10:22
113,605,766
0
0
null
2017-12-08T18:36:21
2017-12-08T18:36:20
null
UTF-8
Python
false
false
3,493
py
runner.py
"""Get pandas dataframes for a given data and month. *get_dataframes(csvfile, spec=SPEC)* is a function to get dataframes from *csvfile* connection under *spec* parsing instruction. *Vintage* class addresses dataset by year and month: Vintage(year, month).save() Vintage(year, month).validate() *Collecti...
5ab877ef15cdcd52463b1567c28327dc2eeea2de
9b10e921fdfd319ad143c4cb61e0831c412dc4c5
/browse/util.py
7fbb3f923b990289fb906a1f6b1964d202e242c1
[]
no_license
fajiel/selenium
ecb32222f75cfec9d4f2fa9c58cfec20775548e8
c5ac6c27bb3d66418e4afd601d9004ce3f31d876
refs/heads/master
2021-01-19T15:13:45.379329
2017-08-21T14:54:34
2017-08-21T14:54:34
100,952,722
6
0
null
null
null
null
UTF-8
Python
false
false
1,346
py
util.py
from selenium import webdriver from selenium.common.exceptions import WebDriverException from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By SELENIUM_TIMEOUT = 12 def get_browser_driver(): """获取浏览器服务...
a21942a835f7b2ea70e9dd7b26285ea2dd411750
31af58494bda931ff2cdf321009d897bdab1b8e7
/oop3_2.py
a0d7d57ccb6313a103c67f7cf5e9ee78485f903f
[]
no_license
SeezSawz2222/python_oop_002
24f6719887e1bfe66406d38e1859ac3a759016ff
49bdec0bbe4701f5d1baef1a5d1898f474a98a90
refs/heads/main
2023-01-12T18:03:50.390500
2020-11-18T04:01:27
2020-11-18T04:01:27
313,818,315
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
oop3_2.py
class person(object): population=50 def __init__(self,name,age): self.name=name self.age=age @classmethod def getpopulation(cls): return cls.population @staticmethod def isadult(age=17): return age>=18 def display(self): print(self...
50ae47c88bbc0f281ef75784377fb65192e257b0
454157067b163d8f6fcc5af7d04c987aef0caaab
/Homework 3/DLT.py
649fcb725114486a6bc0ef809eecd156188c9edd
[ "MIT" ]
permissive
anthonyn2121/vision_algorithms
63ced28e9c30805ab763361d0717bfb5a5d3dd5d
c2d734d8a06329cfc2f61ed808735dda5a0bde38
refs/heads/master
2022-11-26T04:04:25.531635
2020-08-03T18:45:33
2020-08-03T18:45:33
278,912,699
0
0
null
null
null
null
UTF-8
Python
false
false
8,530
py
DLT.py
import numpy as np import cv2 import glob from scipy.spatial.transform import Rotation import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import mpl_toolkits.mplot3d.art3d as art3d from matplotlib.patches import Rectangle import celluloid from celluloid import Camera # couldn't save animation ...
480e6ae9eee70b2da58ca5624a43d8f5dcae1d33
ce032aee4a926b0b305c2b76203d374c0ddf7160
/mmtfPyspark/tests/datasets/test_secondaryStructureExtractor1.py
31f57f2717f7023a349424c3f8a3ae64c758036b
[ "Apache-2.0" ]
permissive
NicholasAKovacs/mmtf-pyspark
a8d179557f4c71c95ddec6973dd0d3f0faffdd0d
48b0b4c37ee38e854707633eb26815fc2bc47f7c
refs/heads/master
2020-03-16T16:28:54.002486
2018-05-08T23:32:21
2018-05-08T23:32:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,018
py
test_secondaryStructureExtractor1.py
#!/usr/bin/env python import unittest from pyspark import SparkConf, SparkContext from mmtfPyspark.io.mmtfReader import download_mmtf_files from mmtfPyspark.datasets import secondaryStructureExtractor from mmtfPyspark.filters import ContainsLProteinChain from mmtfPyspark.mappers import StructureToPolymerChains class...
3b959481f7c818ec35b8af174b1982954b4c72eb
2e7a5f041b8473811fee4865e58bab7b7cc85cf7
/src/django_registration/forms.py
20f44692ed29eb41897d0297a939b19b72d89611
[ "BSD-3-Clause" ]
permissive
ubernostrum/django-registration
c778f5f205a064548643b740525a472cc32f774f
7a1d8609b7c262f0321bbb39a6f901b9a6953cce
refs/heads/trunk
2023-08-29T13:24:29.668628
2023-07-11T06:00:10
2023-07-11T06:00:10
12,749,575
968
337
BSD-3-Clause
2023-06-12T06:59:25
2013-09-11T06:47:29
Python
UTF-8
Python
false
false
3,840
py
forms.py
""" Forms and validation code for user registration. Note that all of these forms assume your user model is similar in structure to Django's default User class. If your user model is significantly different, you may need to write your own form class; see the documentation for notes on custom user models with django-re...
cfa7dc295c635bbdf707f1e899c4fbf8ea91df9a
c7e765a9bed33d3bfb21774e3995bf4a09e04add
/adminmgr/media/code/python/map1/BD_231_896_084_090_mapper.py
11e04292448c137287c239c1927d9d504d53811d
[ "Apache-2.0" ]
permissive
IamMayankThakur/test-bigdata
13dd2ac7fb76c9baed6c3a0aa943057a22e2d237
7f507918c7bec31c92eedcd94491a83486623049
refs/heads/master
2022-05-03T00:59:44.127494
2022-02-10T19:50:16
2022-02-10T19:50:16
201,585,028
10
4
Apache-2.0
2022-04-22T23:39:45
2019-08-10T05:34:09
Python
UTF-8
Python
false
false
439
py
BD_231_896_084_090_mapper.py
#!/usr/bin/python3 import sys import csv infile = sys.stdin for line in infile: line = line.strip() my_list = line.split(',') if my_list[0] != "ball": continue batsman = my_list[4] bowler = my_list[6] if my_list[9] == 'run out' or my_list[9] == '""' or my_list[9] == "retired hurt": ...
dfd823c42e8a3b405483e81cc4a22006d7b371a3
dde1c19a9438de0e03198a1e6915b89a31e867b3
/advent_2019/advent_code_2019_day05.py
9c53bb6332fb0e22a9a55532492b990eb5b675d3
[ "MIT" ]
permissive
pllim/playpen
05d11df9080d2b739c3d4688204b7f22ddfe8f79
99d05adf5efb22731cbdd138f05b8c1374a73d57
refs/heads/master
2023-04-12T22:05:07.933298
2023-03-30T12:28:21
2023-03-30T12:28:21
7,916,583
3
2
MIT
2021-08-16T14:17:30
2013-01-30T14:55:51
Jupyter Notebook
UTF-8
Python
false
false
5,973
py
advent_code_2019_day05.py
import os import sys # A modified version of the same function in Day 2. def process_opcode(opcode_in, inbuf=None, outbuf=sys.stdout, debug=False): opcode_list = opcode_in.copy() n = len(opcode_list) i_list = 0 def _get_val(mode, idx): if mode == 0: # position mode val = opcode_l...
fb14cb3984ae469f52c2bdff5f6d2689739e3b20
bf47722c49c8e26fc3946ec293b080b9899240a8
/LPR/whole_pro/e2e.py
694f547b34a959027b9639a26478fbc766b05fc9
[]
no_license
renxiaokai-heiyan/Smart_city_Genplate-LPD-LPR
e9aae25e7e542d3dccf02a88d9b417696d71dce8
f93d8f1a66358be22c37ce94c089d2ab6284a602
refs/heads/master
2022-01-25T05:57:31.002166
2019-07-24T15:53:14
2019-07-24T15:53:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,910
py
e2e.py
#coding=utf-8 import numpy as np import cv2 import time import e2emodel as model from keras.models import * from keras.layers import * chars = ["京", "沪", "津", "渝", "冀", "晋", "蒙", "辽", "吉", "黑", "苏", "浙", "皖", "闽", "赣", "鲁", "豫", "鄂", "湘", "粤", "桂","琼", "川", "贵", "云", "藏", "陕", "甘", "青", "宁", "新", "0", "1", "...
970c1f8821b0aa177eade7725d486625b20b5e17
92f2830a7164c0944460f2b881defcf71fb6feab
/ead/viaf/putname.py
71b25c848365702b4914e4d00745062fd21f1433
[ "CC0-1.0" ]
permissive
didesilv/migration-tools
cbd92cecec934997f58f486a122e4cc179ee2b0a
a21f161a0c2182f9cb94dd1d57bc4da05482842f
refs/heads/master
2020-06-22T18:53:02.326721
2015-08-27T13:42:53
2015-08-27T13:42:53
197,779,315
1
0
null
2019-07-19T13:40:03
2019-07-19T13:40:02
null
UTF-8
Python
false
false
2,167
py
putname.py
# import what we need import os from lxml import etree from tqdm import tqdm # requires the constants.py file made by the makedictionary.py script from constants import persnames_dictionary from constants import corpnames_dictionary # where is your ead input directory, and where will you be saving the changed files...
5d22d165aaba8dca7166c505a7c3f025d25610a7
380481e90cee6d3c201fb54435bcbd863bcb1afd
/src/similarity/similarity_calc.py
d349d2b55a526ae2b005bb308ed1034b0b3e36d4
[]
no_license
aronglennon/automatic_programming_sound_synthesis
d9c1ef1b020942cf762b425ef6d1e8d96bd36da3
c42f579e499ff9504199b58220873393662130ba
refs/heads/master
2016-08-05T18:08:51.260277
2014-06-18T19:11:31
2014-06-18T19:11:31
8,526,808
9
0
null
null
null
null
UTF-8
Python
false
false
18,013
py
similarity_calc.py
import numpy as np import rpy2.robjects.numpy2ri from rpy2.robjects.packages import importr from features.features_functions import get_features rpy2.robjects.numpy2ri.activate() # Set up our R namespaces R = rpy2.robjects.r DTW = importr('dtw') from matplotlib import pylab as pl import math def get_similarity(featu...
df5c38f85331d9ac48cc0fe723ad4180d2069c59
28157774147b505239ed82e1d195ec523535a98c
/tests/test_tokenizer.py
84ef76a9d2d1e8faf60b057e20db43d3a9cfc377
[]
no_license
tonyedgecombe/pytinybasic
bf5a156a433e2d954896f90028c56107f62358f7
4e54ada9316afea9b33463b16d300125d4529eb1
refs/heads/master
2020-04-08T13:49:07.810464
2011-07-25T08:14:32
2011-07-25T08:14:32
1,832,505
1
0
null
null
null
null
UTF-8
Python
false
false
7,031
py
test_tokenizer.py
from unittest import TestCase from tokenizer import Tokenizer, Token class TestTokeniser(TestCase): def setUp(self): self.tokenizer = Tokenizer() def test_number(self): self.tokenizer.parse('100') token = self.tokenizer.getNextToken() self.assertEqual(token.NUMBER, token.type)...
4f6d6b3d9d9926df3632f999357bd2f38a9379ad
70e7b96743388afbb9485e0fc32ad739fc5777fa
/config.py
5984aefdd358447202b3ae1493d112cfecfcea64
[]
no_license
itaykatanov/recommender-systems
df1a93936801091ba676625a5e876ae4545e2e18
18ecb910d1e7f1e209f97214a4c603838ab88762
refs/heads/master
2022-12-28T21:14:51.954125
2020-09-18T12:33:52
2020-09-18T12:33:52
270,212,248
0
1
null
null
null
null
UTF-8
Python
false
false
689
py
config.py
SMALL_TRAIN_PATH = "data/small_feed" TRAIN_PATH = "data/Train.csv" VALIDATION_PATH = "data/Validation.csv" USER_COL_NAME_IN_DATAEST = 'User_ID_Alias' ITEM_COL_NAME_IN_DATASET = 'Movie_ID_Alias' RATING_COL_NAME_IN_DATASET = 'Ratings_Rating' # for internal use USER_COL = 'user' ITEM_COL = 'item' RATING_COL =...
84998dead41d385056d96e2da94e2f04fadb214d
dd06c5c781946878eb8fe36812c6531b10442ea8
/calculaCat.py
03f463747c20c86fa34794d6810bdaca17d83f4b
[]
no_license
darmel/python-curso
69037ede06f16bdeccc11d23823d9687ae27181e
4d3bce38e49aea1e96657819773e09c27da4f6e0
refs/heads/main
2023-06-13T21:40:41.818849
2021-06-28T01:00:09
2021-06-28T01:00:09
341,701,194
0
0
null
null
null
null
UTF-8
Python
false
false
1,910
py
calculaCat.py
#calculadora de edad de gatos #Programa para calcular aproximadamente la edad de tu gato en #años gatunos nombre = str(input('Ingrese el nombre de su mascota felina: ')) genero = str(input('ingrese el genero de su mascota felina: ')) edad = float(input('ingrese la edad de su mascota felina en años: ')) def c...
6ab727deeef3e4462a60b2787c998d501f5088b3
6f949d729afffa5efc9f548bbfb58cdef3779d68
/python/hackerrank_questions.py
409d48d9b7b32f467baf45b943afc6e436cd1c92
[]
no_license
barjinderpaul/Programming
ce02ad97d5fae968172ca397c483cc539a4b83f1
e48f4825cbe90f28e173f27071e5b0dd8740a8ff
refs/heads/master
2020-08-04T07:13:41.479369
2019-11-16T09:16:34
2019-11-16T09:16:34
212,045,826
0
0
null
null
null
null
UTF-8
Python
false
false
2,864
py
hackerrank_questions.py
''' Question = list comprehensions even_numbers = [x for x in range(2,13) if(x%2==0)] print(even_numbers) #with lamda function : lst = [ 2,3,4,5,6,7,8,9,10] even_numbers = list(filter(lambda x : x%2==0,lst)) print(even_numbers) #reduce from functools import reduce sum = reduce(lambda a,b : a+b,even_numbers) print(...
5ed371ef5da7e0bf5aa0a33ae703662633d9e6b2
4a7ffe337283eff0b69bb8f77714ed3d645a0e1b
/composition.py
1307325dca14aea1d867317e95db45e357872a4a
[]
no_license
temitopeakinsoto/intro-to-python-mastery-exercises
233ee92d0166d1dcf470fd447ca25cd9a6bb1b54
dcc20149b5d563e0d3c7db0da6af643931053e47
refs/heads/master
2021-01-03T06:09:41.655917
2020-03-23T09:11:11
2020-03-23T09:11:11
239,955,262
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
composition.py
class Salary: def __init__(self, pay, bonus): self.pay = pay self.bonus = bonus def cal_annual_salary(self): return self.pay*12 + self.bonus def __str__(self): return f"I earn {self.pay} monthly!" class NYSC: def __init__(self, name, pay, bonus): self.name = na...
d38eb2d9ba73e6aed743d4ae3d7cbd9d65bbc3cf
f0bb7e9876d94cb80bde07468a2911a597932047
/tenants/migrations/0004_tenant_rent_tenant.py
535f29ce161a66c288a3d0ce78a468c86f9a6929
[ "MIT" ]
permissive
Zayanto/Protocol-CRM
47f1de31f0f4318ad52068d960c03b3d3ed712b5
c81489d69de581d8216e20f7dd80089116f85c7b
refs/heads/master
2022-11-23T11:11:02.090484
2020-07-26T17:32:49
2020-07-26T17:32:49
282,688,747
0
0
MIT
2020-07-26T16:26:25
2020-07-26T16:26:24
null
UTF-8
Python
false
false
434
py
0004_tenant_rent_tenant.py
# Generated by Django 3.0.1 on 2020-06-21 00:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tenants', '0003_auto_20200621_0000'), ] operations = [ migrations.AddField( model_name='tenant', name='rent_tenant',...
d3eff870e17f7636bb428a64c1a8885886cb4edc
3a170895f9ad0829bb9c08c7308c4457837e830b
/07-handy-haversacks/solve.py
62a11b755cc260f35055e8d57f3fd582c4c4d8bb
[]
no_license
robbystk/advent-of-code-2020
610e97b8177c6811384b1f24d2065b8080f5c150
d3bcc01ee8820fb1529f8e094015bb7dad49407e
refs/heads/master
2023-02-14T15:29:53.682993
2020-12-28T18:51:55
2020-12-28T18:54:29
317,906,007
0
0
null
null
null
null
UTF-8
Python
false
false
1,942
py
solve.py
import sys import re def input(): with open(sys.argv[1]) as f: for line in f: yield line path_cache = {} def paths_to_color(rule_list, starting_color, desired_color): rv = [] for content in rule_list[starting_color]: color = content[1] if color == desired_color: ...
88034cf4b1c07ec429bc8ebb521360ef715023d6
ab56451760e25452a864557617c6b3a454227b2a
/1.TrainingSimulation.py
6b50db6e693109cbf08ea8077e91f2e3cf5d05be
[]
no_license
GitDip008/self_driving_simulation
42950fcbbb286c042d2b912aa25580b064fab302
034147fa7592447203a078d1305e6977b3778647
refs/heads/master
2023-06-08T17:26:47.424266
2023-06-06T18:50:56
2023-06-06T18:50:56
293,272,409
0
0
null
null
null
null
UTF-8
Python
false
false
2,492
py
1.TrainingSimulation.py
from utilities import * from sklearn.model_selection import train_test_split #### 1. Importing the data information path = 'data' data = import_data_info(path) # Next, We have to balance the data so that we have equal number of information from # the center, left and right camera. #### 2. Visualization and Distrib...
b6e1fac0c505e2f122124654d8f11ad3c38445e8
2148639dee4c4827a3d3bc4da54b33707cd148c0
/autonomous_driving/occupancy_prediction/projects/mmdet3d_plugin/core/bbox/match_costs/match_cost.py
d9678f3c7f666255540762d4064f0f7d82b920ed
[ "Apache-2.0", "MIT" ]
permissive
OpenGVLab/InternImage
4ad8fb8131385a6d6ee8eaab2de5b47edc9e0a73
3e083be9c807793ec1d6a9ffe091978ee01de02b
refs/heads/master
2023-09-01T19:47:39.591459
2023-08-23T14:06:56
2023-08-23T14:06:56
564,231,518
1,834
176
MIT
2023-08-25T06:08:38
2022-11-10T09:24:57
Python
UTF-8
Python
false
false
852
py
match_cost.py
import torch from mmdet.core.bbox.match_costs.builder import MATCH_COST @MATCH_COST.register_module() class BBox3DL1Cost(object): """BBox3DL1Cost. Args: weight (int | float, optional): loss_weight """ def __init__(self, weight=1.): self.weight = weight def __call__(self, bbox_p...
1b9779aa471db1490cc02d98458e1cb78a50aa9d
2790ca25a6f83693c2c15765738bf9fbc35fba3e
/code_base/survey_form/views.py
60ab088c7ff56fe3cd17c991a912adc99a6f9d36
[]
no_license
Anarde-Foundation/village-development
df9205303abefedaa782f244a76a388457c853fb
7b462d521b23934fb8e004566ccab9822284d45e
refs/heads/master
2020-07-14T14:35:49.439358
2020-01-13T11:07:01
2020-01-13T11:07:01
205,335,325
0
0
null
2020-01-13T11:07:02
2019-08-30T08:06:05
JavaScript
UTF-8
Python
false
false
15,193
py
views.py
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, JsonResponse from django.contrib.auth.decorators import login_required from django.views.decorators.csrf import csrf_exempt from django.core import serializers from itertools import chain from django_datatables_vie...
1c9f7594d71a48b45b1d58ac1cfe36788c377703
509150f5f0cd5e955f2c27c1e5edbe458d4100cb
/Libraries/Python3/pineapple/notifications/__init__.py
11409739b463c3b689c7b7cbdeae9e98011f273a
[]
no_license
AntoTek/mk7-modules
c0a67100105f54d80a7c595a86c31bf170619eec
e78d0adc0376ccabce32afcc49c38ed1e0ed6bac
refs/heads/master
2023-04-09T21:09:01.394553
2021-04-08T15:48:40
2021-04-08T15:48:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
64
py
__init__.py
from pineapple.notifications.notifications import Notifications
c9a680ba2cf7a6eb7674b72f916273207c8bf5e6
1a96a551d60b574a6350b13dff08f2488257be0f
/synapse/tools/superhash.py
e8cf688f5602b89fb2b38adcd6a46f92e4a0470e
[ "Apache-2.0" ]
permissive
vertexmc/synapse
82b0ee3520202b8a1dc372a93b29aa4bd98d216f
bd1f8ab1abcbaac20dc9afb9ad385cf831278ada
refs/heads/master
2021-01-11T21:07:29.161399
2018-06-28T23:12:38
2018-06-28T23:12:38
79,249,563
0
0
Apache-2.0
2018-05-03T16:07:46
2017-01-17T16:50:56
Python
UTF-8
Python
false
false
2,535
py
superhash.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ synapse - superhash.py Created on 4/26/17. Generate the hashsets and guid (superhash) for a file. """ # Stdlib import os import sys import json import logging import argparse # Custom Code import synapse.lib.output as s_output import synapse.lib.hashset as s_hashset l...
59a376d89804eaa8c8468cba3de087547dd3dc30
d2efc6b1d012cc9baae1c8429afb3f15d348cce1
/luffy_permission/rbac/templatetags/cal.py
93d7e6367ed88bc54044fb6b21bc7a1a440ac752
[ "MulanPSL-2.0", "LicenseRef-scancode-mulanpsl-2.0-en", "LicenseRef-scancode-unknown-license-reference" ]
permissive
luyl1017713252/python
d46f280d1149a772d102aa96cfa3afc4cef6dbd9
3b30cffa85b625e512415fa882b4bc7708a5e0b8
refs/heads/master
2023-05-11T03:53:43.112742
2021-06-04T06:01:18
2021-06-04T06:01:18
373,741,324
0
0
null
null
null
null
UTF-8
Python
false
false
1,534
py
cal.py
import re from django.template import Library register = Library() @register.filter def mul(x, y): return x * y # # def tag(val): # return @register.filter def lowerse(val): return val.lower() @register.simple_tag def mul_tag(x, y, z): return x * y * z @register.inclusion_tag('menu.html') de...
0f5901dc4c00ecf58c8f87091e1a61513eb11a25
fcc900198cb5759e857220e48302629f6114041e
/api/v1/views/places.py
8fd0d54492635b51aa73331909056c5cdfea2eb0
[ "LicenseRef-scancode-public-domain" ]
permissive
YerardinPerlaza/AirBnB_clone_v3
84441a01fbaf6180f296e3e58b6ef6603024d620
c0634cf13b04f1c822629901b64aa6fbabbe870b
refs/heads/master
2023-08-11T21:43:46.683710
2021-09-20T20:46:30
2021-09-20T20:46:30
407,274,147
0
1
null
2021-09-17T14:28:34
2021-09-16T18:30:04
Python
UTF-8
Python
false
false
2,668
py
places.py
#!/usr/bin/python3 """State view module""" from api.v1.views import app_views from flask import jsonify, abort, request from models import storage from models.state import State from models.city import City from models.amenity import Amenity from models.user import User from models.place import Place @app_views.route...
c27fb863219be44f3c6a60d0886aa42edd941b85
afaf93f60d90a728092e338198e90dd2226533f1
/hapoel_shop_utils.py
53e4eeb058ca052cb0ca156fb591ad092df05112
[]
no_license
noam443/HapoelTLV
43699b47a42427b1810b321a696e052517f5f890
0c7e44617aa7d8000f526c16a5ef00c575187289
refs/heads/main
2023-06-06T23:14:36.971860
2021-07-08T19:00:57
2021-07-08T19:00:57
384,220,066
0
0
null
null
null
null
UTF-8
Python
false
false
1,004
py
hapoel_shop_utils.py
import numpy as np def invitations_split(candidates, number_of_invitations): """ Random choice of volunteers who registered to get invitations to specific game :param candidates: (list) Names of the volunteers who registered to the game :param number_of_invitations: (int) Number of invitations :ret...
5510ae5b75df5f15654ec9b0b476f1882e79440a
96511185f57ed143d0d06886a47c9233f8ab399f
/cfp/urls.py
56a3866047d50ecb46bc9b3f5a9b1083899f4d25
[]
no_license
djangocon/2016.djangocon.eu
47454b5d4048b43de7598e7bcc6a777cf562713d
a1f1d569894f856cc76a1d8218a91c8c070cbc35
refs/heads/master
2021-01-21T04:27:18.697874
2016-04-13T06:49:50
2016-04-13T06:49:50
38,642,794
8
14
null
2016-04-11T13:58:06
2015-07-06T20:02:18
Python
UTF-8
Python
false
false
515
py
urls.py
from django.conf.urls import url from django.contrib import admin from cfp.views import LandingView, CreateView, ThankYouView, ProposalDownloadView, ProposeWorkshopView urlpatterns = [ url(r'^$', LandingView.as_view(), name='landing'), url(r'^propose/$', CreateView.as_view(), name='propose'), url(r'^works...
24779be24abb7cc6e4c164c854ed12ad1d5826d5
31f91d63e7589269fec7f42d112b321ba71af325
/pi7gurmukhi/__init__.py
863a8022de5cf734ed8c4a1669e30892291083c3
[ "MIT" ]
permissive
shivjeetbhullar/pi7gurmukhi
72cd35cba05df201e3058062892c566cfabf17b9
5c5b6133a54edb4d5e139b19879f70afa1082e35
refs/heads/master
2022-11-24T07:24:15.039339
2020-07-27T13:37:31
2020-07-27T13:37:31
282,400,610
2
0
null
null
null
null
UTF-8
Python
false
false
157
py
__init__.py
# -*- coding: utf-8 -*- from .chars import * def render_gurmukhi(Gurmukhi_string): Gurmukhi_string = Fix_chars(Gurmukhi_string) return Gurmukhi_string
c623c273324c1d8f8c47c2c1bd92bddfee12ab03
d00c1113b4da0a5597794b9c6d51a61c94e66203
/segmentation/mmseg/datasets/cocostuff.py
b77e756476f7ea86829ae8d0bd972fd4535cdb36
[ "LicenseRef-scancode-unknown-license-reference", "Python-2.0" ]
permissive
Chenglin-Yang/LVT
9491ce721bc6d76282c4f3dc35d68f59f01639f2
c56189777d31e75fbfdf60514ca755aa23a25aac
refs/heads/main
2023-05-23T16:49:16.687977
2022-03-22T22:43:54
2022-03-22T22:43:54
465,136,002
121
9
NOASSERTION
2022-10-21T11:43:41
2022-03-02T02:58:07
Python
UTF-8
Python
false
false
4,992
py
cocostuff.py
from .builder import DATASETS from .custom import CustomDataset from IPython import embed @DATASETS.register_module() class CocoStuff(CustomDataset): """Coco Stuff dataset. """ nclass = 182 CLASSES = [str(i) for i in range(nclass)] # random generated color PALETTE = [ [167, 200, 7], ...
99b69c2a1c9624e256f967f7490259964f0a9c5c
a5800ebdd31918b47169ae6dde901923633b996d
/prs_lib/validator.py
747b01b0f84fa902ff98384656a040989bb6a6fa
[ "MIT" ]
permissive
Press-One/prs-lib-py
50c1839e6cac21eefbe1aec820af3cf85d4af791
5f088d58993a93bee660a27579966aa015606c9a
refs/heads/master
2020-06-02T12:26:28.969861
2020-03-19T08:29:22
2020-03-19T08:29:22
191,153,689
1
1
null
null
null
null
UTF-8
Python
false
false
610
py
validator.py
__all__ = ['assert_exc', 'raise_exc'] def assert_exc(value, message): if not value: raise Exception(message) def raise_exc(message): raise Exception(message) def check_dict_and_assert(obj_name, obj, fields): assert_exc(obj, f'{obj_name} cannot be null') for item in fields: assert_e...
42e2005726715a2c6d9b1814868e54e3a078bd0d
70288fa2b3eab0997669ec71788e2cd6e89cf914
/024_extract_given_list_of_atoms_from_the_given_chkpt_file/extract_given_list_of_atoms_from_the_given_chkpt_file.py
7eecc60858e8a949cb676f7f5a8bff965cdf0a31
[]
no_license
anuraaggad/md_tools
7874921cf1a68456808010dc318fbd6b185af62f
c85496b3929d60e67193591a5d75a239dfa0e739
refs/heads/master
2023-04-02T16:07:32.445575
2021-04-04T10:28:15
2021-04-04T10:28:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,745
py
extract_given_list_of_atoms_from_the_given_chkpt_file.py
""" @Author : Sudheer Ganisetti @Date : Mo 27. Jul 16:36:19 CEST 2020 This code is to extract the given list of atoms from a chkpt """ import sys import ganisetti_tools import numpy as np # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # if __name__=="__main__": tot_argv = len...
c8b866717e733e893676049d21c972cf70f3196c
8b77c2262e88fe21593cab078c16f36187441099
/Cruise/models.py
e6efa28ff789ce2a462165eaec5cddf81640037c
[ "MIT" ]
permissive
remiljw/CruiseAPIs
a513aa60f49fb1155ccbbe9185cc8918447162bc
4d33d70d5cdd8dc8f6e8325cbed0026badd01664
refs/heads/master
2021-09-23T01:08:18.661726
2021-09-22T21:34:09
2021-09-22T21:34:09
240,220,810
1
0
MIT
2021-09-22T21:34:09
2020-02-13T09:20:25
Python
UTF-8
Python
false
false
1,682
py
models.py
from django.db import models from django.db.models import CharField from django_mysql.models import ListCharField #This is a custom field that requires mysql # Create your models here. class Excursion(models.Model): Active = 'active' Inactive = 'inactive' Excursion_status = [ (Active, 'active'), (Inactiv...
ea1faba607ef69cafccce1da558f2da664d67d13
04d699a9464378cb8aeea146c624d440b07a4e3f
/Bowl_Game_Predictions/2018/utils.py
b12b7d9afa2e8c0a37e00d2ad8f1241e9363cd70
[]
no_license
meysubb/NCAAF_Projects
6c25a25522e7f24cf98e8b731f1aaab0b15f70b3
f94b86c19b756e32f38d58c8427eee7e2f6eb2fb
refs/heads/master
2021-08-10T21:49:50.275376
2021-01-21T04:29:06
2021-01-21T04:29:06
76,712,196
4
0
null
null
null
null
UTF-8
Python
false
false
809
py
utils.py
import numpy as np def report(results, n_top=3): for i in range(1, n_top + 1): candidates = np.flatnonzero(results['rank_test_score'] == i) for candidate in candidates: print("Model with rank: {0}".format(i)) print("Mean validation score: {0:.3f} (std: {1:.3f})".format( ...
f1dd0862058fc22069b630355edfd8366eb32ebd
9645bdfbb15742e0d94e3327f94471663f32061a
/Python/790 - Domino and Tromino Tiling/790_domino-and-tromino-tiling.py
1d639c0e2ebec9720eaf05891f28d50c487c09da
[]
no_license
aptend/leetcode-rua
f81c080b2260adb2da677612e5c437eda256781d
80e44f4e9d3a5b592fdebe0bf16d1df54e99991e
refs/heads/master
2023-06-22T00:40:05.533424
2021-03-17T13:51:28
2021-03-17T13:51:28
186,434,133
2
0
null
2023-06-21T22:12:51
2019-05-13T14:17:27
HTML
UTF-8
Python
false
false
1,020
py
790_domino-and-tromino-tiling.py
from leezy import Solution, solution class Q790(Solution): @solution def numTilings(self, N): # 20ms 70% if N == 1: return 1 elif N == 2: return 2 # dp[0]: of two blocks in the column, only top block is coverd # dp[1]: only bottom block is coverd...
0e0fd6ebf1e266e97aede5f1262484a99e00e371
62664243e021cf59b0ddbd0aae114222a6892651
/lib/vConTACT/vConTACT_utils/vConTACTUtils.py
964b568fb0023ec4c5be1a3676e1cf7bddbfc8ab
[ "MIT" ]
permissive
bolduc/vcontact
05147317beea44e868292db945159a0534be9593
fd1bbd12556247d3fbea5c8a7ee3b909e76bfd16
refs/heads/master
2022-09-28T20:38:28.881462
2022-09-21T20:53:46
2022-09-21T20:53:46
154,392,403
3
5
MIT
2021-01-07T21:03:50
2018-10-23T20:27:34
Python
UTF-8
Python
false
false
17,113
py
vConTACTUtils.py
import time import os import subprocess import csv import uuid from collections import OrderedDict from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from string import Template from pyparsing import Literal, SkipTo import pandas as pd import tarfile from shutil import copyfile from pprin...
b8ca82b89ba5c09fbf14406094d2ea12118fb689
8297f6f4010ff4a65c2329c1ca1351d98274d47a
/data_utils.py
662d15a90e9fd35f8ea275ff499d77e5c573c1c0
[]
no_license
wangluheng328/MLLU-HW3
3e89111c276b448c6263c4068f7e063be642c8a2
9dd9314604a3f9a8da398fcbe814aca9a51f178e
refs/heads/main
2023-03-24T07:45:31.084770
2021-03-25T15:48:50
2021-03-25T15:48:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,731
py
data_utils.py
import torch def encode_data(dataset, tokenizer, max_seq_length=128): """Featurizes the dataset into input IDs and attention masks for input into a transformer-style model. NOTE: This method should featurize the entire dataset simultaneously, rather than row-by-row. Args: dataset: A Pandas ...
4abf71fb6930fccd19f8b1408eb89a16250bb230
17acb8e20f9a24b16ce3651302fc2d7fc7b887a6
/test/programytest/utils/newsapi/test_newsapi.py
e822f409365467f26345cb1520fab72c6498dca1
[ "MIT" ]
permissive
cen-ai/program-y
91052fdc11aec0f60311e3429895fac489d8ce54
a753667638147544c54dbebd9f1c8f9ae7f2159e
refs/heads/master
2020-03-22T15:11:07.896885
2018-10-15T22:13:58
2018-10-15T22:13:58
140,234,173
5
5
NOASSERTION
2019-01-03T09:09:07
2018-07-09T05:11:08
Python
UTF-8
Python
false
false
5,569
py
test_newsapi.py
import unittest import os import json from programy.utils.license.keys import LicenseKeys from programy.utils.newsapi.newsapi import NewsAPI from programytest.client import TestClient class MockResponse(object): def __init__(self, status_code, headers, data): self.status_code = status_code self.h...
6443715dccc127df344f1803eb2c4db20b18caef
631cefb6d8f2c191b73f4878adcc7f046dc1e219
/largest-number.py
50718070e506bd8f60fb29e9248cdf64aa30a477
[]
no_license
kilala-mega/practice_everyday
7fa46a78ab6809608df6e741bf0c8be66e97c103
6bd48d5a6ff15a5d8454fa24a611334f0244f862
refs/heads/main
2023-07-08T21:31:55.665008
2021-08-11T19:29:34
2021-08-11T19:29:34
349,309,409
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
largest-number.py
class Solution: def largestNumber(self, nums: List[int]) -> str: sortedNum = sorted([str(num) for num in nums], key=cmp_to_key(lambda x, y: 1 if x + y < y+ x else -1)) ans = "".join(sortedNum) startPos = 0 while ans[startPos] == '0': if ans[startPos:] == "0": ...
84527a32408be0967513fb769142224449cd4761
971716a4a3d1e59d96807f8db4d2f92ef5ab0520
/2-第二个月/06day/1-复习面向对象.py
abb1208160313efb360a481ef0c75557c5767ebe
[]
no_license
limingrui9/1803
b8d96740e98ab34deb6b969d5472a847642d925e
761b125d907c5003a6a381414ca9cd05774c10f4
refs/heads/master
2020-03-06T14:26:34.876973
2018-05-24T02:57:28
2018-05-24T02:57:28
126,935,995
0
0
null
null
null
null
UTF-8
Python
false
false
2,064
py
1-复习面向对象.py
面向对象: 类:类是对象的抽象 特点:类是抽象的类 概念:类是拥有相同属性和行为的实物的总称 对象:是类的具体实例 类和对象的关系: 类是对象的模具 对象:是类的具体实例 魔法方法: ——init——:初始化属性(自动调用) ———str——:有返回值,打印实例对象时会自动调用 ——del——:删除实例对象的时候会自动调用 ——new——:创建实例对象,并返回此实例的引用 私有:加两个下划线变成私有的 私有属性:不能直接方法,必须用get和set使用 私有方法:不能直接调用,可以使用共有方法 继承: 继承好处:复用代码 继承分多继承和单继承 多继承:当两个父类有相同的方法时,子类调用此方法的顺序是根据继承顺序来的 x...
3888f0117a572037f6594f0d5dc154fb746c60f1
bdf6c8992ad17958a40d30f08507dafb6df05935
/python/cugraph/cugraph/dask/community/louvain.py
6cbae07621f99b7d876bb0a4dabf02c9a715bffb
[ "Apache-2.0" ]
permissive
BradReesWork/cugraph
137c7dc014abdb40382fa5a7660fd19d2e13697e
76800bc768c5757869314ec1928b01ec49f32ee1
refs/heads/branch-22.06
2023-08-31T04:32:02.615221
2022-07-12T16:27:32
2022-07-12T16:27:32
169,301,790
0
0
Apache-2.0
2019-04-08T13:48:04
2019-02-05T19:46:16
Cuda
UTF-8
Python
false
false
6,751
py
louvain.py
# Copyright (c) 2019-2022, NVIDIA CORPORATION. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
aa411c017fa5866ca029f9e98a6b01e8aebb981e
e0aa0f292102455b8c0d0f1164abe3c5aa53e696
/project_name/apps/cruncher/admin_utils.py
28fcda5b44c78b63099be1277f0a59848d60e3e9
[]
no_license
cruncher/project-template
870d37a24fd5325050e28e6f89cfc8f182f016e2
565833b20e88662c3495bc3a3f5ab33733afc277
refs/heads/master
2023-08-22T03:06:02.921075
2023-08-10T14:06:03
2023-08-10T14:06:03
5,677,268
2
1
null
2021-05-21T09:42:45
2012-09-04T19:15:25
Python
UTF-8
Python
false
false
3,895
py
admin_utils.py
from django.contrib import admin from django.contrib.admin.sites import site from django.contrib.admin.widgets import ForeignKeyRawIdWidget, ManyToManyRawIdWidget from django.urls import NoReverseMatch, reverse from django.utils.safestring import mark_safe class VerboseForeignKeyRawIdWidget(ForeignKeyRawIdWidget): ...
049dce4eb88aa9b686d33fd4b8a652f5e7f34b1f
976bd799fd461c3f0fd3658db28aa7051cd4ea84
/GenApp/Privilegios/admin.py
5043a12d3304a87d523751b5ade7c9baf9946e8e
[]
no_license
rjbenitezq/ServBack
08f287031b2234a741d435518cec13c60a30d242
3cb0dda6a424d05f9f35fe21dff292e1f0a712cf
refs/heads/master
2020-03-23T19:40:46.814217
2018-07-23T09:58:57
2018-07-23T09:58:57
141,993,767
0
0
null
null
null
null
UTF-8
Python
false
false
294
py
admin.py
from django.contrib import admin # Register your models here. from GenApp.Privilegios.models import RolUser, Privilegios, Roles, Modulos, ModUser admin.site.register(Modulos) admin.site.register(ModUser) admin.site.register(Roles) admin.site.register(RolUser) admin.site.register(Privilegios)
09dad133a7ff60f58c588c2fa580a9a41c9b5101
13329defcae2e8751084ae080cb3fa3046993cc4
/postagger_viterbi.py
8fe3ee51a54cd53498ff2b15f5cfedeaf4494f17
[]
no_license
sandeep-neupane/pos-tagger
19602cb5155fc04ba92a9f1c052864719cb53e4c
c5a624fa03b4ab6b06e68109c5ead011f1081da6
refs/heads/master
2020-04-23T12:24:20.861024
2019-02-17T20:17:32
2019-02-17T20:17:32
171,166,775
0
0
null
null
null
null
UTF-8
Python
false
false
8,248
py
postagger_viterbi.py
#!/usr/bin/env python #Author: Sandeep Neupane from optparse import OptionParser import utils import collections import logging,sys def calculateWordTagCOunt(sentences): wordTagCount = collections.defaultdict(lambda: collections.defaultdict(int)) tagTagCount = collections.defaultdict(lambda: collections.defaultd...
eda9f8d2a97560d7a49855d902813be8af1e2f1e
c54722779374bf15b0e1bfef9cbc5b98001bbea8
/Reinforcement/R-1.11_listComprehension.py
b6f70a0c783284e8d98be7b7af397eb7808413c3
[]
no_license
fahrulardiannugroho/struktur-data-tugas-1
f210e035045d3a685fb2e1972f2ec7bf9e017d1a
500345debcd6ea4cd67d0010be83424edc06bd29
refs/heads/master
2023-05-03T12:22:02.062493
2021-05-31T12:44:27
2021-05-31T12:44:27
372,419,952
0
0
null
null
null
null
UTF-8
Python
false
false
47
py
R-1.11_listComprehension.py
list = [2**n for n in range(0, 9)] print(list)
4b25dc38e9ca9f08de2c9939c4eeccebf42a5028
a2e638cd0c124254e67963bda62c21351881ee75
/Python modules/TMS_TradeWrapper_Common.py
1580c5e1cfd0eb48ec2a04c875f562017c7c0637
[]
no_license
webclinic017/fa-absa-py3
1ffa98f2bd72d541166fdaac421d3c84147a4e01
5e7cc7de3495145501ca53deb9efee2233ab7e1c
refs/heads/main
2023-04-19T10:41:21.273030
2021-05-10T08:50:05
2021-05-10T08:50:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,633
py
TMS_TradeWrapper_Common.py
''' ======================================================================= TMS TradeWrapper Common The commonality between asset classes (FX and FI) are drawn up here. This is done for Trades, Instruments, Legs, Cashflows and Payments. Eben Mare ===================================================...
3efccdbda2ee827fec9be6cabf0fd61ec0bf838c
7b3612a11ceeaa2c5690e77a4ad5343d36b12dd9
/external/misc/array_batch_loader_example.py
cfc238d44247379a061a8bf6161daa599dc93f27
[]
no_license
d3v3l0/pedl-examples
f32cc9988aaa408630101812eb7bb1c8cb141a0f
ad418708417133c08ce4ed6c113efca1fd0240b1
refs/heads/master
2022-04-15T11:46:32.578931
2020-03-11T03:57:29
2020-03-11T03:57:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,216
py
array_batch_loader_example.py
""" Example using ArrayBatchLoader for CIFAR-10. Download and unpack the CIFAR-10 data set by running these shell commands: wget https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz tar xzf cifar-10-python.tar.gz Description from https://www.cs.toronto.edu/~kriz/cifar.html: The CIFAR-10 and CIFAR-100 are labeled...
6f5bceb9f3cc4dad191c919a5f22d30f0ace7faf
008b240ad781cdd559f80e579f941a2572e565ca
/basic_pptx.py
bbe8596274ce3c85201c251f5b6ddc9358572d7d
[ "MIT" ]
permissive
agartland/utils
3aac712b0ff8c9abce0a2a965652290f4c77c35c
81ba318d7f38597b57ebe8a7dad3d5f797836f07
refs/heads/master
2023-01-24T16:56:19.806050
2023-01-20T18:48:12
2023-01-20T18:48:12
19,157,998
6
6
MIT
2021-05-06T23:53:16
2014-04-25T19:29:48
Python
UTF-8
Python
false
false
4,070
py
basic_pptx.py
from pptx import Presentation from pptx.util import Inches import io from os.path import join as opj import os __all__ = ['BasicPresentation'] """ (text, fig, table) """ layouts = {(True, True, True):0, (True, True, False):1, (True, False, True):2, (True, False, False):3, (...
34cc11b88e709c36e10a3e8b6245d4f600dd7488
4091caecbc727e6d6ae0d827afce11c5979a84fd
/tools/accuracy_checker/openvino/tools/accuracy_checker/adapters/nlp.py
439a80766cd521a100d2de2086f52ab2b3eb3023
[ "Apache-2.0" ]
permissive
openvinotoolkit/open_model_zoo
fdb03dd40bfccb854e4ed4f7b9beaa90596963cd
7929adbe91e9cfe8dc5dc1daad5ae7392f9719a0
refs/heads/master
2023-08-18T18:03:47.254427
2023-08-18T10:54:31
2023-08-18T10:54:31
153,097,694
1,712
730
Apache-2.0
2023-09-11T11:31:20
2018-10-15T10:55:02
Python
UTF-8
Python
false
false
16,323
py
nlp.py
""" Copyright (c) 2018-2023 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
3b04dd7f6b5e30231a87910ad5f2370fb72e3d2d
0ade4397938603cbb8096ec374b00c9790860936
/chapter2/code/subprocess/PingScanNetWork.py
7ad8587f6b0dee0fab2978c5b885c60af77e3a69
[ "MIT" ]
permissive
abbbhucho/Mastering-Python-for-Networking-and-Security
bb46260085ffdc083fbb50e81ddf908bc0315fab
f4fb1131253e9daad8da501c297758fdcedfbac3
refs/heads/master
2020-04-10T20:56:53.190895
2019-03-11T14:38:15
2019-03-11T14:38:15
161,283,244
0
0
MIT
2018-12-11T05:45:17
2018-12-11T05:45:17
null
UTF-8
Python
false
false
1,025
py
PingScanNetWork.py
#!/usr/bin/env python from subprocess import Popen, PIPE import sys import argparse parser = argparse.ArgumentParser(description='Ping Scan Network') # Main arguments parser.add_argument("-network", dest="network", help="NetWork segment[For example 192.168.56]", required=True) parser.add_argument("-machines", des...
f9ed334a17dc2399b6f1dcf6509ab537ffdd042f
6838d66f8dec23db63923f375438af2dd9fb22fe
/lineup.py
7223deaca14f04730265859b46fef270db4620bc
[]
no_license
xCiaraG/Kattis
795ef7c463c60f362068f0d0e7c8ec8da4a69d19
ec08aa588f61d78937fb3c63bdb803e999fc9c36
refs/heads/master
2021-01-22T21:27:54.736451
2020-10-25T17:44:09
2020-10-25T17:44:09
85,432,383
9
9
null
2020-10-25T17:44:10
2017-03-18T21:13:13
Python
UTF-8
Python
false
false
355
py
lineup.py
import sys n = int(sys.stdin.readline().strip()) names = [] for i in range(0, n): name = sys.stdin.readline().strip() names.append(name) new_names = names[:] new_names.sort() new_names2 = new_names[:] new_names2.reverse() if new_names == names: print("INCREASING") elif new_names2 == names: print("DECRE...
1eb806f2c0a1b4a56fadaad1577845542bed5433
f41d13e2873949aaec5d427af422b2622107a433
/lab06-zoo-classifier_tf_reader.py
9709b5eaa5f273bd5d0bd9e9df84dc692777f524
[]
no_license
lvxf100617/DLorML
c49c4415eee8ed46b44b8d4c02a5434e4de80768
17ce5bdc58232c575c6f5ff1ce2bc30cb20c6912
refs/heads/master
2021-01-18T22:16:44.212980
2017-06-08T07:11:33
2017-06-08T07:11:33
87,041,408
0
0
null
null
null
null
UTF-8
Python
false
false
2,217
py
lab06-zoo-classifier_tf_reader.py
import tensorflow as tf tf.set_random_seed(777) filename_queue=tf.train.string_input_producer( ['data-04-zoo.csv'], shuffle=False, name='filename_queue') reader = tf.TextLineReader() key, value = reader.read(filename_queue) record_defaults=[[0.],[0.],[0.],[0.],[0.],[0.],[0.],[0.],[0.], [0.],[0.],[0.],[0.],[0.],[...
cafbf886297f061807adb3bd588c06838999c63d
fcf71d8ed3a0d05750a0caba93f2f9cdb9ec0adc
/3.python/2010_위도경도데이타수집/get_addr_from_xy.py
d00ff35c984606495fc55bd92faa8ec1cf91fde1
[]
no_license
handol/python_study
a6e6faeae2213a66b303524b57550c879c83c190
4d4cf3847c29ef363c1b8fd10bf2525d6f801ddd
refs/heads/master
2021-01-10T21:20:31.140133
2013-03-28T06:30:16
2013-03-28T06:30:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,341
py
get_addr_from_xy.py
from xml.dom import minidom import urllib.request import time def getaddr(x, y): #x=37.4 #y=127.2 url = 'http://kr.open.gugi.yahoo.com/service/rgc.php?appid=YahooDemo&latitude=37.4997677193116&longitude=127.3094189453125&output=xml' url = 'http://kr.open.gugi.yahoo.com/service/rgc.php?appid=Yahoo...
348072021717e01f48b5f786625d6e4b86f07ae4
1474b33234a35de1b3134a5f122fe51efa698cdf
/beziers/point.py
61752f0bb4fc4983012de3db87890b7a42229551
[ "MIT" ]
permissive
simoncozens/beziers.py
7a568583acf0158ca6e351abd908255a26d355f2
9e8e6b21188d96a6746d25d78c83bb81290a057c
refs/heads/master
2023-03-09T06:09:53.209225
2022-09-16T11:05:25
2022-09-16T11:05:25
152,085,018
54
14
MIT
2021-02-05T21:23:19
2018-10-08T13:30:08
Python
UTF-8
Python
false
false
4,688
py
point.py
import math class Point(object): """A representation of a point within the Beziers world. Here are some things you can do with points. You can interpret them as vectors, and add them together:: >>> a = Point(5,5) >>> b = Point(10,10) >>> a + b <15.0,15.0> You can multiply them by a scalar to...
cee6dae3b233b93ad4066552905eef0380df90ac
294b376ea4c4b76f811d1604f3822f4db74e2399
/ch06/my_optimizer_compare_native.py
e9eb453d3923360b0d746e3e3b57106c45b87520
[]
no_license
lockmachine/DeepLearningFromScratch
8f429bea5d34c4b40f0eaad4df998a4062718f53
73e6ad40d3bd6e7e810fbeaca0d1759c83e99a12
refs/heads/master
2020-04-02T02:32:41.035510
2019-02-25T21:09:25
2019-02-25T21:09:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,477
py
my_optimizer_compare_native.py
#!/usr/bin/env python3 # coding: utf-8 import sys, os sys.path.append(os.pardir) import numpy as np import matplotlib.pyplot as plt from collections import OrderedDict from common.optimizer import * from mpl_toolkits.mplot3d import Axes3D def f(x, y): return x**2/20.0 + y**2 def df(x, y): return x/10.0, 2...
94e0a5023eebc997c2ba4ba350707ec08502e71c
9a746f93f89c9a806e0968401e915acc1f5b5ace
/server.py
bda67e0942f1f4dc7f91b745f913c50dc710c724
[]
no_license
sfdjj/analyis_platform
abac379d0969ddf98cdedfbc0a2c89ee3c473730
972bd8a2989f0c8f46c1fc2b90589283982ca6ca
refs/heads/master
2020-04-05T11:38:45.383555
2018-11-09T11:05:32
2018-11-09T11:05:32
156,842,744
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
server.py
from tornado.httpclient import AsyncHTTPClient from tornado.simple_httpclient import SimpleAsyncHTTPClient def main(): # AsyncHTTPClient.configure(SimpleAsyncHTTPClient, max_clients=10000, defaults=dict(request_timeout=400)) from server_raw import start start() if __name__ == '__main__': main()
6a5b5970832ef429d1597f52719aa9b4bc58118f
aceb25bdef928c84a12b68b3722fa5305c031e87
/TS3GatherBot.py
fd4d42089a857b1e4d4ff64a64ab20820a5d2a62
[ "MIT" ]
permissive
ikinz/TS3GatherBot
562822be9fcb16bd21eccadfb33e267eb89af442
bd5f89bf73ef541c3527eeb406a876ae10126522
refs/heads/master
2016-09-06T00:54:27.418585
2015-07-19T05:30:02
2015-07-19T05:30:02
38,894,357
0
0
null
null
null
null
UTF-8
Python
false
false
13,339
py
TS3GatherBot.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created by Pierre Schönbeck This bot will make it easier to set up gathers, all from your teamspeak 3 server. The bot requires access to the Teamspeak 3 server query! """ __author__ = 'Pierre Schönbeck' __copyright__ = 'Copyright 2015, TS...
38639b88620e80d983cd2d1493e89dae253b08fb
626685c1d87be86d07be656a2fedd73c13e6ac91
/imprime_retangulo_vazado.py
eeb59a8a511894a7ef9ce76c43a57b5b39f9e311
[]
no_license
Guifgr/CourseraUsp
dbdf157514f19874cf4afbd0a25cb6efb41ff843
f52dec2a866516043b67e990c593c5f9d7773b3f
refs/heads/master
2020-07-11T12:22:10.111857
2019-10-02T19:32:03
2019-10-02T19:32:03
204,537,661
1
0
null
null
null
null
UTF-8
Python
false
false
173
py
imprime_retangulo_vazado.py
w = int(input()) h = int(input()) for i in range(h): if not i or i == h-1: print('#'*w, end ='') print() else: print('#' + ' '*(w-2) + '#')
7a01bffa5d7f0d5ecff57c97478f2cf5e9a27538
b273ffc2da533e565057af0465f416cb70b9151e
/multimodal/fashionbert/fashionbert_evaluator_main.py
9e20abd344d075eec0595d8aef61c90c414d3cdf
[]
no_license
manuelladron/ADARI_disentangling_design_intents
9a6049ce635321408e530bb29186b8fd151b49cc
670baaa6d71de4cfa38c44267aa22f0cd49e8bdb
refs/heads/main
2023-01-31T09:07:08.364329
2020-12-15T19:01:53
2020-12-15T19:01:53
301,604,423
2
1
null
null
null
null
UTF-8
Python
false
false
19,002
py
fashionbert_evaluator_main.py
import torch, torchvision import torch.nn.functional as F import transformers from transformers import BertTokenizer, BertModel from transformers.models.bert.modeling_bert import BertPreTrainingHeads from utils import construct_bert_input, EvaluationDataset, save_json from fashionbert_evaluator_parser import Evaluation...
7c60ae58b26ae63ba7c78a28b72192373cc05a86
044f32a3f923aa83b69025d0fe6b9e99fa0e1b84
/cowin-slot.py
20120b56c177c4f819c88673859cacab0fbe51ad
[]
no_license
biju-borah/Cowin-Slot
68800d2043fe71feb64000efcdf2cd7003da74c0
57c2bac13528e76f7dcc497bad76107434f1747a
refs/heads/main
2023-06-28T05:06:44.170314
2021-07-31T14:51:31
2021-07-31T14:51:31
391,383,687
0
0
null
null
null
null
UTF-8
Python
false
false
2,493
py
cowin-slot.py
import smtplib import requests import datetime import json import time from datetime import date from urllib.request import Request,urlopen today = date.today().strftime("%d-%m-%y") count = 0 pincodes = ["784164","781017","784161","787001"] date = 0 temp = str(14) + "-05-21" while True: for...
45a57fac564f23253f9d9cd5d0fd820e559c15b9
ebf423cc32e0fe3a6056019699d517acbdf4d33f
/Scheduler/auditlogging/agents/APIAuditAgent.py
d27f6de4ab2c64fe44cbef2f2197f4d5833bb4ca
[]
no_license
adityapant1286/Scheduler
55e6f77797a00443ff424efbd6d19ca8dd16dda5
1a1062570b75a7400e3fcc73687bd4982be80bb5
refs/heads/master
2023-03-24T04:00:10.926188
2021-03-02T21:46:21
2021-03-02T21:46:21
199,848,384
0
0
null
null
null
null
UTF-8
Python
false
false
2,491
py
APIAuditAgent.py
import requests from requests import Response from auditlogging.Trail import Trail from utils.Utils import is_empty from auditlogging.agents.AuditAgent import AuditAgent class APIAuditAgent(AuditAgent): """ Captures the audit trail using a REST endpoint URL (POST) Add this agent to Auditor in order to cap...
1e84b28580b97e77394be0490f3d8db3d62a2ccb
26c7eb1b92e86114c357ac005ed487a51549c493
/rt/helper.py
1909ebbe61e4e33d4526653712a8eebcf9cd2d72
[]
no_license
matthewgoulet/moviemediaportal
6a1e78a05afbd6fc511c58fa929e7c748d4a5112
f4899c96f015f636bbbecc251d7f9845f413ea12
refs/heads/master
2021-01-18T18:35:19.499969
2013-03-29T19:11:40
2013-03-29T19:11:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,212
py
helper.py
from django.contrib.auth.models import User from rt.models import Movie_Suggestion, MovieDB, ActorDB, TVDB def user_present(username): if User.objects.filter(username=username).count(): return True return False #Takes in a list of MovieDB/TVDB objects #Outputs a list of sorted titles def sort_title(movies): ti...
f2e2ebd5b848cf3a01b7304e5e194beb3eec1c10
39e8178b8e1619eca1f5d6978cf520d66d12a06c
/__init__.py
575704d80ebb225b8630469f97e9bfede3a41c52
[]
no_license
SimonAnnetts/TileMapScaleLevels
dc13ea60e7bde7db8dba35c6710d46f5f2c8792c
0a39c5674744c937cc9d9b1ae034a76dd85f52fa
refs/heads/master
2020-04-27T09:26:53.307476
2018-06-22T11:40:40
2018-06-22T11:40:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,427
py
__init__.py
# -*- coding: utf-8 -*- """ /*************************************************************************** TileMapScalePlugin A QGIS plugin Let you add tiled datasets (GDAL WMS) and shows them in the correct scale. ------------------- begin ...
0deec9058c6f7b77ba4fa3bfc0269c8596ce9612
6a03390da6c55378ac83ab8cdc4ab91ce3db1aab
/170.py
292101889f75d7d7f6bc15d0dc4453cae3832f15
[]
no_license
Ear19rey/python-begginer
c7ab10089ac53dd1aa3f297b4bec52234faf16fd
e88eb390e744a1fb4890d4ddd31b8151b623b320
refs/heads/master
2023-07-03T01:03:28.386829
2021-08-06T18:29:34
2021-08-06T18:29:34
390,299,213
0
0
null
null
null
null
UTF-8
Python
false
false
98
py
170.py
''' quarter = 0.25 dime = 0.10 nickel = 0.05 penny = 0.01 ''' #def poschg(dollar_amount,number):
eb9135c6bcf89a62534cfc8480e5d44a089fe5a8
48e609dbd6602f15b7bc1b439d566bf9878c103f
/featureExtractors.py
e5fbaa26e1e4587d29170892355b61e26dea6cf0
[]
no_license
timothydereuse/musical-pattern-clustering
050c3b32323b11cfb2818f096c1651a6b384513a
202849fd558ce8361cc2982d5e686e4821211532
refs/heads/master
2020-03-14T23:55:39.730880
2019-11-02T10:19:27
2019-11-02T10:19:27
131,855,831
3
0
null
null
null
null
UTF-8
Python
false
false
16,475
py
featureExtractors.py
# -*- coding: utf-8 -*- """ Created on Wed Feb 7 17:42:18 2018 @author: Tim """ import music21 as m21 import music21.features.jSymbolic as jsym import scipy.stats from collections import Counter import numpy as np import matplotlib.pyplot as plt from timeit import default_timer as timer # round all duration values t...
918653cdeea8d91921f8b96779fcd3ebce491948
1c7ab90d8e63f2bc8ae70e602c0e5afb1b44ee65
/1/problem1.py
c8f6b602c3e0a14b474f803a34886cba161e7a35
[]
no_license
diogobaeder/project-euler
fbdc751a33fc0e1c35903020f3f9e4f4b9b99bbc
4d0ccac690d595e2a593f89558dcc6fa24cddb99
refs/heads/master
2020-06-08T12:16:43.156018
2012-01-07T14:03:54
2012-01-07T14:03:54
2,502,051
0
0
null
null
null
null
UTF-8
Python
false
false
434
py
problem1.py
#!/usr/bin/env python class Problem1(object): def sum_below(self, threshold): current_number = 1 total = 0 while current_number < threshold: if (current_number % 3 == 0) or (current_number % 5 == 0): total += current_number current_number += 1 ...
2acfd0bbad68bb9d55aeb39b180f4326a225f6d5
9daaf110bdfb415e4d8b85f5777b78bb400b7407
/Lab1.py
ac0f422eff0ee6285c733f698203636b331244bd
[]
no_license
devinpowers/CSE231
aaa0e772f83459271916b99eb9de4d43d785f3f8
913f094fc719d8b0ffd111c1b72fe470c2261841
refs/heads/master
2020-07-15T00:09:26.685440
2020-02-21T00:21:56
2020-02-21T00:21:56
205,433,671
0
0
null
null
null
null
UTF-8
Python
false
false
652
py
Lab1.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Aug 31 14:35:49 2019 @author: devinpowers """ # Lab 1 in CSE 231 #Quadratic Formula # Find the roots in the Quadratic Formula import math a = float(input("Enter the coeddicient a: ")) b = float(input("Enter the coeddicient b: ")) c = float(input(...
0276181055f2c70562c1f557a16d00ba7107d003
94f5bae62a2ed5bf5bd69995d9604c191b6333a0
/test.py
cf15dc2630f586fcf88d3000384592bb31f61737
[]
no_license
sethc23/BD_Scripts
5eef664af935fb38ad28581faaedb51075338553
989d62b77ca70d239ae3cf99149c5215f6e6119e
refs/heads/master
2020-04-12T17:36:17.600971
2017-02-22T09:46:27
2017-02-22T09:46:27
30,630,547
2
0
null
null
null
null
UTF-8
Python
false
false
648
py
test.py
import pyximport pyximport.install(build_in_temp=False,inplace=True) import Cython.Compiler.Options Cython.Compiler.Options.annotate = True import numpy as np from test1 import c_test,c_test_result_workaround a = np.ascontiguousarray(np.array([ [1,2,3],[1,2,3],[1,2,3] ], dtype=np.long), dtype=np.long) print '\nStar...
d5b07aa9b36036c2b6d91e32ecedf2e78b76e1db
8fa8701de63b33e327b915cb01c73ca533de58f3
/teams.py
4c54f4b775a7185341f902f8f8be6674c4d0a12a
[]
no_license
d3fin3d/mercycogs
fa51a07216cedee39e55446570fb850f07069f31
e2f1e9edf698d86000016d8dcf680ad49cf958ca
refs/heads/master
2021-01-15T15:31:05.366774
2016-08-31T22:39:20
2016-08-31T22:39:20
64,248,940
0
1
null
2016-08-31T22:39:21
2016-07-26T19:35:19
Python
UTF-8
Python
false
false
636
py
teams.py
import random import discord from discord.ext import commands class teams: """Randomly generates two teams from a voice channel.""" def __init__(self, bot): self.bot = bot @commands.command(pass_context=True) async def teamgen(self, ctx): #just a random comment yo """This generates the teams""" players =...
2160ccefbe7c2c36e83ee9a6cce21bc31aae3746
3024f66dae49d6d5a701173cf849d5382f98e4dc
/acs api.py
7591305cc80b62df7c22faeda8ac57273157bb24
[]
no_license
RobertSchuldt/American-Communities-Survey
9adf08093a58b053fc33a05030a02cb1dbef2310
2ba10c22821866376f744d0956925f403bcaaca6
refs/heads/master
2021-07-14T02:30:31.104184
2020-07-08T23:37:44
2020-07-08T23:37:44
180,864,847
0
0
null
null
null
null
UTF-8
Python
false
false
2,237
py
acs api.py
# -*- coding: utf-8 -*- """ Created on Thu Apr 11 17:45:54 2019 @author: Robert Schuldt @email: rschuldt@uams.edu """ import datetime import requests import pandas as pd import json import os ts = datetime.datetime.now().isoformat() #Creating a list of the actual variable names that we are i...
5cb767e65ef2828430d910eb189f4be64c64631e
d37dd4bd063e2223c4327752bb73dc91a2051752
/book2.py
09b149ec47f35551558456336c6d177b208e70f3
[]
no_license
embercult/lib-management
2a14e9e6500e48a26dc440d282bd5b536ad35e35
3d1b9d6cb026c60779bea06db1119db7d3e68442
refs/heads/master
2020-03-26T04:45:47.007809
2018-08-13T02:52:06
2018-08-13T02:52:06
144,521,574
0
0
null
null
null
null
UTF-8
Python
false
false
4,560
py
book2.py
##Imports import re ##Vars Books = dict() Details = ['Serial no','Catagory','Shelf','Author name','Publisher name','Publishing year','Copies','Lent','Lent to','Lent on','Lent till'] DetailsDic = {'serial no' : 0,'catagory' : 1,'shelf' : 2,'author name': 3 ,'publisher name': 4 ,'publishing year': 5 ,'copies': 6 ,'lent...
78d3292432a20b097ff3a540bcb1ef8eaf1d2566
2dee840780a47f00c49cbc5b9ce28d1d666984d6
/13b.py
2f30201068a528d134a1e5271b2711449e31e0ad
[]
no_license
jaw9c/adventocode2020
611c59789c465f398a3cb2e1f994d61217183cc6
b25dbfcc64ef7dcba0f5cc17963ef7a64b6c3010
refs/heads/master
2023-02-04T20:41:17.344783
2020-12-23T13:18:26
2020-12-23T13:18:26
318,022,035
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
13b.py
#!/usr/bin/python3 import sys import itertools import string import math import functools input = sys.argv[1] def clean(line): return int(line) if line != "x" else None buses = list(map(clean, input.split("\n")[1].split(","))) curr = 0 jump = 1 for idx, bus in enumerate(buses): if bus is None: cont...
adc82f76819b57ee89c3825322f8889a708a4b8d
d769c2f971b7c03bd1365c1c9fbb1fc780d59dfb
/bin/move_files.py
bbe22ebc20ad46a90aa911ca3276437c16ad7d7f
[]
no_license
thomas-robinson/gcpre
22bf793ec64e18fb2d258d738803f5e870df1c95
0a01232420321c75a4ff6404495ec65ed5b8e9af
refs/heads/master
2020-06-21T11:13:58.763787
2019-07-17T17:22:44
2019-07-17T17:22:44
197,432,778
0
0
null
null
null
null
UTF-8
Python
false
false
5,219
py
move_files.py
#!/bin/python import os import sys import re import argparse hours = re.compile('\s*hours\s*=\s*\d*.*') days = re.compile('\s*days\s*=\s*\d*.*') months = re.compile('\s*months\s*=\s*\d*.*') nh = 0 nd = 0 nm = 0 parser = argparse.ArgumentParser(description='Combines restart files and moves them to the archive folder...
eda2bc8cde1f1bf456ea56858cb272c137bb55d0
f7497238d351ba2c08b5877d4e4b272ed9abaf8a
/DeepLearning_Lesson2_SourceCode/DeepLearning_Lesson2_SourceCode/TensorBoardTest.py
205efcec450f86a5597e2465973f5dd848ad52f7
[]
no_license
abiraja2004/APL_PythonDeepLearning
f10c5d4ded07841b29feb78e7c261bff58b5ae7a
ee65705e71c2afdab4c071de0a690a6002df30e5
refs/heads/master
2020-03-08T09:41:22.233033
2018-04-02T06:06:12
2018-04-02T06:06:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
565
py
TensorBoardTest.py
import numpy as np import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import tensorflow as tf import pandas as pd import xlrd DATA_FILE = 'data/USA_Housing.xls' # Step 1: read in data from the .xls file book = xlrd.open_workbook(DATA_FILE, encoding_override="utf-8") sheet = book.sheet_b...
9c29552357ec4bc18697982dbde48c4b4667f5e3
6b6d7aebc65e963c1747e092ed120c844902352f
/PythonTool/highcharts/iplist.py
1c1007b9f7c6b1a42c74780e8c2cc81000ac33fc
[]
no_license
QiaoHaiZhong/Flask
601f8625c53978ee45f48d4253047c6e7ce76a6c
9122655b5c916b5b9e9a814c5febc286f381ecfc
refs/heads/master
2020-05-18T08:29:22.468972
2016-01-25T06:11:31
2016-01-25T06:11:31
9,513,588
0
0
null
null
null
null
UTF-8
Python
false
false
1,341
py
iplist.py
#coding=utf-8 import urllib,json,time f=open('static/ip.list') iplist=f.readlines() areadic={} for i in range(0,len(iplist)): ip=iplist[i].strip('\n') url='http://ip.taobao.com/service/getIpInfo.php?ip='+ ip response=urllib.urlopen(url).read() jsondata=json.loads(response) print jsondat...
fbd1ab89ca024b5ab6a121e8db257569b0e2aad6
b30d43c4533e64fcb2786b6b1e4a5edca4a8614b
/baxter_gbi_core/src/gbi_states/ExpiringState.py
28440e9d4f18ba12b0506c5332eb14437765e189
[]
no_license
federicotomat/gesture_based_interface
4d8e425b6f2b7380ae35d4ac96afb6f47d3fca2b
1fbf1eadd400628249c0e4deb26f3bb749cb99ec
refs/heads/master
2020-08-06T01:31:02.639648
2019-05-07T09:31:34
2019-05-07T09:31:34
212,783,338
2
0
null
2019-10-04T09:49:51
2019-10-04T09:49:48
null
UTF-8
Python
false
false
1,896
py
ExpiringState.py
# -*- coding: latin-1 -*- ## @package ExpiringState # The package defines the structure of the expiring state from threading import Timer from BlockingState import BlockingState ## ExpiringState # inherited from BlockingState class ExpiringState(BlockingState): ## constructor # @param outcomes possible outcom...
a8b57431e4a593d6dfd4fed06b09f80098e63e09
5eca7f0fb7905917b6606e9a005ad6815a59bbae
/isPrime.py
eb2cb72ab9459030a1cb372b746ec283f6ca351c
[]
no_license
liyuank/prime-number
87e177a432cadc77f6e99d8fec818c92be4fc5d2
744b55a920a01e71286a40abaed6500466f93e9b
refs/heads/master
2021-01-24T10:20:08.047978
2017-11-18T07:43:28
2017-11-18T07:43:28
70,021,310
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
isPrime.py
def is_prime(n): if n % 2 == 0: return (n == 2) if n < 2: return False #if n < 9: return True if n % 3 == 0: return ( n == 3) r = int(n**0.5) f = 5 while f <= r: print ('\t',f) if n%f == 0: return False if n%(f+2) == 0: return False f +=6 return True """test test """ print(is_p...
abbac109c49a03cef7634734d5affbf1d59f2cf3
18c61d06fb82c172c94e85579d1964ba1f4b5a35
/ex008.py
54200af2baba843b107b0cb3e75ee8a558ffd951
[ "MIT" ]
permissive
isabellahenriques/Python_Estudos
6e66a086508b5373d6825f3fe3c843a569911e7e
a6e8b829d01a7c9fa34223e096f6389c81f2085c
refs/heads/master
2022-12-09T18:39:35.459741
2020-09-08T23:36:32
2020-09-08T23:36:32
286,815,211
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
ex008.py
# Escreva um programa que leia um valor em metros e o exiba convertido em centímetros e milímetros. medida = float(input("Digite uma distância em metros: ")) km = medida / 1000 hm = medida /100 dam = medida /10 m = medida dm = medida * 10 cm = medida * 100 mm = medida * 1000 #print("A medida de {}m corresponte a {}cm ...
02846eb51c401254f84c1db063e1b760737443b7
29943afd1c8a05ce01477ab6d74dbdd181832a7d
/src/legacy/resources/PCA.py
e9c5315a1782ed6d0238bcbaa0e3b38f015c4c20
[ "MIT" ]
permissive
NMBU-Data-Science/multi-hoggorm
08a8daf91f5a86184918496fd0730464d2b2dffe
a1de0044073c84845031b79a6a183748a0178ce8
refs/heads/main
2023-03-27T19:22:28.471100
2021-03-25T13:38:13
2021-03-25T13:38:13
343,902,604
0
1
null
null
null
null
UTF-8
Python
false
false
5,048
py
PCA.py
# -*- coding: utf-8 -*- """ @author: kristl """ """ # EXAMPLES for PCA import pandas as pd import matplotlib.pyplot as plt from PCA import pca_, nanpca_ X = np.array([[1, 2, 3, 4],[2, 1, 3, 3], [3, 5, 5, 1]], dtype='float64') scores, loadings = pca_(X) NIR = pd.read_csv('./data/gasoline_NIR.txt', header=None, sep='...
0eafeeeb2db4e54f2db0fc1082e31af3465d3ce3
37912c518732349a55ccdb78e84ccf3f4b10330f
/gene_processor_service.py
92610b72ae7882e7642b0fbadd9a2ba465f366ad
[]
no_license
K3rn1n4tor/gene_server
2e64540594afb7c7d020f6d6826f2cefe3f7196a
e724ac84a1ea95fbcd668e4505f9074e5035e33b
refs/heads/master
2021-01-10T16:41:12.018373
2015-12-17T22:46:46
2015-12-17T22:46:46
48,202,287
0
0
null
null
null
null
UTF-8
Python
false
false
694
py
gene_processor_service.py
__author__ = 'Michael Kern' def print_test(): return 'This is a test!' # def print_debug(message): # # import plugin module # import caleydo_server.plugin # # impls = [] # plugins = caleydo_server.plugin.list('gene_type') # # for p in plugins: # impl = p.load().factory() # impls.append(impl(messag...
c97a1e5b08cb07cca7b0140a95b9da038c4ef042
5080401fc5a30df1fb646fd3d20eabe1311d4ef5
/atividade_06/att 06.py
a089fe8055b4ec3d54bf88927fce88948ba8ea07
[]
no_license
suellenrochaa/POO-Atividades
0cc6b6a022e4072082765b59ecec9168b9403625
b52c8f88be5e828aa13409dc139eafe0eee23e35
refs/heads/main
2023-03-15T01:45:17.741845
2021-03-05T12:01:49
2021-03-05T12:01:49
329,416,283
0
0
null
null
null
null
UTF-8
Python
false
false
458
py
att 06.py
import csv import matplotlib.pyplot as plt with open("tabela.csv") as arquivo_csv: ler = csv.reader(arquivo_csv, delimiter=",") num = [] nome = [] for colunas in ler: num.append(int(colunas[0])) nome.append(colunas[1]) plt.plot(num, nome) plt.show() fig, ...
75c1ff5bbddd4d2fd4fbb06ec944ca3c25f86712
6b003a8f98f23a8d0ff8f8bd00e30f81ac2ffce1
/setup.py
68b762e57500f576e57681590c26a3e8eb596757
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-2-Clause" ]
permissive
lionheart/django-pyodbc
804f91436b82113ab7f78fb8ac5bee8e30af1480
22daac2355f2e2c35450b056dcf8b0e8ba6d6190
refs/heads/master
2023-02-11T19:16:00.269448
2023-01-29T16:42:06
2023-01-29T16:42:06
9,633,067
174
93
Apache-2.0
2023-01-29T16:42:07
2013-04-23T20:52:21
Python
UTF-8
Python
false
false
2,803
py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2013-2017 Lionheart Software 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 ...
d340216db8ac40110e0711113f43f3f8a60abd13
a9439eb673ee06bccdfd0d757034fcbff72c0f22
/02/pandas_7.py
0a92cdf6ad5502e194f0000970fcbd2e99cbb701
[]
no_license
ynov-ml/ML-2019
2685e88aabee9da99c44ddc270316888b88539b8
f1c877f4140d1bbdd9b27a42fdff275c3b137426
refs/heads/master
2020-04-24T21:54:45.927309
2019-05-07T06:18:48
2019-05-07T06:18:48
172,293,984
4
20
null
2019-04-18T09:57:57
2019-02-24T04:06:10
TeX
UTF-8
Python
false
false
287
py
pandas_7.py
In [23]: df[df.D > 0] Out[23]: A B C D E 2016-12-11 -1.303610 -1.235823 0.621914 0.379340 -0.326934 2016-12-25 -0.124625 0.337268 -0.406295 0.587049 -0.904906 2017-01-01 -0.283182 -0.866213 0.051509 0.693037 -0.661055 In [24]:
473b4cbe38ed5d844167e1366c2383a6abe1b3ee
d56e2aad0f70561a280ac7ac6c09c6f081ad0f74
/06_Exercise.py
9cba8fba90370d3a7cc6d9448c0fbfe4987983ba
[]
no_license
Emil-Skovbo/sem4Python
8ab3f058c02375ed9de64de7537a22804fb89bdb
fe234d70ca68162fefe28fc1154bfd7d288e405d
refs/heads/master
2020-12-23T08:52:58.400595
2020-04-27T08:50:07
2020-04-27T08:50:07
237,102,369
0
0
null
null
null
null
UTF-8
Python
false
false
3,060
py
06_Exercise.py
from concurrent.futures import ThreadPoolExecutor import requests import threading import random class NotFoundException(Exception): pass class DataSheet(): def __init__(self, url_list): self.url_list = url_list def download(self, url,): r = requests.get(url, allow_redirects=True)...
c02e76aaf197d1f97c12e189838377516d8c2182
d555074248d9e862eef77730b212f25f85dc1e1d
/Lesson 7 Review.py
7195079bb44c3f17513bdc7f70a4ee3ed70cf667
[]
no_license
Vinesh2004/Python-ICS3U
467bf845d2e3e1c8a8267df5b3de0942a4279bca
9bcad4154a0487b0a03be0330e9d975a280d94a7
refs/heads/main
2023-03-03T20:56:22.768456
2021-02-11T21:56:04
2021-02-11T21:56:04
338,144,843
0
0
null
null
null
null
UTF-8
Python
false
false
3,431
py
Lesson 7 Review.py
#----------------------------------------------------------------------------- # Name: Review of Lessons (main.py) # Purpose: To review the concepts previously learned # # Author: Vinesh Vivekanand # Created: 04-Jan-2020 # Updated: 04-Jan-2020 #-------------------------------------------------...
84b2c3949fa9222b207ddbc891389ff7b5227346
8ab58053ce36d996eb8a51e0406ee99e351b99b3
/housingPricePrediction/Logger.py
84cac36c611e3bd7dd829ce1226069f334125774
[ "MIT" ]
permissive
EricPOM/Source
e6f20aa3204aca179eb616facfbfe9d3c9360e0d
d32fad056a851abbef51a6c74f3924bb179e00d8
refs/heads/master
2020-04-04T12:53:59.401986
2018-11-03T12:14:12
2018-11-03T12:14:12
155,941,422
0
0
null
null
null
null
UTF-8
Python
false
false
685
py
Logger.py
import logging from logging.handlers import TimedRotatingFileHandler class Logger(): def __init__(self): self.logger = logging.getLogger('app') handler = TimedRotatingFileHandler("log/app.log", when="midnight", interval=1) handler.suffix ="%d_%m_%Y" handler.setFormatter(logging.Formatter('%(asctime)s - %(nam...
73517f7014781acde259be302761d6f761a222c1
792e4a36c229895b63fcfb6ebfba27b8ede57e30
/sitemap/views.py
f81bc0bdf550e2c425696ea581db7c4474a6975b
[]
no_license
wolfsyntax/ShipEastCourier
95cab4c29c840e3f7ccbee22fabed79bbee93d9b
9891b54d92877f0a23e63af6e9d181e340611028
refs/heads/master
2022-05-28T09:37:41.008086
2020-02-23T13:49:52
2020-02-23T13:49:52
243,005,134
0
0
null
2022-04-22T23:06:11
2020-02-25T13:22:43
JavaScript
UTF-8
Python
false
false
2,200
py
views.py
from django.shortcuts import render, HttpResponseRedirect from django.views.generic import TemplateView, CreateView, UpdateView, ListView, DeleteView # Create your views here. from django.core.mail import send_mail from account.forms import TrackingForm from account.models import TrackingDetails class HomeView(Templa...
69e852c30f538d252340e1ccc2dcfb5731453ec8
67e33f73ab6c698e3eb4a8a917dd6cc48a37c4b5
/zworker/zbee.py
e92801fe8ce35ebcaac04c88d3373e8dcf8cbb85
[ "Apache-2.0" ]
permissive
nosoyyo/zbee
ebc24681fb89d7fb364ad667242f579c2acc7413
dad59129f611d7d67ad7ae8563d1aa46ad82e329
refs/heads/master
2020-04-07T20:59:50.362710
2018-11-22T17:04:11
2018-11-22T17:04:11
158,710,412
0
0
null
null
null
null
UTF-8
Python
false
false
1,972
py
zbee.py
import os import zmq import redis from hbee import HealthBee class ZBeeError(Exception): pass class ZBee(): ''' bytes in bytes out. ''' hbee = HealthBee('zbee') cpool = redis.ConnectionPool(host='localhost', port=6379, decode_responses=True, db=5) r = ...
a7c4b7cc989312f80ca0647e8249f374450d8999
06f0cf478144e7070c6cc717f9f7a6ac67189d8b
/contentcuration/contentcuration/migrations/0017_merge.py
b6cd6cb17f2bcedbb2bdadcb47a28a7cfb51a779
[ "MIT" ]
permissive
lyw07/studio
2e872f85f12527e72a59a126cd7a5fa5ffffbe92
b9ed691d19fdf7d136f311ef87b778a3d94153ac
refs/heads/develop
2021-06-04T19:48:20.462168
2020-02-21T23:38:24
2020-02-21T23:38:24
92,860,554
1
0
MIT
2019-05-16T17:30:54
2017-05-30T17:50:46
Python
UTF-8
Python
false
false
353
py
0017_merge.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-09-19 22:31 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('contentcuration', '0016_auto_20160915_1206'), ('contentcuration', '0015_auto_20160916_1349'),...
399bc271279a1d99d14bd6101404352ecb9c04bc
61b85ca67bde2326f9f978ea24c02c4a111c2ff8
/Exceptions/GroupNameCannotBeNull.py
9d0ac3ea936dd23fb2e0d403285c3b52516b4f9d
[]
no_license
saurabh-github-1995/MYSPLITS
70489b4907b42fff142cb95f37a3385a4f46180c
129fe08d75bc98cbfccf3cab88f3791444df9c83
refs/heads/master
2023-01-11T06:51:03.655815
2020-03-13T16:20:50
2020-03-13T16:20:50
240,938,704
0
0
null
2023-01-07T15:02:35
2020-02-16T17:58:34
Python
UTF-8
Python
false
false
60
py
GroupNameCannotBeNull.py
class GroupNameCannotBeNull(Exception): STATUS_CODE = -8
986c366aa8408ea176fc7e37ae6688d4381139d2
e3299fcdbf256ac7c7b9771cf8621de58d9a8299
/multiAgents.py
10bd709e00726e52131f8141f1195bba9bd99f1a
[]
no_license
chissycode/Pacman
aabab372bba4de1d637de639d50f5a39ca26e4a9
d3ca26e2dda736695dd3bf23b02ced0af7af8fb1
refs/heads/master
2020-11-24T10:56:16.899463
2019-12-16T05:00:38
2019-12-16T05:00:38
228,116,774
0
0
null
null
null
null
UTF-8
Python
false
false
2,909
py
multiAgents.py
# multiAgents.py # -------------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.e...
ee7b92efd03455522502858aba45820ed94ed36e
975b6e70b0d321d129523cd0d43380fab6570d24
/Project_Checkpoint_2_submission/src/project_knn.py
30a851a1c2addcbfd3ddef302a2170f55d7b24eb
[]
no_license
macbeez/CAP-5610_Machine-Learning
6f37ac3879c9f2e1e78ddde58d8b52d8c024f0c1
826683533c1ffa2fe96bf01fedc90ca36b13b62d
refs/heads/master
2023-01-13T01:02:53.450680
2020-11-21T15:45:40
2020-11-21T15:45:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,186
py
project_knn.py
import pandas as pd import numpy as np from sklearn.neighbors import KNeighborsClassifier from sklearn.model_selection import KFold, cross_val_score from sklearn import metrics import matplotlib.pyplot as plt from tabulate import tabulate train_df = pd.read_csv("include/train.csv") test_df = pd.read_csv("include/test....
38de2f1b3b08f7852c79c14b02e55a378d8f33ca
14f40e51d1f2b0671650ee6c350756b42262c6f2
/platformio/debug/process/gdb.py
29a8ba3a230e522d5ef7a0bd9576551febbd9d49
[ "Apache-2.0" ]
permissive
platformio/platformio-core
7cfb8bb60661122f883ca175b6c48c9299fc3262
897844ebc172bd8a2e313bdb9011fc7d986863c2
refs/heads/develop
2023-08-22T01:48:10.215800
2023-08-18T11:39:03
2023-08-18T11:39:03
19,606,299
6,058
707
Apache-2.0
2023-09-07T05:23:55
2014-05-09T09:38:42
Python
UTF-8
Python
false
false
7,024
py
gdb.py
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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...
36908017b137e66df4746955febbdd8a55cec3c2
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_backers.py
41db7539bde5ca3929d87bfe120ca47db41f64a7
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
_backers.py
from xai.brain.wordbase.nouns._backer import _BACKER #calss header class _BACKERS(_BACKER, ): def __init__(self,): _BACKER.__init__(self) self.name = "BACKERS" self.specie = 'nouns' self.basic = "backer" self.jsondata = {}
f4402d436f6bb5b543fb9d7b5ddeb647ccb37774
c67bc2e249b2dc9c22d6be4d3f17de59292c9c9b
/HT_study_1.py
6307ac7aa354a4e4eb9040ed5d742097ecc87ae1
[]
no_license
sonirishi/CaseStudy
c61edb88666d2ce4a95a999400b94fca9c1941be
b310a5a3c3629deee75a1b05d49d64870be64f0c
refs/heads/master
2021-07-04T09:59:18.417209
2017-09-26T06:56:33
2017-09-26T06:56:33
104,767,188
0
0
null
null
null
null
UTF-8
Python
false
false
10,677
py
HT_study_1.py
import pandas as pd from gensim.models import Word2Vec import numpy as np from nltk.stem import WordNetLemmatizer from sklearn.cross_validation import train_test_split from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier from sklearn.grid_search import GridSearchCV from sklearn.prepr...
b3a8dfe57739060bcea8b5b00d39bcbaefb3bc8d
692e76fa3dd4524a26f2256fb534e2855c41af3f
/opennem/schema/time.py
34ec5d82249ddb90ff454fce6869108e3376fb57
[ "MIT" ]
permissive
gauravjain2/opennem
70c0ead8dee884728e5672d955bde2e291f8a3eb
e66431fc3c79e87c74b8c2a07d22e0e586d70f90
refs/heads/master
2023-05-10T05:11:48.643439
2021-06-06T15:50:46
2021-06-06T15:50:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,463
py
time.py
from datetime import timedelta from typing import Optional from pydantic import Field from opennem.utils.time import human_to_timedelta from .core import BaseConfig JOIN_QUERY = """ + ((extract(minute FROM fs.{field} AT TIME ZONE '{timezone}')::int / {interval})::integer * interval '{interval} minute')::int...
398e7d6db85c9dcb2f82bd2228a6f04b7af5468d
25d1a97cad09f2f16708778e9abd01bb27e31e3d
/DEFINES
69eabf669ea6974ec1394986f92852016e6711b4
[]
no_license
bibhas/tracer
5af520581492c2ed197706c4d89172e24d4a2f8e
0d37d78916028e832308d8faa30419109feaf96d
refs/heads/master
2021-06-20T09:08:51.889566
2017-07-10T10:53:53
2017-07-10T10:53:53
96,389,719
2
0
null
null
null
null
UTF-8
Python
false
false
499
DEFINES
#!/usr/bin/python # 2017 Bibhas Acharya <mail@bibhas.com> import subprocess """ This is the place to customize the source. Changes will propagate to build scripts, installer scripts, built packages as well as the final binary. """ variables = { # Build setting 'macos_sdk_version' : ".".join(subprocess.Popen(["...
ff0fedfc21f1372ed0fe01a744a8eb76e6000093
898df4652eea2510ec8e5d1cceaad9db00bdc5c2
/models/NeuralNetwork.py
188a6faf1ddbead1d5cc01a6fb25de43e6ffa155
[]
no_license
Ignotus/dsg-final
54172e845286bf861363ab1c7ad29529f6cbfe79
368ebd337e0afdc1759acb189b639327ee95e47f
refs/heads/master
2021-04-30T23:01:09.429767
2016-09-11T11:59:41
2016-09-11T11:59:41
67,831,546
3
0
null
null
null
null
UTF-8
Python
false
false
3,259
py
NeuralNetwork.py
from keras.models import Sequential from keras.layers import Dense, Activation, Dropout from keras.optimizers import SGD, Adam from keras.models import load_model from make_prediction_file import make_prediction_file import numpy as np import scipy as sp import time import os def logloss(act, pred, epsilon=1e-15): ...