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
1c83bc48a58b972789a894b10047d6ebc7f083a3
df0c142be5071e96124842cdb809b5bf335ef298
/app/schemas.py
7f4ae88e9e6e100cc34996180317aba25a23aa20
[]
no_license
HashtrustTechnologies/fastapi-auth
d5faf3878bc182c98b71110b45b2d18815160d3a
b036657be940fab12124c5cedc93e5e1e5c342d4
refs/heads/main
2023-07-15T02:20:37.224467
2021-08-15T05:56:23
2021-08-15T05:56:23
396,233,198
1
0
null
null
null
null
UTF-8
Python
false
false
1,182
py
schemas.py
from typing import Optional from pydantic import BaseModel, EmailStr class UserBase(BaseModel): email: EmailStr first_name: Optional[str] = None last_name: Optional[str] = None class UserIn(UserBase): password: str class Config: orm_mode = True class UserOut(UserBase): id: int ...
8469db177e79ff1960b75d5743ad89cc01f53b2e
9c51fe08a585c55d0867c11a6d3f423fb8a6e8cc
/lrv_cosc480_visualisation.py
8305fee351715583c2e5ce666a71b315e38db9c9
[]
no_license
Lrvram94/Cricket-data-analytics
909d4b54e836b0a7009bc42bcf82d6c80ec4afc0
5811a91447c8987a9e6af49820542ccc27b1c2aa
refs/heads/main
2023-02-11T02:31:27.565112
2021-01-15T23:01:55
2021-01-15T23:01:55
330,039,214
0
0
null
null
null
null
UTF-8
Python
false
false
12,348
py
lrv_cosc480_visualisation.py
"""COSC 480 Cricket visualisation project Done by: Venkatasubramanian Lalgudi Ramakrishnan Date: 14/10/2020 Student ID: 82730861 This program visualises IPL Cricket statistics """ import pandas as pd from tkinter import * from tkinter.ttk import * import matplotlib.pyplot as plt import numpy as np import seaborn as...
8939f982e140a983ec2fa367da281c34147bb6a8
5060f084c87f2083c9c12b7f6aebe3542f374b55
/eldecompile/scanner.py
a2b2684bdf5c597e979a44e267480e0e26b60fd2
[]
no_license
ylluminarious/elisp-decompile
dda209644b83c0e8a316bc46d3317fd7b4dee7f2
2b1f28005860981cbb520daac200fc81c6eccc41
refs/heads/master
2020-03-22T13:49:51.715250
2018-07-01T18:46:49
2018-07-01T18:46:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,925
py
scanner.py
"""Scanner for ELISP decompiler We take input from ELISP disassembly """ import re from eldecompile.tok import Token from collections import namedtuple FuncDef = namedtuple('FuncDef', ['name', 'args', 'opt_args', 'docstring', 'interactive', 'fn_type']) def fn_scanner(fp, show_assembl...
283a3e9fa9b5946a44424810625893933dc76b14
30b2be167fcd1feacfcceec18ab8ffb1d089221b
/day07.py
5f8c33dfc1993eeee6ed7e563cda94cc3efcea20
[]
no_license
alphapeter/AoC2017
5d4e660cc3463ec1286fbfa980ff6b1400160a12
0b4f31e29c6034260fd1fbe02a366123ce8c9594
refs/heads/master
2021-05-15T06:04:36.396218
2017-12-30T11:02:31
2017-12-30T11:02:31
115,141,169
0
0
null
null
null
null
UTF-8
Python
false
false
2,550
py
day07.py
import re def calc_a(input): ancestors = set() rows = input.split('\n') # collect all ancestors for row in rows: if '->' in row: children = row.split('->')[1].split() for child in children: ancestors.add(child.replace(',', '')) # get node that's not ...
4c06a59e33df0f9081e2e62d9393c52d92e14d02
6abb92d99ff4218866eafab64390653addbf0d64
/AtCoder/asa/2020/asa0420/c.py
1abcdf2abe396017234ca587eb40a22ae4c4c236
[]
no_license
Johannyjm/c-pro
38a7b81aff872b2246e5c63d6e49ef3dfb0789ae
770f2ac419b31bb0d47c4ee93c717c0c98c1d97d
refs/heads/main
2023-08-18T01:02:23.761499
2023-08-07T15:13:58
2023-08-07T15:13:58
217,938,272
0
0
null
2023-06-25T15:11:37
2019-10-28T00:51:09
C++
UTF-8
Python
false
false
438
py
c.py
import re s = input().split() #list(map(lambda x: x.replace('*', '.'), input().split())) n = int(input()) flg = [False for _ in range(len(s))] for i in range(n): t = '^' + input().replace('*', '.') + '$' for j in range(len(s)): if(len(re.findall(t, s[j])) > 0): flg[j] = True res = ['' for _ in ra...
d38636f80864b3fef931e6799344a3b958c5f86a
7e8d1d814546b52f638d61e74496b2eb402e98ee
/tests/speed/__init__.py
927f41f2657bda94947e8739fbf7abbe48b657b1
[ "MIT" ]
permissive
kklmn/xrt
05851df1119d768660a5d41ef841579f8118576e
5c1a71d9c94a9a455c0f34e323747efa97325240
refs/heads/master
2023-08-18T09:10:49.025912
2023-08-16T09:27:01
2023-08-16T09:27:01
54,989,724
92
31
MIT
2023-07-18T00:00:44
2016-03-29T15:57:47
Python
UTF-8
Python
false
false
2,539
py
__init__.py
# -*- coding: utf-8 -*- r""" .. _tests: Speed tests =========== The scripts used for these tests can be found in ``\tests\speed\`` The following computers have been used: .. [1] A workstation with Intel Core i7-7700K @4.20 GHz×4(8), 16 GB and with AMD FirePro W9100 GPU. Windows 10 with Python 2.7.10 6...
96469057a79f324fd0ed13c796a131737ac13163
7457d2b5e9eb60005631c4408ffee9c589ffe8e0
/play.py
c3b8684fa4b3a66da487f7697d9de10469eeccbd
[]
no_license
federicocunico/snake-rl
d02ff4b1e0d4389d4f27ea64e2a260f01ee73e18
5f7482a95a0ecab3005c1a81426b91a9fad99b51
refs/heads/main
2023-01-05T13:40:50.035866
2020-10-31T19:47:40
2020-10-31T19:47:40
308,695,268
0
0
null
null
null
null
UTF-8
Python
false
false
4,091
py
play.py
# This is a sample Python script. # Press Shift+F10 to execute it or replace it with your code. # Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. import pygame import sys from src.snake_structures import GameState, Direction from src.snake_logic import GameLo...
ace04be93312362804b6fe266ab24ed8dc1d285b
21390dea7f5b79ab66776897541ac36c902b5df0
/python/test/recursion.py
b506d5af5ed7d61b30ae2adff726c4cab234abe0
[]
no_license
wilsonfly/test_module
2149b4ba5d567fe6222ceb36a4e5b0aad067e039
76f0875eff308c5df1278975f19a521d69fd6764
refs/heads/master
2021-01-18T18:29:50.443046
2020-07-24T08:32:34
2020-07-24T08:32:34
10,192,384
1
0
null
null
null
null
UTF-8
Python
false
false
458
py
recursion.py
#!/usr/bin/env python def my_power(x,n): result = 1 for i in range(n): result *= x return result def my_power_2(x,n): result = 1 for i in range(1,n): result *= x return result def my_power_3(x,n): if n==0: return 1 return x*my_power_3(x,n-1) ret = my_power(2,3...
22bc998ef2fe9e9325980f683998405bc5722643
4d62a51a08c6c064f55ffaf312173d1012d2e29f
/implementation/Python/lbm_2d_3d_example/pylb/__init__.py
50b01f451eec78daacd0f479b8fb7b130d98e1d7
[ "MIT" ]
permissive
Dwii/Master-Thesis
ab9f2cff445434dd7203e4c5b7792d64dd232111
42c21f2e6e61c5161f82255a5293334d7e85cbea
refs/heads/master
2020-07-29T01:01:36.588757
2018-02-01T16:52:33
2018-02-01T16:52:33
73,687,951
3
1
null
null
null
null
UTF-8
Python
false
false
40
py
__init__.py
__all__ = ["block", "multi", "lattice"]
f05a334724a24021b413b61c84b85efc67144192
fdd3254d7326e85ae23fe99ffa33181abba026fa
/the_stripper.py
6dbecde1ec3f6a653eecc228247eb459b1977ae4
[]
no_license
ChimneySthlm/the_stripper
47fabc5552b7796daeca8780763529ac8d23f842
0ff5a1b179aff2c9d5c37c5bd496619307f58777
refs/heads/master
2016-09-06T10:44:51.426270
2013-01-14T12:06:00
2013-01-14T12:06:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
792
py
the_stripper.py
#import ElementTree from xml.etree import ElementTree #set input file import Tkinter,tkFileDialog root = Tkinter.Tk() file = tkFileDialog.askopenfile(parent=root,mode='rb',title='Choose a file') tree = ElementTree.parse(file) # load all of the name columns and check if they start with VFX_ (to search another column -...
3143f73aa3336d5d108a3c8ee434bec123c727fd
21c25fb5df3a9616dd9f6fe4ab485b19079780e9
/apis/views.py
d1c70166ae28764ffa93abb5c59521ba02772a4e
[]
no_license
marcus-aurelianus/backend
59c8d495a714bf6e2184fa1b06618dcdee6c36a5
9a9b9282d389622bdf6e14ac8e8a2698ba7702ec
refs/heads/master
2020-03-28T08:48:13.378885
2018-09-08T14:35:03
2018-09-08T14:35:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,116
py
views.py
from django.contrib.auth import authenticate, login, logout from django.core.cache import cache from django.core.cache.backends.base import DEFAULT_TIMEOUT from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_http_methods from apis.authy import authy_create_user, send_s...
afef11fb48d1f94e7ce36836de02097fd6767f0b
ffb72f901652b05b7afa6ef6861ce75f819b38be
/spark_work_1_29.py
f437326a7767892aa6e02ae2a319ea97c0340ba8
[]
no_license
enaj1125/Insight_project_2017
f8080d7de0f9c1c079a5924e3e34e21ee3752d2c
ffcd99cce26ae5b6ab35d06e54d784e103c647ac
refs/heads/master
2021-01-11T16:15:14.000425
2017-02-09T00:23:40
2017-02-09T00:23:40
80,049,107
0
0
null
null
null
null
UTF-8
Python
false
false
1,343
py
spark_work_1_29.py
import pyspark import sys import json import datetime, time from time import strftime from pyspark import SparkConf, SparkContext from elasticsearch import Elasticsearch conf = SparkConf().setAppName("YanJ_app").setMaster("spark://ip-172-31-1-12:7077") sc = SparkContext(conf = conf) # Input files textFile = sc.textFil...
1350911fbc504296351499162c0a06b8c9995826
4299fc92456137033335746ec40e8f838d49ac2c
/src/playground/tf_image_split.py
7935b08f57c9f165823bdeb6e5b19fa1e567a6de
[]
no_license
lukaszbinden/learning-object-representations-by-mixing-scenes
f2a8f883b9e11e9b784b207b37be268b3eadb399
14fe359f4ee6910b6f1adff92b27b922bc8aa28e
refs/heads/master
2020-03-25T21:09:15.934773
2019-10-30T21:35:26
2019-10-30T21:35:26
144,161,870
0
0
null
null
null
null
UTF-8
Python
false
false
1,998
py
tf_image_split.py
import tensorflow as tf filenames = tf.constant(['..\images\lake.png', '..\images\field.png']) labels = tf.constant([0, 1]) patch_size = [100, 100] def parse_fn(file, label): image = tf.image.decode_png(tf.read_file(file), channels=3) print(type(image)) # <class 'tensorflow.python.framework.ops.Tensor'> ...
60f8b96cf20316e47933d68e557e2599325acfd1
734867d1c92d48d97519e255933c939ffc1b22f2
/medium/1302. Deepest Leaves Sum.py
8aa3962dc685b11de19ac207fc9a2f1268dcca95
[]
no_license
oneiromancy/leetcode
a3ce1fd8b98b22ccd458e5aa1189376b530ae4db
4cbebc703457ced41978416cba42ed92c91f3b71
refs/heads/master
2023-05-03T06:59:20.900773
2021-05-24T15:41:27
2021-05-24T15:41:27
342,636,605
0
0
null
null
null
null
UTF-8
Python
false
false
955
py
1302. Deepest Leaves Sum.py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right def deepestLeavesSum(self, root: TreeNode) -> int: q = [root] total = 0 while q: total = 0 for n...
65575f56d3473585893369dcf36ef1fdfe8ec0fc
0a5d2213ae89d7364ca79d8f3ba7f5590766554e
/1.Introductory/IdealGasLaw.py
8719d64583d05085021da43586c5831bf73c973d
[]
no_license
AnkitM18-tech/Python-Introductory-Problems
5f2e4d2b964d17e7820e30faacb0c8233b8c4eff
aa984b4758d812a529eff820a4c5f21fe7fecd12
refs/heads/main
2023-06-25T10:31:33.927879
2021-08-01T17:01:29
2021-08-01T17:01:29
391,678,089
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
IdealGasLaw.py
# -*- coding: utf-8 -*- """ Created on Wed Jun 24 21:20:16 2020 @author: OCAC """ P=float(input("Enter The Pressure(in Pascals):")) V=float(input("Enter The Volume(in Liters):")) R=8.314 t=float(input("Enter The Temperature(in Celsius):")) T=t+273.15 n=(P*V)/(R*T) print("The no of moles of gas=",n,"moles")
f43165a3ac3f46bb8978f4e4b4a90ba31c9664d7
e86a6cd892ef05ce406ea08ff298dcd715930b9e
/examples/regression/house-price-prediction/processes.py
d6549431456514297de21d0f8c2584d64f58147e
[]
no_license
arunsanknar/AlectioSDK
3a124de9e8a4a76df57f7d9992be384a1d4b62aa
4823ed5da37b5bc6b6779c1dc6b4ec4cc2ba8072
refs/heads/master
2023-01-13T16:09:45.928471
2020-06-25T03:42:15
2020-06-25T03:42:15
265,364,127
0
1
null
2020-05-19T20:53:35
2020-05-19T20:53:34
null
UTF-8
Python
false
false
7,800
py
processes.py
# -*- coding: utf-8 -*- """ Created on Fri Jun 12 23:52:22 2020 @author: arun """ import os import yaml import logging import numpy as np import pandas as pd from tqdm import tqdm from scipy.stats import skew from scipy.special import boxcox1p from scipy.stats import boxcox_normmax import torch import torch.nn as nn ...
8424b5f82e027b3f392fb0a33426820f3e7427bb
9f8b76e9cc4b2a8321bc253d22ddeb73f0548326
/kaggle_test_with_resnet.py
da6cc235e11a4e0a8bb9368a2a967c2ac93070e4
[]
no_license
e271141/kaggle
eb36a2a5e902a7a9d9fa04b4015977339973d6c0
a5d851e1add32a57bda730438c3b751576a9342f
refs/heads/master
2021-05-13T14:20:35.168060
2018-01-08T22:57:33
2018-01-08T22:57:33
116,737,823
0
0
null
null
null
null
UTF-8
Python
false
false
13,914
py
kaggle_test_with_resnet.py
import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import dicom import os import scipy.ndimage import matplotlib.pyplot as plt import SimpleITK as sitk from skimage import measure, morphology from mpl_toolkits.mplot3d.art3d import Poly3DCollection from unet_predi...
d3d502a4320265fd31f0cc2b3c45b3441101127a
b2067be745544baa3c91cbca0b6fe3e59f58a4b4
/weiher_025a.py
1f8dd3d014556d54e2e32ffe238427236e9a0731
[]
no_license
cojacoo/echoRD_weierbach
a0cd379836e5629fa898b9aa5e55e7a8780f4722
6d1993aede2011adab6879bab57a63a2629a6ee6
refs/heads/master
2021-01-19T10:09:20.942515
2018-03-30T08:08:22
2018-03-30T08:08:22
82,172,713
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
weiher_025a.py
import echoRD_job as E E.echoRD_job(mcinif='mcini_weierbach_z025',mcpick='weierbach_z025.pickle3',runname='weiherbach_z025',wdir='/beegfs/work/ka_oj4748/echoRD_weierbach',pathdir='../echoRD/')
7e028f2dff5d1900b8ccffd42fc78013d1b3ad82
c0dcf6268e3ca31c81d94ddcd4178cd24caaa494
/importtools/xmltools/handler.py
a30527c2e52ef9c052e608d8e3359da7f97c5ace
[]
no_license
ixc/glamkit-importtools
b9cfe1b8699680495000977024ae10ae39821705
f5b23f16130f38543491226a82e208d34869149b
refs/heads/master
2021-01-18T09:30:46.359714
2014-05-15T06:58:58
2014-05-15T06:58:58
5,870,212
1
1
null
null
null
null
UTF-8
Python
false
false
3,204
py
handler.py
from lxml import etree from lxml.cssselect import CSSSelector from lib.constants import BREAK, DO_NOT_DISCARD import sys from lib.iterxml import multifile_iter_elems from lib.files import File def node(selector, kallable, **kwargs): return { 'selector': selector, 'callable': kallable, 'kwar...
61968d38d6bf85644c745d09c5070a3826e52bb9
7fa63e24a6b84e97ac8f8cca56a5d4aba254a2df
/WVutils/config.py
5566a6f027e0370a4b0befb0a6f812233ffcc219
[]
no_license
yucc-leon/BDCI2017-360-extension-experiments
32e4bbc5d7f4a70f5441aa98ed97b1292c4bf78b
d1092546633025d489ee5d3c65653ef8e943c335
refs/heads/master
2021-09-19T19:49:15.431125
2018-07-31T10:47:47
2018-07-31T10:47:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,106
py
config.py
import os import sys sys.path.append('..') import platform import pandas as pd import numpy as np import re import math import _pickle as pickle import logging import time logging.basicConfig(format='%(asctime)s:%(levelname)s:%(message)s', datefmt='%Y-%m-%d %H:%M:%S %p', level=logging.INFO, handlers=[logging.StreamHa...
0390fde12755c23ee99c720e8348d2aefb8057b9
3344910a30358b712efb5d56fce95521d6b9ed2d
/Algoritmos/Ordenamiento/bubblesort.py
6ac8598acf3f6dfe718d961cbc62385543f9d8d8
[]
no_license
rodrigoSolano/python
9552da06c42d6e912085b243384e79884d5c166e
ecdec451eb8cb2e3b5305a2fadbee986de89b8a3
refs/heads/master
2023-01-31T17:19:58.231739
2020-12-14T19:35:18
2020-12-14T19:35:18
321,452,891
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
bubblesort.py
#O(n^2) def bubblesort(array): n = len(array) for i in range(n): for j in range(0,n-1): if array[j] > array[j+1]: array[j], array[j+1] = array[j+1],array[j] array = [9,8,7,6,5,4,3,2,1,0] bubblesort(array) print(array)
fa09473500912c98f048b2a617ba9d5f7e3ca527
687fa8535cb1140dd962f39e14877916ec0d6565
/music_scraper.py
cf1dfcd13539913c1979189ce6a7f56f8784895c
[]
no_license
roscoj/music_scraper
d06a4cabd03b1dd29b2e7f78010b7fa12b442ca1
75d04d0bf6a786dadf31fcbb7c8bde727cf9a09e
refs/heads/master
2020-04-20T16:12:50.847499
2019-02-04T17:00:28
2019-02-04T17:00:28
168,952,269
0
0
null
null
null
null
UTF-8
Python
false
false
2,659
py
music_scraper.py
import requests from bs4 import BeautifulSoup import csv DOMAIN = 'https://www.musicteachers.co.uk' ### SETUP ### def raw_download(url): return requests.get(url) def make_soup(html_doc, parser='html.parser'): return BeautifulSoup(html_doc.text, parser) ### HELPERS ### def list_filter(list_of_objs, filter_...
c23761ccba13178fd1b3341996cde4327896ac05
c8b24547d95425921353c36f43468ebe0d2a7736
/tcp_port_test(1).py
e15b0b7e7b8c22531b718d57327a2bfcb9d0301e
[]
no_license
leeyy216/pyall1
63e508a5ab6475a43ae1b9a026bde0c436a83a64
7f4d721227ee35c7aaa0ca13c1fea74e63ce2aa4
refs/heads/master
2020-04-08T21:49:33.098839
2018-11-30T05:42:41
2018-11-30T05:42:41
159,760,065
0
1
null
null
null
null
UTF-8
Python
false
false
1,417
py
tcp_port_test(1).py
# coding=utf-8 import socket import sys import logging sys.getdefaultencoding() logging.basicConfig(format='%(levelname)s: %(message)s') def G(s): return "%s[32;2m%s%s[0m" % (chr(27), s, chr(27)) def A(s): return "%s[36;2m%s%s[0m" % (chr(27), s, chr(27)) def R(s): return "%s[31;2m%s...
92e7612fe7dee3a7d251cb45b187e6a17d1116a6
c9ccdda97d91c56588aca918ea239ccdc934bc6b
/analyze_frequent_itemsets.py
273dfc32b250c050e07d761c6a8fca0c8227062c
[]
no_license
srirachanaachyuthuni/Movie-Reviews-Analysis
223ca7f744189d5dd4b749b20398499d436ce921
97a5d33e43ad04ff8467afce8ce31f40aab3a070
refs/heads/main
2023-05-03T03:58:39.301585
2021-05-29T22:25:24
2021-05-29T22:25:24
372,078,221
0
0
null
null
null
null
UTF-8
Python
false
false
1,713
py
analyze_frequent_itemsets.py
import pickle import numpy as np from matplotlib import pyplot as plt def load_frequent_itemsets(): with open('C:\\Yash Karia\\Homework\\Fall 2020\\BDA\\Group project\\Output\\frequent_itemsets.pkl', 'rb') as file: return pickle.load(file) def plot_graphs(frequent_itemsets): num_itemset...
ac9e62d2dfabb5264fedcd2082e770a3d9b93397
df21abccc0153f9b465669aa7ff791310dc39c66
/csvtojson/csvapp/urls.py
d20ded6c9caf8045bdd5d0ebb48e1aa2e8fd7981
[]
no_license
jilan804/download
4cf9de46cf8f793a90e6341f414958cc6e664a8d
c5dbc3df9a949256ea3ef1e259caec9ae0d47440
refs/heads/master
2023-09-04T12:45:18.925664
2021-10-25T11:17:21
2021-10-25T11:17:21
418,841,892
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
urls.py
from django.urls import path from django.http import HttpResponseRedirect from django.views.generic import TemplateView from . import views urlpatterns = [ path('', views.uploadCsvView, name='index'), path('upload/csv', views.uploadCsv, name='upload_csv'), ]
dd9098e4f6f3158e5053a0185eb9e4f5a77be596
1cd3305944de3d5b76ed91c9e0ac7e26b82f47ff
/2019/test/j5.py
8dd4ab8c795ca1e276e8fd3cb8033e2835fc2bf7
[ "Apache-2.0" ]
permissive
coachlivinglegend/CCC
4b0b6d4bbe031de88275a2834a12ae74fa7bc54e
6f98e81c7fef38bf70e68188db38863cc0cba2f4
refs/heads/master
2023-04-18T00:41:23.522774
2021-05-04T12:55:02
2021-05-04T12:55:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
860
py
j5.py
import sys import os def test(fin, sol, ans): rules = [] with open(fin, 'r') as f: for line in f: if len(rules) < 3: rules.append(line.strip().split()) else: step, src, dst = line.strip().split() step = int(step) with open...
c25d3392797c1b5f4e82c110357616a9adbe7eb0
02bc6aea79a8c0940d19cfb366c4369dc47472fc
/netdata.py
ca3e8d13d72bf4858b8579a98dee1e6297576b70
[]
no_license
nuancolor/TheCrawler
68737719a3c9db0a4e0d97920e3799e2665a74be
4dcc53277a11e7deb95056ccd4f1600f27cbd402
refs/heads/master
2020-06-12T20:06:28.575415
2019-06-29T14:29:11
2019-06-29T14:29:11
194,410,561
0
0
null
null
null
null
UTF-8
Python
false
false
1,092
py
netdata.py
# -*- coding: utf-8 -*- """ Created on Sat Jun 29 17:05:50 2019 @author: duany """ '''' #调用库 import requests #发送请求,抓取url r = requests.get('https://book.douban.com/subject/33377952/comments/') #查看状态码 r.status_code #查看抓取信息 r.text from bs4 import BeautifulSoup markup = '<p class="title"><b>The Little Prince</b></p>' s...
c8be9baa733ff7fee28f7d47dd9341ebb9f06a34
577f08f177bd14fc8accf2fcf996c8bf3b3260e2
/SenseList/views.py
a6a23660a6dd0992b150ed59be64e76f88e899e7
[]
no_license
mrmechko/TripsEditor
d75c90f52e0de7f1933226c7904978b2f58bba6c
21eeed590ac871bae928303315ea38b9d120df6f
refs/heads/master
2020-06-11T12:09:33.272613
2016-12-26T17:48:28
2016-12-26T17:48:28
75,664,995
0
0
null
null
null
null
UTF-8
Python
false
false
1,368
py
views.py
from django.shortcuts import render from django.http import JsonResponse from SenseList.models import WordProposal, WordMapCandidate from diesel import ontology from TripsEditor.settings import BASE_DIR from django.core.serializers.json import DjangoJSONEncoder ont = ontology.load_ontology(BASE_DIR + "/ontologyfiles/l...
c639ca2bbf343684882f68e4b71b065ada9bf27c
21d4e9682f496b37943114599bb25dd9f8022bb8
/bark/world/tests/py_system_tests.py
c69aa52d69591bb16d509b5a79030b2494545d22
[ "MIT" ]
permissive
Bmete7/bark
501c7e4c33d264cca1255afcff7d5b8852efbddc
ced50cf4d8090265b0756ddf97a56f3e92aed817
refs/heads/master
2023-03-08T07:29:15.057025
2021-02-15T16:06:57
2021-02-15T16:06:57
308,338,987
0
0
MIT
2021-02-09T09:15:33
2020-10-29T13:35:35
C++
UTF-8
Python
false
false
10,782
py
py_system_tests.py
# Copyright (c) 2020 fortiss GmbH # # Authors: Julian Bernhard, Klemens Esterle, Patrick Hart and # Tobias Kessler # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. import unittest import numpy as np import time from bark.runtime.commons import Param...
78ce840769aebe114939c8c41f504ebfbca9a304
bec2962dd493f295c0bab5986c82d99e44d98525
/controller/create/Create.py
4ad452a18ad07a718752fd29ddcff42e1aac1a4b
[]
no_license
shanpadayhag/queuing_system_client
07667e1ce9e857040f1c9cd169ebbdd155cd401a
fd4a259dcf9f685890cf55f081f003fbab3602cd
refs/heads/master
2023-05-08T23:00:57.463841
2021-06-01T15:34:30
2021-06-01T15:34:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,088
py
Create.py
import os from PyQt5.QtWidgets import QDialog, QMessageBox from PyQt5.QtGui import QStandardItemModel, QStandardItem from PyQt5.uic import loadUi from model.Database import Database from model.ApplicationPage import ApplicationPage from model.AccountType import AccountType import view.qrc.signup.background_design cl...
d57af0a39b0b3d319eb6baaf23fdbedb08eff805
e7cba08af7eab4a7b1b26b9d4adc3fed3ccf0eed
/NBSpamClassifier/main.py
a509350feae8b620545071badc160dc50c3238a7
[]
no_license
aralhekimoglu/NBSpamClassifier
f0f0632971048a4fa7c60844f606dfe861da2cac
a6afb3be1e9441726178a7e95c5781b6efdd3c5f
refs/heads/master
2022-11-12T09:51:11.884023
2022-10-16T06:19:31
2022-10-16T06:19:31
138,348,596
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
main.py
from NaiveBayesSpamFilter import NaiveBayesSpamFilter from ParsingUtils import importData dataDirectory = './data/SMSSpamCollection.txt' testCount=1000 print "Importing and Cleaning Data..." X,y= importData(dataDirectory) X_train=X[testCount:] y_train=y[testCount:] X_test=X[0:testCount] y_test=y[0:testCount] print ...
ff40bdd388560a4c5149654925eaffe9ae84a4d0
3bd87a2a85651337071673b28d3c173836bf5c98
/pyclesperanto_prototype/_tier0/_push.py
1847ad5adf2d5a939f38c88df655f787d093f1dc
[ "Python-2.0", "BSD-3-Clause" ]
permissive
tlambert-forks/pyclesperanto_prototype
94a37fa8062e6e198f9d391d61566d9fe47629d0
aea964a75e691f19b7753040daa8b276d57ccf36
refs/heads/master
2023-07-24T02:11:57.128025
2021-08-09T18:58:07
2021-08-09T18:58:07
278,348,097
0
1
NOASSERTION
2021-01-12T19:41:36
2020-07-09T11:39:29
Jupyter Notebook
UTF-8
Python
false
false
1,262
py
_push.py
import numpy as np from ._pycl import OCLArray def push(any_array): """Copies an image to GPU memory and returns its handle .. deprecated:: 0.6.0 `push` behaviour will be changed pyclesperanto_prototype 0.7.0 to do the same as `push_zyx` because it's faster and having both doing different thi...
df0398cce6335d302c5d5d28159485df2029d762
559402035344d8959164db558e3d712b470bf46f
/retrievabl/migrations/0003_auto_20200418_2347.py
2c3a7ee19fcbce7fab372209d6c972d705832871
[]
no_license
KaitlynRandolph/Retrievabl
38a30fe0e623ae87007b4b2d1348d2a3c2ca4b6c
b117b10f072e3ce59eafb4bd86c6c3aacdcba89e
refs/heads/master
2023-04-30T17:52:29.556908
2022-03-27T18:52:30
2022-03-27T18:52:30
246,387,115
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
0003_auto_20200418_2347.py
# Generated by Django 3.0.3 on 2020-04-19 04:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('retrievabl', '0002_auto_20200416_2308'), ] operations = [ migrations.RemoveField( model_name='search', name='article', ...
eccaf58b4995d9fbb6af104702e2baa74151b27d
61e4218979e18b07324ed121e7a4a75cd3f66623
/main.py
08dae178cc216705c216f460897b53c3512c2c66
[]
no_license
JeG99/simulated-annealing-optimization
f8aa6ca4ae5fda3b4934e63fd8adb077e0515929
05271104a16777a223963dbfe6e4005eb84d49c4
refs/heads/main
2023-08-28T06:03:45.187477
2021-10-11T22:08:37
2021-10-11T22:08:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,144
py
main.py
from my_maths import * from matplotlib import pyplot as plt import itertools import pandas as pd df_experiments = pd.DataFrame() k = 3 T0 = 0.1 Lk = 70 Rmin = 0.95 graph = graph_gen(10) iterations = 500 alpha = 1.00001 n_experiments = 10 figure, axis = plt.subplots(2, 5) def run_experiment(experiment_number, max_...
af6684c463742ccf0745b367437d4bc468fd8e74
bf36ed25ca784f2bef7eade9337b6fdc52c1b1f3
/app/python/xbeecommand.py
edc5cca8a5c1a0dd906e43f23a91df4d7fef94a3
[]
no_license
claudiolammirato/FlaskDomo
46700d334de2226b25243e1cd6ec7769e7542523
22bc8554ebccd6d5208e51bd1bb8523f063b6c7c
refs/heads/master
2021-01-10T13:41:53.971646
2016-02-13T14:24:54
2016-02-13T14:24:54
47,145,388
0
0
null
null
null
null
UTF-8
Python
false
false
1,363
py
xbeecommand.py
#!/usr/bin/python from xbee import XBee, ZigBee import serial import time import sqlite3 def get_temperature(data): item = data['samples'] temperature = ((item[0].get('adc-0')*1.2/1023)-0.5)*100 print temperature #if format=="F": #convert to farenheit #tempature = (tempature * 1.8) ...
54b0aac8c37486072010f25dce7eb76baac254be
d7a518c2ef16c04008f4939ca4f19ece73376763
/聊天双工_字符串判断/Chat1.py
a4aa15fa47d5b9af116bef7d22f1efd1899c762f
[]
no_license
pw55b/Python
40ca837ba5acb069673a3a62b6e27bf4a5c571df
17824d19a506c38983b592575647d4f73b175896
refs/heads/master
2022-03-18T08:12:31.941822
2019-11-23T12:25:30
2019-11-23T12:25:30
223,416,247
0
0
null
null
null
null
UTF-8
Python
false
false
2,840
py
Chat1.py
# -*- coding: utf-8 -*- ########################################################################### # Python code generated with wxFormBuilder (version Oct 26 2018) # http://www.wxformbuilder.org/ ## # PLEASE DO *NOT* EDIT THIS FILE! ########################################################################### import w...
34a94a6eae1f10275f5803cd8950baba0c044c71
08b222de7bdd0b794be8c9080f7c97a9477ed102
/dataGenerator/data_augmentation/random_crop/main.py
2cba54a69498c9e6c84cd9cc2e6cad92f4c37495
[]
no_license
mth-gsk/cytodata2019-UQteam
abca4056c765da921df3cbd8f2563c56fc797a04
14e5f2a16e274085816fbb03dcc75e8cba2d9cb0
refs/heads/master
2020-08-30T04:16:53.049201
2019-10-30T09:11:07
2019-10-30T09:11:07
218,259,781
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
main.py
import random import numpy as np from math import ceil, floor def random_crop(img, newDim, maxOffset): if maxOffset > 0: offsetX = random.randrange(-maxOffset, maxOffset) offsetY = random.randrange(-maxOffset, maxOffset) else: offsetX = 0 offsetY = 0 x1 = - (newDim...
982e78979bca106c288bee8d23c855b8abcba9c3
c74b6bb4457af5860ed040f1162787f2e1ea1aab
/session9/model_utility/data_utils.py
702220d5fa68d3a42e9350d5170a161b9c51e47a
[]
no_license
aigroupeva/EVA5
fa3a061a054f88ea629784ff8a79f058ccec6b66
b0bc271eb4b17cd42886a0876079066d7741fbf9
refs/heads/master
2023-03-28T18:39:37.859478
2020-09-25T20:28:48
2020-09-25T20:28:48
280,291,233
1
3
null
null
null
null
UTF-8
Python
false
false
3,606
py
data_utils.py
# from __future__ import print_function import albumentations as A import torch import torch.optim as optim from torchvision import datasets, transforms from torch.optim.lr_scheduler import StepLR from torchsummary import summary import torchvision import torch.nn as nn import torch.nn.functional as F import os impo...
e5bba9c3d3994afa8cdc1a54db31f7b447f8c3c2
2fc4fea45dcc47bb04ca0dcbee150e41214df12c
/track.py
f64b20647145a6b0e488f7e8bed785c3b9fceedd
[ "MIT" ]
permissive
yumeng88/YOLOV4_MCMOT
a83276e1deaf1f58586da84921d582ec1b71fdbc
237dc28336c9a799a8d73d386fffe247e501073a
refs/heads/master
2022-12-29T20:02:04.313434
2020-10-16T07:53:18
2020-10-16T07:53:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,185
py
track.py
# encoding=utf-8 import os import torch import argparse from models import * # set ONNX_EXPORT in models.py from utils.datasets import * from utils.utils import * from tracker.multitracker import JDETracker from tracking_utils import visualization as vis def run(opt): """ :param opt: :return: """ ...
48ae2297b85ee10967ce00aee72263273ddad1a5
61e7019dfecb43bb2d8876269fc66ce3db97d518
/dcluster/cli/manage.py
0fabc5f1b7bccced56dc463d83d866d058b8fc90
[]
no_license
luciorq/dcluster
0f6b3504babbb2fa01bad8be076816dd5a8a6d8f
a9058d49d166205326cfb5f63d58dd42ef70343d
refs/heads/master
2023-02-20T16:10:41.877848
2021-01-18T14:32:35
2021-01-18T14:32:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,787
py
manage.py
def configure_stop_parser(stop_parser): ''' Configure argument parser for stop subcommand. ''' stop_parser.add_argument('cluster_name', help='name of the virtual cluster') # default function to call stop_parser.set_defaults(func=process_stop_cli_call) def configure_start_parser(start_parser...
4a65619e517cee1751e1202a5caec472714474d0
12e956d80079f2808aae687b2cfbe1384deb35e2
/api/migrations/0002_auto_20190815_0004.py
b48c3dee797b7f251e452f73acd439d959bef890
[]
no_license
khushal111/Patient_Doctor_App
e141a16c09fd400b5abd5b849ebe02073b6082b9
5964c242d06023cbe34b9d5d0a16c6228ed5b734
refs/heads/master
2022-06-29T03:14:26.743811
2019-11-07T17:45:24
2019-11-07T17:45:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,085
py
0002_auto_20190815_0004.py
# Generated by Django 2.2.3 on 2019-08-15 00:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.AddField( model_name='prescription', name='direction', ...
d25eda8ee2eea47581946864f079e3354b928e4d
42f9db7a3fb544ff4aca009e9b3b5e9567aea300
/ex170.py
88add35be0c3f9644497b9a67fe6183928d8d558
[]
no_license
wnsl01/MSE_Python
2d3402904a0b29a60de9f85325c4764a329573c7
69726006ca8e2a694d4f1e5387d0b0114eed4584
refs/heads/main
2023-01-30T21:11:46.000092
2020-12-13T09:41:18
2020-12-13T09:41:18
321,028,717
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
ex170.py
#!/usr/bin/env python # coding: utf-8 # In[1]: #ex170 result = 1 #for문 작성 for i in range(1, 11) : result *= i #값 출력 print(result)
c879b415e96dfd3b63fa605a4b42cbfffd8275bb
e9643aa4c370c70a49c929a87adbd8dfd923c013
/sparrow_cloud/apps/schema_command/schemas/__init__.py
93009d4c364de390dae2319f2038369ec28f4e31
[ "MIT" ]
permissive
hanguangbaihuo/sparrow_cloud
ce00a667f809c28a670d9a509cc095358ca2c22c
a06f82ca17d9e50b24c176ee0428dc006d1b4ac0
refs/heads/master
2023-03-17T11:11:06.091242
2021-08-12T09:11:11
2021-08-12T09:11:11
204,690,372
15
17
MIT
2021-08-12T09:11:12
2019-08-27T11:39:49
Python
UTF-8
Python
false
false
272
py
__init__.py
from rest_framework.views import APIView from .inspectors import DefaultSchema # 改变drf默认的 ApiView类的schema属性 def patch_apiview_schema(): # 为APIView添加schema描述对象 setattr(APIView, "schema", DefaultSchema()) patch_apiview_schema()
cacbcbb17e9d8de6a0fec33c7e22c2086c852569
b3597bcf2f7402b2c19e711cf086eaabe40fa7b2
/api_Smart_games/pasta_API/API.py
a2bc28fb2c34ef28ee9f6d29eb11f75fd3aae60d
[]
no_license
mth41/API_SmartGames
a027263e2b259034d8001af9b8eaafb63eb0dcdf
7b6a8a7324006318ad257d8434d7c4853fa0d58d
refs/heads/main
2023-04-13T09:17:41.649799
2021-04-26T20:08:32
2021-04-26T20:08:32
361,880,046
0
0
null
null
null
null
UTF-8
Python
false
false
7,768
py
API.py
from flask import Flask import request app = Flask(__name__) game = [ { 'id': 1, 'name': 'Overwatch', 'describe': 'Overwatch é um jogo de tiro em equipe que conta com um elenco diversificado de heróis poderosíssimos. Viaje pelo mundo, monte uma equipe e dispute objetivos em combat...
0bccc8d25bd9a6f8e80dae9ac4467d875f2c081f
01077e8bb571f8609a1200d1fba1acd970bded81
/shard.py
4eaadc999c1ea58d8e02ec31d04e705893851c1e
[]
no_license
GrossBetruger/postgres_sharding
1d2360899708db1ab355688900753b657c25b476
a0ceef2393f4817fbb51bd20bb3157f2e0d27024
refs/heads/master
2023-04-01T08:12:14.220659
2021-04-07T17:04:05
2021-04-07T17:04:05
355,622,034
0
0
null
null
null
null
UTF-8
Python
false
false
2,598
py
shard.py
import psycopg2 from hashlib import md5 from uhashring import HashRing class ShardDb: @staticmethod def get_engine(port: int): return psycopg2.connect( "dbname='postgres' user='postgres' host='localhost' password='password'", port=port ) def __init__(self): ...
805a119b15b2c57ffbcd10a9624fcd4dc05de688
7327cfc3313bd5841c6ec569103be52a91497c5a
/pycfmodel/model/resources/ec2_vpc_endpoint_policy.py
a2fe5432fecb935235ac9c46135fe205583e145d
[ "Apache-2.0" ]
permissive
Skyscanner/pycfmodel
46c1934f9c63a3bf5d84c52f826b134799325afa
40290b9612af65a406489b7e120330c38f797f3f
refs/heads/master
2023-07-20T10:58:38.515056
2023-07-07T15:32:51
2023-07-07T15:32:51
138,300,471
25
10
Apache-2.0
2023-07-07T15:32:53
2018-06-22T12:30:30
Python
UTF-8
Python
false
false
2,427
py
ec2_vpc_endpoint_policy.py
from typing import ClassVar, List, Optional from pycfmodel.model.base import CustomModel from pycfmodel.model.resources.properties.policy_document import PolicyDocument as resource_policy_document from pycfmodel.model.resources.resource import Resource from pycfmodel.model.types import Resolvable, ResolvableBool, Reso...
bf96005427608098a86a2ded84a06d08f72cf993
f9560fe0ef58f4d89103783cab67060d639b6f95
/storage/redis/client/client.py
f6ad04c4af10b45a42d051e62c30c16f21409c85
[]
no_license
gaoxinge/distributed-system
28f159a399431a73e147283be45588c0bf3f16f6
bd6dd4b12fd2008037d8cfb2938d700a5709e518
refs/heads/master
2023-05-24T18:49:46.611604
2023-05-23T12:13:02
2023-05-23T12:13:02
150,523,085
2
2
null
null
null
null
UTF-8
Python
false
false
1,801
py
client.py
# -*- coding: utf-8 -*- import socket class Client(object): def __init__(self, host, port): self.host = host self.port = port self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) def __enter__(self): self.sock.connect((self.host, self.port)) self...
683eb627c20e002209255d3a2fb36a680593dd21
7c82b6eb190fa96dc6486ce3c770d47279380066
/items/migrations/0011_auto_20181101_1447.py
4281f74c5b1568a398f5b4704133e7494fb2a001
[]
no_license
Mediate18/Mediate
8b34cda12c23947aeac644248672da4de272cb22
47eb0f0fbba8b87c69acb97bcf3d39e7a037dbc8
refs/heads/main
2023-07-25T22:27:23.138626
2023-07-17T12:31:37
2023-07-17T12:31:37
117,852,218
5
0
null
2023-03-29T11:53:17
2018-01-17T15:08:35
Python
UTF-8
Python
false
false
416
py
0011_auto_20181101_1447.py
# Generated by Django 2.0 on 2018-11-01 14:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('persons', '0005_auto_20181101_1447'), ('items', '0010_item_index_in_lot'), ] operations = [ migrations.AlterUniqueTogether( name='...
3ff7bf4e55e0927171a0c09959eb1fbb724c2492
682699a19429646f2f2f4581eb1e8f551c13aa1a
/mysite/apachelog/apps.py
d6b9527f169d4f716c28f407959d68ea197bc389
[]
no_license
AndreyKV/test_task
fa37ae329bef4168afde30d4fbbc98612abea361
3e0edea612a6a912e7b856dce1bfcda80875f7a6
refs/heads/master
2022-12-23T03:59:48.584867
2019-10-15T12:32:02
2019-10-15T12:32:02
215,252,255
0
0
null
null
null
null
UTF-8
Python
false
false
93
py
apps.py
from django.apps import AppConfig class ApachelogConfig(AppConfig): name = 'apachelog'
a25b77cba1b76d57c0d91a60b1b230738d83d907
d180a5b95759fa7b59ca5995a139885de70a8101
/半监督学习/Constrained_kmeans.py
ae465c9e9afe1b5d1977dcd0301875e8c8ebb7a4
[]
no_license
jwang41/Mechine_learning
3404cffeefdbf1d093c35e4b4bbda2db0b1a26e2
e7a81687a8f95a9976e7b1317721d28a6c5de72b
refs/heads/master
2020-08-14T04:09:19.762210
2019-10-14T16:42:15
2019-10-14T16:42:15
215,095,532
0
0
null
2019-10-14T16:40:25
2019-10-14T16:40:25
null
UTF-8
Python
false
false
5,705
py
Constrained_kmeans.py
# -*- coding: utf-8 -*- # @Time : 2017/5/4 09:34 # @Author : UNE # @Project : Mechine_learning # @File : Constrained_kmeans.py # @Software: PyCharm # 《机器学习》(周志华)第十章10.10 """ 试为图13.7算法第10行写出违约检测算法。 首先可以通过并查集或者其他方法, 计算出所有的必连集合。 由于必连的样本必然出现在一个类中,使用一个新样本来代替这些样本,新样本的属性参数取为必连集合中样本的均值。 如果新样本所属的必连集合中任何一个样本与其他样本存在勿连关...
4b7b2a41379c3b26802300df29d5219803bae426
41bac235fb2615c0f8ae1ec592c7d93d26219f6b
/dp/HTMLparing/divide100.py
257cfb6fd222c155921a79fefdd09d60367f8aa5
[]
no_license
AndroidTestBugReport/S2RMiner
5da3cecc4aaf504587e13179a6044c49162c6d5b
90a33fa40b2dd823d6e769f66527ccb2fdb2e977
refs/heads/master
2021-06-28T14:20:35.548909
2020-12-10T21:39:26
2020-12-10T21:39:26
176,631,276
1
1
null
null
null
null
UTF-8
Python
false
false
527
py
divide100.py
import sys import os,shutil trackerName="google code" pathDir=os.listdir("divide100/SentenceSegmentTrain/"+trackerName) filesNmuberInFloder=200 folderID=0 i=filesNmuberInFloder+1 currentFolder="" for allDir in pathDir: if i>filesNmuberInFloder: folderID=folderID+1 i=1 currentFolder="d...
c890938049e9bcc7bb899487bb9f3c8263d04db9
3bba9ea82b713e4647498499a172ce22c432fd9c
/tests/test_optimal_bias_amplitude.py
6ecf856083818daa0c9915239a004a4134a3346d
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
Jacks0nJ/PyFPT
84c43427a623175eb08dcdc1698639f82b48769b
94ea7cccd02e7c736842b085a6daaa1a7929c3f9
refs/heads/main
2023-04-15T14:06:59.662314
2023-01-14T13:41:59
2023-01-14T13:41:59
464,403,583
8
1
Apache-2.0
2023-01-14T13:42:00
2022-02-28T08:47:12
Python
UTF-8
Python
false
false
1,534
py
test_optimal_bias_amplitude.py
import unittest import numpy as np from pyfpt.analytics import optimal_bias_amplitude # noqa: E402 class TestOptimalBiasAmplitude(unittest.TestCase): def test_optimal_bias_amplitude(self): # Using the drift-dominated (classical) result for the number of # e-folds for quadratic inflation, and ass...
645497608a2b56d36297a73f20b66fa2154e39a2
46ea3fb0a94ab84d96c9f56eb3f6ebc4a0a37a78
/slack/apps/__init__.py
b11981060b088c083a4534360627903cf41fafea
[]
no_license
raghavp96/meta-api
73bfcbee08d93e40dadfcb8eb32fb935dfdd32ac
037b51ca1a5705de2612d52380d6623dd31edaef
refs/heads/master
2022-09-12T15:54:24.498914
2022-09-08T02:20:36
2022-09-08T02:20:36
200,139,730
3
0
null
null
null
null
UTF-8
Python
false
false
261
py
__init__.py
from .hello import doHello from .groupy import doGroupSlashCommand apps = [ { "Name" : "hello", "Command" : doHello }, { "Name" : "groupy", "Command" : doGroupSlashCommand } ] def get_app_data(): return apps
47ef3cd029da5999115362cf3d8055eee867263d
38b4beea029cd3d805f0156992a9c89238d335b1
/backend/app/tests/test_skills.py
401082200f357ba5069e1190346bf40fb37f294f
[]
no_license
crowdsourcemedical/volunteer-database
d6f4a640cd05fd32f466af61afe491e2f520430e
ef48cb105db774d2738eb408c1561efc4a223be2
refs/heads/master
2023-02-25T02:11:52.975096
2022-06-22T01:49:49
2022-06-22T01:49:49
248,840,493
40
34
null
2023-02-14T21:43:07
2020-03-20T19:54:36
JavaScript
UTF-8
Python
false
false
1,802
py
test_skills.py
from .. import skill_crud, schemas def get_mock_payload(input_skill, input_category): return schemas.SkillUpdateCreate( skill_name=input_skill, category=input_category ) def test_get_skill_empty_db(db): response = skill_crud.get_skill_by_id(db, 1) assert response is None def test_g...
3b4612ee01b8ea3898211d9c0089e57dc55e143f
cf5f38af0076c0bf1d9301d9aad7f3e4503743d8
/config.py
cea6cc9784d4ad718e9e12b96c2ab8c677bd2fcd
[]
no_license
quadrin/embassy_flag_project
b9c306831bdac0936b83598f16a9248449cec4b0
5b9f36b37afc5a82044cb4e6a2a434583cdd5a8c
refs/heads/main
2022-12-23T23:08:59.678576
2020-10-03T21:07:48
2020-10-03T21:07:48
300,979,330
0
0
null
null
null
null
UTF-8
Python
false
false
119
py
config.py
import email_scraping from email_scraping import email_list EMAIL_ADDRESS = "[username]" PASSWORD = "[password]"
9a020331d5e87d2796f952d4387617a3da13c9f9
6e04f93ecd8b4982df78b60d35065ebf5dcfb78a
/components/collector/src/source_collectors/sonarqube/software_version.py
ac4aa81e0061ec9b26b96ef02fa90c5980af0628
[ "Apache-2.0" ]
permissive
ICTU/quality-time
803bed4509526d43662c22ab53d9b704ce2c6424
5d9952bf0bd47895824fa78428d3e4f4d6b5d9b3
refs/heads/master
2023-08-06T04:52:26.277785
2023-08-04T14:53:42
2023-08-04T15:48:38
160,175,015
43
19
Apache-2.0
2023-09-14T00:55:11
2018-12-03T10:39:47
Python
UTF-8
Python
false
false
564
py
software_version.py
"""Collectors for SonarQube.""" from packaging.version import Version from base_collectors import VersionCollector from collector_utilities.type import Response from .base import SonarQubeProjectAnalysesBase class SonarQubeSoftwareVersion(SonarQubeProjectAnalysesBase, VersionCollector): """SonarQube software v...
f2d90d98f1b0b083349f11da2bc97e23426f3883
041be18feb9256b2698e029acb6f778b739a8088
/python/console_testing/lambda_function.py
751445a4a6f77979740944ee08b5f36a59d5bfff
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
kalughle/cf-aws-lambda-userkeycheck
ef4d88e361c4a89e42df44636abeeb482d02daf8
7e2ca7e845d23c36b484b96ba2b9e1fe6a8ec628
refs/heads/master
2022-04-16T19:07:03.568124
2020-04-08T18:43:22
2020-04-08T18:43:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,427
py
lambda_function.py
import boto3, datetime from datetime import timedelta, date from botocore.exceptions import ClientError # ---------- GLOBAL VARIABLES ---------------------------------------------------------------------- # The name of the profile to execute under (DELETE FOR LAMBDA!!) PROFILE_NAME = 'test01-build' # If necessary, re...
a6c0b467c46c842724e3fb18e2da634ee636d17c
f64e31cb76909a6f7fb592ad623e0a94deec25ae
/leetcode/p0044_wildcard_matching.py
2595d3053caa67bd317c338465132b95ca0b077c
[]
no_license
weak-head/leetcode
365d635cb985e1d154985188f6728c18cab1f877
9a20e1835652f5e6c33ef5c238f622e81f84ca26
refs/heads/main
2023-05-11T14:19:58.205709
2023-05-05T20:57:13
2023-05-05T20:57:13
172,853,059
0
1
null
2022-12-09T05:22:32
2019-02-27T05:58:54
Python
UTF-8
Python
false
false
2,173
py
p0044_wildcard_matching.py
def isMatch_backtrack(s: str, p: str) -> bool: """ Sort of backtracking to previous '*' https://arxiv.org/pdf/1407.0950.pdf Time (best) : O(min(s, p)) Time (average) : O(s * log(p)) Time (worst) : O(s * p) Space: O(1) s - length of 's' string p - length of 'p' string...
cfe96b345a1e899098f2448a1952a73ea00a88a0
192a4af58cff94ce504e016334cca067d62758b5
/examples/log_colorizer.py
1b57fe184e67163ba49f81ed823521f535fd07ad
[ "WTFPL" ]
permissive
srinidhij/twisted-reactor-metrics
fb5ecb07c2a3a650fe82f896d244d33d7aee17c0
a2bd13e0ae4184464f1857df8298b8ae2847640e
refs/heads/master
2020-05-15T16:24:47.147420
2013-12-15T05:53:24
2013-12-15T05:53:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
log_colorizer.py
import sys from twisted.python.log import FileLogObserver class ColorizedLogObserver(FileLogObserver): def emit(self, eventDict): # Reset text color. self.write("\033[0m") if eventDict["isError"]: # ANSI escape sequence to color text red. self.write("\033[91m") FileLogObserver.emit(...
e991c25d5d92fd56e54620efb7c29f6891fa8f1e
fab36953d84c7c1b26388ce32d7d2859ff02e362
/scripts/run_cwl_conformance_tests.py
010d71e1f27a4a112c07874287b7b3640c21fb27
[ "MIT" ]
permissive
tiborsimko/reana
67be41b95d7423b897c2d783074b6546d0a772ec
e59b98288b2d98855ca1ef9bd05d5d3af483b419
refs/heads/master
2023-08-23T19:40:31.279191
2023-08-14T08:33:45
2023-08-14T08:33:45
79,120,517
0
0
null
2017-01-16T13:23:09
2017-01-16T13:23:09
null
UTF-8
Python
false
false
7,361
py
run_cwl_conformance_tests.py
#!/usr/bin/env python # # This file is part of REANA. # Copyright (C) 2022 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Run REANA CWL conformance tests and generate markdown results.""" from __future__ import ann...
818e15b4e8c8d941c5f850efdffb67e776cd745b
b4d1b65ad28faa423b7512de6fc8e1405848b7d5
/vessel/migrations/0003_auto_20190113_1042.py
c8420c46a5c50b230d33966d4503da4c6caadeee
[]
no_license
praneshsaminathan/emf
0e304b3004b7303eb3c2e8f9eb508f124cea3877
d45abfc34d42f0971987abb777112826f606353f
refs/heads/master
2021-06-15T21:25:20.613472
2019-06-28T13:15:37
2019-06-28T13:15:37
165,474,184
1
0
null
2021-06-10T21:07:06
2019-01-13T06:37:17
Python
UTF-8
Python
false
false
424
py
0003_auto_20190113_1042.py
# Generated by Django 2.1.5 on 2019-01-13 10:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('vessel', '0002_blockip'), ] operations = [ migrations.AlterField( model_name='blockip', name='ip', field...
24f2d09ec589d685bbeac430cd8391c0b3b17913
1d400a7456ef6f8c2e1118b0032bdc8b7a6792d8
/src/c_generate_soft/make_labels.py
952b33cc9eb6c665949a8b7e9706fb4564f6f576
[]
no_license
THU-KEG/TWAG
71208596a90cb7541685659812a1942c799402f1
1020ed1acd76d3536f822dc79693d07240f16f1e
refs/heads/main
2023-07-06T11:50:34.860328
2021-08-09T13:57:15
2021-08-09T13:57:15
370,545,543
22
1
null
null
null
null
UTF-8
Python
false
false
7,004
py
make_labels.py
# coding: utf-8 import torch import argparse import pickle import os import json from tqdm import tqdm import logging logging.basicConfig(level=logging.INFO) from transformers import AlbertTokenizer, AlbertModel from src.c_generate_soft.model import AlbertClassifierModel def make_batches(seg, batch_size=16): ...
aa5d5c4fa54724154a22767a2d0e8dcdf3af7c18
6a622d8e4a4eb14c9f80b8867b58994769ae4d17
/pytorch/convlstm.py
7ee55d2d89fa4771680dfce62dc2794bc97ca1b3
[]
no_license
YuriCat/test
3ee690c9de57196295924d3ef3c4e5a4ffd69c39
6bd7f5a83a852aa2ed7b65f8c18a0c21574ccdb4
refs/heads/master
2023-07-21T01:20:10.099160
2023-07-11T07:32:52
2023-07-11T07:32:52
146,278,965
0
0
null
null
null
null
UTF-8
Python
false
false
3,039
py
convlstm.py
# https://github.com/ndrplz/ConvLSTM_pytorch/blob/master/convlstm.py import numpy as np import torch import torch.nn as nn class ConvLSTMCell(nn.Module): def __init__(self, input_dim, hidden_dim, kernel_size, bias): super().__init__() self.input_dim = input_dim self.hidden_dim = hidden_...
3247a65e87e43e5160907a6fd66c01fe3db1c3a3
968cbbcf866fe0712ec98e1afb1f8bb28f241503
/molecule/test/unit/command/test_idempotence.py
d1ea3304a775e659da4025cf0958cda99b05c84c
[ "MIT", "CC-BY-ND-4.0" ]
permissive
geerlingguy/molecule
dcaaf8aa1d99ec2ee512d83082723592d7761371
b301ff6f62c2fbc2ddc43eb964a59604dc26182e
refs/heads/master
2022-12-12T00:28:35.619287
2020-08-31T08:32:44
2020-08-31T08:32:44
255,427,026
4
3
MIT
2020-04-13T19:49:35
2020-04-13T19:49:34
null
UTF-8
Python
false
false
5,032
py
test_idempotence.py
# Copyright (c) 2015-2018 Cisco Systems, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge...
acd7208964d129f95401f7c8d759ca572bddbfa8
701cb76c65c07940283d2912643b5a64ef9d6a73
/zsq.py
6e036099f1aff89e8be27cd3a81e58d5fc0935ed
[]
no_license
ZhangChengL/s14
3a361c4fe62fba026f8422dd66f140de770b6a49
804c8c95ae3502201e7f64542050ee4dafb457ee
refs/heads/master
2021-01-12T08:34:21.774464
2017-07-18T10:39:26
2017-07-18T10:39:26
76,614,752
0
0
null
null
null
null
UTF-8
Python
false
false
1,852
py
zsq.py
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author:Zhangcl # # def decorartor(func): # def wrapper(n): # print('starting') # func(n) # print('stopping') # # return wrapper # # # def test(n): # print('in the test arg is %s' % n) # # decorartor(test)('alex') def decorartor(func): ...
983857415e668b4055f7b1700e0bd7548e47ccb5
8c5b2aa601576f2693687b4031ca97281714d047
/kim_bidaf_chainer.py
5fc3593351355e487aed81b79de999e3e0613a19
[]
no_license
NamanRai11t/Machine_Comprehension_with_external_knowledge
d5e882e028689200076e0fc8f46a93b504c9d6b2
1d53a72e0a28d9b2cba50509bd300bb6ba082876
refs/heads/master
2020-03-23T09:13:25.075040
2018-07-18T03:22:46
2018-07-18T03:22:46
141,374,948
1
1
null
null
null
null
UTF-8
Python
false
false
7,847
py
kim_bidaf_chainer.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # MAGE-NN model # import sys from argparse import ArgumentParser import numpy as np import chainer from chainer.backends import cuda from chainer import Function, Variable, variable from chainer import optimizers from chainer import Link, Chain, ChainList import chainer....
f4170700d247231aaaee19a562e4ab395c578492
d24b99d43a0716ebde05548bc3f017b813162f00
/src/othello/othello.py
16e5b15df24492c573ac923e7b5d2d1347787bfd
[]
no_license
q598998825/test
fee345d1253ce58f65e1fd6ec3e953bb12db72cc
584e769b14cba060e202b208ff21267fe288963f
refs/heads/master
2021-06-27T17:03:08.416202
2020-12-22T11:49:13
2020-12-22T11:49:13
174,477,369
0
0
null
null
null
null
UTF-8
Python
false
false
1,702
py
othello.py
from board import Board from player import HumanPlayer, AIPlayer ''' 作者:hhh5460 时间:2017年7月1日 ''' # 游戏 class Game(object): def __init__(self): self.board = Board() self.current_player = None # 生成两个玩家 def make_two_players(self): player1 = AIPlayer('X', 2) player2 = AIPlayer...
e97cd913892cf02dfd31e1a99cc3dcb9ce94b78d
40efe89719c2d3640fa9399ecf6bafc6de00c614
/book/forms.py
902a0896706f7569f6b61ba16d67730d57e11438
[]
no_license
chaithraav/travello
7f459aa35b4f4157c9e9017da98050696ae453a7
f1a0ecbc8f336f0d3c9bda535a2d34f0331feda3
refs/heads/master
2022-09-03T22:32:36.693416
2020-05-25T05:57:45
2020-05-25T05:57:45
266,691,123
0
0
null
null
null
null
UTF-8
Python
false
false
1,531
py
forms.py
from django import forms from .models import reservation,Payment class reservationForm(forms.ModelForm): class Meta: model = reservation fields = ['name','gender','age','no_of_people','address','email','phone_no'] widgets = { 'name': forms.TextInput(attrs = {'class':'form-contr...
876095bee7c12828fec47fbc37ee9c9a3006e3dd
d10dfcd63b458e0a7cf8a2a321fb1fe7d6408f6a
/isi_release_quarantined_files.py
2e70ca93c59ca5fd45e972c83cba2eb5c270c7eb
[ "MIT" ]
permissive
jhn--/dell-emc-isilon-related-scripts
ec93ae066aa40bbfd1cd79a4401a3405507eea00
d239d9ec0c3b4dee56170be9a93af59d74cce588
refs/heads/master
2021-04-26T14:00:08.763154
2018-02-13T04:21:27
2018-02-13T04:21:27
121,336,915
0
0
null
null
null
null
UTF-8
Python
false
false
1,114
py
isi_release_quarantined_files.py
#!/usr/bin/env python import subprocess, shlex, json def get_threat_list(): isi_threat_list_raw = "isi antivirus reports threats list --format json -a -z" isi_threat_list_split = shlex.split(isi_threat_list_raw) isi_threat_list_cmd = subprocess.Popen(isi_threat_list_split, stdout = subprocess.PIPE) is...
10a9754173416375c16f2741f4c54573f8185112
b7d414a3e10d027a187da695c5e1860234a7df5b
/2021.11.6/firstproject_11_3/loginapp/migrations/0005_alter_room_num.py
81ad712f49b33476044cb702dbfe9b3e9699e4c3
[]
no_license
patrick0627/Reservation-Project
8510bbaf20e9c3129ebdfddca9d8da4648f580c6
70b4b3545ca587f815dd1c68709dbfa810c8a8e9
refs/heads/main
2023-09-02T11:27:37.045071
2021-11-06T17:11:22
2021-11-06T17:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
0005_alter_room_num.py
# Generated by Django 3.2.8 on 2021-11-05 06:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('loginapp', '0004_auto_20211105_1428'), ] operations = [ migrations.AlterField( model_name='room', name='num', ...
a5879e14fd0a25c23838b368c328f04480044b96
e07ca649d0c51ce6e87a2e824e209429bc9a3b48
/api/views.py
ccdf7e3e913253c7cea3ba3f91cd22fbc08b9c36
[]
no_license
darveloper/ghostpost_backend
a19a213de7bef7877796566be4c5a777d19dd8a0
83ba788c44c5444082e8fc640f3232ab5b3ec81a
refs/heads/master
2022-11-05T05:45:10.283592
2020-06-22T14:53:18
2020-06-22T14:53:18
274,148,891
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
views.py
from django.shortcuts import render from rest_framework import viewsets from .serializers import PostSerializer from .models import Post from rest_framework.decorators import action from rest_framework.response import Response class PostViewSet(viewsets.ModelViewSet): queryset = Post.objects.all().order_by('total_...
f22bd9a98620e1b6a72d4132483ee9435dd309f0
41e57fc5a59200a6734418be363b15a3c3cd47a5
/Fabio_06/f6_q07_conjugacao.py
ec9a693465f1f32754b6546dce68fd6dfe2c1cdf
[]
no_license
dapazjunior/ifpi-ads-algoritmos2020
cae6f95c10beed488d09bd03f2487cbbc040cf08
a6f03b13595d527fe9759f62f216f671e57d8552
refs/heads/master
2023-01-08T04:39:17.200152
2020-11-03T12:16:45
2020-11-03T12:16:45
245,900,901
2
0
null
null
null
null
UTF-8
Python
false
false
712
py
f6_q07_conjugacao.py
def main(): verbo = input('Digite um verbo regular de segunda conjugação:\n> ') conjugar(verbo) def conjugar(verbo): verbo = verbo.lower() index_fim = len(verbo) - 2 if verbo[index_fim:index_fim + 2] == 'er': print(f'Verbo: "{verbo}"') radical = verbo[0:index_fim] prin...
02dc5749eafc1e248d894a3e7322429ec5b6a8de
166970a344683a06ea757585fd9039aeb04a2443
/weibo/xgb_train.py
6b17c6026ac1b14dc5a3fcace01f1f1f7b5bd7a4
[]
no_license
xxyLiang/python
88c803666837adc1731fdce1ee1bb2ef8262e941
d8443adb570cdafeb6b53b0eb5e5cd0cdc7b2ec7
refs/heads/master
2023-03-10T20:12:19.707444
2023-03-09T15:00:31
2023-03-09T15:00:31
172,713,908
0
0
null
2021-01-07T23:25:28
2019-02-26T13:10:36
Python
UTF-8
Python
false
false
3,453
py
xgb_train.py
from numpy import loadtxt import xgboost as xgb from sklearn.model_selection import train_test_split from sklearn.metrics import * import pickle ''' no_stopwords + tf-idf: [299] train-error:0.01098 val-error:0.08504, Accuracy:91.50% [499] train-error:0.02433 val-error:0.08289 Accuracy:91.71% [769] train-erro...
6378e72adc5c322ff91f24b75a54588b7411058c
13fdfd03d975c2b94d08a84f05f452c697186a44
/atcoder/ABC/96/abc_96_c.py
50f07d460444194fd1c6a38ade178e1988cb508b
[]
no_license
poponzu/atcoder1
7243da9250d56eb80b03f1a8f4a3edb9df9e5515
64a52bac4cf83842167ca1ce1229c562dabd92a3
refs/heads/master
2023-08-22T02:10:52.639566
2021-10-09T14:23:46
2021-10-09T14:23:46
385,467,500
0
0
null
null
null
null
UTF-8
Python
false
false
1,438
py
abc_96_c.py
# 22分AC H,W = map(int,input().split()) s = [input() for _ in range(H)] # 四方向への移動ベクトル dx = [1, 0, -1, 0] dy = [0, 1, 0, -1] # square1001君が目標を達成することができるか can_paint = True # 各マス目の"#"だけを全探索 for i in range(H): for j in range(W): # "."のマスはスルー if s[i][j] == ".": continue around_sha...
5d600de0bdc80387edccea32ecccdf01a0a0fba1
ce15c60d668fb3c2b67b89fb0f5d1247b9129c83
/dashing/stock.py
dfc4f5b220ea6f4ad404cb26ccfd2dbb4bfd0286
[]
no_license
thetomcraig/dashing-mirror
92a6467e4da131f64573976320048c66c01a15e7
10f9833ed88ba8d23c4a1a790012a0c456d4bdc8
refs/heads/master
2021-01-10T02:30:59.627814
2016-02-19T15:34:42
2016-02-19T15:34:42
52,060,607
0
0
null
null
null
null
UTF-8
Python
false
false
648
py
stock.py
import ystockquote from datetime import datetime class StockCalc(): history = {} def record_stock_price(self, stock, file): price = ystockquote.get_price(stock) now = datetime.now() self.history[now] = price with open(file, "a") as f: f.write(str(now)) f.write(',') f.write(price) f.write("\n")...
127dd4d936922afb277b2a6b2a63f622e34dfde3
3821563f173381363da0f8cd74ef33c4d123c178
/Array_and_Strings/String_to_Integer_(atoi).py
af30df690aa55978806349d772c5a8119ca41d1e
[]
no_license
felixzhao/questions
8beafcb52736d27ef5096246afad1d393f3beb1d
2326c9c63bb740bd6232a2888189af632c2e17fc
refs/heads/master
2022-11-22T20:26:11.038126
2020-07-27T03:50:57
2020-07-27T03:50:57
272,129,672
0
0
null
null
null
null
UTF-8
Python
false
false
877
py
String_to_Integer_(atoi).py
import math INT_MAX = 2147483647 INT_MIN = -2147483648 class Solution: def myAtoi(self, s: str) -> int: """ check i out of len(s) is needed in each loop key method: total = total * 10 + digital """ if len(s) == 0: return 0 i = 0 while i < len(s):...
26837634258d91ff42cd3352a72affded327ab8e
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/test/legacy_test/test_logsumexp.py
a5184650f36d709a866a147804d5743159e4ea06
[ "Apache-2.0" ]
permissive
PaddlePaddle/Paddle
b3d2583119082c8e4b74331dacc4d39ed4d7cff0
22a11a60e0e3d10a3cf610077a3d9942a6f964cb
refs/heads/develop
2023-08-17T21:27:30.568889
2023-08-17T12:38:22
2023-08-17T12:38:22
65,711,522
20,414
5,891
Apache-2.0
2023-09-14T19:20:51
2016-08-15T06:59:08
C++
UTF-8
Python
false
false
9,128
py
test_logsumexp.py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
934397704fbf6edd5384255377f2b07445156754
cefddc93db87d675bb0bc6e0300dd286ccdc58dd
/Main.py
9f9cb9cdd00337419d274c3d07591e3e273e2fb2
[]
no_license
HilaShoshan/Adaboost
086a291e0e74194ebdf518fb254e35b5a60f4d2d
85b39a55c06bb21c2d5c4b97d79cc93b452033fb
refs/heads/main
2023-05-05T12:11:39.999019
2021-05-26T08:04:21
2021-05-26T08:04:21
369,746,635
3
0
null
null
null
null
UTF-8
Python
false
false
2,320
py
Main.py
# python version: 3.7 import pandas as pd import matplotlib.pyplot as plt from Adaboost import * # create a df of points (x,y) and their labels df = pd.read_table('rectangle.txt', delim_whitespace=True, names=('x', 'y', 'label')) points_df = df[['x', 'y']].copy() labels_df = df[['label']].copy() def average(lst): ...
039b1b63dfc302258472271964846102715916f7
6a8283336b4e4ecf970747ec014051fd26b0e69f
/tests/test_location.py
6aa08abdf7c1f5219e56add1cbaf4b3ea998ad2c
[]
no_license
bradleyjay/youre_better_than_this
a7c10434894829e2de7ac07dfd308e3ac086ac09
02879a787feb49e5d362fa453a87e323d920ac74
refs/heads/master
2023-05-28T14:28:11.069759
2019-06-04T00:45:45
2019-06-04T00:45:45
171,068,150
0
0
null
2023-05-22T22:15:59
2019-02-17T00:55:25
Python
UTF-8
Python
false
false
1,504
py
test_location.py
import pytest import requests from flask import g, session from better_than_this.db import get_db from support.fixtures import Test_Fixtures yelp_response = Test_Fixtures.yelp_response def test_new(client, app): assert client.get('/locations/new').status_code == 200 def test_verify(client, app, requests_mock)...
6d2efd3493667c4eba7f712e817e1d1013705cb7
3753cee2e09a6a502e4889cbfa33a0ba8b08b02b
/09_project_validate_cc.py
b648570596c26732bab08e3febc18ca0badb7af9
[]
no_license
mgcarbonell/30-Days-of-Python
830b064c7625f0dbf67c4700d9ff37795c4269aa
5b5cbf15dff6930f3c8802085f3dda11fd655108
refs/heads/main
2023-08-28T08:07:46.084069
2021-10-22T00:43:12
2021-10-22T00:43:12
362,287,491
0
0
null
null
null
null
UTF-8
Python
false
false
3,172
py
09_project_validate_cc.py
# PROJECT BRIEF # The program you write for this project should do the following: # 1) It should be able to accept a card number from the user. For this project, you can assume that the number will be entered as a single string of characters (i.e. there won't be any spaces between the numbers). However, you should be ...
6c74459f37b7fab0087759637dd1ceafa5849840
9b8d850037e258f1dff117e7b072898be56b27d2
/MIR Visualization/webapps/settings.py
9a568835ab4170d56ca118c4540ee054dc0fecaa
[]
no_license
alfwang/MIR-OR
0942fec9d8c26864572966c701e85f3116f4be8b
60359b5b92cc0f271133ee7df4791cef1150888f
refs/heads/master
2021-01-10T14:24:27.637120
2016-03-08T05:56:29
2016-03-08T05:56:29
49,034,969
0
0
null
null
null
null
UTF-8
Python
false
false
1,284
py
settings.py
import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TEMPLATE_DEBUG = True ALLOWED_HOSTS = [] SECRET_KEY = '2qea%8^m-klire#lemcu$%zg1s#jph*xe4ov0g@b3g)2g(=lj5' # Application definition INSTALLED_APPS = ( 'django.contrib....
ef5479af047e15c054e6dc730528947218480a58
a4482df5fa131d3ca323359319e6fb3a1eeb4267
/tests/conftest.py
00fbdf8b99ce47f43129b28f5c461056f497c75a
[ "MIT" ]
permissive
rosierui/pyvcd
18ec17d6412676deb6ddf7208fa16e7c68d75787
3b29f03505d056a45c8b4949504e3f0a69861290
refs/heads/master
2020-11-26T04:35:05.131697
2019-12-22T06:44:52
2019-12-22T06:44:52
228,965,616
0
0
MIT
2019-12-19T03:15:10
2019-12-19T03:15:09
null
UTF-8
Python
false
false
201
py
conftest.py
import six import pytest @pytest.yield_fixture def gtkw(): import vcd.gtkw sio = six.StringIO() gtkw = vcd.gtkw.GTKWSave(sio) try: yield gtkw finally: sio.close()
d40685fbae9379631e72da323c976b344359779a
f460436c6a2f86db18cdc16e1894bb28a689a720
/01 Simulation code/Control no growth/Control_no_growth.py
92186347538f27222171033e4e09e500425dc3f3
[]
no_license
yuriypichugin/cyanobacteria-filament-fragmentation
d1a8e4853837f77a1764426242af798858059b17
0c85dae023b650b80a2de7d9dd74d1894d694d31
refs/heads/main
2023-04-14T07:53:59.136970
2021-09-17T14:17:02
2021-09-17T14:17:02
407,565,984
0
0
null
null
null
null
UTF-8
Python
false
false
1,619
py
Control_no_growth.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Feb 4 08:56:39 2020 @author: pichugin """ import numpy as np #import csv #import matplotlib.pyplot as plt #import pandas as pd #import seaborn as sns from copy import deepcopy import Cyano_model_support_v3_1 as CMS import Lib_ExperimetalDeviation_v2_4...
2b35f05c21b5297a6ab1e15f4a303b103a28c8fd
f3853077133364d42616863ba6b58256ef3a9d62
/chapter 5/ex 5.6.py
ca2047cc84f8119782c46d4a6acf9c61ab1e3327
[]
no_license
ahadahmedkhan/Solution
497460d080a31152b5ce461f8fbdd19d64c80d2c
6b24c31a9429556f5affc52541227355d35a6e56
refs/heads/master
2020-09-19T18:23:10.505638
2019-11-26T18:57:51
2019-11-26T18:57:51
224,263,234
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
ex 5.6.py
age = 20 if age < 2 and age > 0: #age >0 represent thatr age must be greater than 0 print("you are a baby !!") elif age == 2 and age < 4 : print("you are a toddler !!") elif age ==4 and age <13: print("you are a kid !!") elif age ==13 and age < 20: print("you are a teenager !!") elif age ==20...
33a10fd53b1615bcadb9ea7e746630bff4dfd268
f5d77defeaa244ed8df517d13f21cd6f073adebc
/programas/Laboratorios/2_Condicionales/huracan.py
9b7408ee7454b2db0089debb36bd1e2554c67fa3
[]
no_license
lizetheP/PensamientoC
02a02cf6d537e1637a933a4f3957995f6690d7d6
5d5740e0afa4fc487fdc5f2c466df63e9b4a664f
refs/heads/master
2023-08-10T08:07:09.604983
2023-08-08T16:53:10
2023-08-08T16:53:10
200,893,283
1
0
null
null
null
null
UTF-8
Python
false
false
823
py
huracan.py
#Temperatura """ 1. Pedir temperatura (t) 2. Si t >= 100 escribir("Vapor") SiNo Si t>= 30 y t<100 escribir("Caliente") SiNo Si t>=0 y t<30 escribir("Fría") SiNo Si (t>=-273 y t<0) escribir("congelada") SiNo Si (t < -273) ...
4fdf2588323b2cfa0a91a8feed0ba6eba20d382c
df822461162bd0f4ceae02e586ac8b794f5605b3
/project/apps/account/account_api/tests.py
fa620de97b793818d0bdb989957ea249e72beb9e
[]
no_license
KIN26/comment_service
4bf20e8d75da097130589ac58b2baaeb153b0f79
21705c14c1ed7ed64fe482ac14df716c4d727b14
refs/heads/master
2020-05-01T04:40:15.130348
2019-03-23T11:30:15
2019-03-23T11:30:15
177,280,723
1
0
null
null
null
null
UTF-8
Python
false
false
1,949
py
tests.py
from django.contrib.auth.models import User from django.core import mail from django.test import override_settings from django.urls import reverse from rest_framework.authtoken.models import Token from rest_framework.test import APITestCase AUTH_DATA = ('username', 'userpwd123', 'user@test.ru') class AccountApiTestC...
511756da07cfb2f9ef70e30b1d45c7eb4f45eec6
2edeebc14ee7892bd34a7051f384e4414bf6ee63
/oram/code/old/tt.py
6d3637ef4c6bba35f933380c6e705bfb35cbec0e
[]
no_license
rrtoledo/mix-oram
c5eedc1b2df55693ee9304c39cb8ce34af429a5a
9fc904343e68e5dc6db5ddb18654cc2f79201d50
refs/heads/master
2021-01-21T10:37:37.064985
2017-04-23T11:00:04
2017-04-23T11:00:04
83,459,995
0
0
null
null
null
null
UTF-8
Python
false
false
8,046
py
tt.py
from collections import namedtuple from petlib.cipher import Cipher from petlib.ec import EcGroup from petlib.ec import EcPt from petlib.bn import Bn import petlib.pack import base64 import math import random from hashlib import sha512, sha1 from eg import ECCEG as eg Keys = namedtuple('Keys', ['b', 'iv', 'kenc', 'se...
21955e2bbbe15b2dcfce1ed303776fee91fc0a12
4ebe3bf1c8f44fb45c20f3bd089c58e02f4e8603
/main.py
701c32026e4b1da95ae5d728b76b5f241101fca0
[]
no_license
JasonNgo97/GeometricObjectConstruct
2e74f5267b56ca2ce4f1abfe7ed7689b1af99c09
00be2a6a01b8097842d2112563c4709ea93bf04e
refs/heads/master
2020-03-30T15:17:44.055444
2018-11-01T00:47:46
2018-11-01T00:47:46
151,356,809
0
0
null
null
null
null
UTF-8
Python
false
false
4,423
py
main.py
import numpy as np import csv from GeoConstruct import * from NetworkState import * import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import matplotlib.lines as mlines from VertexState import * print("Hello"); #x = GeoConstruct(10,20); numVertices = 5; height = 20; radius = 6; angle = 70; s_ij = ...
0dd5f739f5a5358ba5ad19135b8d8cc433b384c5
d3755a91068d9430e434a348a772cb92a49da26a
/sanity_check.py
874d0c90ac6458836ab6573ff54635a251c76747
[]
no_license
cristianbretti/deep-learning-project
e0eaf971738f754ee4b8e0f8622879058d2e0817
97b8df9791bedbf83082c59269e7125440cf7112
refs/heads/master
2020-05-17T07:15:44.236953
2019-05-16T09:19:04
2019-05-16T09:19:04
183,576,104
0
0
null
null
null
null
UTF-8
Python
false
false
1,194
py
sanity_check.py
import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from skimage import color def parser(record): keys_to_features = { 'filename': tf.FixedLenFeature((), tf.string, default_value=""), 'l_channel': tf.VarLenFeature(dtype=tf.float32), 'ab_channels': tf.VarLenFeature(dt...
526a6987aa0c2f1fd3fd64b01ded55c58806d2de
443e7ca9ae2c274b11b643498d3fa1932009dc3f
/main.py
3706e8624ea8a4afa71cb602af4075f00408c0e5
[]
no_license
Dmitrii6776/email_sender1
d7937ef3da049dc0fbea41c2320c955fac06c468
abb866ab57f8cc79757bf1cd9990451726098262
refs/heads/master
2023-07-16T04:27:54.979473
2021-08-27T18:02:20
2021-08-27T18:02:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,146
py
main.py
import smtplib import datetime import random import pandas my_email = 'put your email hear' password = 'put your password' now = datetime.datetime.now() now_month = now.month now_day = now.day now_time = now.hour data_frame = pandas.read_csv('birthdays.csv') data_dict = data_frame.to_dict(orient='records') def che...
d16ec61cc97f53fc5d1e001f1761068f19b85e8b
2a3462f9e880800b77f5ceac91d09b7243c5e58e
/Locating Restriction Sites.py
730e6e31f19b956fadfcc561913245f45ee16893
[]
no_license
Dauthlin/Rosalind-Questions
6c54ffef45e2cb03ca6e93c43e3ea9576b83ce3c
6ffef635563f4b0aa59c047c45aea9f3179aa546
refs/heads/master
2022-12-14T19:07:29.520336
2020-09-07T14:38:16
2020-09-07T14:38:16
292,284,282
0
0
null
null
null
null
UTF-8
Python
false
false
2,058
py
Locating Restriction Sites.py
text = """ >Rosalind_5382 GCGCGTGTCTCCTCCCGCTTGAAAAAGGTTGGCTGCGTAATCAATAGGGAGGCACCATGG TACGAACTGCCCTAACGACAACTCGGCGGCTCCGATCTACTTACTAAACGTTTTTGCCTT ATATAGATGAAAGGACTAATTCTAGCCGAGTCCCGTAAATACGGAGGAGTTCGGAGCCGA CCAGGGGCGACCGCACCGTGCATCCGCACCTGGTGGTACCTATCGGCTCCTGGGTATGGA GAGAGTAAATGTGAGGACTCGAGGGATTTCGTCTTCATCAATTT...
e8916fb0f957ebed61b96825467cf0b636d86bac
648c23413ef6888ca97d894b7b3dac64d8e7a13a
/spiders/huxiu.py
9241391d13c02b9ab91bf371b853b858bd2990bd
[]
no_license
guygubaby/hot-list
84b49e489b7045e977903c21a010a1f939b79eae
c10e5df771edb124f8ad0b3ffc1a53308eee8deb
refs/heads/master
2022-12-10T20:31:02.739509
2019-11-04T10:01:44
2019-11-04T10:01:44
211,271,366
2
1
null
2021-06-09T07:51:55
2019-09-27T08:22:49
Python
UTF-8
Python
false
false
1,465
py
huxiu.py
from utils.urls import huxiu_url import requests from bs4 import BeautifulSoup from spiders.base import Spider from utils.headers import HEADERS from models.HotItem import HotItem from utils.mongo import hot_collection from utils.cates import types class HuxiuSpider(Spider): def __init__(self, name='huxiu'): ...
ab6a4c2a6be30fc86f860dfec338c70cd9824403
1e09be95bb410c091860982f1569c5346992ccc5
/KDCRec/KD_LR/utils/model_names.py
7a7c882e8e3566da69be7b751789a43460332a2f
[]
no_license
colagold/RepetitionAlgorithm
1410855f125ecc54ba4c4e3aa0be4cbef2c6a48b
0112d73e29ac63fb6c4f4e22f851e6672c302e6c
refs/heads/master
2023-09-05T16:00:07.428209
2021-11-10T12:00:44
2021-11-10T12:00:44
418,433,782
4
0
null
null
null
null
UTF-8
Python
false
false
1,117
py
model_names.py
from models.biased_mf import biasedmf from models.propensity_mf import propensitymf from models.init_feature_embed_mf import initfeatureembedmf from models.alter_feature_embed_mf import alterfeatureembedmf from models.concat_feature_embed_mf import concatfeatureembedmf from models.causal_sample_mf import causalsamplemf...
0abf539eb940d278e2a0527c98c4ae5b77010350
6a38b0b7407114c5c7879b417ed17e4b5eb4645a
/app02/views.py
5dfcfa8919988021f4d7cc4ae11ef9259c5da74d
[]
no_license
Pzyo/django01
13355b21b596e9f2c05ee158295b5599089b6448
c2bf24f622bc376710d10e632e11e503940e0ae6
refs/heads/master
2023-07-03T19:05:05.219001
2021-08-07T08:46:42
2021-08-07T08:46:42
381,002,402
0
0
null
null
null
null
UTF-8
Python
false
false
4,672
py
views.py
from django.shortcuts import render,HttpResponse,reverse,redirect # Create your views here. def reg(request): # print(reverse('ggg')) # 名称空间解析 # print(reverse('app02:ggg')) print(reverse('app02_ggg')) return HttpResponse('app02/reg') def index(request): # return HttpResponse('') # 符合 # re...
9e9c8aeabd71c2c08c753b1a399b813327d16a4f
3cc0827dfd7934fa641307cec35c75687bde3291
/sitemap/main.py
0df20ccd8d8daffc31b1cb42e5c3d65e7319559d
[]
no_license
i1caro/site-map
c3d5979acf3f44a7d06102d9bfd190117c7e6b16
caed772f02dc7a104e50df878d373609b8c96811
refs/heads/master
2021-01-10T10:12:27.849710
2016-03-03T12:02:54
2016-03-03T12:02:54
52,966,539
0
0
null
null
null
null
UTF-8
Python
false
false
2,737
py
main.py
import re import xml.etree.ElementTree as XmlTree from functools import partial from urlparse import urljoin import requests from bs4 import BeautifulSoup BAD_RESPONSE_VALUE = 400 def get_links(html): soup = BeautifulSoup(html, 'html.parser') return [link.get('href', '') for link in soup.find_all('a')] def ...
3dab46b9a555efc6e89963f9067a6350eb052fa2
ce969904073f7d6893734fac3d68a52338eb255a
/HUGS/Interface/_interface.py
a1c271e807b1efb4d22e09dbd8991be2d0b5a7f3
[ "Apache-2.0" ]
permissive
hugs-cloud/hugs
a26808991d1413d9c3ac566b5e2de6bdb6b39f75
93c58c9e0381f453a604f39141f73022d4003322
refs/heads/master
2023-08-17T10:27:04.982632
2023-08-03T08:07:51
2023-08-03T08:07:51
270,334,862
0
2
Apache-2.0
2020-09-30T13:27:45
2020-06-07T14:41:52
C
UTF-8
Python
false
false
72,198
py
_interface.py
""" A class to create the interface for HUGS """ import collections import functools import json import os import random import shutil import tempfile from datetime import datetime from pathlib import Path import bqplot as bq import ipyleaflet import IPython import ipywidgets as widgets import matplotlib import matplo...
9dac883c70b88f7761621b7589bae78b823ce1ad
c2e32adde80adbe8d6a9715a1d8a7464357c1067
/client/Python/client_.py
300e0a0426dcec1f4961a76f5eb0acc9205b41e5
[ "LicenseRef-scancode-sata" ]
permissive
mrhanice/JudgeServerDev
01b895bbf2337d926e511bf6f4601633bd2c7d50
37a03a0771707c6b1939b09b81d999babd508f21
refs/heads/master
2023-01-06T01:48:59.403728
2020-11-08T05:25:03
2020-11-08T05:25:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,127
py
client_.py
import hashlib import json import os import requests from client.Python import languages #JudgeServerClientError class JudgeServerClientError(Exception): pass #模拟的JudgeServer的客户端 class JudgeServerClient(object): def __init__(self, token, server_base_url): self.token = hashlib.sha256(token.encode("utf...
42202c9fce27fc9b8742742b182247e569283192
eceb5b48515d7f13d6386163ba07690ff636534a
/shell.py
0dd539e8940db499ed92ffa3989a3da9e7915a7d
[ "BSD-3-Clause" ]
permissive
utep-cs-systems-courses/os-shell-liza-bit
0cc15f8d28d36a18692809f8266425130ec9560d
57eb1831b3fdf91556d73632a3f9d5df884101b6
refs/heads/master
2023-03-13T01:40:58.689916
2021-02-26T17:39:09
2021-02-26T17:39:09
339,849,083
0
0
null
null
null
null
UTF-8
Python
false
false
2,167
py
shell.py
# #!/usr/bin/env python3 # import os, sys, time, re from myReadLine import myreadline from myRedirect import redirOut, redirIn from myPiping import pipeCmd def main(): while True: #shell runs indefinitely if 'PS1' in os.environ: os.write(1,("$ ").encode()) else: os.write(1...
cf6679e9ed853518e78c402d3491ff99b0692d26
ec5b45fde98b897d4f254f65825d9dac83795dd0
/June Challenge/Day5_randompickweight.py
d8ff90b6e50c5c1037d267c931b23c92814ebe2d
[]
no_license
Ashwin-19/LeetCode
615d8db3143d534acb7ac23e23b08c8f1e14c30e
d2f93c3979ad16b411cd2b88f71c398fc8d9c21d
refs/heads/master
2022-11-10T20:11:23.414876
2020-06-29T19:01:53
2020-06-29T19:01:53
267,494,732
0
0
null
null
null
null
UTF-8
Python
false
false
730
py
Day5_randompickweight.py
import random class Solution: def __init__(self, w: List[int]): self.len = len(w) self.presum = w for i in range(1,self.len): self.presum[i] += self.presum[i-1] self.maxval = self.presum[-1] def pickIndex(self) -> in...
d020e0e36171a35d16a012834dc96c795ce074cc
d6d1dd77320af0d31fb92540e16da40db2d41ced
/testmethods.py
c67daae222d2e0a334db1383556c0315cf4b3493
[ "MIT" ]
permissive
ljm7b2/OBSTstandardDeviation
546d2a9feafd2b5947fe4de9eddf1ff466299c48
5eab7fecd7843a489d6ef5381e28a65aa24853c6
refs/heads/master
2020-12-11T03:32:25.484013
2015-11-24T01:36:29
2015-11-24T01:36:29
46,107,033
0
0
null
null
null
null
UTF-8
Python
false
false
1,466
py
testmethods.py
__author__ = 'lm043536' import random import functools from timeit import default_timer from data import * #vals = [random.randint(2000,3000) for i in range(2000)] #vals = data() vals = [3,3,2,1] n = len(vals) print("length", n) S = [[0]*n for i in range(n)] S2 = [[0]*n for i in range(n)] for i in range(n): S[...