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
d489decc18d8071a490883065a8c77ea014b486d
1,221
py
Python
draw.py
Adamv27/Pygame-drawing
7f4f6e9eb1599fbfc8b96fe790ecfa0d0f821c58
[ "MIT" ]
null
null
null
draw.py
Adamv27/Pygame-drawing
7f4f6e9eb1599fbfc8b96fe790ecfa0d0f821c58
[ "MIT" ]
null
null
null
draw.py
Adamv27/Pygame-drawing
7f4f6e9eb1599fbfc8b96fe790ecfa0d0f821c58
[ "MIT" ]
null
null
null
import sys import pygame
32.131579
100
0.564292
d48a44f09de17b16e44c7192aa9ce93c25f50f90
1,027
py
Python
fixture/soap.py
AlekseyVR/Python_mantis
ee07710d2fb5578bfe2d1906344ee7366c5878d4
[ "Apache-2.0" ]
null
null
null
fixture/soap.py
AlekseyVR/Python_mantis
ee07710d2fb5578bfe2d1906344ee7366c5878d4
[ "Apache-2.0" ]
null
null
null
fixture/soap.py
AlekseyVR/Python_mantis
ee07710d2fb5578bfe2d1906344ee7366c5878d4
[ "Apache-2.0" ]
null
null
null
from suds.client import Client from suds import WebFault from model.project import Project
32.09375
116
0.646543
d48ad58f431f6c4e67424407e8851da4431564a6
125
py
Python
test_git01.py
KSeungBin/rapa_detect_line
07cbed583027cd29124d9e473db894e4e53acc88
[ "Apache-2.0" ]
null
null
null
test_git01.py
KSeungBin/rapa_detect_line
07cbed583027cd29124d9e473db894e4e53acc88
[ "Apache-2.0" ]
null
null
null
test_git01.py
KSeungBin/rapa_detect_line
07cbed583027cd29124d9e473db894e4e53acc88
[ "Apache-2.0" ]
null
null
null
import os os.getcwd() print('line 5') print('line 5') print('line 7') print('line 5') print('line 8') print('line 5')
9.615385
15
0.632
d48ad6f933339a03da03cb3447d55414174ab54a
303
py
Python
samples/sample.py
andy1xx8/spacy-train-tools
8b3416c2505f43fcd06d40578d1938f284f8535b
[ "MIT" ]
null
null
null
samples/sample.py
andy1xx8/spacy-train-tools
8b3416c2505f43fcd06d40578d1938f284f8535b
[ "MIT" ]
null
null
null
samples/sample.py
andy1xx8/spacy-train-tools
8b3416c2505f43fcd06d40578d1938f284f8535b
[ "MIT" ]
null
null
null
from src.spacy_train_tools.train import train_spacy_model if __name__ == "__main__": train_spacy_model( config_file='./en_config.cfg', vector_file='en_core_web_lg', train_file='./data/train.jsonl', dev_file='./data/dev.jsonl', output_folder='./models' )
27.545455
57
0.653465
00f755c8104812d495b3d40142b84b1df9d1f2b7
7,970
py
Python
cpc.py
vkramskikh/cgminer-pool-chooser
507ebe84ae125e1b3c3a96afe8ab04bf7cdf3325
[ "MIT" ]
1
2018-02-12T12:52:59.000Z
2018-02-12T12:52:59.000Z
cpc.py
vkramskikh/cgminer-pool-chooser
507ebe84ae125e1b3c3a96afe8ab04bf7cdf3325
[ "MIT" ]
null
null
null
cpc.py
vkramskikh/cgminer-pool-chooser
507ebe84ae125e1b3c3a96afe8ab04bf7cdf3325
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import time import json import yaml import socket import argparse import traceback from pycgminer import CgminerAPI from data_providers import CoinwarzAPI, CryptsyAPI from rating_calculator import RatingCalculator import logging logging.basicConfig( level=logging.INFO, format=...
43.791209
156
0.599749
00f8e507c83b1e8a355cf2a4def195c5fc9c92f9
997
py
Python
tournaments/migrations/0010_auto_20210413_1103.py
lejbron/arkenstone
d5341c27ba81eaf116e5ee5983b4fa422437d294
[ "MIT" ]
null
null
null
tournaments/migrations/0010_auto_20210413_1103.py
lejbron/arkenstone
d5341c27ba81eaf116e5ee5983b4fa422437d294
[ "MIT" ]
4
2021-03-17T19:46:35.000Z
2021-04-09T11:37:53.000Z
tournaments/migrations/0010_auto_20210413_1103.py
lejbron/arkenstone
d5341c27ba81eaf116e5ee5983b4fa422437d294
[ "MIT" ]
1
2021-04-11T07:50:56.000Z
2021-04-11T07:50:56.000Z
# Generated by Django 3.1.4 on 2021-04-13 11:03 import django.db.models.deletion from django.conf import settings from django.db import migrations, models
35.607143
226
0.68004
00fa8576a8444dd557d88b4c1c1a02725bd0da68
1,004
py
Python
Week15/2.py
bobsingh149/LeetCode
293ed4931960bf5b9a3d5c4331ba4dfddccfcd55
[ "MIT" ]
101
2021-02-26T14:32:37.000Z
2022-03-16T18:46:37.000Z
Week15/2.py
bobsingh149/LeetCode
293ed4931960bf5b9a3d5c4331ba4dfddccfcd55
[ "MIT" ]
null
null
null
Week15/2.py
bobsingh149/LeetCode
293ed4931960bf5b9a3d5c4331ba4dfddccfcd55
[ "MIT" ]
30
2021-03-09T05:16:48.000Z
2022-03-16T21:16:33.000Z
### DO NOT REMOVE THIS from typing import List ### DO NOT REMOVE THIS # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next
24.487805
68
0.521912
00fb5eb9459e6f02afd6aaa09ec0a345d5488cee
6,635
py
Python
pyverse/message.py
FelixWolf/pyverse
93522fe5db074192a5ae259f6cf48de529e88d78
[ "MIT" ]
5
2016-07-01T18:32:04.000Z
2021-05-19T03:12:23.000Z
pyverse/message.py
FelixWolf/pyverse
93522fe5db074192a5ae259f6cf48de529e88d78
[ "MIT" ]
null
null
null
pyverse/message.py
FelixWolf/pyverse
93522fe5db074192a5ae259f6cf48de529e88d78
[ "MIT" ]
4
2017-06-25T09:41:13.000Z
2021-10-08T23:47:37.000Z
#!/usr/bin/env python3 from . import llTypes import struct baseTypes = { "Null": llTypes.null(), "Fixed": llTypes.fixed(b""), "Variable": [ None, llTypes.variable(1, b""), llTypes.variable(2, b"") ], "U8": 0, "U16": 0, "U32": 0, "U64": 0, "S8": 0, "S16": ...
35.10582
142
0.393218
00fcc313ea792d78085246a4cac27cc4b3264b72
3,784
py
Python
scripts/change_user_details.py
ONSdigital/sdc-uaa
e42309869018caea8adf019b8b7e23c0b67c896e
[ "MIT" ]
null
null
null
scripts/change_user_details.py
ONSdigital/sdc-uaa
e42309869018caea8adf019b8b7e23c0b67c896e
[ "MIT" ]
8
2018-11-26T10:59:43.000Z
2021-11-25T13:39:57.000Z
scripts/change_user_details.py
ONSdigital/sdc-uaa
e42309869018caea8adf019b8b7e23c0b67c896e
[ "MIT" ]
1
2021-04-11T07:53:10.000Z
2021-04-11T07:53:10.000Z
import pprint import requests import argparse if __name__ == '__main__': parser = argparse.ArgumentParser(description="Change client secret") parser.add_argument("-a", "--admin_id", required=True, dest="admin_id", help="The admin id for the organization") parser.add_argument("-as", "--admin_secret", re...
42.044444
126
0.629757
00ff4a8835d914f17981db009280fc3a6e9e3c0c
588
py
Python
build/imu_calib/catkin_generated/pkg.develspace.context.pc.py
dawnchen123/AutonomousCar
6595c5f64f89dcee32f84f414c54028c2da25a45
[ "BSD-2-Clause" ]
null
null
null
build/imu_calib/catkin_generated/pkg.develspace.context.pc.py
dawnchen123/AutonomousCar
6595c5f64f89dcee32f84f414c54028c2da25a45
[ "BSD-2-Clause" ]
null
null
null
build/imu_calib/catkin_generated/pkg.develspace.context.pc.py
dawnchen123/AutonomousCar
6595c5f64f89dcee32f84f414c54028c2da25a45
[ "BSD-2-Clause" ]
1
2019-10-22T05:54:23.000Z
2019-10-22T05:54:23.000Z
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/nvidia/linorobot_ws/src/imu_calib/include;/usr/local/include/eigen3".split(';') if "/home/nvidia/linorobot_ws/src/imu_calib/include;/usr/local/include/eigen3" != "" else [] PROJECT_CATKIN_DEPENDS...
65.333333
213
0.767007
2e021c651d7a900ad2c435ab111127800dcc4a9d
358
py
Python
Exe19_centena_dezena_unidade.py
lucaslk122/Exercicios_Python_estutura_decisao
51a9699c5d85aa6cfb163d891c56e804a7255634
[ "MIT" ]
null
null
null
Exe19_centena_dezena_unidade.py
lucaslk122/Exercicios_Python_estutura_decisao
51a9699c5d85aa6cfb163d891c56e804a7255634
[ "MIT" ]
null
null
null
Exe19_centena_dezena_unidade.py
lucaslk122/Exercicios_Python_estutura_decisao
51a9699c5d85aa6cfb163d891c56e804a7255634
[ "MIT" ]
null
null
null
numero = int(input("Entre com um numero inteiro e menor que 1000: ")) if numero > 1000: print("Numero invalido") else: unidade = numero % 10 numero = (numero - unidade) / 10 dezena = int(numero % 10) numero = (numero - dezena) / 10 centena = int(numero) print(f"{centena} centena(s) , {dezena...
29.833333
78
0.625698
2e034ddb0ea0678f0c14926e460ae2efec48c15f
1,169
py
Python
FourFrontScripts/MachineLearning/RandomForestNames.py
FourFront-Senior-Design/pythonenv
980b4f5c2dc3958aaca00ec98a703e5b9fb5dbec
[ "bzip2-1.0.6", "MIT" ]
null
null
null
FourFrontScripts/MachineLearning/RandomForestNames.py
FourFront-Senior-Design/pythonenv
980b4f5c2dc3958aaca00ec98a703e5b9fb5dbec
[ "bzip2-1.0.6", "MIT" ]
1
2020-04-23T02:34:53.000Z
2020-04-23T02:34:53.000Z
FourFrontScripts/MachineLearning/RandomForestNames.py
FourFront-Senior-Design/pythonenv
980b4f5c2dc3958aaca00ec98a703e5b9fb5dbec
[ "bzip2-1.0.6", "MIT" ]
1
2020-04-27T15:07:54.000Z
2020-04-27T15:07:54.000Z
# Random forest classifier to predict names only from MachineLearning.RandomForestAll import RandomForestAll
50.826087
126
0.691189
2e0377ac4e43c9d229393037f3e74eee30abc01b
2,363
py
Python
tests/report_test.py
thepatrik/corunner
a68ed8e4f9f659b71a03c37833710544532c302d
[ "MIT" ]
null
null
null
tests/report_test.py
thepatrik/corunner
a68ed8e4f9f659b71a03c37833710544532c302d
[ "MIT" ]
null
null
null
tests/report_test.py
thepatrik/corunner
a68ed8e4f9f659b71a03c37833710544532c302d
[ "MIT" ]
null
null
null
import time from corunner.report import Execution, Report
21.87963
74
0.679221
2e06145b8cef85327fb9fa4107bd574429bd28d9
3,891
py
Python
lib/synthetic_data.py
ppmdatix/rtdl
a01ecd9ae6b673f4e82e51f804ffd7031c7350a0
[ "Apache-2.0" ]
298
2021-06-22T15:41:18.000Z
2022-03-09T07:52:30.000Z
lib/synthetic_data.py
ppmdatix/rtdl
a01ecd9ae6b673f4e82e51f804ffd7031c7350a0
[ "Apache-2.0" ]
15
2022-03-15T15:28:27.000Z
2022-03-30T12:15:01.000Z
lib/synthetic_data.py
ppmdatix/rtdl
a01ecd9ae6b673f4e82e51f804ffd7031c7350a0
[ "Apache-2.0" ]
37
2021-06-25T03:56:37.000Z
2022-03-10T11:07:51.000Z
"Code used to generate data for experiments with synthetic data" import math import typing as ty import numba import numpy as np import torch import torch.nn as nn from numba.experimental import jitclass from tqdm.auto import tqdm
31.128
85
0.542534
2e0a88da9cda30e1fbd963200b59b356e499d17b
1,075
py
Python
py_codes/036enum.py
fusugz/lifeisshort
46bb2cf7fcdba57df5f9247c4d45dac83cb526d7
[ "MIT" ]
2
2017-05-23T10:22:18.000Z
2017-07-03T15:14:55.000Z
py_codes/036enum.py
fusugz/lifeisshort
46bb2cf7fcdba57df5f9247c4d45dac83cb526d7
[ "MIT" ]
null
null
null
py_codes/036enum.py
fusugz/lifeisshort
46bb2cf7fcdba57df5f9247c4d45dac83cb526d7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- from enum import Enum, unique day1 = Weekday.Mon print('day1 =', day1) print('Weekday.Tue =', Weekday.Tue) print('Weekday[\'Tue\'] =', Weekday['Tue']) print('Weekday.Tue.value =', Weekday.Tue.value) print('day1 == Weekday.Mon ?', day1 == Weekday.Mon) print('day1 == Weekd...
22.395833
107
0.590698
2e0aa325cbb7d87b956d076b30aeaf3b3c35b84e
7,981
py
Python
scrape.py
schemedoc/temp-aggregator-in-python
2df2ae5d1f5daf0d1a9e4e1923f6e7e1e24e77a2
[ "MIT" ]
2
2019-03-04T20:05:56.000Z
2019-03-05T10:40:18.000Z
scrape.py
lassik/schemedoc
2df2ae5d1f5daf0d1a9e4e1923f6e7e1e24e77a2
[ "MIT" ]
1
2021-05-17T02:17:19.000Z
2021-05-18T05:30:56.000Z
scrape.py
lassik/schemedoc
2df2ae5d1f5daf0d1a9e4e1923f6e7e1e24e77a2
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import json import mimetypes import os import re import shutil import string import sys import tarfile import urllib.parse import urllib.request from collections import defaultdict, namedtuple from http.server import BaseHTTPRequestHandler, HTTPServer from bs4 import BeautifulSoup # pip3 in...
26.427152
88
0.613833
2e11b018571f8da8d5cc1bd1ec0a76cb6a0343dc
792
py
Python
importer.py
CSwigg/stellarmass_pca
6d7f3e8e4d3d637432d1bac6ed17a837c0ca9c75
[ "MIT" ]
null
null
null
importer.py
CSwigg/stellarmass_pca
6d7f3e8e4d3d637432d1bac6ed17a837c0ca9c75
[ "MIT" ]
1
2019-08-14T15:37:41.000Z
2019-08-29T18:28:40.000Z
importer.py
CSwigg/stellarmass_pca
6d7f3e8e4d3d637432d1bac6ed17a837c0ca9c75
[ "MIT" ]
null
null
null
import os, sys, matplotlib import faulthandler; faulthandler.enable() mpl_v = 'MPL-8' daptype = 'SPX-MILESHC-MILESHC' os.environ['STELLARMASS_PCA_RESULTSDIR'] = '/Users/admin/sas/mangawork/manga/mangapca/zachpace/CSPs_CKC14_MaNGA_20190215-1/v2_5_3/2.3.0/results' manga_results_basedir = os.environ['STELLARMASS_PCA_RESU...
39.6
144
0.790404
2e128579da620ba7e1fb47af33782a7c01aadb8f
502
py
Python
src/google-cloud-speech/python/client.py
d-iii-s/teaching-introduction-middleware
6d1129571c33059ca0c6ace8df18d3865e6205a0
[ "Apache-2.0" ]
2
2020-10-14T19:01:17.000Z
2021-09-13T12:08:31.000Z
src/google-cloud-speech/python/client.py
d-iii-s/teaching-introduction-middleware
6d1129571c33059ca0c6ace8df18d3865e6205a0
[ "Apache-2.0" ]
1
2021-01-07T08:32:05.000Z
2021-01-07T08:32:05.000Z
src/google-cloud-speech/python/client.py
D-iii-S/teaching-introduction-middleware
46abce8b4b6994a6fbc7c3c2abfb5962ed503a43
[ "Apache-2.0" ]
4
2020-10-15T13:26:43.000Z
2021-10-07T11:07:30.000Z
#!/usr/bin/env python3 import sys from google.cloud import speech as google_cloud_speech # Create the object representing the API to the client. client = google_cloud_speech.SpeechClient () content = open (sys.argv [1], 'rb').read () audio = google_cloud_speech.RecognitionAudio (content = content) config = google_c...
27.888889
72
0.768924
2e161505acd5e72d29569477feacdf4dcdac4fe1
2,157
py
Python
jupiter/use_cases/metrics/entry/create.py
horia141/jupiter
2c721d1d44e1cd2607ad9936e54a20ea254741dc
[ "MIT" ]
15
2019-05-05T14:34:58.000Z
2022-02-25T09:57:28.000Z
jupiter/use_cases/metrics/entry/create.py
horia141/jupiter
2c721d1d44e1cd2607ad9936e54a20ea254741dc
[ "MIT" ]
3
2020-02-22T16:09:39.000Z
2021-12-18T21:33:06.000Z
jupiter/use_cases/metrics/entry/create.py
horia141/jupiter
2c721d1d44e1cd2607ad9936e54a20ea254741dc
[ "MIT" ]
null
null
null
"""The command for creating a metric entry.""" from dataclasses import dataclass from typing import Optional, Final from jupiter.domain.adate import ADate from jupiter.domain.metrics.infra.metric_notion_manager import MetricNotionManager from jupiter.domain.metrics.metric_entry import MetricEntry from jupiter.domain.m...
43.14
105
0.736208
2e161fb1af0a88b3ad5377667ffcf0e1218068be
3,229
py
Python
xor_example.py
tudelft-cda-lab/ROCT
c44625dd5d5c2632bf2ddbe2470b42104a5a5e6d
[ "MIT" ]
1
2022-03-07T13:49:31.000Z
2022-03-07T13:49:31.000Z
xor_example.py
tudelft-cda-lab/ROCT
c44625dd5d5c2632bf2ddbe2470b42104a5a5e6d
[ "MIT" ]
null
null
null
xor_example.py
tudelft-cda-lab/ROCT
c44625dd5d5c2632bf2ddbe2470b42104a5a5e6d
[ "MIT" ]
null
null
null
from groot.adversary import DecisionTreeAdversary from groot.datasets import epsilon_attacker from groot.model import GrootTreeClassifier from groot.treant import RobustDecisionTree from groot.visualization import plot_adversary from roct.maxsat import SATOptimalRobustTree from sklearn.preprocessing import MinMaxScal...
35.877778
169
0.751007
2e17d42191b40ddd586a3685d06dd1dc28ec5c8e
262
py
Python
Statistics/Randomgen_1.py
Sakthi0722/StatsCalculator
f18b8ddb300ccaba796665829ddf20777ff15ed9
[ "MIT" ]
1
2021-09-20T18:39:53.000Z
2021-09-20T18:39:53.000Z
Statistics/Randomgen_1.py
Sakthi0722/StatsCalculator
f18b8ddb300ccaba796665829ddf20777ff15ed9
[ "MIT" ]
null
null
null
Statistics/Randomgen_1.py
Sakthi0722/StatsCalculator
f18b8ddb300ccaba796665829ddf20777ff15ed9
[ "MIT" ]
2
2021-07-12T18:58:23.000Z
2021-07-14T17:47:40.000Z
import random r1 = random.randint(1, 40) print("Generate a random number without a seed between a range of two numbers - Integer:", r1) r2 = random.uniform(1, 40) print("Generate a random number without a seed between a range of two numbers - Decimal:", r2)
26.2
94
0.732824
2e1a3e9fd1568fab8b4a109c929c7f6916a7ecf2
6,843
py
Python
mitreattack/navlayers/generators/usage_generator.py
wetkind/mitreattack-python
f2406cac6b8d104d280712fccf9c50637ae05fbb
[ "Apache-2.0" ]
137
2021-04-06T17:40:20.000Z
2022-03-30T18:27:44.000Z
mitreattack/navlayers/generators/usage_generator.py
wetkind/mitreattack-python
f2406cac6b8d104d280712fccf9c50637ae05fbb
[ "Apache-2.0" ]
33
2021-04-07T13:41:39.000Z
2022-03-25T14:37:40.000Z
mitreattack/navlayers/generators/usage_generator.py
wetkind/mitreattack-python
f2406cac6b8d104d280712fccf9c50637ae05fbb
[ "Apache-2.0" ]
29
2021-04-06T21:14:40.000Z
2022-03-31T15:26:27.000Z
from stix2 import Filter from itertools import chain import copy from mitreattack.navlayers.exporters.matrix_gen import MatrixGen from mitreattack.navlayers.core.exceptions import BadInput, typeChecker from mitreattack.navlayers.core.layer import Layer from mitreattack.navlayers.generators.gen_helpers import remove_re...
47.853147
120
0.614204
2e1a4916f4655b03dbc9262a3a2658b446b1a45a
11,050
py
Python
main.py
pierrePalud/MeudonPDR-stat-files-extraction
416f20a98ed1ba649c7e1eab3da106ca749b03fa
[ "MIT" ]
null
null
null
main.py
pierrePalud/MeudonPDR-stat-files-extraction
416f20a98ed1ba649c7e1eab3da106ca749b03fa
[ "MIT" ]
null
null
null
main.py
pierrePalud/MeudonPDR-stat-files-extraction
416f20a98ed1ba649c7e1eab3da106ca749b03fa
[ "MIT" ]
null
null
null
import sys import glob import os import numpy as np import pandas as pd from tqdm.auto import tqdm import argparse def extract_input_parameters(path_file_in, df_input_params, dict_result={}): """extracts the data from the input file of the simulation Parameters ---------- path_file_in : string ...
36.348684
139
0.691584
2e1d90ff93b6141ef57ee2a6ac8e92a95fbf11f9
1,323
py
Python
2015/day24/day24.py
naitmare01/Adventofcode
34f2832fa7a18b76cf9827890632740c6f60679c
[ "MIT" ]
null
null
null
2015/day24/day24.py
naitmare01/Adventofcode
34f2832fa7a18b76cf9827890632740c6f60679c
[ "MIT" ]
null
null
null
2015/day24/day24.py
naitmare01/Adventofcode
34f2832fa7a18b76cf9827890632740c6f60679c
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import argparse from functools import reduce from itertools import combinations from operator import mul if __name__ == '__main__': main()
23.625
102
0.622827
2e1e6391fa93f28bb317141149ab7e7c73e5414a
8,818
py
Python
generate_data_2d.py
salimmj/grid-cells
9ed5f9254918c3a6025cbce55d055ca6bc5e9933
[ "Apache-2.0" ]
1
2020-06-06T09:32:51.000Z
2020-06-06T09:32:51.000Z
generate_data_2d.py
salimmj/grid-cells
9ed5f9254918c3a6025cbce55d055ca6bc5e9933
[ "Apache-2.0" ]
null
null
null
generate_data_2d.py
salimmj/grid-cells
9ed5f9254918c3a6025cbce55d055ca6bc5e9933
[ "Apache-2.0" ]
null
null
null
import os import tensorflow as tf from scipy import stats import numpy as np import math from sklearn import preprocessing import concurrent.futures import logging import threading from multiprocessing import Process # Duration of simulated trajectories (seconds) T = 15 # Width and height of environment, or diameter...
31.049296
141
0.663416
2e1e7c1a7d5ea4d712b4fdfc70a6587e8ccd0479
1,065
py
Python
wowsinfo/lib/core/models/converter.py
rhwong/WoWs-Info-Future
4434eac014252873de0b409921eeccf5728facfe
[ "MIT" ]
1
2020-09-23T13:33:16.000Z
2020-09-23T13:33:16.000Z
wowsinfo/lib/core/models/converter.py
rhwong/WoWs-Info-Future
4434eac014252873de0b409921eeccf5728facfe
[ "MIT" ]
null
null
null
wowsinfo/lib/core/models/converter.py
rhwong/WoWs-Info-Future
4434eac014252873de0b409921eeccf5728facfe
[ "MIT" ]
null
null
null
''' This helps to check if the object isn't null before creating any new objects ''' import glob import re from os import path as p # example = "this.nextShip = NextShip(json['next_ships']);" # print(convert(example)) convertAll('**/*.dart')
31.323529
153
0.537089
2e218be7ba1f5c3a9cd3d868a9b2c0f5b787a14b
2,240
py
Python
tests/unit/viz/test_source.py
jorisvandenbossche/cartoframes
de0f514a8460d61a86afd58e46f7e738060ba09a
[ "BSD-3-Clause" ]
null
null
null
tests/unit/viz/test_source.py
jorisvandenbossche/cartoframes
de0f514a8460d61a86afd58e46f7e738060ba09a
[ "BSD-3-Clause" ]
null
null
null
tests/unit/viz/test_source.py
jorisvandenbossche/cartoframes
de0f514a8460d61a86afd58e46f7e738060ba09a
[ "BSD-3-Clause" ]
null
null
null
import pytest from cartoframes.viz import Source from cartoframes.lib.context.api_context import APIContext from cartoframes.auth import Credentials from .utils import simple_dataframe
37.333333
84
0.673214
2e2196b673a0428849af0e87269efeb2233ca62b
49
py
Python
scripts/version.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
null
null
null
scripts/version.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
null
null
null
scripts/version.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
null
null
null
"""Version ========== """ __version__ = "0.4.0"
8.166667
21
0.428571
2e22c90a74ded65fa314407d057d0e761d6b0897
690
py
Python
christmasflix/urls.py
jbettenh/last_christmas
2f861afbdf67ca69df0e7ed815a870c5bb4feb19
[ "MIT" ]
null
null
null
christmasflix/urls.py
jbettenh/last_christmas
2f861afbdf67ca69df0e7ed815a870c5bb4feb19
[ "MIT" ]
1
2021-11-03T20:16:50.000Z
2021-12-22T16:05:44.000Z
christmasflix/urls.py
jbettenh/last_christmas
2f861afbdf67ca69df0e7ed815a870c5bb4feb19
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'christmasflix' urlpatterns = [ path('', views.IndexView.as_view(), name='index'), path('<int:pk>/', views.MovieListView.as_view(), name='movie_list'), path('new/', views.add_list, name='add_list'), path('delete/<int:list_id>', views.delete_l...
43.125
100
0.697101
2e2587ab0f4c3b7dcc9de2e7751f8ff540496891
16,099
py
Python
mssql-info-parser.py
addenial/mssqlinfo2csv
4864eec4f5b46f600358172a095f4acaa4d5525f
[ "Apache-2.0" ]
null
null
null
mssql-info-parser.py
addenial/mssqlinfo2csv
4864eec4f5b46f600358172a095f4acaa4d5525f
[ "Apache-2.0" ]
null
null
null
mssql-info-parser.py
addenial/mssqlinfo2csv
4864eec4f5b46f600358172a095f4acaa4d5525f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python #use to parse ms-sql-info nmap xml #https://nmap.org/nsedoc/scripts/ms-sql-info.html #nmap -Pn -n -p135,445,1433 --script ms-sql-info <host> -oX results-ms-sql-info.xml #nmap -Pn -n -p135,445,1433 --script ms-sql-info -iL <hosts_file> -oX results-ms-sql-info.xml # python3 mssql-info-parser.py...
27.011745
130
0.52084
2e26b7da155e82f4bc1df177d8a44eb8b5533202
5,831
py
Python
halfpipe/io/metadata/niftimetadata.py
fossabot/Halfpipe-1
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
[ "FTL" ]
null
null
null
halfpipe/io/metadata/niftimetadata.py
fossabot/Halfpipe-1
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
[ "FTL" ]
null
null
null
halfpipe/io/metadata/niftimetadata.py
fossabot/Halfpipe-1
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
[ "FTL" ]
null
null
null
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import logging import numpy as np import nibabel as nib from templateflow import api from .niftiheader import NiftiheaderLoader from .direction import canonicalize_direction_cod...
35.993827
129
0.535586
2e279624e45091494f39f33c260879b0835cffb0
15,566
py
Python
test_stream_zip.py
uktrade/stream-zip
5b27801ece18b15cf7edf9cd0931682eb828b4d1
[ "MIT" ]
8
2021-12-29T13:31:26.000Z
2022-01-30T02:40:53.000Z
test_stream_zip.py
uktrade/stream-zip
5b27801ece18b15cf7edf9cd0931682eb828b4d1
[ "MIT" ]
1
2022-02-06T06:51:21.000Z
2022-02-06T17:54:01.000Z
test_stream_zip.py
uktrade/stream-zip
5b27801ece18b15cf7edf9cd0931682eb828b4d1
[ "MIT" ]
null
null
null
from datetime import datetime from io import BytesIO import os import subprocess from tempfile import TemporaryDirectory from zipfile import ZipFile import pytest from stream_unzip import stream_unzip from stream_zip import ( stream_zip, NO_COMPRESSION_64, NO_COMPRESSION_32, ZIP_64, ZIP_32, Co...
28.405109
99
0.536361
2e2c18a17632c78bdb14e00bd093659ba759ce89
281
py
Python
src/hyper_prompt/themes/default.py
artbycrunk/hyper-prompt
b78d98e4e5c65647b566368ea778b205a86371de
[ "MIT" ]
5
2019-11-11T15:54:09.000Z
2022-03-23T00:00:07.000Z
src/hyper_prompt/themes/default.py
artbycrunk/hyper-prompt
b78d98e4e5c65647b566368ea778b205a86371de
[ "MIT" ]
8
2019-12-19T16:03:08.000Z
2021-10-21T01:42:08.000Z
src/hyper_prompt/themes/default.py
artbycrunk/hyper-prompt
b78d98e4e5c65647b566368ea778b205a86371de
[ "MIT" ]
3
2019-08-09T12:05:19.000Z
2020-10-06T08:16:24.000Z
from ..theme import BasicTheme
20.071429
34
0.597865
2e2c874eabf70ce448a8da9afd9c8435d81d6bca
5,970
py
Python
uefi_firmware/guids/efiguids_asrock.py
MikeSpreitzer/uefi-firmware-parser
2af7e41c800300b0509494cec1db7125d2be2de9
[ "MIT" ]
492
2015-01-14T18:33:34.000Z
2022-03-28T03:28:24.000Z
uefi_firmware/guids/efiguids_asrock.py
ontikka/uefi-firmware-parser
044fbde61970eaa626852b5b70821822c612c9f0
[ "MIT" ]
59
2015-04-11T22:25:29.000Z
2022-03-09T14:34:19.000Z
uefi_firmware/guids/efiguids_asrock.py
ontikka/uefi-firmware-parser
044fbde61970eaa626852b5b70821822c612c9f0
[ "MIT" ]
142
2015-02-05T06:36:30.000Z
2022-01-13T03:46:42.000Z
GUIDs = { "ASROCK_ACPIS4_DXE_GUID": [69196166, 45078, 18382, 175, 197, 34, 105, 237, 212, 173, 100], "ASROCK_USBRT_GUID": [82487969, 10657, 4567, 136, 56, 0, 80, 4, 115, 212, 235], "ASROCK_RAID_SETUP_GUID": [152494882, 14144, 12750, 173, 98, 189, 23, 44, 236, 202, 54], "ASROCK_RAID_LOADER_GUID": [16450...
90.454545
108
0.666332
2e2cd6de05e6f854d4a44bdc3069fb849e91ed70
608
py
Python
tests/test_conns.py
wgmueller1/unicorn
68a265982635873cf77ac3226f4da52c3f58344c
[ "MIT" ]
null
null
null
tests/test_conns.py
wgmueller1/unicorn
68a265982635873cf77ac3226f4da52c3f58344c
[ "MIT" ]
null
null
null
tests/test_conns.py
wgmueller1/unicorn
68a265982635873cf77ac3226f4da52c3f58344c
[ "MIT" ]
null
null
null
import sys import os import unittest from mock import MagicMock, patch import json sys.path.append(os.path.dirname(os.path.dirname( os.path.abspath(__file__)))) import app from app.config import db_conn_str import base64 import sqlalchemy if __name__ == '__main__': unittest.main()
24.32
57
0.700658
2e2f62a0b99cc57661a89620f788554799198400
731
py
Python
Mundo3/aula18d Mais sobre matriz em python.py
OliveiraVasconcelos/Python-CursoemVideo
bcca20d24b6af7bde9ce290b011cfa5abc0c1cc3
[ "MIT" ]
null
null
null
Mundo3/aula18d Mais sobre matriz em python.py
OliveiraVasconcelos/Python-CursoemVideo
bcca20d24b6af7bde9ce290b011cfa5abc0c1cc3
[ "MIT" ]
null
null
null
Mundo3/aula18d Mais sobre matriz em python.py
OliveiraVasconcelos/Python-CursoemVideo
bcca20d24b6af7bde9ce290b011cfa5abc0c1cc3
[ "MIT" ]
null
null
null
lista = [[], [], []] soma=somapar=0 for l in range(3): for c in range(3): if c == 2: n = int(input(f'Digite um valor para [{l}, {c}]: ')) lista[l].append(n) soma += n if n % 2 == 0: somapar += n else: n = int(input(f'Digite...
28.115385
68
0.45554
2e323a993de75c225cea764fd8a007677b386b61
413
py
Python
main.py
pyfection/battleship
a1d8cb58e84acd45a4f795ee4d04fc7e9cdd4927
[ "MIT" ]
1
2021-11-17T02:16:15.000Z
2021-11-17T02:16:15.000Z
main.py
pyfection/battleship
a1d8cb58e84acd45a4f795ee4d04fc7e9cdd4927
[ "MIT" ]
null
null
null
main.py
pyfection/battleship
a1d8cb58e84acd45a4f795ee4d04fc7e9cdd4927
[ "MIT" ]
null
null
null
from kivy.app import App from controller.game import Game from controller.actor import Local, AI if __name__ == '__main__': GameApp().run()
17.956522
45
0.571429
2e3264f2b6283971a43a58d5f49534eec7b0ac2f
208
py
Python
tests/server/pong_routing.py
Drachenfels/carp-api
b7f280a645d5116d85dc7cd1d177b449704457de
[ "MIT" ]
null
null
null
tests/server/pong_routing.py
Drachenfels/carp-api
b7f280a645d5116d85dc7cd1d177b449704457de
[ "MIT" ]
null
null
null
tests/server/pong_routing.py
Drachenfels/carp-api
b7f280a645d5116d85dc7cd1d177b449704457de
[ "MIT" ]
null
null
null
from carp_api.routing import router from . import endpoints # NOQA # to use pong we need to disable common routes as they are using conflicting # urls router.enable(endpoints=[ endpoints.UberPong, ])
18.909091
76
0.754808
2e327ddae14caaac5bb5b9a3a3889b304c602bfb
14,107
py
Python
tf3d/utils/projections_test.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
tf3d/utils/projections_test.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
tf3d/utils/projections_test.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
45.070288
80
0.561778
2e337b4d79277edd42512e09351b38ceab2eee6e
670
py
Python
tests/test_groups.py
bmaranville/pyfive
3f914d446d4ad16362e171c32b632720f114dd34
[ "BSD-3-Clause" ]
52
2016-06-13T20:52:04.000Z
2022-03-07T22:37:02.000Z
tests/test_groups.py
bmaranville/pyfive
3f914d446d4ad16362e171c32b632720f114dd34
[ "BSD-3-Clause" ]
20
2016-07-26T01:26:07.000Z
2022-01-24T10:36:22.000Z
tests/test_groups.py
bmaranville/pyfive
3f914d446d4ad16362e171c32b632720f114dd34
[ "BSD-3-Clause" ]
15
2016-05-23T04:13:16.000Z
2021-12-18T09:30:13.000Z
""" Test groups and sub-groups in pyfive. """ import os import pyfive DIRNAME = os.path.dirname(__file__) GROUPS_HDF5_FILE = os.path.join(DIRNAME, 'groups.hdf5')
21.612903
55
0.574627
2e33e8ade137e3b5565e5039432c2ee17e3c07ca
1,253
py
Python
kino/draw/locomotion.py
BrancoLab/Kino
0e914e3d65fdf76e4efa95b9848cb30da3653f3d
[ "MIT" ]
1
2021-12-09T09:19:25.000Z
2021-12-09T09:19:25.000Z
kino/draw/locomotion.py
BrancoLab/Kino
0e914e3d65fdf76e4efa95b9848cb30da3653f3d
[ "MIT" ]
null
null
null
kino/draw/locomotion.py
BrancoLab/Kino
0e914e3d65fdf76e4efa95b9848cb30da3653f3d
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from myterial import blue_grey_dark from kino.locomotion import Locomotion from kino.draw.gliphs import Arrows from kino.draw import colors def plot_locomotion_2D(locomotion: Locomotion, ax: plt.Axes): """ Draws a 2D trace with the locomotion trajectory of each bodypart ...
24.096154
78
0.635275
2e373c6d12f335af7154c7c8478202f3eb936444
666
py
Python
docs/core/examples/stdin.py
Khymeira/twisted
a8aae6853b729a742ed4a99b95e8fe0c5f1dad97
[ "Unlicense", "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
docs/core/examples/stdin.py
Khymeira/twisted
a8aae6853b729a742ed4a99b95e8fe0c5f1dad97
[ "Unlicense", "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
docs/core/examples/stdin.py
Khymeira/twisted
a8aae6853b729a742ed4a99b95e8fe0c5f1dad97
[ "Unlicense", "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ An example of reading a line at a time from standard input without blocking the reactor. """ from os import linesep from twisted.internet import stdio from twisted.protocols import basic if __name__ == "__main__": main()
18.5
58
0.68018
2e3b355012bad9ea30911b2009cbcb4a9a9e46ed
849
py
Python
floweaver/hierarchy.py
fullflu/floweaver
a0a8af90b97946d53e969976db1db1ef3e4d1a4f
[ "MIT" ]
342
2018-01-20T19:31:16.000Z
2022-02-28T20:45:26.000Z
sankeyview/hierarchy.py
LeoPaoli/sankeyview
99f21a7d90888a85bb5aac2f57e9c72bd9de4a8a
[ "MIT" ]
108
2018-02-06T11:31:45.000Z
2022-01-13T18:33:25.000Z
sankeyview/hierarchy.py
LeoPaoli/sankeyview
99f21a7d90888a85bb5aac2f57e9c72bd9de4a8a
[ "MIT" ]
86
2018-02-15T13:07:20.000Z
2022-03-18T15:25:33.000Z
import networkx as nx
30.321429
78
0.520612
2e3b58116e2d1f608d6de30c24daeb4023443f20
2,501
py
Python
set_dictionary/abstractdict.py
pinmingkenan/python_structure
8d5d12f739136d49c8585d1e8173ca77fd806180
[ "Apache-2.0" ]
null
null
null
set_dictionary/abstractdict.py
pinmingkenan/python_structure
8d5d12f739136d49c8585d1e8173ca77fd806180
[ "Apache-2.0" ]
null
null
null
set_dictionary/abstractdict.py
pinmingkenan/python_structure
8d5d12f739136d49c8585d1e8173ca77fd806180
[ "Apache-2.0" ]
null
null
null
# coding = utf-8 from inherit_abstract.abstractcollection import AbstractCollection
26.326316
83
0.554178
2e3b62faaad0159785c7a9346ba744cad0c4ac74
96
py
Python
tests/test_general.py
haku-kiro/flaskCRUD
93d6bcd1029bc001b1c9e045cede7bcd1c59ce28
[ "MIT" ]
null
null
null
tests/test_general.py
haku-kiro/flaskCRUD
93d6bcd1029bc001b1c9e045cede7bcd1c59ce28
[ "MIT" ]
null
null
null
tests/test_general.py
haku-kiro/flaskCRUD
93d6bcd1029bc001b1c9e045cede7bcd1c59ce28
[ "MIT" ]
null
null
null
""" General unit tests """
9.6
24
0.583333
2e3d3e9f0dfdf5e7ff06fcf3f48eef22c2699b28
3,508
py
Python
readthedocs/core/history.py
shazelquist/readthedocs.org
25c0f5d9528bd92db3c62db91e8eed8032d01b01
[ "MIT" ]
null
null
null
readthedocs/core/history.py
shazelquist/readthedocs.org
25c0f5d9528bd92db3c62db91e8eed8032d01b01
[ "MIT" ]
1
2022-03-02T11:55:37.000Z
2022-03-02T11:55:37.000Z
readthedocs/core/history.py
shazelquist/readthedocs.org
25c0f5d9528bd92db3c62db91e8eed8032d01b01
[ "MIT" ]
null
null
null
import logging from functools import partial from django import forms from django.db import models from django.utils.translation import ugettext_lazy as _ from simple_history.admin import SimpleHistoryAdmin from simple_history.models import HistoricalRecords from simple_history.utils import update_change_reason log =...
27.193798
89
0.675599
2e3e8a970e9bc8d721075789d203415f12e7dc48
2,603
py
Python
storm_analysis/test/test_pupil_math.py
bintulab/storm-analysis
71ae493cbd17ddb97938d0ae2032d97a0eaa76b2
[ "CNRI-Python" ]
null
null
null
storm_analysis/test/test_pupil_math.py
bintulab/storm-analysis
71ae493cbd17ddb97938d0ae2032d97a0eaa76b2
[ "CNRI-Python" ]
null
null
null
storm_analysis/test/test_pupil_math.py
bintulab/storm-analysis
71ae493cbd17ddb97938d0ae2032d97a0eaa76b2
[ "CNRI-Python" ]
1
2021-04-19T18:17:06.000Z
2021-04-19T18:17:06.000Z
#!/usr/bin/env python import numpy import storm_analysis import storm_analysis.simulator.pupil_math as pupilMath def test_pupil_math_1(): """ Test GeometryC, intensity, no scaling. """ geo = pupilMath.Geometry(20, 0.1, 0.6, 1.5, 1.4) geo_c = pupilMath.GeometryC(20, 0.1, 0.6, 1.5, 1.4) pf = ...
28.604396
70
0.615828
2e408aabb03fe93f173854c509cf423cd152fcdc
292
py
Python
coderbyte/CodelandUsernameValidation/CodelandUsernameValidation.py
asraful009/hackerrank
10e6c4fd1720ebbed484826823f0dadd9afdc179
[ "MIT" ]
null
null
null
coderbyte/CodelandUsernameValidation/CodelandUsernameValidation.py
asraful009/hackerrank
10e6c4fd1720ebbed484826823f0dadd9afdc179
[ "MIT" ]
null
null
null
coderbyte/CodelandUsernameValidation/CodelandUsernameValidation.py
asraful009/hackerrank
10e6c4fd1720ebbed484826823f0dadd9afdc179
[ "MIT" ]
null
null
null
import re # keep this function call here a = ["abc", "a123123123213"] for s in a: print(CodelandUsernameValidation(s))
20.857143
72
0.664384
2e416e106618e66359cbd6f5a9c858ba2efcc685
2,854
py
Python
goodsManage/admin.py
z-Wind/warehouse
3a1ebee4d37bc4e3b6783fee78062eb7aa8da152
[ "MIT" ]
null
null
null
goodsManage/admin.py
z-Wind/warehouse
3a1ebee4d37bc4e3b6783fee78062eb7aa8da152
[ "MIT" ]
null
null
null
goodsManage/admin.py
z-Wind/warehouse
3a1ebee4d37bc4e3b6783fee78062eb7aa8da152
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from goodsManage.models import *
38.053333
83
0.711983
2e4227092b966325c2fa696732e378bbb6990345
2,267
py
Python
andmath/KMeansClustering.py
andregerbaulet/andmath
d6a349234c27315de99a1fa40bfb7cccbf28c12f
[ "MIT" ]
null
null
null
andmath/KMeansClustering.py
andregerbaulet/andmath
d6a349234c27315de99a1fa40bfb7cccbf28c12f
[ "MIT" ]
null
null
null
andmath/KMeansClustering.py
andregerbaulet/andmath
d6a349234c27315de99a1fa40bfb7cccbf28c12f
[ "MIT" ]
null
null
null
import numpy as np from .general_functions import get_centroid, get_distance
39.086207
77
0.585796
2e42af415840da62a88592e3d326bee01ee86182
9,497
py
Python
CellProfiler/cellprofiler/gui/module_view/_module_sizer.py
aidotse/Team-rahma.ai
66857731e1ca2472e0783e37ba472b55a7ac9cd4
[ "MIT" ]
null
null
null
CellProfiler/cellprofiler/gui/module_view/_module_sizer.py
aidotse/Team-rahma.ai
66857731e1ca2472e0783e37ba472b55a7ac9cd4
[ "MIT" ]
null
null
null
CellProfiler/cellprofiler/gui/module_view/_module_sizer.py
aidotse/Team-rahma.ai
66857731e1ca2472e0783e37ba472b55a7ac9cd4
[ "MIT" ]
null
null
null
import logging import wx
41.291304
87
0.50795
2e446192861d95c6ad3ebb677cea75fa0702665a
5,003
py
Python
venv/Lib/site-packages/win32/Demos/win32gui_demo.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
150
2021-11-02T05:31:51.000Z
2022-03-24T06:22:22.000Z
venv/Lib/site-packages/win32/Demos/win32gui_demo.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
4
2021-12-01T11:55:58.000Z
2022-02-24T16:14:37.000Z
venv/Lib/site-packages/win32/Demos/win32gui_demo.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
33
2021-11-03T00:29:41.000Z
2022-03-15T13:15:56.000Z
# The start of a win32gui generic demo. # Feel free to contribute more demos back ;-) import win32gui, win32con, win32api import time, math, random wndproc_1 = {win32con.WM_PAINT: OnPaint_1} wndproc_2 = {win32con.WM_PAINT: OnPaint_2} print("Enumerating all windows...") TestEnumWindows() print("Testing draw...
28.919075
84
0.586248
2e44abcfdbb18d94c222ffb45f03c16751379a76
312
py
Python
wafer/tickets/urls.py
liip-forks/wafer
e7f90f61c820d2d643738f590bb2614d87a2bda7
[ "ISC" ]
null
null
null
wafer/tickets/urls.py
liip-forks/wafer
e7f90f61c820d2d643738f590bb2614d87a2bda7
[ "ISC" ]
null
null
null
wafer/tickets/urls.py
liip-forks/wafer
e7f90f61c820d2d643738f590bb2614d87a2bda7
[ "ISC" ]
null
null
null
from django.conf.urls import url from wafer.tickets.views import ClaimView, zapier_cancel_hook, zapier_guest_hook urlpatterns = [ url(r'^claim/$', ClaimView.as_view(), name='wafer_ticket_claim'), url(r'^zapier_guest_hook/$', zapier_guest_hook), url(r'^zapier_cancel_hook/$', zapier_cancel_hook), ]
31.2
80
0.75
2e44d40deef066981e5898570685011fbd57c186
1,068
py
Python
2_CS_Medium/Leetcode/Interview_Easy/DLC_7_Design.py
andremichalowski/CSN1
97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b
[ "MIT" ]
null
null
null
2_CS_Medium/Leetcode/Interview_Easy/DLC_7_Design.py
andremichalowski/CSN1
97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b
[ "MIT" ]
null
null
null
2_CS_Medium/Leetcode/Interview_Easy/DLC_7_Design.py
andremichalowski/CSN1
97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b
[ "MIT" ]
null
null
null
1. SHUFFLE AN ARRAY: class Solution: def __init__(self, nums): self.array = nums self.original = list(nums) 2. MIN STACK: #https://mail.google.com/mail/u/0/#inbox?projector=1 class MinStack: def __init__(self): self.my_stack = []
24.837209
56
0.532772
2e45197a532dce96b7df749cbdf848d71b07531b
6,576
py
Python
plio/io/hcube.py
kaitlyndlee/plio
99f0852d8eb92efeba72f366077bd023a7da7cdd
[ "Unlicense" ]
null
null
null
plio/io/hcube.py
kaitlyndlee/plio
99f0852d8eb92efeba72f366077bd023a7da7cdd
[ "Unlicense" ]
null
null
null
plio/io/hcube.py
kaitlyndlee/plio
99f0852d8eb92efeba72f366077bd023a7da7cdd
[ "Unlicense" ]
null
null
null
import numpy as np import gdal from ..utils.indexing import _LocIndexer, _iLocIndexer from libpyhat.transform.continuum import continuum_correction from libpyhat.transform.continuum import polynomial, linear, regression def reduce(self, how = np.mean, axis = (1, 2)): """ Parameters ------...
31.464115
107
0.541515
2e4550f8435640420da299c128aee22fdd0642b9
960
py
Python
products/ui/llbuildui/graphalgorithms.py
uraimo/swift-llbuild
3aaff32283b6968473f740559b6183d149dbfa36
[ "Apache-2.0" ]
1,034
2015-12-03T16:44:45.000Z
2022-03-31T02:52:54.000Z
products/ui/llbuildui/graphalgorithms.py
uraimo/swift-llbuild
3aaff32283b6968473f740559b6183d149dbfa36
[ "Apache-2.0" ]
728
2015-12-14T23:22:03.000Z
2022-03-29T23:15:49.000Z
products/ui/llbuildui/graphalgorithms.py
uraimo/swift-llbuild
3aaff32283b6968473f740559b6183d149dbfa36
[ "Apache-2.0" ]
227
2015-12-03T16:44:46.000Z
2022-02-28T11:02:07.000Z
import orderedset
25.263158
80
0.53125
2e46a7ed9af435be3141d00f2ebf4be4ef1a23ff
1,542
py
Python
db.py
ninimihaila/raspi-server
500a674c2cbf4e9f08b751ada5b8a9f45f89327b
[ "MIT" ]
null
null
null
db.py
ninimihaila/raspi-server
500a674c2cbf4e9f08b751ada5b8a9f45f89327b
[ "MIT" ]
null
null
null
db.py
ninimihaila/raspi-server
500a674c2cbf4e9f08b751ada5b8a9f45f89327b
[ "MIT" ]
null
null
null
import sqlite3 from datetime import datetime
24.47619
85
0.574578
2e47beb63f02eb95ecd44859a6e7f28918626cae
172
py
Python
AntiAnalysis/__init__.py
Devtion/CrazyPy
c3bde86f3925439bc3b9df308027c57c515fc712
[ "MIT" ]
2
2020-05-15T17:13:37.000Z
2020-05-15T17:14:52.000Z
AntiAnalysis/__init__.py
Devtion/CrazyPy
c3bde86f3925439bc3b9df308027c57c515fc712
[ "MIT" ]
null
null
null
AntiAnalysis/__init__.py
Devtion/CrazyPy
c3bde86f3925439bc3b9df308027c57c515fc712
[ "MIT" ]
null
null
null
# Import all modules import AntiAnalysis.VirtualBox import AntiAnalysis.SandBox import AntiAnalysis.Debugger import AntiAnalysis.Emulator import AntiAnalysis.Process
24.571429
31
0.848837
2e4813e101148d2aa8ef55663105ba34b2d5e596
13,170
py
Python
lib/python2.7/site-packages/appionlib/apTilt/autotilt.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/appionlib/apTilt/autotilt.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/appionlib/apTilt/autotilt.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
1
2019-09-05T20:58:37.000Z
2019-09-05T20:58:37.000Z
#!/usr/bin/env python #python import os import sys import time import numpy import threading from PIL import Image from pyami import quietscipy from scipy import ndimage, optimize #appion try: import radermacher except: print "using slow tilt angle calculator" import slowmacher as radermacher from appionlib import ...
32.679901
122
0.620881
2e48140d20f0f36746242230c58ba92c4fce4b01
676
py
Python
bin/utils/topo.py
akrishna1995/emuedge
d33845107be3c9bbfcaf030df0a989e9d4972743
[ "MIT" ]
8
2018-06-21T03:20:26.000Z
2021-10-15T03:53:49.000Z
bin/utils/topo.py
akrishna1995/emuedge
d33845107be3c9bbfcaf030df0a989e9d4972743
[ "MIT" ]
12
2018-05-21T17:26:59.000Z
2018-06-14T02:48:21.000Z
bin/utils/topo.py
akrishna1995/emuedge
d33845107be3c9bbfcaf030df0a989e9d4972743
[ "MIT" ]
3
2018-08-30T22:37:20.000Z
2019-03-31T18:29:52.000Z
import json # use adjacency list for representing network would be intuitive for human
21.806452
74
0.723373
2e483ff8bc55f318b8c66a3d2be4b382f2c8b3ca
527
py
Python
__getYardAndMiles.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
__getYardAndMiles.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
__getYardAndMiles.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
''' Python program to convert the distance (in feet) to inches,yards, and miles ''' main()
25.095238
75
0.650854
2e493f3ae8ba3d9d3eefe6face50f7633f051c11
2,972
py
Python
lib/googlecloudsdk/command_lib/memcache/instances_describe_util.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/googlecloudsdk/command_lib/memcache/instances_describe_util.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/memcache/instances_describe_util.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2021 Google LLC. 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 requir...
39.105263
76
0.761777
2e49836ad1924bea36909bc8234e0b280caf11e2
2,864
py
Python
ktrain/tests/test_multilabel.py
sathishksankarpandi/ktrain
bc9169661592ee14b95d9e56622dbb20e66b3568
[ "MIT" ]
null
null
null
ktrain/tests/test_multilabel.py
sathishksankarpandi/ktrain
bc9169661592ee14b95d9e56622dbb20e66b3568
[ "MIT" ]
null
null
null
ktrain/tests/test_multilabel.py
sathishksankarpandi/ktrain
bc9169661592ee14b95d9e56622dbb20e66b3568
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Tests of ktrain text classification flows """ import sys import os os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"; os.environ["CUDA_VISIBLE_DEVICES"]="0" sys.path.insert(0,'../..') from unittest import TestCase, main, skip import ktrain if __name__ == "__main__": main()
26.518519
72
0.429469
2e49f8bd36f02f2d5321a3a439a3ec0a024b103c
1,137
py
Python
api/serializer.py
lirandepira/winccoa-web
cf1eef22937956c46bbc4ef0e0ab1cc88cdea4b1
[ "MIT" ]
null
null
null
api/serializer.py
lirandepira/winccoa-web
cf1eef22937956c46bbc4ef0e0ab1cc88cdea4b1
[ "MIT" ]
null
null
null
api/serializer.py
lirandepira/winccoa-web
cf1eef22937956c46bbc4ef0e0ab1cc88cdea4b1
[ "MIT" ]
null
null
null
from rest_framework import serializers, status from api.models import *
37.9
120
0.616535
2e4b44a40db706e7d8c3d90be1f10ea7662d7af7
4,839
py
Python
utils/models.py
michaelnation26/pix2pix-edges-with-color
1815de2729385982c490d9da35d53170ee714ac1
[ "MIT" ]
1
2021-08-25T04:38:08.000Z
2021-08-25T04:38:08.000Z
utils/models.py
michaelnation26/pix2pix-edges-with-color
1815de2729385982c490d9da35d53170ee714ac1
[ "MIT" ]
null
null
null
utils/models.py
michaelnation26/pix2pix-edges-with-color
1815de2729385982c490d9da35d53170ee714ac1
[ "MIT" ]
null
null
null
""" Keras implementation of Pix2Pix from Jason Brownlee's tutorial. https://machinelearningmastery.com/how-to-develop-a-pix2pix-gan-for-image-to-image-translation/ """ from keras.initializers import RandomNormal from keras.layers import Activation, BatchNormalization, Concatenate, Conv2D, Conv2DTranspose, Dropout, Lea...
38.712
122
0.701385
2e4b59624d1a6b78ad06ccfb2b720de221af1f96
1,999
py
Python
lxserv/tagger_pTag_quickSelect_Popup.py
9bstudios/mecco_tagger
08af7cc0939602ae15e43fa081bbc0825b2ef7a7
[ "MIT" ]
null
null
null
lxserv/tagger_pTag_quickSelect_Popup.py
9bstudios/mecco_tagger
08af7cc0939602ae15e43fa081bbc0825b2ef7a7
[ "MIT" ]
null
null
null
lxserv/tagger_pTag_quickSelect_Popup.py
9bstudios/mecco_tagger
08af7cc0939602ae15e43fa081bbc0825b2ef7a7
[ "MIT" ]
null
null
null
import lx, lxifc, lxu.command, tagger CMD_NAME = tagger.CMD_PTAG_QUICK_SELECT_POPUP lx.bless(CommandClass, CMD_NAME)
30.287879
99
0.552276
2e4b63bd5b4769f7df88e32782400d4e36345165
5,920
py
Python
canvas_sdk/methods/gradebook_history.py
david-house-harvard/canvas_python_sdk
9c2e59621a9a5667bc43c253ef801482b241a2c1
[ "MIT" ]
21
2015-06-12T13:49:04.000Z
2021-11-08T05:37:44.000Z
canvas_sdk/methods/gradebook_history.py
david-house-harvard/canvas_python_sdk
9c2e59621a9a5667bc43c253ef801482b241a2c1
[ "MIT" ]
44
2015-02-04T15:26:52.000Z
2021-12-03T17:47:00.000Z
canvas_sdk/methods/gradebook_history.py
david-house-harvard/canvas_python_sdk
9c2e59621a9a5667bc43c253ef801482b241a2c1
[ "MIT" ]
7
2015-07-20T23:56:03.000Z
2021-02-23T17:13:00.000Z
from canvas_sdk import client, utils def days_in_gradebook_history_for_this_course(request_ctx, course_id, per_page=None, **request_kwargs): """ Returns a map of dates to grader/assignment groups :param request_ctx: The request context :type request_ctx: :class:RequestContext :param co...
44.511278
187
0.707095
2e4c23eadd4c50d7402fb819476b5a8a578e2a5b
60
py
Python
tests/python/kaolin/metrics/__init__.py
mlej8/kaolin
19fd610fff68c4d9ad9035386b76e6fd51b0b67c
[ "ECL-2.0", "Apache-2.0" ]
3,747
2019-11-13T02:18:16.000Z
2022-03-31T21:12:31.000Z
tests/python/kaolin/metrics/__init__.py
mlej8/kaolin
19fd610fff68c4d9ad9035386b76e6fd51b0b67c
[ "ECL-2.0", "Apache-2.0" ]
371
2019-11-13T14:50:59.000Z
2022-03-22T19:40:06.000Z
tests/python/kaolin/metrics/__init__.py
mlej8/kaolin
19fd610fff68c4d9ad9035386b76e6fd51b0b67c
[ "ECL-2.0", "Apache-2.0" ]
482
2019-11-13T05:04:38.000Z
2022-03-31T10:20:26.000Z
from . import test_trianglemesh from . import test_voxelgrid
30
31
0.85
2e4c4571dea9eb5d3a059c2ca3583554a8d06562
144
py
Python
main/forms.py
anupam-tiwari/Def-Hacks-2020
d350299af2f0d18ac7b5ec1e29a5bb9b3479b5af
[ "Unlicense", "MIT" ]
null
null
null
main/forms.py
anupam-tiwari/Def-Hacks-2020
d350299af2f0d18ac7b5ec1e29a5bb9b3479b5af
[ "Unlicense", "MIT" ]
11
2020-09-26T01:14:58.000Z
2022-02-10T01:48:07.000Z
main/forms.py
anupam-tiwari/Def-Hacks-2020
d350299af2f0d18ac7b5ec1e29a5bb9b3479b5af
[ "Unlicense", "MIT" ]
null
null
null
from django import forms from .models import *
18
32
0.638889
2e4d51200e7eb439b7354dadd19dad39c4247e7b
3,131
py
Python
33.search-in-rotated-sorted-array.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
33.search-in-rotated-sorted-array.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
33.search-in-rotated-sorted-array.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
# coding=utf-8 # # @lc app=leetcode id=33 lang=python # # [33] Search in Rotated Sorted Array # # https://leetcode.com/problems/search-in-rotated-sorted-array/description/ # # algorithms # Medium (32.65%) # Likes: 2445 # Dislikes: 314 # Total Accepted: 421.1K # Total Submissions: 1.3M # Testcase Example: '[4,5,6...
24.849206
81
0.480358
2e4f32bad9745ba5a6536daa0ed2664f5ffce3be
10,444
py
Python
covfuzze/covfuzze.py
guifengwei/CovFuzze
96410a00256987b69bb4a03f5bfe577a23907fdf
[ "MIT" ]
5
2018-08-19T17:38:27.000Z
2021-10-01T05:54:27.000Z
covfuzze/covfuzze.py
guifengwei/CovFuzze
96410a00256987b69bb4a03f5bfe577a23907fdf
[ "MIT" ]
null
null
null
covfuzze/covfuzze.py
guifengwei/CovFuzze
96410a00256987b69bb4a03f5bfe577a23907fdf
[ "MIT" ]
2
2020-02-20T11:33:04.000Z
2020-08-14T05:15:13.000Z
#!/usr/bin/env python #a program to plot gene coverage in multiple samples with peak regions #Alexa McIntyre, 2018 import numpy as np import pysam import pandas as pd import matplotlib import re import os import seaborn as sns from matplotlib import pyplot as plt plt.switch_backend('agg') from matplotlib import cm fro...
40.638132
184
0.583206
2e4f95452cbcd345022133e534546fd89b9889bf
626
py
Python
Day01-15/code/Day15/excel1.py
EngrSaad2/Python-100-Days
ab0b26714b1df50d02a1433dc82f2a3fb025be5c
[ "Apache-2.0" ]
6
2020-04-22T14:07:51.000Z
2021-09-07T12:55:23.000Z
Day01-15/code/Day15/excel1.py
2462612540/Python-Language
a676d1274a04ff03f1aea0de9c58019d6ef8f5fe
[ "Apache-2.0" ]
null
null
null
Day01-15/code/Day15/excel1.py
2462612540/Python-Language
a676d1274a04ff03f1aea0de9c58019d6ef8f5fe
[ "Apache-2.0" ]
4
2019-08-25T05:51:00.000Z
2021-04-16T08:14:16.000Z
""" Excel Version: 0.1 Author: Date: 2018-03-26 """ from openpyxl import Workbook from openpyxl.worksheet.table import Table, TableStyleInfo workbook = Workbook() sheet = workbook.active data = [ [1001, '', '', '13123456789'], [1002, '', '', '13233445566'] ] sheet.append(['', '', '', '']) for row in data: ...
23.185185
70
0.702875
2e4fdf084dbc0abb317e6412dff918c1aaad4664
128
py
Python
twitter_ads/__init__.py
enterstudio/twitter-python-ads-sdk
05e2963185b782d17cd75dae96c73f55ed0a0ba9
[ "MIT" ]
null
null
null
twitter_ads/__init__.py
enterstudio/twitter-python-ads-sdk
05e2963185b782d17cd75dae96c73f55ed0a0ba9
[ "MIT" ]
null
null
null
twitter_ads/__init__.py
enterstudio/twitter-python-ads-sdk
05e2963185b782d17cd75dae96c73f55ed0a0ba9
[ "MIT" ]
null
null
null
# Copyright (C) 2015 Twitter, Inc. VERSION = (1, 2, 0) from twitter_ads.utils import get_version __version__ = get_version()
16
41
0.726563
2e5147c325d3ebaa6f0fb2f01e48bf1bef122b97
1,296
py
Python
demo/food20/mobilenet_v2.py
wei2374/model_compression
bf3e9a11396ace3c6845f44f6aa02b38364e2ec8
[ "MIT" ]
null
null
null
demo/food20/mobilenet_v2.py
wei2374/model_compression
bf3e9a11396ace3c6845f44f6aa02b38364e2ec8
[ "MIT" ]
null
null
null
demo/food20/mobilenet_v2.py
wei2374/model_compression
bf3e9a11396ace3c6845f44f6aa02b38364e2ec8
[ "MIT" ]
1
2022-02-13T06:28:35.000Z
2022-02-13T06:28:35.000Z
import tensorflow as tf from tensorflow.keras.applications import MobileNetV2 from tensorflow.keras.layers import Dense, GlobalAveragePooling2D, Add,\ GlobalMaxPooling2D from tensorflow.keras.models import Model from tensorflow.keras.optimizers import Adam
38.117647
96
0.722994
2e52393bc18e148037f3cb9883715b33d4b4daf2
681
py
Python
stacker/setup.py
Ethiopia-COVID19/infrastructure-terrafrom
41d7163418c1c5f24c6294122c5c315ee3d25f08
[ "MIT" ]
3
2020-04-11T09:54:37.000Z
2020-04-14T04:48:25.000Z
stacker/setup.py
Ethiopia-COVID19/infrastructure-terrafrom
41d7163418c1c5f24c6294122c5c315ee3d25f08
[ "MIT" ]
5
2020-04-01T19:23:27.000Z
2020-04-20T06:46:47.000Z
stacker/setup.py
Ethiopia-COVID19/infrastructure-terrafrom
41d7163418c1c5f24c6294122c5c315ee3d25f08
[ "MIT" ]
5
2020-04-02T00:19:03.000Z
2020-04-15T03:33:16.000Z
import os import glob from setuptools import setup, find_packages src_dir = os.path.dirname(__file__) install_requires = [ 'stacker', 'stacker_blueprints', ] tests_require = ( 'nose>=1.0', 'mock==1.0.1', 'coverage~=4.3.4', 'flake8' ) if __name__ == '__main__': setup( name='ethcr...
21.967742
102
0.637298
2e52d7bb0dbc49c220dea1f5d4c0cc4e1db3cc9b
10,910
py
Python
www/generators/tree_at_bristol.py
mattvenn/cursivedata
43e43263bef6f01698166d87bcff00b246957277
[ "CC-BY-4.0" ]
1
2015-12-31T01:46:09.000Z
2015-12-31T01:46:09.000Z
www/generators/tree_at_bristol.py
mattvenn/cursivedata
43e43263bef6f01698166d87bcff00b246957277
[ "CC-BY-4.0" ]
5
2015-04-06T19:15:15.000Z
2015-07-25T21:45:16.000Z
www/generators/tree_at_bristol.py
mattvenn/cursivedata
43e43263bef6f01698166d87bcff00b246957277
[ "CC-BY-4.0" ]
null
null
null
""" bugs: """ from django.utils.datetime_safe import datetime from pysvg.builders import * import pysvg.structure import math import random import logging log = logging.getLogger('generator') grid = 21 #measured these ball_space = 24.5 ball_xoffset = 180 - ball_space ball_yoffset = 173 - ball_space svg_width = 800.0 b...
35.653595
147
0.603575
2e530c5eddeac4755ec8fe32ff492c5abd30b9f8
565
py
Python
hydra_plugins/classy_vision_path/classy_vision_path.py
jdsgomes/ClassyVision-1
309d4f12431c6b4d8540010a781dc2aa25fe88e7
[ "MIT" ]
null
null
null
hydra_plugins/classy_vision_path/classy_vision_path.py
jdsgomes/ClassyVision-1
309d4f12431c6b4d8540010a781dc2aa25fe88e7
[ "MIT" ]
null
null
null
hydra_plugins/classy_vision_path/classy_vision_path.py
jdsgomes/ClassyVision-1
309d4f12431c6b4d8540010a781dc2aa25fe88e7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from hydra.core.config_search_path import ConfigSearchPath from hydra.plugins.search_path_plugin import SearchPathPlu...
35.3125
76
0.762832
2e53a8b000e39ca625063f2e18f98a2a27570c1c
7,767
py
Python
aries_cloudagent/revocation/models/tests/test_revocation_registry.py
msembinelli/aries-cloudagent-python
a5a29dab30238f52dcfb6645aab115d01720a5c7
[ "Apache-2.0" ]
1
2020-07-02T12:36:32.000Z
2020-07-02T12:36:32.000Z
aries_cloudagent/revocation/models/tests/test_revocation_registry.py
msembinelli/aries-cloudagent-python
a5a29dab30238f52dcfb6645aab115d01720a5c7
[ "Apache-2.0" ]
1
2020-02-25T19:01:16.000Z
2020-02-25T19:01:16.000Z
aries_cloudagent/revocation/models/tests/test_revocation_registry.py
msembinelli/aries-cloudagent-python
a5a29dab30238f52dcfb6645aab115d01720a5c7
[ "Apache-2.0" ]
2
2020-02-18T20:34:01.000Z
2021-03-12T16:18:30.000Z
import json import pytest from asynctest import TestCase as AsyncTestCase, mock as async_mock from copy import deepcopy from pathlib import Path from shutil import rmtree import base58 from ....config.injection_context import InjectionContext from ....storage.base import BaseStorage from ....storage.basic import Ba...
40.664921
826
0.677739
2e55864e3abe825554294b4194cddf5a611007cf
1,110
py
Python
runtests.py
movermeyer/django-aggregate-if
588c1487bc88a8996d4ee9c2c9d50fa4a4484872
[ "MIT" ]
78
2015-01-02T18:49:24.000Z
2021-04-04T00:47:33.000Z
runtests.py
movermeyer/django-aggregate-if
588c1487bc88a8996d4ee9c2c9d50fa4a4484872
[ "MIT" ]
4
2015-01-26T00:24:49.000Z
2016-01-11T10:31:43.000Z
runtests.py
movermeyer/django-aggregate-if
588c1487bc88a8996d4ee9c2c9d50fa4a4484872
[ "MIT" ]
7
2015-02-02T00:00:22.000Z
2020-03-08T09:06:09.000Z
#!/usr/bin/env python import os import sys from optparse import OptionParser def get_runner(settings_module): ''' Asks Django for the TestRunner defined in settings or the default one. ''' os.environ['DJANGO_SETTINGS_MODULE'] = settings_module import django from django.test.utils import get...
22.653061
88
0.677477
2e55cbdc85e25fb41d40bbaf42cdc30151a9b83e
1,657
py
Python
Files/Print_text.py
Adian-kids/AWD-Framework-First
7177d14fd61de780e9b0b0981d8ed4531ee8100a
[ "MIT" ]
4
2020-06-17T04:35:41.000Z
2020-07-27T13:51:43.000Z
Files/Print_text.py
Adian-kids/AWD-Framework-First
7177d14fd61de780e9b0b0981d8ed4531ee8100a
[ "MIT" ]
null
null
null
Files/Print_text.py
Adian-kids/AWD-Framework-First
7177d14fd61de780e9b0b0981d8ed4531ee8100a
[ "MIT" ]
2
2020-10-12T12:49:10.000Z
2021-09-28T02:04:26.000Z
import os
47.342857
102
0.388654
2e569471592d5ed61cf0d5d23478440e96810c7e
2,507
py
Python
AtlasOEM.py
pratikgharte/Python_GUI_EC_PH
5dd6a166ffc59a55a45e711481261644879a3d8a
[ "MIT" ]
2
2020-11-24T05:43:55.000Z
2021-01-23T18:08:17.000Z
AtlasOEM.py
pratikgharte/Python_GUI_EC_PH
5dd6a166ffc59a55a45e711481261644879a3d8a
[ "MIT" ]
null
null
null
AtlasOEM.py
pratikgharte/Python_GUI_EC_PH
5dd6a166ffc59a55a45e711481261644879a3d8a
[ "MIT" ]
4
2020-11-03T22:06:52.000Z
2022-03-14T15:59:07.000Z
import smbus
30.950617
72
0.613083
2e57b2039432cdc4550bf05056ffa4cea8b14ca4
5,224
py
Python
telemelody/evaluation/cal_similarity.py
BILLXZY1215/muzic
6e7009325f6d9973799568c71f53f4903383cb80
[ "MIT" ]
null
null
null
telemelody/evaluation/cal_similarity.py
BILLXZY1215/muzic
6e7009325f6d9973799568c71f53f4903383cb80
[ "MIT" ]
null
null
null
telemelody/evaluation/cal_similarity.py
BILLXZY1215/muzic
6e7009325f6d9973799568c71f53f4903383cb80
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # import numpy as np import os import sys import miditoolkit ALIGN = '[align]' SEP = '[sep]' Duration_vocab = dict([(129+i, x/100) for i, x in enumerate(list(range(25, 3325, 25)))]) Durati...
31.660606
87
0.54307
2e5a364a7afb3702e346f8188da912a7a03ff1be
1,833
py
Python
src/cms/contexts/templatetags/unicms_contexts.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
6
2021-01-26T17:22:53.000Z
2022-02-15T10:09:03.000Z
src/cms/contexts/templatetags/unicms_contexts.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
5
2020-12-24T14:29:23.000Z
2021-08-10T10:32:18.000Z
src/cms/contexts/templatetags/unicms_contexts.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
2
2020-12-24T14:13:39.000Z
2020-12-30T16:48:52.000Z
import logging import urllib from django import template from django.conf import settings from django.utils.translation import gettext_lazy as _ from cms.contexts.models import WebPath, WebSite from cms.contexts.utils import handle_faulty_templates logger = logging.getLogger(__name__) register = template.Library() ...
30.55
79
0.720131
2e5c639c36f0a4326023e6f413bedc3d87d584b3
855
py
Python
ML1-Supervised-Learning/ML1.2-Regression/rg7_regularization_ridge.py
ridhanf/machine-learning-datacamp
2c2c0f5dfcf9df315488cdef8eabd1d4f9fbd0e8
[ "MIT" ]
null
null
null
ML1-Supervised-Learning/ML1.2-Regression/rg7_regularization_ridge.py
ridhanf/machine-learning-datacamp
2c2c0f5dfcf9df315488cdef8eabd1d4f9fbd0e8
[ "MIT" ]
null
null
null
ML1-Supervised-Learning/ML1.2-Regression/rg7_regularization_ridge.py
ridhanf/machine-learning-datacamp
2c2c0f5dfcf9df315488cdef8eabd1d4f9fbd0e8
[ "MIT" ]
null
null
null
# Import necessary modules from sklearn.linear_model import Ridge from sklearn.model_selection import cross_val_score # Setup the array of alphas and lists to store scores alpha_space = np.logspace(-4, 0, 50) ridge_scores = [] ridge_scores_std = [] # Create a ridge regressor: ridge ridge = Ridge(normalize=True) # Co...
28.5
59
0.754386
2e5d578b316dda6f618f04665b16128478ec6d91
685
py
Python
RUN.py
MAXIORBOY/ReflexGame
69d3c12f2a227cd948009f863fb5c16ce1c70256
[ "MIT" ]
null
null
null
RUN.py
MAXIORBOY/ReflexGame
69d3c12f2a227cd948009f863fb5c16ce1c70256
[ "MIT" ]
null
null
null
RUN.py
MAXIORBOY/ReflexGame
69d3c12f2a227cd948009f863fb5c16ce1c70256
[ "MIT" ]
null
null
null
from Menu import * from Settings import Settings if __name__ == '__main__': MasterWindow().run()
26.346154
115
0.616058
2e6006e584a17825353e404af334a6f750425bb8
911
py
Python
data/worker.py
suibex/fleonSide
6bdf3b1cc2893984f7bff6715ec333e9c2cfcbae
[ "CC0-1.0" ]
1
2022-01-17T22:46:02.000Z
2022-01-17T22:46:02.000Z
data/worker.py
suibex/fleonSide
6bdf3b1cc2893984f7bff6715ec333e9c2cfcbae
[ "CC0-1.0" ]
null
null
null
data/worker.py
suibex/fleonSide
6bdf3b1cc2893984f7bff6715ec333e9c2cfcbae
[ "CC0-1.0" ]
null
null
null
import threading import os import obd from random import random from pathlib import Path conn = obd.OBD() connect = obd.Async(fast=False) speed="" fueli="" tem ="" connect.watch(obd.commands.INTAKE_TEMP,callback=get_temp) connect.watch(obd.commands.FUEL_LEVEL,callback=get_fuel) connect.watch(obd.comma...
15.706897
57
0.607025
2e6190c941fbc361154e21a6a8c5a357a12ee585
2,035
py
Python
api/admin.py
titans55/pizza-ordering-service
9e2fbf1347fa1cdf908362cfa1fd51ebb9557fee
[ "MIT" ]
1
2019-11-13T12:09:33.000Z
2019-11-13T12:09:33.000Z
api/admin.py
titans55/pizza-ordering-service
9e2fbf1347fa1cdf908362cfa1fd51ebb9557fee
[ "MIT" ]
null
null
null
api/admin.py
titans55/pizza-ordering-service
9e2fbf1347fa1cdf908362cfa1fd51ebb9557fee
[ "MIT" ]
null
null
null
from django.contrib import admin from django import forms from . import models admin.site.register(models.PizzaFlavor, PizzaFlavorAdmin) admin.site.register(models.OrderedPizza, OrderedPizzaAdmin) admin.site.register(models.Order, OrderAdmin) admin.site.register(models.DeliveryDetail, DeliveryDetailAdmin)
19.198113
63
0.589189
2e623080e3c461b67d4121fb0621554db8f1b398
2,784
py
Python
_ch05/logistic_regression.py
wyj1026/ml-in-action
10954333898c5235f3e0e6f81b97e74c1ac97590
[ "MIT" ]
null
null
null
_ch05/logistic_regression.py
wyj1026/ml-in-action
10954333898c5235f3e0e6f81b97e74c1ac97590
[ "MIT" ]
null
null
null
_ch05/logistic_regression.py
wyj1026/ml-in-action
10954333898c5235f3e0e6f81b97e74c1ac97590
[ "MIT" ]
null
null
null
from numpy import * colic_test()
32.752941
98
0.607399
2e6426b11f3108027cef421330cb680370fcbd18
2,658
py
Python
src/python/tags.py
alexjgriffith/alpha-score
a262a79523c796078506f88db5ee6c6a60c0b8d0
[ "BSD-3-Clause" ]
null
null
null
src/python/tags.py
alexjgriffith/alpha-score
a262a79523c796078506f88db5ee6c6a60c0b8d0
[ "BSD-3-Clause" ]
null
null
null
src/python/tags.py
alexjgriffith/alpha-score
a262a79523c796078506f88db5ee6c6a60c0b8d0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2.7 # # This file is part of peakAnalysis, http://github.com/alexjgriffith/peaks/, # and is Copyright (C) University of Ottawa, 2014. It is Licensed under # the three-clause BSD License; see doc/LICENSE.txt. # Contact: griffitaj@gmail.com # # Created : AUG262014 # File : buildPeaksClass # Auth...
37.43662
151
0.610986
2e650c253e8a6cac26c779a3546cf34701f3d990
1,085
py
Python
securityheaders/checkers/hsts/test_maxagezero.py
th3cyb3rc0p/securityheaders
941264be581dc01afe28f6416f2d7bed79aecfb3
[ "Apache-2.0" ]
151
2018-07-29T22:34:43.000Z
2022-03-22T05:08:27.000Z
securityheaders/checkers/hsts/test_maxagezero.py
th3cyb3rc0p/securityheaders
941264be581dc01afe28f6416f2d7bed79aecfb3
[ "Apache-2.0" ]
5
2019-04-24T07:31:36.000Z
2021-04-15T14:31:23.000Z
securityheaders/checkers/hsts/test_maxagezero.py
th3cyb3rc0p/securityheaders
941264be581dc01afe28f6416f2d7bed79aecfb3
[ "Apache-2.0" ]
42
2018-07-31T08:18:59.000Z
2022-03-28T08:18:32.000Z
import unittest from securityheaders.checkers.hsts import HSTSMaxAgeZeroChecker if __name__ == '__main__': unittest.main()
28.552632
81
0.647926
2e66a4f133f98300f3f7bd13dd28274a3ef5f09d
6,534
py
Python
GUI.py
wtarimo/CFCScorePredictor
2823dffdd4c13e29ebc5e77d85e000fa9977ef90
[ "Artistic-2.0" ]
null
null
null
GUI.py
wtarimo/CFCScorePredictor
2823dffdd4c13e29ebc5e77d85e000fa9977ef90
[ "Artistic-2.0" ]
null
null
null
GUI.py
wtarimo/CFCScorePredictor
2823dffdd4c13e29ebc5e77d85e000fa9977ef90
[ "Artistic-2.0" ]
null
null
null
""" William Tarimo COSI 157 - Final Project: CFC Score Predictor This module manages instances of games 11/11/2012 """ from Game import * def userInputBox(win): """Creates and diplays graphical fields for user signing and registration""" Text(Point(55,50), "Full Name:").draw(win) rName...
46.340426
143
0.632537
2e67add96e4f169ffda5ef816b27cba89c47205c
788
py
Python
common/enums/jobtype.py
panoramichq/data-collection-fb
550b90a303c880ae8c3dfd2801dc4f991a969f89
[ "MIT" ]
null
null
null
common/enums/jobtype.py
panoramichq/data-collection-fb
550b90a303c880ae8c3dfd2801dc4f991a969f89
[ "MIT" ]
null
null
null
common/enums/jobtype.py
panoramichq/data-collection-fb
550b90a303c880ae8c3dfd2801dc4f991a969f89
[ "MIT" ]
null
null
null
from typing import Optional from common.enums.entity import Entity from common.enums.reporttype import ReportType OTHER_JOB_REPORT_TYPES = ( ReportType.sync_expectations, ReportType.sync_status, ReportType.import_accounts, ReportType.import_pages, )
24.625
100
0.743655
2e67cfa0603162d9d4da37ade508bfe996ec88f8
7,411
py
Python
tutorials/ORACLE/tutorial_toy.py
AQ18/skimpy
435fc50244f2ca815bbb39d525a82a4692f5c0ac
[ "Apache-2.0" ]
13
2020-11-05T10:59:13.000Z
2022-03-21T01:38:31.000Z
tutorials/ORACLE/tutorial_toy.py
AQ18/skimpy
435fc50244f2ca815bbb39d525a82a4692f5c0ac
[ "Apache-2.0" ]
4
2022-01-27T10:23:40.000Z
2022-03-10T18:16:06.000Z
tutorials/ORACLE/tutorial_toy.py
AQ18/skimpy
435fc50244f2ca815bbb39d525a82a4692f5c0ac
[ "Apache-2.0" ]
6
2020-08-04T17:01:33.000Z
2022-03-21T01:38:32.000Z
# -*- coding: utf-8 -*- """ .. module:: skimpy :platform: Unix, Windows :synopsis: Simple Kinetic Models in Python .. moduleauthor:: SKiMPy team [---------] Copyright 2017 Laboratory of Computational Systems Biotechnology (LCSB), Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland Licensed under the ...
32.221739
104
0.667251
2e67d4f6d557576711444b37747e3462f871bbaa
230
py
Python
examples/scan_directory.py
jasondarnell/opswat
9e80b76901993e9cf787611eb865ded560428947
[ "MIT" ]
null
null
null
examples/scan_directory.py
jasondarnell/opswat
9e80b76901993e9cf787611eb865ded560428947
[ "MIT" ]
null
null
null
examples/scan_directory.py
jasondarnell/opswat
9e80b76901993e9cf787611eb865ded560428947
[ "MIT" ]
null
null
null
from opswat import MetaDefenderApi if __name__ == "__main__": md = MetaDefenderApi(ip="10.26.50.15", port=8008) #dir = "files" dir = "C:\\Users\\10694\\dev" results = md.scan_directory(dir) print(results)
17.692308
53
0.63913
2e682dd1b85c0cdf4b6f633baeae5123d5efec6d
791
py
Python
main.py
PeterHall16/Writer
9d2712c08681a5e212716e308064fe28700f9f78
[ "MIT" ]
null
null
null
main.py
PeterHall16/Writer
9d2712c08681a5e212716e308064fe28700f9f78
[ "MIT" ]
null
null
null
main.py
PeterHall16/Writer
9d2712c08681a5e212716e308064fe28700f9f78
[ "MIT" ]
null
null
null
import os # Import Colorama library (https://github.com/tartley/colorama) from colorama import init init() from colorama import Fore, Back, Style print(Style.RESET_ALL) url = str(input("Enter url: ")) display = str(input("Display file? ")) file = open(url, "r") if (display == "yes"): print(file.read()) file.close()...
26.366667
122
0.689001
2e69e33a61b81c558f9fa525e6c07b5e5e1425ef
574
py
Python
prototypes/test-examples/pytest/test_parameterize_bootstrap.py
mikej888/recipy-test
6db030fb4013baf57ec7fb78c287f9f0fbbc28a0
[ "Apache-2.0" ]
null
null
null
prototypes/test-examples/pytest/test_parameterize_bootstrap.py
mikej888/recipy-test
6db030fb4013baf57ec7fb78c287f9f0fbbc28a0
[ "Apache-2.0" ]
null
null
null
prototypes/test-examples/pytest/test_parameterize_bootstrap.py
mikej888/recipy-test
6db030fb4013baf57ec7fb78c287f9f0fbbc28a0
[ "Apache-2.0" ]
2
2016-08-17T12:17:56.000Z
2021-12-17T09:58:22.000Z
import os import pytest config_file = os.environ["RECIPY_TEST_CASES_CONFIG"]
22.96
64
0.675958
2e6a1028d97ccf09e8a08b43ffd57fa04c969dd7
11,300
py
Python
doctor_jsonschema_md.py
rdpickard/doctor_jsonschema_md
e710ed89e877aba9e72abb9867bceaad6dddd87f
[ "BSD-3-Clause" ]
6
2016-01-12T18:31:12.000Z
2021-09-29T12:32:14.000Z
doctor_jsonschema_md.py
rdpickard/doctor_jsonschema_md
e710ed89e877aba9e72abb9867bceaad6dddd87f
[ "BSD-3-Clause" ]
null
null
null
doctor_jsonschema_md.py
rdpickard/doctor_jsonschema_md
e710ed89e877aba9e72abb9867bceaad6dddd87f
[ "BSD-3-Clause" ]
null
null
null
import json import os import logging import time import argparse def _mds(s, iscode=False): """ Convert a string to a 'markdown' string by escaping control and syntax highlighting characters :param s: The string to escape :param iscode: The string appears in a (tick)(tick)code(tick)(tick) block :...
39.649123
120
0.57354
2e6be68982743659ab296ee956c4b625aa851141
1,510
py
Python
src/restfx/middleware/middlewares/timetick.py
mgbin088/restfx
86a499a9a4396829e2c40428feb8b2ee13406d52
[ "MIT", "BSD-3-Clause" ]
1
2021-01-28T00:54:10.000Z
2021-01-28T00:54:10.000Z
src/restfx/middleware/middlewares/timetick.py
mgbin088/restfx
86a499a9a4396829e2c40428feb8b2ee13406d52
[ "MIT", "BSD-3-Clause" ]
null
null
null
src/restfx/middleware/middlewares/timetick.py
mgbin088/restfx
86a499a9a4396829e2c40428feb8b2ee13406d52
[ "MIT", "BSD-3-Clause" ]
null
null
null
import time from restfx import __meta__ from restfx.middleware import MiddlewareBase
36.829268
96
0.635099
2e6c9f854f514e9716b7ba0dd3593165017fce65
280
py
Python
paper_submission/debug/chrom_expression_by_tissue.py
jfear/larval_gonad
624a71741864b74e0372f89bdcca578e5cca3722
[ "MIT" ]
1
2019-09-13T13:24:18.000Z
2019-09-13T13:24:18.000Z
paper_submission/debug/chrom_expression_by_tissue.py
jfear/larval_gonad
624a71741864b74e0372f89bdcca578e5cca3722
[ "MIT" ]
65
2019-07-24T16:23:08.000Z
2020-03-06T22:18:47.000Z
paper_submission/debug/chrom_expression_by_tissue.py
jfear/larval_gonad
624a71741864b74e0372f89bdcca578e5cca3722
[ "MIT" ]
1
2021-06-02T19:09:35.000Z
2021-06-02T19:09:35.000Z
import builtins from larval_gonad.mock import MockSnake from larval_gonad.config import read_config builtins.snakemake = MockSnake( input="../../output/paper_submission/fig1_data_avg_tpm_per_chrom.feather", params=dict(colors=read_config("../../config/colors.yaml")), )
28
78
0.778571
2e6d7739391f9addcaf872a0c8d671e96ce03343
566
py
Python
theonionbox/tob/server.py
rainlance/theonionbox
6a4f81ef37bef52065a5b8fe1291e0e1e1b06265
[ "MIT" ]
5
2019-06-04T19:20:14.000Z
2021-10-15T18:04:17.000Z
theonionbox/tob/server.py
rainlance/theonionbox
6a4f81ef37bef52065a5b8fe1291e0e1e1b06265
[ "MIT" ]
null
null
null
theonionbox/tob/server.py
rainlance/theonionbox
6a4f81ef37bef52065a5b8fe1291e0e1e1b06265
[ "MIT" ]
1
2019-12-09T14:46:07.000Z
2019-12-09T14:46:07.000Z
from wsgiserver import WSGIServer import sys
31.444444
90
0.591873