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
bbaf7deb1d92597ab065b6e8ef2a7588246b7d9c
49beb3626e9bf2795be33dcc7079a4403efa9103
/PopulationSampleFunction/SystematicSampling.py
1036dedee1b74145f5d30e3aab1731825855822b
[]
no_license
kn285-zz/StatisticsCalculator
e723794d27acaaa9fb49a09b664f435da1d57292
d757402efb133c476b9945e0a3a0fe2420c303b5
refs/heads/master
2022-04-16T01:25:08.210863
2020-03-14T19:03:28
2020-03-14T19:03:28
241,250,861
0
1
null
null
null
null
UTF-8
Python
false
false
448
py
SystematicSampling.py
from RandomGenerator.RandomWithSeed import RandomWithSeed class SystematicSampling(): @staticmethod def systematicSampling(lst): size = len(lst) num = round((RandomWithSeed.randomInt(size, 2, size))/4) if num == 1: num = 3 lst2 = [] temp = num - 1 ...
9796b0140549322050f2fe8dd32e30572a31fcef
5f2117406b194e35a899efa2112d2df7f4d5e79c
/CH01/memo.py
9acb23516fbf0379552fed0109ae5fbee5bf89fe
[]
no_license
HeeamShin/PythonStudy
ef3a08fb2508ce7b14a38530d1c73d9fd257002c
f16df0c99af67696a01baed97b325c6295107b2c
refs/heads/master
2021-05-19T09:46:02.441830
2020-11-11T02:35:01
2020-11-11T02:35:01
251,636,397
0
1
null
2020-11-11T02:35:02
2020-03-31T14:56:07
Python
UTF-8
Python
false
false
69
py
memo.py
print(52, 273, "Hello") print() import keyword print(keyword.kwlist)
a830b416ca740ea65aef01c1c19d4e6ffda9b0d8
8ef661b431f750aa2facb564e5024261683da827
/utils/common_utils.py
ef9233b0e2bb5a3aadcd884700791db7f6186dab
[]
no_license
ariel415el/SimplePytorch-ALAE
486c4dc585e6a6b0c31e0b9755d3680d37c67645
9b4374fe2967c947565aa71d6e92ef027cb37fd7
refs/heads/master
2023-01-29T19:03:01.340773
2020-12-10T08:24:00
2020-12-10T08:24:00
312,522,450
9
2
null
null
null
null
UTF-8
Python
false
false
784
py
common_utils.py
from pathlib import Path import os def find_latest_checkpoint(ckpt_dir): """ Finds the latest created .pt file in the directory """ if not os.path.exists(ckpt_dir): return "None" oldest_to_newest_paths = sorted(Path(ckpt_dir).iterdir(), key=os.path.getmtime)[::-1] ckpts = [x._str for x...
ede6f6d2672938b09ae46cac4477fc1cf0b21753
1a46c62b983e4a2b68ebb080347ff5cd6c46f1f6
/backend/backend/models.py
d76b81afcbb7496f8267a1c9fcfc0de1410fb005
[]
no_license
djpenka/hackohio-2020
de70315f8118026fbcdbd2fc306646b718ae4755
e4c2ec9e8366d7ed8a089560169ee418c12edadb
refs/heads/main
2023-06-21T16:50:12.775550
2020-11-15T20:34:01
2020-11-15T20:34:01
387,292,803
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
models.py
from django.db import models class CrimeData(models.Model): state = models.TextField() county = models.TextField() zip_code = models.IntegerField() score = models.IntegerField() class DisasterData(models.Model): state_code = models.TextField() incident_type = models.TextField() disaster_na...
460b90c39a943a12dc2a4bfbc35afddea599ea14
650b4bc55a32aee0395897f67c7d8cc60912be8a
/library_project/library/views.py
8afc88372c97c16924bcd4ce80cb2e7a15c041ff
[]
no_license
oeananas/Personal_library
ce306a0df99373e593d91b0324b6fcbc2d607c09
b7cfd97b2ec63ddc7a304da5d1cd96a9a66ae9ff
refs/heads/master
2022-05-03T16:20:38.142916
2019-09-24T18:33:24
2019-09-24T18:33:24
209,969,616
0
0
null
2022-04-22T22:22:10
2019-09-21T10:56:47
Python
UTF-8
Python
false
false
10,378
py
views.py
from django.db.models import F from django.shortcuts import redirect from django.views.generic import TemplateView from django.http import QueryDict from django.conf import settings from rest_framework import viewsets, status from rest_framework.renderers import TemplateHTMLRenderer from rest_framework.response import ...
fe101931b1fd38f54e0f83a6be67c214554a1b22
3fe0ddcca845530620512ae4bcef65cd4950d509
/src/ks_test_by_hand.py
f79db93275d7bbd9ab0eca4f6903c0b7f6bbe736
[]
no_license
alexeysp11/statistics
69ec5d0af8b09b2ff8148248f37b120fda8380f6
eb26ad2edcb0831bee4c5f40aaed043c4029820d
refs/heads/master
2023-04-30T21:03:22.370217
2023-04-20T06:19:13
2023-04-20T06:19:13
276,361,456
0
0
null
null
null
null
UTF-8
Python
false
false
2,139
py
ks_test_by_hand.py
# Kolmogorov-Smirnov Test by hand # LIBRARIES import pandas as pd import numpy as np from tabulate import tabulate from matplotlib import pyplot ##from statsmodels.distributions.empirical_distribution import ECDF # READ DATA df = pd.read_excel(r'../data/nonparametric.xlsx', sheet_name = 'Лист3') p...
90d30cd292945139ac2bd77a48f73903bdafa262
059d3d8180d1b904def3eb5913be5abf1b7b5c44
/web/core/carburetypes.py
60057b47cc0b4977bea8704eb94840e67a91ddc3
[ "MIT" ]
permissive
MTES-MCT/carbure
7cc19a4a89baf4252788242c0e0f8f0d29dd87c4
cdb2d09101b36d82d2e70a4211e1f1fbfb59c4c5
refs/heads/master
2023-08-08T07:38:24.858346
2023-07-26T16:28:05
2023-07-26T16:28:05
234,091,990
7
4
MIT
2023-03-07T18:04:01
2020-01-15T13:56:24
Python
UTF-8
Python
false
false
3,696
py
carburetypes.py
class Carbure: SUCCESS = "success" ERROR = "error" class CarbureError: INVALID_REGISTRATION_FORM = "Invalid registration form" INVALID_LOGIN_CREDENTIALS = "Invalid login or password" ACCOUNT_NOT_ACTIVATED = "Account not activated" OTP_EXPIRED_CODE = "OTP Code Expired" OTP_INVALID_CODE = "O...
1081bb8c2c77630a27fd25988e818648e4f08685
942ee5e8d54e8ebe9c5c841fbfdd1da652946944
/1001-1500/1465.Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts.py
30ff6368c2af0c9bc265aeec9e48608078e7dd3b
[]
no_license
kaiwensun/leetcode
0129c174457f32887fbca078fb448adce46dd89d
6b607f4aae3a4603e61f2e2b7480fdfba1d9b947
refs/heads/master
2023-08-31T07:30:50.459062
2023-08-27T07:59:16
2023-08-27T07:59:16
57,526,914
69
9
null
2023-08-20T06:34:41
2016-05-01T05:37:29
Python
UTF-8
Python
false
false
689
py
1465.Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts.py
class Solution(object): def maxArea(self, h, w, horizontalCuts, verticalCuts): """ :type h: int :type w: int :type horizontalCuts: List[int] :type verticalCuts: List[int] :rtype: int """ mx_w = mx_h = 0 prev_w = prev_h = 0 horizontalCut...
03bcfe31a794edc0e6d13505b252636e810a37e1
c07694d7005784539fd96ef93120c1d9dd477498
/code-eval/python/utils/debug.py
fa6fc710774616e2159f66dc99e57c4ea242ae71
[]
no_license
edran/code-exercises
31355ca25c6758ab77efe120c87f4d7ae326cde8
3c1475c132f4e912d228fbd8142722ba7430ff84
refs/heads/master
2021-01-17T11:03:43.905019
2017-02-05T19:52:07
2017-02-05T19:52:07
30,782,078
0
0
null
null
null
null
UTF-8
Python
false
false
93
py
debug.py
def dprint(s, DEBUG): """ Print only if debug """ if DEBUG: print(s)
9a71b8d9749b34be47a4c2d2add34732280f0d47
8c4b8132aedce024dd0f266ceca562a47f2b3b9e
/PyBank/main.py
03b277e32c57752fa0feb0f0c1b2f41eef595190
[]
no_license
merepbj/python_challenge
bb380c12bfb5723d8648cbcb5bff82e2229b650c
ac16948ec638878a2394dfa4473e00b7dad0b1dd
refs/heads/main
2023-01-29T20:10:08.406358
2020-12-12T18:00:19
2020-12-12T18:00:19
319,100,344
0
0
null
null
null
null
UTF-8
Python
false
false
2,150
py
main.py
# Dependencies import csv import os # Files to load and output (Remember to change these) file_to_load = os.path.join("Resources", "budget_data.csv") total_months = 0 total_profit = 0 previousNum = 0 profit_losses = [] sum_of_pl = 0 net_change = 0 greatest_increase = 0 increase_month = "" greatest_decrease = 0 decrea...
74e21c53ef57dbc4c1bfd56ed8124d61624ec07c
d0462f3053a3f873a8a387f7dc1bd6b270ab9ee6
/20210706class/HW2/hw.py
592bf0a45ef956b8c8f7acdc7969302d65496267
[]
no_license
Weiting71924/python
716a2fe7bb0145a28a2463973ec01cc62a15c354
8dacc35a91a349f98d122cc61d888cf1a321e2aa
refs/heads/master
2023-07-13T04:44:16.035414
2021-08-17T11:29:32
2021-08-17T11:29:32
382,565,470
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
hw.py
a = input("How many steak do you sell:") print("\nWe sell " + a + " steak\n") ans = int(a) * 5 / 6 print("We sell {0:.2f} pork".format(ans)) b = int(input("\nPlease input Celsius Temperature:")) answer = (b - 32) * 5 / 9 print("\n={0:.2f}℃".format(answer))
3a63417478ca89c5a2b0b057334607b06f5f15d1
cf568c898644bb74969e49d5965931f44b6e9511
/tournaments/migrations/0003_auto_20170124_2322.py
9064db5563b5c954e2800e21b061844bbad1b999
[]
no_license
Llandy3d/sid
af4021c37f7b822d68b427c0798adfeea1de0253
1d75b18e7fdeb463ee4c3ad26547e6d1b271419c
refs/heads/master
2020-12-06T17:23:16.518595
2017-06-28T19:19:16
2017-06-28T19:19:16
95,597,103
0
0
null
null
null
null
UTF-8
Python
false
false
1,507
py
0003_auto_20170124_2322.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('tournaments', '0002_auto_20170116_2109'), ] operations = [ migrations.AlterField( ...
4c472c4aaa909c796bf34d1aa6f9e37ed758a00b
ebe67a95eeeda2db098f8515d7128d9623dfffb6
/run_scripts_karoo/directory_load.py
54912af246722c3e3d9ae6df4c4df5662eba3c9e
[]
no_license
tcv/hibiscus
c9ec6fdf122cb98cc2e27a08d20a5a2b91a5d6bf
ac7a065c8f3bb36a7254726e51806ffa4ca11b36
refs/heads/master
2020-06-04T02:27:50.116743
2015-09-28T21:25:47
2015-09-28T21:25:47
11,481,892
0
0
null
null
null
null
UTF-8
Python
false
false
8,513
py
directory_load.py
""" Module to make plots for each hour dataset. """ import matplotlib matplotlib.use('Agg') from numpy import * import numpy import pylab import scipy.interpolate as itp import numpy.ma as ma import scipy.optimize as opt import os import skrf as rf import sys import matplotlib.pyplot as plt sys.path.append(os.path.absp...
d827b98bb1bb536ce6091a2bce8f0275a905ad17
8572f1ecc4cdbe93976052ded0d50435a49bfcbb
/Earth119/HW1/HW1.py
ae1387e20e480c9771fe901b5d4b0abad877b30d
[]
no_license
jnguyen0597/EARTH119
6555c949685e4044f94338114457c96c1c443bc1
f34ee782fb9402b5a4019ab48cf21704fa3e127b
refs/heads/master
2020-05-16T19:19:24.618941
2019-05-22T16:38:50
2019-05-22T16:38:50
183,255,813
0
0
null
null
null
null
UTF-8
Python
false
false
1,722
py
HW1.py
# -*- coding: utf-8 -*- """ Write a program that computes the area of a rectangle (A=bc) and the area of a triangle (A= 0.5*hb). The input of your function will be band cfor the rectangle and hband bfor the triangle """ # Interpreter: Python 2.7, Anaconda2 # Import needed add-ons import numpy as np import sci...
67c7066a48f338822df6bfa531eeeca365db1aab
a49fe91891f9dcececb46e601d8df294975bc01b
/(TD3) Twin Delayed Deep Deterministic Policy Gradients/ActorNetwork.py
ed5fb1ec8c99ec4de049cce9fac3e5029977ebc1
[]
no_license
Abdelhamid-bouzid/Policy-Gradient
b3baf80eb4bdfdffc368381a7f75f26c8d62f6a4
2bb3272af4a300dbc2925fb2640c27e64a118535
refs/heads/main
2023-05-10T00:51:48.231079
2021-06-09T03:09:02
2021-06-09T03:09:02
330,522,292
3
0
null
null
null
null
UTF-8
Python
false
false
1,580
py
ActorNetwork.py
# -*- coding: utf-8 -*- """ Created on Tue May 25 14:30:27 2021 @author: Admin """ import torch as T import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import os class ActorNetwork(nn.Module): def __init__(self, alpha, input_dims, fc1_dims, fc2_dims,n_actions, name, chk...
97072cc83356de1ef61b06db32f2fc1e85653cd0
ea978fc4d3e4cd8641a688a0507e1495f2a108c6
/django/validators.py
3b494c53956daca3eef1f85d0fa23bb7047eb02e
[]
no_license
alevikpes/utils
8d7339643409c988955baf28bbf90c0703235c59
feab77ed690e1f02b099e618688707473e6389f7
refs/heads/master
2021-06-14T00:12:25.297147
2021-03-17T13:12:46
2021-03-17T13:12:46
158,569,642
1
0
null
null
null
null
UTF-8
Python
false
false
4,708
py
validators.py
import logging from django.template.defaultfilters import filesizeformat import magic # module for file type validation import requests from main import settings from rest_framework import serializers ''' Using the `magic numbers` in the files signatures is optional, so this is not a 100% safe method (there is no ...
50e561f68e000904f32d4a4a25692e275b5fc95c
f4f92ae49062d9bf9da42681418220635c4db2ac
/tests/test_main.py
b0ba8abf9045d5776419e3900445f4529422d2a8
[ "Unlicense" ]
permissive
daisukixci/telegram_bot
c43758d01b3dc917b7cca185ec805f248a40cc19
6d7bed2b6f1e5bcb6fe9094d4b02540d55518ad3
refs/heads/master
2023-05-28T02:38:49.790790
2023-05-23T09:56:02
2023-05-23T09:56:02
247,318,014
0
1
Unlicense
2023-05-23T09:56:03
2020-03-14T17:02:45
Python
UTF-8
Python
false
false
1,796
py
test_main.py
#!/usr/bin/env python3 """ Test for main.py """ import os import unittest from unittest.mock import mock_open, patch import yaml from main import get_docker_secret, load_conf class TestMain(unittest.TestCase): """ Main test class """ def test_get_docker_secret(self): """ Test get do...
7ecb3b227af3e9d451f27489c1101981cb47ea62
619823488a742186d755dc4886c2ac237f736d53
/pit/apps/shici/models.py
e6e18e8960249c18293ae57d6803c71f9fb5ae61
[]
no_license
thrbowl/pit
71189d4f116409c3d35a0fc0fd7d4418968467fb
d6b3b365b5fa422be08ca907d12e14ef7f0b2501
refs/heads/master
2022-04-12T03:39:08.910836
2020-04-05T22:08:16
2020-04-05T22:08:16
112,262,316
0
0
null
null
null
null
UTF-8
Python
false
false
529
py
models.py
# -*- coding: utf-8 -*- from datetime import datetime from pit.ext import db class Article(db.Model): __tablename__ = 'apps_shici_article' id = db.Column(db.Integer, primary_key=True) author = db.Column(db.String(32), nullable=False, index=True) dynasty = db.Column(db.String(32), nullable=False, ind...
c2dbe8ca443c79f0bd4fc3111872e1b63ca2897a
3210f92787600930827503ded5eac2d09e668ce1
/crawler.py
2c8621a0b0a2b4354aefa9c2fe4b9bc6411a1596
[]
no_license
CymChristabel/simple-financial-website-parser
4d8d134b6336d483111d9d6fd104b510c436eb6a
c9d3df7194de01cbef2244a04ea7874d597bc205
refs/heads/master
2020-04-15T01:03:26.064675
2019-01-07T02:46:35
2019-01-07T02:46:35
164,262,159
0
0
null
null
null
null
UTF-8
Python
false
false
1,489
py
crawler.py
import sys import datetime import xlsxwriter from securities import Securities from fund import Fund def time_validation(start_time, end_time): try: start_time = datetime.datetime.strptime(start_time, '%Y-%m-%d') end_time = datetime.datetime.strptime(end_time, '%Y-%m-%d') excep...
663376d245ab04cb2008b5d7cb578cf109ab41e3
e97fdeaa75e5a4438f0ffc42ccf41e98aaa9b957
/C07/thread1.py
d320ef04937b85387f601dc0ebc98aafa90be655
[]
no_license
SimmonsChen/Python3.6-code
aba041e91493f8d532ff6589cab2f5572291dc8d
1e9e6513aef68797527482364802dc6c540bcfd1
refs/heads/master
2023-04-10T11:48:04.988773
2021-04-22T05:24:07
2021-04-22T05:24:07
292,293,526
1
0
null
null
null
null
UTF-8
Python
false
false
492
py
thread1.py
##import threading ## ##def test(x,y): ## for i in range(x,y): ## print(i) ## ##thread1 = threading.Thread(name='t1',target=test,args=(1,10)) ##thread2 = threading.Thread(name='t2',target=test,args=(20,26)) ##thread1.start() ##thread2.start() import threading class mythread(threading.Th...
b3a0ee5ffa76c8cb38d6147020bb994c9ba07f64
a620f87920534d699ce819fe81dbf9c580e04ae2
/fabien/src/QL/nodes/String.py
fcc0c195dc0d786d36145111b097683f32ddf1b5
[]
no_license
software-engineering-amsterdam/many-ql
59384e104574a431a72a34abeed13c2d330aa01b
029b5298ad1c5886819bea0b7b681ea699b9b2a0
refs/heads/master
2021-01-18T18:37:16.136867
2015-09-29T11:53:41
2015-09-29T11:53:41
29,917,329
7
14
null
2020-10-12T19:24:31
2015-01-27T14:20:59
Java
UTF-8
Python
false
false
291
py
String.py
from Leaf import Leaf class String(Leaf): def __init__(self, LexNode, value=None): Leaf.__init__(self, LexNode) self.leafValue = value def evaluate(self, answers): return self.leafValue def __repr__(self): return "String %s" % self.leafValue
2f3c7bc04851f43b239d46ff533a31015c04abee
e7102397dc88c98513e2117201204cb9b17b2916
/codechef/FLOORI4.py
c4805859a4475231090facde5de7b4467fd88844
[]
no_license
Prithvirajbilla/AlgorithmCoding
bdd2060aa64e17ebb46410320d33c08c469a1983
6f59cc7f7637c48dcee906b61af63a2497eb4300
refs/heads/master
2021-01-18T21:52:15.233263
2018-08-05T23:10:01
2018-08-05T23:10:01
25,050,293
0
0
null
null
null
null
UTF-8
Python
false
false
1,459
py
FLOORI4.py
from math import * def cal(n): ret_val = {} for i in xrange(1,int(sqrt(n))+1): k = n/i; ret_val[k] = 1 d = n/i - n/(i+1) if d != 0: ret_val[i] = d return ret_val def get_me_power(n,m): m = m*30 # result = (n*(n+1)*(2*n+1)*(3*(n**2)+3*n-1))/30 2*5*3 (3*(i**2)+3*i-1)) result = n *(n+1); mod = False ...
b03457a9bc0c680139fc4f8090589534ebad8b8b
be27c2f29163dd4fab974962d858c154a4bbd541
/youtubeDown/getVideo.py
e3b3f6f2ae4f222f10e06d946c4a44551dcadc0d
[]
no_license
e3561025/pythonWebCatch
0dfc83d3689ec5b03bab99c9960e1a34851f3d21
34db315f4c369c8ba008ecc5c5062c0e476b120b
refs/heads/main
2023-05-12T23:14:12.984002
2021-05-31T14:57:44
2021-05-31T14:57:44
372,438,163
1
0
null
null
null
null
UTF-8
Python
false
false
361
py
getVideo.py
from pytube import YouTube class getVideo: streams=[] def search(self,url): self.streams.clear() yt = YouTube(url) for i in yt.streams.filter(file_extension='mp4').all(): self.streams.append(i) return self.streams def down(self,index,path): self.str...
b814211bcd7588e88dc9e9008ffb6c47e0f89bea
fa13aa75da441eb6c327d44e9f8bef82b6d0f847
/customer/migrations/0002_auto_20190805_1746.py
c3780baf85676f52039e0523c276ba2360c8f9a3
[]
no_license
jtangir87/efv_project
58cb51c525de31c1eaa1cc4b161409eea1f15c52
088026bd2b26e2f75161e382652cf133ebdb81f4
refs/heads/master
2022-12-08T17:43:44.441862
2022-01-04T18:04:23
2022-01-04T18:04:23
195,258,575
0
0
null
2022-12-08T05:18:13
2019-07-04T14:41:05
HTML
UTF-8
Python
false
false
725
py
0002_auto_20190805_1746.py
# Generated by Django 2.1.8 on 2019-08-05 17:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('customer', '0001_initial'), ] operations = [ migrations.RenameField( model_name='client', old_name='name', ...
a1b257b9201cfb2300edb1b17f5c6cefad6f797d
78e4e413e0bd603245518fb81d932082b1752695
/tests/test_example.py
fdc095b65bc792ad267fd0cab2f9d24128f140d7
[ "MIT" ]
permissive
jamespic/jp_example_python_package
a16f4e3ce198ca1b87121a6d3bce2e3d7b68bf21
c6b3329475caea64d3fdaa3a452e852299f6b1c0
refs/heads/master
2020-04-24T04:01:02.716610
2019-02-20T15:29:17
2019-02-20T15:29:17
171,689,024
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
test_example.py
from jp_example_python_package import * def test_adder(): assert add(1, 2) == 3 def test_message_cheeky(): assert message_cheeky() == 'Hello World!\n' def test_message_correct(): assert message_correct() == u'Hello World!\n'
7c9315e7860bd6605158e9da306165afb43301d5
3c0fd540449d24b298c87beab28df2db8ae182d1
/Baseline/compute_frequency.py
e0106c91799368aba324404bf2d601cfb28b19fb
[]
no_license
yash0307/DynamicLexiconGenerationCVC
104d01e825544e7c63ba231af5657ed0c8f03cef
5a9d02963747adb8fe5964bc2a2de06d741cc773
refs/heads/master
2021-03-27T10:12:58.028274
2017-07-14T11:46:01
2017-07-14T11:46:01
64,204,492
0
0
null
null
null
null
UTF-8
Python
false
false
2,285
py
compute_frequency.py
### git@yash0307 ### import gensim import json from nltk import word_tokenize from nltk.corpus import stopwords # Read Our dictionary first. #id2word = gensim.corpora.Dictionary.load_from_text('./Dictionary/jad_sw_gensim_dict.txt') stop_words = set(stopwords.words('english')) stop_words_str = [str(i).lower() for i in s...
0731e59081d094cc1f8f488f49c56d5814da1777
859e775d29e1357ef9c78c31866c900e13b940ae
/fab_deploy_tests/tests/crontab.py
fa2b2afb0c8f103cc2270c751a4d144737cacec1
[]
no_license
erlaveri/django-fab-deploy
069f76aba6cfaf84621e29aa4cecc64fefd84c1a
81e60d606c1a8c8eaedef540063a2dd944062900
refs/heads/master
2021-05-09T15:51:17.744113
2018-01-26T20:28:47
2018-01-26T20:29:05
119,099,964
0
0
null
null
null
null
UTF-8
Python
false
false
1,340
py
crontab.py
from __future__ import absolute_import from fabtest import fab from fab_deploy import crontab from .base import FabDeployTest class CrontabTest(FabDeployTest): snapshot = 'fabtest-prepared-server' def current(self): return fab(crontab.get_content) def add(self, content, marker): return fa...
e8fb24863ca2314f691ef9850e12de13108537ec
9162e68bc67facb6108973ab1f3c79cc0b8b3680
/session.py
7ed72eada65c21f5a908aed812638cd971694c2b
[]
no_license
ghamarian/tf3
0570e0d1911083333614acad9fc0a52822a69770
4873906669ee9bde30c32da0abb09b2a2821c165
refs/heads/master
2020-03-16T16:08:29.714764
2018-08-01T08:44:24
2018-08-01T08:44:24
132,774,194
0
0
null
null
null
null
UTF-8
Python
false
false
4,828
py
session.py
from config.config_writer import ConfigWriter from config import config_reader from flask import session, redirect, url_for from feature_selection import FeatureSelection import itertools from utils import feature_util, preprocessing import pandas as pd SAMPLE_DATA_SIZE = 5 class Session: def __init__(self, app...
8066b54140f77346dd0a613eb2ccf5a1c2014bd3
55bd570e590e9d756e9fc1b414cebd3e16cbc7e8
/TIROID/tiroid_sigmoidal.py
375debf549c51aabfc1642c5b504599fc9bb8e0b
[]
no_license
Shaniamh/Data-mining-visualization
d3ff9ec3a5b94410534fa102a2f7f30d1e7e6be7
f1bd23fe88849a3276faf11313d6d1a9e13e8e12
refs/heads/master
2020-05-27T19:49:37.702237
2019-05-26T20:56:35
2019-05-26T20:56:35
188,767,849
0
0
null
null
null
null
UTF-8
Python
false
false
763
py
tiroid_sigmoidal.py
#melakukan normalisasi sigmoidal import pandas as pd import numpy as np import impyute as impy data_tiroid = pd.read_csv('data_tiroid_missing.csv', header=None) data = data_tiroid.replace("?",np.nan) #dijadikan array of float data_array = np.array(data, dtype=float) #input mean menggunakan impyute new_data = impy....
68ffea291803909ef85b3bbac50425ef2ae88ba2
f995860ad78fc266d04b03c3478c74e989d8b568
/PE/pe0021.py
2a1ae28adfacfb12bdfd0d1b6608fa2a45efe265
[]
no_license
196884/Python
edd0234fd72a40d7a0b3310776edcaa8bda74478
8dc2e7a32dd350227cde748600e713dc3eea3f4a
refs/heads/master
2016-09-06T19:26:19.860746
2015-11-09T00:09:23
2015-11-09T00:09:23
28,167,634
1
0
null
null
null
null
UTF-8
Python
false
false
1,501
py
pe0021.py
# In order to get the total factorization of all consecutive integers, we do as follows: # * We sieve (up to a point) # * at the pass when we divide n by p^k, we store p^k (and p and k) at index # n in an array ('largest factor') def genFactorsInfo(b): """ fi[n] = (p, k, p^k, [1, p,..., p^k]) where * p i...
157fd1e2d3f130cd04bc7e00fe7c9366c75e4413
90ac77f59ca3a9a9bad23fd1849f62b83d156e94
/MainMenu.py
c0aa84e4ecd225bb3509c2bbf32137079eeaf670
[]
no_license
Clockwick/FPGA-Hero
3e5b8e904830faf3f2b67bc798761e7efdb717e9
0f4be83102bff45c8a789ebf51c82abb9cfe4a48
refs/heads/master
2023-02-05T00:52:51.073979
2020-12-19T17:46:07
2020-12-19T17:46:07
317,846,976
0
0
null
2020-12-20T17:06:22
2020-12-02T11:55:03
HTML
UTF-8
Python
false
false
14,492
py
MainMenu.py
# Own python from State import State from Texture import Texture # Pygame import pygame import pygame_gui import os # Gpio import RPi.GPIO as GPIO class MainMenuState(State): def __init__(self, manager,game_data): super().__init__() # GPIO GPIO.setmode(GPIO.BOARD) # Raspi ...
27be8070ebde373a1f3e6ef7256e05e1c5202c03
21e190ec900732349a7feb9c1053426ace9dca4b
/SettingDialog.py
f4b46334b74e40be7ea04e6679c6bd48a4a624d6
[]
no_license
Fireflyman252/ScottNotes
646870584e0a8b3bc21c62d1ba0d8d31db041865
2ffea74fe8aeffc5bccc5f2416b37e68b758c91b
refs/heads/main
2023-08-26T08:41:04.639872
2021-11-03T18:29:54
2021-11-03T18:29:54
424,330,919
0
0
null
null
null
null
UTF-8
Python
false
false
6,352
py
SettingDialog.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'SettingsDialog.ui' # # Created by: PyQt5 UI code generator 5.14.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(self, Dialog): Dialog....
da63509db2049a9cc346f7526099e91e15a2c985
4c0e763175d262dc258cc4540d72d1ec6d6442ca
/squish_csv.py
57cc166c82a94d04aeb8d4b74a39bc152edaa6fe
[]
no_license
AllanChew/Cubefield-Q-learning
a27559e92a57012f9a164b2c277efa41e25c0918
32c8dd31a1d930199a9b8dda745830fd31731e82
refs/heads/main
2023-01-31T21:55:35.006563
2020-12-12T19:00:05
2020-12-12T19:03:07
303,194,306
0
0
null
2020-12-03T21:07:46
2020-10-11T19:14:23
Python
UTF-8
Python
false
false
485
py
squish_csv.py
# example usage: squish_csv("trial_results.csv","squished_results.csv",3) # this will keep 1/3 of the original rows def squish_csv(in_fname="input.csv",out_fname="squished_results.csv",skip=2): infile = open(in_fname, "r") outfile = open(out_fname,"w") ctr = -1 s = infile.readline() while s...
91e6a760530184b95aeeeff3d23345f84538bcaf
946e03c8f6cddf9f0de5b30356c4926f80d12e8a
/os_v4_hek/defs/scnr.py
e1bbd6e8c1272587255fd9d462e8eb8d3fb3cfd6
[ "MIT" ]
permissive
holy-crust/reclaimer
790f51ea2ef45f91cee28c81ea94a74cc2181078
0aa693da3866ce7999c68d5f71f31a9c932cdb2c
refs/heads/master
2020-07-21T13:46:24.096505
2019-09-05T20:30:06
2019-09-05T20:30:06
206,885,681
0
0
MIT
2019-09-06T22:57:01
2019-09-06T22:57:01
null
UTF-8
Python
false
false
1,191
py
scnr.py
from ...os_v3_hek.defs.scnr import * lightmap_set = Struct("lightmap_set", ascii_str32("name"), Pad(4), dependency_os("std_lightmap", "bitm"), dependency_os("dir_lightmap_1", "bitm"), dependency_os("dir_lightmap_2", "bitm"), dependency_os("dir_lightmap_3", "bitm"), SIZE=124 ) ...
fbd8594ad2bb38b2a640577de69bf4f042dc0bc8
59822074f24d6181d79f39311b27e776f9b88c79
/ex2.py
d5d65180b0e53556a5480fa8074251ad32508472
[]
no_license
slaigai/lpthw
22bf5e26543cf233e7003c8c7893989f0ec099c5
39e433b05a2e1fcfcd5e6f37f899633a3d44859a
refs/heads/master
2020-05-15T18:39:33.677151
2019-04-21T22:13:13
2019-04-21T22:13:13
182,435,255
0
0
null
null
null
null
UTF-8
Python
false
false
1,405
py
ex2.py
# A comment, this is so you can read your program later. # Anything after the # is ignored by python. print("I could have code like this.") # and the comment after is ignored # You can also use a comment to "disable" or comment out code: # print("This won't run.") print("This will run.") # Study Drills # 1. Find...
f39c632e89c52ed9fd3aa3604cc82d2d7b7a395a
cd638ae6d4362c03a1156863056e6c2e462162c6
/los_tools/gui/dialog_raster_validations.py
e12333366414a03fbf378c6abe66d31895403af0
[ "MIT" ]
permissive
JanCaha/qgis_los_tools
f9db9af08517f67d06488aa3f305313838c616a1
0680f795cc897c4a05e9a6090d1ad847548352d6
refs/heads/master
2023-06-11T08:28:36.763145
2023-06-05T11:41:16
2023-06-05T11:41:16
252,146,512
3
0
null
null
null
null
UTF-8
Python
false
false
8,389
py
dialog_raster_validations.py
from typing import List, Dict from qgis.core import (QgsProject, QgsRasterLayer, QgsPointXY, QgsUnitTypes) from qgis.PyQt.QtWidgets import (QDialog, QPushButton, QFormLayout, QTreeWidget, QLabel, QTreeWidgetItem, QGroupBox, QTextBrowser, QLineEdit, QHeaderView) from qgis.PyQt.QtCore im...
50af956d4a3e0d27f16b851d9f2ce90bac0e108c
88ae8695987ada722184307301e221e1ba3cc2fa
/third_party/angle/third_party/glmark2/src/waflib/Tools/ccroot.py
e3f69d012f87f52f3d1dbfd4ac015990b31a0394
[ "Apache-2.0", "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "GPL-3.0-only", "LicenseRef-scancode-x11-opengl" ]
permissive
iridium-browser/iridium-browser
71d9c5ff76e014e6900b825f67389ab0ccd01329
5ee297f53dc7f8e70183031cff62f37b0f19d25f
refs/heads/master
2023-08-03T16:44:16.844552
2023-07-20T15:17:00
2023-07-23T16:09:30
220,016,632
341
40
BSD-3-Clause
2021-08-13T13:54:45
2019-11-06T14:32:31
null
UTF-8
Python
false
false
15,489
py
ccroot.py
#! /usr/bin/env python # encoding: utf-8 # WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file import os,re from waflib import Task,Utils,Node,Errors,Logs from waflib.TaskGen import after_method,before_method,feature,taskgen_method,extension from waflib.Tools import c_aliases,c_preproc,c_confi...
236fa3057026b194f1f958b0f84287d4b15b4037
cb40ed05e84633d703ab0921ffab574eead7e705
/example_working_directory/src/benchmarks_oslh.py
42257786575b3b716eb00bcf20cd8381b358a2fc
[]
no_license
UnixJunkie/AutoGraph
1ed7dc991690bb58670fc66755ca08446d2a9c9d
ad094f3339f0d247c240bb36d9e94addd39b0770
refs/heads/main
2023-03-12T16:28:13.359490
2021-03-06T07:21:33
2021-03-06T07:21:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,048
py
benchmarks_oslh.py
# 2021-03-03 # Kiyoto Aramis Tanemura # Show how to run benchmark clustering algorithms. Please cite the original algorithms if used in your research. import sys sys.path.append('/mnt/home/tanemur1/2020-05-28') from AutoGraph import DynamicTreeCut from AutoGraph import NMRCLUST from AutoGraph import RCKmeans inpath...
f565c9ac33cdfea88cdd752ae06b36804de61dfd
78dd0fb8053cefe2109f562809cb1218dcc41666
/station/urls.py
0cbab47d3cf2ce277c88b5098ec1004bb6e5a03f
[]
no_license
eduardodisanti/FabricaWeb
2b22a5ffa7fa6f06ed771cbf327be4fb2e9038b7
88974f1fae80d3af4ce779107e65c363b01babf9
refs/heads/master
2020-06-12T11:27:15.000321
2017-07-04T04:35:04
2017-07-04T04:35:04
194,284,880
1
0
null
2019-06-28T14:13:11
2019-06-28T14:13:11
null
UTF-8
Python
false
false
426
py
urls.py
from station import views from django.conf.urls import url urlpatterns = [ url(r'^', views.index, name='station'), url(r'^services/(?P<num_station>\w+)/', views.services, name='services'), url(r'^view/(?P<station_id>\w+)/', views.view_station, name='view_station'), url(r'^(?P<station_id>\w+)/values/a...
e5bba4a46957604588370f1b9631ce914caa8166
bf956b02d34cbe668d39341c286e35f32acdb465
/backend/patient/management/commands/upload_data.py
2b57ac0221f6846217e8dec9ab13a2571b7b030c
[]
no_license
ScrollPage/Sirius
af15257cb61c97b996cfee98dd7b5c6b3e807027
aa535c61ae1a48d29793fa5b6ef2a001525e4b65
refs/heads/main
2023-04-09T11:10:24.035167
2021-04-22T14:44:56
2021-04-22T14:44:56
341,913,559
1
0
null
null
null
null
UTF-8
Python
false
false
899
py
upload_data.py
from django.core.management.base import BaseCommand from django.conf import settings import psycopg2 from patient.management.service import Executor class Command(BaseCommand): '''Uploads all data from postgreSQL DB''' HOST = settings.DATABASES['default']['HOST'] PORT = settings.DATABASES['default']['PO...
a491772258a52bdfc93083343d2a2e48a240340d
e61e664d95af3b93150cda5b92695be6551d2a7c
/vega/metrics/pytorch/classifier_metric.py
38ba7b0c1658507b8c9570a6799bce03589e1d61
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
huawei-noah/vega
44aaf8bb28b45f707ed6cd4e871ba70fc0c04846
12e37a1991eb6771a2999fe0a46ddda920c47948
refs/heads/master
2023-09-01T20:16:28.746745
2023-02-15T09:36:59
2023-02-15T09:36:59
273,667,533
850
184
NOASSERTION
2023-02-15T09:37:01
2020-06-20T08:20:06
Python
UTF-8
Python
false
false
4,324
py
classifier_metric.py
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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...
2b8ca0c8c7878536da4f31652976988cdba62d89
f1903b21a98b00b3191548ee73f56e53a2881adb
/main_app/admin.py
d4f63cdda90552db71afd52c36cc00685a9c3992
[ "Apache-2.0" ]
permissive
cyficowley/crawler-site
1fe8cdb07ad36fff1cf61c2e7ec616c3f41c6cbb
b9500d0bc28154fde49955e1e35525ee064d4c81
refs/heads/master
2021-05-04T18:41:05.531444
2017-10-21T00:26:13
2017-10-21T00:26:13
105,958,298
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
admin.py
from django.contrib import admin from main_app.models import sites, statuses, redirects # Register your models here. admin.site.register(statuses) admin.site.register(sites) admin.site.register(redirects)
19bb58ab440ca00bf6410a70a8b6bbc24eec96c1
24e4db672cfe3157cdd2a84ca5e302115bb80000
/marketingemails/apps.py
2c1ddcbbcf27caefe01666f7603c1ee70e3b8b63
[]
no_license
imnitishng/advancedcrm
28f34e35817d5badb2cbfa7d78e8c7e9b1d3b105
ec4c6dc14edeab475b4dbc866be3ce284cffa59f
refs/heads/master
2023-02-10T05:06:14.696342
2021-01-09T15:52:53
2021-01-09T15:52:53
307,952,305
0
0
null
null
null
null
UTF-8
Python
false
false
105
py
apps.py
from django.apps import AppConfig class MarketingemailsConfig(AppConfig): name = 'marketingemails'
1614157c57b3d1b30087c42cb840d617dc91eecb
8fa38af03155d9c9f5b7745762cfbc9368799daa
/THE3/the3_part2.py
872fb75ccda043241ce63851a0e53fe3756d86f2
[ "MIT" ]
permissive
BengisuA14/METU-ImageProcessing
9cbeaf0d37d5612ff44d3e3dde2c01ab6d2ee26e
a955b8c123ea33a20c0fa8d75aa1989e1c078bee
refs/heads/main
2023-03-04T10:05:08.781732
2021-02-14T19:16:06
2021-02-14T19:16:06
338,879,053
0
0
null
null
null
null
UTF-8
Python
false
false
4,290
py
the3_part2.py
# Bengisu Ayan - 2236974 # Ceren Gürsoy - 2237485 import numpy as np import cv2 B1 = "THE3-Images/B1.jpg" B2 = "THE3-Images/B2.jpg" B3 = "THE3-Images/B3.jpg" B4 = "THE3-Images/B4.jpg" B5 = "THE3-Images/B5.jpg" def segmentation_function(image, name, blue_mask=False, white_mask=False, yellow_mask=False): # Smo...
065a566b3e520c14f20d0d7d668ec58404d6e11b
ade5d22e4a2433a30b4527ce79b1ccd0e9bebd07
/dicpick/signals.py
94bfc6c67c37accd0d596c5bd16eb9413b9f61ce
[]
no_license
Mystopia/dicpick
a70a4e30525f1dcef6a81f90ff8c9aa49db04ae2
f7000036e978433c948346bbc217b521eb6b3a10
refs/heads/master
2023-08-21T20:08:10.494288
2023-08-06T00:16:33
2023-08-06T00:16:33
55,466,833
1
1
null
2023-08-06T00:16:34
2016-04-05T04:10:29
Python
UTF-8
Python
false
false
1,855
py
signals.py
# coding=utf-8 # Copyright 2016 Mystopia. from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from django.db.models.signals import m2m_changed, post_save from django.dispatch import receiver from dicpick.models import...
dc88686d3cbb4223b4de6847bf4fc29b93054b00
7808b5777910774f1dfee45d1b3ce669c15922a7
/Web/privateChatroom.cgi
b801e83645abe0678cc913d0b0c4a9d46b68322b
[]
no_license
lizzsy15/Capstone
7e224629f030271e5070988f6090c30a2e7b3e2d
2031066ac5bae7625ff159f3a3b855234d390946
refs/heads/master
2020-05-07T09:22:16.105529
2019-11-05T01:24:22
2019-11-05T01:24:22
180,373,954
0
0
null
2019-11-05T01:24:25
2019-04-09T13:32:15
Python
UTF-8
Python
false
false
3,597
cgi
privateChatroom.cgi
#! /usr/bin/env python3 import EchooFunctions, cgi, MySQLdb, hashlib, time, requests, os print ('Content-type: text/html\n') form = cgi.FieldStorage() #database connection user = "i494f18_team34" db_pass = "my+sql=i494f18_team34" db_con = MySQLdb.connect(host="db.soic.indiana.edu", port = 3306, user=user, passwd=db_...
653e65281984ebb06467aeadb6f0e2b11f1bcb4d
1fac133b8ced426e70d3b91d12c6513d08c96435
/2019/day2/day2.py
3f140bec84a5430b9c1ee77afb6e78fa4a94ef7c
[]
no_license
ghlyffe/adventofcode
832a64147586f9c17177d33765453a7eff779348
fe0b56d60b07bc7d370eaa3fa176e55e7a1262f3
refs/heads/main
2021-12-09T17:57:51.744646
2021-12-02T16:29:14
2021-12-02T16:29:14
226,060,014
0
0
null
null
null
null
UTF-8
Python
false
false
6,257
py
day2.py
#!/usr/bin/python3 def file_to_code(fname): mem = [] for line in open(fname,"r"): mem.extend([int(i) for i in line.split(",")]) return mem class Opcode(object): def __init__(self, mem, ptr, code, inc): """ >>> o = Opcode([1001, 2, 4, 1], 0, 1, 4) >>> o._Opcode__par_modes [0, 1] """ if mem[ptr]%100 !...
8d5b75dc945844d48f52159be08fc1e6aa51fdf5
f33116ad6bc5c614cecf3e7e372026c687a7bbee
/lexer.py
735f66d0c5965e319caf9786c87cbf19b1a1ac9b
[]
no_license
tankop1/ease_language
f90f23c2686cb027e29c1d6a689a6e4854c9b3a4
d6d5784c9fb4449dc6522eabd7ca84e7ba86bb03
refs/heads/main
2023-02-23T20:19:25.034395
2021-01-28T18:58:55
2021-01-28T18:58:55
333,851,311
1
0
null
null
null
null
UTF-8
Python
false
false
3,419
py
lexer.py
# Takes in a word and makes a list containing individual characters def split(word): return [char for char in word] # Removes empty strings from a list def removeEmptyStrings(lst): while "" in lst: lst.remove("") ints = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] tokenList = [] class Token:...
20649decd3ff21b1aa814d0a04180195cac3629b
77959ffe5b2533753e18a4872b6a5e1834598f7c
/ajustador/loadconc.py
5a8699495a62a7ffbf36d177c13beef73598f1a9
[]
no_license
neurord/ajustador
4953ec4182a48da4e7b7db4c7ad485c78973db56
9988bfa8fb44a3aee0517d64dab452ddc9cedc45
refs/heads/master
2022-08-24T06:08:35.084540
2022-08-04T17:40:23
2022-08-04T17:40:23
80,869,178
1
2
null
null
null
null
UTF-8
Python
false
false
4,231
py
loadconc.py
#loadconc.py - possibly these classes will be added to ajustador/loader.py when ready # -*- coding:utf-8 -*- from __future__ import print_function, division import numpy as np from ajustador import xml,nrd_fitness import glob import os import operator msec_per_sec=1000 nM_per_uM=1000 nM_per_mM=1e6 class trace(ob...
bb2c684fd5b962c97c033d4b4c2027d52b7371fd
13338910775bb427135d6bf8473ff4a700bc1962
/algorithms/tarjan.py
e2b0601defd28ad87dbd9754b67009946f234ce4
[]
no_license
Shadoka/voldemort_dbp
9a436873be87a3d7d7a62d06f8b4f5b765e5cf7a
08181492ef4b99e4b241a3e0786856dd4df8af97
refs/heads/master
2021-01-10T15:35:40.378972
2016-01-06T08:25:31
2016-01-06T08:25:31
44,752,460
0
0
null
null
null
null
UTF-8
Python
false
false
1,814
py
tarjan.py
import voldemort import time authorStore = voldemort.StoreClient('authorStore', [{'0', 6666}]) stack = [] components = [] index = 1 # Implementation of the Tarjan algorithm for the detection of strongly connected components. # Function collects all authors in the database and outputs them as strongly connected compon...
57e95cd926b86ffaddc0b62bf7e4dbf6ee598f89
458a895cc4408bc5a30b79632201bc1c08721911
/hw3/DANN/models.py
b8fcd6f788b6168fef71807a9706cf3d0714dd8b
[]
no_license
jackchen03/DLCV_fall_2019
215cc2d7bd6025fbefa294625e7f690b77efc341
15db7e85a18c39d82f9ef5ad0b7cf148fb4da8ab
refs/heads/main
2023-07-02T03:19:41.094136
2021-08-03T13:06:28
2021-08-03T13:06:28
320,509,213
0
0
null
null
null
null
UTF-8
Python
false
false
1,686
py
models.py
import torch import torch.nn as nn import torch.nn.functional as F class f_ext(nn.Module): def __init__(self): super(f_ext, self).__init__() self.conv1 = nn.Conv2d(3, 64, kernel_size=3, padding=1) self.conv2 = nn.Conv2d(64, 64, kernel_size=3, padding=1) self.conv3 = nn.Co...
376504972ecbf9bc40f6cd506c2c3cc3c81ec7f7
65ae486c7354561d65a6b55ea1e2740c5ef76213
/statistics.py
df17d02cef9cb8c497a3fd4f4d8e8a61c5aa5885
[]
no_license
ydasset/YDSTS
9badb34044559d006b03e4a66515414e9a31ddf7
6c9e7b098ce4f752ee69c0e162a5be1bdbbe4a1d
refs/heads/master
2021-01-03T09:00:45.899356
2020-09-30T09:51:19
2020-09-30T09:51:19
240,006,666
0
0
null
null
null
null
UTF-8
Python
false
false
2,685
py
statistics.py
import numpy as np """ 功能:对列表数据求平均值 """ def average(numlist): avg = 0 avg = sum(numlist)/(len(numlist)) #调用sum函数求和 return avg """ 功能:对列表数据求移动平均值 """ def moveavg(numlist, n): result = [] for i in range(len(numlist)): if i < n: # 第一条记录 j = 0 else: j = i-n+1 ...
e30551186144f1bb40806a7efc1f3d274ba18aa8
ba0c0e50f9baae98000afc4a8c0b468004ffdd9a
/codec/messages.py
783aa38906599749ed8a5b8a095085f3d686b0e8
[]
no_license
J-Fraser-92/small_changes
e0a78c9172db564a2cf6985eb87ae9c595e583a7
52a415069c15619770bf6335e035e42d17f5011e
refs/heads/master
2020-12-25T04:54:48.853530
2016-08-18T11:23:10
2016-08-18T11:23:10
65,741,631
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
messages.py
class ERROR_MESSAGES: EMAIL_NOT_FOUND = 'The email provided was not found' EMAIL_IN_USE = 'The email provided is already registered to a user' USERNAME_IN_USE = 'The username provided is already registered to a user' ACCOUNT_NAME_IN_USE = 'This account name is already in use by your account' class OK_...
ff0a1acd04175483a53aa3afeaca427bacdf5b2e
61b7d763aa8724d61a2a6ea97e33a8152b891520
/creatder/views.py
598cc9c60b7317f5d9388d2d3fc2a232db164a96
[]
no_license
m-szczepanska/Show_your_cavy
0b8cb891f8f493506d41ee700ed119024fedc9d4
846cf200a134409085a5bb8a65261a2c40e39186
refs/heads/master
2022-05-07T21:55:58.208838
2020-02-08T21:09:29
2020-02-08T21:09:29
212,856,350
2
0
null
2022-04-22T22:31:16
2019-10-04T16:17:45
Python
UTF-8
Python
false
false
16,122
py
views.py
from uuid import uuid4 from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import csrf_exempt from django.db.models import Q from rest_framework.views import APIView from rest_framework.parsers import JSONParser, MultiPartParser, FormParser, FileUploadParser from rest_framework.respon...
2f3d2741d63f4c3882219b09fab19a0c1ced834a
ecebfc7ec9d5174703bfb2a97123ca30e87fca1b
/dashboard/src/account/forms.py
3b9c62770a09c78f9fe94a0bc4afee5108b1d7f9
[ "Apache-2.0" ]
permissive
opnfv/pharos-tools
869df3644aa2eac12e93884baf61fe947f567689
fce290547954709c5b6184fddf31b370d23bbf0a
refs/heads/master
2022-01-29T02:28:12.074214
2019-06-26T13:15:31
2019-06-26T13:15:31
108,579,030
0
0
null
2022-01-06T22:27:22
2017-10-27T18:08:59
Python
UTF-8
Python
false
false
823
py
forms.py
############################################################################## # Copyright (c) 2016 Max Breitenfeldt and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is avai...
6f0069dc18acc1275da615f60b32714593849bf9
78d67143a9114833790a2f5cd657d11ecb449856
/upload_backend/endpoints.py
542bef87555604ce0ed4e2065ee9b8ff7bca9f7c
[]
no_license
TamerSherif/diseaseClassifier
53b299a7889810d3eb755001f8a60dc529ff0447
c06783099b5b67a060ffdd64b980f54fa4d3e92d
refs/heads/master
2020-03-24T21:44:09.726062
2018-08-15T04:15:54
2018-08-15T04:15:54
141,850,882
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
endpoints.py
from django.conf.urls import include, url from rest_framework import routers from .api import FileUploadViewSet router = routers.DefaultRouter() router.register('file_upload', FileUploadViewSet) #basically go to the respective view set depending on the path after api/ !! urlpatterns = [ url("^", include(router.u...
6e7b1e601272eeb4ef5f42174952407a90fadc98
bf0db93c96d6a3336a792ded4d3074b073731acf
/exercise_7-MorePrinting.py
cd667ce6c18c5e00e771a8a30839dd5113884727
[]
no_license
bencami22/PythonTheHardWay
58d1e4c7580b982a0b4cd366f95b85ff8134d97d
0e5f69b918e78b8596b5c3bb61caf17284dc9c7d
refs/heads/master
2020-03-25T12:20:35.890371
2018-12-16T16:48:01
2018-12-16T16:48:01
143,771,273
0
0
null
null
null
null
UTF-8
Python
false
false
53
py
exercise_7-MorePrinting.py
print("." *10) print("con" "cat") print("con"+"cat")
837bb21b3d9bad8afb33ab9b2ee5cdbe5286cfbc
d116a928fea4470f45939f4c58d83b045d8c081b
/web/__init__.py
0fcfc29d9db3c810c490dcfd964acded55d8f597
[ "MIT" ]
permissive
TheImaginaryOne/movies-py
144453ada104d238f05304d84e498c0868c0b110
a3b601228cde6850919eaf84c0175f5ce3822e2b
refs/heads/master
2023-01-03T00:26:22.673138
2020-10-30T09:10:38
2020-10-30T09:10:38
289,663,817
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
__init__.py
from flask import Flask, render_template, url_for from werkzeug.utils import redirect def setup_app(app: Flask): @app.errorhandler(404) def error_404(_): return render_template('404.html') @app.route('/') def index(): return redirect(url_for('movies.show'))
a1003d764cf2da84f27e13718cc8641481ce9a7e
5b54e992162ab1942190f74e2a8c90d1ec1413bc
/controller.py
7140a4c8842b9e9a42fb09c38e930ad54a62f2e9
[]
no_license
dcorral3/JuTuBot
ad2bef5c03a4306a225e9a58f5de5de2d29d2817
85cc736b929eae3b25afcce23d4b651908b6961a
refs/heads/master
2020-04-02T05:08:32.448657
2018-10-25T12:46:17
2018-10-25T12:46:17
154,054,363
0
0
null
null
null
null
UTF-8
Python
false
false
7,224
py
controller.py
import youtube_dl import os import sys import json import shutil from config import db_file, TOKEN import telegram from model import DB import datetime from mutagen.easyid3 import EasyID3 import re from urllib.parse import urlparse, parse_qs from telegram.ext.dispatcher import run_async def my_hook(d): downloadM...
5690d5cb6a0bbad72db1ca96eb66b40459442913
f5b48cba3562e5efd32f1379fba69fe27c2c54cb
/ex007.py
b618bc074b723baa99ed271820aa1e416071950e
[]
no_license
GGMagenta/exerciciosMundo123
e9596eee260dc7876efad1684ef88b36340b3a4d
3764b706bd5b7d24e270a6c0ea006f2fbf8ebcbb
refs/heads/main
2023-01-30T07:43:21.002259
2020-12-15T15:59:39
2020-12-15T15:59:39
316,284,825
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
ex007.py
# Pegue 2 notas e calcule a média n1 = float(input('Digite a nota 1 ')) n2 = float(input('Digite a nota 2 ')) media = (n1+n2)/2 print('A média entre as 2 notas e {:.1f}'.format(media))
2ebf18a12258c828a298675d35ca575e18abf779
48e4c1f2dd8b3e3f2da65662f6f3ce345447ff50
/day04/Lx/iweb_shop_login.py
3afb7a81ada338df66fd8e01b7d80faee6fa7197
[]
no_license
15673965/pythonTest
97bf62f5904d4b753f302e2ef95ff7d2a6328d10
146bb5c21998da8007ef6ec595cd321792ff9615
refs/heads/master
2020-07-07T16:27:16.408112
2019-08-20T15:52:45
2019-08-20T15:52:45
203,405,184
0
0
null
null
null
null
UTF-8
Python
false
false
1,327
py
iweb_shop_login.py
# 导入unittest import unittest # 导入webdriver from selenium import webdriver from time import sleep class TestLoginOut(unittest.TestCase): def setUp(self): # 实例化浏览器 self.driver = webdriver.Firefox() # 打开浏览器 url = 'http://192.168.13.20/iwebshop/' self.driver.get(url) # 最...
f335ffa98a92b72a776a047fc6614615538cfed0
102e7f138f6abd4eefaedb69f48a82b60f7cf193
/day19/demo2.py
e191ac3cef5d8e34b83adf8f951c8e4ed35ab8c5
[]
no_license
Ivan-yyq/livePython-2018
33fd455d976d08188f751574e8ee377c52aabac3
be18999839a28a322ce58434348b25b62647c65e
refs/heads/master
2020-03-16T21:36:45.648373
2018-07-27T02:58:33
2018-07-27T02:58:33
129,837,410
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
demo2.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/5/15 22:01 # @Author : lingxiangxiang # @File : demo2.py # pip install redis import redis r = redis.Redis(host='192.168.48.136', port=6379) print(r.get("aaa").decode()) r.set('mystring', 'good good study, day day up!') print(r.get("mystring")) r.mse...
9beb3d14b159ecc98e010dd65f5383a56ebcbdf0
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03045/s120205306.py
c41c5b1846bedcb60243b65daea80c69e580d6b8
[]
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
878
py
s120205306.py
import sys input = sys.stdin.buffer.readline n, m = map(int, input().split()) # union-find # xの根を求める def find(x): if par[x] < 0: return x else: par[x] = find(par[x]) return par[x] # xとyの属する集合の併合 def unite(x, y): x = find(x) y = find(y) if x == y: return False ...
c604dc0552370de4a4611eaceaaea4129137fbec
856327287c3594e8527e2554c036b65e394f7191
/word2code/res/text&code8/FarFromPrimes.py
3ded41c0a4e7cc23d92cf3be074038e11611cc85
[]
no_license
jvalansi/word2code
93dccfc74a2eafa242cd0a27eff540ba1a75895d
6c5d1bb46a3001342739473773c1851e8e8f757a
refs/heads/master
2020-04-06T04:31:43.071229
2015-11-04T17:26:57
2015-11-04T17:26:57
29,089,141
0
0
null
null
null
null
UTF-8
Python
false
false
2,406
py
FarFromPrimes.py
from problem_utils import * class FarFromPrimes: def count(self, A, B): input_int1 = A input_int2 = B # input_int1 prime number is an integer greater than 1 that has no positive divisors other than 1 and itself. # The first prime numbers are 2, 3, 5, 7, 1...
e4a3f09794e67c07ba74f3fe51891b166da9e5eb
93f52618023225955f6a00cf8007da2c415d2fcc
/train_and_eval_templates.py
2f1dbf63350a26f1e4ed94e9bfbf558802b555ab
[]
no_license
ablodge/pytorch-templates
cdaa40a9a7370d1da2be9df66d82ded1ed068f5d
04731c9813ba829f9b3040dfa9c7462639f7b6cf
refs/heads/master
2020-04-10T07:40:37.774679
2019-02-20T17:31:56
2019-02-20T17:31:56
160,885,951
0
0
null
null
null
null
UTF-8
Python
false
false
3,691
py
train_and_eval_templates.py
import torch import time import math from sklearn.model_selection import ParameterGrid from utils import ProgressBar def train(net, data, model_state=None, epochs=10, early_stopping_criterion=-1): progress = ProgressBar('Training', epochs) net.train() early_stopping = 0 for epoch in range(epochs): ...
b578bc0605363f9810f9c1c590c279c6fcb6e6ee
d3aac9f68cd3359d4f42bde16e7d6855015bfa25
/coolsite/woman/migrations/0002_auto_20210729_1145.py
e07a5f503288daac0da1f7c529c9556a0ff64078
[]
no_license
my4ever/coolsite
539e21e95f2da79d1af4dbbb3e7d2bd3bc6257b9
7b48f3d2f725a78cd95ca887e085568f7c547f83
refs/heads/main
2023-06-26T23:55:55.670869
2021-07-30T17:35:30
2021-07-30T17:35:30
390,052,796
0
0
null
null
null
null
UTF-8
Python
false
false
870
py
0002_auto_20210729_1145.py
# Generated by Django 3.2 on 2021-07-29 11:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('woman', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='women', options={'ordering': ('id',), 'v...
cb0aaaae55aa18c7f129889e890c01ffd411cc4b
d2f50124ff3bec70b9b3139ecb063b06e526781d
/productos/migrations/0015_auto_20170314_1342.py
0b5e61fd20847a17ba522ffc2c99727a7027f5dc
[]
no_license
odecsarrollo/odecopack-componentes
e8d993f089bf53bbf3c53d1265e70ac5c06b59b8
b583a115fb30205d358d97644c38d66636b573ff
refs/heads/master
2022-12-12T00:33:02.874268
2020-08-13T18:45:01
2020-08-13T18:45:01
189,262,705
0
0
null
2022-12-08T11:23:46
2019-05-29T16:37:21
Python
UTF-8
Python
false
false
671
py
0015_auto_20170314_1342.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-14 18:42 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('productos', '0014_auto_20170314_1326'), ] operatio...
cf5a2c301ef25638cc2ec4c9e23bd98f10a7c466
e0c0248dbc6e1405c9068afb8bfec7dce79f0e93
/contact_manager/ContactManager.py
55b5c4e72e2f7191e400ca3ec238dd5ac51f9c9b
[]
no_license
annwitbrock/contactmanager
5ece55231b800c70c5f23c0a3947fdb86a5aafd5
d1e8fe9f41b388ad268ec0a59fcdbfe2a1fc5464
refs/heads/master
2021-01-20T02:38:03.301841
2015-12-14T21:14:55
2015-12-14T21:14:55
24,328,102
0
1
null
2015-12-14T21:14:55
2014-09-22T12:42:22
Python
UTF-8
Python
false
false
224
py
ContactManager.py
class ContactManager(object): def __init__(self): self.contact_list = [] def contacts(self): return self.contact_list def add_contact(self, contact): self.contact_list.append(contact)
105ddb42fb6c813473069a46a1ffdd3106da4c67
0d09f97249204909187be1f9fb56a765ddf7e991
/hw1/hw6.py
13f373f2ae378b5d5ccfca656121cb6c762c7540
[]
no_license
bozhedon/Homework
9936b0e27de86bbb28b129923e1565091fbfec50
520b38afb715cda2dbbdcb24d52453521b999ea2
refs/heads/master
2020-07-28T04:17:43.629181
2019-12-30T02:38:40
2019-12-30T02:38:40
209,306,841
0
0
null
null
null
null
UTF-8
Python
false
false
633
py
hw6.py
def get_largest_perimiter(L): p = 0 n = len(L) for i in range(n-2): for j in range(i + 1, n-1): for k in range(j + 1, n): a = float(L[i]) b = float(L[j]) c = float(L[k]) if a + b > c and a + c > b and b + c > a and a + b + c...
c1062d7d92b5b4d3718dbe47652990c9d2a9ee0f
b16bc512603cbe3bdc5a56586cfc9147fe5fb3f6
/venv/lib/python3.6/token.py
f9930030765f26643ccecbacca37af008daed394
[]
no_license
hoang-ho/TechTogether
caa565b14165c7b0889bd4232098e16a0137ba67
fa4ca8375ab00d1791d2fce02384503eff5df7e0
refs/heads/master
2020-05-01T08:24:22.561868
2019-05-13T06:55:46
2019-05-13T06:55:46
177,377,979
2
2
null
2019-05-13T06:55:47
2019-03-24T06:15:31
Python
UTF-8
Python
false
false
47
py
token.py
/Users/hoangho/anaconda3/lib/python3.6/token.py
f7c0b1fa2737ab9645418e1a03d24e488eb9f34e
983a4ccd81ddd427cc3680584515785a7e89d7d8
/services/apps/messages/__init__.py
0f9b01e8779158d3b4c58b859ae79dbcfcdcd384
[]
no_license
wokkaflokka/django-services
e373e0150fbada334601f3984473d52457ab94b3
99990a8491406c387f7a9544165b0b76b7b2bbdd
refs/heads/master
2020-04-09T02:56:31.931985
2014-12-18T03:16:40
2014-12-18T03:16:40
21,641,719
0
1
null
null
null
null
UTF-8
Python
false
false
575
py
__init__.py
from django.core.cache import cache def build_cache_key(user): return "mesage_key_%s" % user.id def set_message(user, message, message_type='default'): cache_key = build_cache_key(user) pending_messages = cache.get(cache_key, []) pending_messages.append({'message_type': message_type, "value":message}) ...
91be42d69ad36688c49f17900336dd9b08a87206
1fadfab8fd8bf96509e0c6cbe030d2420fc059ff
/pythainlp/tag/chunk.py
858f9bf986e8c8004fc8f40335dfc51212cbf6e0
[ "Apache-2.0", "CC0-1.0", "LicenseRef-scancode-public-domain", "CC-BY-4.0" ]
permissive
bact/pythainlp
a640506fec48f4a54c5e517f55bf2f7187ffa622
332ebf2b70cc816f3343167165bcd4dbb6d87b4c
refs/heads/dev
2021-11-14T05:28:50.940381
2021-11-13T17:41:38
2021-11-13T17:41:38
147,246,662
0
0
Apache-2.0
2019-08-20T13:37:38
2018-09-03T19:45:31
Jupyter Notebook
UTF-8
Python
false
false
914
py
chunk.py
# -*- coding: utf-8 -*- from typing import List, Tuple def chunk_parse( sent: List[Tuple[str, str]], engine: str="crf", corpus: str="orchidpp" ) -> List[str]: """ This function parse thai sentence to phrase structure in IOB format. :param list sent: list [(word,part-of-speech)] :param str...
b2af65b0101ac7d5f36119187039eac35d0ae699
f858083626f57a9093abcff9a28c0888f732e7a6
/asyncButtonPressTest.py
cc76903da5de030bb05ec6fda507022283b0e3ed
[]
no_license
pbiglete/SmartArcadeController
4bd5cde9d4cef7129e9fffc5ad3c62d22a0252df
356020d799222687a2dc97f020e964286ceeeeec
refs/heads/master
2022-01-30T08:20:55.264710
2019-09-06T00:14:33
2019-09-06T00:52:37
198,311,918
1
0
null
null
null
null
UTF-8
Python
false
false
804
py
asyncButtonPressTest.py
import cInit from time import sleep import time import datetime import asyncio from recorderSession import session async def main(): buttonList = cInit.buttonList start_Time = time.time() print("Asynchronous Button Presses") print("---------------------------") while True: await async...
91dbf5a90211cab5e882e486925cf82e70316295
83bb4d4591c25a51568fddaa6f12fd83f3ce0409
/3. Largest prime factor.py
f7f1347ec22bacfd32f2372aff986b4f3ff191e4
[]
no_license
evgenii-eremeev/euler_project
f3c7a1301b0655116f3c7dbae1b84a3144b0a4a0
8a2941a58a6398b217a8eb692c22cd27005465f2
refs/heads/master
2023-01-13T05:13:39.023884
2015-10-27T11:07:42
2015-10-27T11:07:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
3. Largest prime factor.py
""" https://projecteuler.net/problem=3 The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? """ from helpers.primes import make_primes primes = make_primes(10000) TARGET = 600851475143 def factor(target): factors = [] while target != 1: for pri...
bc2b1f268ef8eb3f37be9657d7f3880eb91be8f6
2af3537d85dde8abc5731e0f0c003a561e783cbc
/main.py
ea30816bc1f5c173130b6dfac0b38740bf08da5b
[]
no_license
solohacks/Port-Scanner
5ed8d2a379603c72b57704b4a2e4bca932a7e82d
d49252a935ae4e44e82f89fd580ade134b19ceb4
refs/heads/main
2023-09-05T18:48:45.195652
2021-11-26T00:51:26
2021-11-26T00:51:26
432,014,290
0
0
null
null
null
null
UTF-8
Python
false
false
2,055
py
main.py
import os, socket, threading, concurrent.futures, colorama, webbrowser from colorama import Fore colorama.init() webbrowser.open_new_tab("https://discord.gg/yrcAqymE5M") os.system(f"title Created By Solo!") LIGHT_RED = Fore.LIGHTRED_EX LIGHT_CYAN = Fore.LIGHTCYAN_EX LIGHT_GREEN = Fore.LIGHTGREEN_EX print_lock = thre...
ea8011d4c99f77f51117776c0c342bc4b5d17802
5f92413d96a5368931cc47a8df00e5e84d6b8199
/main.py
ebe0d6d7223c79060cf4ca74dd22ff32459853e5
[]
no_license
machopman/template
68c88ea25d188829b34feac7ec7d25dcde1c55cb
3247110890b376e911fa4221f935aa79992041f6
refs/heads/master
2022-11-27T06:11:04.003358
2018-05-18T17:37:32
2018-05-18T17:37:32
133,804,609
0
0
null
2022-11-21T22:18:23
2018-05-17T11:37:03
Python
UTF-8
Python
false
false
4,638
py
main.py
from flask import Flask, request, abort,jsonify from linebot import (LineBotApi, WebhookHandler) from linebot.exceptions import (InvalidSignatureError) from linebot.models import (MessageEvent, TextMessage, TextSendMessage, TemplateSendMessage, CarouselTemplate, CarouselColumn, PostbackTempl...
dda73cc1e1d1417c294e4664e485abcbbc9aaa01
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/entreati.py
80c447db16b0183e35734ca2f10ae3977085ef8a
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
1,246
py
entreati.py
ii = [('CookGHP3.py', 1), ('CoolWHM2.py', 3), ('GodwWSL2.py', 2), ('ChanWS.py', 1), ('FerrSDO3.py', 3), ('WilbRLW4.py', 2), ('AubePRP2.py', 1), ('CookGHP.py', 3), ('LeakWTI2.py', 1), ('KembFJ1.py', 2), ('PettTHE.py', 1), ('AubePRP.py', 5), ('ChalTPW2.py', 1), ('WilbRLW2.py', 1), ('ClarGE2.py', 1), ('CarlTFR.py', 6), ('...
d449cc2d831f7a0a4c166a2f20a7015181cdf03c
594eaa863151abd985874718d465a2473bc1f8d6
/recsim_ng/applications/ecosystem_simulation/user_test.py
c5ecbaa81e6e71f4b558aab18a9d18a5d1b22830
[ "Apache-2.0" ]
permissive
isabella232/recsim_ng
d81007971e48f1730a01fac4149ad06069e7d22d
591b9d31adb8e0a1f6a233037378102cc9169f4e
refs/heads/master
2023-08-24T10:29:20.299553
2021-11-05T19:22:19
2021-11-05T19:25:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,944
py
user_test.py
# coding=utf-8 # Copyright 2021 The RecSim Authors. # # 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...
7703b5a90a080ca2ad4c45a9e14b665e3426cb33
10ce67169530fdbd76e00acd3f75885c4aafc0b7
/python/libs/daqmx/task/co.py
c89a1ccd3b27e792926c8126611b22909af352ea
[]
no_license
creilly/sitzlabrad
f00bee4422d4dded2807bd59c9c982425ea113ad
8a229683e228e8dd6d4dabad524f1b86e873874b
refs/heads/master
2021-01-17T03:35:40.131281
2020-06-17T21:12:19
2020-06-17T21:12:19
42,340,299
0
0
null
null
null
null
UTF-8
Python
false
false
2,450
py
co.py
from daqmx import * from daqmx.task import Task from ctypes import * class GenerationStoppedException(Exception): def __init__(self): Exception.__init__(self,'pulse generation stopped') class COTask(Task): def __init__(self,name): Task.__init__(self,name) daqmx( dll.DAQmxCf...
c154b84149e1acffc1a3bd571452b50178888e07
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_168/75.py
b0d7b561cded62b71745eb077f54e7bd4bfe27d4
[]
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
1,373
py
75.py
#!/usr/bin/env python from sys import stdin, stderr T = int(stdin.readline()) def Solve(R, C, arrows): ret = 0 for arrow in arrows: safe = False save = False for nearr in arrows: if arrow == nearr: continue if arrow[0] == nearr[0]: save = True ...
903ab4ca9311df93a5954453c79d51d889b041c9
ab0ebe1b2bc2494a64be4bd8c2281466362473f2
/test.py
1a7d7ee0e87586cd697b2371ac6b5e33a4c6ac12
[]
no_license
pramuditodhoni/Kompas.idScrape
c37a96a9715c8d9ea81561b8619c5b01993584a5
fc4808d03d93ea5fa0de6a7aa9d5420fa65030f6
refs/heads/master
2022-10-10T20:26:17.278995
2020-06-11T15:12:16
2020-06-11T15:12:16
270,520,069
0
0
null
null
null
null
UTF-8
Python
false
false
1,006
py
test.py
import requests from bs4 import BeautifulSoup import pandas as pd kompas_id = [] for x in range(1,11): url = 'https://kompas.id/kategori/english/page/' response = requests.get(url + str(x)) soup = BeautifulSoup(response.content, 'html5lib') content = soup.find_all('div', attrs={'class': 'border-b bor...
d109b7ec1e876812fb49106b7218ea7ab93ea299
c6ef731dd94df9d48a905bce6213c695ccb649ee
/custom.py
44f4415938ad2645ae3e8c8e91020d1250c1b3f0
[]
no_license
IoTtalk/EnvironmentSensor
49dc1faf022c0668471622741099cdd6fbdb6985
90475eae1e019c947b6476e407ffb4c07f63fffe
refs/heads/master
2023-02-03T13:15:21.783156
2020-12-08T17:23:18
2020-12-08T17:23:18
319,707,203
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
custom.py
import DAN ServerURL='https://DomainName' Comm_interval = 15 # unit:second def profile_init(): DAN.profile['dm_name']='Model1' DAN.profile['d_name']='EnvX' #DAN.get_mac_addr()[-4:] def odf(): # int only return [] def idf(): return [ ('AtPressure', int), ('Humidity', int), ('Te...
c3fb78fb7a2c6f6126688b52e4c92591ea56581b
ea5f27d4b778681a9290f0da508687225545e834
/src/adapters/controllers/user/DeleteUserController.py
ed254b72a2ab83d429ff78f209b26aa76dcf99d2
[]
no_license
lucasmmo/api-clean-arch-python
5f68f77e385b4dc707c39abdc62930b4ee7cd2f7
3c3ae43563872fdfaeedc0d3177398d8d5bc4831
refs/heads/master
2023-03-11T03:58:41.991457
2021-03-04T04:05:52
2021-03-04T04:05:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
DeleteUserController.py
""" to instance this class we need the DeleteUserInteractor to do the delete """ class DeleteUserController: def __init__(self, interactor, user_id): self.interactor = interactor self.user_id = user_id def handle(self): try: return self.interactor.delete_user_of_databas...
1f4cee215bcb500f07d0756ee1cbe9ffcb4577ff
9f9b5bd49147fdb0f09be748374c3a63d0b36cb4
/INTERFACE.py
7819d39a5a35d1e15b591ee7baafc6745f3aaab1
[]
no_license
SalazarAgMa/Proyecto_Final_GUI
bbdee46519b4c9f9eb3df074c215928da812c16c
07046431d93f270e055956f3a848bddf6dc9808f
refs/heads/main
2023-07-05T01:58:54.727246
2021-08-09T22:14:37
2021-08-09T22:14:37
394,453,073
0
0
null
null
null
null
UTF-8
Python
false
false
69,677
py
INTERFACE.py
################################################################################################ # Mineria de Datos 2021-2 # # Grupo: 01 # # ...
e398162cc3981cefd03bc2304ccf5a44bf7d4204
0399b19d5ec3d2997c59c2f4c9873da2aba5d3c9
/driver27/views.py
0190a857c21c3053480eb58d11cbc63147e608c1
[ "MIT" ]
permissive
linglongscru/django-driver27
a45471f9d8e93f5d1a559f65496e804ef5998f92
ecb0e2e4f20fdd2cc4b9d7fa9b1ba5d763bbc991
refs/heads/develop
2021-01-22T18:07:52.219494
2017-03-15T10:47:26
2017-03-15T10:47:26
85,060,905
0
0
null
2017-03-15T10:44:37
2017-03-15T10:44:37
null
UTF-8
Python
false
false
9,527
py
views.py
# -*- coding: utf-8 -*- from django.db.models import Count from django.http import Http404 from django.shortcuts import render from django.utils.translation import ugettext as _ from .models import Competition, Season, Race from .records import get_record_config, get_record_label_dict from .punctuation import get_punc...
009d68ebe468a51e95fcdd0cd8eba509ee270a56
007f5799981f1f1bbee9b4cb694ad78afe7e336d
/cellcount/models.py
d6ebc9a5249140e72037dd807c835360bcb666e5
[ "MIT" ]
permissive
sanmormig/cellcount
970ab42c044f87b33911ab7e336f44f23543185d
cc57e617ad118d31bb0cc15ad0594957a16da41a
refs/heads/master
2022-03-09T08:02:34.833826
2019-04-16T14:50:35
2019-04-16T14:50:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,667
py
models.py
import torch import torch.nn as nn from .utils import Flatten def ConvBNReLUPool(i, o, bn=True, kernel_size=(3, 3), stride=1, padding=0, p=0.5, pool=False, leaky=True): model = [nn.Conv2d(i, o, kernel_size=kernel_size, stride=stride, padding=padding)] if bn: ...
1af26435d80489637b32459ad1be19f62436bbd6
fbc112cefee56ea7f7fbe9943fc216216e5db2d8
/cWORKcode/crypto_modules/testing/matrix encryption.py
dd55b5e5a8bc05169ed2943f9c6977f042eba462
[]
no_license
Giles-Turnbull/cryptography-automation
88bcb01021869f5dd0ee1512003df3a4be10ab10
21c15b91f638a75ae95a66c4fb8bb40c228aef0a
refs/heads/main
2022-12-31T00:07:52.074462
2020-10-21T17:30:21
2020-10-21T17:30:21
306,085,897
0
0
null
null
null
null
UTF-8
Python
false
false
756
py
matrix encryption.py
import random def matrix_enc(): text = "quantum oxide indians soma north survival dawn obj gr acknowledged railroad adaptor spots photographers computation" encrypted_text = "" alphabet1 = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',...
d936c1c2db805090be82f90ca29841e88f0a46f8
7829d22ea38576231cd286d6be4d66ec03783091
/Python/lab/lab-2/step.py
414fca4122034980a7b55fa9fc8d720cd4c36868
[]
no_license
cuppar/course
10fd118e9b4b053cd11065864324877adefcb180
5fe112d34987de972dfb91c68ff5ab147d5f42c9
refs/heads/master
2020-03-07T02:43:32.760145
2018-06-26T15:41:33
2018-06-26T15:41:33
127,215,460
2
0
null
null
null
null
UTF-8
Python
false
false
317
py
step.py
result = [] for i in range(10000): if i % 2 == 1\ and i % 3 == 2\ and i % 4 == 3\ and i % 5 == 4\ and i % 6 == 5\ and i % 7 == 0: result.append(i) j = 0 for i in result: print(i, ', ', end=' ') j = j+1 if j % 5 == 0: print()
156849bb588cbf85df36b6e25c0e300d92c2f231
7849b6c610d8b0e423560f817ec3526c08c5a72c
/pipeline/mk_html_cond_table.py
40f7335dbe68f5ed8e26e225be9ac1e737fd6d0a
[ "BSD-2-Clause" ]
permissive
shuo-zhou/openfmri
6e5fb47ac66c19df29c4db98df587107c986a262
6514f26510fa889fa6679babbbc92b29f8dd6b0a
refs/heads/master
2022-10-19T22:27:57.258636
2017-06-22T20:48:46
2017-06-22T20:48:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,042
py
mk_html_cond_table.py
study='ds102' f=open(study+'/condition_key.txt') ckey=f.readlines() f.close() f=open(study+'/task_key.txt') tkey=f.readlines() f.close() print '<table border="1">' print '<caption><EM>Description of tasks and conditions</EM></caption>' for task in range(len(tkey)): print '<tr><th colspan="2">%s'%tkey[task].strip...
addb205b058b041c51f6818c2214e6888c533f71
af27f676d14a93908d6490ad70d44dda0d4a2acd
/File Handling in Python/Sum_of_numbers.py
2e0ae1d2afa0fe2d8e8dcfdd3dc2e4f80c0bec6f
[]
no_license
snehameena/Python-Basics-with-Example
c9cab2fde5b0eaf8819b7abcb662f4aafafb610c
7a149505cc1cdaf62103b6452869874da01ebda6
refs/heads/master
2023-02-10T02:14:57.020815
2021-01-05T09:48:10
2021-01-05T09:48:10
321,562,360
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
Sum_of_numbers.py
file = open("Numbers.txt","r") total_num = file.readline() ## Reads the first line of total number of integers sum = 0 for i in range(int(total_num)): sum = sum + int(file.readline()) print(sum) file.close()
3dfd3af3b7e78905181c1892550b56071a0a2e90
8c15eae971273e7528778742dcf97f050cdcc34d
/Python/lc_1000_min_cost_merge_stones.py
e920a4a21649193321c00e1048e8091d47f7b4db
[ "MIT" ]
permissive
cmattey/leetcode_problems
3582869fb66d9d587dad0ef177fa8598e6dd3825
fe57e668db23f7c480835c0a10f363d718fbaefd
refs/heads/master
2021-12-14T22:08:28.385130
2021-12-08T06:11:09
2021-12-08T06:11:09
194,169,863
6
1
null
2020-01-21T09:02:13
2019-06-27T22:15:37
Python
UTF-8
Python
false
false
3,903
py
lc_1000_min_cost_merge_stones.py
# Oct 28th '19 # Time: O(n^3) # Space: O(n^2) for dict class Solution: def mergeStones(self, stones: List[int], K: int) -> int: """ Using dp dp[i][j] = state, min_cost to combine stones from index i to j(inclusive) dp[i][j] = min(dp[i][temp]+dp[temp+1][j] for temp in range(i,j, K-...
9f3fc137921427ecd61d66c7238aaf7aaf6df744
5d75a4c2fa1d49bf6bf8e92ca4ea44cc5a71b659
/setup.py
331dc2f7acea36fac03308fa9927d2919c47bdf5
[ "MIT" ]
permissive
LordArma/cambrac
9d42de78b428e8aed7a524024a3f5296c571c501
c781679b59e7d7a39f05680c1892fea18478f883
refs/heads/master
2023-02-06T04:53:02.851060
2020-12-29T01:39:21
2020-12-29T01:39:21
316,350,860
3
0
null
null
null
null
UTF-8
Python
false
false
942
py
setup.py
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() dependencies = [ 'cycler>=0.10.0', 'kiwisolver>=1.3.1', 'matplotlib>=3.3.3', 'numpy>=1.19.4', 'Pillow>=8.0.1', 'pyparsing>=2.4.7', 'python-dateutil>=2.8.1', 'six>=1.15.0'...
5cd718d632daa56768e3c79f2bd3d572cdd46c61
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_203/570.py
4b96288d73e0cf2781e87f0b3fb78a807aacdbac
[]
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
6,198
py
570.py
# -*- coding: utf-8 -*- """ Created on Fri Apr 14 19:33:12 2017 @author: Tom """ import itertools #fname = 'a.in' fname = 'A-large.in' oname = fname[:-3]+'.out' with open(fname,'r') as f: with open(oname,'w') as o: T = int(f.readline().strip()) for case in range(1,T+1): ...
f9758fe7a5fea962646702ad493123fcca03ea39
a53b0e823d53a4eaf7744fae2a10298b1c21f7a2
/lab/exploit-3.py
fe71f1d973df1d18f0bb92d3abbc145f4a12f4e6
[ "MIT" ]
permissive
mayanksha/CS628
9519f19eec9dfa3e9084b5b3ff41cc81b3a261aa
84eb9aac32fe13282df098f3c5c80f2108ed1bd6
refs/heads/master
2020-12-28T16:35:08.159098
2020-02-05T09:17:33
2020-02-05T09:17:33
238,407,640
0
0
null
null
null
null
UTF-8
Python
false
false
3,088
py
exploit-3.py
#!/usr/bin/python import sys import socket import traceback import urllib import struct import time #### ## You might find it useful to define variables that store various ## stack or function addresses from the zookd / zookfs processes, ## which you can then use in build_exploit(); the following are just ## examples...
2d8d65cbf797de54998aaa62231f6f0b91fd62be
35c5dc019918fab3091896cecf32f5baabe45dcf
/at_server-master/testtools/tools/create_credit.py
bfa81cc7427302e90b9dd0789150de9e1ddfa40c
[]
no_license
xiaominwanglast/reactjs
4437b9d4129abf359def9cf065f8f06ae065b67f
1621ee90681a7796da7ad7173cc2a9b67494ed03
refs/heads/master
2022-10-08T14:58:52.721064
2020-06-11T10:05:22
2020-06-11T10:05:22
271,511,291
1
0
null
null
null
null
UTF-8
Python
false
false
1,195
py
create_credit.py
#!/usr/bin/python # -*- coding: UTF-8 -*- from faker import Faker from datetime import datetime class create_credit(): def __init__(self, cardid='', name=''): self.f = Faker(locale='zh_CN') _now = datetime.now().strftime('%Y') cardid = cardid.replace(' ', '') if len(str(cardid)) ...
9c5000958c2579f120d71790d31032ab05753eb4
c95f1b43d5b724f61040bc8e8b476bd9b759a67d
/Strings.py
18d452d04f9f4e2eeab6cdc42c766b83e360bb25
[]
no_license
sangha25/PythonTutorials
c0a31c4047bee56036dc0ea9b2bf938d0924a500
2e19cb4570d07426516494c4a3294a3cedb75095
refs/heads/master
2020-03-27T19:45:43.382546
2018-11-04T08:51:51
2018-11-04T08:51:51
147,009,885
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
Strings.py
from django.template.defaultfilters import upper, lower name="Avinash Thakur" # find number of character in string. Strlen=len(name) print(Strlen) # upper case to string print(upper(name)) #lower case to string print(lower(name)) title="your marks are {}".format(84) print(title) # concat to string str="California{}".f...
0b7606a5d55ade2fd0587a255a8dc96a48e5c6fc
36cfa17ac6794a84bf838b1bf06797cdb8c4672f
/session.py
e567d04190d70e532b3ae965039120d057089226
[]
no_license
alum/uploader
1fc7af090cfa05f1da9c572176030deb0c3a115c
24bf72e7583b67ebfe747f0c2eafd3d9df2d4e1a
refs/heads/master
2021-01-23T08:52:41.508130
2012-08-22T23:40:12
2012-08-22T23:40:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,406
py
session.py
''' A singleton type session manager that sets and gets session variables to/from disk. We could also use a database or other type of shared data store (like memcached/riak/etc.) for saving and sharing sessions between app workers. ''' import os import pickle # Local imports import filehelper import config from dateti...
7f629c2c41d40672f7cd04c261270a46b6fdef33
d1a01bf8b2bebe7b40906b4e294a53fec863149c
/src/app/database/queries/collection.py
088906e63f958cf0501e8953c11efd851a35f5f6
[]
no_license
DSC-VJTI/Boutique-Server
3c0a2af81a6fab9698876238df3263e5b2ecafa1
6b1cf9ba7cf4a4ba6c0167260663bf50017b8fa6
refs/heads/main
2023-05-13T07:08:10.975992
2021-05-29T09:08:41
2021-05-29T09:08:41
336,718,822
0
0
null
null
null
null
UTF-8
Python
false
false
1,726
py
collection.py
from exceptions.collection import collection_already_exists_exception from exceptions.collection import collection_not_found_exception from sqlalchemy.exc import IntegrityError from sqlalchemy.orm import Session from ..models import collection from ..schemas.collection import CollectionBase class Collection: @st...
497a32e4195b84bdeaeca41552d78ad1b66b0a0a
517ec70b64c6bd8f293ca169643ad1245e5665dc
/arcticapi/api/models.py
24c85cfd2a3dbdf4734e31f93859f8de7a27879d
[]
no_license
savbird/arcticapi
2918379ae416563cb50e0f550e572e4d9711be5b
fb1a0a7cee27fb07274b8d39028e4b46f1c08791
refs/heads/master
2021-05-19T13:06:27.996858
2020-03-31T19:45:12
2020-03-31T19:45:12
251,711,500
0
0
null
null
null
null
UTF-8
Python
false
false
1,081
py
models.py
from django.db import models from api.fields import JSONField # Create your models here. class Category(models.Model): title = models.TextField() class Product(models.Model): #PK should never be a SSN, drivers license number, etc. They should not get released to the world #id = models.AutoField(primary_k...
e00ae307d8a8724e98e9f4a1bf2e94fd74175c1d
c84d09ca86a189ce1e282f86d3e4fa6dfdcc28f6
/3block/online/helpers/search_bar.py
d3eb177606758147c321e666c9e4d7659c959800
[]
no_license
2gisprojectT/akulov-aliexpress
9053474180770aecfff6118b4141ed3c206182ed
64cce2434819ad9057e0c7ef33965cf7b2fc2e30
refs/heads/master
2021-01-02T09:02:47.043846
2014-11-07T06:45:25
2014-11-07T06:45:25
24,887,201
0
1
null
null
null
null
UTF-8
Python
false
false
1,824
py
search_bar.py
from online.helpers.base_component import BaseComponent from selenium.webdriver.common.keys import Keys import time class SearchBar(BaseComponent): selectors = { 'self': '.online__searchBar', 'input': '.searchBar__form .searchBar__textfield._refbook .suggest__input', 'submit': '.searchBar__...