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
74d545645521efaf64601d79b9a3ec56f365eb34
922
py
Python
cutterdrcov_plugin/extras.py
Semnodime/CutterDRcov
7e2efd041662128aaba54dfa6230bedfca36e6fd
[ "MIT" ]
52
2019-03-24T20:33:46.000Z
2021-11-22T00:21:08.000Z
cutterdrcov_plugin/extras.py
Semnodime/CutterDRcov
7e2efd041662128aaba54dfa6230bedfca36e6fd
[ "MIT" ]
8
2019-03-24T13:38:08.000Z
2021-12-13T21:19:59.000Z
cutterdrcov_plugin/extras.py
Semnodime/CutterDRcov
7e2efd041662128aaba54dfa6230bedfca36e6fd
[ "MIT" ]
10
2019-03-24T14:07:43.000Z
2021-12-07T08:24:30.000Z
import ntpath # https://stackoverflow.com/questions/8384737/extract-file-name-from-path-no-matter-what-the-os-path-format # cuz windows sucks :( .. hard
46.1
107
0.715835
74d59e48d760c2bdd824f63462307dcc9124fac9
131
py
Python
tfidf_matcher/__init__.py
stungkit/tfidf_matcher
24182504d21f1eb978839b700f1c402c6288df2f
[ "MIT" ]
13
2020-02-24T18:29:15.000Z
2021-12-28T09:41:35.000Z
tfidf_matcher/__init__.py
stungkit/tfidf_matcher
24182504d21f1eb978839b700f1c402c6288df2f
[ "MIT" ]
null
null
null
tfidf_matcher/__init__.py
stungkit/tfidf_matcher
24182504d21f1eb978839b700f1c402c6288df2f
[ "MIT" ]
3
2020-07-21T04:32:45.000Z
2021-10-21T11:00:56.000Z
# AUTHOR: Louis Tsiattalou # DESCRIPTION: Init for tfidf_matcher package. from .ngrams import ngrams from .matcher import matcher
21.833333
46
0.801527
74d5aa0d303e7bb713fa63255c91d0a79ff9c4cc
17,910
py
Python
era5dataset/FrontDataset.py
stnie/FrontDetection
742ebf9619dcde40d42891073739945a05631ea3
[ "MIT" ]
null
null
null
era5dataset/FrontDataset.py
stnie/FrontDetection
742ebf9619dcde40d42891073739945a05631ea3
[ "MIT" ]
null
null
null
era5dataset/FrontDataset.py
stnie/FrontDetection
742ebf9619dcde40d42891073739945a05631ea3
[ "MIT" ]
1
2022-01-17T04:58:10.000Z
2022-01-17T04:58:10.000Z
from typing import final import numpy as np import torch import os import time from datetime import datetime import random import numbers from torch.utils.data import Dataset from .ERA5Reader.readNetCDF import LatTokmPerLon from .EraExtractors import DefaultEraExtractor # Dataset Class
46.884817
365
0.599107
74d7b0958d8d2379fabfb2fe33a6017490b1f91e
2,865
py
Python
packages/mccomponents/tests/mccomponents/sample/kernel-orientation/kernelorientation_TestCase.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
5
2017-01-16T03:59:47.000Z
2020-06-23T02:54:19.000Z
packages/mccomponents/tests/mccomponents/sample/kernel-orientation/kernelorientation_TestCase.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
293
2015-10-29T17:45:52.000Z
2022-01-07T16:31:09.000Z
packages/mccomponents/tests/mccomponents/sample/kernel-orientation/kernelorientation_TestCase.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
1
2019-05-25T00:53:31.000Z
2019-05-25T00:53:31.000Z
#!/usr/bin/env python # # Jiao Lin <jiao.lin@gmail.com """ This test check the "orientation" parameter of kernels. * Sub-kernels in a "KernelContainer" have the parameter "orientation" to specify its orientation relative to its parent kernel. * The root level KernelContainer always has the same coordinate system ...
27.285714
76
0.610471
74d7f5258c12f0959a81cebaa0a5b91827535d65
27,239
py
Python
python-modules/robcoewminterface/robcoewminterface/ewm.py
yschiebelhut/ewm-cloud-robotics
bdf3a6c13850d266b70168912494300c32d4d803
[ "Apache-2.0" ]
25
2019-07-31T12:50:33.000Z
2022-01-11T15:53:40.000Z
python-modules/robcoewminterface/robcoewminterface/ewm.py
yschiebelhut/ewm-cloud-robotics
bdf3a6c13850d266b70168912494300c32d4d803
[ "Apache-2.0" ]
10
2019-07-11T13:12:12.000Z
2022-03-15T15:46:58.000Z
python-modules/robcoewminterface/robcoewminterface/ewm.py
isabella232/ewm-cloud-robotics
8210843df323379ded92ec14ec73b1f3ef6b2f41
[ "Apache-2.0" ]
23
2019-08-07T21:23:38.000Z
2022-03-08T00:16:10.000Z
#!/usr/bin/env python3 # encoding: utf-8 # # Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. # # This file is part of ewm-cloud-robotics # (see https://github.com/SAP/ewm-cloud-robotics). # # This file is licensed under the Apache Software License, v. 2 except as noted # otherwise in the LIC...
33.921544
98
0.598003
74d9d4320921729eea09ee6fc647c058abfb15da
71
py
Python
pm4pymdl/util/parquet_importer/parameters.py
dorian1000/pm4py-mdl
71e0c2425abb183da293a58d31e25e50137c774f
[ "MIT" ]
5
2021-01-31T22:45:29.000Z
2022-02-22T14:26:06.000Z
pm4pymdl/util/parquet_importer/parameters.py
Javert899/pm4py-mdl
4cc875999100f3f1ad60b925a20e40cf52337757
[ "MIT" ]
3
2021-07-07T15:32:55.000Z
2021-07-07T16:15:36.000Z
pm4pymdl/util/parquet_importer/parameters.py
dorian1000/pm4py-mdl
71e0c2425abb183da293a58d31e25e50137c774f
[ "MIT" ]
9
2020-09-23T15:34:11.000Z
2022-03-17T09:15:40.000Z
from enum import Enum
14.2
23
0.71831
74dbc6e6353172f4c10b84fea774baef4a531397
95
py
Python
src/sementeira/iii_controllers/pesquisar_pessoa.py
torraodocerrado/sementeira
962d15bef63a73493b8cf29a22b656f19aa161ff
[ "Apache-2.0" ]
2
2021-02-25T23:52:40.000Z
2021-02-25T23:52:42.000Z
src/sementeira/iii_controllers/pesquisar_pessoa.py
torraodocerrado/sementeira
962d15bef63a73493b8cf29a22b656f19aa161ff
[ "Apache-2.0" ]
null
null
null
src/sementeira/iii_controllers/pesquisar_pessoa.py
torraodocerrado/sementeira
962d15bef63a73493b8cf29a22b656f19aa161ff
[ "Apache-2.0" ]
null
null
null
from .abstract_query import AbstractQuery
15.833333
41
0.778947
74dbf3662176f3c18f639a38531d9a01acbedb79
632
py
Python
time_struct.py
Kalpavrikshika/python_modules
9f338ab006dd5653fd7f65ff253bc50e0fd61fc6
[ "Apache-2.0" ]
1
2018-07-02T03:37:03.000Z
2018-07-02T03:37:03.000Z
time_struct.py
Kalpavrikshika/python_modules
9f338ab006dd5653fd7f65ff253bc50e0fd61fc6
[ "Apache-2.0" ]
null
null
null
time_struct.py
Kalpavrikshika/python_modules
9f338ab006dd5653fd7f65ff253bc50e0fd61fc6
[ "Apache-2.0" ]
null
null
null
#gmtime() returns the current time in UTC #localtime() returns the current time with the current time zone #struct_time converts to f.p representation import time print('gmtime:') show_struct(time.gmtime()) print('\nlocaltime') show_struct(time.localtime()) print('\nmktime:', time.mktime(time.localtime()))
30.095238
64
0.677215
74dd569b79e52382362c820740fae840ef4bfce6
4,121
py
Python
pyflowline/mesh/tin/create_tin_mesh.py
changliao1025/pyflowline
fb8677c5ebb3d0db8638f7fcc495ffb97376e00f
[ "Unlicense" ]
4
2022-03-23T12:10:20.000Z
2022-03-29T13:41:16.000Z
pyflowline/mesh/tin/create_tin_mesh.py
changliao1025/pyflowline
fb8677c5ebb3d0db8638f7fcc495ffb97376e00f
[ "Unlicense" ]
1
2022-03-24T16:08:35.000Z
2022-03-24T16:08:35.000Z
pyflowline/mesh/tin/create_tin_mesh.py
changliao1025/pyflowline
fb8677c5ebb3d0db8638f7fcc495ffb97376e00f
[ "Unlicense" ]
null
null
null
import os, sys import numpy as np from osgeo import ogr from pyflowline.classes.tin import pytin from pyflowline.formats.convert_coordinates import convert_pcs_coordinates_to_cell
29.435714
92
0.499151
74ddd9005216a50508d6244b7fa925e4745d61c6
1,046
py
Python
lecturePractice/coordinate.py
serook/mit_edx_i2_cs_python
34cb08c6f4c5fb0a951d91cbd782f24a76e2479c
[ "Apache-2.0" ]
1
2021-02-17T02:17:29.000Z
2021-02-17T02:17:29.000Z
lecturePractice/coordinate.py
serook/mit_edx_i2_cs_python
34cb08c6f4c5fb0a951d91cbd782f24a76e2479c
[ "Apache-2.0" ]
null
null
null
lecturePractice/coordinate.py
serook/mit_edx_i2_cs_python
34cb08c6f4c5fb0a951d91cbd782f24a76e2479c
[ "Apache-2.0" ]
1
2021-02-17T02:17:31.000Z
2021-02-17T02:17:31.000Z
c1 = Coordinate(3, 4) c2 = Coordinate(4, 3) print c1,c2 print c1==c2
24.325581
86
0.577438
74dfa0968b1a584e0d2faaacfbe4171a4e652fc1
1,415
py
Python
450.Delete-Node-in-a-BST.py
mickey0524/leetcode
6bedeb6ff29b02a97178cca464c5fd639951801f
[ "MIT" ]
18
2018-07-14T12:45:37.000Z
2022-03-26T14:51:04.000Z
450.Delete-Node-in-a-BST.py
mickey0524/leetcode
6bedeb6ff29b02a97178cca464c5fd639951801f
[ "MIT" ]
null
null
null
450.Delete-Node-in-a-BST.py
mickey0524/leetcode
6bedeb6ff29b02a97178cca464c5fd639951801f
[ "MIT" ]
3
2019-05-29T04:09:22.000Z
2021-06-07T23:37:46.000Z
# https://leetcode.com/problems/delete-node-in-a-bst/ # # algorithms # Medium (38.78%) # Total Accepted: 52,907 # Total Submissions: 136,417 # beats 93.27% of python submissions # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = ...
23.983051
53
0.504594
74e04283616bdcecdb6e7f34d9657947a999aff3
8,407
py
Python
tests/components/test_tasks.py
jbenden/pipeline
43c5196e466324007cf6e2e173d4610102d6a838
[ "MIT" ]
null
null
null
tests/components/test_tasks.py
jbenden/pipeline
43c5196e466324007cf6e2e173d4610102d6a838
[ "MIT" ]
null
null
null
tests/components/test_tasks.py
jbenden/pipeline
43c5196e466324007cf6e2e173d4610102d6a838
[ "MIT" ]
null
null
null
"""Testing of class Tasks.""" # pylint: disable=no-self-use, invalid-name import unittest from hamcrest import assert_that, equal_to from spline.components.tasks import Tasks, worker from spline.components.hooks import Hooks from spline.components.config import ApplicationOptions from spline.pipeline import PipelineDa...
43.559585
104
0.569406
74e0e926c6c1b0dd7463e03c1ecc0a04002c96d2
9,119
py
Python
src/utils/stalkMarketGraphs.py
amadea-system/StalkMarketBot
dc43e496e49361fe75ce9b94486981e134edc39e
[ "Apache-2.0" ]
null
null
null
src/utils/stalkMarketGraphs.py
amadea-system/StalkMarketBot
dc43e496e49361fe75ce9b94486981e134edc39e
[ "Apache-2.0" ]
null
null
null
src/utils/stalkMarketGraphs.py
amadea-system/StalkMarketBot
dc43e496e49361fe75ce9b94486981e134edc39e
[ "Apache-2.0" ]
null
null
null
""" Graphing code for Stalk Market Predictions Part of Stalk Market Bot. """ import logging from io import BytesIO from typing import TYPE_CHECKING, Optional, Dict, List, Union, Tuple, NamedTuple, Any import matplotlib.pyplot as plt from scipy.interpolate import Akima1DInterpolator, pchip_interpolate import numpy as...
33.40293
160
0.605768
74e246baa4ba88b3c44d649fb3735c42f268b166
2,719
py
Python
addr/parser.py
euske/osmtools
581da9129f489cb57763578127ead42fa43b5c1f
[ "MIT" ]
null
null
null
addr/parser.py
euske/osmtools
581da9129f489cb57763578127ead42fa43b5c1f
[ "MIT" ]
null
null
null
addr/parser.py
euske/osmtools
581da9129f489cb57763578127ead42fa43b5c1f
[ "MIT" ]
3
2015-12-27T22:13:40.000Z
2019-12-23T14:34:54.000Z
#!/usr/bin/env python import sys import xml.parsers.expat ## Parser ## # main def main(argv): import re import os.path import zipfile import csv pat = re.compile(r'P\d\d-\d\d_\d\d.xml') args = argv[1:] out = csv.writer(sys.stdout) for path in args: zf = zipfile.ZipFile(path)...
28.030928
70
0.515631
74e275ec0fee421cce4e54186df885cf8877867b
83
py
Python
graphene_django/forms/types.py
mebel-akvareli/graphene-django
23008ad22094f3e7b8fb26b73811ce49b20cca25
[ "MIT" ]
4,038
2016-09-18T01:45:22.000Z
2022-03-31T01:06:57.000Z
graphene_django/forms/types.py
mebel-akvareli/graphene-django
23008ad22094f3e7b8fb26b73811ce49b20cca25
[ "MIT" ]
1,104
2016-09-19T20:10:22.000Z
2022-03-30T17:37:46.000Z
graphene_django/forms/types.py
mebel-akvareli/graphene-django
23008ad22094f3e7b8fb26b73811ce49b20cca25
[ "MIT" ]
791
2016-09-18T13:48:11.000Z
2022-03-29T08:32:06.000Z
from ..types import ErrorType # noqa Import ErrorType for backwards compatability
41.5
82
0.819277
74e37ad87a05efcc33dc8d935bf247558d91a19e
434
py
Python
django_project/stocks/models.py
justinekang/Athena_Stocks
024826b7cf1bac78c570824b884a3310e5a8120e
[ "MIT" ]
1
2021-09-18T19:49:46.000Z
2021-09-18T19:49:46.000Z
django_project/stocks/models.py
webclinic017/Athena_Stocks
548a7ee40e41542b436753ff79f9a46c48312234
[ "MIT" ]
23
2021-07-06T22:27:47.000Z
2021-08-13T21:34:55.000Z
django_project/stocks/models.py
webclinic017/Athena_Stocks
548a7ee40e41542b436753ff79f9a46c48312234
[ "MIT" ]
11
2021-07-11T05:04:22.000Z
2021-09-18T19:49:43.000Z
from django.db import models from django.utils import timezone from django.contrib.auth.models import User # Create your models here. #inspired by https://docs.djangoproject.com/en/3.2/topics/db/models/
36.166667
68
0.774194
74e3c847b45abe7dd310f46f2b20094db76be087
9,934
py
Python
tests/test_functions.py
Qfabiolous/QuanGuru
285ca44ae857cc61337f73ea2eb600f485a09e32
[ "BSD-3-Clause" ]
9
2021-05-23T06:30:45.000Z
2021-12-27T13:33:54.000Z
tests/test_functions.py
cahitkargi/QuanGuru
9b5c94465cd58bc32f6ff845f29dfdec7e0f9075
[ "BSD-3-Clause" ]
26
2022-03-18T02:40:54.000Z
2022-03-25T07:00:25.000Z
tests/test_functions.py
cahitkargi/QuanGuru
9b5c94465cd58bc32f6ff845f29dfdec7e0f9075
[ "BSD-3-Clause" ]
5
2021-05-23T06:30:24.000Z
2022-02-04T02:40:08.000Z
import numpy as np import pytest from quanguru.QuantumToolbox import linearAlgebra as la #pylint: disable=import-error from quanguru.QuantumToolbox import operators as ops #pylint: disable=import-error from quanguru.QuantumToolbox import functions as fns #pylint: disable=import-error #testCase = collections.namedtuple(...
58.781065
118
0.649487
74e527a7d122c6ecc18ce4d006746f0a16e5cb57
702
py
Python
src/big_torch/models/shared.py
Denchidlo/big-torch
f5a65e6216e46e6d4fe98670c52618e4cccc8163
[ "MIT" ]
null
null
null
src/big_torch/models/shared.py
Denchidlo/big-torch
f5a65e6216e46e6d4fe98670c52618e4cccc8163
[ "MIT" ]
1
2021-11-21T13:11:31.000Z
2021-11-22T00:18:29.000Z
src/big_torch/models/shared.py
Denchidlo/big-torch
f5a65e6216e46e6d4fe98670c52618e4cccc8163
[ "MIT" ]
null
null
null
import multiprocessing as mp POOL = None
21.9375
79
0.656695
74e8211474a71b34bfa3a7500bf5a3ef7c8f9bf0
700
py
Python
2020/day09/two.py
geberl/advent-of-code
152ac94676830ac920bf06a1a3f1aa88377cd775
[ "MIT" ]
null
null
null
2020/day09/two.py
geberl/advent-of-code
152ac94676830ac920bf06a1a3f1aa88377cd775
[ "MIT" ]
null
null
null
2020/day09/two.py
geberl/advent-of-code
152ac94676830ac920bf06a1a3f1aa88377cd775
[ "MIT" ]
null
null
null
TARGET = 776203571 data = [] with open("input.txt") as file_handler: for n, line in enumerate(file_handler): data.append(int(line.strip())) for start_index in range(len(data)): match, end_index = contiguous_sum(start_index) if match: print("match %d - %d" % (start_index, end_index)) ...
24.137931
57
0.594286
74e8c675fdd045baa869a7b1fb7f3e6afa25b115
4,641
py
Python
week05/hw5p1.py
taoyichen/CS110-Assignments-Python
f2e4e485c820b835981e2e4b8bd0a26cc31cfe73
[ "MIT" ]
null
null
null
week05/hw5p1.py
taoyichen/CS110-Assignments-Python
f2e4e485c820b835981e2e4b8bd0a26cc31cfe73
[ "MIT" ]
null
null
null
week05/hw5p1.py
taoyichen/CS110-Assignments-Python
f2e4e485c820b835981e2e4b8bd0a26cc31cfe73
[ "MIT" ]
1
2020-06-06T08:21:18.000Z
2020-06-06T08:21:18.000Z
import package_test from package_test import hw5p2 #import package_test.hw5p2 #package_test.hw5p2.main() hw5p2.main() """ ''' TAO YICHEN ytao15@binghamton.edu Lab section: B56 CA name: Paul Maino Assignment #5 Part 1 Phone: 6079532749 ''' ''' RESTATEMENT: Display tax for single and married filers given set of incomes...
31.571429
78
0.716009
74e8fba391102d86316280011dd925cbf3994183
736
py
Python
lists.py
RocqJones/python-starter-reference
0fa4d4ed81aea8cbad1a3f19ff0bbae99ace01fd
[ "MIT" ]
null
null
null
lists.py
RocqJones/python-starter-reference
0fa4d4ed81aea8cbad1a3f19ff0bbae99ace01fd
[ "MIT" ]
null
null
null
lists.py
RocqJones/python-starter-reference
0fa4d4ed81aea8cbad1a3f19ff0bbae99ace01fd
[ "MIT" ]
1
2020-07-08T08:26:19.000Z
2020-07-08T08:26:19.000Z
# A List is a collection which is ordered and changeable. Allows duplicate members. # Create a list numbers = [1,2,3,4,5] fruits = ['Apples', 'Oranges', 'Grapes', 'Peas'] # use a constructor #numbers2 = list((5,6,7,8,9,10)) print(numbers) # Get a value print(fruits[2]) # Change a value fruits[0] = 'Blueberries' pri...
16
83
0.716033
74ebb2dd053188f1723fc6d317273465d1b9d65c
8,096
py
Python
visualization_and_test/evaluate_prototypes.py
jodaiber/semantic_compound_splitting
6b6b8aea9c320ef3b26dca4d8345fb9a08950a42
[ "Apache-2.0" ]
17
2015-10-14T09:44:38.000Z
2021-02-19T16:45:32.000Z
visualization_and_test/evaluate_prototypes.py
jodaiber/semantic_compound_splitting
6b6b8aea9c320ef3b26dca4d8345fb9a08950a42
[ "Apache-2.0" ]
null
null
null
visualization_and_test/evaluate_prototypes.py
jodaiber/semantic_compound_splitting
6b6b8aea9c320ef3b26dca4d8345fb9a08950a42
[ "Apache-2.0" ]
8
2015-09-07T16:29:37.000Z
2020-08-08T05:43:12.000Z
__author__ = 'rwechsler' import datetime import time import cPickle as pickle from annoy import AnnoyIndex import gensim import argparse import numpy as np import sys import random from scipy import spatial import multiprocessing as mp from collections import defaultdict import codecs if __name__ == "__main__": ...
37.137615
217
0.700099
74ede2de89dc2c3fd6b6dea5649ebb972c3b175a
2,722
py
Python
generated-libraries/python/netapp/disk/storage_ssd_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/disk/storage_ssd_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/disk/storage_ssd_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.netapp_object import NetAppObject
36.293333
104
0.653196
74f0d0e289d375ba55597c4169366e6d54f28cd5
1,544
py
Python
team_builder/accounts/models.py
taylorculver/Django_Team_Builder
62a9e6a37c435876206697f982f66089e2e82b35
[ "Unlicense" ]
null
null
null
team_builder/accounts/models.py
taylorculver/Django_Team_Builder
62a9e6a37c435876206697f982f66089e2e82b35
[ "Unlicense" ]
7
2018-08-08T18:42:36.000Z
2018-10-01T18:46:40.000Z
team_builder/accounts/models.py
taylorculver/Django_Team_Builder
62a9e6a37c435876206697f982f66089e2e82b35
[ "Unlicense" ]
null
null
null
from django.contrib.auth.models import User from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver
24.507937
98
0.687824
74f235f44770ebb4082a9f693309b40e2e0bc8f1
3,907
py
Python
PIDKiller.py
godoyp/PIDKiller
94ae8b77b5e5bca0552dee4ecaa1c1da16d3b39e
[ "MIT" ]
null
null
null
PIDKiller.py
godoyp/PIDKiller
94ae8b77b5e5bca0552dee4ecaa1c1da16d3b39e
[ "MIT" ]
null
null
null
PIDKiller.py
godoyp/PIDKiller
94ae8b77b5e5bca0552dee4ecaa1c1da16d3b39e
[ "MIT" ]
null
null
null
# Modulos import PySimpleGUI as Sg import wmi from smb.SMBConnection import SMBConnection from configparser import ConfigParser from time import sleep import sys from multiprocessing import Process, freeze_support # Variavel de controle do While (sair = 1 finaliza o programa) sair = 0 # Carrega o arquivo ...
33.681034
114
0.594574
74f2722b6fd0d9275b8a2fdd984c9a1ced8700d9
21,298
py
Python
eventdata/parameter_sources/randomevent.py
ywelsch/rally-eventdata-track
148fe2ffc90f192a1d3d68c614031e40ecc67eae
[ "Apache-2.0" ]
33
2017-02-22T17:59:46.000Z
2021-11-02T07:07:40.000Z
eventdata/parameter_sources/randomevent.py
ywelsch/rally-eventdata-track
148fe2ffc90f192a1d3d68c614031e40ecc67eae
[ "Apache-2.0" ]
68
2017-03-10T12:57:36.000Z
2021-07-14T14:26:03.000Z
eventdata/parameter_sources/randomevent.py
isabella232/rally-eventdata-track
d7f25419ba3ef554998d89caa3fdb5a2d2100d41
[ "Apache-2.0" ]
45
2017-02-22T18:03:58.000Z
2022-01-01T02:18:41.000Z
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
51.569007
196
0.621326
74f27c4a87e0d0092113e2de9c038d951d050bbb
12,791
py
Python
modules/zivid/_settings_converter.py
knzivid/zivid-python
5f05d5c17a6f649e89d58a69d0744c525e02b5eb
[ "BSD-3-Clause" ]
null
null
null
modules/zivid/_settings_converter.py
knzivid/zivid-python
5f05d5c17a6f649e89d58a69d0744c525e02b5eb
[ "BSD-3-Clause" ]
null
null
null
modules/zivid/_settings_converter.py
knzivid/zivid-python
5f05d5c17a6f649e89d58a69d0744c525e02b5eb
[ "BSD-3-Clause" ]
null
null
null
"""Auto generated, do not edit.""" import zivid import _zivid
33.572178
130
0.787272
74f423b852ccc3707d9d4c3d66b423e8f820b294
11,608
py
Python
scripts/tracking/main_tracking.py
MaaaasayaK/Self-Supervised-Small-Soccer-Player-Detection-Tracking
96d87367afdf4cca8aeca3f32c313e8632c70fe4
[ "MIT" ]
1
2021-08-17T18:22:12.000Z
2021-08-17T18:22:12.000Z
scripts/tracking/main_tracking.py
cballester/Self-Supervised-Small-Soccer-Player-Detection-Tracking
a5d2d0c31a992919a270bd0e02379844196271f0
[ "MIT" ]
null
null
null
scripts/tracking/main_tracking.py
cballester/Self-Supervised-Small-Soccer-Player-Detection-Tracking
a5d2d0c31a992919a270bd0e02379844196271f0
[ "MIT" ]
1
2021-08-19T14:21:52.000Z
2021-08-19T14:21:52.000Z
import sys import torchvision import os import torch from tracking_utils import light_track from natsort import natsorted, ns import numpy as np from argparse import ArgumentParser if __name__ == '__main__': parser = ArgumentParser() parser.add_argument('--data_name', type=str, default='issia') parser.add...
50.912281
139
0.67419
74f5824cf904c5800c6d4ef10dc07a58fe417b71
7,245
py
Python
src/analyse/ternary.py
timtroendle/money-land
fe3ed6e531cfe91156886d4fa685a14840749f36
[ "MIT" ]
null
null
null
src/analyse/ternary.py
timtroendle/money-land
fe3ed6e531cfe91156886d4fa685a14840749f36
[ "MIT" ]
null
null
null
src/analyse/ternary.py
timtroendle/money-land
fe3ed6e531cfe91156886d4fa685a14840749f36
[ "MIT" ]
null
null
null
from dataclasses import dataclass import ternary import numpy as np import pandas as pd import xarray as xr import matplotlib import matplotlib.pyplot as plt from matplotlib import gridspec import seaborn as sns TICK_FONT_SIZE = 9 RED = "#A01914" BLUE = "#4F6DB8" SEQUENTIAL_PALETTE = sns.light_palette(RED, as_cmap=T...
35.866337
117
0.642926
74f5eeb590efc75b4298bcbbba1e165b62b754b6
20,491
py
Python
cogs/game/minigames/black_box/game.py
FellowHashbrown/omega-psi-py
4ea33cdbef15ffaa537f2c9e382de508c58093fc
[ "MIT" ]
4
2018-12-23T08:49:40.000Z
2021-03-25T16:51:43.000Z
cogs/game/minigames/black_box/game.py
FellowHashbrown/omega-psi-py
4ea33cdbef15ffaa537f2c9e382de508c58093fc
[ "MIT" ]
23
2020-11-03T17:40:40.000Z
2022-02-01T17:12:59.000Z
cogs/game/minigames/black_box/game.py
FellowHashbrown/omega-psi-py
4ea33cdbef15ffaa537f2c9e382de508c58093fc
[ "MIT" ]
1
2019-07-11T23:40:13.000Z
2019-07-11T23:40:13.000Z
from discord import Embed from random import randint from cogs.errors import get_error_message from cogs.game.minigames.base_game.game import Game from cogs.game.minigames.black_box.variables import NUMBERS, SYMBOLS, LEFT, RIGHT, UP, DOWN, GUESS, DIRECT, FINALIZE, HIT, MISS from cogs.game.minigames.functions import wa...
43.229958
127
0.516373
74f9d1119f5a828ec576c313747eb837e48217fb
3,437
py
Python
rewrite_example.py
Giangblackk/hacksterio-smart-nids
283166e8880aaeb280520053b4dcd431d30b3ed3
[ "MIT" ]
null
null
null
rewrite_example.py
Giangblackk/hacksterio-smart-nids
283166e8880aaeb280520053b4dcd431d30b3ed3
[ "MIT" ]
null
null
null
rewrite_example.py
Giangblackk/hacksterio-smart-nids
283166e8880aaeb280520053b4dcd431d30b3ed3
[ "MIT" ]
null
null
null
# Steps for offline training: # 1. load benign pcap file # 2. extract features # 3. train feature mapper model and save model import numpy as np from kitsune.FeatureExtractor import FE from kitsune.KitNET import corClust as CC from kitsune.KitNET import dA as AE from scipy.stats import norm from matplotlib import pyplo...
26.037879
85
0.609252
74fb274c512334729a04267dec3df32bc39cd9ae
452
py
Python
position/urls.py
drowolath/position
2d27a56732d195003d35762931fd2484ac270501
[ "BSD-2-Clause" ]
null
null
null
position/urls.py
drowolath/position
2d27a56732d195003d35762931fd2484ac270501
[ "BSD-2-Clause" ]
null
null
null
position/urls.py
drowolath/position
2d27a56732d195003d35762931fd2484ac270501
[ "BSD-2-Clause" ]
null
null
null
import views from django.conf.urls import url urlpatterns = [ url( r'(?P<latitude>[\d.@+-]+)/(?P<longitude>[\d.@+-]+)', views.mapit, name='mapit'), url( r'(?P<name>[\alphanum]+)', views.trackers, name='named_liveposition'), url( r'(?P<imei>\d{15})', ...
19.652174
60
0.462389
74fb6a3fa3da896167c7fb6828069fd1cdde4840
249
py
Python
pure_func.py
TomHam2021/Python2a_week5
49678f4e57a5ccdfb9b8312e163ed45b61b8eba1
[ "MIT" ]
null
null
null
pure_func.py
TomHam2021/Python2a_week5
49678f4e57a5ccdfb9b8312e163ed45b61b8eba1
[ "MIT" ]
null
null
null
pure_func.py
TomHam2021/Python2a_week5
49678f4e57a5ccdfb9b8312e163ed45b61b8eba1
[ "MIT" ]
null
null
null
''' # funtional programming undviker for-loopar men mste inte inehlla rekursiva anrop def fib(n, a=0, b=1): return a if n < 1 else \ b if n < 2 else \ fib(n - 1, b, a + b) print(fib(100)) # Output: 354224848179261915075 '''
19.153846
83
0.610442
74fb9b012c42b23d4eedebb4c1b383a5c6b105c8
1,268
py
Python
Codewars/5kyu/buddyPairs.py
Ry4nW/python-wars
76e3fb24b7ae2abf35db592f1ad59cf8d5f9e508
[ "MIT" ]
1
2021-06-06T19:55:22.000Z
2021-06-06T19:55:22.000Z
Codewars/5kyu/buddyPairs.py
Ry4nW/python-wars
76e3fb24b7ae2abf35db592f1ad59cf8d5f9e508
[ "MIT" ]
1
2022-01-20T19:20:33.000Z
2022-01-20T23:51:46.000Z
Codewars/5kyu/buddyPairs.py
Ry4nW/python-wars
76e3fb24b7ae2abf35db592f1ad59cf8d5f9e508
[ "MIT" ]
null
null
null
# Attempt # Solution
19.507692
65
0.395899
74fbcda21347132ff292b55b6df302641ca59260
408
py
Python
uitestcore/custom_assertion.py
talawson05/ui-test-core
6578398d6cfad97cee552f676a027b8b37755a73
[ "MIT" ]
8
2019-09-16T14:31:38.000Z
2022-02-03T21:26:04.000Z
uitestcore/custom_assertion.py
talawson05/ui-test-core
6578398d6cfad97cee552f676a027b8b37755a73
[ "MIT" ]
12
2019-09-13T14:47:26.000Z
2022-01-10T11:24:52.000Z
uitestcore/custom_assertion.py
talawson05/ui-test-core
6578398d6cfad97cee552f676a027b8b37755a73
[ "MIT" ]
4
2019-09-16T14:49:53.000Z
2022-02-02T15:42:01.000Z
""" Create any custom assertion in here """ from hamcrest import assert_that, is_ def assert_no_failures(failure_description): """ Assert that the string passed is empty representing no failures - to be used in test steps :param failure_description: a string describing failures in a test step, or empty if...
31.384615
100
0.75
74fc030b30d76aec5a1c6845ceaf50cdeded83c1
297
py
Python
blog/app/__init__.py
kiza054/woodhall-scout-blog-mongodb
380f181cbe987eda46ed64a774d3188344f4de55
[ "MIT" ]
null
null
null
blog/app/__init__.py
kiza054/woodhall-scout-blog-mongodb
380f181cbe987eda46ed64a774d3188344f4de55
[ "MIT" ]
null
null
null
blog/app/__init__.py
kiza054/woodhall-scout-blog-mongodb
380f181cbe987eda46ed64a774d3188344f4de55
[ "MIT" ]
null
null
null
from flask import Flask from flask_admin import Admin from flask_login import LoginManager app = Flask(__name__) app.config.from_object('config') admin = Admin(app, name='microblog', template_mode='bootstrap3') lm = LoginManager() lm.init_app(app) lm.login_view = 'login' from app import views
21.214286
64
0.781145
74fd94e4feeda1bcbc1a8631162221222bc2c165
2,010
py
Python
bin/run_all_benchmarks.py
finiteautomata/finetune_vs_scratch
444c9f9f2e1086f833c674e5d819b7a16ff8345a
[ "MIT" ]
12
2021-11-19T18:40:17.000Z
2022-03-07T10:56:54.000Z
bin/run_all_benchmarks.py
finiteautomata/finetune_vs_scratch
444c9f9f2e1086f833c674e5d819b7a16ff8345a
[ "MIT" ]
2
2022-02-20T17:28:00.000Z
2022-03-06T21:34:21.000Z
bin/run_all_benchmarks.py
finiteautomata/finetune_vs_scratch
444c9f9f2e1086f833c674e5d819b7a16ff8345a
[ "MIT" ]
null
null
null
import os import re import fire import json import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) if __name__ == "__main__": fire.Fire(run_all)
34.655172
106
0.621891
74fdb498bb4874db8d8ec3451adbf242259fd94c
1,110
py
Python
Python/Backspace_String_Compare.py
treethree/LeetCode
4c6d6e1ee92d87424fe5b9f20b8eef8d34e74761
[ "Unlicense" ]
null
null
null
Python/Backspace_String_Compare.py
treethree/LeetCode
4c6d6e1ee92d87424fe5b9f20b8eef8d34e74761
[ "Unlicense" ]
null
null
null
Python/Backspace_String_Compare.py
treethree/LeetCode
4c6d6e1ee92d87424fe5b9f20b8eef8d34e74761
[ "Unlicense" ]
null
null
null
#Approach #1: Build String(Stack) #Time Complexity: O(M + N), where M, N are the lengths of S and T respectively. #Space Complexity: O(M + N). #Approach #2: Two Pointer #Time Complexity: O(M + N), where M, N are the lengths of S and T respectively. #Space Complexity: O(1).
32.647059
79
0.43964
74fe0f956d636c3650d5cdff79ce6ca98d344de7
7,008
py
Python
hyperion/pdfs/jfa/jfa_total.py
hyperion-ml/hyperion
c4c9eee0acab1ba572843373245da12d00dfffaa
[ "Apache-2.0" ]
14
2021-12-19T04:24:15.000Z
2022-03-18T03:24:04.000Z
hyperion/pdfs/jfa/jfa_total.py
hyperion-ml/hyperion
c4c9eee0acab1ba572843373245da12d00dfffaa
[ "Apache-2.0" ]
null
null
null
hyperion/pdfs/jfa/jfa_total.py
hyperion-ml/hyperion
c4c9eee0acab1ba572843373245da12d00dfffaa
[ "Apache-2.0" ]
5
2021-12-14T20:41:27.000Z
2022-02-24T14:18:11.000Z
""" Copyright 2018 Johns Hopkins University (Author: Jesus Villalba) Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """ import numpy as np from scipy import linalg as sla from ...hyp_defs import float_cpu from ...utils.math import ( invert_pdmat, invert_trimat, logdet_pdmat, vec2symmat, ...
27.057915
88
0.516124
74fee5c75b2916c60cd68cc9f257e9cc4d35e86d
19,063
py
Python
dockercask.py
dockercask/dockercask
75103d683f12c2428783d6c729164f0727157e51
[ "MIT" ]
13
2016-01-11T05:39:34.000Z
2020-02-26T03:50:17.000Z
dockercask.py
dockercask/dockercask
75103d683f12c2428783d6c729164f0727157e51
[ "MIT" ]
null
null
null
dockercask.py
dockercask/dockercask
75103d683f12c2428783d6c729164f0727157e51
[ "MIT" ]
2
2017-04-21T18:44:02.000Z
2018-04-15T23:38:25.000Z
import os import shutil import subprocess import sys import random import threading import json import time import traceback import signal BASE_IMAGE = 'archlinux' USER_HOME_DIR = '~' HOME_DIR = '~/Docker' APP_DIR = '~/.local/share/applications' PULSE_COOKIE_PATH = '~/.config/pulse/cookie' LOCALTIME_PATH = '/etc/local...
27.116643
79
0.544458
74ff1cb180abc2244375933d5f39c89666c57b20
314
py
Python
Fun Excercise/decorator3.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
32
2020-04-05T08:29:40.000Z
2022-01-08T03:10:00.000Z
Fun Excercise/decorator3.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
3
2021-06-02T04:09:11.000Z
2022-03-02T14:55:03.000Z
Fun Excercise/decorator3.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
3
2020-07-13T05:44:04.000Z
2021-03-03T07:07:58.000Z
say_hi_func = say_hello("Hello") # Print Hello and returns say_hi function which gets stored in say_hi_func variable say_hi_func("Hi") # Call say_hi function and print "Hello Hi"
26.166667
117
0.710191
2d0005654c5252f8fe1a1bf0048e42c68ed61045
16,082
py
Python
ski_conditions/apps/app_scraping/management/commands/do_scraping.py
JKProjects-Org/ski-conditions
e7f9350bb3c290853f49f65e30d495ee0aa3b737
[ "MIT" ]
2
2019-11-03T16:37:33.000Z
2020-01-08T19:05:20.000Z
ski_conditions/apps/app_scraping/management/commands/do_scraping.py
JKProjects-Org/ski-conditions
e7f9350bb3c290853f49f65e30d495ee0aa3b737
[ "MIT" ]
8
2019-11-04T02:49:30.000Z
2022-02-10T12:22:15.000Z
ski_conditions/apps/app_scraping/management/commands/do_scraping.py
JKProjects-Org/ski-conditions
e7f9350bb3c290853f49f65e30d495ee0aa3b737
[ "MIT" ]
null
null
null
import json import re import requests from bs4 import BeautifulSoup from django.core.management.base import BaseCommand from ski_conditions.apps.app_scraping.models import SkiResort
37.751174
109
0.628778
2d00069adda8a7efef667916f453029310a82aea
515
py
Python
CodeChef/Python/arrange.py
dfm066/Programming
53d28460cd40b966cca1d4695d9dc6792ced4c6f
[ "MIT" ]
null
null
null
CodeChef/Python/arrange.py
dfm066/Programming
53d28460cd40b966cca1d4695d9dc6792ced4c6f
[ "MIT" ]
null
null
null
CodeChef/Python/arrange.py
dfm066/Programming
53d28460cd40b966cca1d4695d9dc6792ced4c6f
[ "MIT" ]
null
null
null
facts = [1] fact = 1 for i in range(1,100001): fact *= i fact %= 1000000007 facts.append(fact) T = int(input()) letters = [] for i in range(0,26): letters.append(0) while T > 0: T -= 1 s = input() cnt = 0 ans = 1 for i in s: letters[ord(i)-97] += 1 for ...
19.074074
36
0.464078
2d00f7d06ce5d59e251acaa9db5fafba0b34215b
356
py
Python
prettyqt/paths.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
7
2019-05-01T01:34:36.000Z
2022-03-08T02:24:14.000Z
prettyqt/paths.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
141
2019-04-16T11:22:01.000Z
2021-04-14T15:12:36.000Z
prettyqt/paths.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
5
2019-04-17T11:48:19.000Z
2021-11-21T10:30:19.000Z
from importlib import resources import pathlib ROOT_PATH = pathlib.Path(resources.files("prettyqt")) # type: ignore LOCALIZATION_PATH = ROOT_PATH / "localization" THEMES_PATH = ROOT_PATH / "themes" RE_LEXER_PATH = ( ROOT_PATH / "syntaxhighlighters" / "pygments" / "regularexpressionlexer.py" ) ICON_FONT_PATH = R...
27.384615
79
0.755618
2d0218e45fe129209799296000566bde73d084af
4,380
py
Python
poptimizer/shared/app.py
poliyev/poptimizer
71935c4365b0572e65b6d3172f925701dda283db
[ "Unlicense" ]
null
null
null
poptimizer/shared/app.py
poliyev/poptimizer
71935c4365b0572e65b6d3172f925701dda283db
[ "Unlicense" ]
null
null
null
poptimizer/shared/app.py
poliyev/poptimizer
71935c4365b0572e65b6d3172f925701dda283db
[ "Unlicense" ]
1
2021-12-02T13:32:44.000Z
2021-12-02T13:32:44.000Z
"""Unit of Work and EventBus.""" import asyncio import contextlib from types import TracebackType from typing import Callable, Generic, Optional, TypeVar from poptimizer import config from poptimizer.shared import adapters, domain EntityType = TypeVar("EntityType", bound=domain.BaseEntity) FutureEvent = asyncio.Fu...
32.686567
99
0.663242
2d04272c0dbb7d2f3b68496a3df2f8724ac5e827
1,372
py
Python
osh/builtin_misc_test.py
Schweinepriester/oil
8b0e5c58a825223341896064d63a95c8b57a9c05
[ "Apache-2.0" ]
2,209
2016-11-20T10:32:58.000Z
2022-03-31T20:51:27.000Z
osh/builtin_misc_test.py
Schweinepriester/oil
8b0e5c58a825223341896064d63a95c8b57a9c05
[ "Apache-2.0" ]
1,074
2016-12-07T05:02:48.000Z
2022-03-22T02:09:11.000Z
osh/builtin_misc_test.py
Schweinepriester/oil
8b0e5c58a825223341896064d63a95c8b57a9c05
[ "Apache-2.0" ]
147
2016-12-11T04:13:28.000Z
2022-03-27T14:50:00.000Z
#!/usr/bin/env python2 """ builtin_misc_test.py: Tests for builtin_misc.py """ from __future__ import print_function import unittest from core import pyutil from frontend import flag_def # side effect: flags are defined! _ = flag_def from osh import split from osh import builtin_misc # module under test if __name...
28
77
0.648688
2d060e9092d4d4c7bf4bc0ec5921fae018518af1
3,670
py
Python
src/python/dart/service/message.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
18
2016-03-03T19:10:21.000Z
2021-07-14T22:37:35.000Z
src/python/dart/service/message.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
62
2016-04-11T15:17:23.000Z
2017-09-08T17:18:53.000Z
src/python/dart/service/message.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
15
2016-03-03T15:38:34.000Z
2019-03-27T19:33:08.000Z
import os import boto3 from boto.regioninfo import RegionInfo from sqlalchemy import text from dart.model.orm import MessageDao from dart.context.database import db from dart.service.patcher import patch_difference
39.462366
109
0.672207
2d06a010a220a8f3363a231e8addbcd8ff9894e9
770
py
Python
setPixmap.py
EvaGalois/LinsImgPro
daed9bffcf5bea6bf41f36d21f773be18374f7bc
[ "MIT" ]
1
2020-05-19T08:58:58.000Z
2020-05-19T08:58:58.000Z
setPixmap.py
EvaGalois/LinsImgPro
daed9bffcf5bea6bf41f36d21f773be18374f7bc
[ "MIT" ]
null
null
null
setPixmap.py
EvaGalois/LinsImgPro
daed9bffcf5bea6bf41f36d21f773be18374f7bc
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import QApplication, QWidget, QHBoxLayout, QLabel from PyQt5.QtGui import QPixmap if __name__ == '__main__': app = QApplication(sys.argv) ex = Example() sys.exit(app.exec_())
24.83871
74
0.618182
2d075408ad95df9320ec62cc02811a6bf1787742
3,292
py
Python
tests/test_exporter.py
coderanger/celery-local-exporter
3db869b7e0ec09309834b8835c619edbe8898504
[ "Apache-2.0" ]
3
2020-06-30T22:26:18.000Z
2021-09-27T23:52:11.000Z
tests/test_exporter.py
coderanger/celery-local-exporter
3db869b7e0ec09309834b8835c619edbe8898504
[ "Apache-2.0" ]
null
null
null
tests/test_exporter.py
coderanger/celery-local-exporter
3db869b7e0ec09309834b8835c619edbe8898504
[ "Apache-2.0" ]
null
null
null
import os import os.path import subprocess import sys import time import pytest import requests def test_starting(launch_worker): w = launch_worker() assert w.poll() is None r = requests.get("http://localhost:9000/") assert "celery_task_execution_time" in r.text def test_run_task_add(launch_worke...
23.683453
80
0.559235
2d07733d95d25265a8538f87085014c15240fde9
5,787
py
Python
third_party/ros_aarch64/lib/python2.7/dist-packages/novatel_msgs/msg/_Ack.py
silverland79/apollo1.0
6e725e8dd5013b769efa18f43e5ae675f4847fbd
[ "Apache-2.0" ]
2
2018-01-29T03:10:39.000Z
2020-12-08T09:08:41.000Z
third_party/ros_aarch64/lib/python2.7/dist-packages/novatel_msgs/msg/_Ack.py
silverland79/apollo1.0
6e725e8dd5013b769efa18f43e5ae675f4847fbd
[ "Apache-2.0" ]
null
null
null
third_party/ros_aarch64/lib/python2.7/dist-packages/novatel_msgs/msg/_Ack.py
silverland79/apollo1.0
6e725e8dd5013b769efa18f43e5ae675f4847fbd
[ "Apache-2.0" ]
3
2018-01-29T12:22:56.000Z
2020-12-08T09:08:46.000Z
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from novatel_msgs/Ack.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct _struct_I = genpy.struct_I _struct_32B = struct.Struct("<32B") _struct_32s = struct.Struct("<32s") _...
34.041176
145
0.693624
2d079a19d871b67d7ba2ce209923cccc01b9ff8d
242
py
Python
ecart/serializer.py
micael-grilo/E-Cart
76e86b4c7ea5bd2becda23ef8c69470c86630c5e
[ "MIT" ]
5
2016-09-20T21:33:29.000Z
2018-10-10T06:07:45.000Z
ecart/serializer.py
micael-grilo/E-Cart
76e86b4c7ea5bd2becda23ef8c69470c86630c5e
[ "MIT" ]
1
2016-05-03T07:54:54.000Z
2016-05-03T13:16:48.000Z
ecart/serializer.py
micael-grilo/E-Cart
76e86b4c7ea5bd2becda23ef8c69470c86630c5e
[ "MIT" ]
3
2016-09-18T14:54:49.000Z
2020-01-08T18:19:51.000Z
import json
16.133333
38
0.665289
2d092a4e4e1af0db3f5776c271d8aede971fce4f
17,330
py
Python
tests/webservice/test_client.py
3D-e-Chem/python-modified-tanimoto
618cc4ae3cb55d9cba2cc297e9c05212353b218e
[ "Apache-2.0" ]
8
2017-05-25T19:40:37.000Z
2021-06-12T06:59:26.000Z
tests/webservice/test_client.py
3D-e-Chem/kripodb
618cc4ae3cb55d9cba2cc297e9c05212353b218e
[ "Apache-2.0" ]
44
2016-02-05T14:02:57.000Z
2019-07-29T07:58:20.000Z
tests/webservice/test_client.py
3D-e-Chem/python-modified-tanimoto
618cc4ae3cb55d9cba2cc297e9c05212353b218e
[ "Apache-2.0" ]
1
2016-05-05T08:47:49.000Z
2016-05-05T08:47:49.000Z
# Copyright 2016 Netherlands eScience Center # # 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 t...
97.359551
3,145
0.540969
2d0a2f1569fadbc34d20318046924ba2aa98f716
2,906
py
Python
examples/Structural/main.py
HerminioTH/GeoFlow1D
44a5c11e3297827b265c1ea44bb18256b074fa66
[ "MIT" ]
2
2020-02-10T11:23:16.000Z
2020-07-01T20:28:57.000Z
examples/Structural/main.py
HerminioTH/GeoFlow1D
44a5c11e3297827b265c1ea44bb18256b074fa66
[ "MIT" ]
null
null
null
examples/Structural/main.py
HerminioTH/GeoFlow1D
44a5c11e3297827b265c1ea44bb18256b074fa66
[ "MIT" ]
null
null
null
import geoflow1D from geoflow1D.GridModule import * from geoflow1D.FieldsModule import * from geoflow1D.LinearSystemModule import * from geoflow1D.GeoModule import * from geoflow1D.SolverModule import * import numpy as np from matplotlib import pyplot as plt # -------------- PROBLEM ILLUSTRATION ----------------- # ...
29.653061
56
0.456986
2d0e5939c50882dfd177fbde933852e0ecf02d4f
1,024
py
Python
torch2trt/converters/matmul.py
grimoire/torch2trt
bf65d573f69879442d542e16c6280de4a1354d72
[ "MIT" ]
null
null
null
torch2trt/converters/matmul.py
grimoire/torch2trt
bf65d573f69879442d542e16c6280de4a1354d72
[ "MIT" ]
null
null
null
torch2trt/converters/matmul.py
grimoire/torch2trt
bf65d573f69879442d542e16c6280de4a1354d72
[ "MIT" ]
null
null
null
from torch2trt.torch2trt import * from torch2trt.module_test import add_module_test import tensorrt as trt
32
83
0.6875
2d0f65ea12ba88c4f09486a14c66b101fd4846c7
148
py
Python
src/020-factorial-digit-sum/python/solver.py
xfbs/ProjectEulerRust
e26768c56ff87b029cb2a02f56dc5cd32e1f7c87
[ "MIT" ]
1
2018-01-26T21:18:12.000Z
2018-01-26T21:18:12.000Z
src/020-factorial-digit-sum/python/solver.py
xfbs/ProjectEulerRust
e26768c56ff87b029cb2a02f56dc5cd32e1f7c87
[ "MIT" ]
3
2017-12-09T14:49:30.000Z
2017-12-09T14:59:39.000Z
src/020-factorial-digit-sum/python/solver.py
xfbs/ProjectEulerRust
e26768c56ff87b029cb2a02f56dc5cd32e1f7c87
[ "MIT" ]
null
null
null
import math
12.333333
25
0.547297
2d1184aa5ea419982c4d302f3708a26aca0b8cd0
1,454
py
Python
ngpy/vector2d.py
liuyxpp/ngpy
24f4c07e336d255302618ea113ba2e02f60e01b4
[ "BSD-3-Clause" ]
1
2021-09-06T10:19:55.000Z
2021-09-06T10:19:55.000Z
ngpy/vector2d.py
liuyxpp/ngpy
24f4c07e336d255302618ea113ba2e02f60e01b4
[ "BSD-3-Clause" ]
null
null
null
ngpy/vector2d.py
liuyxpp/ngpy
24f4c07e336d255302618ea113ba2e02f60e01b4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import math """ 2D math vector Since 2011.8.19 AUTHOUR: Yi-Xin Liu <liuyxpp@gmail.com> Fudan University REVISION: 2011.8.22 """ from persistent import Persistent if __name__=='__main__': test()
23.836066
85
0.570151
2d11b724ff940a49feced129c545ac4d65ca924d
24
py
Python
pyranges/version.py
biocore-ntnu/pyranges
5dd7cda7e42051c4b4a75eb6f8650464fb416f7a
[ "MIT" ]
299
2019-03-22T18:28:01.000Z
2022-03-11T16:14:19.000Z
pyranges/version.py
biocore-ntnu/pyranges
5dd7cda7e42051c4b4a75eb6f8650464fb416f7a
[ "MIT" ]
157
2019-04-06T18:05:27.000Z
2022-03-07T14:50:10.000Z
pyranges/version.py
biocore-ntnu/pyranges
5dd7cda7e42051c4b4a75eb6f8650464fb416f7a
[ "MIT" ]
33
2019-04-12T14:44:53.000Z
2022-03-16T16:58:06.000Z
__version__ = "0.0.111"
12
23
0.666667
2d1213c410c2a6b8aac4888a4f6bc94463fa2640
4,538
py
Python
HayStack_Client/IOTA_Module.py
ConsensusGroup/Haystack
c2d0b8fb7b2064b05a5d256bb949dda9a0ef569d
[ "MIT" ]
1
2019-11-28T08:50:26.000Z
2019-11-28T08:50:26.000Z
HayStack_Client/IOTA_Module.py
ConsensusGroup/Haystack
c2d0b8fb7b2064b05a5d256bb949dda9a0ef569d
[ "MIT" ]
3
2019-11-22T04:23:47.000Z
2019-11-30T07:11:24.000Z
HayStack_Client/IOTA_Module.py
ConsensusGroup/Haystack
c2d0b8fb7b2064b05a5d256bb949dda9a0ef569d
[ "MIT" ]
3
2018-03-19T05:20:44.000Z
2019-11-22T00:56:31.000Z
#################################################################################### ############# The purpose of the module is to handle IOTA interactions ############# #################################################################################### #IOTA library from iota import TryteString, Address, ProposedBun...
33.865672
124
0.666373
2d15578f96b8143429650898e1882b35ef941ed3
2,412
py
Python
demo.py
TiagoFilipeSousaGoncalves/code2model-codesprinters
9f38a994a3a1036916ea82f9523baa8a5eed8226
[ "MIT" ]
null
null
null
demo.py
TiagoFilipeSousaGoncalves/code2model-codesprinters
9f38a994a3a1036916ea82f9523baa8a5eed8226
[ "MIT" ]
null
null
null
demo.py
TiagoFilipeSousaGoncalves/code2model-codesprinters
9f38a994a3a1036916ea82f9523baa8a5eed8226
[ "MIT" ]
null
null
null
# Imports import streamlit as st import pandas as pd import difflib # Load results .CSV code_simil_results = pd.read_csv('results/resultados.csv') prog_lang_results = pd.read_csv('results/resultados_language.csv') # Create a select box to choose the demo add_selectbox = st.sidebar.selectbox( "W...
28.714286
98
0.620232
2d1815bfd6d647756ab866fe6efa2fc1a8f472f8
15,759
py
Python
fn_portal/filters/FishAttr_filters.py
AdamCottrill/FishNetPortal
4e58e05f52346ac1ab46698a03d4229c74828406
[ "MIT" ]
null
null
null
fn_portal/filters/FishAttr_filters.py
AdamCottrill/FishNetPortal
4e58e05f52346ac1ab46698a03d4229c74828406
[ "MIT" ]
null
null
null
fn_portal/filters/FishAttr_filters.py
AdamCottrill/FishNetPortal
4e58e05f52346ac1ab46698a03d4229c74828406
[ "MIT" ]
null
null
null
import django_filters from .common_filters import NumberInFilter, ValueInFilter, GeomFilter, GeoFilterSet
37.255319
88
0.724475
2d18e8169c2fc367046cbb04843a2cec05fd504a
7,162
py
Python
pcrond/sched.py
luca-vercelli/pcrond
ac5e9b987ae175521144bcf634fcd8316b4b334d
[ "MIT" ]
null
null
null
pcrond/sched.py
luca-vercelli/pcrond
ac5e9b987ae175521144bcf634fcd8316b4b334d
[ "MIT" ]
null
null
null
pcrond/sched.py
luca-vercelli/pcrond
ac5e9b987ae175521144bcf634fcd8316b4b334d
[ "MIT" ]
null
null
null
# most of the code here comes from https://github.com/dbader/schedule from .job import Job, ALIASES import logging import time logger = logging.getLogger('pcrond') def std_launch_func(cmd_splitted, stdin=None): """ Default way of executing commands is to invoke subprocess.run() """ if stdin is None:...
37.302083
103
0.562692
2d1939ff6d648f3379f25ae86317a8339f7cfcc1
469
py
Python
simu/UserAgent.py
TheodoreKrypton/simu-data-catcher
2625f6d4e33859cf0a7e0df4d190e3219e759228
[ "MIT" ]
3
2017-09-11T03:13:06.000Z
2020-08-11T15:15:09.000Z
simu/UserAgent.py
TheodoreKrypton/simu-data-catcher
2625f6d4e33859cf0a7e0df4d190e3219e759228
[ "MIT" ]
null
null
null
simu/UserAgent.py
TheodoreKrypton/simu-data-catcher
2625f6d4e33859cf0a7e0df4d190e3219e759228
[ "MIT" ]
6
2017-06-08T13:19:50.000Z
2021-04-20T15:11:28.000Z
import urllib import re ptrn = re.compile("<textarea name='uas' id='uas_textfeld' rows='4' cols='30'>(.+?)</textarea>") with open("user_agent.txt", "w") as fp: for i in range(12381, 15480): try: url = "http://www.useragentstring.com/index.php?id=" + str(i) html = urllib.urlopen(ur...
29.3125
95
0.567164
2d1ab381951528b1b2a476a21ada75863d82ce29
2,436
py
Python
Bot.py
Grohiik/BotMauData2020
7b7eecca1b5fdc73a0e9b3593cea62b2fb1333f8
[ "MIT" ]
null
null
null
Bot.py
Grohiik/BotMauData2020
7b7eecca1b5fdc73a0e9b3593cea62b2fb1333f8
[ "MIT" ]
null
null
null
Bot.py
Grohiik/BotMauData2020
7b7eecca1b5fdc73a0e9b3593cea62b2fb1333f8
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from secrets import Token as Token bot = commands.Bot(command_prefix="!") role_add_channel_id = 750036407757832242 # command to test if the bot is running # command to test if the bot is running # print a message if the bot is online bot.run(Token)
29
89
0.614122
2d1abf839257188564b4d1db171a9a9e2fcac08f
1,572
py
Python
cms/blocks.py
mitodl/micromasters
2b1df8ac7c4395cc0a0227d936b3f021f0ae3019
[ "BSD-3-Clause" ]
32
2016-03-25T01:03:13.000Z
2022-01-15T19:35:42.000Z
cms/blocks.py
mitodl/micromasters
2b1df8ac7c4395cc0a0227d936b3f021f0ae3019
[ "BSD-3-Clause" ]
4,858
2016-03-03T13:48:30.000Z
2022-03-29T22:09:51.000Z
cms/blocks.py
mitodl/micromasters
2b1df8ac7c4395cc0a0227d936b3f021f0ae3019
[ "BSD-3-Clause" ]
20
2016-08-18T22:07:44.000Z
2021-11-15T13:35:35.000Z
"""Page blocks""" from wagtail.core import blocks from wagtail.images.blocks import ImageChooserBlock
30.230769
94
0.660305
2d1d61b3fcb8f382f84576e100b3996770495f89
25
py
Python
env/Lib/site-packages/win32/mapi/__init__.py
Daniel-Key/HearStone-Python
981584d2b9502319393bd92b48f0ec8d906b4d44
[ "MIT" ]
null
null
null
env/Lib/site-packages/win32/mapi/__init__.py
Daniel-Key/HearStone-Python
981584d2b9502319393bd92b48f0ec8d906b4d44
[ "MIT" ]
1
2020-10-27T14:44:08.000Z
2020-10-27T14:44:08.000Z
env/Lib/site-packages/win32/mapi/__init__.py
Daniel-Key/HearStone-Python
981584d2b9502319393bd92b48f0ec8d906b4d44
[ "MIT" ]
null
null
null
from win32._mapi import *
25
25
0.8
2d1e81bfe87388671566d46153dbbdae8f99b502
15,698
py
Python
zygrader/grader.py
natecraddock/zygrader
3a1d5c1dbe76c8f76c2a99f271a26b2ec873006a
[ "MIT" ]
5
2019-11-15T17:42:42.000Z
2021-04-20T19:35:25.000Z
zygrader/grader.py
natecraddock/zygrader
3a1d5c1dbe76c8f76c2a99f271a26b2ec873006a
[ "MIT" ]
76
2020-02-22T01:42:16.000Z
2021-04-28T18:47:20.000Z
zygrader/grader.py
natecraddock/zygrader
3a1d5c1dbe76c8f76c2a99f271a26b2ec873006a
[ "MIT" ]
2
2020-02-21T04:39:38.000Z
2021-04-20T19:35:20.000Z
"""Grader: Menus and popups for grading and pair programming""" import curses import getpass from zygrader import data, ui, utils from zygrader.config import preferences from zygrader.config.shared import SharedData from zygrader.data import model from zygrader.zybooks import Zybooks from zygrader.ui import colors d...
35.118568
90
0.647407
2d205b0c022a8abc4d1eb512a97ffb4ce79cbfb0
1,212
py
Python
jupiter/utils/EmailUtil.py
gaott/jupiter
29fb266b080e9c8ca921a39e57a5e6a803375746
[ "Apache-2.0" ]
null
null
null
jupiter/utils/EmailUtil.py
gaott/jupiter
29fb266b080e9c8ca921a39e57a5e6a803375746
[ "Apache-2.0" ]
null
null
null
jupiter/utils/EmailUtil.py
gaott/jupiter
29fb266b080e9c8ca921a39e57a5e6a803375746
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 201371 @author: gaott ''' from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText from email.utils import COMMASPACE import smtplib if __name__ == '__main__': sendEmail("hello")
26.347826
82
0.671617
2d220d13853eb72792eb10d11e5500d16a8130fd
3,857
py
Python
physics/n-body/n-body.py
ludius0/simulations
3f8992edfef89d0450479647a96b889c6f0f43a3
[ "MIT" ]
null
null
null
physics/n-body/n-body.py
ludius0/simulations
3f8992edfef89d0450479647a96b889c6f0f43a3
[ "MIT" ]
null
null
null
physics/n-body/n-body.py
ludius0/simulations
3f8992edfef89d0450479647a96b889c6f0f43a3
[ "MIT" ]
null
null
null
# libs import pygame import math import sys from random import randrange, seed from numbers import Real # simulation settings G = 1 sum_mass = 50.0 softening = 100 # also function as speed component seed(1) # additional settings COLLIS_MERGE = True ACTIVE_BORDERS = False # world objects NBODIES = 150 BODIES = [] # p...
29
129
0.577132
2d2277cdda5d2b5e047ce9495c3c9bd5671495c6
136
py
Python
core/handlers/main_db_handler.py
Tampan793/Watermark-Bot
e872f85675e7cdaeeae5efcb1a0af59625d554f5
[ "MIT" ]
null
null
null
core/handlers/main_db_handler.py
Tampan793/Watermark-Bot
e872f85675e7cdaeeae5efcb1a0af59625d554f5
[ "MIT" ]
null
null
null
core/handlers/main_db_handler.py
Tampan793/Watermark-Bot
e872f85675e7cdaeeae5efcb1a0af59625d554f5
[ "MIT" ]
null
null
null
# (c) @M4SK3R1N from configs import Config from core.database import Database db = Database(Config.DATABASE_URL, Config.BOT_USERNAME)
19.428571
55
0.794118
2d23358acadeaa1dff525002691c0097420904a8
4,026
py
Python
src/item/consumables.py
roozhou/botty
a67a87845687cdf6900af10a13dc7170684faa9a
[ "MIT" ]
null
null
null
src/item/consumables.py
roozhou/botty
a67a87845687cdf6900af10a13dc7170684faa9a
[ "MIT" ]
null
null
null
src/item/consumables.py
roozhou/botty
a67a87845687cdf6900af10a13dc7170684faa9a
[ "MIT" ]
null
null
null
from config import Config from dataclasses import dataclass from logger import Logger from d2r_image.data_models import HoveredItem consumable_needs = Consumables() ITEM_CONSUMABLES_MAP = { "rejuvenation potion": "rejuv", "full rejuvenation potion": "rejuv", "rejuvpotion": "rejuv", "super healing potio...
34.410256
97
0.664183
2d24021470465eba916fd57e573635e8e812a4a2
2,612
py
Python
gorden_crawler/spiders/shopbop.py
Enmming/gorden_cralwer
3c279e4f80eaf90f3f03acd31b75cf991952adee
[ "Apache-2.0" ]
2
2019-02-22T13:51:08.000Z
2020-08-03T14:01:30.000Z
gorden_crawler/spiders/shopbop.py
Enmming/gorden_cralwer
3c279e4f80eaf90f3f03acd31b75cf991952adee
[ "Apache-2.0" ]
null
null
null
gorden_crawler/spiders/shopbop.py
Enmming/gorden_cralwer
3c279e4f80eaf90f3f03acd31b75cf991952adee
[ "Apache-2.0" ]
1
2020-08-03T14:01:32.000Z
2020-08-03T14:01:32.000Z
# -*- coding: utf-8 -*- from scrapy.spiders import Spider from scrapy.selector import Selector import re from scrapy import Request from gorden_crawler.spiders.shopbop_eastdane_common import ShopbopEastdaneCommon
45.824561
172
0.637825
2d24304d5ecf67d3329a74e6bd41bb16295b32dd
67
py
Python
vnpy/api/oanda/workers/__init__.py
WongLynn/vnpy_Amerlin-1.1.20
d701d8f12c29cc33f58ea025920b0c7240f74f82
[ "MIT" ]
11
2019-10-28T13:01:48.000Z
2021-06-20T03:38:09.000Z
vnpy/api/oanda/workers/__init__.py
Rayshawn8/vnpy_Amerlin-1.1.20
d701d8f12c29cc33f58ea025920b0c7240f74f82
[ "MIT" ]
null
null
null
vnpy/api/oanda/workers/__init__.py
Rayshawn8/vnpy_Amerlin-1.1.20
d701d8f12c29cc33f58ea025920b0c7240f74f82
[ "MIT" ]
6
2019-10-28T13:16:13.000Z
2020-09-08T08:03:41.000Z
from .transaction import * from .tick import * from .order import *
22.333333
26
0.746269
2d25dfe193d9f222df81203587f5dc472c35b589
1,104
py
Python
features/steps/login_steps.py
adrisalas/flask-appointmentsDoctor-TDD-BDD
1f7c14f83c85144e844f3db9a4fb27eebcf678a2
[ "MIT" ]
null
null
null
features/steps/login_steps.py
adrisalas/flask-appointmentsDoctor-TDD-BDD
1f7c14f83c85144e844f3db9a4fb27eebcf678a2
[ "MIT" ]
null
null
null
features/steps/login_steps.py
adrisalas/flask-appointmentsDoctor-TDD-BDD
1f7c14f83c85144e844f3db9a4fb27eebcf678a2
[ "MIT" ]
null
null
null
from behave import given, when, then
40.888889
95
0.692935
2d2653b77757ecdc03fee246ac217f3cdcfedd54
3,679
py
Python
app/main/views.py
arondasamuel123/FlaskBlog
33fa1bbc288a831b29a95bfff0b514a8d6f93f4e
[ "MIT" ]
null
null
null
app/main/views.py
arondasamuel123/FlaskBlog
33fa1bbc288a831b29a95bfff0b514a8d6f93f4e
[ "MIT" ]
null
null
null
app/main/views.py
arondasamuel123/FlaskBlog
33fa1bbc288a831b29a95bfff0b514a8d6f93f4e
[ "MIT" ]
null
null
null
from . import main from flask import render_template, url_for,redirect from app.models import Posts, User, Comment from flask_login import current_user, login_required from .forms import PostForm, CommentForm, UpdateBlogForm from .. import db from sqlalchemy import desc from ..requests import get_quotes from ..email i...
31.991304
130
0.668116
2d26eedc95197a2362633c769d7c96b7f86fab9b
2,117
py
Python
examples/tree_view_example.py
cgpipline/dayu_widgets
040a09fb9a20ce72997a3fba60e381e3944bff59
[ "MIT" ]
157
2019-03-10T05:55:21.000Z
2022-03-31T09:07:00.000Z
examples/tree_view_example.py
cgpipline/dayu_widgets
040a09fb9a20ce72997a3fba60e381e3944bff59
[ "MIT" ]
16
2019-07-15T11:30:53.000Z
2021-12-16T14:17:59.000Z
examples/tree_view_example.py
phenom-films/dayu_widgets
1eb8fbf2847f9de95af2cd62d5eaec392f1c1e22
[ "MIT" ]
56
2019-06-19T03:35:27.000Z
2022-03-22T08:07:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################### # Author: Mu yanru # Date : 2019.2 # Email : muyanru345@163.com ################################################################### import examples._mock_data as mock from dayu_widgets import dayu_theme f...
32.569231
68
0.671233
2d281bc3b188a3528fb07c6f83aec0f80d042987
385
py
Python
app/http/pili_service.py
sy264115809/techshow
7d9c8d003b6a652684b140b601061ac59dc44892
[ "MIT" ]
null
null
null
app/http/pili_service.py
sy264115809/techshow
7d9c8d003b6a652684b140b601061ac59dc44892
[ "MIT" ]
null
null
null
app/http/pili_service.py
sy264115809/techshow
7d9c8d003b6a652684b140b601061ac59dc44892
[ "MIT" ]
1
2021-09-14T18:01:39.000Z
2021-09-14T18:01:39.000Z
# coding=utf-8 from pili import * from flask import current_app
22.647059
107
0.755844
2d28a277601e69e469768302b3fb700a887a42db
1,131
py
Python
test/use_case_examples/startUp.py
sbanik1/sheetTrap
287746bf33b41e7f1066e80ee12bd08f75b155bc
[ "MIT" ]
null
null
null
test/use_case_examples/startUp.py
sbanik1/sheetTrap
287746bf33b41e7f1066e80ee12bd08f75b155bc
[ "MIT" ]
null
null
null
test/use_case_examples/startUp.py
sbanik1/sheetTrap
287746bf33b41e7f1066e80ee12bd08f75b155bc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This code sets the directories for running the test codes Created on Sat Dec 19 12:51:22 2020 @author: Swarnav Banik sbanik1@umd.edu """ # %% Import all ############################################################### import sys import matplotlib.pyplot as plt # %% Add...
34.272727
85
0.542882
2d28c3e225ac0e71c89f1c665bbce426470ea70d
8,038
py
Python
tests/basic.py
srobo-legacy/comp-webdis
5cef63976700ca262a87ed24f10abb908fa434de
[ "BSD-2-Clause" ]
null
null
null
tests/basic.py
srobo-legacy/comp-webdis
5cef63976700ca262a87ed24f10abb908fa434de
[ "BSD-2-Clause" ]
null
null
null
tests/basic.py
srobo-legacy/comp-webdis
5cef63976700ca262a87ed24f10abb908fa434de
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python import urllib2, unittest, json, hashlib from functools import wraps try: import bson except: bson = None try: import msgpack except: msgpack = None host = '127.0.0.1' port = 7379 def need_bson(fn): return wrapper if __name__ == '__main__': unittest.main()
29.229091
87
0.672555
2d2af0f28011528a2d6ef57a8fde31ab7d31de44
743
py
Python
tests/test_collection_client.py
ocefpaf/pystac-client
ddf0e0566b2b1783a4d32d3d77f9f51b80270df3
[ "Apache-2.0" ]
52
2021-04-15T23:24:12.000Z
2022-03-09T23:02:27.000Z
tests/test_collection_client.py
ocefpaf/pystac-client
ddf0e0566b2b1783a4d32d3d77f9f51b80270df3
[ "Apache-2.0" ]
119
2021-04-13T11:42:01.000Z
2022-02-24T10:02:35.000Z
tests/test_collection_client.py
ocefpaf/pystac-client
ddf0e0566b2b1783a4d32d3d77f9f51b80270df3
[ "Apache-2.0" ]
14
2021-04-13T19:00:19.000Z
2022-02-23T09:17:30.000Z
import pytest from pystac_client import CollectionClient from pystac_client.client import Client from .helpers import STAC_URLS
29.72
67
0.699865
2d2b1238c9004522816921ce7316d847dd12d582
7,135
py
Python
frasco_models/backends/sqlalchemy.py
frascoweb/frasco-models
f7c1e14424cadf3dc07c2bd81cc32b0fd046ccba
[ "MIT" ]
1
2015-09-24T10:01:03.000Z
2015-09-24T10:01:03.000Z
frasco_models/backends/sqlalchemy.py
frascoweb/frasco-models
f7c1e14424cadf3dc07c2bd81cc32b0fd046ccba
[ "MIT" ]
null
null
null
frasco_models/backends/sqlalchemy.py
frascoweb/frasco-models
f7c1e14424cadf3dc07c2bd81cc32b0fd046ccba
[ "MIT" ]
null
null
null
from __future__ import absolute_import from frasco import copy_extra_feature_options, current_app from frasco.utils import JSONEncoder, ContextStack, DelayedCallsContext from frasco_models import Backend, ModelSchemaError, and_, split_field_operator, QueryError from frasco_models.utils import clean_proxy from flask_sql...
35.675
117
0.623266
2d2bf38cdd992aadb6144180b5dfb94255173ff3
538
py
Python
17.05.2022/POO/parte1/teste3/main.py
N0N4T0/python-codes
ac2b884f86749a8b179ff972cdb316ec4e005b32
[ "MIT" ]
null
null
null
17.05.2022/POO/parte1/teste3/main.py
N0N4T0/python-codes
ac2b884f86749a8b179ff972cdb316ec4e005b32
[ "MIT" ]
null
null
null
17.05.2022/POO/parte1/teste3/main.py
N0N4T0/python-codes
ac2b884f86749a8b179ff972cdb316ec4e005b32
[ "MIT" ]
null
null
null
from pessoa import Pessoa p1 = Pessoa('Luiz', 29) p2 = Pessoa('Joana', 59) # Teste para j est comendo # p1.comer('ma') # p1.comer('ma') # Teste para no est comendo # p1.para_comer() # Teste para j est falando # p1.falar('Poltica') # p1.falar('Poltica') # Teste para no falar comendo # p1.comer('ma') # p1.falar('Polt...
17.354839
35
0.684015
2d2cf88bb3da622870d5871c45371991a12f449f
2,135
py
Python
assignment2/AssignmentMaterial_2/Framework/VideoCaptureDevices/Enumerations.py
ecly/assignment1_bsii
eeb2bd6bfa3071df53457ce2a2ab723c6fedffe3
[ "MIT" ]
null
null
null
assignment2/AssignmentMaterial_2/Framework/VideoCaptureDevices/Enumerations.py
ecly/assignment1_bsii
eeb2bd6bfa3071df53457ce2a2ab723c6fedffe3
[ "MIT" ]
null
null
null
assignment2/AssignmentMaterial_2/Framework/VideoCaptureDevices/Enumerations.py
ecly/assignment1_bsii
eeb2bd6bfa3071df53457ce2a2ab723c6fedffe3
[ "MIT" ]
null
null
null
#<!---------------------------------------------------------------------------> #<!-- ITU - IT University of Copenhagen --> #<!-- SSS - Software and Systems Section --> #<!---------------------------------------------------------------------------> ...
68.870968
79
0.444496
2d2db398b4ddbcc67edec80cc25d50f9ccebdf17
2,022
py
Python
pipeline/run_perturbation_test.py
martin-fabbri/nlp-behavioral-testing
352cab74f5d62561e08d92135e4609db1fe38fd5
[ "Apache-2.0" ]
null
null
null
pipeline/run_perturbation_test.py
martin-fabbri/nlp-behavioral-testing
352cab74f5d62561e08d92135e4609db1fe38fd5
[ "Apache-2.0" ]
1
2021-02-19T08:08:52.000Z
2021-02-19T08:08:52.000Z
pipeline/run_perturbation_test.py
martin-fabbri/nlp-behavioral-testing
352cab74f5d62561e08d92135e4609db1fe38fd5
[ "Apache-2.0" ]
null
null
null
import json import nlpaug.augmenter.char as nac import pandas as pd from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline from transformers.tokenization_utils import PreTrainedTokenizer from config import Config transformer_model = "distilbert-base-uncased-finetuned-sst-2-english" # l...
31.59375
87
0.740851
2d2e70b06755b783fc866f681653a747759d1c68
4,534
py
Python
quant.py
coreyauger/ema-65-crossover-kaggle
5b84294381b01b9f0f84f14006572c9cb9e5cca7
[ "MIT" ]
null
null
null
quant.py
coreyauger/ema-65-crossover-kaggle
5b84294381b01b9f0f84f14006572c9cb9e5cca7
[ "MIT" ]
null
null
null
quant.py
coreyauger/ema-65-crossover-kaggle
5b84294381b01b9f0f84f14006572c9cb9e5cca7
[ "MIT" ]
1
2021-05-01T15:50:17.000Z
2021-05-01T15:50:17.000Z
from functools import reduce import numpy as np import matplotlib.pyplot as plt from dateutil import parser import glob import os import csv import json
40.846847
123
0.604764
2d2e9702d8917bd50d220179a5ae3d2d3a0df138
71
py
Python
common/__init__.py
wupengyue/AdminLTE
7a15c85a2a9ceb22f1b9c67437113df9aebf77bf
[ "MIT" ]
null
null
null
common/__init__.py
wupengyue/AdminLTE
7a15c85a2a9ceb22f1b9c67437113df9aebf77bf
[ "MIT" ]
null
null
null
common/__init__.py
wupengyue/AdminLTE
7a15c85a2a9ceb22f1b9c67437113df9aebf77bf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Date : 2017-07-18 20:12:08 # @Author :
14.2
32
0.478873
2d2eb9e41d9b7aaa806035fe7e73dc2a5bc3e057
5,913
py
Python
Scripts/GeoDBSCAN.py
Holisticnature/geo-learn
cfa4485b376ae1b22457251bcddbe26bac103a10
[ "Apache-2.0" ]
4
2018-03-06T14:38:42.000Z
2018-06-04T14:57:26.000Z
Scripts/GeoDBSCAN.py
Holisticnature/geo-learn
cfa4485b376ae1b22457251bcddbe26bac103a10
[ "Apache-2.0" ]
null
null
null
Scripts/GeoDBSCAN.py
Holisticnature/geo-learn
cfa4485b376ae1b22457251bcddbe26bac103a10
[ "Apache-2.0" ]
null
null
null
# -------------------------------- # Name: GeoDBSCAN.py # Purpose: This script is intended to allow ArcGIS users that have Scikit Learn installed in their python installation # utilize DBSCAN to create clusters of geographic features based on their centroids. # Current Owner: David Wasserman # Last Modified: 4/5/2020 #...
51.417391
325
0.690851
2d2f252fd1115185175d6bc733e90a8c70405560
1,607
py
Python
version_v4/inference_traffic_light_gps_deep_ranking_only_final.py
mayanks888/QATM_pytorch_ros2
936ff265e4c0f0cbfa63855e07a95e15b2b0e336
[ "MIT" ]
null
null
null
version_v4/inference_traffic_light_gps_deep_ranking_only_final.py
mayanks888/QATM_pytorch_ros2
936ff265e4c0f0cbfa63855e07a95e15b2b0e336
[ "MIT" ]
null
null
null
version_v4/inference_traffic_light_gps_deep_ranking_only_final.py
mayanks888/QATM_pytorch_ros2
936ff265e4c0f0cbfa63855e07a95e15b2b0e336
[ "MIT" ]
null
null
null
#this implementation mainly work on grey scale image import argparse import shutil from pathlib import Path import natsort from qatm_pytorch_v3 import CreateModel, ImageDataset,ImageDataset_2, plot_result_mayank, nms, run_one_sample_mayank from torchvision import models import torch from utils import * from imageload...
30.903846
116
0.781581
2d3055e14122623c95b8881341a1fc725f67eb41
1,017
py
Python
examples/research/O2-graphene/O2-C24/proj/O2-C24.py
fishjojo/pydmfe
93cfc655314933d3531b5733521a1f95a044f6cb
[ "MIT" ]
3
2021-02-26T06:26:00.000Z
2022-02-20T08:58:20.000Z
examples/research/O2-graphene/O2-C24/proj/O2-C24.py
fishjojo/pydmfet
93cfc655314933d3531b5733521a1f95a044f6cb
[ "MIT" ]
null
null
null
examples/research/O2-graphene/O2-C24/proj/O2-C24.py
fishjojo/pydmfet
93cfc655314933d3531b5733521a1f95a044f6cb
[ "MIT" ]
null
null
null
from pydmfet import proj_ao, tools from pydmfet.qcwrap.pyscf_rks_ao import rks_ao from pyscf import gto,scf import numpy as np from pyscf.tools import molden t0 = tools.time0() bas ='6-31G*' temp = 0.005 mol = gto.Mole() mol.atom = open('O2-C24.xyz').read() mol.basis = bas mol.charge = 0 mol.build(max_memory = 2400...
21.1875
90
0.707965
2d3114636772e658c9c73b2f51a905eee17cc3c7
5,376
py
Python
anchore_engine/db/db_account_users.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
1
2020-06-22T07:27:41.000Z
2020-06-22T07:27:41.000Z
anchore_engine/db/db_account_users.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
4
2020-11-07T00:16:02.000Z
2020-11-08T20:52:06.000Z
anchore_engine/db/db_account_users.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
1
2019-11-23T03:39:28.000Z
2019-11-23T03:39:28.000Z
""" Interface to the account_users table. Data format is dicts, not objects. """ from passlib import pwd from passlib.context import CryptContext from anchore_engine.db import AccountUser, AccessCredential, UserAccessCredentialTypes from anchore_engine.db.entities.common import anchore_now from anchore_engine.configur...
29.701657
130
0.693824
2d32dfae4e4a82d0da73b0d4fd9b140d33288330
2,314
py
Python
pymmw/lib/probe.py
iljoobaek/Radar_boundary_detection
e7a61827e57eac29d4a1200a2856ce3bc00b92cf
[ "MIT" ]
null
null
null
pymmw/lib/probe.py
iljoobaek/Radar_boundary_detection
e7a61827e57eac29d4a1200a2856ce3bc00b92cf
[ "MIT" ]
null
null
null
pymmw/lib/probe.py
iljoobaek/Radar_boundary_detection
e7a61827e57eac29d4a1200a2856ce3bc00b92cf
[ "MIT" ]
null
null
null
# # Copyright (c) 2019, Manfred Constapel # This file is licensed under the terms of the MIT license. # import sys, time from lib.utility import * # ------------------------------------------------ VID, PID = 0x0451, 0xbef3 # XDS110 # ------------------------------------------------ try: import usb except Ex...
30.853333
87
0.544512
2d34c64aae2f99b093c4f7a0e488c069a1328360
3,760
py
Python
pandajedi/jedibrokerage/JobBrokerBase.py
PanDAWMS/panda-jedi
e4c90563b3b9e9521cb73ccdedaa8ecaa38af5ed
[ "Apache-2.0" ]
2
2020-04-17T10:24:09.000Z
2020-05-12T17:59:06.000Z
pandajedi/jedibrokerage/JobBrokerBase.py
PanDAWMS/panda-jedi
e4c90563b3b9e9521cb73ccdedaa8ecaa38af5ed
[ "Apache-2.0" ]
20
2015-08-25T13:40:14.000Z
2022-03-29T12:50:46.000Z
pandajedi/jedibrokerage/JobBrokerBase.py
PanDAWMS/panda-jedi
e4c90563b3b9e9521cb73ccdedaa8ecaa38af5ed
[ "Apache-2.0" ]
10
2015-05-27T14:01:42.000Z
2021-09-20T17:38:02.000Z
from pandajedi.jedicore import Interaction # base class for job brokerage Interaction.installSC(JobBrokerBase)
32.982456
133
0.655053
2d3623ec2975daf6edfc533f9031ebffefe6e10e
1,467
py
Python
src/datasets/negative_samplers/popular.py
JiachengLi1995/FastRec
88174f8beb822c6b5b348c888de184d48d9d013c
[ "MIT" ]
null
null
null
src/datasets/negative_samplers/popular.py
JiachengLi1995/FastRec
88174f8beb822c6b5b348c888de184d48d9d013c
[ "MIT" ]
null
null
null
src/datasets/negative_samplers/popular.py
JiachengLi1995/FastRec
88174f8beb822c6b5b348c888de184d48d9d013c
[ "MIT" ]
null
null
null
from .base import AbstractNegativeSampler from tqdm import trange from tqdm import tqdm from collections import Counter import numpy as np
30.5625
99
0.625085
2d365b35f584f4bd5f75c5a5f91f7420fadca6f3
650
py
Python
Ebooks/migrations/0009_auto_20180729_1706.py
Akash4307/Wise-master
5f484e3791a8e4361d8bcad570ac2661636a5cfc
[ "Apache-2.0" ]
null
null
null
Ebooks/migrations/0009_auto_20180729_1706.py
Akash4307/Wise-master
5f484e3791a8e4361d8bcad570ac2661636a5cfc
[ "Apache-2.0" ]
8
2021-03-18T21:30:54.000Z
2022-03-02T14:56:55.000Z
Ebooks/migrations/0009_auto_20180729_1706.py
Akash4307/Wise-master
5f484e3791a8e4361d8bcad570ac2661636a5cfc
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.6 on 2018-07-30 00:06 from django.db import migrations, models
25
64
0.590769
2d366ae91d3744d540214d0d257991a1dc1a1f6f
290
py
Python
skyportal/handlers/api/internal/__init__.py
jialin-wu-02/skyportal
29d606ad8567b2230fb0553b18dd3cb9d3ab2d84
[ "BSD-3-Clause" ]
null
null
null
skyportal/handlers/api/internal/__init__.py
jialin-wu-02/skyportal
29d606ad8567b2230fb0553b18dd3cb9d3ab2d84
[ "BSD-3-Clause" ]
156
2019-10-17T19:35:22.000Z
2021-08-01T13:23:47.000Z
skyportal/handlers/api/internal/__init__.py
jialin-wu-02/skyportal
29d606ad8567b2230fb0553b18dd3cb9d3ab2d84
[ "BSD-3-Clause" ]
null
null
null
from .plot import PlotPhotometryHandler, PlotSpectroscopyHandler from .token import TokenHandler from .dbinfo import DBInfoHandler from .profile import ProfileHandler from .source_views import SourceViewsHandler from .instrument_observation_params import InstrumentObservationParamsHandler
41.428571
77
0.889655
2d3685b227eda67cb5f0fb424b7e5b1d410a46d7
2,854
py
Python
td/lab3_skeleton.py
K1ntus/Deep-Learning
8737c0cf32d34d1533f249ddd3eb8ada181fb7ad
[ "MIT" ]
null
null
null
td/lab3_skeleton.py
K1ntus/Deep-Learning
8737c0cf32d34d1533f249ddd3eb8ada181fb7ad
[ "MIT" ]
null
null
null
td/lab3_skeleton.py
K1ntus/Deep-Learning
8737c0cf32d34d1533f249ddd3eb8ada181fb7ad
[ "MIT" ]
null
null
null
from __future__ import print_function import tensorflow as tf import keras from keras.datasets import mnist from keras.models import Sequential,model_from_json from keras.layers import Dense, Dropout from keras.optimizers import RMSprop import numpy as np #### EXERCICE 3 (x_train,y_train), (x_test, y_test) = mnist...
30.361702
126
0.70042
2d36c1e2e090aa8edbe34bd4cb5777a00843c1e4
9,733
py
Python
image/modified/m_vqvae_multi_level8.py
arash-safari/vp
377e0172112157b79690b32349481a17e7590063
[ "MIT" ]
null
null
null
image/modified/m_vqvae_multi_level8.py
arash-safari/vp
377e0172112157b79690b32349481a17e7590063
[ "MIT" ]
null
null
null
image/modified/m_vqvae_multi_level8.py
arash-safari/vp
377e0172112157b79690b32349481a17e7590063
[ "MIT" ]
null
null
null
import sys import torch from torch import nn from torch.nn import functional as F # sys.path.append('../') # # from image.vqvae import Quantize # Copyright 2018 The Sonnet Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance...
34.392226
90
0.551526
2d3973da3a5de2c1e31fc0e0d24cbc8b6577547e
848
py
Python
Quiron/reports/migrations/0001_initial.py
CesarNav/Quiron
5e20e891436513cf664fba9806d57b104b65d9cd
[ "MIT" ]
null
null
null
Quiron/reports/migrations/0001_initial.py
CesarNav/Quiron
5e20e891436513cf664fba9806d57b104b65d9cd
[ "MIT" ]
null
null
null
Quiron/reports/migrations/0001_initial.py
CesarNav/Quiron
5e20e891436513cf664fba9806d57b104b65d9cd
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-12-09 13:40 from django.db import migrations, models import django.db.models.deletion
31.407407
142
0.612028
2d3b6a39414163158df318015d15ebef78eb5567
10,249
py
Python
tests/test_data_loader.py
cccntu/accelerate
4ad11b12d97717db0931de1c17d562bd5c7f4f41
[ "Apache-2.0" ]
2,313
2021-03-05T21:49:49.000Z
2022-03-31T05:26:00.000Z
tests/test_data_loader.py
cccntu/accelerate
4ad11b12d97717db0931de1c17d562bd5c7f4f41
[ "Apache-2.0" ]
230
2021-03-05T22:00:05.000Z
2022-03-31T21:38:44.000Z
tests/test_data_loader.py
cccntu/accelerate
4ad11b12d97717db0931de1c17d562bd5c7f4f41
[ "Apache-2.0" ]
152
2021-03-06T04:25:37.000Z
2022-03-26T03:09:36.000Z
# Copyright 2021 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
45.959641
119
0.630208
2d3ba84e7f3d9f50d96ba09e4dc3290fe2df32cc
121
py
Python
receipts_storage/forms/__init__.py
albinmedoc/receipts_storage
2c3e2a19312d5ca8ec31bf2f0c6315f29d5fd923
[ "MIT" ]
null
null
null
receipts_storage/forms/__init__.py
albinmedoc/receipts_storage
2c3e2a19312d5ca8ec31bf2f0c6315f29d5fd923
[ "MIT" ]
null
null
null
receipts_storage/forms/__init__.py
albinmedoc/receipts_storage
2c3e2a19312d5ca8ec31bf2f0c6315f29d5fd923
[ "MIT" ]
null
null
null
from .product import ProductForm from .receipt import ReceiptForm from .user import LoginForm, RegisterForm, EditUserForm
40.333333
55
0.85124
2d3bab9f16bf5a40e3ec217903602e93ce9b678d
9,435
py
Python
Core/DatabaseTools/DatabaseManager/abstractDatabase.py
jpesperidiao/MOPA
6fbf097a22d42d82eeb36c6f247eb0d8fb6ac586
[ "MIT" ]
null
null
null
Core/DatabaseTools/DatabaseManager/abstractDatabase.py
jpesperidiao/MOPA
6fbf097a22d42d82eeb36c6f247eb0d8fb6ac586
[ "MIT" ]
1
2020-06-07T00:19:54.000Z
2020-06-07T00:19:54.000Z
Core/DatabaseTools/DatabaseManager/abstractDatabase.py
jpesperidiao/MOPA
6fbf097a22d42d82eeb36c6f247eb0d8fb6ac586
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ /*************************************************************************** MOPA An independet project Mtodo de Obteno da Posio de Atirador ------------------- begin : 2019-01-15 git sha ...
35.205224
83
0.546688