hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
8dd1bc34ab610e35c9b19cc3380d1fb659c2828c
2,682
py
Python
src/leetcode_1998_gcd_sort_of_an_array.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_1998_gcd_sort_of_an_array.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_1998_gcd_sort_of_an_array.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
# @l2g 1998 python3 # [1998] GCD Sort of an Array # Difficulty: Hard # https://leetcode.com/problems/gcd-sort-of-an-array # # You are given an integer array nums, # and you can perform the following operation any number of times on nums: # # Swap the positions of two elements nums[i] and nums[j] if gcd(nums[i], # nums[...
27.649485
101
0.54959
8dd1df6bb043d055d6d1497f985228a20b9ff564
385
py
Python
callback/leehyunseob.py
SanghunOh/share_5GUAV_2021
bdcc272da4bce5e3e56ff7842bff7fb0c802f083
[ "Apache-2.0" ]
null
null
null
callback/leehyunseob.py
SanghunOh/share_5GUAV_2021
bdcc272da4bce5e3e56ff7842bff7fb0c802f083
[ "Apache-2.0" ]
null
null
null
callback/leehyunseob.py
SanghunOh/share_5GUAV_2021
bdcc272da4bce5e3e56ff7842bff7fb0c802f083
[ "Apache-2.0" ]
3
2021-11-30T07:49:08.000Z
2021-12-01T08:57:48.000Z
#file length check if __name__ == '__main__': try: f = open('./testfile.txt', 'r') #1.file read -> open('') length = len(f.read()) #2.length f.close() #3. print(length) except Exception as e: pass
29.615385
67
0.392208
8dd3201b418fde039b2259ab6bd540e0133bf398
16,162
py
Python
tkp.py
Robin-mlh/TKPass
69608ca0b4c2f7204b3ef86a34f76f57e4737d53
[ "MIT" ]
1
2022-01-30T17:55:45.000Z
2022-01-30T17:55:45.000Z
tkp.py
Robin-mlh/TKPass
69608ca0b4c2f7204b3ef86a34f76f57e4737d53
[ "MIT" ]
null
null
null
tkp.py
Robin-mlh/TKPass
69608ca0b4c2f7204b3ef86a34f76f57e4737d53
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Password toolkit. """ import sys import os import getpass import configparser from secrets import randbelow # To use random cryptography. import argparse # Module for the command line system. import pyperclip # To copy and get the clipboard. from modules import functions # Functions. from...
53.694352
144
0.579879
8dd4c545f03ad0814c0530030a46215c353cc318
5,527
py
Python
daze.py
JTechnologies/daze-tool
b9ff4b30ad17a5aa9420abb632393e0b42d30505
[ "MIT" ]
1
2021-07-17T03:56:52.000Z
2021-07-17T03:56:52.000Z
daze.py
JTechnologies/Daze
e9a332e494eb8af681d58cfa4b93da22f8ddc8d7
[ "MIT" ]
null
null
null
daze.py
JTechnologies/Daze
e9a332e494eb8af681d58cfa4b93da22f8ddc8d7
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import os if len(sys.argv)>=2: if sys.argv[1]=="compile": if len(sys.argv)==4: inFile = sys.argv[2] outFile = sys.argv[3] with open(inFile,'r') as i: lines = i.read() with open(outFile,'w') as o: ...
36.846667
113
0.583499
8dd82fcdb2a1cf6ce796eb683e5deeed765ce740
4,246
py
Python
gamenotify/gamenotify.py
flaree/CASE
74c5a35455f226f02830014a377992ea8e8c00c4
[ "MIT" ]
null
null
null
gamenotify/gamenotify.py
flaree/CASE
74c5a35455f226f02830014a377992ea8e8c00c4
[ "MIT" ]
null
null
null
gamenotify/gamenotify.py
flaree/CASE
74c5a35455f226f02830014a377992ea8e8c00c4
[ "MIT" ]
null
null
null
import logging import discord from redbot.core import Config, bank, commands from redbot.core.utils.chat_formatting import escape, humanize_list, humanize_number, inline log = logging.getLogger("red.flare.gamenotify")
36.921739
127
0.569948
8dd8472912f57074671f132e7da36c74acb20d2c
585
py
Python
obstacle.py
B3CTOR/runner-ursina-engine
59ce82d1107420f17e3129cbe00ddbbd7047f68b
[ "MIT" ]
null
null
null
obstacle.py
B3CTOR/runner-ursina-engine
59ce82d1107420f17e3129cbe00ddbbd7047f68b
[ "MIT" ]
null
null
null
obstacle.py
B3CTOR/runner-ursina-engine
59ce82d1107420f17e3129cbe00ddbbd7047f68b
[ "MIT" ]
null
null
null
from ursina import * from random import randint
19.5
62
0.625641
8dd911497b1041f2adb09e4c8cc000d2f94e3512
2,938
py
Python
glamkit_collections/contrib/work_creator/migrations/0030_auto_20170523_1243.py
ic-labs/glamkit-collections
a99c64f1d6af2d900f2687dd4382404d67d559bb
[ "MIT" ]
52
2016-09-13T03:50:58.000Z
2022-02-23T16:25:08.000Z
glamkit_collections/contrib/work_creator/migrations/0030_auto_20170523_1243.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
304
2016-08-11T14:17:30.000Z
2020-07-22T13:35:18.000Z
glamkit_collections/contrib/work_creator/migrations/0030_auto_20170523_1243.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
12
2016-09-21T18:46:35.000Z
2021-02-15T19:37:50.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import edtf.fields
57.607843
491
0.693329
8dd9c8d87549231b3a8663f8575c7fcb907b1f2e
1,328
py
Python
ControlSystem.py
towhidabsar/architecture-tactics
d1d22454558cb763c93c5cfa83ede60967d1fadd
[ "MIT" ]
null
null
null
ControlSystem.py
towhidabsar/architecture-tactics
d1d22454558cb763c93c5cfa83ede60967d1fadd
[ "MIT" ]
null
null
null
ControlSystem.py
towhidabsar/architecture-tactics
d1d22454558cb763c93c5cfa83ede60967d1fadd
[ "MIT" ]
null
null
null
import Reactor import multiprocessing import sys from Queue import Empty import random import os import time ''' Class representing the control system for the nuclear reactor. '''
26.039216
73
0.527861
8dd9f948f3f00c5e76eea812c0d0b080a157911d
1,604
py
Python
predict.py
DavideA/deeplabv2-keras
adccf17cb4c039d761c60746db96d00d94ea6455
[ "MIT" ]
43
2017-03-01T02:28:05.000Z
2022-01-04T10:25:35.000Z
predict.py
AlanMorningLight/deeplabv2-keras
adccf17cb4c039d761c60746db96d00d94ea6455
[ "MIT" ]
2
2017-04-23T10:20:27.000Z
2018-10-03T07:57:26.000Z
predict.py
AlanMorningLight/deeplabv2-keras
adccf17cb4c039d761c60746db96d00d94ea6455
[ "MIT" ]
13
2017-02-27T10:57:30.000Z
2021-01-21T22:18:28.000Z
import numpy as np import matplotlib.pyplot as plt import cv2 from utils import palette from deeplabV2 import DeeplabV2 # predicts an image, with the cropping policy of deeplab (single scale for simplicity) if __name__ == '__main__': model = DeeplabV2(input_shape=(3, 512, 512), apply_softmax=False) model....
27.186441
103
0.642145
8ddad4e9fbb479e22837dcf2128e84b9ff8aff11
9,328
py
Python
ietf/api/__init__.py
MatheusProla/Codestand
f9f13f2b6e8f9a1500f93ab54da977bb7de0bf9e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2021-11-20T03:40:40.000Z
2021-11-20T03:40:42.000Z
ietf/api/__init__.py
MatheusProla/Codestand
f9f13f2b6e8f9a1500f93ab54da977bb7de0bf9e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ietf/api/__init__.py
MatheusProla/Codestand
f9f13f2b6e8f9a1500f93ab54da977bb7de0bf9e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
import re import six import datetime from urllib import urlencode from django.conf import settings from django.http import HttpResponse from django.core.exceptions import ObjectDoesNotExist from django.urls import reverse from django.utils.encoding import force_text import debug # pyflakes:...
40.380952
156
0.631003
8ddc6898208aa7308717de4ab718df136226f243
285
py
Python
UnityEngine/MaterialGlobalIlluminationFlags/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/MaterialGlobalIlluminationFlags/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/MaterialGlobalIlluminationFlags/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
from UdonPie import UnityEngine from UdonPie.Undefined import *
23.75
59
0.701754
8ddda7d4600521917a1070de6b66859bf659b9f1
2,120
py
Python
kbench/deployment.py
keichi/kbench
dda55de02624813a96f9fed42db55438f39ac7ec
[ "MIT" ]
null
null
null
kbench/deployment.py
keichi/kbench
dda55de02624813a96f9fed42db55438f39ac7ec
[ "MIT" ]
null
null
null
kbench/deployment.py
keichi/kbench
dda55de02624813a96f9fed42db55438f39ac7ec
[ "MIT" ]
null
null
null
from kubernetes import client from kubernetes.watch import Watch from loguru import logger from .consts import CONTAINER_NAME, DEPLOYMENT_PREFIX, NAMESPACE
37.192982
78
0.664623
8dde4046e63cc1ee3d6b6fb87289cd45be93b118
483
py
Python
tests/test_spartan6/test_fdce.py
phanrahan/mantle
c42cf50fe5827e4d29ad29e0e25a8848ec43d162
[ "MIT" ]
33
2018-06-11T22:58:23.000Z
2021-11-22T04:16:36.000Z
tests/test_spartan6/test_fdce.py
phanrahan/mantle
c42cf50fe5827e4d29ad29e0e25a8848ec43d162
[ "MIT" ]
90
2017-08-31T01:12:13.000Z
2021-09-17T04:07:07.000Z
tests/test_spartan6/test_fdce.py
phanrahan/mantle
c42cf50fe5827e4d29ad29e0e25a8848ec43d162
[ "MIT" ]
12
2017-09-01T03:25:36.000Z
2020-10-14T21:43:12.000Z
import magma as m from magma import DefineCircuit, EndCircuit, In, Out, Bit, Clock, wire from magma.backend.verilog import compile from mantle.xilinx.spartan6 import FDCE
25.421053
79
0.658385
8ddf276c1340fab80b6c4e8c58a5dffe6042636a
3,647
py
Python
bandit/containers/portfolio.py
zmy920423/bandit_portfolio_version
ce92c8f491dfc9cd94caa0783c7c5d263c3358a3
[ "MIT" ]
null
null
null
bandit/containers/portfolio.py
zmy920423/bandit_portfolio_version
ce92c8f491dfc9cd94caa0783c7c5d263c3358a3
[ "MIT" ]
1
2021-03-02T08:23:41.000Z
2021-03-02T08:23:41.000Z
bandit/containers/portfolio.py
zmy920423/bandit_portfolio_version
ce92c8f491dfc9cd94caa0783c7c5d263c3358a3
[ "MIT" ]
1
2021-12-04T08:23:16.000Z
2021-12-04T08:23:16.000Z
from bandit.containers.container import Container import torch as torch from collections import OrderedDict from bandit.functional import estimator_sample,estimator_ledoit_wolf
40.522222
134
0.637236
8ddf720d31f6738b5f0b050e396feb04999f5b66
1,157
py
Python
python/tblink_rpc_gw/rt/cocotb/__main__.py
tblink-rpc/tblink-rpc-gw
bc0c2e747b37f728128466af146597238d1c9cfb
[ "Apache-2.0" ]
null
null
null
python/tblink_rpc_gw/rt/cocotb/__main__.py
tblink-rpc/tblink-rpc-gw
bc0c2e747b37f728128466af146597238d1c9cfb
[ "Apache-2.0" ]
null
null
null
python/tblink_rpc_gw/rt/cocotb/__main__.py
tblink-rpc/tblink-rpc-gw
bc0c2e747b37f728128466af146597238d1c9cfb
[ "Apache-2.0" ]
null
null
null
''' Created on Mar 1, 2022 @author: mballance ''' import importlib import sys from tblink_rpc_core.endpoint import Endpoint from tblink_rpc_gw.rt.cocotb.mgr import Mgr def main(): ''' - Initiate connection to hardware platform - Pass endpoint to 'core' main ''' pass if __name__ == "__main__": ...
22.686275
95
0.656871
8de180647d2f66d6560c413289cd138d70ea2ad6
145
py
Python
exercicios_curso_em_video/Exercicio 46.py
Sposigor/Caminho_do_Python
e84d74e9dc89c0966f931a94cb9ebe3ee4671b6d
[ "MIT" ]
1
2021-01-13T18:07:46.000Z
2021-01-13T18:07:46.000Z
exercicios_curso_em_video/Exercicio 46.py
Sposigor/Caminho_do_Python
e84d74e9dc89c0966f931a94cb9ebe3ee4671b6d
[ "MIT" ]
null
null
null
exercicios_curso_em_video/Exercicio 46.py
Sposigor/Caminho_do_Python
e84d74e9dc89c0966f931a94cb9ebe3ee4671b6d
[ "MIT" ]
null
null
null
from time import sleep print('Fogos de artifcio vai comear em:') for i in range(10, -1, -1): sleep(1) print(i) print('BUAAAAAAAAAAAAA')
24.166667
43
0.682759
8de1a60454968db4372215e3ce7c0864abefe210
412
py
Python
Jarvis/blink.py
pkopoku/Morse-Pi
d77aa407680a4c10a0bbf88195af59d250d6eee0
[ "MIT" ]
null
null
null
Jarvis/blink.py
pkopoku/Morse-Pi
d77aa407680a4c10a0bbf88195af59d250d6eee0
[ "MIT" ]
null
null
null
Jarvis/blink.py
pkopoku/Morse-Pi
d77aa407680a4c10a0bbf88195af59d250d6eee0
[ "MIT" ]
null
null
null
#! /usr/bin/env python # this script is just to test stuff. You should probably ignore this. import RPi.GPIO import time gpio = RPi.GPIO gpio.setmode(gpio.BCM) # So I can refer to each pin by it's GPIO number gpio.setup(2, gpio.OUT) i = 0 while i < 10: gpio.output(2, True) #or gpio.HIGH and gpio.LOW time.sleep(0....
20.6
71
0.696602
8de3b8cbefb7da78e212e39b7dfd4a9e45616ae9
395
py
Python
mailtrigger/trigger/trigger.py
craftslab/mailtrigger
18856d574d1c4c99a4fa84e88b46273b5df2582d
[ "Apache-2.0" ]
null
null
null
mailtrigger/trigger/trigger.py
craftslab/mailtrigger
18856d574d1c4c99a4fa84e88b46273b5df2582d
[ "Apache-2.0" ]
null
null
null
mailtrigger/trigger/trigger.py
craftslab/mailtrigger
18856d574d1c4c99a4fa84e88b46273b5df2582d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import abc
15.8
34
0.594937
8de3fcd6ca1a1810a7acbfa5768a04b8eaa6e633
3,072
py
Python
src/modules/tcp/ssh.py
The-Cracker-Technology/nullscan
47fb41f17c59201a0d65a14705b4ff95fcc50a03
[ "MIT" ]
46
2020-04-18T16:42:59.000Z
2022-01-31T22:08:52.000Z
src/modules/tcp/ssh.py
The-Cracker-Technology/nullscan
47fb41f17c59201a0d65a14705b4ff95fcc50a03
[ "MIT" ]
null
null
null
src/modules/tcp/ssh.py
The-Cracker-Technology/nullscan
47fb41f17c59201a0d65a14705b4ff95fcc50a03
[ "MIT" ]
11
2020-04-23T12:46:18.000Z
2022-02-04T12:53:50.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ######################################################## # ____ _ __ # # ___ __ __/ / /__ ___ ______ ______(_) /___ __ # # / _ \/ // / / (_-</ -_) __/ // / __/ / __/ // / ...
29.538462
80
0.393555
8de55b924a4d6799ef0e5f21ddd9b96c893d36b5
711
py
Python
area/migrations/0004_alter_area_admin_alter_area_hoodimage.py
Lenus254/NeighbourHood-App
78e9ab01b67a410098b3173d8b392cfeede9731f
[ "MIT" ]
null
null
null
area/migrations/0004_alter_area_admin_alter_area_hoodimage.py
Lenus254/NeighbourHood-App
78e9ab01b67a410098b3173d8b392cfeede9731f
[ "MIT" ]
null
null
null
area/migrations/0004_alter_area_admin_alter_area_hoodimage.py
Lenus254/NeighbourHood-App
78e9ab01b67a410098b3173d8b392cfeede9731f
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-03-22 07:01 import cloudinary.models from django.db import migrations, models import django.db.models.deletion
27.346154
133
0.634318
8de8024631576b67e72ffa9b638299366362e1a4
60
py
Python
Lesson8_1/ff.py
shinkai-tester/python_beginner
a934328c9a50241cc3f02a423060e16aab53b425
[ "Apache-2.0" ]
2
2021-06-01T13:24:04.000Z
2021-06-01T13:27:47.000Z
Lesson8_1/ff.py
shinkai-tester/python_beginner
a934328c9a50241cc3f02a423060e16aab53b425
[ "Apache-2.0" ]
null
null
null
Lesson8_1/ff.py
shinkai-tester/python_beginner
a934328c9a50241cc3f02a423060e16aab53b425
[ "Apache-2.0" ]
null
null
null
b = 1 b = f(b) print(b)
6.666667
12
0.416667
8de82cc3701d9b97887b939ea04bd8e148a7f8e1
1,248
py
Python
system/dynamic_connection_creation.py
airflow-plugins/example_dags
3cf6b9bb59aa99dfadfef0391530b55a599bc55c
[ "Apache-2.0" ]
297
2018-02-14T03:36:35.000Z
2022-03-30T22:18:07.000Z
system/dynamic_connection_creation.py
airflow-plugins/example_dags
3cf6b9bb59aa99dfadfef0391530b55a599bc55c
[ "Apache-2.0" ]
1
2018-09-28T23:16:41.000Z
2018-09-28T23:16:41.000Z
system/dynamic_connection_creation.py
airflow-plugins/example_dags
3cf6b9bb59aa99dfadfef0391530b55a599bc55c
[ "Apache-2.0" ]
68
2018-03-02T03:43:58.000Z
2022-01-18T05:11:04.000Z
""" Dynamic Connection Creation from a Variable This file contains one ongoing DAG that executes every 15 minutes. This DAG makes use of one custom operator: - CreateConnectionsFromVariable https://github.com/airflow-plugins/variable_connection_plugin/blob/master/operator/variable_connection_operator.py#L36 ...
27.130435
122
0.766026
8de98605d2ea82741f7c77dad62e0cc4e5f0b700
723
py
Python
src/verify.py
RaISy-Net/Intelligent_picking
7168b9ccd1f66c26367a534bddac3c8b2f5dc192
[ "MIT" ]
1
2021-08-24T08:02:45.000Z
2021-08-24T08:02:45.000Z
src/verify.py
RaISy-Net/Intelligent_picking
7168b9ccd1f66c26367a534bddac3c8b2f5dc192
[ "MIT" ]
null
null
null
src/verify.py
RaISy-Net/Intelligent_picking
7168b9ccd1f66c26367a534bddac3c8b2f5dc192
[ "MIT" ]
3
2021-06-07T09:59:43.000Z
2021-07-22T18:38:57.000Z
import glob import os import matplotlib.pyplot as plt from src.utils.dataset_processing import grasp, image from src.utils.data.grasp_data import GraspDatasetBase if __name__=='__main__': dir='/home/ayush/Desktop/dataset/' x=125 depth_img = image.DepthImage.from_tiff(dir+'depth'+str(x)+'.png') gtbbs = grasp.Gra...
25.821429
84
0.735823
8de9b7c8ca4b1cdc412a8ebd15872130c405fe01
6,361
py
Python
tests/test_fastapi.py
Asphalt-framework/asphalt-web
8816ff78b486585d19862d593b0e1b622b3a0b15
[ "Apache-2.0" ]
null
null
null
tests/test_fastapi.py
Asphalt-framework/asphalt-web
8816ff78b486585d19862d593b0e1b622b3a0b15
[ "Apache-2.0" ]
null
null
null
tests/test_fastapi.py
Asphalt-framework/asphalt-web
8816ff78b486585d19862d593b0e1b622b3a0b15
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import json from collections.abc import Callable, Sequence from typing import Any import pytest import websockets from asgiref.typing import ASGI3Application, HTTPScope, WebSocketScope from asphalt.core import Component, Context, inject, require_resource, resource from fastapi impor...
33.303665
89
0.62836
8de9bac54c06400b09fe0841b43b9c0c1c1f4575
527
py
Python
Pre-train/refers/data/__init__.py
funnyzhou/REFERS
392eddf13cbf3c3a7dc0bf8bfffd108ca4a65a19
[ "MIT" ]
46
2021-11-19T03:23:01.000Z
2022-03-27T08:59:50.000Z
Pre-train/refers/data/__init__.py
funnyzhou/REFERS
392eddf13cbf3c3a7dc0bf8bfffd108ca4a65a19
[ "MIT" ]
null
null
null
Pre-train/refers/data/__init__.py
funnyzhou/REFERS
392eddf13cbf3c3a7dc0bf8bfffd108ca4a65a19
[ "MIT" ]
3
2022-01-22T18:45:20.000Z
2022-03-29T08:59:16.000Z
from .datasets.captioning import CaptioningDataset from .datasets.masked_lm import MaskedLmDataset from .datasets.multilabel import MultiLabelClassificationDataset from .datasets.downstream import ( ImageNetDataset, INaturalist2018Dataset, VOC07ClassificationDataset, ImageDirectoryDataset, ) __all__ = ...
26.35
64
0.781784
8dea9b9cdfc936bf5c2c5021853331e921a2b5fc
2,317
py
Python
pdf_parser/pdfparser.py
Sanardi/bored
2816395b99c05871f01fbbd55a833dcd13801014
[ "MIT" ]
null
null
null
pdf_parser/pdfparser.py
Sanardi/bored
2816395b99c05871f01fbbd55a833dcd13801014
[ "MIT" ]
null
null
null
pdf_parser/pdfparser.py
Sanardi/bored
2816395b99c05871f01fbbd55a833dcd13801014
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Feb 7 17:56:07 2020 Author: Cathrine Azam""" import regex as re import pandas as pd import time; from random import randint import os import os.path import errno from datetime import datetime from tika import parser import zipfile import csv if __name__ == '__main__': ...
28.604938
98
0.63962
8deba64769384e38daec29daef61ad97a9f4f95e
75
py
Python
marker/tests/test_pythagorean_therom/pythagorean_theorem.py
tahamian/autograder
47c9705fef27c369eaa1b4ded423dbd82bcac3eb
[ "MIT" ]
null
null
null
marker/tests/test_pythagorean_therom/pythagorean_theorem.py
tahamian/autograder
47c9705fef27c369eaa1b4ded423dbd82bcac3eb
[ "MIT" ]
5
2020-02-11T03:51:34.000Z
2020-05-16T21:05:58.000Z
marker/tests/test_pythagorean_therom/pythagorean_theorem.py
tahamian/autograder
47c9705fef27c369eaa1b4ded423dbd82bcac3eb
[ "MIT" ]
null
null
null
import math
12.5
37
0.586667
8dec35a4fe6c1659034a0fdf760e541f1a2dd9a8
1,357
py
Python
alembic/versions/7ddd008bcaaa_add_root_cause_table.py
oulabla/store
b0e8f8685844b38fd9be11d5e677405a1f4690c2
[ "MIT" ]
null
null
null
alembic/versions/7ddd008bcaaa_add_root_cause_table.py
oulabla/store
b0e8f8685844b38fd9be11d5e677405a1f4690c2
[ "MIT" ]
null
null
null
alembic/versions/7ddd008bcaaa_add_root_cause_table.py
oulabla/store
b0e8f8685844b38fd9be11d5e677405a1f4690c2
[ "MIT" ]
null
null
null
"""add root_cause table Revision ID: 7ddd008bcaaa Revises: a601763af304 Create Date: 2021-11-06 19:20:07.167512 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '7ddd008bcaaa' down_revision = 'a601763af304' branch_labels = None depends_on = None
28.270833
65
0.665438
8def83c5bdfc2b5c6a6581cffc480484ac917d3b
458
py
Python
test/_test_sample_z.py
yiruiliu110/eegnn
253773c301681bb00b4789c34f48c82468ad16da
[ "MIT" ]
null
null
null
test/_test_sample_z.py
yiruiliu110/eegnn
253773c301681bb00b4789c34f48c82468ad16da
[ "MIT" ]
null
null
null
test/_test_sample_z.py
yiruiliu110/eegnn
253773c301681bb00b4789c34f48c82468ad16da
[ "MIT" ]
null
null
null
import torch from torch.distributions import Gamma, Dirichlet from estimation import compute_z i = [[0, 1, 1, 2], [2, 0, 2, 1]] v_graph = [1, 1, 1, 1] v_c = [0, 1, 1, 0] graph = torch.sparse_coo_tensor(i, v_graph, (3, 3)) c = torch.sparse_coo_tensor(i, v_c, (3, 3)) max_K = 10 node_number = 4 w = Gamma(concentra...
20.818182
71
0.644105
8df154a304faf7dff813111bb6142c7bc3b7ec80
3,134
py
Python
cs15211/MirrorReflection.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2021-07-05T01:53:30.000Z
2021-07-05T01:53:30.000Z
cs15211/MirrorReflection.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
null
null
null
cs15211/MirrorReflection.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2018-01-08T07:14:08.000Z
2018-01-08T07:14:08.000Z
__source__ = 'https://leetcode.com/problems/mirror-reflection/' # Time: O(logP) # Space: O(1) # # Description: Leetcode # 858. Mirror Reflection # # There is a special square room with mirrors on each of the four walls. # Except for the southwest corner, there are receptors on each of the remaining corners, numbered 0...
27.734513
110
0.544352
8df2f1e265780538c4059c6c015d1dd9a77cc31e
9,144
py
Python
ldt/utils/usaf/bcsd_preproc/forecast_task_05.py
andrewsoong/LISF
20e3b00a72b6b348c567d0703550f290881679b4
[ "Apache-2.0" ]
67
2018-11-13T21:40:54.000Z
2022-02-23T08:11:56.000Z
ldt/utils/usaf/bcsd_preproc/forecast_task_05.py
andrewsoong/LISF
20e3b00a72b6b348c567d0703550f290881679b4
[ "Apache-2.0" ]
679
2018-11-13T20:10:29.000Z
2022-03-30T19:55:25.000Z
ldt/utils/usaf/bcsd_preproc/forecast_task_05.py
andrewsoong/LISF
20e3b00a72b6b348c567d0703550f290881679b4
[ "Apache-2.0" ]
119
2018-11-08T15:53:35.000Z
2022-03-28T10:16:01.000Z
#!/usr/bin/env python3 """ #------------------------------------------------------------------------------ # # SCRIPT: forecast_task_05.py # # PURPOSE: Computes the bias correction for the NMME dataset. Based on # FORECAST_TASK_03.sh. # # REVISION HISTORY: # 24 Oct 2021: Ryan Zamora, first version # #------------------...
28.845426
84
0.593395
8df39b9e1c345522795d8812fdbf9cbdb7a3b688
3,188
py
Python
symjax/data/dclde.py
RandallBalestriero/TheanoXLA
d8778c2eb3254b478cef4f45d934bf921e695619
[ "Apache-2.0" ]
67
2020-02-21T21:26:46.000Z
2020-06-14T14:25:42.000Z
symjax/data/dclde.py
RandallBalestriero/TheanoXLA
d8778c2eb3254b478cef4f45d934bf921e695619
[ "Apache-2.0" ]
8
2020-02-22T14:45:56.000Z
2020-06-07T16:56:47.000Z
symjax/data/dclde.py
RandallBalestriero/TheanoXLA
d8778c2eb3254b478cef4f45d934bf921e695619
[ "Apache-2.0" ]
4
2020-02-21T17:34:46.000Z
2020-05-30T08:30:14.000Z
import io import os import time import urllib.request import zipfile import numpy as np from scipy.io.wavfile import read as wav_read from tqdm import tqdm
37.505882
86
0.643664
8df4615701e7dedef4351712d7a59c5d1e5c432e
364
py
Python
Snippets and Basic Functions/Cryptography/ecdsa-ops.py
sckulkarni246/python-snippets-for-embedded-programmers
9dfd0b193f86a6de54598917f3d7088a60ec4abc
[ "MIT" ]
null
null
null
Snippets and Basic Functions/Cryptography/ecdsa-ops.py
sckulkarni246/python-snippets-for-embedded-programmers
9dfd0b193f86a6de54598917f3d7088a60ec4abc
[ "MIT" ]
null
null
null
Snippets and Basic Functions/Cryptography/ecdsa-ops.py
sckulkarni246/python-snippets-for-embedded-programmers
9dfd0b193f86a6de54598917f3d7088a60ec4abc
[ "MIT" ]
null
null
null
import ecdsa import hashlib sk = ecdsa.SigningKey.generate(curve=ecdsa.NIST256p) vk = sk.get_verifying_key() a = b"Hello World!" sig = sk.sign(a,hashfunc=hashlib.sha256) result = vk.verify(sig,a,hashfunc=hashlib.sha256) strsk = sk.to_string() strvk = vk.to_string() sk2 = ecdsa.SigningKey.from_string(strsk,curve=ec...
21.411765
62
0.760989
8df64593b0bbfb3001d49c39a8f9ee7560b013f2
9,852
py
Python
main.py
angmont/PIA_PC
62cf283c0a3a3fbb3aad0ce7ed8838d3d051d0b3
[ "MIT" ]
1
2021-11-18T02:59:06.000Z
2021-11-18T02:59:06.000Z
main.py
angmont/PIA_PC
62cf283c0a3a3fbb3aad0ce7ed8838d3d051d0b3
[ "MIT" ]
null
null
null
main.py
angmont/PIA_PC
62cf283c0a3a3fbb3aad0ce7ed8838d3d051d0b3
[ "MIT" ]
1
2021-11-17T17:55:59.000Z
2021-11-17T17:55:59.000Z
import subprocess import cifrado import enviocorreos import puertos import metadata import webscraping import argparse import os, time import logging logging.basicConfig(filename='app.log', level=logging.INFO) if __name__ == "__main__": description= ("Este script realiza una gran diversa cantidad de tareas " + "...
47.138756
244
0.616626
8df7b426e9ee1245061fe848cf34484fac491be9
1,336
py
Python
server/routes/status.py
narengan/Prometeo-Web-App
911993f527e88b4ac75b293c2aaea21ddb6cb86e
[ "Apache-2.0" ]
1
2021-05-22T15:46:08.000Z
2021-05-22T15:46:08.000Z
server/routes/status.py
narengan/Prometeo-Web-App
911993f527e88b4ac75b293c2aaea21ddb6cb86e
[ "Apache-2.0" ]
2
2020-08-24T03:16:28.000Z
2020-08-27T18:54:37.000Z
server/routes/status.py
Call-for-Code/Prometeo-Web-App
eb5121862b380b6a47b7ea77811b5710b051a6c1
[ "Apache-2.0" ]
2
2020-08-04T21:58:37.000Z
2020-09-22T20:35:04.000Z
#import requests import json import os import mariadb import logging from dotenv import load_dotenv
28.425532
72
0.54491
8df83aa2e492bb37ed2c5d1740b11752127d2f68
1,962
py
Python
features.py
Amirktb1994/infamous-werewolves
d40e30a799114d31bf139de5d789c0523640fe06
[ "CC0-1.0" ]
null
null
null
features.py
Amirktb1994/infamous-werewolves
d40e30a799114d31bf139de5d789c0523640fe06
[ "CC0-1.0" ]
null
null
null
features.py
Amirktb1994/infamous-werewolves
d40e30a799114d31bf139de5d789c0523640fe06
[ "CC0-1.0" ]
1
2022-02-03T17:27:08.000Z
2022-02-03T17:27:08.000Z
import numpy as np import pandas as pd
28.852941
96
0.58104
8df8932a9ee1c0e6b032f6fe22dd32a5d4ea9300
38,295
py
Python
BancoDeDados_Local.py
gpenello/ControleDeUso
9b9a26879a43459c56b8f7e3292f144745f13c5c
[ "MIT" ]
null
null
null
BancoDeDados_Local.py
gpenello/ControleDeUso
9b9a26879a43459c56b8f7e3292f144745f13c5c
[ "MIT" ]
null
null
null
BancoDeDados_Local.py
gpenello/ControleDeUso
9b9a26879a43459c56b8f7e3292f144745f13c5c
[ "MIT" ]
null
null
null
import sqlite3 from sqlite3 import Error import datetime import csv import urllib.request as urllib2 import os dir_path = os.path.dirname(os.path.realpath(__file__)) if __name__ == '__main__': db = BancoDeDados('arquivo.db') #exemplo de uso # %%
36.195652
144
0.499804
8dfb3fbfc843c3be1d818addbf1984396e1ec8a7
211
py
Python
module4-software-testing-documentation-and-licensing/yeetroot.py
rselent/DS-Unit-3-Sprint-1-Software-Engineering
c11433214a91cde68a328c61c4b6d73ac7671dc0
[ "MIT" ]
null
null
null
module4-software-testing-documentation-and-licensing/yeetroot.py
rselent/DS-Unit-3-Sprint-1-Software-Engineering
c11433214a91cde68a328c61c4b6d73ac7671dc0
[ "MIT" ]
null
null
null
module4-software-testing-documentation-and-licensing/yeetroot.py
rselent/DS-Unit-3-Sprint-1-Software-Engineering
c11433214a91cde68a328c61c4b6d73ac7671dc0
[ "MIT" ]
null
null
null
""" Simple yeetroot example """
26.375
74
0.635071
8dfcb3cc51ba098203b49c8846a0a0b7192220bf
313
py
Python
scenarios/SambaShare/config.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:01:51.000Z
2022-03-31T14:01:51.000Z
scenarios/SambaShare/config.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
null
null
null
scenarios/SambaShare/config.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:02:30.000Z
2022-03-31T14:02:30.000Z
imagename = "smbScenario" author = "David Konczewski" hostplatform = "windows" poolpath = "/home/wurstfingersalat/Downloads/fortracepool/" smbname = "smbServer" smbplatform = "unix" sourcePath = "C:\Users\fortrace\Desktop\TestFile.txt" targetPath = r"\\192.168.103.102\public" username = "bla" password = "test"
26.083333
59
0.747604
5c00950b25c9b7da1e6e25db92f6ed895bb30fc7
259
py
Python
config.py
caly-pso/disease_explorer_app
3a7a5123577b1d23af18c74ee9666dfa012298ab
[ "MIT" ]
2
2020-12-16T03:01:17.000Z
2020-12-16T03:39:46.000Z
config.py
caly-pso/disease_explorer_app
3a7a5123577b1d23af18c74ee9666dfa012298ab
[ "MIT" ]
null
null
null
config.py
caly-pso/disease_explorer_app
3a7a5123577b1d23af18c74ee9666dfa012298ab
[ "MIT" ]
null
null
null
db = "https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-counties.csv" # database file downloaded from # https://www.weather.gov/source/gis/Shapefiles/County/c_03mr20.zip # to get the lat and long values for US counties dbf = "./c_03mr20.dbf"
37
85
0.764479
5c0172cd27bbd7f4fa652b928fcaed22fb74ab65
1,280
py
Python
CronJob.py
scimone/Notion_Sync
a5a9e61709cab9c3d7a053d390ec42567ebca9c7
[ "MIT" ]
null
null
null
CronJob.py
scimone/Notion_Sync
a5a9e61709cab9c3d7a053d390ec42567ebca9c7
[ "MIT" ]
null
null
null
CronJob.py
scimone/Notion_Sync
a5a9e61709cab9c3d7a053d390ec42567ebca9c7
[ "MIT" ]
null
null
null
from apscheduler.schedulers.blocking import BlockingScheduler from Todoist import TodoIstAPI from Notion import NotionAPI from Gcal import GCalAPI import json import os from Main import run_sync if __name__ == '__main__': notion = create_notion_api() if os.environ['SYNC_TODOIST'] == "True" and os.environ['S...
29.090909
82
0.690625
5c01a497c517f20464ab8e3ca58a94db185ad9cc
1,696
py
Python
pyjswidgets/pyjamas/ui/DropWidget.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
739
2015-01-01T02:05:11.000Z
2022-03-30T15:26:16.000Z
pyjswidgets/pyjamas/ui/DropWidget.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
33
2015-03-25T23:17:04.000Z
2021-08-19T08:25:22.000Z
pyjswidgets/pyjamas/ui/DropWidget.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
167
2015-01-01T22:27:47.000Z
2022-03-17T13:29:19.000Z
# Copyright (C) 2010 Jim Washington # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
27.803279
74
0.715802
5c01a7f85b64aae6b1ef0f541d5bbcd7aadbba53
515
py
Python
okr/migrations/0045_auto_20210114_1812.py
wdr-data/wdr-okr
71c9e6e8d3521b1bb67d30310a93584389de2127
[ "MIT" ]
2
2021-07-28T08:46:13.000Z
2022-01-19T17:05:48.000Z
okr/migrations/0045_auto_20210114_1812.py
wdr-data/wdr-okr
71c9e6e8d3521b1bb67d30310a93584389de2127
[ "MIT" ]
3
2020-11-10T23:34:17.000Z
2021-03-31T16:19:21.000Z
okr/migrations/0045_auto_20210114_1812.py
wdr-data/wdr-okr
71c9e6e8d3521b1bb67d30310a93584389de2127
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-14 17:12 from django.db import migrations, models
22.391304
53
0.549515
5c0322e9fcbd97a7c07e00e86b4ec9ca80702fb7
5,006
py
Python
kivy-greeter.py
jegger/kivy-lightdm-greeter
f2c673bf690583262c6b9339f453236ec45de3b8
[ "MIT" ]
4
2015-06-30T10:13:46.000Z
2021-05-12T04:25:45.000Z
kivy-greeter.py
jegger/kivy-lightdm-greeter
f2c673bf690583262c6b9339f453236ec45de3b8
[ "MIT" ]
null
null
null
kivy-greeter.py
jegger/kivy-lightdm-greeter
f2c673bf690583262c6b9339f453236ec45de3b8
[ "MIT" ]
null
null
null
import sys from kivy.app import App from kivy.support import install_gobject_iteration from kivy.lang import Builder from kivy.core.window import Window from kivy.config import Config from gi.repository import LightDM kv = ''' FloatLayout: username_spinner: username_spinner session_spinner: session_spinner ...
34.287671
101
0.543548
5c035e049d462ac6fb13d8a19589b38e798b40b0
1,660
py
Python
alipay/aop/api/response/AlipayPayAppSmartwearStatusQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayPayAppSmartwearStatusQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayPayAppSmartwearStatusQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse
29.642857
113
0.683735
5c03af92ab300c1e67a6c327adc3b89e2c185616
36,983
py
Python
SAM.py
Tks4Fish/SAM
2a3a3177fd8eedad5f5728b83330ea3b86ee36dd
[ "MIT" ]
null
null
null
SAM.py
Tks4Fish/SAM
2a3a3177fd8eedad5f5728b83330ea3b86ee36dd
[ "MIT" ]
null
null
null
SAM.py
Tks4Fish/SAM
2a3a3177fd8eedad5f5728b83330ea3b86ee36dd
[ "MIT" ]
null
null
null
import requests import sqlite3 import json import re from requests_oauthlib import OAuth1 from sopel import module SAM_DB = "/home/ubuntu/.sopel/modules/SAM.db" CONTACT_OP = "You are not configured. Please contact Operator873."
31.394737
193
0.531785
5c0492449332d3db99f66e60d23603daa7ad18fa
1,717
py
Python
tests/cli_snippets/test_cli_versioning.py
shalevy1/DataFS
0d32c2b4e18d300a11b748a552f6adbc3dd8f59d
[ "MIT" ]
7
2017-01-27T16:41:26.000Z
2021-11-05T00:42:31.000Z
tests/cli_snippets/test_cli_versioning.py
ClimateImpactLab/DataFS
e37811d51e51c23f688909e59e74b67a8325ce27
[ "MIT" ]
522
2016-11-21T20:30:39.000Z
2021-11-15T17:47:11.000Z
tests/cli_snippets/test_cli_versioning.py
shalevy1/DataFS
0d32c2b4e18d300a11b748a552f6adbc3dd8f59d
[ "MIT" ]
3
2017-01-17T03:09:28.000Z
2019-06-28T21:08:40.000Z
import pytest import os
19.292135
79
0.687828
5c04fd92d01ac10f7966f3ef31ce9e11b0902b37
1,967
py
Python
saleor/graphql/payment/tests/queries/test_payments_filter.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
1,392
2021-10-06T15:54:28.000Z
2022-03-31T20:50:55.000Z
saleor/graphql/payment/tests/queries/test_payments_filter.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
888
2021-10-06T10:48:54.000Z
2022-03-31T11:00:30.000Z
saleor/graphql/payment/tests/queries/test_payments_filter.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
538
2021-10-07T16:21:27.000Z
2022-03-31T22:58:57.000Z
import graphene from .....payment.models import Payment from ....tests.utils import get_graphql_content PAYMENT_QUERY = """ query Payments($filter: PaymentFilterInput){ payments(first: 20, filter: $filter) { edges { node { id gateway capturedAmou...
25.545455
77
0.528724
5c05581cfe7725cd6de73043086602105f3512f1
205
py
Python
src/commands/posts/kernel.py
MineHubCZ/MH-DOS
0d1361aee8aa4903e7b6c89c1df279b74d55d703
[ "MIT" ]
2
2021-08-01T12:59:59.000Z
2021-09-27T05:51:05.000Z
src/commands/posts/kernel.py
MineHubCZ/MH-DOS
0d1361aee8aa4903e7b6c89c1df279b74d55d703
[ "MIT" ]
3
2021-07-25T07:54:19.000Z
2021-08-18T20:35:26.000Z
src/commands/posts/kernel.py
MineHubCZ/MH-DOS
0d1361aee8aa4903e7b6c89c1df279b74d55d703
[ "MIT" ]
null
null
null
from commands.posts.show import show from commands.posts.all import all
17.083333
36
0.629268
5c066c2d1cd205a0c7274bfae051725a4ed17402
804
py
Python
tests/test_features.py
resuelve/silk-ml
7cabfdc50fcbc41efb5360afae0f8081c2df2b8b
[ "MIT" ]
6
2019-07-30T15:30:13.000Z
2019-08-21T16:16:50.000Z
tests/test_features.py
resuelve/silk-ml
7cabfdc50fcbc41efb5360afae0f8081c2df2b8b
[ "MIT" ]
null
null
null
tests/test_features.py
resuelve/silk-ml
7cabfdc50fcbc41efb5360afae0f8081c2df2b8b
[ "MIT" ]
1
2019-07-26T18:28:16.000Z
2019-07-26T18:28:16.000Z
import unittest import pandas as pd import random as rd from silk_ml.features import split_classes if __name__ == '__main__': unittest.main()
28.714286
71
0.594527
5c067aec8b07feba720d2a779edaf34ba9724469
1,320
py
Python
generateFunctions.py
yudasong/Reinforcement-Learning-Branch-and-Bound
052a64425ca969f421a079dc62049fb68b4957c5
[ "MIT" ]
14
2020-01-03T13:11:36.000Z
2022-01-14T04:13:34.000Z
generateFunctions.py
yudasong/Reinforcement-Learning-Branch-and-Bound
052a64425ca969f421a079dc62049fb68b4957c5
[ "MIT" ]
null
null
null
generateFunctions.py
yudasong/Reinforcement-Learning-Branch-and-Bound
052a64425ca969f421a079dc62049fb68b4957c5
[ "MIT" ]
5
2020-02-24T09:23:50.000Z
2021-10-10T10:33:50.000Z
#This file will generate functions in polynomials import numpy as np import random import matplotlib.pyplot as plt #p = generateFunctions() #function = p.generate() #print(function)
29.333333
86
0.692424
5c06db5ba3bf90c9ee03e65c8f4a4dedadacc58d
8,184
py
Python
corehq/apps/locations/tests/test_location_import.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/locations/tests/test_location_import.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/locations/tests/test_location_import.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
from corehq.apps.commtrack.helpers import make_supply_point from corehq.apps.commtrack.tests.util import CommTrackTest, make_loc from corehq.apps.commtrack.const import DAYS_IN_MONTH from corehq.apps.locations.models import Location from corehq.apps.locations.bulk import import_location from mock import patch from core...
35.275862
89
0.619501
5c08b211808dc9006c8493ebe3f747d2ee9a75e7
3,959
py
Python
tests/domain/test_Track_remove_devices.py
josiah-wolf-oberholtzer/tloen
731e57f2a0634d5e472c5878ff5b9cc7b4d84974
[ "MIT" ]
3
2020-02-09T09:29:45.000Z
2021-12-29T01:37:45.000Z
tests/domain/test_Track_remove_devices.py
josiah-wolf-oberholtzer/tloen
731e57f2a0634d5e472c5878ff5b9cc7b4d84974
[ "MIT" ]
null
null
null
tests/domain/test_Track_remove_devices.py
josiah-wolf-oberholtzer/tloen
731e57f2a0634d5e472c5878ff5b9cc7b4d84974
[ "MIT" ]
1
2020-12-12T22:29:48.000Z
2020-12-12T22:29:48.000Z
import asyncio import pytest from supriya.synthdefs import SynthDefFactory from tloen.domain import Application, AudioEffect
34.72807
79
0.714827
5c0a1e80a16f68e61cc5642841dd83ba1585f381
32,184
py
Python
split_exon_realign_jobs.py
hillerlab/TOGA
c4bce48c760d51739a8a63132316f49de77e0c71
[ "MIT" ]
32
2020-07-20T03:18:28.000Z
2022-03-28T09:04:48.000Z
split_exon_realign_jobs.py
hillerlab/TOGA
c4bce48c760d51739a8a63132316f49de77e0c71
[ "MIT" ]
28
2020-07-20T14:03:55.000Z
2022-02-28T08:08:39.000Z
split_exon_realign_jobs.py
hillerlab/TOGA
c4bce48c760d51739a8a63132316f49de77e0c71
[ "MIT" ]
5
2020-07-23T13:03:32.000Z
2021-09-16T15:39:23.000Z
#!/usr/bin/env python3 """Create CESAR joblist. According to predicted orthologous chains create CESAR jobs. Merge them into joblists. """ import argparse import os import sys import math from collections import defaultdict from datetime import datetime as dt from re import finditer, IGNORECASE import ctypes from twob...
38.132701
95
0.617947
5c0db54dcf8f6e2ff5203af6d9e96256c8381459
1,833
py
Python
portfolio_project/guestbook/models.py
KimEunYeol/web-portfolio
cd56191bdf12c712b252015d3ecb31b037f922ed
[ "MIT" ]
null
null
null
portfolio_project/guestbook/models.py
KimEunYeol/web-portfolio
cd56191bdf12c712b252015d3ecb31b037f922ed
[ "MIT" ]
7
2021-03-19T03:41:33.000Z
2022-03-12T00:30:35.000Z
portfolio_project/guestbook/models.py
KimEunYeol/web-portfolio
cd56191bdf12c712b252015d3ecb31b037f922ed
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from user.models import User
35.25
111
0.758865
5c0dd0c2c5e84c205f1b2d936693a302d828127d
3,710
py
Python
bin/exemple_with_processors.py
xgodon/ssxtd
ecce4b5a88effefa71f80de9e51c0f1ab000faff
[ "MIT" ]
1
2021-08-02T08:38:33.000Z
2021-08-02T08:38:33.000Z
bin/exemple_with_processors.py
xgodon/ssxtd
ecce4b5a88effefa71f80de9e51c0f1ab000faff
[ "MIT" ]
1
2020-10-01T14:46:55.000Z
2021-11-05T16:27:45.000Z
bin/exemple_with_processors.py
xgodon/ssxtd
ecce4b5a88effefa71f80de9e51c0f1ab000faff
[ "MIT" ]
null
null
null
import gzip import zlib import io from ssxtd import parsers import time my_file = io.StringIO('''<doc farm = "456"> <i species = "lapin" sex = "male" >John</i> <i species = "chien"><sub subspec = "Kooikerhondje">Tristan</sub></i> <i species = "cheval"> <count>1.1</count> </i> <i> <mo...
28.320611
130
0.444474
5c0e52ef0cf1092f1b89f782b67d269851c7f4d0
9,099
py
Python
src/cheesyutils/discord_bots/paginator.py
e-Lisae/cheesyutils
75e3d40d4456f2947e6b5130328d2cacd42b9e31
[ "MIT" ]
null
null
null
src/cheesyutils/discord_bots/paginator.py
e-Lisae/cheesyutils
75e3d40d4456f2947e6b5130328d2cacd42b9e31
[ "MIT" ]
5
2021-05-07T02:15:39.000Z
2022-03-04T02:25:13.000Z
src/cheesyutils/discord_bots/paginator.py
e-Lisae/cheesyutils
75e3d40d4456f2947e6b5130328d2cacd42b9e31
[ "MIT" ]
2
2021-04-10T23:39:34.000Z
2021-07-18T19:35:19.000Z
import discord from discord.ext import commands from typing import Any, Iterator, List, NoReturn, Optional, Sequence
32.848375
127
0.55061
5c1034bae8fc295a3f243c68cc7b08646a98fe8b
348
py
Python
22. Workshop - Custom List/tests/tests_case_base.py
elenaborisova/Python-OOP
584882c08f84045b12322917f0716c7c7bd9befc
[ "MIT" ]
1
2021-03-27T16:56:30.000Z
2021-03-27T16:56:30.000Z
22. Workshop - Custom List/tests/tests_case_base.py
elenaborisova/Python-OOP
584882c08f84045b12322917f0716c7c7bd9befc
[ "MIT" ]
null
null
null
22. Workshop - Custom List/tests/tests_case_base.py
elenaborisova/Python-OOP
584882c08f84045b12322917f0716c7c7bd9befc
[ "MIT" ]
1
2021-03-15T14:50:39.000Z
2021-03-15T14:50:39.000Z
from unittest import TestCase
29
60
0.649425
5c103d5806b3cf61faad4b31d5e4506c4a559efc
787
py
Python
examples/Town_v2/test1.py
hxb1997/Menge
7a09a6236d8eef23e3d15d08873d5918d064761b
[ "Apache-2.0" ]
null
null
null
examples/Town_v2/test1.py
hxb1997/Menge
7a09a6236d8eef23e3d15d08873d5918d064761b
[ "Apache-2.0" ]
null
null
null
examples/Town_v2/test1.py
hxb1997/Menge
7a09a6236d8eef23e3d15d08873d5918d064761b
[ "Apache-2.0" ]
1
2021-07-01T09:40:01.000Z
2021-07-01T09:40:01.000Z
import sys import numpy as np import os if __name__ == '__main__': ''' agent_shopping_moment = [] for i in range(0, 10): agent_shopping_moment.append([]) for j in range(0, 2): agent_shopping_moment[i].append([]) #agent_shopping_moment[0][0].append(1) #agent_s...
29.148148
120
0.594663
5c10789244d738f5d829bc991c461a312738687c
11,361
py
Python
caid-gui/geometry.py
ratnania/caid
5bc5428007c8642412762f80c36e8531e56cd15e
[ "MIT" ]
4
2016-03-15T11:28:57.000Z
2018-05-29T15:10:02.000Z
caid-gui/geometry.py
pyccel/caid
5bc5428007c8642412762f80c36e8531e56cd15e
[ "MIT" ]
null
null
null
caid-gui/geometry.py
pyccel/caid
5bc5428007c8642412762f80c36e8531e56cd15e
[ "MIT" ]
5
2018-11-22T13:06:44.000Z
2021-06-09T11:36:59.000Z
# -*- coding: UTF-8 -*- from caid.cad_geometry import cad_geometry from evaluator import CurveEvaluator, SurfaceEvaluator, VolumeEvaluator from numpy import array, asarray from OpenGL.GL import * from theme import theme as Theme from global_vars import strtoArray theme = Theme() ALPHA = theme.alpha...
29.818898
91
0.540269
5c1159ea01955f0fb56759c5fc98aae1d3249660
455
py
Python
guess.py
emacslisp/pythonlib
5f299b24c3c4ea56fed48ed71d4a4c826e1cb36b
[ "Apache-2.0" ]
null
null
null
guess.py
emacslisp/pythonlib
5f299b24c3c4ea56fed48ed71d4a4c826e1cb36b
[ "Apache-2.0" ]
null
null
null
guess.py
emacslisp/pythonlib
5f299b24c3c4ea56fed48ed71d4a4c826e1cb36b
[ "Apache-2.0" ]
null
null
null
from random import randint guess()
25.277778
61
0.538462
5c127c784fcfe464f5d2a9a7fb9130a51d8772b7
774
py
Python
tensorflow/linear regression.py
hongjun7/Python
09a000efe2ff3316429519a78cad0c0f2e29defd
[ "MIT" ]
null
null
null
tensorflow/linear regression.py
hongjun7/Python
09a000efe2ff3316429519a78cad0c0f2e29defd
[ "MIT" ]
null
null
null
tensorflow/linear regression.py
hongjun7/Python
09a000efe2ff3316429519a78cad0c0f2e29defd
[ "MIT" ]
null
null
null
import tensorflow as tf #initialize data X = [2, 5, 7] Y = [3, 4, 6] W = tf.Variable(tf.random_normal([1]), name='weight') b = tf.Variable(tf.random_normal([1]), name='bias') #hypothesis H = WX+b H = W * X + b #cost/loss function cost = tf.reduce_mean(tf.square(H - Y)) #minimize optimizer = tf.trai...
24.967742
82
0.627907
5c149019d58c90d7359b4e0959089c28b0cf9466
3,088
py
Python
realtime_plot_window.py
krogk/Webcam-morse-decoder
beac184e047511756ec195765928421096a3ad5e
[ "MIT" ]
null
null
null
realtime_plot_window.py
krogk/Webcam-morse-decoder
beac184e047511756ec195765928421096a3ad5e
[ "MIT" ]
null
null
null
realtime_plot_window.py
krogk/Webcam-morse-decoder
beac184e047511756ec195765928421096a3ad5e
[ "MIT" ]
1
2021-12-20T23:56:42.000Z
2021-12-20T23:56:42.000Z
# -*- coding: utf-8 -*- """ Created on Sun Nov 15 17:22:01 2020 @author: Kamil """ import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation import morse_decoder import iir_filter
35.090909
108
0.642163
5c1564960a1c44fb64e9e0e02b3642c32a4c08b0
6,348
py
Python
library/gcloud_accessor/rest_library/shared/gcloud_rest_lib_base.py
anchitarnav/gcloud-resource-cleanup
a3b220f406529df43ffd5afa8adb929c718caba5
[ "MIT" ]
null
null
null
library/gcloud_accessor/rest_library/shared/gcloud_rest_lib_base.py
anchitarnav/gcloud-resource-cleanup
a3b220f406529df43ffd5afa8adb929c718caba5
[ "MIT" ]
6
2020-04-29T09:09:48.000Z
2021-04-30T21:13:57.000Z
library/gcloud_accessor/rest_library/shared/gcloud_rest_lib_base.py
anchitarnav/gcloud-resource-cleanup
a3b220f406529df43ffd5afa8adb929c718caba5
[ "MIT" ]
null
null
null
from library.utilities.misc import parse_link, get_resource_type from library.utilities.logger import get_logger from google.auth.transport.requests import AuthorizedSession from google.auth import default from requests import codes, exceptions import time import re from json import JSONDecodeError
48.090909
119
0.594833
5c16ce96d31342333f8d62c67e0396edc0906f37
907
py
Python
ObjectWrapper/GlyphsApp/UI/HTMLView.py
Mark2Mark/GlyphsSDK
810d98d09b4fea083dfcfdd743f56f8b8810d881
[ "Apache-2.0" ]
58
2015-02-03T05:15:30.000Z
2022-03-24T14:19:54.000Z
ObjectWrapper/GlyphsApp/UI/HTMLView.py
Mark2Mark/GlyphsSDK
810d98d09b4fea083dfcfdd743f56f8b8810d881
[ "Apache-2.0" ]
54
2015-07-11T00:43:07.000Z
2022-03-01T11:48:27.000Z
ObjectWrapper/GlyphsApp/UI/HTMLView.py
Mark2Mark/GlyphsSDK
810d98d09b4fea083dfcfdd743f56f8b8810d881
[ "Apache-2.0" ]
35
2015-02-13T19:59:03.000Z
2022-03-11T15:56:17.000Z
# -*- coding: utf-8 -*- from __future__ import print_function __all__ = ["HTMLView"] from WebKit import WebView from vanilla.vanillaBase import VanillaBaseObject
27.484848
109
0.728776
5c1aa977e0dbc7ec0ded1eb7d6b2410fc959b102
6,638
py
Python
scripts/build_stubs.py
alflanagan/vscode-circuitpython
9a9328e02f282b6bf9080afa7468dc2c7efc05a7
[ "MIT" ]
62
2020-03-12T19:05:06.000Z
2022-03-12T21:22:10.000Z
scripts/build_stubs.py
alflanagan/vscode-circuitpython
9a9328e02f282b6bf9080afa7468dc2c7efc05a7
[ "MIT" ]
63
2020-03-10T12:25:00.000Z
2022-03-30T16:47:47.000Z
scripts/build_stubs.py
alflanagan/vscode-circuitpython
9a9328e02f282b6bf9080afa7468dc2c7efc05a7
[ "MIT" ]
20
2020-03-11T16:03:04.000Z
2022-02-13T22:34:08.000Z
#!/usr/bin/env python3 # This is a script for using circuitpython's repo to make pyi files for each board type. # These need to be bundled with the extension, which means that adding new boards is still # a new release of the extension. # import mypy import json import pathlib import re def normalize_vid_pid(vid_o...
34.936842
101
0.578939
5c1c9feb873d296b531ccd21db014e4daa80d8d4
1,148
py
Python
ts_charting/span.py
csullivan/ts-charting
43974f1c255a8810db1534754d796aeb79909553
[ "MIT" ]
32
2015-02-23T14:22:22.000Z
2022-01-22T23:00:49.000Z
ts_charting/span.py
csullivan/ts-charting
43974f1c255a8810db1534754d796aeb79909553
[ "MIT" ]
1
2015-08-09T17:02:20.000Z
2015-08-09T17:02:20.000Z
ts_charting/span.py
csullivan/ts-charting
43974f1c255a8810db1534754d796aeb79909553
[ "MIT" ]
11
2015-02-25T20:34:42.000Z
2020-11-26T17:36:18.000Z
""" Span highlighting """ import ts_charting as charting def highlight_span(start=None, end=None, color='g', alpha=0.5, grapher=None): """ A quick shortcut way to highlight regions of a chart. Uses the Grapher.df.index to translate non int-position arguments to int locations. """ if start is None a...
28
89
0.656794
5c1e117e48e80febf5a0c1cd80b83dc313616acb
3,520
py
Python
benchmarks/geometry/align.py
martimunicoy/offpele-benchmarks
20af939ce60252c05e0c1e44b85cf89a4f8a2245
[ "MIT" ]
null
null
null
benchmarks/geometry/align.py
martimunicoy/offpele-benchmarks
20af939ce60252c05e0c1e44b85cf89a4f8a2245
[ "MIT" ]
7
2020-08-07T14:51:02.000Z
2020-10-30T20:18:38.000Z
benchmarks/geometry/align.py
martimunicoy/offpele-benchmarks
20af939ce60252c05e0c1e44b85cf89a4f8a2245
[ "MIT" ]
null
null
null
""" It takes to peleffy's molecule representations, aligns them and calculates the RMSD using RDKit. """ from multiprocessing import Pool from copy import deepcopy from rdkit.Chem import AllChem from rdkit import Chem
32.293578
74
0.58267
5c1f2325efddc0359fdbe35d4350e400396feb6d
4,135
py
Python
source_code/data_structures/linked_list.py
itsjunqing/fit1008-introduction-to-computer-science
aaf2061ecdcbf10c08b60ef481d1e8c6d3199f94
[ "MIT" ]
7
2019-08-29T10:11:17.000Z
2021-11-28T20:36:32.000Z
source_code/data_structures/linked_list.py
itsjunqing/fit1008-introduction-to-computer-science
aaf2061ecdcbf10c08b60ef481d1e8c6d3199f94
[ "MIT" ]
null
null
null
source_code/data_structures/linked_list.py
itsjunqing/fit1008-introduction-to-computer-science
aaf2061ecdcbf10c08b60ef481d1e8c6d3199f94
[ "MIT" ]
6
2020-10-21T07:55:10.000Z
2021-11-05T10:08:06.000Z
from data_structures.node import Node if __name__ == '__main__': a_list = LinkedList() # a_list.insert(0, 13) # a_list.insert(0, 12) # a_list.insert(0, 11) # a_list.insert(0, 10) # a_list.insert(0, 9) # a_list.insert(0, 8) # a_list.insert(0, 7) # a_list.insert(0, 6) # a_list.insert(0, 5) a_list.insert(...
23.628571
116
0.674244
5c23aa1462951ea80e2931b047829de1c1497d90
1,909
py
Python
edsnlp/pipelines/factories.py
aphp/edsnlp
a39ea23ff193764a8b1a42c5de463cd43202c134
[ "BSD-3-Clause" ]
32
2022-03-08T16:45:09.000Z
2022-03-31T15:21:00.000Z
edsnlp/pipelines/factories.py
aphp/edsnlp
a39ea23ff193764a8b1a42c5de463cd43202c134
[ "BSD-3-Clause" ]
19
2022-03-09T11:44:43.000Z
2022-03-31T14:32:06.000Z
edsnlp/pipelines/factories.py
aphp/edsnlp
a39ea23ff193764a8b1a42c5de463cd43202c134
[ "BSD-3-Clause" ]
1
2022-03-11T16:14:21.000Z
2022-03-11T16:14:21.000Z
# flake8: noqa: F811 from .core.advanced.factory import create_component as advanced from .core.context.factory import create_component as context from .core.endlines.factory import create_component as endlines from .core.matcher.factory import create_component as matcher from .core.normalizer.accents.factory import cr...
63.633333
83
0.858565
5c242a198477936939412bc6fd3c800247ffa52b
310
py
Python
neuraldistributions/utility/__init__.py
mohammadbashiri/bashiri-et-al-2021
c7c15ea0bf165d4d3db2ff63a04a1e78c29bf44c
[ "MIT" ]
2
2021-12-04T20:01:00.000Z
2021-12-05T19:59:02.000Z
neuraldistributions/utility/__init__.py
mohammadbashiri/bashiri-et-al-2021
c7c15ea0bf165d4d3db2ff63a04a1e78c29bf44c
[ "MIT" ]
1
2021-12-15T20:50:04.000Z
2021-12-15T20:50:04.000Z
neuraldistributions/utility/__init__.py
mohammadbashiri/bashiri-et-al-2021
c7c15ea0bf165d4d3db2ff63a04a1e78c29bf44c
[ "MIT" ]
1
2021-09-15T12:26:17.000Z
2021-09-15T12:26:17.000Z
from .reproducibility import set_random_seed from .training import EarlyStopping from .dataset import get_dataloader, imread from .model_evaluation import ( get_conditional_means, get_conditional_variances, spearman_corr, ) from .scoring_functions import ( Correlation, get_loglikelihood, )
25.833333
44
0.8
5c282e74ecce40368a460659e8e3a9d347182392
1,313
py
Python
Web/Member/FunctionForPI/RoundAdd.py
tratitude/BridgeMaster
e3916b077d96f3520d0a8ed9bb548d614465aa2e
[ "Apache-2.0" ]
1
2021-01-05T14:40:08.000Z
2021-01-05T14:40:08.000Z
Web/Member/FunctionForPI/RoundAdd.py
fdmdkw/BridgeMaster
e3916b077d96f3520d0a8ed9bb548d614465aa2e
[ "Apache-2.0" ]
1
2021-10-19T08:05:06.000Z
2021-10-19T08:05:06.000Z
Web/Member/FunctionForPI/RoundAdd.py
fdmdkw/BridgeMaster
e3916b077d96f3520d0a8ed9bb548d614465aa2e
[ "Apache-2.0" ]
2
2019-10-21T15:25:37.000Z
2021-03-17T06:59:09.000Z
import time import json import requests AddRound(8,"1,d2a2s213s",'N',"3NT","s12f32sd12sad","d13refqewff","f4f23f32fdfs","231fef2f23d32d","None",9,"W",3,750)
38.617647
374
0.609292
5c2923573a1c3c8ff0a0d372f3402c6b17cc3981
995
py
Python
tests/test_ultimate_tic_tac_toe.py
farshiana/monte-carlo-tree-search
3171fe0f30cae2ad933ad43d6b73b6a831b25fa4
[ "MIT" ]
null
null
null
tests/test_ultimate_tic_tac_toe.py
farshiana/monte-carlo-tree-search
3171fe0f30cae2ad933ad43d6b73b6a831b25fa4
[ "MIT" ]
null
null
null
tests/test_ultimate_tic_tac_toe.py
farshiana/monte-carlo-tree-search
3171fe0f30cae2ad933ad43d6b73b6a831b25fa4
[ "MIT" ]
null
null
null
import unittest from src.ultimate_tic_tac_toe import UltimateTicTacToe, BOARD_CELLS from src.utils import PLAYER_ONE, PLAYER_TWO
32.096774
86
0.626131
5c29343cbf9e18cce23a81203d53c140b803f348
16,804
bzl
Python
bazel/toolchain/cpp_toolchain.bzl
BeeswaxIO/nectar
fcee9e1168ef713e6748a58ba2cd42dacd3f675d
[ "Apache-2.0" ]
1
2020-12-03T15:41:44.000Z
2020-12-03T15:41:44.000Z
bazel/toolchain/cpp_toolchain.bzl
BeeswaxIO/nectar
fcee9e1168ef713e6748a58ba2cd42dacd3f675d
[ "Apache-2.0" ]
null
null
null
bazel/toolchain/cpp_toolchain.bzl
BeeswaxIO/nectar
fcee9e1168ef713e6748a58ba2cd42dacd3f675d
[ "Apache-2.0" ]
null
null
null
load( "@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl", "action_config", "feature", "flag_group", "flag_set", "tool", "tool_path", "with_feature_set", ) load("@bazel_tools//tools/build_defs/cc:action_names.bzl", "ACTION_NAMES") cc_toolchain_config = rule( implementation = _impl...
35.753191
95
0.47334
5c2a39ccea52a8c220ac8699127de182541fc5b6
5,003
py
Python
vasp/format/old2new-xyz.py
hsulab/DailyScripts
26b03cfb721fd66f39c86df50d2ec5866e651d6e
[ "MIT" ]
2
2020-06-08T21:39:44.000Z
2020-10-18T15:12:47.000Z
vasp/format/old2new-xyz.py
hsulab/DailyScripts
26b03cfb721fd66f39c86df50d2ec5866e651d6e
[ "MIT" ]
null
null
null
vasp/format/old2new-xyz.py
hsulab/DailyScripts
26b03cfb721fd66f39c86df50d2ec5866e651d6e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import numpy as np MAXLINE = 10000 MAXFRAME = 10000 def read_poscar(poscar='POSCAR',format='vasp5',verbose=True): """read POSCAR""" with open(poscar, 'r') as reader: lines = reader.readlines() lines = [line.strip().split() for line in lin...
28.265537
87
0.558665
5c2a598fa4b5aad4e806438775b7cb0c18e8c427
1,444
py
Python
mapElites/createMap.py
Sascha0912/SAIL
5dfb8d0b925d5e61933bf10591d959433fffaf26
[ "MIT" ]
2
2019-03-12T10:21:54.000Z
2019-07-17T14:56:33.000Z
mapElites/createMap.py
Sascha0912/SAIL
5dfb8d0b925d5e61933bf10591d959433fffaf26
[ "MIT" ]
null
null
null
mapElites/createMap.py
Sascha0912/SAIL
5dfb8d0b925d5e61933bf10591d959433fffaf26
[ "MIT" ]
1
2020-08-31T07:22:09.000Z
2020-08-31T07:22:09.000Z
import numpy as np import numpy.matlib import pandas as pd import sys from pprint import pprint
27.245283
129
0.624654
5c2a8edc2a6959f7ff57712c2124be5e9176bb58
5,609
py
Python
analyse_Z_data/Train_ASR/asr_train_analysis.py
mgarnerin/mathesis_genderbias
412a32040cf92fff9a965c9479d3255115238d0b
[ "MIT" ]
null
null
null
analyse_Z_data/Train_ASR/asr_train_analysis.py
mgarnerin/mathesis_genderbias
412a32040cf92fff9a965c9479d3255115238d0b
[ "MIT" ]
null
null
null
analyse_Z_data/Train_ASR/asr_train_analysis.py
mgarnerin/mathesis_genderbias
412a32040cf92fff9a965c9479d3255115238d0b
[ "MIT" ]
null
null
null
import os def extract_turns(input): """ Gnre automatiquement un fichier contenant le nombre de tours par locuteur partir du fichier de tours :param input: :return: """ f = open(input,mode="r",encoding="utf-8") content = f.read() output_basename = get_filename(input) outputFile...
35.955128
162
0.590836
5c2c1371869ebbd1b03eeb157b7a3779afd2cf79
3,412
py
Python
src/updater_thread.py
antze-k/gw2-addon-updater
ace1b413b7792e669a9f1efcc67eca4e814ae492
[ "MIT" ]
null
null
null
src/updater_thread.py
antze-k/gw2-addon-updater
ace1b413b7792e669a9f1efcc67eca4e814ae492
[ "MIT" ]
null
null
null
src/updater_thread.py
antze-k/gw2-addon-updater
ace1b413b7792e669a9f1efcc67eca4e814ae492
[ "MIT" ]
null
null
null
# (C) unresolved-external@singu-lair.com released under the MIT license (see LICENSE) import os import requests import threading import time import sys import win32con import win32gui import common
35.915789
179
0.714244
5c2cbea6f2bec58c981ac716f1f638fa488de1e2
2,562
py
Python
project/tests/test_templatetags.py
erayerdin/django-persistent-settings
f65db25b220a84124d0e9f4e13c474af06b7e74b
[ "Apache-2.0" ]
2
2019-12-07T11:50:09.000Z
2020-02-03T09:21:04.000Z
project/tests/test_templatetags.py
erayerdin/django-persistent-settings
f65db25b220a84124d0e9f4e13c474af06b7e74b
[ "Apache-2.0" ]
16
2019-12-08T13:15:58.000Z
2020-06-21T18:31:15.000Z
project/tests/test_templatetags.py
erayerdin/django-persistent-settings
f65db25b220a84124d0e9f4e13c474af06b7e74b
[ "Apache-2.0" ]
null
null
null
import pytest
36.084507
88
0.637393
5c2db6ddb2cb10bfa7bfa12a9c7b39cf5e63dbea
2,887
py
Python
server.py
Parzival129/SockChat
79a7d60c80e52a2e55c9a9cfe8d360ae92eab90e
[ "MIT" ]
1
2021-07-26T17:23:17.000Z
2021-07-26T17:23:17.000Z
server.py
Parzival129/SockChat
79a7d60c80e52a2e55c9a9cfe8d360ae92eab90e
[ "MIT" ]
null
null
null
server.py
Parzival129/SockChat
79a7d60c80e52a2e55c9a9cfe8d360ae92eab90e
[ "MIT" ]
null
null
null
import socket import threading import random import time from rich.console import Console console = Console() hostname = socket.gethostname() print ("") print(" _____ ") print(" / ____| ") print(" | (___ ___ _ ____ _____ _ __ ") print(" \___ \ / _ \...
32.438202
223
0.599238
5c2e3816429fde339ae156259d85da6822e6e5b0
215
py
Python
trade/admin.py
dc74089/oneshirt
437941bf29e41098df3eb3cde2370ea29c897969
[ "Apache-2.0" ]
null
null
null
trade/admin.py
dc74089/oneshirt
437941bf29e41098df3eb3cde2370ea29c897969
[ "Apache-2.0" ]
6
2018-03-06T18:07:08.000Z
2018-12-27T22:54:12.000Z
trade/admin.py
dc74089/oneshirt
437941bf29e41098df3eb3cde2370ea29c897969
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import * # Register your models here. admin.site.register(OneshirtUser) admin.site.register(Item) admin.site.register(Trade) admin.site.register(PasswordResetRequest)
21.5
41
0.813953
5c2e60d3a8761bd988f125086236d87a0f975776
6,917
py
Python
nvidia-dla-blocks/hw/verif/regression/testplans/nvdla_test_list_L10.py
minisparrow/freedom
b31723a2cf3d1f245f9de2dcfedde4df2180cc6f
[ "Apache-2.0" ]
null
null
null
nvidia-dla-blocks/hw/verif/regression/testplans/nvdla_test_list_L10.py
minisparrow/freedom
b31723a2cf3d1f245f9de2dcfedde4df2180cc6f
[ "Apache-2.0" ]
null
null
null
nvidia-dla-blocks/hw/verif/regression/testplans/nvdla_test_list_L10.py
minisparrow/freedom
b31723a2cf3d1f245f9de2dcfedde4df2180cc6f
[ "Apache-2.0" ]
1
2020-07-16T11:20:40.000Z
2020-07-16T11:20:40.000Z
for i in range(plan_arguments['RUN_NUM']): ############################################# CC ############################################# add_test(name='cc_feature_rtest', tags=['L10', 'cc'], args=[' -rtlarg +uvm_set_config_int=uvm_test_top,layers,%d ' % plan_arguments['LAYER_NUM'], ge...
54.464567
174
0.578575
5c2f03e55b6c5bdbaf68bc8c239a709368073059
8,021
py
Python
avod/core/bev_generators/bev_slices.py
Fredrik00/avod
ff448d7ca70f4f4e2253b5d877d82bef6e6a709e
[ "MIT" ]
14
2019-03-22T11:01:44.000Z
2021-03-17T01:26:24.000Z
avod/core/bev_generators/bev_slices.py
Fredrik00/avod
ff448d7ca70f4f4e2253b5d877d82bef6e6a709e
[ "MIT" ]
3
2020-06-28T21:46:55.000Z
2021-02-10T11:33:28.000Z
avod/core/bev_generators/bev_slices.py
Fredrik00/avod
ff448d7ca70f4f4e2253b5d877d82bef6e6a709e
[ "MIT" ]
4
2019-05-30T01:13:34.000Z
2021-10-29T20:24:24.000Z
import numpy as np from wavedata.tools.core.voxel_grid_2d import VoxelGrid2D from avod.core.bev_generators import bev_generator
39.126829
174
0.610522
5c2fd36ec63dc8452f1ae98ad930b70f17c2fece
430
py
Python
nodefinder/search/result/__init__.py
zx-sdu/NodeFinder
edaeeba8fb5a1ca28222313f6de7a6dfa8253093
[ "Apache-2.0" ]
2
2020-01-29T16:47:18.000Z
2021-05-24T16:39:00.000Z
nodefinder/search/result/__init__.py
zx-sdu/NodeFinder
edaeeba8fb5a1ca28222313f6de7a6dfa8253093
[ "Apache-2.0" ]
12
2018-07-11T23:42:19.000Z
2021-10-07T21:39:12.000Z
nodefinder/search/result/__init__.py
zx-sdu/NodeFinder
edaeeba8fb5a1ca28222313f6de7a6dfa8253093
[ "Apache-2.0" ]
2
2019-11-06T00:22:53.000Z
2019-11-06T00:38:23.000Z
# -*- coding: utf-8 -*- # 2017-2019, ETH Zurich, Institut fr Theoretische Physik # Author: Dominik Gresch <greschd@gmx.ch> """ Submodule defining the result classes of the search step. """ from ._minimization import * from ._search_result_container import * from ._controller_state import * __all__ = _minimization._...
30.714286
132
0.769767
5c2fea83116630bc76f3571d183d0e91536cf935
420
py
Python
sabueso/_private_tools/molecular_system/guess_form.py
dprada/sabueso
14843cf3522b5b89db5b61c1541a7015f114dd53
[ "MIT" ]
null
null
null
sabueso/_private_tools/molecular_system/guess_form.py
dprada/sabueso
14843cf3522b5b89db5b61c1541a7015f114dd53
[ "MIT" ]
2
2022-01-31T21:22:17.000Z
2022-02-04T20:20:12.000Z
sabueso/_private_tools/molecular_system/guess_form.py
dprada/sabueso
14843cf3522b5b89db5b61c1541a7015f114dd53
[ "MIT" ]
1
2021-07-20T15:01:14.000Z
2021-07-20T15:01:14.000Z
from sabueso.tools.string_pdb_text import is_pdb_text from sabueso.tools.string_pdb_id import is_pdb_id from sabueso.tools.string_uniprot_id import is_uniprot_id
23.333333
57
0.728571
5c314e0fd79f4966515eb6dfae06bbbde423928a
4,262
py
Python
web-app/app/main/modules.py
sandbernar/anti-corona-crm
e896a2dd0f41d099f7800769badf78e5e521d39a
[ "MIT" ]
null
null
null
web-app/app/main/modules.py
sandbernar/anti-corona-crm
e896a2dd0f41d099f7800769badf78e5e521d39a
[ "MIT" ]
null
null
null
web-app/app/main/modules.py
sandbernar/anti-corona-crm
e896a2dd0f41d099f7800769badf78e5e521d39a
[ "MIT" ]
null
null
null
from flask import request import math from wtforms import SelectField from wtforms.validators import DataRequired from flask_wtf import FlaskForm
32.287879
113
0.555373
5c33c51590177727c9fa648d2633e22e2dc6bde8
940
py
Python
apps/gui/tests/basics.py
devtank-ltd/devtank-dtlib
32d354d2cb5c3b2f8838d07fb1e1d4ceb611e885
[ "MIT" ]
null
null
null
apps/gui/tests/basics.py
devtank-ltd/devtank-dtlib
32d354d2cb5c3b2f8838d07fb1e1d4ceb611e885
[ "MIT" ]
null
null
null
apps/gui/tests/basics.py
devtank-ltd/devtank-dtlib
32d354d2cb5c3b2f8838d07fb1e1d4ceb611e885
[ "MIT" ]
null
null
null
'''Example test script. Basic checks of device before processed Input Variables: args - arguments dictionary given to demo tester that may be used to changed nature of test. dev - Example device under test name - Name of test being run. results - Results map of all tests. Test Specifi...
26.111111
73
0.725532
5c340c3279a6ddc4b728bd9b657543dd0662cc55
4,718
py
Python
exprail/parser.py
piller-imre/exprail-python
1b73a0993d399ef44ada232647845a253b821ecc
[ "MIT" ]
null
null
null
exprail/parser.py
piller-imre/exprail-python
1b73a0993d399ef44ada232647845a253b821ecc
[ "MIT" ]
null
null
null
exprail/parser.py
piller-imre/exprail-python
1b73a0993d399ef44ada232647845a253b821ecc
[ "MIT" ]
null
null
null
""" Parser class definition """ from exprail.node import NodeType from exprail import router from exprail.state import State
32.095238
91
0.601314
5c341db3f2272a62eb08898a22f4b351cc0876fd
877
py
Python
unmasked_viral/wrapper.py
avilab/vs-wrappers
65524b3566969da7909e0d08c423b6eecadea039
[ "MIT" ]
1
2021-04-25T08:20:14.000Z
2021-04-25T08:20:14.000Z
unmasked_viral/wrapper.py
avilab/vs-wrappers
65524b3566969da7909e0d08c423b6eecadea039
[ "MIT" ]
2
2018-12-28T08:40:03.000Z
2019-02-22T13:28:34.000Z
unmasked_viral/wrapper.py
avilab/vs-wrappers
65524b3566969da7909e0d08c423b6eecadea039
[ "MIT" ]
null
null
null
from Bio import SeqIO import pandas as pd subset_unmasked_csv( blast_csv=snakemake.input[0], unmasked_fasta=snakemake.input[1], output=snakemake.output[0], )
30.241379
80
0.713797
5c34e3b56ec930623cef947268020cee0f411b47
1,272
py
Python
alipay/aop/api/domain/MemberCardOperator.py
Anning01/alipay-sdk-python-all
2adff354483ab7c2e615d6ad646d0b75c9c7803d
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/MemberCardOperator.py
Anning01/alipay-sdk-python-all
2adff354483ab7c2e615d6ad646d0b75c9c7803d
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/MemberCardOperator.py
Anning01/alipay-sdk-python-all
2adff354483ab7c2e615d6ad646d0b75c9c7803d
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import *
22.714286
65
0.551887
5c34f5db628299b67d9ea24f7f3974c2d3dd8015
5,916
py
Python
Platforms/Web/Processing/Api/Discord/errors.py
HeapUnderfl0w/Phaazebot
54e637bd4bc213b8efdaf23d5f331f2569e96843
[ "MIT" ]
null
null
null
Platforms/Web/Processing/Api/Discord/errors.py
HeapUnderfl0w/Phaazebot
54e637bd4bc213b8efdaf23d5f331f2569e96843
[ "MIT" ]
null
null
null
Platforms/Web/Processing/Api/Discord/errors.py
HeapUnderfl0w/Phaazebot
54e637bd4bc213b8efdaf23d5f331f2569e96843
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING if TYPE_CHECKING: from Platforms.Web.index import WebIndex import json from aiohttp.web import Response, Request
24.345679
113
0.68881
5c3513b454f50d3fb7845cb41550fa79aa7330ed
42,385
py
Python
tripsSplice.py
JackCurragh/SC2-Portal
1636b9d6a1b5609c4706b5a781585a00691f28c4
[ "MIT" ]
null
null
null
tripsSplice.py
JackCurragh/SC2-Portal
1636b9d6a1b5609c4706b5a781585a00691f28c4
[ "MIT" ]
null
null
null
tripsSplice.py
JackCurragh/SC2-Portal
1636b9d6a1b5609c4706b5a781585a00691f28c4
[ "MIT" ]
null
null
null
import sqlite3 import matplotlib as mpl import matplotlib.patches as mpatches import matplotlib.pyplot as plt import networkx as nx from sqlitedict import SqliteDict gene = "phpt1" transcript = "ENST00000463215" sqlite_path_organism = "homo_sapiens.v2.sqlite" sqlite_path_reads = ["SRR2433794.sqlite"] ...
36.856522
121
0.650513
5c367cd893d8075d3f6ecc212f56dcadf769d1a0
415
py
Python
Py exercises/My code/CSS exercises/03_01alternate.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
Py exercises/My code/CSS exercises/03_01alternate.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
Py exercises/My code/CSS exercises/03_01alternate.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Feb 4 20:13:02 2018 @author: User """ print(checkit("I am a string","I am a"))
20.75
48
0.39759
5c36d355d1ce7f53ebb444e8263ef0b1c1bcd090
982
py
Python
src/layouts/overlay/glade/overlay.py
webpedrovinicius/gui-python-gtk
eb85ecd99bfcded376190a2770aabd31d8db8fa5
[ "MIT" ]
1
2021-02-14T19:00:31.000Z
2021-02-14T19:00:31.000Z
src/layouts/overlay/glade/overlay.py
webpedrovinicius/gui-python-gtk
eb85ecd99bfcded376190a2770aabd31d8db8fa5
[ "MIT" ]
null
null
null
src/layouts/overlay/glade/overlay.py
webpedrovinicius/gui-python-gtk
eb85ecd99bfcded376190a2770aabd31d8db8fa5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Continer do tipo Overlay Layout""" import gi gi.require_version(namespace='Gtk', version='3.0') from gi.repository import Gtk if __name__ == '__main__': builder = Gtk.Builder.new() builder.add_from_file(filename='./overlay.glade') builder.connect_signals(obj_or_map=Handler())...
25.842105
59
0.677189
5c385d4e24869d7cea61b376aa38a9436732e710
1,347
py
Python
test/conftest.py
dmillington/lunchroulette
9ea0ac3f3cd9ac6273e0100e34a8d21549438f65
[ "MIT" ]
1
2021-02-05T15:41:59.000Z
2021-02-05T15:41:59.000Z
test/conftest.py
dmillington/lunchroulette
9ea0ac3f3cd9ac6273e0100e34a8d21549438f65
[ "MIT" ]
null
null
null
test/conftest.py
dmillington/lunchroulette
9ea0ac3f3cd9ac6273e0100e34a8d21549438f65
[ "MIT" ]
null
null
null
import pytest from lunchroulette.app import app as _app from lunchroulette.app import db as _db from sqlalchemy import event from sqlalchemy.orm import sessionmaker
27.489796
81
0.639198
5c39338b2aff426a99da3489a29c420317da734b
68
py
Python
src/pages/db/__init__.py
kryvokhyzha/bert-for-ukranian-ner
48da40f09cb216ad51a97c303998157858fbe8bc
[ "MIT" ]
null
null
null
src/pages/db/__init__.py
kryvokhyzha/bert-for-ukranian-ner
48da40f09cb216ad51a97c303998157858fbe8bc
[ "MIT" ]
null
null
null
src/pages/db/__init__.py
kryvokhyzha/bert-for-ukranian-ner
48da40f09cb216ad51a97c303998157858fbe8bc
[ "MIT" ]
null
null
null
from pages.db.db import db_clean, db_creation, db_insert, db_select
34
67
0.823529
5c3acb7683f7efe48a90d90414bbddf6a6c1c411
13,182
py
Python
Pipeline/Fitting.py
riccardomarin/FARM-ZOSR
7d29469d7e1c08b4a1e5d13084435001f509bec3
[ "Python-2.0", "OLDAP-2.7" ]
2
2019-09-16T19:46:33.000Z
2021-04-11T14:51:37.000Z
Pipeline/Fitting.py
riccardomarin/FARM-ZOSR
7d29469d7e1c08b4a1e5d13084435001f509bec3
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
Pipeline/Fitting.py
riccardomarin/FARM-ZOSR
7d29469d7e1c08b4a1e5d13084435001f509bec3
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Fri Jan 26 13:47:15 2018 %%%%% % Code for article: % Marin, R. and Melzi, S. and Rodol, E. and Castellani, U., High-Resolution Augmentation for Automatic Template-Based Matching of Human Models, 3DV 2019 % Github: https://github.com/riccardomarin/FARM-ZOSR %...
34.781003
153
0.531937
5c3d8f81a2371c571cc281f2458b7a508bd10719
6,155
py
Python
cf2kv.py
kodecharlie/cf2kv
26709002265cab6be1143fbcdf3451dc2971667a
[ "MIT" ]
null
null
null
cf2kv.py
kodecharlie/cf2kv
26709002265cab6be1143fbcdf3451dc2971667a
[ "MIT" ]
null
null
null
cf2kv.py
kodecharlie/cf2kv
26709002265cab6be1143fbcdf3451dc2971667a
[ "MIT" ]
null
null
null
import argparse import configparser import json import logging.config import time import urllib.parse import urllib.request import yaml ###################################################################################################### # Parse command line. ##########################################################...
42.448276
194
0.531925
5c4044f5f0e8ff9309a187f08e26c4ceadb67862
8,486
py
Python
jamjar/parsers/_dc.py
phmc/jamjar
e8d0907e342ad9f8d6141031f2f53f5f5c31f106
[ "MIT" ]
null
null
null
jamjar/parsers/_dc.py
phmc/jamjar
e8d0907e342ad9f8d6141031f2f53f5f5c31f106
[ "MIT" ]
null
null
null
jamjar/parsers/_dc.py
phmc/jamjar
e8d0907e342ad9f8d6141031f2f53f5f5c31f106
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # _dc.py # # Parser for the jam 'c' debug flag output - which contains the names of files # that cause rebuilds - ie new sources, missing targets # # November 2015, Zoe Kelly # --------------------------------------------------------------...
35.655462
88
0.566934
5c404fa5464f5e26c84d23c52fc756b33d474884
832
py
Python
utils/xmlrpc.py
NullReferenceError/rtorrent_orphan_cleanup
68f269b9d73ed433767df8a907aa553b5358cd5d
[ "RSA-MD" ]
27
2018-10-18T23:49:30.000Z
2022-03-19T12:35:19.000Z
utils/xmlrpc.py
NullReferenceError/rtorrent_orphan_cleanup
68f269b9d73ed433767df8a907aa553b5358cd5d
[ "RSA-MD" ]
3
2018-10-18T13:15:49.000Z
2020-09-28T09:49:48.000Z
utils/xmlrpc.py
NullReferenceError/rtorrent_orphan_cleanup
68f269b9d73ed433767df8a907aa553b5358cd5d
[ "RSA-MD" ]
7
2018-10-13T04:35:25.000Z
2021-02-19T22:19:08.000Z
import socket import xmlrpc.client """ referemce: https://stackoverflow.com/a/14397619 """
32
93
0.646635