hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
9cc815b9d439805f37f2bd58858a3f7458d191de
8,155
py
Python
main.py
boxanm/CityRunHeatMaps
8df90b86edab7e530c463000067f569f8e657ccf
[ "MIT" ]
1
2019-09-14T06:58:36.000Z
2019-09-14T06:58:36.000Z
main.py
boxanm/CityRunHeatMaps
8df90b86edab7e530c463000067f569f8e657ccf
[ "MIT" ]
null
null
null
main.py
boxanm/CityRunHeatMaps
8df90b86edab7e530c463000067f569f8e657ccf
[ "MIT" ]
null
null
null
import os.path import datetime import gpxpy import osmnx import matplotlib.pyplot as plt import matplotlib.cm as cm import numpy as np import functions as functions from collections import Counter, OrderedDict import time import math import argparse from customClasses import Cell parser = argparse.ArgumentParser() pa...
36.900452
225
0.643164
0
0
0
0
0
0
0
0
1,198
0.146904
9cc8a27b231af691d3fbf8c4702b4f91f01e88a2
6,728
py
Python
scripts/ftp_mar_data.py
SmithB/SMBcorr
7c35cf8383058986fd82b28beab3c5580f9f8667
[ "MIT" ]
null
null
null
scripts/ftp_mar_data.py
SmithB/SMBcorr
7c35cf8383058986fd82b28beab3c5580f9f8667
[ "MIT" ]
null
null
null
scripts/ftp_mar_data.py
SmithB/SMBcorr
7c35cf8383058986fd82b28beab3c5580f9f8667
[ "MIT" ]
1
2020-08-06T19:48:52.000Z
2020-08-06T19:48:52.000Z
#!/usr/bin/env python u""" ftp_mar_data.py Written by Tyler Sutterley (05/2020) Syncs MAR regional climate outputs for a given ftp url ftp://ftp.climato.be/fettweis CALLING SEQUENCE: python ftp_mar_data.py --directory=<path> <ftp://url> INPUTS: full ftp url COMMAND LINE OPTIONS: --help: list the com...
36.765027
80
0.640012
0
0
0
0
0
0
0
0
3,340
0.496433
9ccb29cee770a8f04a2031d1320f314942e54690
13,400
py
Python
sondages/sondages_wiki_scrap.py
verycourt/Elections
b954c2bb23422e85d10074d41f7d2adc537a1766
[ "MIT" ]
null
null
null
sondages/sondages_wiki_scrap.py
verycourt/Elections
b954c2bb23422e85d10074d41f7d2adc537a1766
[ "MIT" ]
null
null
null
sondages/sondages_wiki_scrap.py
verycourt/Elections
b954c2bb23422e85d10074d41f7d2adc537a1766
[ "MIT" ]
null
null
null
#!/usr/bin/python # encoding=utf8 import sys reload(sys) sys.setdefaultencoding('utf8') import requests from bs4 import BeautifulSoup import numpy as np import pandas as pd import warnings import dateparser import datetime import time import json from json import encoder encoder.FLOAT_REPR = lambda o: format(o, '.1f'...
35.356201
175
0.589552
0
0
0
0
0
0
0
0
5,514
0.409993
9ccc9caa284546838f6e690c84b3287d39799b8f
7,645
py
Python
RecoMuon/MuonIsolationProducers/test/isoTest_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoMuon/MuonIsolationProducers/test/isoTest_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoMuon/MuonIsolationProducers/test/isoTest_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
# The following comments couldn't be translated into the new config version: # # keep only muon-related info here # import FWCore.ParameterSet.Config as cms process = cms.Process("MISO") process.load("Configuration.EventContent.EventContent_cff") # service = MessageLogger { # untracked vstring destination...
71.448598
147
0.780379
0
0
0
0
0
0
0
0
6,505
0.850883
9cce74ca65c4a70248a44251c279dedff70a0c3a
220
py
Python
app/egg/__init__.py
MultyXu/Islandr
5f965638d0cda68e76f63b0625b2411029e90c2d
[ "MIT" ]
2
2019-06-05T01:36:53.000Z
2019-06-05T01:37:12.000Z
app/egg/__init__.py
dingding0606/Islandr
dd2277a8a7ceb002af3b28045133797fa9ffed9d
[ "MIT" ]
null
null
null
app/egg/__init__.py
dingding0606/Islandr
dd2277a8a7ceb002af3b28045133797fa9ffed9d
[ "MIT" ]
1
2019-08-28T20:49:22.000Z
2019-08-28T20:49:22.000Z
''' @Description: Easter Egg @Author: Tianyi Lu @Date: 2019-08-10 10:30:29 @LastEditors: Tianyi Lu @LastEditTime: 2019-08-10 10:36:24 ''' from flask import Blueprint egg = Blueprint('egg', __name__) from . import views
18.333333
34
0.722727
0
0
0
0
0
0
0
0
142
0.645455
9ccf491bea316d314b0ea1d3246d4253a60ec8dc
1,830
py
Python
tests/backends/test_sqlalchemy_backend.py
kuc2477/news
215f87e6ce1a7fc99175596e6fd5b4b50a3179c6
[ "MIT" ]
2
2016-01-21T04:16:57.000Z
2016-04-27T04:46:13.000Z
tests/backends/test_sqlalchemy_backend.py
kuc2477/news
215f87e6ce1a7fc99175596e6fd5b4b50a3179c6
[ "MIT" ]
null
null
null
tests/backends/test_sqlalchemy_backend.py
kuc2477/news
215f87e6ce1a7fc99175596e6fd5b4b50a3179c6
[ "MIT" ]
null
null
null
def test_get_news(sa_session, sa_backend, sa_child_news): assert(sa_child_news == sa_backend.get_news(sa_child_news.id)) assert(sa_backend.get_news(None) is None) def test_get_news_list(sa_session, sa_backend, sa_child_news): assert(sa_child_news in sa_backend.get_news_list()) assert(sa_child_news in ...
35.882353
77
0.749727
0
0
0
0
0
0
0
0
16
0.008743
9ccf4e8bda92837d4e656009c423fc5151a4c436
1,024
py
Python
database/repositories/ModelBlobRepository.py
roblkenn/EECS441-Backend
96fa0ca6775c13426dacdcbe1da02a8fa6e887ed
[ "RSA-MD" ]
null
null
null
database/repositories/ModelBlobRepository.py
roblkenn/EECS441-Backend
96fa0ca6775c13426dacdcbe1da02a8fa6e887ed
[ "RSA-MD" ]
null
null
null
database/repositories/ModelBlobRepository.py
roblkenn/EECS441-Backend
96fa0ca6775c13426dacdcbe1da02a8fa6e887ed
[ "RSA-MD" ]
null
null
null
from azure.storage.blob.baseblobservice import BaseBlobService from azure.storage.blob.blockblobservice import BlockBlobService from database.models.Blob import Blob class ModelBlobRepository: def __init__(self): self.blockBlobService = BlockBlobService(account_name='stylesblobstorage', account_key='B4qA7P...
48.761905
186
0.783203
856
0.835938
0
0
0
0
0
0
226
0.220703
9cd03be08a58b5db01aa5e339f8033f2b9c3bad6
1,229
py
Python
day03/puzzle2b.py
techrabbit58/AdventOfCode2020
9e0f4a633f50f5dd48186d38fe58ad8d40dff387
[ "Unlicense" ]
1
2020-12-15T22:27:38.000Z
2020-12-15T22:27:38.000Z
day03/puzzle2b.py
techrabbit58/AdventOfCode2020
9e0f4a633f50f5dd48186d38fe58ad8d40dff387
[ "Unlicense" ]
null
null
null
day03/puzzle2b.py
techrabbit58/AdventOfCode2020
9e0f4a633f50f5dd48186d38fe58ad8d40dff387
[ "Unlicense" ]
null
null
null
""" Advent Of Code 2020. Day 03. Puzzle 2. 2nd approach, just to see if this may be faster. It turns out, the first approach had been at least 3 times faster. This second approach is slower. Hummm! """ import time input_file = 'day03.txt' TREE = '#' SLOPES = [(1, 1), (3, 1), (5, 1), (7, 1), (1, 2)] def parse(puzzl...
25.081633
76
0.598047
0
0
0
0
0
0
0
0
225
0.183076
9cd0d98d0b63b4259d4d0c7661566ba636ce4420
20,644
py
Python
src/mvdef/import_util.py
lmmx/mvdef
c1e5002fbbcb3382025f2c6410767fee3ffe2500
[ "MIT" ]
null
null
null
src/mvdef/import_util.py
lmmx/mvdef
c1e5002fbbcb3382025f2c6410767fee3ffe2500
[ "MIT" ]
42
2019-12-31T12:22:10.000Z
2021-07-11T10:57:06.000Z
src/mvdef/import_util.py
lmmx/mvdef
c1e5002fbbcb3382025f2c6410767fee3ffe2500
[ "MIT" ]
null
null
null
import ast from ast import Import as IType, ImportFrom as IFType from astor import to_source from asttokens import ASTTokens from .colours import colour_str as colour from os import linesep as nl from sys import stderr __all__ = [ "get_import_stmt_str", "multilinify_import_stmt_str", "colour_imp_stmt", ...
50.722359
87
0.653749
0
0
0
0
0
0
0
0
10,481
0.507653
9cd18766a6cefc07e6ae4aced26c08d612cd472e
384
py
Python
tests/bench/test_yahoo_nyse_VRS.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/bench/test_yahoo_nyse_VRS.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/bench/test_yahoo_nyse_VRS.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import pyaf.Bench.YahooStocks as ys import warnings symbol_lists = tsds.get_yahoo_symbol_lists(); y_keys = sorted(symbol_lists.keys()) print(y_keys) k = "nysecomp" tester = ys.cYahoo_Tester(tsds.load_yahoo_stock_prices(k) , "YAHOO_STOCKS_" + k); with warnings.catch_warnings(): ...
29.538462
81
0.770833
0
0
0
0
0
0
0
0
37
0.096354
9cd50d98408fbc789fcaead7d9f721fe9a6e105c
1,376
py
Python
fabric_utils/ci.py
selfpub-org/fabric-utils
ee5793d242a9525df8fca45a67f0042002f4a6ab
[ "BSD-3-Clause" ]
null
null
null
fabric_utils/ci.py
selfpub-org/fabric-utils
ee5793d242a9525df8fca45a67f0042002f4a6ab
[ "BSD-3-Clause" ]
1
2018-05-31T13:41:38.000Z
2018-05-31T13:41:38.000Z
fabric_utils/ci.py
selfpub-org/fabric-utils
ee5793d242a9525df8fca45a67f0042002f4a6ab
[ "BSD-3-Clause" ]
1
2020-11-10T16:20:06.000Z
2020-11-10T16:20:06.000Z
import os from functools import wraps from fabric.api import settings, warn def teamcity(message_name, *params, **kwargs): force = kwargs.get('force') or False messages = { 'testSuiteStarted': "testSuiteStarted name='%s'", 'testSuiteFinished': "testSuiteFinished name='%s'", 'buildStat...
30.577778
85
0.62282
0
0
0
0
411
0.298692
0
0
476
0.34593
9cd79b368d2d4cdb843e42b4dcffedf36436d6a1
2,331
py
Python
sandy/sections/mf35.py
AitorBengoechea/sandy
c55e4ee7b593389947a52e1adb85282dcb73dda3
[ "MIT" ]
null
null
null
sandy/sections/mf35.py
AitorBengoechea/sandy
c55e4ee7b593389947a52e1adb85282dcb73dda3
[ "MIT" ]
null
null
null
sandy/sections/mf35.py
AitorBengoechea/sandy
c55e4ee7b593389947a52e1adb85282dcb73dda3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This module contains a single public function: * `read_mf35` Function `read_mf35` reads a MF35/MT section from a string and produces a content object with a dictionary-like structure. The content object can be accessed using most of the keywords specified in the ENDF6 manual for this s...
34.279412
108
0.592879
0
0
0
0
0
0
0
0
1,733
0.743458
9cd80afed190fb3c356c200fcfd34546c3bed147
29,748
py
Python
src/pycropml/transpiler/antlr_py/parse.py
brichet/PyCrop2ML
7177996f72a8d95fdbabb772a16f1fd87b1d033e
[ "MIT" ]
5
2020-06-21T18:58:04.000Z
2022-01-29T21:32:28.000Z
src/pycropml/transpiler/antlr_py/parse.py
brichet/PyCrop2ML
7177996f72a8d95fdbabb772a16f1fd87b1d033e
[ "MIT" ]
27
2018-12-04T15:35:44.000Z
2022-03-11T08:25:03.000Z
src/pycropml/transpiler/antlr_py/parse.py
brichet/PyCrop2ML
7177996f72a8d95fdbabb772a16f1fd87b1d033e
[ "MIT" ]
7
2019-04-20T02:25:22.000Z
2021-11-04T07:52:35.000Z
import pycropml.transpiler.antlr_py.grammars from pycropml.transpiler.antlr_py.grammars.CSharpLexer import CSharpLexer from pycropml.transpiler.antlr_py.grammars.CSharpParser import CSharpParser from pycropml.transpiler.antlr_py.grammars.Fortran90Lexer import Fortran90Lexer from pycropml.transpiler.antlr_py.grammars.F...
35.797834
128
0.624849
19,674
0.661355
0
0
4,176
0.140379
0
0
9,678
0.325333
9cd8ab1b3376a9a6e91e80aece04a51923c049ca
10,351
py
Python
nrgpy/convert/convert_rld.py
kyarazhan/nrgpy
6a81af79ee4f666892d99a5f0713495bff89214b
[ "MIT" ]
null
null
null
nrgpy/convert/convert_rld.py
kyarazhan/nrgpy
6a81af79ee4f666892d99a5f0713495bff89214b
[ "MIT" ]
null
null
null
nrgpy/convert/convert_rld.py
kyarazhan/nrgpy
6a81af79ee4f666892d99a5f0713495bff89214b
[ "MIT" ]
null
null
null
try: from nrgpy import logger except ImportError: pass from datetime import datetime import os import subprocess import time import traceback from nrgpy.api.convert import nrg_api_convert from nrgpy.utils.utilities import check_platform, windows_folder_path, affirm_directory, count_files class local(object): ...
35.088136
180
0.562651
10,015
0.967539
0
0
0
0
0
0
4,105
0.39658
9cd8b09c53d8ecf1b2984937b2ed05ef619c8318
23,127
py
Python
gitea_api/models/timeline_comment.py
r7l/python-gitea-api
31d3dba27ea7e551e2048a1230c4ab4d73365006
[ "MIT" ]
1
2022-02-09T23:43:26.000Z
2022-02-09T23:43:26.000Z
gitea_api/models/timeline_comment.py
r7l/python-gitea-api
31d3dba27ea7e551e2048a1230c4ab4d73365006
[ "MIT" ]
null
null
null
gitea_api/models/timeline_comment.py
r7l/python-gitea-api
31d3dba27ea7e551e2048a1230c4ab4d73365006
[ "MIT" ]
null
null
null
# coding: utf-8 """ Gitea API. This documentation describes the Gitea API. # noqa: E501 OpenAPI spec version: 1.16.7 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class TimelineComment(object): """NOTE: This class is...
27.434164
519
0.598564
22,863
0.988585
0
0
14,919
0.64509
0
0
11,902
0.514637
9cd8b67231efc3277946220bc2baea81f196997d
686
py
Python
Blasting/Start.py
Erosion2020/SpaceCore
ba81bf1913461a200f9e88acb7d0d91d7deda8e8
[ "MIT" ]
4
2022-03-22T08:21:52.000Z
2022-03-23T12:58:17.000Z
Blasting/Start.py
Erosion2020/SpaceCore
ba81bf1913461a200f9e88acb7d0d91d7deda8e8
[ "MIT" ]
null
null
null
Blasting/Start.py
Erosion2020/SpaceCore
ba81bf1913461a200f9e88acb7d0d91d7deda8e8
[ "MIT" ]
null
null
null
import Blasting name = "Blasting" input_message = f"[{name} #]" def menu(): print("-------------------------------弱口令爆破子模块-------------------------------") print("1、SSH弱口令爆破") print("2、MySQL弱口令爆破") print("输入exit退出") print("-----------------------------------END-----------------------------------"...
23.655172
86
0.41691
0
0
0
0
0
0
0
0
305
0.404509
9cd8dd0d174f6ca548c62ed627de0eb3a16baa55
379
py
Python
events/migrations/0040_event_team_size.py
horacexd/clist
9759dfea97b86514bec9825d2430abc36decacf0
[ "Apache-2.0" ]
166
2019-05-16T23:46:08.000Z
2022-03-31T05:20:23.000Z
events/migrations/0040_event_team_size.py
horacexd/clist
9759dfea97b86514bec9825d2430abc36decacf0
[ "Apache-2.0" ]
92
2020-01-18T22:51:53.000Z
2022-03-12T01:23:57.000Z
events/migrations/0040_event_team_size.py
VadVergasov/clist
4afcdfe88250d224043b28efa511749347cec71c
[ "Apache-2.0" ]
23
2020-02-09T17:38:43.000Z
2021-12-09T14:39:07.000Z
# Generated by Django 2.2.10 on 2020-04-03 19:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('events', '0039_event_limits'), ] operations = [ migrations.AddField( model_name='event', name='team_size', ...
19.947368
49
0.591029
285
0.751979
0
0
0
0
0
0
93
0.245383
9cd9c5db682a634d72e6f3ad900937179bb19d00
1,303
py
Python
src/origin_ledger_sdk/batch.py
project-origin/ledger-sdk-python
46212e17e19f1d534c1717d3f3714f791731adea
[ "MIT" ]
null
null
null
src/origin_ledger_sdk/batch.py
project-origin/ledger-sdk-python
46212e17e19f1d534c1717d3f3714f791731adea
[ "MIT" ]
null
null
null
src/origin_ledger_sdk/batch.py
project-origin/ledger-sdk-python
46212e17e19f1d534c1717d3f3714f791731adea
[ "MIT" ]
null
null
null
from enum import Enum from typing import List from sawtooth_sdk.protobuf.batch_pb2 import BatchHeader from sawtooth_sdk.protobuf.batch_pb2 import Batch as SignedBatch from .requests import AbstractRequest from .requests.helpers import get_signer class BatchStatus(Enum): UNKNOWN = 'UNKNOWN' PENDING = 'PENDIN...
30.302326
101
0.707598
1,049
0.805065
0
0
0
0
0
0
38
0.029163
9cda6fa4db3a1a7b7de2d18f55af0184ab0c8ffc
1,290
py
Python
pybud/tests/search_algos.py
Tantan4321/PyBud
7f9ac026f0b04296ffaa7fad9f905c1374ba7008
[ "MIT" ]
11
2020-01-23T08:30:15.000Z
2022-02-11T04:12:30.000Z
pybud/tests/search_algos.py
Tantan4321/PyBud
7f9ac026f0b04296ffaa7fad9f905c1374ba7008
[ "MIT" ]
5
2020-02-15T16:44:24.000Z
2022-01-13T02:07:48.000Z
pybud/tests/search_algos.py
Tantan4321/PyBud
7f9ac026f0b04296ffaa7fad9f905c1374ba7008
[ "MIT" ]
3
2020-02-15T16:30:02.000Z
2020-08-19T06:58:35.000Z
# Implemented from: https://stackoverflow.com/questions/9501337/binary-search-algorithm-in-python def binary_search(sequence, value): lo, hi = 0, len(sequence) - 1 while lo <= hi: mid = (lo + hi) // 2 if sequence[mid] < value: lo = mid + 1 elif value < sequence[mid]: ...
30
120
0.599225
0
0
0
0
0
0
0
0
454
0.351938
9cdaf7e31350059d27162184ea87fbd63d36f82d
409
py
Python
dust/exe.py
tanico-rikudo/raspi4
ead6064ee5eaf0fb3459487047903aeb031189b7
[ "MIT" ]
null
null
null
dust/exe.py
tanico-rikudo/raspi4
ead6064ee5eaf0fb3459487047903aeb031189b7
[ "MIT" ]
null
null
null
dust/exe.py
tanico-rikudo/raspi4
ead6064ee5eaf0fb3459487047903aeb031189b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import RPi.GPIO as GPIO import time from datetime import datetime as dt import logging import json import sys from particle_counter import ParticleCounter # Make instance device001 = ParticleCounter(30) # Set signal pin device001.set_pin_number(PIN=14) # Excute devic...
16.36
45
0.753056
0
0
0
0
0
0
0
0
107
0.261614
9cdb60e1aaf4a83afb78be721e50868f4655f336
7,548
py
Python
localization/pipeline/InstLoc.py
cameronwp/MMGIS
5e6277bd4f0c8ff77cd12dce51d41abffe0ac394
[ "Apache-2.0", "Unlicense" ]
63
2019-03-28T18:46:55.000Z
2022-03-25T02:49:24.000Z
localization/pipeline/InstLoc.py
cameronwp/MMGIS
5e6277bd4f0c8ff77cd12dce51d41abffe0ac394
[ "Apache-2.0", "Unlicense" ]
75
2019-10-14T08:54:18.000Z
2022-03-30T02:33:29.000Z
localization/pipeline/InstLoc.py
cameronwp/MMGIS
5e6277bd4f0c8ff77cd12dce51d41abffe0ac394
[ "Apache-2.0", "Unlicense" ]
15
2019-12-15T11:26:01.000Z
2022-03-25T02:49:27.000Z
#! /usr/local/msl/bin/python #****************************************************************************** # InstLoc.py <image.IMG/VIC> # # Project: Instrument Loco String for a given file # Purpose: Localizations stored in python dictionary # # Author: Hallie Gengl # # Updated: 8/24/1...
36.640777
96
0.631028
0
0
0
0
0
0
0
0
3,111
0.412162
9cdba0c221d3aaee83d43e1867607d88a6d826b5
4,758
py
Python
bdpy/fig/fig.py
kencan7749/bdpy
75b909742aa4767f09823cc98a588c41848292a9
[ "MIT" ]
null
null
null
bdpy/fig/fig.py
kencan7749/bdpy
75b909742aa4767f09823cc98a588c41848292a9
[ "MIT" ]
null
null
null
bdpy/fig/fig.py
kencan7749/bdpy
75b909742aa4767f09823cc98a588c41848292a9
[ "MIT" ]
null
null
null
'''Figure module This file is a part of BdPy. Functions --------- makefigure Create a figure box_off Remove upper and right axes draw_footnote Draw footnote on a figure ''' __all__ = [ 'box_off', 'draw_footnote', 'make_violinplots', 'makefigure', ] import matplotlib.pyplot as plt impo...
29.924528
170
0.579235
0
0
0
0
0
0
0
0
835
0.175494
9cdd5ffeb6cda836bfae0ca4a1ca1728228423f7
6,875
py
Python
brain/mastermind.py
pabvald/chatbot
17cdbce4c51eebb27dd0aa090fb9634868eb3e64
[ "MIT" ]
null
null
null
brain/mastermind.py
pabvald/chatbot
17cdbce4c51eebb27dd0aa090fb9634868eb3e64
[ "MIT" ]
null
null
null
brain/mastermind.py
pabvald/chatbot
17cdbce4c51eebb27dd0aa090fb9634868eb3e64
[ "MIT" ]
1
2020-10-29T13:38:26.000Z
2020-10-29T13:38:26.000Z
from app import app, nlp from brain import ACTIONS, LANGUAGES from dateparser import parse from datetime import datetime, date from services import UserService, IntentService, AppointmentService from utils import get_content class MasterMind(object): """ MasterMind class """ def __init__(self, user_servi...
39.285714
112
0.620945
6,647
0.966836
0
0
253
0.0368
0
0
1,374
0.199855
9cdd6d64010e9c068a5d368c4a2af2b0acb6a55f
628
py
Python
isValidParentheses.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
isValidParentheses.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
isValidParentheses.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
class Solution: # @param {string} s A string # @return {boolean} whether the string is a valid parentheses def isValidParentheses(self, s): stack = [] dict = {"]": "[", "}": "{", ")": "("} for char in s: if char in dict.values(): stack.append(char) ...
33.052632
65
0.488854
568
0.904459
0
0
0
0
0
0
153
0.243631
9cde9f8cf5534efc1b5cec7d28cf00865e25ee25
113
py
Python
fpakman/core/resource.py
vinifmor/fpakman
a719991b8f7ecf366d44fdf074f5950767bdf121
[ "Zlib" ]
39
2019-06-15T08:27:12.000Z
2021-11-08T03:33:01.000Z
fpakman/core/resource.py
vinifmor/fpakman
a719991b8f7ecf366d44fdf074f5950767bdf121
[ "Zlib" ]
10
2019-06-16T12:16:19.000Z
2020-06-21T18:49:05.000Z
fpakman/core/resource.py
vinifmor/fpakman
a719991b8f7ecf366d44fdf074f5950767bdf121
[ "Zlib" ]
3
2019-08-01T12:38:46.000Z
2020-04-30T20:40:23.000Z
from fpakman import ROOT_DIR def get_path(resource_path): return ROOT_DIR + '/resources/' + resource_path
16.142857
51
0.752212
0
0
0
0
0
0
0
0
13
0.115044
9ce11bf87b067840337b0d13348e056b624caea2
602
py
Python
studygroups/migrations/0122_auto_20190710_0605.py
p2pu/learning-circles
ccd94208ec18082f8fda6d7f21eacdd71bad6023
[ "MIT" ]
10
2016-05-03T20:41:25.000Z
2021-09-17T18:42:01.000Z
studygroups/migrations/0122_auto_20190710_0605.py
p2pu/learning-circles
ccd94208ec18082f8fda6d7f21eacdd71bad6023
[ "MIT" ]
655
2016-05-04T19:00:35.000Z
2022-03-28T13:09:20.000Z
studygroups/migrations/0122_auto_20190710_0605.py
p2pu/learning-circles
ccd94208ec18082f8fda6d7f21eacdd71bad6023
[ "MIT" ]
8
2016-05-06T10:24:27.000Z
2020-10-21T00:56:59.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2019-07-10 06:05 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('studygroups', '0121_auto_20190708_2246'), ] operations = [ migrations.Remov...
24.08
52
0.619601
444
0.737542
0
0
0
0
0
0
185
0.307309
9ce1c5f0534fa4d2972cf58a4d700be2541a140d
244
py
Python
rllib/contrib/bandits/envs/__init__.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
21,382
2016-09-26T23:12:52.000Z
2022-03-31T21:47:45.000Z
rllib/contrib/bandits/envs/__init__.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
19,689
2016-09-17T08:21:25.000Z
2022-03-31T23:59:30.000Z
rllib/contrib/bandits/envs/__init__.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
4,114
2016-09-23T18:54:01.000Z
2022-03-31T15:07:32.000Z
from ray.rllib.contrib.bandits.envs.discrete import LinearDiscreteEnv, \ WheelBanditEnv from ray.rllib.contrib.bandits.envs.parametric import ParametricItemRecoEnv __all__ = ["LinearDiscreteEnv", "WheelBanditEnv", "ParametricItemRecoEnv"]
40.666667
75
0.82377
0
0
0
0
0
0
0
0
58
0.237705
9ce27cc5df514eb99788d3adf40ed089c2be01cc
3,770
py
Python
cell.py
reachtarunhere/S-LSTM-PyTorch
72d5ffd0e0b3ac4670d1fd766232253f34b4afa3
[ "MIT" ]
5
2018-06-18T17:27:54.000Z
2020-06-15T15:24:06.000Z
cell.py
reachtarunhere/S-LSTM-PyTorch
72d5ffd0e0b3ac4670d1fd766232253f34b4afa3
[ "MIT" ]
null
null
null
cell.py
reachtarunhere/S-LSTM-PyTorch
72d5ffd0e0b3ac4670d1fd766232253f34b4afa3
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class HiddenGate(nn.Module): def __init__(self, hidden_size, input_size, bias, nonlinearity="sigmoid"): super(HiddenGate, self).__init__() self.linear = nn.Linear( 3*hidden_size + input_size + hidden_size, hidden_size,...
33.362832
78
0.644032
3,694
0.979841
0
0
0
0
0
0
380
0.100796
9ce50f572810c32e69e17aa3bf4ed997493d6ef2
94
py
Python
python/comparatist/gcm/jlloop.py
tkf/comparatist
44f30077857fc96cb77539f3fe0a7e8112f86c82
[ "MIT" ]
null
null
null
python/comparatist/gcm/jlloop.py
tkf/comparatist
44f30077857fc96cb77539f3fe0a7e8112f86c82
[ "MIT" ]
null
null
null
python/comparatist/gcm/jlloop.py
tkf/comparatist
44f30077857fc96cb77539f3fe0a7e8112f86c82
[ "MIT" ]
null
null
null
from ..utils.jl import make_prepare prepare = make_prepare("Comparatist.Simulators.gcm.loop")
31.333333
57
0.808511
0
0
0
0
0
0
0
0
33
0.351064
9ce55c50d74882644904a8b52bbb361eba5b3fff
1,268
py
Python
016_3Sum_Closest.py
adwardlee/leetcode_solutions
f386869161181e153e29165d8fff06492bb192f3
[ "MIT" ]
null
null
null
016_3Sum_Closest.py
adwardlee/leetcode_solutions
f386869161181e153e29165d8fff06492bb192f3
[ "MIT" ]
null
null
null
016_3Sum_Closest.py
adwardlee/leetcode_solutions
f386869161181e153e29165d8fff06492bb192f3
[ "MIT" ]
null
null
null
''' Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. You may assume that each input would have exactly one solution. Example: Given array nums = [-1, 2, 1, -4], and target = 1. The sum that is closest to...
34.27027
226
0.479495
906
0.714511
0
0
0
0
0
0
359
0.283123
9ce645cd6acd7ce6fe1f285499eaccb37cd50da8
7,279
py
Python
generated-libraries/python/netapp/flexcache/flexcache_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/flexcache/flexcache_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/flexcache/flexcache_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.netapp_object import NetAppObject class FlexcacheInfo(NetAppObject): """ FlexCache Info When returned as part of the output, all elements of this typedef are reported, unless limited by a set of desired attributes specified by the caller. <p> When used as input to specify desire...
31.647826
99
0.583322
7,231
0.993406
0
0
4,898
0.672895
0
0
3,376
0.4638
9ce68b411a96e5e2c7a762c40c8ad6b8d2a605b8
5,974
py
Python
corpus2graph/word_processor.py
zzcoolj/corpus2graph
0d39f5f845b70a0f42000e3afc507eb7b4b5679c
[ "MIT" ]
27
2018-06-06T16:30:45.000Z
2022-02-10T15:28:47.000Z
corpus2graph/word_processor.py
zzcoolj/corpus2graph
0d39f5f845b70a0f42000e3afc507eb7b4b5679c
[ "MIT" ]
2
2019-05-01T15:24:12.000Z
2019-08-20T20:17:19.000Z
corpus2graph/word_processor.py
zzcoolj/corpus2graph
0d39f5f845b70a0f42000e3afc507eb7b4b5679c
[ "MIT" ]
3
2019-11-10T15:39:11.000Z
2020-10-16T12:40:06.000Z
import string import warnings import re from . import util import spacy class FileParser(object): def __init__(self, file_parser='txt', xml_node_path=None, fparser=None): if file_parser not in ['txt', 'xml', 'defined']: msg = 'file_parser should be txt, xml or...
38.541935
133
0.600603
5,941
0.986549
838
0.139156
347
0.057622
0
0
1,186
0.196945
9ce7bfb4241f59939bdcb06aabfa03be7b8bc555
4,688
py
Python
gaussian/__init__.py
mattaustin/gaussian
c22ab36fd83e5f0b24587861ef34b872e268c97e
[ "Apache-2.0" ]
1
2017-06-04T23:56:54.000Z
2017-06-04T23:56:54.000Z
gaussian/__init__.py
mattaustin/gaussian
c22ab36fd83e5f0b24587861ef34b872e268c97e
[ "Apache-2.0" ]
null
null
null
gaussian/__init__.py
mattaustin/gaussian
c22ab36fd83e5f0b24587861ef34b872e268c97e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014 Matt Austin # 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 ...
32.331034
79
0.62884
3,753
0.800555
0
0
0
0
0
0
2,174
0.463737
9ce7d60aa1fddaa6c915b248970c026594e52b7a
614
py
Python
Exercise_07_RGB_LED.py
NaimFuad/hibiscus-sense-micropython-1
7475b6099315b4a12ab00f7ae5d62a2eb8ce5e0c
[ "MIT" ]
3
2021-03-04T08:20:24.000Z
2022-02-11T10:04:03.000Z
Exercise_07_RGB_LED.py
NaimFuad/hibiscus-sense-micropython-1
7475b6099315b4a12ab00f7ae5d62a2eb8ce5e0c
[ "MIT" ]
null
null
null
Exercise_07_RGB_LED.py
NaimFuad/hibiscus-sense-micropython-1
7475b6099315b4a12ab00f7ae5d62a2eb8ce5e0c
[ "MIT" ]
2
2021-02-26T10:15:57.000Z
2021-03-04T08:20:36.000Z
# Hibiscus Sense - Exercise 07 RGB LED # # There is 1x RGB LED. # This RGB LED is connected to GPIO16 and integrated with WS2812. # WS2812 is an LED controller, which use single-wire control protocol to control the LEDs. from machine import Pin from neopixel import NeoPixel from time import sleep p...
27.909091
93
0.664495
0
0
0
0
0
0
0
0
377
0.614007
9cea6c24623ad5445462ff6b79263e46ed1d41ac
4,082
py
Python
tests/k8s/k8s_test_utilities.py
shubav/sonic-mgmt
0ff71b907a55489bb4ed7d17b1682380fd459bf2
[ "Apache-2.0" ]
132
2016-10-19T12:34:44.000Z
2022-03-16T09:00:39.000Z
tests/k8s/k8s_test_utilities.py
shubav/sonic-mgmt
0ff71b907a55489bb4ed7d17b1682380fd459bf2
[ "Apache-2.0" ]
3,152
2016-09-21T23:05:58.000Z
2022-03-31T23:29:08.000Z
tests/k8s/k8s_test_utilities.py
shubav/sonic-mgmt
0ff71b907a55489bb4ed7d17b1682380fd459bf2
[ "Apache-2.0" ]
563
2016-09-20T01:00:15.000Z
2022-03-31T22:43:54.000Z
import logging import time from tests.common.helpers.assertions import pytest_assert logger = logging.getLogger(__name__) def join_master(duthost, master_vip): """ Joins DUT to Kubernetes master Args: duthost: DUT host object master_vip: VIP of high availability Kubernetes master If...
37.449541
133
0.706516
0
0
0
0
0
0
0
0
2,436
0.596766
9cea6c5884c806c3032a4309da7131c515de5453
2,467
py
Python
registryServer/apps/account/api.py
HumanDynamics/openPDS-RegistryServer
fe88f513a93c116f6bd4e2d81b29376a45f16249
[ "MIT" ]
7
2015-01-05T17:25:15.000Z
2019-06-07T05:19:53.000Z
registryServer/apps/account/api.py
HumanDynamics/openPDS-RegistryServer
fe88f513a93c116f6bd4e2d81b29376a45f16249
[ "MIT" ]
1
2015-11-10T17:16:01.000Z
2015-11-18T16:09:43.000Z
registryServer/apps/account/api.py
HumanDynamics/openPDS-RegistryServer
fe88f513a93c116f6bd4e2d81b29376a45f16249
[ "MIT" ]
13
2015-01-05T17:25:20.000Z
2021-12-16T12:43:52.000Z
from django.contrib.auth.models import User from apps.account.models import Profile, Group from tastypie import fields from tastypie.authorization import DjangoAuthorization, Authorization from tastypie.resources import ModelResource, ALL, ALL_WITH_RELATIONS from tastypie.exceptions import BadRequest from django.db imp...
39.15873
91
0.691934
1,808
0.732874
0
0
0
0
0
0
642
0.260235
9ceb3e1ccabd70fddbc1a71f663a553a5c834729
6,253
bzl
Python
rules/workspace/def.bzl
viovanov/kubecf
a8e1a1c4775b9cab072c286a99ec6140bc867eff
[ "Apache-2.0" ]
null
null
null
rules/workspace/def.bzl
viovanov/kubecf
a8e1a1c4775b9cab072c286a99ec6140bc867eff
[ "Apache-2.0" ]
null
null
null
rules/workspace/def.bzl
viovanov/kubecf
a8e1a1c4775b9cab072c286a99ec6140bc867eff
[ "Apache-2.0" ]
1
2020-08-18T09:10:43.000Z
2020-08-18T09:10:43.000Z
"""An extension for workspace rules.""" load("@bazel_skylib//lib:paths.bzl", "paths") load("//:dependencies.bzl", "dependencies") def _workspace_dependencies_impl(ctx): platform = ctx.os.name if ctx.os.name != "mac os x" else "darwin" for dependency in dependencies: ctx.download( executabl...
34.932961
98
0.621142
0
0
0
0
0
0
0
0
1,700
0.27187
9ceb4adfae2836973eb415f54317fb6036b876ab
2,010
py
Python
tests/surftrace_test.py
aliyun/surftrace
c3e7856d69c1f73cec5bb2b0f4d41a35b2ff63b1
[ "MIT" ]
32
2021-12-27T11:54:37.000Z
2022-03-25T05:14:51.000Z
tests/surftrace_test.py
aliyun/surftrace
c3e7856d69c1f73cec5bb2b0f4d41a35b2ff63b1
[ "MIT" ]
8
2022-01-07T02:29:05.000Z
2022-03-02T08:16:09.000Z
tests/surftrace_test.py
aliyun/surftrace
c3e7856d69c1f73cec5bb2b0f4d41a35b2ff63b1
[ "MIT" ]
10
2022-01-05T11:41:14.000Z
2022-03-22T08:46:00.000Z
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: surftrace_test.py Description : Author : liaozhaoyan date: 2022/2/27 ------------------------------------------------- Change Activity: 2022/2/27: -------------------------------...
28.714286
225
0.571144
0
0
0
0
0
0
0
0
1,187
0.589374
9ced7b3c51ed7b3bb5bdd6b331b57b879e9a8dab
834
py
Python
backend/secure_backend/models.py
CS-twop/Secure-django-reacthook
3d7b3e65c7e1f1e015dcd3ddf2838acdab7cab17
[ "MIT" ]
null
null
null
backend/secure_backend/models.py
CS-twop/Secure-django-reacthook
3d7b3e65c7e1f1e015dcd3ddf2838acdab7cab17
[ "MIT" ]
null
null
null
backend/secure_backend/models.py
CS-twop/Secure-django-reacthook
3d7b3e65c7e1f1e015dcd3ddf2838acdab7cab17
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class Post(models.Model): user = models.ForeignKey(User, related_name='posts', on_delete=models.CASCADE) content = models.TextField() created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=...
36.26087
88
0.721823
757
0.907674
0
0
0
0
0
0
38
0.045564
9ceda4c07b42ed0db1090dd1d2bfcc6805e799d2
560
py
Python
tests/test_database.py
horsewithnoname1985/packit-app
afe83472f092ff1447ae8ae56c99d78792d5bc59
[ "MIT" ]
null
null
null
tests/test_database.py
horsewithnoname1985/packit-app
afe83472f092ff1447ae8ae56c99d78792d5bc59
[ "MIT" ]
null
null
null
tests/test_database.py
horsewithnoname1985/packit-app
afe83472f092ff1447ae8ae56c99d78792d5bc59
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `database` module.""" import pytest import os import sqlite3 from packit_app.database import Database def test_database_connection(): db = Database() assert type(db.cur) is sqlite3.Cursor assert type(db.connection) is sqlite3.Connection asse...
23.333333
60
0.725
0
0
0
0
0
0
0
0
114
0.203571
9ceeadf5aa7e878adeab42926d0d1a41ef275e04
3,943
py
Python
SS-GCNs/gnns/gin_net.py
TAMU-VITA/SS-GCNs
644f8a5f3b507be6d59be02747be406fabd8b8f9
[ "MIT" ]
1
2021-06-07T15:18:10.000Z
2021-06-07T15:18:10.000Z
SS-GCNs/gnns/gin_net.py
TAMU-VITA/SS-GCNs
644f8a5f3b507be6d59be02747be406fabd8b8f9
[ "MIT" ]
null
null
null
SS-GCNs/gnns/gin_net.py
TAMU-VITA/SS-GCNs
644f8a5f3b507be6d59be02747be406fabd8b8f9
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import dgl from dgl.nn.pytorch.glob import SumPooling, AvgPooling, MaxPooling """ GIN: Graph Isomorphism Networks HOW POWERFUL ARE GRAPH NEURAL NETWORKS? (Keyulu Xu, Weihua Hu, Jure Leskovec and Stefanie Jegelka, ICLR 2019) https://arxiv.o...
33.700855
113
0.584834
3,520
0.892721
0
0
0
0
0
0
693
0.175755
9cef8673569c093f97353e11647a929d7f02a79c
96
py
Python
venv/lib/python3.8/site-packages/clikit/api/command/command_collection.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/clikit/api/command/command_collection.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/clikit/api/command/command_collection.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/0e/03/a2/8516ce170f58c40a340c994a5cb76273f276d7ad1ea824422b51c9e45c
96
96
0.895833
0
0
0
0
0
0
0
0
0
0
9cf04e104c24bd87afecb5f1f99c9dd473ed1508
5,080
py
Python
common/py_vulcanize/third_party/rjsmin/_setup/py2/data.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
common/py_vulcanize/third_party/rjsmin/_setup/py2/data.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
common/py_vulcanize/third_party/rjsmin/_setup/py2/data.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
# -*- coding: ascii -*- # # Copyright 2007, 2008, 2009, 2010, 2011 # Andr\xe9 Malo or his licensors, as applicable # # 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.or...
30.60241
75
0.598622
3,093
0.608858
0
0
0
0
0
0
1,379
0.271457
9cf45647d9d8c0126932e004da932d00ac6a9682
189
py
Python
payments/urls.py
caocmai/maker
bec025c3301a21e75638aca28576c724b44e259f
[ "MIT" ]
null
null
null
payments/urls.py
caocmai/maker
bec025c3301a21e75638aca28576c724b44e259f
[ "MIT" ]
8
2020-06-06T01:12:07.000Z
2021-06-10T19:38:47.000Z
payments/urls.py
caocmai/Maker
bec025c3301a21e75638aca28576c724b44e259f
[ "MIT" ]
1
2020-03-05T08:11:39.000Z
2020-03-05T08:11:39.000Z
from django.urls import path from . import views urlpatterns = [ path('charge/', views.charge, name='charge'), path('payment/', views.HomePageView.as_view(), name='payment'), ]
17.181818
67
0.671958
0
0
0
0
0
0
0
0
36
0.190476
9cf644b1b80793072b365bad95258387b0ed2c8b
122
py
Python
cdc/src/__init__.py
ZebinKang/cdc
a32fe41892021d29a1d9c534728a92b67f9b6cea
[ "MIT" ]
null
null
null
cdc/src/__init__.py
ZebinKang/cdc
a32fe41892021d29a1d9c534728a92b67f9b6cea
[ "MIT" ]
null
null
null
cdc/src/__init__.py
ZebinKang/cdc
a32fe41892021d29a1d9c534728a92b67f9b6cea
[ "MIT" ]
null
null
null
from NoteDeid import * from NoteConceptParser import * from Converter import * from D2v import * from MLPipeline import *
20.333333
31
0.795082
0
0
0
0
0
0
0
0
0
0
9cf660cb297e4f4275f9be8ec5a0164060234d14
1,207
py
Python
src/education/urls.py
compressore/moc
8e05e3e60d2d2c7534e0c659b6ed0743e9189f6b
[ "MIT" ]
4
2020-10-14T15:35:07.000Z
2022-01-13T15:31:16.000Z
src/education/urls.py
compressore/moc
8e05e3e60d2d2c7534e0c659b6ed0743e9189f6b
[ "MIT" ]
null
null
null
src/education/urls.py
compressore/moc
8e05e3e60d2d2c7534e0c659b6ed0743e9189f6b
[ "MIT" ]
2
2021-01-07T14:39:05.000Z
2022-01-18T12:31:50.000Z
from django.urls import path from . import views from core import views as core from community import views as community from library import views as library from ie.urls_baseline import baseline_urlpatterns from ie.urls_education_baseline import baseline_education_urlpatterns app_name = "education" urlpatterns = bas...
52.478261
128
0.785418
0
0
0
0
0
0
0
0
431
0.357084
9cf6c6a73f439ca6c05d3204935a74fc4fd76abd
7,138
py
Python
flowsa/data_source_scripts/StatCan_IWS_MI.py
JohnAndrewTaylor/flowsa
21b14b19f08370db574bdd59219a2773983c6f95
[ "CC0-1.0" ]
null
null
null
flowsa/data_source_scripts/StatCan_IWS_MI.py
JohnAndrewTaylor/flowsa
21b14b19f08370db574bdd59219a2773983c6f95
[ "CC0-1.0" ]
null
null
null
flowsa/data_source_scripts/StatCan_IWS_MI.py
JohnAndrewTaylor/flowsa
21b14b19f08370db574bdd59219a2773983c6f95
[ "CC0-1.0" ]
null
null
null
# Stat_Canada.py (flowsa) # !/usr/bin/env python3 # coding=utf-8 ''' Pulls Statistics Canada data on water intake and discharge for 3 digit NAICS from 2005 - 2015 ''' import pandas as pd import io import zipfile import pycountry from flowsa.common import * def sc_call(url, sc_response, args): """ Convert res...
41.260116
118
0.64738
0
0
0
0
0
0
0
0
3,734
0.523116
9cf6cf2875b70b62f98a1356560f801938cbd27e
3,952
py
Python
extra_foam/pipeline/f_zmq.py
scottwedge/EXtra-foam
9a170e3097987bf8abf30abb64a52439624367b8
[ "BSD-3-Clause" ]
null
null
null
extra_foam/pipeline/f_zmq.py
scottwedge/EXtra-foam
9a170e3097987bf8abf30abb64a52439624367b8
[ "BSD-3-Clause" ]
null
null
null
extra_foam/pipeline/f_zmq.py
scottwedge/EXtra-foam
9a170e3097987bf8abf30abb64a52439624367b8
[ "BSD-3-Clause" ]
null
null
null
""" Distributed under the terms of the BSD 3-Clause License. The full license is in the file LICENSE, distributed with this software. Author: Jun Zhu <jun.zhu@xfel.eu> Copyright (C) European X-Ray Free-Electron Laser Facility GmbH. All rights reserved. """ from collections import deque from threading import Event im...
30.167939
73
0.607034
3,523
0.891447
0
0
1,724
0.436235
0
0
1,006
0.254555
9cf85aaa6823aec72d799dfb11b9d01b66e08e59
1,017
py
Python
src/supervisor/supervisor_loader.py
Telsanyr/Johnny_VI
db9f54457c33b1f70616671611e6bc4fc4c44d1b
[ "WTFPL" ]
6
2018-08-07T14:57:58.000Z
2020-02-13T18:43:49.000Z
src/supervisor/supervisor_loader.py
Telsanyr/Johnny_VI
db9f54457c33b1f70616671611e6bc4fc4c44d1b
[ "WTFPL" ]
2
2018-08-08T12:12:28.000Z
2018-08-23T12:46:25.000Z
src/supervisor/supervisor_loader.py
Telsanyr/Johnny_VI
db9f54457c33b1f70616671611e6bc4fc4c44d1b
[ "WTFPL" ]
1
2018-08-07T14:51:15.000Z
2018-08-07T14:51:15.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- # coding: utf8 # This is a module loader. It will reload all the files dedicated to the module # each time it is reloaded. Therefore, any code modification will be taken into # account. # Moreover, because all files are loaded in the same module. All classes and # global va...
46.227273
100
0.771878
0
0
0
0
0
0
0
0
833
0.819076
9cf88f9c3c66dc987145112c9d9843d8bd9f0a49
849
py
Python
todolist/todos/migrations/0002_sharetodolist.py
abdu1aziz/todo-list-app
698cc046ea4cf9259f8e9830a33166dc6d222abe
[ "MIT" ]
null
null
null
todolist/todos/migrations/0002_sharetodolist.py
abdu1aziz/todo-list-app
698cc046ea4cf9259f8e9830a33166dc6d222abe
[ "MIT" ]
null
null
null
todolist/todos/migrations/0002_sharetodolist.py
abdu1aziz/todo-list-app
698cc046ea4cf9259f8e9830a33166dc6d222abe
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-09-23 06:48 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('todos', '0001_initial'), ...
32.653846
125
0.640754
692
0.815077
0
0
0
0
0
0
127
0.149588
9cfa1227d896963056de524d0c2b24fd87570c59
4,350
py
Python
keyboard/mechanical-button/single-button/keyboard.py
ELE-Clouds/mpy-lib
76a45072357fed3fc8dde75260585622057896da
[ "MIT" ]
116
2018-07-16T14:48:44.000Z
2022-03-16T15:24:54.000Z
keyboard/mechanical-button/single-button/keyboard.py
ELE-Clouds/mpy-lib
76a45072357fed3fc8dde75260585622057896da
[ "MIT" ]
8
2018-07-11T14:00:30.000Z
2022-01-20T01:30:09.000Z
keyboard/mechanical-button/single-button/keyboard.py
ELE-Clouds/mpy-lib
76a45072357fed3fc8dde75260585622057896da
[ "MIT" ]
66
2018-07-11T08:50:00.000Z
2022-03-28T15:36:00.000Z
# -*- coding:UTF-8 -*- ''' MIT License Copyright (c) 2018 Robin Chen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, co...
46.276596
163
0.554713
3,436
0.672934
0
0
0
0
0
0
2,865
0.561105
9cfa728536bee61e0fd7a0cb5ca6747960450394
869
py
Python
dataanalysis/mopitt_data_analysis.py
s-ai-kia/nasa_stf
cc60cf7f74c77a78dc8fa1140d787614fc4cca7b
[ "MIT" ]
1
2020-10-05T04:11:45.000Z
2020-10-05T04:11:45.000Z
dataanalysis/mopitt_data_analysis.py
s-ai-kia/nasa_stf
cc60cf7f74c77a78dc8fa1140d787614fc4cca7b
[ "MIT" ]
null
null
null
dataanalysis/mopitt_data_analysis.py
s-ai-kia/nasa_stf
cc60cf7f74c77a78dc8fa1140d787614fc4cca7b
[ "MIT" ]
3
2020-12-13T19:36:09.000Z
2021-11-25T19:01:51.000Z
# -*- coding: utf-8 -*- """mopitt_data_analysis.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1bb_9kuO0Suo5761xgJioS84TrEdR5ojj """ import pandas as pd df = pd.read_csv('MOP02J-20200101-L2V18.0.3.csv') df.head() df tx = df[0:5000] tx import...
21.195122
95
0.715765
0
0
0
0
0
0
0
0
334
0.38435
9cfa74671b912301e99e5c7c844894769aef765f
5,413
py
Python
main.py
dkendrick/starterbot
2b8d14ddf4c18583e8c5656f8268478c07089d41
[ "BSD-2-Clause" ]
2
2021-11-30T06:33:17.000Z
2021-12-05T22:50:15.000Z
main.py
dkendrick/starterbot
2b8d14ddf4c18583e8c5656f8268478c07089d41
[ "BSD-2-Clause" ]
null
null
null
main.py
dkendrick/starterbot
2b8d14ddf4c18583e8c5656f8268478c07089d41
[ "BSD-2-Clause" ]
null
null
null
import bybit import math import pandas as pd import time from datetime import datetime from dateutil.relativedelta import relativedelta # settings num_orders = 3 order_size = 1 order_distance = 10 sl_risk = 0.03 tp_distance = 5 api_key = "YOUR_KEY" api_secret = "YOUR_SECRET" client = bybit.bybit(test=False, api_key=...
31.841176
78
0.661001
0
0
0
0
0
0
0
0
628
0.116017
9cfab5f5e7ac823ca82f349ba7f74d5b096b4a5a
177
py
Python
Chapter 11/Chapter 06/app1.py
bpbpublications/Building-Web-Apps-with-Python-and-Flask
4fbbe75fad9629f16ff5bf8bd603aa09dd04f9eb
[ "MIT" ]
2
2021-05-08T23:10:12.000Z
2021-05-10T14:33:27.000Z
Chapter 11/Chapter 06/app1.py
bpbpublications/Building-Web-Apps-with-Python-and-Flask
4fbbe75fad9629f16ff5bf8bd603aa09dd04f9eb
[ "MIT" ]
null
null
null
Chapter 11/Chapter 06/app1.py
bpbpublications/Building-Web-Apps-with-Python-and-Flask
4fbbe75fad9629f16ff5bf8bd603aa09dd04f9eb
[ "MIT" ]
1
2021-07-08T19:17:53.000Z
2021-07-08T19:17:53.000Z
from flask import Flask, render_template print (__name__) app = Flask(__name__) @app.route('/<name>') def hello(name): return render_template("btn.html", name=name)
22.125
50
0.700565
0
0
0
0
90
0.508475
0
0
19
0.107345
9cfafb2073c9a3aff02273b967553d1d40af2ae0
936
py
Python
app/models/Article.py
ngedev/hypexblog
9e4b93ed119ff52afb6b67d00df2b26fe09f7e05
[ "MIT" ]
null
null
null
app/models/Article.py
ngedev/hypexblog
9e4b93ed119ff52afb6b67d00df2b26fe09f7e05
[ "MIT" ]
5
2021-03-08T05:07:37.000Z
2021-03-12T08:00:41.000Z
app/models/Article.py
ngedev/hypexblog
9e4b93ed119ff52afb6b67d00df2b26fe09f7e05
[ "MIT" ]
null
null
null
from datetime import datetime from sqlalchemy import ( Boolean, Column, DateTime, ForeignKey, Integer, String, UnicodeText, ) from sqlalchemy.orm import relationship from zemfrog.globals import db class Article(db.Model): id = Column(Integer, primary_key=True) user_id = Column(For...
28.363636
69
0.708333
704
0.752137
0
0
0
0
0
0
54
0.057692
9cfb46ed6b05cd0d4c7a16a81985cf1b4466d0db
7,079
py
Python
apps/combine-api/tests/run/test_run_get_simulators.py
freiburgermsu/biosimulations
1c4f604f67c0924b58e1a3a45378c86bab7ace5b
[ "MIT" ]
20
2021-09-05T02:47:07.000Z
2022-01-25T10:46:47.000Z
apps/combine-api/tests/run/test_run_get_simulators.py
freiburgermsu/biosimulations
1c4f604f67c0924b58e1a3a45378c86bab7ace5b
[ "MIT" ]
1,884
2020-08-23T17:40:26.000Z
2021-09-01T16:29:20.000Z
apps/combine-api/tests/run/test_run_get_simulators.py
freiburgermsu/biosimulations
1c4f604f67c0924b58e1a3a45378c86bab7ace5b
[ "MIT" ]
2
2019-11-04T15:08:05.000Z
2020-01-02T21:17:51.000Z
from biosimulators_utils.config import get_config from src import app from src.handlers.run.utils import get_simulator_api, get_simulators, exec_in_subprocess from unittest import mock import os import parameterized import pytest import requests import shutil import tempfile import unittest class GetSimulatorsTestCas...
42.136905
137
0.621133
6,215
0.877949
0
0
4,369
0.617178
0
0
2,000
0.282526
9cfc5d4e4bd363a9f3917be257e6f8a8b0661722
2,372
py
Python
simulator/flow_change_gen.py
faywh/read_ez
d26a14aed473291b896664faf284ef3027c8be90
[ "Apache-2.0" ]
7
2017-05-28T21:00:09.000Z
2021-04-05T16:14:07.000Z
simulator/flow_change_gen.py
faywh/read_ez
d26a14aed473291b896664faf284ef3027c8be90
[ "Apache-2.0" ]
null
null
null
simulator/flow_change_gen.py
faywh/read_ez
d26a14aed473291b896664faf284ef3027c8be90
[ "Apache-2.0" ]
3
2018-12-27T07:59:30.000Z
2021-05-02T07:47:42.000Z
import argparse import os import random from random import Random from misc import logger from domain.network_premitives import * from flow_gen.link_failure_change_generator import LinkFailureChangeGenerator from flow_gen.random_change_generator import RandomChangeGenerator if __name__ == '__main__': parser = arg...
43.127273
89
0.637437
0
0
0
0
0
0
0
0
338
0.142496
9cfcd175b4c5f0ab48925d1924fe24b3bfba9048
6,020
py
Python
pyccel/codegen/python_wrapper.py
noushi/pyccel
f20846897ba2418dc0f432e293bcf8b4ddb24915
[ "MIT" ]
null
null
null
pyccel/codegen/python_wrapper.py
noushi/pyccel
f20846897ba2418dc0f432e293bcf8b4ddb24915
[ "MIT" ]
null
null
null
pyccel/codegen/python_wrapper.py
noushi/pyccel
f20846897ba2418dc0f432e293bcf8b4ddb24915
[ "MIT" ]
1
2021-01-08T12:32:51.000Z
2021-01-08T12:32:51.000Z
# coding: utf-8 #------------------------------------------------------------------------------------------# # This file is part of Pyccel which is released under MIT License. See the LICENSE file or # # go to https://github.com/pyccel/pyccel/blob/master/LICENSE for full license details. # #------------------------...
36.932515
106
0.563123
0
0
0
0
0
0
0
0
1,327
0.220432
14007734f5d8729d94671298f144bda00fec3b3f
151
py
Python
src/third_party_module/upload_self_define_module/nester/nester.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/third_party_module/upload_self_define_module/nester/nester.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/third_party_module/upload_self_define_module/nester/nester.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
def print_lol(arr): for row in arr: if (isinstance(row, list)): print_lol(row) else: print row
18.875
35
0.456954
0
0
0
0
0
0
0
0
0
0
1400bb84d2be3b7726e6ee57bf54f265059abc0e
8,471
py
Python
xds_plot_integrate.py
keitaroyam/yam_scripts
aa1346be02050032a96f3ea89e5fc836d05c71ea
[ "BSD-3-Clause" ]
2
2018-04-13T21:35:15.000Z
2020-04-01T07:59:10.000Z
xds_plot_integrate.py
keitaroyam/yam_scripts
aa1346be02050032a96f3ea89e5fc836d05c71ea
[ "BSD-3-Clause" ]
null
null
null
xds_plot_integrate.py
keitaroyam/yam_scripts
aa1346be02050032a96f3ea89e5fc836d05c71ea
[ "BSD-3-Clause" ]
1
2021-12-20T11:04:01.000Z
2021-12-20T11:04:01.000Z
#!/usr/bin/env cctbx.python from __future__ import print_function """ xds_plot_integrate.py (c) RIKEN 2015. All rights reserved. Author: Keitaro Yamashita This software is released under the new BSD License; see LICENSE. """ """ TODO: plot differences in direct beam and rotation axis """ import sys import re import...
36.830435
229
0.557785
4,616
0.544918
0
0
0
0
0
0
2,735
0.322866
1405014d276e1aee0a9bda8aef0a811359dd4eed
732
py
Python
app/models.py
JoyWambui/habari-gani
7c5b33b3b1237efe977dd25e1c9f3c8130f4a756
[ "MIT" ]
null
null
null
app/models.py
JoyWambui/habari-gani
7c5b33b3b1237efe977dd25e1c9f3c8130f4a756
[ "MIT" ]
null
null
null
app/models.py
JoyWambui/habari-gani
7c5b33b3b1237efe977dd25e1c9f3c8130f4a756
[ "MIT" ]
null
null
null
class Source: """Source class to define News Source Objects""" def __init__(self,id,name,description,url,category,country): self.id = id self.name = name self.description = description self.url = url self.category = category self.country = country class Article:...
31.826087
96
0.670765
720
0.983607
0
0
0
0
0
0
111
0.151639
14069f69e286ba7e7815086e118f09ac462708fd
823
py
Python
sionna/channel/tr38901/__init__.py
NVlabs/sionna
488e6c3ff6ff2b3313d0ca0f94e4247b8dd6ff35
[ "Apache-2.0" ]
163
2022-03-22T19:47:47.000Z
2022-03-31T23:56:45.000Z
sionna/channel/tr38901/__init__.py
Maryammhsnv/sionna
527d0f7866b379afffad34a6bef7ed3bf6f33ad2
[ "Apache-2.0" ]
2
2022-03-24T12:43:07.000Z
2022-03-29T07:17:16.000Z
sionna/channel/tr38901/__init__.py
Maryammhsnv/sionna
527d0f7866b379afffad34a6bef7ed3bf6f33ad2
[ "Apache-2.0" ]
19
2022-03-23T02:31:22.000Z
2022-03-30T06:35:12.000Z
# # SPDX-FileCopyrightText: Copyright (c) 2021-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # """ Channel sub-package of the Sionna library implementing 3GPP TR39.801 models. """ # pylint: disable=line-too-long from .antenna import AntennaElement, AntennaPanel, Pane...
32.92
103
0.818955
0
0
0
0
0
0
0
0
257
0.312272
14093ba2d1d6dad0f8503fb3ff80ec728afb186e
85
wsgi
Python
katty.wsgi
gabeg805/KattyWebApplication
16ecd9715f4da9fd4e82a840969e7edfa259d14c
[ "MIT" ]
null
null
null
katty.wsgi
gabeg805/KattyWebApplication
16ecd9715f4da9fd4e82a840969e7edfa259d14c
[ "MIT" ]
null
null
null
katty.wsgi
gabeg805/KattyWebApplication
16ecd9715f4da9fd4e82a840969e7edfa259d14c
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, '/var/www/katty') from index import app as application
21.25
36
0.764706
0
0
0
0
0
0
0
0
16
0.188235
14096a47f1fb73f1f3a7e9c4907910efec6fe0b3
5,632
py
Python
P_bot_TOR.py
derhornspieler/Scavenger
f0cc4c12edea871a74512278781cb10287078023
[ "Apache-2.0" ]
1
2019-12-14T00:28:35.000Z
2019-12-14T00:28:35.000Z
P_bot_TOR.py
derhornspieler/Scavenger
f0cc4c12edea871a74512278781cb10287078023
[ "Apache-2.0" ]
null
null
null
P_bot_TOR.py
derhornspieler/Scavenger
f0cc4c12edea871a74512278781cb10287078023
[ "Apache-2.0" ]
null
null
null
###### # If you do not want to post results on Twitter remove the lines marked with TWITTER ###### import time import tweepy import os import classes.utility import requests from bs4 import BeautifulSoup, SoupStrainer tools = classes.utility.ScavUtility() iterator = 1 session = requests.session() session.proxies = {}...
39.111111
173
0.635298
0
0
0
0
0
0
0
0
2,068
0.367188
140ab3e208fd8520fd27c0b61a95fd2da405a3b2
428
py
Python
core/templatetags/extras.py
bugulin/gymgeek-web
1def491392add2526fb0e8a53098d49ad2fdf983
[ "Apache-2.0" ]
null
null
null
core/templatetags/extras.py
bugulin/gymgeek-web
1def491392add2526fb0e8a53098d49ad2fdf983
[ "Apache-2.0" ]
null
null
null
core/templatetags/extras.py
bugulin/gymgeek-web
1def491392add2526fb0e8a53098d49ad2fdf983
[ "Apache-2.0" ]
null
null
null
from django import template from django.template.defaultfilters import stringfilter from django.utils.safestring import mark_safe from docutils.core import publish_parts register = template.Library() @register.filter(name='rst') @stringfilter def rst_to_html5(text): parts = publish_parts(text, writer_name='html5'...
32.923077
100
0.794393
0
0
0
0
225
0.525701
0
0
52
0.121495
140bd4371229916c2d5f56c52a91980370ca0a17
35,931
py
Python
aether/sdk/auth/keycloak/tests/test_keycloak.py
eHealthAfrica/aether-django-sdk-library
fc371af89bfed155d465049320f32bf43860d001
[ "Apache-2.0" ]
1
2020-05-04T21:05:11.000Z
2020-05-04T21:05:11.000Z
aether/sdk/auth/keycloak/tests/test_keycloak.py
eHealthAfrica/aether-django-sdk-library
fc371af89bfed155d465049320f32bf43860d001
[ "Apache-2.0" ]
3
2019-09-30T15:45:43.000Z
2020-04-29T08:12:37.000Z
aether/sdk/auth/keycloak/tests/test_keycloak.py
eHealthAfrica/aether-django-sdk-library
fc371af89bfed155d465049320f32bf43860d001
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019 by eHealth Africa : http://www.eHealthAfrica.org # # See the NOTICE file distributed with this work for additional information # regarding copyright ownership. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with # the License. Y...
43.238267
99
0.544627
34,421
0.957975
0
0
27,790
0.773427
0
0
10,421
0.290028
140dfac64786934c620c3477a54ffeec5d9625f8
1,083
py
Python
ballet/__init__.py
HDI-Project/fhub_core
9667a47fbd8b4caf2e92118dc5357f34aae2098b
[ "MIT" ]
19
2021-04-06T18:56:39.000Z
2022-03-15T00:23:00.000Z
ballet/__init__.py
HDI-Project/ballet
9667a47fbd8b4caf2e92118dc5357f34aae2098b
[ "MIT" ]
52
2018-09-27T01:11:58.000Z
2021-03-24T19:11:18.000Z
ballet/__init__.py
HDI-Project/ballet
9667a47fbd8b4caf2e92118dc5357f34aae2098b
[ "MIT" ]
3
2019-12-07T17:55:34.000Z
2021-02-02T17:58:39.000Z
# -*- coding: utf-8 -*- """Top-level package for ballet.""" __author__ = 'Micah Smith' __email__ = 'micahs@mit.edu' __version__ = '0.19.5' # filter warnings import warnings # noqa E402 warnings.filterwarnings( action='ignore', module='scipy', message='^internal gelsd') # silence sklearn deprecation warnings im...
27.769231
67
0.753463
0
0
0
0
0
0
0
0
435
0.401662
140e681121ae14e453921573cd7aea566206c1e5
8,816
py
Python
darling_ansible/python_venv/lib/python3.7/site-packages/oci/apigateway/models/cors_policy.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/apigateway/models/cors_policy.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/apigateway/models/cors_policy.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
1
2020-06-25T03:12:58.000Z
2020-06-25T03:12:58.000Z
# coding: utf-8 # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
36.733333
245
0.674342
8,276
0.938748
0
0
8,306
0.942151
0
0
6,315
0.716311
140ff5919b9d8c9821b371db5ca4896db28bf7f0
1,549
py
Python
tests/layers.py
jiansowa/PaddleSlim
a45431c99a775782b7fe5633f313d36ff582e797
[ "Apache-2.0" ]
null
null
null
tests/layers.py
jiansowa/PaddleSlim
a45431c99a775782b7fe5633f313d36ff582e797
[ "Apache-2.0" ]
1
2020-07-14T09:50:51.000Z
2020-07-14T09:50:51.000Z
tests/layers.py
jiansowa/PaddleSlim
a45431c99a775782b7fe5633f313d36ff582e797
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
34.422222
74
0.639768
0
0
0
0
0
0
0
0
661
0.426727
141276ea795707d07f8dd66621b6cd1a2a1dac24
15,825
py
Python
zpy/db/oracle.py
NoeCruzMW/zpy-flask-msc
9c2fdcc7e7bdbe3eed4522bfc68afcc00ad5994a
[ "MIT" ]
null
null
null
zpy/db/oracle.py
NoeCruzMW/zpy-flask-msc
9c2fdcc7e7bdbe3eed4522bfc68afcc00ad5994a
[ "MIT" ]
null
null
null
zpy/db/oracle.py
NoeCruzMW/zpy-flask-msc
9c2fdcc7e7bdbe3eed4522bfc68afcc00ad5994a
[ "MIT" ]
null
null
null
from zpy.logger import TLogger, c_info from zpy.db.utils import get_current_schema from marshmallow_objects import models from typing import Any, Dict, List, Optional, Union from zpy.db import DBConnection from zpy.utils.funcs import exec_ifnt_null, safely_exec from enum import Enum from marshmallow import Schema impor...
33.814103
102
0.561769
15,155
0.95748
0
0
0
0
0
0
2,725
0.172163
14144f1b8badd85eb67ed4d9f4ba6dac819651a5
2,469
py
Python
sol/frag_sol.py
hebrewsnabla/pyAutoMR
8e81ed7fd780abd94f8b51e48ee4b980a868c204
[ "Apache-2.0" ]
5
2021-06-03T07:49:02.000Z
2022-02-21T11:35:20.000Z
sol/frag_sol.py
hebrewsnabla/pyAutoMR
8e81ed7fd780abd94f8b51e48ee4b980a868c204
[ "Apache-2.0" ]
2
2022-01-20T08:33:59.000Z
2022-03-26T12:21:15.000Z
sol/frag_sol.py
hebrewsnabla/pyAutoMR
8e81ed7fd780abd94f8b51e48ee4b980a868c204
[ "Apache-2.0" ]
1
2022-02-21T11:35:34.000Z
2022-02-21T11:35:34.000Z
from pyscf import gto import radii def from_frag(xyz, frags, chgs, spins, gjfhead='', scrfhead='', gjfname='', basis=None, wfnpath=None): # mol = gto.Mole() # mol.atom = xyz # mol.basis = bas # mol.verbose = 1 # mol.build() # if isinstance(frags[0], str): frags = str2list(frags) guess_fr...
30.109756
102
0.475901
0
0
0
0
0
0
0
0
530
0.214662
141678d1dfdf2f7da83acc70199631b909f224bc
7,485
py
Python
SITE/main_file.py
S-Thaler/SITE
3a055ec70eaed2c8701857dc36d279bc7bc987f6
[ "MIT" ]
5
2019-11-20T22:24:54.000Z
2022-03-30T18:29:36.000Z
SITE/main_file.py
S-Thaler/SITE
3a055ec70eaed2c8701857dc36d279bc7bc987f6
[ "MIT" ]
null
null
null
SITE/main_file.py
S-Thaler/SITE
3a055ec70eaed2c8701857dc36d279bc7bc987f6
[ "MIT" ]
1
2019-06-05T22:24:35.000Z
2019-06-05T22:24:35.000Z
""" File to control the parameters of the SITE approach and to specify the postprocessing functionality. The parameters for each equation are the ones used in the paper. All results of the paper 'Sparse Identification of Trunction Errors' of Thaler, Paehler and Adams, 2019 can be replicated only be setting the appropri...
51.267123
119
0.689512
0
0
0
0
0
0
0
0
4,851
0.648096
1416acb60382daea27591407e8abb38bce48a012
1,347
py
Python
skin_detector/scripts.py
version0chiro/xilinx_Code
ae8a274d2f0c44d591ef4dd1d3a677556b31de41
[ "Apache-2.0" ]
154
2015-04-20T08:17:45.000Z
2022-03-10T20:22:44.000Z
skin_detector/scripts.py
version0chiro/xilinx_Code
ae8a274d2f0c44d591ef4dd1d3a677556b31de41
[ "Apache-2.0" ]
10
2015-07-30T01:21:11.000Z
2020-06-22T19:40:23.000Z
skin_detector/scripts.py
version0chiro/xilinx_Code
ae8a274d2f0c44d591ef4dd1d3a677556b31de41
[ "Apache-2.0" ]
47
2016-02-24T12:23:28.000Z
2022-01-25T12:27:16.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Will Brennan' import os import cv2 import numpy def find_images(path, recursive=False, ignore=True): if os.path.isfile(path): yield path elif os.path.isdir(path): assert os.path.isdir(path), 'FileIO - get_images: Directory does not ...
35.447368
103
0.605791
0
0
850
0.631032
0
0
0
0
289
0.214551
1416c17873c1a9581d387ea49ff4f96596f2b2dc
955
py
Python
test/test_1.py
rgooler/AOC2019
f761881240a5fe8711f730887f0f5033ea287e3d
[ "Apache-2.0" ]
null
null
null
test/test_1.py
rgooler/AOC2019
f761881240a5fe8711f730887f0f5033ea287e3d
[ "Apache-2.0" ]
null
null
null
test/test_1.py
rgooler/AOC2019
f761881240a5fe8711f730887f0f5033ea287e3d
[ "Apache-2.0" ]
null
null
null
from aoc2019 import * import unittest class Day1(unittest.TestCase): def test_mass_12(self): chall = Rocket() self.assertEqual(chall.calc_fuel_weight(12), 2) def test_mass_14(self): chall = Rocket() self.assertEqual(chall.calc_fuel_weight(14), 2) def test_mass_1969(self): ...
28.088235
73
0.668063
868
0.908901
0
0
0
0
0
0
10
0.010471
14184fc039d4f10e48794f5f948294e438d060ed
1,397
py
Python
xdtools/artwork/compound.py
tjcjc/xdtools
fbfa0b9ea52ab76594adea8c25157dc7b5360ed0
[ "MIT" ]
43
2018-01-19T22:14:37.000Z
2022-01-10T22:53:17.000Z
xdtools/artwork/compound.py
tjcjc/xdtools
fbfa0b9ea52ab76594adea8c25157dc7b5360ed0
[ "MIT" ]
3
2018-01-03T03:26:11.000Z
2021-12-31T17:21:14.000Z
xdtools/artwork/compound.py
tjcjc/xdtools
fbfa0b9ea52ab76594adea8c25157dc7b5360ed0
[ "MIT" ]
9
2019-08-01T14:02:08.000Z
2021-11-30T16:23:02.000Z
""" Contains the definition of Compound. """ from xdtools.artwork import Artwork from xdtools.utils import Point class Compound(Artwork): """ A compound shape. === Attributes === uid - the unique id of this Compound shape. name - the name of this Compound shape as it appears in the Layers panel....
34.925
88
0.623479
1,280
0.916249
0
0
0
0
0
0
702
0.502505
14195614c335ed63b791f528ce5c516b74a89827
9,084
py
Python
appGUI/preferences/tools/ToolsCutoutPrefGroupUI.py
DannyPol/flatcam
25a8634d0658e98b7fae31a095f8bef40c1b3067
[ "MIT" ]
1
2022-02-11T06:19:34.000Z
2022-02-11T06:19:34.000Z
appGUI/preferences/tools/ToolsCutoutPrefGroupUI.py
MRemy2/FlatCam
d4f941335ca8a8d5351aab23b396f99da06a9029
[ "MIT" ]
null
null
null
appGUI/preferences/tools/ToolsCutoutPrefGroupUI.py
MRemy2/FlatCam
d4f941335ca8a8d5351aab23b396f99da06a9029
[ "MIT" ]
null
null
null
from PyQt5 import QtWidgets from PyQt5.QtCore import QSettings from appGUI.GUIElements import FCDoubleSpinner, FCCheckBox, RadioSet, FCComboBox, FCLabel from appGUI.preferences import machinist_setting from appGUI.preferences.OptionsGroupUI import OptionsGroupUI import gettext import appTranslation as fcTranslate imp...
36.926829
96
0.593901
8,475
0.932959
0
0
0
0
0
0
2,487
0.273778
14198076681f0298be4f5ae40bc2ae194fb807eb
1,094
py
Python
venv/lib/python2.7/site-packages/SimpleGUICS2Pygame/test/test_sound.py
CrystalCodes01/python-pong
3d812f53928ecfb791fa5ab47585f02ac68ec2a0
[ "BSD-3-Clause" ]
null
null
null
venv/lib/python2.7/site-packages/SimpleGUICS2Pygame/test/test_sound.py
CrystalCodes01/python-pong
3d812f53928ecfb791fa5ab47585f02ac68ec2a0
[ "BSD-3-Clause" ]
null
null
null
venv/lib/python2.7/site-packages/SimpleGUICS2Pygame/test/test_sound.py
CrystalCodes01/python-pong
3d812f53928ecfb791fa5ab47585f02ac68ec2a0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: latin-1 -*- """ Test play sounds. (January 1st, 2015) Piece of SimpleGUICS2Pygame. https://bitbucket.org/OPiMedia/simpleguics2pygame GPLv3 --- Copyright (C) 2015 Olivier Pirson http://www.opimedia.be/ """ import time try: import simplegui SIMPLEGUICS2PYGAME = False exce...
18.542373
100
0.691042
0
0
0
0
0
0
0
0
478
0.436929
141b52bbd8190072c77e920996e410dd59fb3378
2,270
py
Python
oslo_config/_list_opts.py
CyrilRoelandteNovance/oslo.config
7e202148022a289d934bb27b3397ca5b49b52a96
[ "Apache-1.1" ]
110
2015-01-29T20:10:46.000Z
2022-03-21T12:29:21.000Z
oslo_config/_list_opts.py
CyrilRoelandteNovance/oslo.config
7e202148022a289d934bb27b3397ca5b49b52a96
[ "Apache-1.1" ]
1
2019-03-16T18:35:42.000Z
2019-03-16T19:40:14.000Z
oslo_config/_list_opts.py
CyrilRoelandteNovance/oslo.config
7e202148022a289d934bb27b3397ca5b49b52a96
[ "Apache-1.1" ]
115
2015-01-14T03:25:05.000Z
2021-12-02T16:49:06.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
31.09589
78
0.614537
0
0
0
0
0
0
0
0
860
0.378855
141b77a16ef75fb27fd558b08965a19174a77d27
2,202
py
Python
dialogue/moviebot_data/batch.py
waynewu6250/ChatBoxer
ae73604d4778b3b5223049e73e696ad66239c0ff
[ "MIT" ]
7
2019-04-18T14:40:37.000Z
2021-05-11T08:36:21.000Z
dialogue/moviebot_data/batch.py
waynewu6250/ChatBoxer
ae73604d4778b3b5223049e73e696ad66239c0ff
[ "MIT" ]
6
2020-06-05T20:20:50.000Z
2021-06-10T17:48:56.000Z
dialogue/moviebot_data/batch.py
waynewu6250/ChatBoxer
ae73604d4778b3b5223049e73e696ad66239c0ff
[ "MIT" ]
2
2019-07-26T06:07:00.000Z
2020-06-25T17:34:47.000Z
import torch as t from torch.autograd import Variable import numpy as np import re import pickle import h5py from .load import Data from .load_chinese import ChineseData class TrainData: def __init__(self, data_path, conversation_path, results_path, chinese, prev_sent=2, load=True): if chinese: ...
38.631579
125
0.637148
2,031
0.922343
838
0.380563
0
0
0
0
109
0.0495
141dce44aa13b06a05bddc7ee3b9b4a853b80ebc
2,935
py
Python
mediawikiapi/config.py
srevinsaju/MediaWikiAPI
b65dfa3d6a1798ddaa8569c9dbab3b397f305431
[ "MIT" ]
null
null
null
mediawikiapi/config.py
srevinsaju/MediaWikiAPI
b65dfa3d6a1798ddaa8569c9dbab3b397f305431
[ "MIT" ]
null
null
null
mediawikiapi/config.py
srevinsaju/MediaWikiAPI
b65dfa3d6a1798ddaa8569c9dbab3b397f305431
[ "MIT" ]
null
null
null
import requests from datetime import timedelta from .language import Language class Config(object): """ Contains global configuration """ DEFAULT_USER_AGENT = 'mediawikiapi (https://github.com/lehinevych/MediaWikiAPI/)' DONATE_URL = 'https://donate.wikimedia.org/w/index.php?title=Special:FundraiserLandingPa...
30.894737
106
0.716865
2,854
0.972402
0
0
1,705
0.58092
0
0
1,211
0.412606
141e206d570003abeaf4105dda08506c129a99b2
403
py
Python
abc/abc107/abc107b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
abc/abc107/abc107b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
abc/abc107/abc107b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
from sys import stdout H, W = map(int, input().split()) a = [input() for _ in range(H)] h = [all(c == '.' for c in a[i]) for i in range(H)] w = [True] * W for i in range(H): for j in range(W): w[j] = w[j] and a[i][j] == '.' for i in range(H): if h[i]: continue for j in range(W): ...
19.190476
51
0.48139
0
0
0
0
0
0
0
0
10
0.024814
141efbd7b29a4f99f66f1a42fcfecd8aca71c828
175
py
Python
courses/E375004/fastapi/src/warehouse_app/dto.py
CVUT-FS-12110/Python
9faef8bba09d1b3382c28f29bdb8eaf144132d7d
[ "MIT" ]
16
2020-03-24T10:08:58.000Z
2022-03-08T17:18:46.000Z
courses/E375004/fastapi/src/warehouse_app/dto.py
CVUT-FS-12110/Python
9faef8bba09d1b3382c28f29bdb8eaf144132d7d
[ "MIT" ]
2
2021-05-05T08:13:24.000Z
2022-02-28T13:22:15.000Z
courses/E375004/fastapi/src/warehouse_app/dto.py
CVUT-FS-12110/Python
9faef8bba09d1b3382c28f29bdb8eaf144132d7d
[ "MIT" ]
27
2020-03-14T12:51:36.000Z
2022-03-22T18:47:23.000Z
""" Data Transfer Objects """ from pydantic import BaseModel class WarehouseDto(BaseModel): name: str # this is our unique identifier! location: str capacity: int
25
46
0.72
113
0.645714
0
0
0
0
0
0
61
0.348571
141f274293bd89340f4b94ad63ff87c3d7c2590d
155
py
Python
ecom/carts/admin.py
Bhavitg/FashionKart-Ecommerce
27327e074effad54d15decae81f41cb722792ab6
[ "MIT" ]
null
null
null
ecom/carts/admin.py
Bhavitg/FashionKart-Ecommerce
27327e074effad54d15decae81f41cb722792ab6
[ "MIT" ]
null
null
null
ecom/carts/admin.py
Bhavitg/FashionKart-Ecommerce
27327e074effad54d15decae81f41cb722792ab6
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Cart,CartItem admin.site.register(Cart) admin.site.register(CartItem)
17.222222
33
0.8
0
0
0
0
0
0
0
0
28
0.180645
141fc184c8d85e8a094bac9ac900fe97cd870755
2,865
py
Python
BboxToolkit/datasets/io.py
qilei123/BboxToolkit
97f61ae97449009c7952f648be57a28d35c2f39b
[ "Apache-2.0" ]
38
2021-02-05T14:39:11.000Z
2022-03-28T07:41:41.000Z
BboxToolkit/datasets/io.py
qilei123/BboxToolkit
97f61ae97449009c7952f648be57a28d35c2f39b
[ "Apache-2.0" ]
5
2021-11-01T08:17:09.000Z
2022-03-28T12:40:06.000Z
BboxToolkit/datasets/io.py
qilei123/BboxToolkit
97f61ae97449009c7952f648be57a28d35c2f39b
[ "Apache-2.0" ]
13
2021-08-20T12:26:04.000Z
2022-03-18T12:45:31.000Z
import os import os.path as osp import pickle import time import numpy as np from multiprocessing import Pool from ..utils import get_bbox_dim from .misc import read_img_info, change_cls_order, get_classes def load_imgs(img_dir, ann_dir=None, classes=None, nproc=10, def_bbox_type='poly'): assert d...
32.931034
90
0.635951
0
0
0
0
0
0
0
0
480
0.167539
141ff955c77ded0e08d843f987f0b62eb3d4713d
562
py
Python
Fusion/tests/cwin.py
roadnarrows-robotics/rnr-sdk
aee20c65b49fb3eedf924c5c2ec9f19f4f1a1b29
[ "MIT" ]
null
null
null
Fusion/tests/cwin.py
roadnarrows-robotics/rnr-sdk
aee20c65b49fb3eedf924c5c2ec9f19f4f1a1b29
[ "MIT" ]
null
null
null
Fusion/tests/cwin.py
roadnarrows-robotics/rnr-sdk
aee20c65b49fb3eedf924c5c2ec9f19f4f1a1b29
[ "MIT" ]
null
null
null
def cwinstart(callobj, *args, **kwargs): print('cwinstart') print(' args', repr(args)) for arg in args: print(' ', arg) print(' kwargs', len(kwargs)) for k, v in kwargs.items(): print(' ', k, v) w = callobj(*args, **kwargs) print(' callobj()->', w) return w def cwincall(req1, req2, ...
21.615385
42
0.55694
0
0
0
0
0
0
0
0
120
0.213523
1420f29df1fa70eb2e3757666daa61e2e39f87c0
358
py
Python
setup.py
rchurch4/emoji_map
f924e6d8d059c4705d3360a690eaac2825de3e49
[ "MIT" ]
null
null
null
setup.py
rchurch4/emoji_map
f924e6d8d059c4705d3360a690eaac2825de3e49
[ "MIT" ]
null
null
null
setup.py
rchurch4/emoji_map
f924e6d8d059c4705d3360a690eaac2825de3e49
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='emoji_map', version='0.1', description='Maps unicode emoji to its description', url='http://github.com/rchurch4/emoji_map', author='Rob Churchill', author_email='rchurch4@bu.edu', license='MIT', packages=['emoji_map'], include_pac...
27.538462
58
0.656425
0
0
0
0
0
0
0
0
141
0.393855
142176f2250823447a68c6f5a9ee79511f0fb3b0
1,034
py
Python
tests/conftest.py
EvanKomp/molscore
e21c2dcba467228e498827dd5218ac8c9202bb5e
[ "MIT" ]
null
null
null
tests/conftest.py
EvanKomp/molscore
e21c2dcba467228e498827dd5218ac8c9202bb5e
[ "MIT" ]
1
2021-09-15T20:27:43.000Z
2021-09-15T20:27:43.000Z
tests/conftest.py
EvanKomp/molscore
e21c2dcba467228e498827dd5218ac8c9202bb5e
[ "MIT" ]
null
null
null
import json import os import pytest import tempfile @pytest.fixture(scope='session', autouse=True) def working_test_dir(): # create a produce a temporary directory to use for everything tmp_working_dir = tempfile.TemporaryDirectory() yield tmp_working_dir.name # delete it at the end of the session ...
27.945946
73
0.692456
0
0
882
0.852998
976
0.943907
0
0
296
0.286267
1421a793494f3eba53446dfb7b7c27fbcbbb120e
6,348
py
Python
rlcard3/games/gin_rummy/utils/melding.py
cogitoergoread/muszi-macrohard.hu
e9bbd36b789e670f96622a3a2ba8327f0d897561
[ "MIT" ]
1
2021-05-27T03:40:37.000Z
2021-05-27T03:40:37.000Z
rlcard3/games/gin_rummy/utils/melding.py
cogitoergoread/muszi-macrohard.hu
e9bbd36b789e670f96622a3a2ba8327f0d897561
[ "MIT" ]
null
null
null
rlcard3/games/gin_rummy/utils/melding.py
cogitoergoread/muszi-macrohard.hu
e9bbd36b789e670f96622a3a2ba8327f0d897561
[ "MIT" ]
1
2022-02-24T11:25:22.000Z
2022-02-24T11:25:22.000Z
''' File name: gin_rummy/melding.py Author: William Hale Date created: 2/12/2020 ''' from rlcard3.games.gin_rummy.card import Card import rlcard3.games.gin_rummy.utils.utils as utils from typing import List from typing import Set import copy import random """ Terminology: run_meld - three o...
40.433121
119
0.650284
0
0
0
0
0
0
0
0
1,650
0.259924
14225abd1af0a2752df316fa83f0866ab01e19a6
17,255
py
Python
src/garage/tf/algos/rl2.py
jaekyeom/garage
be20a5ed29017dc079d9b46ee7dbd2a2fe89e90e
[ "MIT" ]
1
2021-01-11T18:40:52.000Z
2021-01-11T18:40:52.000Z
src/garage/tf/algos/rl2.py
kiminh/garage
c0fd41d73da7e7a71d6054e87370be35ca708e67
[ "MIT" ]
null
null
null
src/garage/tf/algos/rl2.py
kiminh/garage
c0fd41d73da7e7a71d6054e87370be35ca708e67
[ "MIT" ]
null
null
null
"""Module for RL2. This module contains RL2, RL2Worker and the environment wrapper for RL2. """ # yapf: disable import abc import collections import akro from dowel import logger import numpy as np from garage import (EnvSpec, EnvStep, EpisodeBatch, log_mul...
33.635478
79
0.619009
16,601
0.961986
0
0
500
0.028974
0
0
9,027
0.523092
1422d17a09d1a24e370225b68f6258e43dc906f1
2,059
py
Python
cct/core2/algorithms/orderforleastmotormovement.py
awacha/cct
be1adbed2533df15c778051f3f4f9da0749c873a
[ "BSD-3-Clause" ]
1
2015-11-04T16:37:39.000Z
2015-11-04T16:37:39.000Z
cct/core2/algorithms/orderforleastmotormovement.py
awacha/cct
be1adbed2533df15c778051f3f4f9da0749c873a
[ "BSD-3-Clause" ]
null
null
null
cct/core2/algorithms/orderforleastmotormovement.py
awacha/cct
be1adbed2533df15c778051f3f4f9da0749c873a
[ "BSD-3-Clause" ]
1
2020-03-05T02:50:43.000Z
2020-03-05T02:50:43.000Z
from typing import Tuple, List, TypeVar T = TypeVar("T") def orderForLeastMotorMovement(positions: List[Tuple[T, Tuple[float, float]]], startposition: Tuple[float, float]) -> List[T]: xpositions = set([p[1][0] for p in positions] + [startposition[0]]) ypositions = set([p[1][1] for p in positions] + [startpos...
45.755556
126
0.64643
0
0
0
0
0
0
0
0
535
0.259835
142313749cfd9431bfe0ceeb096274e6b438b71c
350
py
Python
openpnm/topotools/__init__.py
lixuekai2001/OpenPNM
9026f0fed427d37f4caf1a79e4a7684490d52cf6
[ "MIT" ]
2
2019-08-24T09:17:40.000Z
2020-07-05T07:21:21.000Z
openpnm/topotools/__init__.py
xu-kai-xu/OpenPNM
61d5fc4729a0a29291cf6c53c07c4246e7a13714
[ "MIT" ]
2
2020-06-26T19:58:23.000Z
2021-12-14T07:16:41.000Z
openpnm/topotools/__init__.py
xu-kai-xu/OpenPNM
61d5fc4729a0a29291cf6c53c07c4246e7a13714
[ "MIT" ]
null
null
null
r""" Collection of functions for manipulating network topology ========================================================= This module contains a selection of functions that deal specifically with network topology. """ from ._topotools import * from ._perctools import * from ._graphtools import * from ._plottools impo...
23.333333
73
0.66
0
0
0
0
0
0
0
0
218
0.622857
1423487aa9ea63d89b16cc57da5de0d83c612a84
7,560
py
Python
tests/gdata_tests/analytics/data_test.py
lqc/google-data-api
b720582a472d627a0853d02e51e13dbce4cfe6ae
[ "Apache-2.0" ]
null
null
null
tests/gdata_tests/analytics/data_test.py
lqc/google-data-api
b720582a472d627a0853d02e51e13dbce4cfe6ae
[ "Apache-2.0" ]
null
null
null
tests/gdata_tests/analytics/data_test.py
lqc/google-data-api
b720582a472d627a0853d02e51e13dbce4cfe6ae
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2009 Google Inc. # # 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 ...
34.678899
84
0.714153
6,435
0.85119
0
0
0
0
0
0
2,797
0.369974
14235464064dbcb80d081c8ba50a4d1f0167651c
3,299
py
Python
parkself_mbed/scripts/parkself_run.py
SweiLz/Parkself
5df83967926dda849a73ff33d8ce1f8c6eb54d4f
[ "BSD-3-Clause" ]
null
null
null
parkself_mbed/scripts/parkself_run.py
SweiLz/Parkself
5df83967926dda849a73ff33d8ce1f8c6eb54d4f
[ "BSD-3-Clause" ]
null
null
null
parkself_mbed/scripts/parkself_run.py
SweiLz/Parkself
5df83967926dda849a73ff33d8ce1f8c6eb54d4f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import rospy from math import sqrt from geometry_msgs.msg import Twist, PoseStamped, Pose2D, PointStamped, PoseWithCovarianceStamped from std_msgs.msg import Empty, String import Queue goal_point = rospy.Publisher( "move_base_simple/goal", PoseStamped, queue_size=1) servo = rospy.Publisher(...
24.992424
97
0.529858
0
0
0
0
0
0
0
0
202
0.061231
14239ea5aa010abca8f3a50c93850774794a7cf3
5,587
py
Python
tests/test_session.py
brainsplinter/pylibsrtp
f684f93f3b1013a7ef7dfb6a863c885ae5761854
[ "BSD-3-Clause" ]
11
2018-03-02T12:21:48.000Z
2022-01-31T12:58:06.000Z
tests/test_session.py
brainsplinter/pylibsrtp
f684f93f3b1013a7ef7dfb6a863c885ae5761854
[ "BSD-3-Clause" ]
18
2019-02-26T16:03:19.000Z
2022-03-06T17:36:42.000Z
tests/test_session.py
brainsplinter/pylibsrtp
f684f93f3b1013a7ef7dfb6a863c885ae5761854
[ "BSD-3-Clause" ]
5
2019-11-08T08:31:02.000Z
2022-02-11T15:21:04.000Z
from unittest import TestCase from pylibsrtp import Error, Policy, Session RTP = ( b"\x80\x08\x00\x00" # version, packet type, sequence number b"\x00\x00\x00\x00" # timestamp b"\x00\x00\x30\x39" # ssrc: 12345 ) + (b"\xd4" * 160) RTCP = ( b"\x80\xc8\x00\x06\xf3\xcb\x20\x01\x83\xab\x03\xa1\xeb\x02\x0...
32.864706
88
0.653839
5,000
0.894935
0
0
0
0
0
0
788
0.141042
1425326030a36f7088c87f42da842ce1d53ade94
7,974
py
Python
tripleo_ansible/ansible_plugins/modules/tripleo_baremetal_expand_roles.py
beagles/tripleo-ansible
7faddd87cffc8903a9cdedc7a6454cdf44aeed67
[ "Apache-2.0" ]
22
2018-08-29T12:33:15.000Z
2022-03-30T00:17:25.000Z
tripleo_ansible/ansible_plugins/modules/tripleo_baremetal_expand_roles.py
beagles/tripleo-ansible
7faddd87cffc8903a9cdedc7a6454cdf44aeed67
[ "Apache-2.0" ]
1
2020-02-07T20:54:34.000Z
2020-02-07T20:54:34.000Z
tripleo_ansible/ansible_plugins/modules/tripleo_baremetal_expand_roles.py
beagles/tripleo-ansible
7faddd87cffc8903a9cdedc7a6454cdf44aeed67
[ "Apache-2.0" ]
19
2019-07-16T04:42:00.000Z
2022-03-30T00:17:29.000Z
#!/usr/bin/python # Copyright 2020 Red Hat, Inc. # 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 ...
30.787645
91
0.577878
0
0
0
0
0
0
0
0
6,231
0.781415
1425809d2b5fe657e70492cd714e8e6e266db850
2,207
py
Python
hexa/user_management/migrations/0003_feature_flags.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
4
2021-07-19T12:53:21.000Z
2022-01-26T17:45:02.000Z
hexa/user_management/migrations/0003_feature_flags.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
20
2021-05-17T12:27:06.000Z
2022-03-30T11:35:26.000Z
hexa/user_management/migrations/0003_feature_flags.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
2
2021-09-07T04:19:59.000Z
2022-02-08T15:33:29.000Z
# Generated by Django 3.2.6 on 2021-09-10 11:56 import uuid import django.db.models.deletion import django.db.models.fields from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("user_management", "0002_remove_username"), ...
30.232877
72
0.421386
2,004
0.90802
0
0
0
0
0
0
238
0.107839
14273ef2fcf5b08c4c4fe145580e3eb565476537
624
py
Python
btclib/__init__.py
btclib-org/btclib
d19b45edca068118eb1d509536a1a459660d7306
[ "MIT" ]
40
2020-04-07T12:10:34.000Z
2022-03-18T18:10:48.000Z
btclib/__init__.py
btclib-org/btclib
d19b45edca068118eb1d509536a1a459660d7306
[ "MIT" ]
30
2020-03-20T00:52:37.000Z
2022-02-10T12:54:30.000Z
btclib/__init__.py
btclib-org/btclib
d19b45edca068118eb1d509536a1a459660d7306
[ "MIT" ]
16
2020-03-19T15:33:35.000Z
2022-02-24T21:47:39.000Z
#!/usr/bin/env python3 # Copyright (C) 2020-2021 The btclib developers # # This file is part of btclib. It is subject to the license terms in the # LICENSE file found in the top-level directory of this distribution. # # No part of btclib including this file, may be copied, modified, propagated, # or distributed except...
32.842105
77
0.761218
0
0
0
0
0
0
0
0
523
0.838141
1428fc857bf985d08474b17410858d44bd518123
1,009
py
Python
Lettuce_Tests/old_tests/testFeatureCategoricalGridCoverage.py
jread-usgs/pyGDP
72c8464934fec6643f111bf326b5c12bf47925fb
[ "CC0-1.0" ]
null
null
null
Lettuce_Tests/old_tests/testFeatureCategoricalGridCoverage.py
jread-usgs/pyGDP
72c8464934fec6643f111bf326b5c12bf47925fb
[ "CC0-1.0" ]
null
null
null
Lettuce_Tests/old_tests/testFeatureCategoricalGridCoverage.py
jread-usgs/pyGDP
72c8464934fec6643f111bf326b5c12bf47925fb
[ "CC0-1.0" ]
null
null
null
import pyGDP import os from nose.tools import assert_equal from nose.tools import assert_not_equal class TestFeatureCategoricalGridCoverage(object): def test_submit_FCGC(self): pyGDP.WPS_URL='http://cida.usgs.gov/gdp/process/WebProcessingService' testPyGDP = pyGDP.pyGDPwebProcessing() ...
38.807692
136
0.739346
907
0.89891
0
0
0
0
0
0
429
0.425173
142bca0d242d6c11c1ad4347da2e3a6249ad9ac2
16,521
py
Python
Machine-Learning-in-Production/02-Model-Management/02-Model-Registry.py
databricks-academy/ml-in-production
1fd6713e18cfc36357f3a98d75fedc8ffbf9eedc
[ "CC0-1.0" ]
14
2021-09-21T19:48:02.000Z
2022-03-09T19:22:39.000Z
Machine-Learning-in-Production/02-Model-Management/02-Model-Registry.py
databricks-academy/ml-in-production
1fd6713e18cfc36357f3a98d75fedc8ffbf9eedc
[ "CC0-1.0" ]
null
null
null
Machine-Learning-in-Production/02-Model-Management/02-Model-Registry.py
databricks-academy/ml-in-production
1fd6713e18cfc36357f3a98d75fedc8ffbf9eedc
[ "CC0-1.0" ]
5
2021-08-22T12:12:49.000Z
2022-02-28T15:47:43.000Z
# Databricks notebook source # MAGIC %md-sandbox # MAGIC # MAGIC <div style="text-align: center; line-height: 0; padding-top: 9px;"> # MAGIC <img src="https://databricks.com/wp-content/uploads/2018/03/db-academy-rgb-1200px.png" alt="Databricks Learning" style="width: 600px"> # MAGIC </div> # COMMAND ---------- # M...
40.692118
645
0.736699
0
0
0
0
0
0
0
0
13,065
0.790429
142d5302e65382732b38002b4366ded5bfe975f2
7,151
py
Python
corehq/apps/callcenter/utils.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/callcenter/utils.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
1
2022-03-12T01:03:25.000Z
2022-03-12T01:03:25.000Z
corehq/apps/callcenter/utils.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from collections import namedtuple from datetime import datetime, timedelta import pytz from casexml.apps.case.dbaccessors import get_open_case_docs_in_domain from casexml.apps.case.mock import CaseBlock from casexml.apps.case.xml import V2 import uuid from xml.etree import Elemen...
37.244792
116
0.638932
1,212
0.169487
0
0
179
0.025031
0
0
1,391
0.194518