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
38790fc9c1e1af653614fcb057c058b3e9e09917
3,398
py
Python
molsysmt/api_forms/api_openmm_GromacsGroFile.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/api_forms/api_openmm_GromacsGroFile.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/api_forms/api_openmm_GromacsGroFile.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
from molsysmt._private.exceptions import * from molsysmt.item.openmm_GromacsGroFile.is_openmm_GromacsGroFile import is_openmm_GromacsGroFile as is_form from molsysmt.item.openmm_GromacsGroFile.extract import extract from molsysmt.item.openmm_GromacsGroFile.add import add from molsysmt.item.openmm_GromacsGroFile.append...
31.757009
142
0.759859
0
0
0
0
0
0
0
0
570
0.167746
387914e6bb3ad3988784eba28689e73be40bad2b
523
py
Python
simple_permutations.py
mutazag/nlpia
14e70396b118605745c148f5e573246844687c1f
[ "MIT" ]
null
null
null
simple_permutations.py
mutazag/nlpia
14e70396b118605745c148f5e573246844687c1f
[ "MIT" ]
null
null
null
simple_permutations.py
mutazag/nlpia
14e70396b118605745c148f5e573246844687c1f
[ "MIT" ]
null
null
null
#%% from itertools import permutations, product # %% A =['a','b'] Z = ['x','z'] [p for p in product('ab', range(3))] [p for p in product(A,Z)] [p for p in product(A, repeat=3)] # %% msg = 'Good Morning Rosa!' msgList = msg.split() [' '.join(p) for p in permutations(msgList,3)] # %% # complex phrase s = """Find text...
19.37037
51
0.619503
0
0
0
0
0
0
0
0
200
0.382409
38795101ca4281688e60964eabe22f2626c23b79
510
py
Python
olea/packages/ip2loc/ip2loc.py
Pix-00/olea
98bee1fd8866a3929f685a139255afb7b6813f31
[ "Apache-2.0" ]
2
2020-06-18T03:25:52.000Z
2020-06-18T07:33:45.000Z
olea/packages/ip2loc/ip2loc.py
Pix-00/olea
98bee1fd8866a3929f685a139255afb7b6813f31
[ "Apache-2.0" ]
15
2021-01-28T07:11:04.000Z
2021-05-24T07:11:37.000Z
olea/packages/ip2loc/ip2loc.py
Pix-00/olea
98bee1fd8866a3929f685a139255afb7b6813f31
[ "Apache-2.0" ]
null
null
null
__all__ = ['IP2Loc'] import IP2Location from .update_ipdb import download class IP2Loc(): def __init__(self, app=None): self.ip2loc = None if app: self.init_app(app) def init_app(self, app): path = app.config['IP2LOC_IPDB_PATH'] if not path.exists(): ...
23.181818
68
0.631373
431
0.845098
0
0
0
0
0
0
64
0.12549
38796eed3ff31562e41f2d173de7660b64b06992
521
py
Python
tests/BaseCase.py
YaroslavChyhryn/SchoolAPI
6b5eb4e1faf6b962561109fc227057ad0f8d4d92
[ "MIT" ]
null
null
null
tests/BaseCase.py
YaroslavChyhryn/SchoolAPI
6b5eb4e1faf6b962561109fc227057ad0f8d4d92
[ "MIT" ]
null
null
null
tests/BaseCase.py
YaroslavChyhryn/SchoolAPI
6b5eb4e1faf6b962561109fc227057ad0f8d4d92
[ "MIT" ]
null
null
null
import unittest from school_api.app import create_app from school_api.db import create_tables, drop_tables from school_api.data_generator import test_db class BaseCase(unittest.TestCase): @classmethod def setUpClass(cls): cls.app = create_app('test') def setUp(self): drop_tables(self.app)...
23.681818
52
0.685221
365
0.700576
0
0
74
0.142035
0
0
6
0.011516
387bfe5524cac7d7cb21e866fa774cc3212626e2
238
py
Python
msgflow/logging.py
noriyukipy/smilechat
a9c0ef93c35b2a1f3e9d1700391ae865544adfbc
[ "MIT" ]
5
2021-01-01T12:34:23.000Z
2022-03-08T13:02:11.000Z
msgflow/logging.py
noriyukipy/smilechat
a9c0ef93c35b2a1f3e9d1700391ae865544adfbc
[ "MIT" ]
null
null
null
msgflow/logging.py
noriyukipy/smilechat
a9c0ef93c35b2a1f3e9d1700391ae865544adfbc
[ "MIT" ]
2
2020-09-20T10:41:51.000Z
2020-11-09T06:15:32.000Z
import json import datetime def print_json_log(logger_, level_, message_): dict_ = {"level": level_, "message": message_, "time": str(datetime.datetime.now())} json_str = json.dumps(dict_) getattr(logger_, level_)(json_str)
26.444444
88
0.710084
0
0
0
0
0
0
0
0
22
0.092437
387c70f8ffc34a57405e03583c11907f465d14b4
560
py
Python
tests/test_nace2.py
sayari-analytics/pyisic
42ed46f5bc446a0bbc0edf30b64bc4ab939dd033
[ "MIT" ]
3
2021-11-18T15:32:38.000Z
2022-02-28T19:16:14.000Z
tests/test_nace2.py
sayari-analytics/pyisic
42ed46f5bc446a0bbc0edf30b64bc4ab939dd033
[ "MIT" ]
18
2021-06-28T19:17:49.000Z
2022-03-23T20:20:18.000Z
tests/test_nace2.py
sayari-analytics/pyisic
42ed46f5bc446a0bbc0edf30b64bc4ab939dd033
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from pyisic import NACE2_to_ISIC4 from pyisic.types import Standards @pytest.mark.parametrize( "code,expected", [ ("DOESNT EXIST", set()), ("A", {(Standards.ISIC4, "A")}), ("01", {(Standards.ISIC4, "01")}), ("01.1", {(Standards.ISIC4, "011...
26.666667
66
0.608929
0
0
0
0
449
0.801786
0
0
140
0.25
387ea40c8cd79f5bdddf23799a108f4ee84c715c
391
py
Python
JiaLu/learn/list_training9.py
13022108937/homework
05b3c0535532766b286976b15245ed1f925da8c5
[ "Apache-2.0" ]
null
null
null
JiaLu/learn/list_training9.py
13022108937/homework
05b3c0535532766b286976b15245ed1f925da8c5
[ "Apache-2.0" ]
null
null
null
JiaLu/learn/list_training9.py
13022108937/homework
05b3c0535532766b286976b15245ed1f925da8c5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python def bubble_search_func(data_list): cnt_num_all = len(data_list) for i in range(cnt_num_all-1): for j in range(1,cnt_num_all-i): if(data_list[j-1]>data_list[j]): data_list[j-1],data_list[j]=data_list[j],data_list[j-1] data_list = [54, 25, 93, 17, 77...
20.578947
71
0.639386
0
0
0
0
0
0
0
0
21
0.053708
387eb64186d9be38a6ef7eb92362e60714c12f89
981
py
Python
src/custom_user_app/urls.py
JackCX777/user_polls_2
fa8fe9ad4c1fa36b4ea5bb402b3d485852a98d3b
[ "BSD-3-Clause" ]
null
null
null
src/custom_user_app/urls.py
JackCX777/user_polls_2
fa8fe9ad4c1fa36b4ea5bb402b3d485852a98d3b
[ "BSD-3-Clause" ]
null
null
null
src/custom_user_app/urls.py
JackCX777/user_polls_2
fa8fe9ad4c1fa36b4ea5bb402b3d485852a98d3b
[ "BSD-3-Clause" ]
null
null
null
from django.urls import path from custom_user_app.views import (CustomUserLoginView, CustomUserLogoutView, CustomUserCreationView, CustomUserUpdateView, CustomUserPasswordChangeVie...
51.631579
114
0.643221
0
0
0
0
0
0
0
0
233
0.237513
387ed07ba8ec4acd4791f1af86f446b18d2578f8
2,691
py
Python
src/utils/preprocess_dataset.py
FedericoBottoni/household-poverty-classifier
7357cc6a6c08e9cf76cdd79a04cce32a5982fa85
[ "MIT" ]
null
null
null
src/utils/preprocess_dataset.py
FedericoBottoni/household-poverty-classifier
7357cc6a6c08e9cf76cdd79a04cce32a5982fa85
[ "MIT" ]
null
null
null
src/utils/preprocess_dataset.py
FedericoBottoni/household-poverty-classifier
7357cc6a6c08e9cf76cdd79a04cce32a5982fa85
[ "MIT" ]
null
null
null
import numpy as np import csv as csv from clean_data import clean_data from join_columns import join_columns from fix_decimals import add_int, cut_decimals def preprocess_dataset(): preprocess_data('train', False) preprocess_data('test', False) preprocess_data('train', True) preprocess_data('test', Tru...
65.634146
311
0.593088
0
0
0
0
0
0
0
0
1,184
0.439985
387f0112c992c1eb1d347a52c37faadb884c7c51
1,691
py
Python
helpme/migrations/0003_auto_20200901_2025.py
renderbox/django-help-me
6efdaf715d2770305a7187c008354e0f784f9f5b
[ "MIT" ]
1
2020-09-30T22:21:02.000Z
2020-09-30T22:21:02.000Z
helpme/migrations/0003_auto_20200901_2025.py
renderbox/django-help-me
6efdaf715d2770305a7187c008354e0f784f9f5b
[ "MIT" ]
8
2020-09-11T00:50:57.000Z
2022-03-30T22:10:45.000Z
helpme/migrations/0003_auto_20200901_2025.py
renderbox/django-help-me
6efdaf715d2770305a7187c008354e0f784f9f5b
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-09-01 20:25 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('sites', '0002_alter_domain_unique'), ('helpme', '0002_category_question'), ] operations = [ migration...
33.156863
127
0.595506
1,567
0.926671
0
0
0
0
0
0
397
0.234772
388094937263ef4639ae196c69b959037b68702e
3,799
py
Python
lib/surface/anthos/auth/login.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/surface/anthos/auth/login.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/surface/anthos/auth/login.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2020 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
38.373737
113
0.733351
2,690
0.708081
0
0
588
0.154778
0
0
1,570
0.413267
38823e27450525f05ac5a168826d916d3ea60ed9
382
py
Python
projects/migrations/0005_alter_location_location.py
Gomax-07/gallery
934b667d79d9a98e43648864a420cc559e9456e6
[ "Unlicense" ]
null
null
null
projects/migrations/0005_alter_location_location.py
Gomax-07/gallery
934b667d79d9a98e43648864a420cc559e9456e6
[ "Unlicense" ]
null
null
null
projects/migrations/0005_alter_location_location.py
Gomax-07/gallery
934b667d79d9a98e43648864a420cc559e9456e6
[ "Unlicense" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-07 02:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('projects', '0004_location'), ] operations = [ migrations.AlterField( model_name='location', name='location', ...
20.105263
51
0.594241
289
0.756545
0
0
0
0
0
0
92
0.240838
3883883e7eb9a4441c27a1740a372b5eec7a6a64
5,491
py
Python
src/napari_mahotas_image_processing/_function.py
haesleinhuepf/napari-mahotas-image-processing
d6c19a27b1e5acb994aa1e698692394e73f783a3
[ "BSL-1.0", "BSD-3-Clause" ]
2
2021-11-27T02:02:25.000Z
2021-11-28T09:55:47.000Z
src/napari_mahotas_image_processing/_function.py
haesleinhuepf/napari-mahotas-image-processing
d6c19a27b1e5acb994aa1e698692394e73f783a3
[ "BSL-1.0", "BSD-3-Clause" ]
null
null
null
src/napari_mahotas_image_processing/_function.py
haesleinhuepf/napari-mahotas-image-processing
d6c19a27b1e5acb994aa1e698692394e73f783a3
[ "BSL-1.0", "BSD-3-Clause" ]
null
null
null
import numpy as np from napari_plugin_engine import napari_hook_implementation from napari_tools_menu import register_function from napari_time_slicer import time_slicer, slice_by_slice import napari from napari.types import ImageData, LabelsData @napari_hook_implementation def napari_experimental_provide_function()...
30.848315
116
0.676744
0
0
0
0
4,760
0.866873
0
0
2,106
0.383537
38838a2148cd8410cf38dde80c33588255de0106
487
py
Python
CoquoBot/order_manager.py
Josef212/CoquoBot
adb9744b04454a4591237937dfb2c9f00da30077
[ "MIT" ]
null
null
null
CoquoBot/order_manager.py
Josef212/CoquoBot
adb9744b04454a4591237937dfb2c9f00da30077
[ "MIT" ]
null
null
null
CoquoBot/order_manager.py
Josef212/CoquoBot
adb9744b04454a4591237937dfb2c9f00da30077
[ "MIT" ]
null
null
null
from order import Order class OrderManager: def __init__(self): self.orders = {} def user_has_any_order(self, chat_id: int, user: str) -> bool: order = self.get_order(chat_id) return order.user_has_any_order(user) def get_order(self, id: int) -> Order: if id not in sel...
27.055556
66
0.601643
462
0.948665
0
0
0
0
0
0
0
0
388501d208ae63f4dc2d1e7114cc8996d14643dd
2,576
py
Python
tests/binary/run.py
learnflexswitch/pyangbind
7b39fec6806b516c442f920a8396d2e1fa9c36b1
[ "Apache-2.0" ]
1
2021-07-15T18:12:28.000Z
2021-07-15T18:12:28.000Z
tests/binary/run.py
ktbyers/pyangbind
39f9f8d842c66dde784c45369ea7b280f375401a
[ "Apache-2.0" ]
null
null
null
tests/binary/run.py
ktbyers/pyangbind
39f9f8d842c66dde784c45369ea7b280f375401a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os, sys, getopt TESTNAME="binary" # generate bindings in this folder def main(): try: opts, args = getopt.getopt(sys.argv[1:], "k", ["keepfiles"]) except getopt.GetoptError as e: print str(e) sys.exit(127) k = False for o, a in opts: if o in ["-k", "--keepfiles"...
33.454545
130
0.615295
0
0
0
0
0
0
0
0
793
0.307842
38859de8b56eff173435e0d0952d25f450ef8119
1,024
py
Python
ScoutingBox/Box/admin.py
JoannaNitek/ScoutingBox
a49d12abad5aec4bccdbb8efc627f3403c4e9b4c
[ "MIT" ]
null
null
null
ScoutingBox/Box/admin.py
JoannaNitek/ScoutingBox
a49d12abad5aec4bccdbb8efc627f3403c4e9b4c
[ "MIT" ]
9
2019-08-06T02:08:30.000Z
2022-02-10T08:48:19.000Z
ScoutingBox/Box/admin.py
JoannaNitek/ScoutingBox
a49d12abad5aec4bccdbb8efc627f3403c4e9b4c
[ "MIT" ]
2
2019-09-16T18:45:08.000Z
2019-09-18T17:00:42.000Z
from django.contrib import admin # Register your models here. from Box.models import Player, ObservationList, Comments, ObservationForm class PlayerAdmin(admin.ModelAdmin): list_display = ['first_name', 'last_name', 'year_of_birth', 'club', 'position', 'status', 'mail', 'phone', 'agent'] class ObservationListA...
36.571429
119
0.699219
667
0.651367
0
0
0
0
0
0
337
0.329102
3885d8be7539352dd2a853eb75507e09353f7e06
992
py
Python
activity_1/src/testTimeExecution.py
lucasguesserts/MO824A-combinatorial-optimization
a88569e4496c0ed4f89a4e8bac7ab8f42f6cb7d4
[ "MIT" ]
null
null
null
activity_1/src/testTimeExecution.py
lucasguesserts/MO824A-combinatorial-optimization
a88569e4496c0ed4f89a4e8bac7ab8f42f6cb7d4
[ "MIT" ]
null
null
null
activity_1/src/testTimeExecution.py
lucasguesserts/MO824A-combinatorial-optimization
a88569e4496c0ed4f89a4e8bac7ab8f42f6cb7d4
[ "MIT" ]
null
null
null
from datetime import datetime from CompanyProblemSolver import CompanyProblemSolver class TimedSolution: def __init__(self, J): time_start = datetime.now() solver = CompanyProblemSolver(J, displayProgress=True) time_end = datetime.now() self.duration = float((time_end - time_start)....
33.066667
70
0.638105
749
0.75504
0
0
0
0
0
0
98
0.09879
38883a0e498b070f2e3d5997d8486a1d81c565d7
2,528
py
Python
app/repository/model.py
maestro-server/data-app
cde6479cc84fe410220b34742772d5017571e3d3
[ "Apache-2.0" ]
null
null
null
app/repository/model.py
maestro-server/data-app
cde6479cc84fe410220b34742772d5017571e3d3
[ "Apache-2.0" ]
1
2019-11-21T17:06:31.000Z
2019-11-21T17:06:31.000Z
app/repository/model.py
maestro-server/data-app
cde6479cc84fe410220b34742772d5017571e3d3
[ "Apache-2.0" ]
null
null
null
import datetime import re from app import db from bson.objectid import ObjectId from pymongo import InsertOne, UpdateOne from pymongo.errors import BulkWriteError from app.error.factoryInvalid import FactoryInvalid class Model(object): def __init__(self, id=None, name=None): if name is None: n...
27.478261
83
0.567642
2,310
0.913766
0
0
577
0.228244
0
0
100
0.039557
38888f481bd14c8f69369fc17765ba947e3ae62e
9,087
py
Python
python_lib/mitxgraders/comparers/linear_comparer.py
haharay/python_lib
8acfc634ceb1943da5163c81b79bad126b27212f
[ "MIT" ]
17
2018-06-20T19:38:13.000Z
2021-12-31T19:52:52.000Z
python_lib/mitxgraders/comparers/linear_comparer.py
haharay/python_lib
8acfc634ceb1943da5163c81b79bad126b27212f
[ "MIT" ]
282
2017-11-07T13:34:03.000Z
2022-03-26T04:25:20.000Z
python_lib/mitxgraders/comparers/linear_comparer.py
haharay/python_lib
8acfc634ceb1943da5163c81b79bad126b27212f
[ "MIT" ]
7
2018-06-05T23:27:00.000Z
2022-03-26T08:02:50.000Z
from __future__ import print_function, division, absolute_import, unicode_literals from numbers import Number import numpy as np from voluptuous import Schema, Required, Any, Range from mitxgraders.comparers.baseclasses import CorrelatedComparer from mitxgraders.helpers.calc.mathfuncs import is_nearly_zero from mitxgra...
36.939024
99
0.630241
5,472
0.602179
0
0
484
0.053263
0
0
5,109
0.562232
38898650b0417419ec2e1d168eb7f6f230735290
642
py
Python
2017/day8-2.py
alvaropp/AdventOfCode2017
2827dcc18ecb9ad59a1a5fe11e469f31bafb74ad
[ "MIT" ]
null
null
null
2017/day8-2.py
alvaropp/AdventOfCode2017
2827dcc18ecb9ad59a1a5fe11e469f31bafb74ad
[ "MIT" ]
null
null
null
2017/day8-2.py
alvaropp/AdventOfCode2017
2827dcc18ecb9ad59a1a5fe11e469f31bafb74ad
[ "MIT" ]
null
null
null
filename = "day8.txt" ops = {"inc": "+=", "dec": "-="} # Initialise registers to zero regs = {} with open(filename) as f: for line in f.readlines(): data = line.split(' ') reg = data[0] if reg not in regs: regs[reg] = 0 # Follow the instructions maxReg = 0 with open(filename) ...
25.68
71
0.543614
0
0
0
0
0
0
0
0
112
0.174455
388a33a4c640a949c0d9f3e5677661be8943cc55
4,755
py
Python
tests/components/unifi/test_services.py
rahulsinghsss/core
1156275db4e53a556ef58bb2038ae7d8ad103556
[ "Apache-2.0" ]
1
2021-12-30T09:37:48.000Z
2021-12-30T09:37:48.000Z
tests/components/unifi/test_services.py
rahulsinghsss/core
1156275db4e53a556ef58bb2038ae7d8ad103556
[ "Apache-2.0" ]
18
2021-11-03T06:21:46.000Z
2022-03-31T06:21:15.000Z
tests/components/unifi/test_services.py
rahulsinghsss/core
1156275db4e53a556ef58bb2038ae7d8ad103556
[ "Apache-2.0" ]
1
2021-12-30T09:37:53.000Z
2021-12-30T09:37:53.000Z
"""deCONZ service tests.""" from unittest.mock import Mock, patch from homeassistant.components.unifi.const import DOMAIN as UNIFI_DOMAIN from homeassistant.components.unifi.services import ( SERVICE_REMOVE_CLIENTS, UNIFI_SERVICES, async_setup_services, async_unload_services, ) from .test_controller ...
31.282895
87
0.646477
0
0
0
0
0
0
4,383
0.921767
1,225
0.257624
388a3e1c967bd69504b07a1ff1bfdb07f5722281
632
py
Python
{{cookiecutter.directory_name}}/config/settings/development.py
ragnarok22/cookiecutter-django
082196dde5ad932bf99bee138dc80de8c3823e03
[ "Apache-2.0" ]
2
2021-07-23T18:58:49.000Z
2022-02-23T18:44:40.000Z
{{cookiecutter.directory_name}}/config/settings/development.py
ragnarok22/cookiecutter-django
082196dde5ad932bf99bee138dc80de8c3823e03
[ "Apache-2.0" ]
null
null
null
{{cookiecutter.directory_name}}/config/settings/development.py
ragnarok22/cookiecutter-django
082196dde5ad932bf99bee138dc80de8c3823e03
[ "Apache-2.0" ]
null
null
null
""" This is the settings file that you use when you're working on the project locally. Local development-specific include DEBUG mode, log level, and activation of developer tools like django-debug-toolsbar """ from .base import * # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True # SECURI...
31.6
118
0.764241
0
0
0
0
0
0
0
0
499
0.789557
388b168ea670204a5943c2c7112d806beb501cfa
3,094
py
Python
analysis_scripts/prose_CCLE_PE2_evidence.py
bwbio/PROSE
1622396e76e0e293ccff85786d1a5974c4fc3c94
[ "MIT" ]
null
null
null
analysis_scripts/prose_CCLE_PE2_evidence.py
bwbio/PROSE
1622396e76e0e293ccff85786d1a5974c4fc3c94
[ "MIT" ]
null
null
null
analysis_scripts/prose_CCLE_PE2_evidence.py
bwbio/PROSE
1622396e76e0e293ccff85786d1a5974c4fc3c94
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Oct 25 05:21:45 2021 @author: bw98j """ import prose as pgx import pandas as pd import matplotlib.pyplot as plt import matplotlib.colors as colors import seaborn as sns import numpy as np import itertools import glob import os from tqdm import tqdm import ...
27.380531
95
0.627666
0
0
0
0
0
0
0
0
626
0.202327
388c31bf17059d83c5f152ced39c6c1dfbd21371
428
py
Python
python/play.py
banza-group/2048
90dcabf2b04e8b6ffba24e3a93d4dc5b16c5605b
[ "MIT" ]
2
2019-03-08T03:42:31.000Z
2019-03-08T03:42:34.000Z
python/play.py
banza-group/2048
90dcabf2b04e8b6ffba24e3a93d4dc5b16c5605b
[ "MIT" ]
1
2019-03-15T19:30:12.000Z
2019-03-15T19:30:12.000Z
python/play.py
banza-group/2048
90dcabf2b04e8b6ffba24e3a93d4dc5b16c5605b
[ "MIT" ]
1
2020-10-26T01:29:22.000Z
2020-10-26T01:29:22.000Z
"""Play the game.""" import engine import numpy as np board = engine.createBoard(4) message1 = "Use the keys to move (L)eft (R)ight (U)p (D)own." message2 = "Press (Q) to quit:" while True: print(np.array(engine.showBoard(board))) inputValue = input("{} {} ".format(message1, message2)) inputValue = str(i...
23.777778
61
0.63785
0
0
0
0
0
0
0
0
101
0.235981
388c4200cdb6866a189312d1ba76f6d3bb459c3a
758
py
Python
pyorient/ogm/commands.py
spy7/pyorient
ac2547287f9299f4eec350666da3b19797872f20
[ "Apache-2.0" ]
142
2015-01-12T06:34:59.000Z
2022-01-19T10:34:30.000Z
pyorient/ogm/commands.py
spy7/pyorient
ac2547287f9299f4eec350666da3b19797872f20
[ "Apache-2.0" ]
238
2015-01-04T21:05:41.000Z
2021-04-12T17:45:53.000Z
pyorient/ogm/commands.py
spy7/pyorient
ac2547287f9299f4eec350666da3b19797872f20
[ "Apache-2.0" ]
107
2015-01-03T03:33:17.000Z
2021-12-07T16:48:48.000Z
from ..utils import to_str class VertexCommand(object): def __init__(self, command_text): self.command_text = command_text def __str__(self): return to_str(self.__unicode__()) def __unicode__(self): return u'{}'.format(self.command_text) class CreateEdgeCommand(object): def _...
25.266667
73
0.637203
727
0.959103
0
0
0
0
0
0
24
0.031662
388c951866762cef5e383f255fb30261476df70e
2,431
py
Python
source/GetDatasetInformation.py
san-harsh/PyImageRoi
fc95d48f33e3dcde308a027f1f0dc5ee6d9a3919
[ "MIT" ]
10
2018-01-29T18:56:17.000Z
2021-06-04T09:34:17.000Z
source/GetDatasetInformation.py
san-harsh/PyImageRoi
fc95d48f33e3dcde308a027f1f0dc5ee6d9a3919
[ "MIT" ]
1
2018-01-29T19:09:11.000Z
2018-01-30T02:20:25.000Z
source/GetDatasetInformation.py
san-harsh/PyImageRoi
fc95d48f33e3dcde308a027f1f0dc5ee6d9a3919
[ "MIT" ]
5
2017-07-14T16:22:40.000Z
2021-06-10T07:14:54.000Z
import argparse import os import glob import pandas as pd from libraryTools import imageRegionOfInterest #filename,width,height,class,xmin,ymin,xmax,ymax #20170730_132530-(F00000).jpeg,576,1024,sinaleira,221,396,246,437 valid_images = [".jpg",".gif",".png",".tga",".jpeg"] def run(image_path, classNameList = ["somecl...
29.646341
112
0.65364
0
0
0
0
0
0
0
0
525
0.215961
388e1ba13f01555ab5ef97f17338085142e9b93d
22,968
py
Python
AShareData/data_source/WindData.py
TMG-TheMoneyGame/AShareData
2c4fded364c987e4f1ec77fafbb55f75ace1264d
[ "MIT" ]
null
null
null
AShareData/data_source/WindData.py
TMG-TheMoneyGame/AShareData
2c4fded364c987e4f1ec77fafbb55f75ace1264d
[ "MIT" ]
null
null
null
AShareData/data_source/WindData.py
TMG-TheMoneyGame/AShareData
2c4fded364c987e4f1ec77fafbb55f75ace1264d
[ "MIT" ]
null
null
null
import datetime as dt from functools import cached_property from typing import Dict, List, Sequence, Union import numpy as np import pandas as pd import WindPy from tqdm import tqdm from .DataSource import DataSource from .. import config, constants, DateUtils, utils from ..DBInterface import DBInterface from ..Ticke...
42.930841
137
0.602229
23,014
0.981073
0
0
3,151
0.134325
0
0
3,135
0.133643
388f74e37b3771101d7c6d1684ce571a957ae9fc
12,874
py
Python
benchmark/obd/evaluate_off_policy_estimators.py
isabella232/pyIEOE
bc2ab396a38984dec57a50dd2dae4dd726d5eb3b
[ "MIT" ]
8
2021-08-31T09:06:01.000Z
2022-01-20T01:13:03.000Z
benchmark/obd/evaluate_off_policy_estimators.py
isabella232/pyIEOE
bc2ab396a38984dec57a50dd2dae4dd726d5eb3b
[ "MIT" ]
null
null
null
benchmark/obd/evaluate_off_policy_estimators.py
isabella232/pyIEOE
bc2ab396a38984dec57a50dd2dae4dd726d5eb3b
[ "MIT" ]
1
2022-03-25T16:57:50.000Z
2022-03-25T16:57:50.000Z
# Copyright (c) 2021 Sony Group Corporation and Hanjuku-kaso Co., Ltd. All Rights Reserved. # # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php import argparse from distutils.util import strtobool from pathlib import Path import pickle import warnings from sklearn.exc...
37.208092
115
0.696675
0
0
0
0
0
0
0
0
2,542
0.197452
388fccf224243f2ac97b177fee7c0abcccef5267
856
py
Python
lab5/script/loadimg.py
rum2mojito/osdi2020
d17a6b56e1fd25a8c5b0ccec5a897e0c1118365b
[ "MIT" ]
null
null
null
lab5/script/loadimg.py
rum2mojito/osdi2020
d17a6b56e1fd25a8c5b0ccec5a897e0c1118365b
[ "MIT" ]
null
null
null
lab5/script/loadimg.py
rum2mojito/osdi2020
d17a6b56e1fd25a8c5b0ccec5a897e0c1118365b
[ "MIT" ]
null
null
null
# coding=utf-8 import serial import time import os KERNEL_PATH = './kernel9.img' def serial_w(content): ser.write(content) time.sleep(1) port1 = '/dev/pts/4' port2 = '/dev/ttyUSB0' if __name__ == "__main__": ser = serial.Serial(port=port1, baudrate=115200) kernel_size = os.path.getsize(KERNEL_PATH)...
20.380952
52
0.551402
0
0
0
0
0
0
0
0
234
0.273364
38901046ae19be71310fe2a5d909316397231ac1
1,196
py
Python
weather.py
Qu4ndo/Weather_API
1405c69d796d0c2df47f71e829b99ecb48857921
[ "MIT" ]
null
null
null
weather.py
Qu4ndo/Weather_API
1405c69d796d0c2df47f71e829b99ecb48857921
[ "MIT" ]
null
null
null
weather.py
Qu4ndo/Weather_API
1405c69d796d0c2df47f71e829b99ecb48857921
[ "MIT" ]
null
null
null
import configparser import requests import json def get_callback(): #read the config.txt config = configparser.ConfigParser() config.read_file(open(r'config.txt')) API_key = config.get('Basic-Configuration', 'API_key') city_name = config.get('Basic-Configuration', 'city_name') # API base_u...
22.566038
65
0.658027
0
0
0
0
0
0
0
0
366
0.305764
3891d2a8a93288efa2d7669ef1a5641d27143d72
19,970
py
Python
src/documentos/tools/repair.py
TroyWilliams3687/documentos
4a47feb5db5b03dd4ce8d2f45a13ff0a87987303
[ "MIT" ]
null
null
null
src/documentos/tools/repair.py
TroyWilliams3687/documentos
4a47feb5db5b03dd4ce8d2f45a13ff0a87987303
[ "MIT" ]
null
null
null
src/documentos/tools/repair.py
TroyWilliams3687/documentos
4a47feb5db5b03dd4ce8d2f45a13ff0a87987303
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # ----------- # SPDX-License-Identifier: MIT # Copyright (c) 2021 Troy Williams # uuid : 633f2088-bbe3-11eb-b9c2-33be0bb8451e # author: Troy Williams # email : troy.williams@bluebill.net # date : 2021-05-23 # ----------- """ The `repair` command has access to tools th...
26.733601
116
0.596645
0
0
0
0
6,556
0.328292
0
0
11,243
0.562994
3892505f0839bd49e611ef5e52c666213e0222fb
29,432
py
Python
connect/cli/plugins/product/export.py
vgrebenschikov/connect-cli
5d2bffca8ed76060fd2337abf05ccee2d68c6e33
[ "Apache-2.0" ]
null
null
null
connect/cli/plugins/product/export.py
vgrebenschikov/connect-cli
5d2bffca8ed76060fd2337abf05ccee2d68c6e33
[ "Apache-2.0" ]
null
null
null
connect/cli/plugins/product/export.py
vgrebenschikov/connect-cli
5d2bffca8ed76060fd2337abf05ccee2d68c6e33
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of the Ingram Micro Cloud Blue Connect connect-cli. # Copyright (c) 2019-2021 Ingram Micro. All Rights Reserved. import os import json from datetime import datetime from urllib import parse import requests from click import ClickException from openpyxl import Workbook from...
32.557522
108
0.628364
0
0
0
0
0
0
0
0
5,949
0.202127
3892d5674879bbcf71468a4b3b615df537552e19
729
py
Python
HackTheVote/2020/fileshare/cleaner.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
HackTheVote/2020/fileshare/cleaner.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
HackTheVote/2020/fileshare/cleaner.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
import os, time, shutil def get_used_dirs(): pids = [p for p in os.listdir("/proc") if p.isnumeric()] res = set() for p in pids: try: path = os.path.realpath("/proc/%s/cwd"%p) if path.startswith("/tmp/fileshare."): res.add(path) except: pa...
25.137931
84
0.463649
0
0
0
0
0
0
0
0
79
0.108368
38930feb943e3f9cbebdb5281ab3fef2c1edeeab
1,441
py
Python
scripts/dataset-preparation/get_image_urls.py
byewokko/guessing-game
ffca7f68836803e1a2049488227306ec0963e65b
[ "MIT" ]
2
2020-09-04T21:15:00.000Z
2020-09-25T12:20:33.000Z
scripts/dataset-preparation/get_image_urls.py
byewokko/guessing-game
ffca7f68836803e1a2049488227306ec0963e65b
[ "MIT" ]
null
null
null
scripts/dataset-preparation/get_image_urls.py
byewokko/guessing-game
ffca7f68836803e1a2049488227306ec0963e65b
[ "MIT" ]
null
null
null
import os import requests from nltk.corpus import wordnet as wn urldir = "urls" geturls = "http://www.image-net.org/api/text/imagenet.synset.geturls?wnid={wnid}" if not os.path.isdir(urldir): os.makedirs(urldir) with open("base_concepts.txt") as fin: for line in fin: concept = line.strip().split("_"...
33.511628
88
0.528799
0
0
0
0
0
0
0
0
229
0.158917
3895e3d273191a5891b94d3dce87893bc4fae4bc
14,665
py
Python
common/database.py
santoshpanna/Discord-Bot
4757a5899dede946a8e409604d230ddc77626d41
[ "MIT" ]
null
null
null
common/database.py
santoshpanna/Discord-Bot
4757a5899dede946a8e409604d230ddc77626d41
[ "MIT" ]
null
null
null
common/database.py
santoshpanna/Discord-Bot
4757a5899dede946a8e409604d230ddc77626d41
[ "MIT" ]
null
null
null
import time from . import common from datetime import datetime from pymongo import MongoClient, ASCENDING, errors from _datetime import timedelta # TODO # - More error handling # - Refactor class Database: def __init__(self): # getting the configuration config = common.getConfig() client =...
44.305136
180
0.610638
14,473
0.986908
0
0
0
0
0
0
2,730
0.186158
38960fd0dbb8b90644b976de856162ef1dd45d60
9,859
py
Python
resources.py
luca-penasa/circle-craters
62881f7fa7f032c8377dee130598ec7a93ccdae3
[ "BSD-3-Clause" ]
1
2021-02-01T13:59:29.000Z
2021-02-01T13:59:29.000Z
resources.py
europlanet-gmap/circle-craters
62881f7fa7f032c8377dee130598ec7a93ccdae3
[ "BSD-3-Clause" ]
null
null
null
resources.py
europlanet-gmap/circle-craters
62881f7fa7f032c8377dee130598ec7a93ccdae3
[ "BSD-3-Clause" ]
1
2020-10-21T13:50:34.000Z
2020-10-21T13:50:34.000Z
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.15.0) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x01\x64\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x18\x...
46.947619
129
0.723299
0
0
0
0
0
0
0
0
9,234
0.936606
389677db37e2b64f293419c2cc65068b4e74938c
6,422
py
Python
analysis_util.py
googleinterns/invobs-data-assimilation
36e0ff6319a596d99d6f4197bff0f00a38d299c4
[ "Apache-2.0" ]
16
2021-07-05T08:09:43.000Z
2022-03-21T19:12:06.000Z
analysis_util.py
googleinterns/invobs-data-assimilation
36e0ff6319a596d99d6f4197bff0f00a38d299c4
[ "Apache-2.0" ]
null
null
null
analysis_util.py
googleinterns/invobs-data-assimilation
36e0ff6319a596d99d6f4197bff0f00a38d299c4
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.324201
80
0.678605
0
0
0
0
0
0
0
0
2,556
0.398007
38985d959385d3a2057ea5f7a76d2853b1c2d13c
23,684
py
Python
Model&Data/tf-VAEGAN/main.py
LiangjunFeng/Generative-Any-Shot-Learning
693c4ab92f2eb04cc453c870782710a982f98e80
[ "Apache-2.0" ]
null
null
null
Model&Data/tf-VAEGAN/main.py
LiangjunFeng/Generative-Any-Shot-Learning
693c4ab92f2eb04cc453c870782710a982f98e80
[ "Apache-2.0" ]
null
null
null
Model&Data/tf-VAEGAN/main.py
LiangjunFeng/Generative-Any-Shot-Learning
693c4ab92f2eb04cc453c870782710a982f98e80
[ "Apache-2.0" ]
null
null
null
import argparse from train_images import run # generalized ZSL # CUDA_VISIBLE_DEVICES=0 nohup python -u main.py --dataset AWA1 --few_train False --num_shots 0 --generalized True > awa1.log 2>&1 & # CUDA_VISIBLE_DEVICES=1 nohup python -u main.py --dataset SUN --few_train False --num_shots 0 --generalized True > sun.lo...
92.515625
195
0.728973
4,565
0.192746
0
0
0
0
0
0
18,162
0.766847
389928928531253b490c07d0fc64099905fa3ddb
13,514
py
Python
src/charm.py
openstack-charmers/charm-ovn-central-operator
b64cd0ab974b4059c242c47a237d43b7872d9e1f
[ "Apache-2.0" ]
null
null
null
src/charm.py
openstack-charmers/charm-ovn-central-operator
b64cd0ab974b4059c242c47a237d43b7872d9e1f
[ "Apache-2.0" ]
null
null
null
src/charm.py
openstack-charmers/charm-ovn-central-operator
b64cd0ab974b4059c242c47a237d43b7872d9e1f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """OVN Central Operator Charm. This charm provide Glance services as part of an OpenStack deployment """ import ovn import ovsdb as ch_ovsdb import logging from typing import List import ops.charm from ops.framework import StoredState from ops.main import main import advanced_sunbeam_openstac...
36.13369
76
0.576735
12,168
0.9004
0
0
778
0.05757
0
0
3,004
0.222288
3899d54508a0e95bd0473233c830cecd104741d0
9,101
py
Python
main.py
tonymorony/trollbox_gui
39fd0a60bbc9aed116c10be5f20d2d2539fb4f9f
[ "MIT" ]
2
2018-11-02T15:42:33.000Z
2018-11-18T00:51:46.000Z
main.py
tonymorony/trollbox_gui
39fd0a60bbc9aed116c10be5f20d2d2539fb4f9f
[ "MIT" ]
null
null
null
main.py
tonymorony/trollbox_gui
39fd0a60bbc9aed116c10be5f20d2d2539fb4f9f
[ "MIT" ]
null
null
null
from kivy.app import App from kivy.config import Config from kivy.uix.listview import ListItemButton from kivy.uix.screenmanager import ScreenManager, Screen from kivy.uix.label import Label from kivy.clock import Clock from kivy.uix.button import Button from kivy.uix.widget import Widget from functools import partial ...
40.811659
224
0.600703
8,249
0.906384
0
0
0
0
0
0
1,399
0.153719
389b67fc68ad22caeff85063c1c4e146f3236d00
4,113
py
Python
marinetrafficapi/vessel_data/VD02_vessel_particulars/models.py
arrrlo/marine-traffic-client-api
1ac4b65010b1dc3f161940ee83815b341f9455ea
[ "MIT" ]
15
2019-12-24T17:25:33.000Z
2022-03-04T01:56:30.000Z
marinetrafficapi/vessel_data/VD02_vessel_particulars/models.py
arrrlo/marine-traffic-client-api
1ac4b65010b1dc3f161940ee83815b341f9455ea
[ "MIT" ]
27
2019-03-14T09:04:07.000Z
2022-03-02T09:20:36.000Z
marinetrafficapi/vessel_data/VD02_vessel_particulars/models.py
arrrlo/marine-traffic-client-api
1ac4b65010b1dc3f161940ee83815b341f9455ea
[ "MIT" ]
3
2019-04-15T14:02:32.000Z
2022-03-25T12:55:47.000Z
from marinetrafficapi.models import Model from marinetrafficapi.fields import TextField, NumberField, RealNumberField class VesselParticural(Model): """Get vessel particulars (including type, dimensions, ownership etc).""" mmsi = NumberField(index='MMSI', desc="Maritime Mobile Service ...
47.825581
83
0.518843
3,992
0.970581
0
0
0
0
0
0
1,791
0.435449
389cba084366f7307444b1fce740c72d5772c5a0
8,985
py
Python
01-tapsterbot/click-accuracy/ClickAutomation.py
AppTestBot/AppTestBot
035e93e662753e50d7dcc38d6fd362933186983b
[ "Apache-2.0" ]
null
null
null
01-tapsterbot/click-accuracy/ClickAutomation.py
AppTestBot/AppTestBot
035e93e662753e50d7dcc38d6fd362933186983b
[ "Apache-2.0" ]
null
null
null
01-tapsterbot/click-accuracy/ClickAutomation.py
AppTestBot/AppTestBot
035e93e662753e50d7dcc38d6fd362933186983b
[ "Apache-2.0" ]
null
null
null
import os import sys import shutil import csv import subprocess ...
40.472973
104
0.427713
0
0
0
0
0
0
0
0
2,054
0.222511
389d5fdd271842afaa8eb2ba841ed09fa0b2bfa7
957
py
Python
tools/export_fbx.py
SeijiEmery/unity_tools
cb401e6979b95c081a2ab3f944fc6e4419ccfd0e
[ "MIT" ]
null
null
null
tools/export_fbx.py
SeijiEmery/unity_tools
cb401e6979b95c081a2ab3f944fc6e4419ccfd0e
[ "MIT" ]
null
null
null
tools/export_fbx.py
SeijiEmery/unity_tools
cb401e6979b95c081a2ab3f944fc6e4419ccfd0e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys from run_bpy_script import run_blender_script def export_fbx(input_blend_file, output=None, **kwargs): default_args = { 'global_scale': 1e-3 } default_args.update(kwargs) kwargs = default_args run_blender_script('export_fbx.py', blend_fil...
25.864865
68
0.615465
0
0
0
0
0
0
0
0
186
0.194357
389d63e90be0f0a03a327ac541d5fc56ba045954
4,389
py
Python
g2pk/special.py
elbum/g2pK
c00fae07973b552a4e318f3c775c52bbb71c8196
[ "Apache-2.0" ]
136
2019-06-28T06:50:26.000Z
2022-03-25T15:54:08.000Z
g2pk/special.py
elbum/g2pK
c00fae07973b552a4e318f3c775c52bbb71c8196
[ "Apache-2.0" ]
6
2020-08-30T05:46:46.000Z
2022-02-07T02:00:53.000Z
g2pk/special.py
elbum/g2pK
c00fae07973b552a4e318f3c775c52bbb71c8196
[ "Apache-2.0" ]
30
2019-06-28T07:17:04.000Z
2022-02-27T07:40:06.000Z
# -*- coding: utf-8 -*- ''' Special rule for processing Hangul https://github.com/kyubyong/g2pK ''' import re from g2pk.utils import gloss, get_rule_id2text rule_id2text = get_rule_id2text() ############################ vowels ############################ def jyeo(inp, descriptive=False, verbose=False): rule =...
24.657303
73
0.501253
0
0
0
0
0
0
0
0
1,936
0.377756
389e23e664ef6bec0dd218c1023187fec627c7da
1,136
py
Python
mi/dataset/driver/flord_l_wfp/sio/flord_l_wfp_sio_telemetered_driver.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
1
2018-09-14T23:28:29.000Z
2018-09-14T23:28:29.000Z
mi/dataset/driver/flord_l_wfp/sio/flord_l_wfp_sio_telemetered_driver.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
33
2017-04-25T19:53:45.000Z
2022-03-18T17:42:18.000Z
mi/dataset/driver/flord_l_wfp/sio/flord_l_wfp_sio_telemetered_driver.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
31
2015-03-04T01:01:09.000Z
2020-10-28T14:42:12.000Z
#!/usr/local/bin/python2.7 ## # OOIPLACEHOLDER # # Copyright 2014 Raytheon Co. ## __author__ = 'Mark Worden' from mi.dataset.dataset_parser import DataSetDriverConfigKeys from mi.dataset.dataset_driver import SimpleDatasetDriver from mi.dataset.parser.flord_l_wfp_sio import FlordLWfpSioParser from mi.core.versioning ...
27.047619
92
0.71831
497
0.4375
0
0
298
0.262324
0
0
162
0.142606
389e3359d1c51e16167fb066518dcce270c6cf1d
1,150
py
Python
qa_tool/models.py
pg-irc/pathways-backend
05a8c4e750523d2d081b030a248c5444d1ed7992
[ "BSD-3-Clause" ]
12
2017-08-30T18:21:00.000Z
2021-12-09T04:04:17.000Z
qa_tool/models.py
pg-irc/pathways-backend
05a8c4e750523d2d081b030a248c5444d1ed7992
[ "BSD-3-Clause" ]
424
2017-08-08T18:32:14.000Z
2022-03-30T21:42:51.000Z
qa_tool/models.py
pg-irc/pathways-backend
05a8c4e750523d2d081b030a248c5444d1ed7992
[ "BSD-3-Clause" ]
7
2017-09-29T21:14:37.000Z
2019-12-30T21:07:37.000Z
from django.contrib.gis.db import models from common.models import (RequiredURLField, OptionalTextField, RequiredCharField) from human_services.locations.models import ServiceAtLocation from search.models import Task from users.models import User class Algorithm(models.Model): url = Req...
30.263158
81
0.722609
867
0.753913
0
0
0
0
0
0
12
0.010435
389f1a7b583f28aabf6b2f6f6dbd7bcfd9b5dc58
3,485
py
Python
ivi/tektronix/__init__.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
161
2015-01-23T17:43:01.000Z
2022-03-29T14:42:42.000Z
ivi/tektronix/__init__.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
45
2015-01-15T13:35:04.000Z
2021-06-03T01:58:55.000Z
ivi/tektronix/__init__.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
87
2015-01-31T10:55:23.000Z
2022-03-17T08:18:47.000Z
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2012-2017 Alex Forencich 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...
39.157303
77
0.857389
0
0
0
0
0
0
0
0
1,287
0.369297
38a0b921f983b2d2b9365a4bb47c16ebd9b5348e
449
py
Python
wazimap_ng/boundaries/migrations/0007_auto_20200121_0907.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
11
2019-12-31T20:27:22.000Z
2022-03-10T03:55:38.000Z
wazimap_ng/boundaries/migrations/0007_auto_20200121_0907.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
164
2020-02-06T15:02:22.000Z
2022-03-30T22:42:00.000Z
wazimap_ng/boundaries/migrations/0007_auto_20200121_0907.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
16
2020-01-03T20:30:24.000Z
2022-01-11T11:05:15.000Z
# Generated by Django 2.2.8 on 2020-01-21 09:07 import django.contrib.gis.db.models.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('boundaries', '0006_worldborder'), ] operations = [ migrations.AlterField( model_name='worldbo...
22.45
78
0.632517
321
0.714922
0
0
0
0
0
0
97
0.216036
38a129325d66bb189c82f953757e48c8f2208659
551
py
Python
rldb/db/repo__openai_baselines_cbd21ef/algo__ppo2_mpi/entries.py
seungjaeryanlee/sotarl
8c471c4666d6210c68f3cb468e439a2b168c785d
[ "MIT" ]
45
2019-05-13T17:39:33.000Z
2022-03-07T23:44:13.000Z
rldb/db/repo__openai_baselines_cbd21ef/algo__ppo2_mpi/entries.py
seungjaeryanlee/sotarl
8c471c4666d6210c68f3cb468e439a2b168c785d
[ "MIT" ]
2
2019-03-29T01:41:59.000Z
2019-07-02T02:48:31.000Z
rldb/db/repo__openai_baselines_cbd21ef/algo__ppo2_mpi/entries.py
seungjaeryanlee/sotarl
8c471c4666d6210c68f3cb468e439a2b168c785d
[ "MIT" ]
2
2020-04-07T20:57:30.000Z
2020-07-08T12:55:15.000Z
entries = [ { 'env-title': 'atari-enduro', 'score': 207.47, }, { 'env-title': 'atari-space-invaders', 'score': 459.89, }, { 'env-title': 'atari-qbert', 'score': 7184.73, }, { 'env-title': 'atari-seaquest', 'score': 1383.38, ...
17.774194
44
0.399274
0
0
0
0
0
0
0
0
237
0.430127
38a1aeec73b5c25381b82d560fdb3ca48a37c74c
701
py
Python
autoPyTorch/pipeline/components/setup/network_initializer/NoInit.py
ravinkohli/Auto-PyTorch
a1512d56d4db89133e895e85765e3b72afbfe157
[ "Apache-2.0" ]
1
2021-05-12T10:11:58.000Z
2021-05-12T10:11:58.000Z
autoPyTorch/pipeline/components/setup/network_initializer/NoInit.py
maxpark/Auto-PyTorch
06e67de5017b4cccad9398e24a3d9f0bd8176da3
[ "Apache-2.0" ]
34
2020-10-06T08:06:46.000Z
2021-01-21T13:23:34.000Z
autoPyTorch/pipeline/components/setup/network_initializer/NoInit.py
maxpark/Auto-PyTorch
06e67de5017b4cccad9398e24a3d9f0bd8176da3
[ "Apache-2.0" ]
1
2020-10-14T12:25:47.000Z
2020-10-14T12:25:47.000Z
from typing import Callable import torch from autoPyTorch.pipeline.components.setup.network_initializer.base_network_initializer import ( BaseNetworkInitializerComponent ) class NoInit(BaseNetworkInitializerComponent): """ No initialization on the weights/bias """ def weights_init(self) -> Call...
28.04
96
0.707561
520
0.741797
0
0
0
0
0
0
316
0.450785
38a2a7377367a5e064f25d1941e049967ce7ff47
747
py
Python
NSI/Chapitre 6/TP6.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
NSI/Chapitre 6/TP6.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
NSI/Chapitre 6/TP6.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
from arbre_binaire import AB from dessiner_arbre import dessiner def hauteur(arbre): """Fonction qui renvoie la hauteur d'un arbre binaire""" # si l'arbre est vide if arbre is None: return 0 hg = hauteur(arbre.get_ag()) hd = hauteur(arbre.get_ad()) return max(hg, hd) + 1 def taille...
18.675
60
0.637216
0
0
0
0
0
0
0
0
132
0.176707
38a405bed7f1802e2da0c53ab45dbec45d5bdb40
5,441
py
Python
benchmarks/ltl_timed_transition_system/f3/timed_extending_bound.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/ltl_timed_transition_system/f3/timed_extending_bound.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/ltl_timed_transition_system/f3/timed_extending_bound.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from collections import Iterable from math import log, ceil from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, \ msat_get_bool_type from mathsat import msat_make_and, msat_make_not, msat_make_or, m...
37.784722
82
0.64547
0
0
0
0
0
0
0
0
255
0.046866
38a47549892bc58fb1a7bf130c9891fee8294b1b
298
py
Python
Python Examples/Example-FunctionWithNestedIFElse.py
crissyg/SCH-PRACTICE
9f9042d26361a58c90e5d888e4bda30ada906bae
[ "MIT" ]
null
null
null
Python Examples/Example-FunctionWithNestedIFElse.py
crissyg/SCH-PRACTICE
9f9042d26361a58c90e5d888e4bda30ada906bae
[ "MIT" ]
null
null
null
Python Examples/Example-FunctionWithNestedIFElse.py
crissyg/SCH-PRACTICE
9f9042d26361a58c90e5d888e4bda30ada906bae
[ "MIT" ]
null
null
null
# Function with Nested IF Else def printColor(value): value = value.upper() if (value == 'Y'): print "yellow" elif (value == 'B'): print "blue" elif (value == 'R'): print "red" else: print "unknown" printColor('r') # call function
21.285714
33
0.510067
0
0
0
0
0
0
0
0
87
0.291946
38a88169472e58b7b9fe7f0fe6d8780c412d1def
299
py
Python
estimators/__init__.py
eliberis/network-prop-estimator
8a110652e11fa5484b715baf442f0efc4d281a15
[ "MIT" ]
null
null
null
estimators/__init__.py
eliberis/network-prop-estimator
8a110652e11fa5484b715baf442f0efc4d281a15
[ "MIT" ]
null
null
null
estimators/__init__.py
eliberis/network-prop-estimator
8a110652e11fa5484b715baf442f0efc4d281a15
[ "MIT" ]
null
null
null
from estimators.weighted_edge_estimator import * from estimators.weighted_node_estimator import * from estimators.weighted_triangle_estimator import * from estimators.formula_edge_estimator import * from estimators.formula_node_estimator import * from estimators.formula_triangle_estimator import *
42.714286
52
0.879599
0
0
0
0
0
0
0
0
0
0
38a9891c1ed5cf5b3c0c9127391a91763d0ff3d8
673
py
Python
p3d/__init__.py
Derfies/p3d
93ff52819d778643afe1dc1ccf296e99fc52c59d
[ "MIT" ]
null
null
null
p3d/__init__.py
Derfies/p3d
93ff52819d778643afe1dc1ccf296e99fc52c59d
[ "MIT" ]
null
null
null
p3d/__init__.py
Derfies/p3d
93ff52819d778643afe1dc1ccf296e99fc52c59d
[ "MIT" ]
null
null
null
from pandac.PandaModules import Vec3 P3D_VERSION = '0.1' __version__ = P3D_VERSION from constants import * from functions import * import commonUtils from object import Object from singleTask import SingleTask from nodePathObject import NodePathObject from pandaObject import * from pandaBehaviour import PandaBeh...
21.03125
41
0.827637
0
0
0
0
0
0
0
0
31
0.046062
38abddcaea188dde02e036dee74516a15526f072
678
py
Python
project/user/models/user.py
fv316/flask-template-project
026459b299c7aa4d82c2b59b98e3c929b4786a78
[ "MIT" ]
9
2017-02-08T21:42:15.000Z
2021-12-15T05:18:18.000Z
project/user/models/user.py
fv316/flask-template-project
026459b299c7aa4d82c2b59b98e3c929b4786a78
[ "MIT" ]
10
2016-07-25T11:00:08.000Z
2019-09-25T14:56:40.000Z
project/user/models/user.py
fv316/flask-template-project
026459b299c7aa4d82c2b59b98e3c929b4786a78
[ "MIT" ]
7
2016-11-01T20:11:03.000Z
2020-02-04T14:25:49.000Z
# !/usr/bin/python # -*- coding: utf-8 -*- from project.database import Base from sqlalchemy.orm import relationship from sqlalchemy import Column, Integer, String from flask_login import UserMixin from project.user.models.rbac_user_mixin import UserMixin as RBACUserMixin class User(RBACUserMixin, UserMixin, Base): ...
29.478261
74
0.721239
402
0.59292
0
0
0
0
0
0
77
0.113569
38ad1f303439ed72643aaa239b597b2291139e70
1,477
py
Python
test/convert_to_lemon.py
cltl/FrameNetNLTK
96883447ff006a90becd24bcfdd96ac82d8ec677
[ "Apache-2.0" ]
1
2020-07-21T08:15:13.000Z
2020-07-21T08:15:13.000Z
test/convert_to_lemon.py
cltl/FrameNetNLTK
96883447ff006a90becd24bcfdd96ac82d8ec677
[ "Apache-2.0" ]
2
2020-07-14T09:15:34.000Z
2021-03-31T20:00:29.000Z
test/convert_to_lemon.py
cltl/FrameNetNLTK
96883447ff006a90becd24bcfdd96ac82d8ec677
[ "Apache-2.0" ]
null
null
null
import sys import os sys.path.insert(0, '../..') from nltk.corpus import framenet as fn import FrameNetNLTK from FrameNetNLTK import load, convert_to_lemon my_fn = load(folder='test_lexicon', verbose=2) output_path = os.path.join(os.getcwd(), 'stats', ...
32.822222
66
0.528775
0
0
0
0
0
0
0
0
131
0.088693
38adf5ebd6f269f17c1fa14e7dbf39222e45d753
1,362
py
Python
python/dataProcessing/generatePlots.py
Maplenormandy/list-62x
c1731d0610fdf9e58cb2792d706e8904c549fbd6
[ "MIT" ]
1
2020-11-07T12:40:59.000Z
2020-11-07T12:40:59.000Z
python/dataProcessing/generatePlots.py
Maplenormandy/list-62x
c1731d0610fdf9e58cb2792d706e8904c549fbd6
[ "MIT" ]
null
null
null
python/dataProcessing/generatePlots.py
Maplenormandy/list-62x
c1731d0610fdf9e58cb2792d706e8904c549fbd6
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt import numpy as np from statsmodels.stats.weightstats import ttost_paired data = pd.read_csv(open('combined_data.csv')) for t in data.index: if int(data.loc[t, 'Baseline']) == 0: data.loc[t, 'STF Baseline'] = data.loc[t, 'Succesfully Tracked Features 0...
31.674419
93
0.696035
0
0
0
0
0
0
0
0
472
0.346549
38af66085e0a385bb524dc4be264dbe2d898daba
1,829
py
Python
zunzun/app/app.py
aprezcuba24/zunzun
cc294d9dfb84695be0ed1425cf946a0f4ea644a9
[ "MIT" ]
null
null
null
zunzun/app/app.py
aprezcuba24/zunzun
cc294d9dfb84695be0ed1425cf946a0f4ea644a9
[ "MIT" ]
null
null
null
zunzun/app/app.py
aprezcuba24/zunzun
cc294d9dfb84695be0ed1425cf946a0f4ea644a9
[ "MIT" ]
null
null
null
import importlib from zunzun import CommandRegister from injector import inject, singleton from click.core import Group from zunzun import ListenerConnector from zunzun import inspect from pathlib import Path @singleton class App: name = "" listeners_config: list = [] @inject def __init__( se...
29.5
86
0.668671
1,606
0.878075
0
0
1,617
0.88409
0
0
110
0.060142
38aff846c9fd73e215fb8964d1e02ff8c3aed61f
775
py
Python
scitbx/examples/principal_axes_of_inertia.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
scitbx/examples/principal_axes_of_inertia.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
scitbx/examples/principal_axes_of_inertia.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division from scitbx.math import principal_axes_of_inertia from scitbx.array_family import flex def run(): points = flex.vec3_double([ ( 8.292, 1.817, 6.147), ( 9.159, 2.144, 7.299), (10.603, 2.331, 6.885), (11.041, 1.811, 5.855), ( 9.061, 1.065, 8.369), ( 7.6...
26.724138
49
0.579355
0
0
0
0
0
0
0
0
10
0.012903
38b0b6a64069394c466d60b288074902a86d98b8
8,071
py
Python
ape.py
PhilRW/appdaemon-apps
96d21f73d0cbb49a29799c1f7bf4c42d98b4be26
[ "MIT" ]
5
2019-01-30T17:23:30.000Z
2021-12-27T20:46:13.000Z
ape.py
PhilRW/appdaemon-apps
96d21f73d0cbb49a29799c1f7bf4c42d98b4be26
[ "MIT" ]
1
2019-10-02T20:52:45.000Z
2019-10-02T20:52:45.000Z
ape.py
PhilRW/appdaemon-apps
96d21f73d0cbb49a29799c1f7bf4c42d98b4be26
[ "MIT" ]
null
null
null
import bisect import calendar import datetime import pickle import appdaemon.plugins.hass.hassapi as hass class Event: def __init__(self, dt, entity, new): self.dt = dt self.entity = entity self.new = new def __str__(self): return "event({0}, {1}, {2})".format(self.dt, self....
37.365741
158
0.575022
7,958
0.985999
0
0
81
0.010036
0
0
1,580
0.195763
38b116711be814607ed2866ab771fa7d05349727
807
py
Python
main/migrations/0013_game.py
AyushHazard/Samskritam
c5db8e712afe24737cacc6e6f3f27e3fcbe83e26
[ "MIT" ]
null
null
null
main/migrations/0013_game.py
AyushHazard/Samskritam
c5db8e712afe24737cacc6e6f3f27e3fcbe83e26
[ "MIT" ]
null
null
null
main/migrations/0013_game.py
AyushHazard/Samskritam
c5db8e712afe24737cacc6e6f3f27e3fcbe83e26
[ "MIT" ]
3
2021-01-05T18:40:57.000Z
2021-05-14T07:56:20.000Z
# Generated by Django 3.1.2 on 2021-01-01 05:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0012_attempted_contests'), ] operations = [ migrations.CreateModel( name='Game', fields=[ ('...
32.28
114
0.567534
714
0.884758
0
0
0
0
0
0
152
0.188352
38b351b78225843bd3597a610a0f89e29687ff5d
2,224
py
Python
genome_designer/debug/2014_08_05_de_novo_on_dep_data_with_intervals.py
churchlab/millstone
ddb5d003a5b8a7675e5a56bafd5c432d9642b473
[ "MIT" ]
45
2015-09-30T14:55:33.000Z
2021-06-28T02:33:30.000Z
genome_designer/debug/2014_08_05_de_novo_on_dep_data_with_intervals.py
churchlab/millstone
ddb5d003a5b8a7675e5a56bafd5c432d9642b473
[ "MIT" ]
261
2015-06-03T20:41:56.000Z
2022-03-07T08:46:10.000Z
genome_designer/debug/2014_08_05_de_novo_on_dep_data_with_intervals.py
churchlab/millstone
ddb5d003a5b8a7675e5a56bafd5c432d9642b473
[ "MIT" ]
22
2015-06-04T20:43:10.000Z
2022-02-27T08:27:34.000Z
""" Re-running de novo assembly, this time including reads that map to mobile elements. """ import os import sys # Setup Django environment. sys.path.append( os.path.join(os.path.dirname(os.path.realpath(__file__)), '../')) os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from Bio import SeqIO from experim...
30.054054
83
0.659173
0
0
0
0
0
0
0
0
495
0.222572
38b43f59bf0131f94f4000fe15af73705057fab7
288
py
Python
P942.py
Muntaha-Islam0019/Leetcode-Solutions
0bc56ce43a6d8ad10461b69078166a2a5b913e7f
[ "MIT" ]
null
null
null
P942.py
Muntaha-Islam0019/Leetcode-Solutions
0bc56ce43a6d8ad10461b69078166a2a5b913e7f
[ "MIT" ]
null
null
null
P942.py
Muntaha-Islam0019/Leetcode-Solutions
0bc56ce43a6d8ad10461b69078166a2a5b913e7f
[ "MIT" ]
null
null
null
class Solution: def diStringMatch(self, S): low,high=0,len(S) ans=[] for i in S: if i=="I": ans.append(low) low+=1 else: ans.append(high) high-=1 return ans +[low]
22.153846
32
0.381944
287
0.996528
0
0
0
0
0
0
3
0.010417
38b594515a9bd74963aec29f7d6581b2994b7f2f
155
py
Python
controle/admin.py
jeremyrodrigues/auto-ambient-music
a8f622334f921741e0011ef305ac8e991f361d35
[ "MIT" ]
null
null
null
controle/admin.py
jeremyrodrigues/auto-ambient-music
a8f622334f921741e0011ef305ac8e991f361d35
[ "MIT" ]
null
null
null
controle/admin.py
jeremyrodrigues/auto-ambient-music
a8f622334f921741e0011ef305ac8e991f361d35
[ "MIT" ]
null
null
null
from django.contrib import admin from controle.models import Time, Music # Register your models here. admin.site.register(Time) admin.site.register(Music)
25.833333
39
0.812903
0
0
0
0
0
0
0
0
28
0.180645
38b68afd1f09515025017ea53a4f82fcb67e1ec1
3,802
py
Python
src/fvm/scripts/Output.py
drm42/fvm-drm
c9b940e593034f1aa3020d63ff1e09ebef9c182a
[ "MIT" ]
null
null
null
src/fvm/scripts/Output.py
drm42/fvm-drm
c9b940e593034f1aa3020d63ff1e09ebef9c182a
[ "MIT" ]
null
null
null
src/fvm/scripts/Output.py
drm42/fvm-drm
c9b940e593034f1aa3020d63ff1e09ebef9c182a
[ "MIT" ]
null
null
null
import os import pdb import fvm.models_atyped_double as models import fvm.exporters_atyped_double as exporters class Output(): def __init__(self, outputDir, probeIndex, sim): if os.path.isdir(outputDir) == False: os.mkdir(outputDir) self.defFile = open(outputDir + 'deformation.dat...
38.795918
85
0.588638
3,685
0.969227
0
0
0
0
0
0
435
0.114413
38b765a30bc55c0417892d2304fc6cfeafcf844e
2,663
py
Python
forecasting/src/autogluon/forecasting/trainer/auto_trainer.py
sgdread/autogluon
fa95c72a07066dc5380fccf8bbce04b5c031fc68
[ "Apache-2.0" ]
null
null
null
forecasting/src/autogluon/forecasting/trainer/auto_trainer.py
sgdread/autogluon
fa95c72a07066dc5380fccf8bbce04b5c031fc68
[ "Apache-2.0" ]
null
null
null
forecasting/src/autogluon/forecasting/trainer/auto_trainer.py
sgdread/autogluon
fa95c72a07066dc5380fccf8bbce04b5c031fc68
[ "Apache-2.0" ]
null
null
null
import logging from typing import Dict, Union, Optional, Any from ..models.presets import get_preset_models from .abstract_trainer import AbstractForecastingTrainer, TimeSeriesDataFrame logger = logging.getLogger(__name__) class AutoForecastingTrainer(AbstractForecastingTrainer): def construct_model_templates(s...
39.746269
105
0.66917
2,435
0.914382
0
0
0
0
0
0
1,176
0.441607
38bb581927bfd74653d9371508053b5cbf15396a
28
py
Python
textbot/action.py
sparwow/textbot
cad7ad310da8af9c826e4c52f1a8f27ae90c1462
[ "MIT" ]
null
null
null
textbot/action.py
sparwow/textbot
cad7ad310da8af9c826e4c52f1a8f27ae90c1462
[ "MIT" ]
null
null
null
textbot/action.py
sparwow/textbot
cad7ad310da8af9c826e4c52f1a8f27ae90c1462
[ "MIT" ]
null
null
null
class EmailAction: pass
9.333333
18
0.714286
27
0.964286
0
0
0
0
0
0
0
0
38bc9b8fe1468f99ebc3819879722d06bb84ef06
3,895
py
Python
snippet/example/python/sqlalchemy-orm-model.py
yp2800/snippet
054af596655007cbec81340bd166489e706fffe6
[ "MIT" ]
94
2016-09-22T09:13:19.000Z
2022-03-30T07:35:35.000Z
snippet/example/python/sqlalchemy-orm-model.py
yp2800/snippet
054af596655007cbec81340bd166489e706fffe6
[ "MIT" ]
1
2020-11-22T03:05:05.000Z
2020-11-22T03:05:05.000Z
snippet/example/python/sqlalchemy-orm-model.py
yp2800/snippet
054af596655007cbec81340bd166489e706fffe6
[ "MIT" ]
38
2017-06-11T22:03:04.000Z
2022-03-10T07:46:39.000Z
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Piston Cloud Computing, Inc. # Copyright 2012 Cloudscaling Group, Inc. # All Rights Reserved. # # Licens...
33.577586
84
0.610013
2,805
0.720154
0
0
0
0
0
0
1,835
0.471117
38bd28fcad4376d276bb778bd1eda275fd9ee34f
4,417
py
Python
boofuzz/boofuzz/connections/raw_l3_socket_connection.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
2
2021-05-05T12:03:01.000Z
2021-06-04T14:27:15.000Z
boofuzz/boofuzz/connections/raw_l3_socket_connection.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
null
null
null
boofuzz/boofuzz/connections/raw_l3_socket_connection.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
2
2021-05-05T12:03:09.000Z
2021-06-04T14:27:21.000Z
from __future__ import absolute_import import errno import socket import sys from future.utils import raise_ from boofuzz import exception from boofuzz.connections import base_socket_connection ETH_P_ALL = 0x0003 # Ethernet protocol: Every packet, see Linux if_ether.h docs for more details. ETH_P_IP = 0x0800 # Et...
34.779528
118
0.617161
4,001
0.905818
0
0
110
0.024904
0
0
1,699
0.38465
38bdb7392ff396c9dcaf7942ad720334e0d7365e
4,143
py
Python
django_google_dork/migrations/0001_initial.py
chgans/django-google-dork
c8735f2d2a9740844001cf4430263ea79827102f
[ "BSD-2-Clause" ]
1
2019-07-21T02:32:03.000Z
2019-07-21T02:32:03.000Z
django_google_dork/migrations/0001_initial.py
chgans/django-google-dork
c8735f2d2a9740844001cf4430263ea79827102f
[ "BSD-2-Clause" ]
null
null
null
django_google_dork/migrations/0001_initial.py
chgans/django-google-dork
c8735f2d2a9740844001cf4430263ea79827102f
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django_google_dork.models import model_utils.fields import django.utils.timezone class Migration(migrations.Migration): replaces = [('django_google_dork', '0001_initial'), ('django_google_dork', '0002...
39.457143
149
0.567946
3,946
0.95245
0
0
0
0
0
0
602
0.145305
38be80c430f81bba9147dbcca0e967396cdc2c5c
5,314
py
Python
model2.py
incredible-vision/show-and-tell
0a10c2064c34dbc4a4097976870922f723ee4d63
[ "MIT" ]
8
2018-04-25T11:07:36.000Z
2020-07-14T09:17:58.000Z
model2.py
incredible-vision/show-and-tell
0a10c2064c34dbc4a4097976870922f723ee4d63
[ "MIT" ]
null
null
null
model2.py
incredible-vision/show-and-tell
0a10c2064c34dbc4a4097976870922f723ee4d63
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.init as init import torch.nn.functional as F from torch.autograd import Variable from torchvision.models import vgg16 from torch.nn.utils.rnn import pack_padded_sequence class ShowAttendTellModel(nn.Module): def __init__(self, hidden_size, context_size, vocab_siz...
46.614035
173
0.652804
5,092
0.958224
0
0
0
0
0
0
531
0.099925
38be9241383135c31416fcbdb7bbbe1661a5308b
770
py
Python
src/fruit_castle/hadwin/hadwin.py
brownboycodes/common-api-server
a3cf92395de31a3dd0c927003e7919d3c74c300f
[ "MIT" ]
2
2021-11-15T06:04:00.000Z
2021-12-30T11:45:34.000Z
src/fruit_castle/hadwin/hadwin.py
brownboycodes/common-api-server
a3cf92395de31a3dd0c927003e7919d3c74c300f
[ "MIT" ]
null
null
null
src/fruit_castle/hadwin/hadwin.py
brownboycodes/common-api-server
a3cf92395de31a3dd0c927003e7919d3c74c300f
[ "MIT" ]
null
null
null
from flask import Blueprint, abort, jsonify, render_template from src.fruit_castle.hadwin.utilities import get_json_data from .v1.version_1 import v1 from .v2.version_2 import v2 from .v3.version_3 import v3 hadwin = Blueprint('hadwin', __name__, url_prefix='/hadwin',static_url_path='/dist', static_folde...
28.518519
85
0.755844
0
0
0
0
307
0.398701
0
0
171
0.222078
38bf08dd063a876b0519dcc7594eeaa4f9ce3eaf
636
py
Python
tests/formatting/catch_for_formatting_tests.py
friendly-traceback/friendly-traceback
4f6785f14c271a4d6412ef19c140f9d380cdbcbf
[ "MIT" ]
45
2021-07-06T03:30:20.000Z
2022-03-16T17:30:58.000Z
tests/formatting/catch_for_formatting_tests.py
friendly-traceback/friendly-traceback
4f6785f14c271a4d6412ef19c140f9d380cdbcbf
[ "MIT" ]
110
2021-06-28T11:48:46.000Z
2022-03-25T20:41:25.000Z
tests/formatting/catch_for_formatting_tests.py
friendly-traceback/friendly-traceback
4f6785f14c271a4d6412ef19c140f9d380cdbcbf
[ "MIT" ]
4
2021-07-05T20:56:39.000Z
2021-11-11T20:24:34.000Z
import pytest import friendly_traceback from friendly_traceback.console_helpers import _get_info from ..syntax_errors_formatting_cases import descriptions friendly_traceback.set_lang("en") where = "parsing_error_source" cause = "cause" @pytest.mark.parametrize("filename", descriptions.keys()) def test_syntax_errors...
27.652174
64
0.75
0
0
0
0
395
0.621069
0
0
82
0.128931
38bf528d15683cec4fc4c025265cae0fee582289
1,783
py
Python
solutions/day17.py
rds504/AoC-2020
3901a22863ed4479a8cd02f2fa5ea55d5f1f5739
[ "MIT" ]
null
null
null
solutions/day17.py
rds504/AoC-2020
3901a22863ed4479a8cd02f2fa5ea55d5f1f5739
[ "MIT" ]
null
null
null
solutions/day17.py
rds504/AoC-2020
3901a22863ed4479a8cd02f2fa5ea55d5f1f5739
[ "MIT" ]
null
null
null
from itertools import product from tools.general import load_input_list def get_new_active_range(current_active_set, dimensions): lowest = [0] * dimensions highest = [0] * dimensions for point in current_active_set: for i, coord in enumerate(point): if coord < lowest[i]: ...
27.430769
81
0.637128
0
0
0
0
0
0
0
0
110
0.061694
38bf5342401beda94ff276289636e79b34f8c426
1,318
py
Python
app/endpoints/sillyusers/gen_user.py
kant/test-api
2b2ab5b722dbf18cd99906b27fda356d02ae7a52
[ "MIT" ]
9
2019-05-22T08:46:01.000Z
2021-12-10T06:44:56.000Z
app/endpoints/sillyusers/gen_user.py
kant/test-api
2b2ab5b722dbf18cd99906b27fda356d02ae7a52
[ "MIT" ]
285
2019-09-03T00:52:39.000Z
2022-02-13T02:13:59.000Z
app/endpoints/sillyusers/gen_user.py
kant/test-api
2b2ab5b722dbf18cd99906b27fda356d02ae7a52
[ "MIT" ]
4
2019-09-19T18:14:09.000Z
2020-12-15T18:35:07.000Z
# -*- coding: utf-8 -*- import random import uuid import silly def user_test_info(): set_id = str(uuid.uuid1()) rand_name: str = silly.noun() rand_num: int = random.randint(1, 10000) username: str = f"{rand_name}-{rand_num}" first_name: str = silly.verb() last_name: str = rand_name passwo...
28.652174
52
0.603187
0
0
0
0
0
0
0
0
259
0.19651
38c35f6af1e202d4be9125e181898d11876f48c9
759
py
Python
applications/Corpus/controllers/MI.py
jolivaresc/corpus
1d2f3885778c29cb56dd1447140376e3e7cd5831
[ "BSD-3-Clause" ]
1
2017-07-25T20:15:56.000Z
2017-07-25T20:15:56.000Z
applications/Corpus/controllers/MI.py
jolivaresc/corpus
1d2f3885778c29cb56dd1447140376e3e7cd5831
[ "BSD-3-Clause" ]
null
null
null
applications/Corpus/controllers/MI.py
jolivaresc/corpus
1d2f3885778c29cb56dd1447140376e3e7cd5831
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from numpy import log2 from pickle import load """ * Clase que se encarga de ver la información mutua que hay entre dos tokens * sirve para determinar si es colocación o no """ class MI: def __init__(self): self.words = load(open("./models/words.d",'r')) self.ngrams = load(open("./models...
22.323529
75
0.642951
554
0.727989
0
0
0
0
0
0
200
0.262812
38c367440c32df5c349c8e3577e4146c8b52d7fb
15,762
py
Python
tests/test_cli.py
chrahunt/quicken
2dd00a5f024d7b114b211aad8a2618ec8f101956
[ "MIT" ]
3
2019-11-12T17:56:08.000Z
2022-03-12T03:43:10.000Z
tests/test_cli.py
chrahunt/quicken
2dd00a5f024d7b114b211aad8a2618ec8f101956
[ "MIT" ]
47
2018-12-10T04:08:58.000Z
2022-03-20T14:54:36.000Z
tests/test_cli.py
chrahunt/quicken
2dd00a5f024d7b114b211aad8a2618ec8f101956
[ "MIT" ]
1
2019-11-12T17:55:17.000Z
2019-11-12T17:55:17.000Z
import logging import os import subprocess import sys from contextlib import contextmanager from pathlib import Path from textwrap import dedent import pytest from quicken._internal.cli.cli import get_arg_parser, parse_file from quicken._internal.constants import ( DEFAULT_IDLE_TIMEOUT, ENV_IDLE_TIMEOUT, ...
28.815356
87
0.568646
0
0
440
0.027915
488
0.030961
0
0
5,196
0.329654
38c660adbca3d15d5ca02084209f151a1d111447
19,353
py
Python
bmtk/simulator/popnet/popsimulator.py
hernando/bmtk
57e6924819a74f41ed94a34f55e6ebed0525d037
[ "BSD-3-Clause" ]
1
2019-03-27T12:23:09.000Z
2019-03-27T12:23:09.000Z
bmtk/simulator/popnet/popsimulator.py
hernando/bmtk
57e6924819a74f41ed94a34f55e6ebed0525d037
[ "BSD-3-Clause" ]
null
null
null
bmtk/simulator/popnet/popsimulator.py
hernando/bmtk
57e6924819a74f41ed94a34f55e6ebed0525d037
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017. Allen Institute. All rights reserved # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the # following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
42.911308
131
0.644293
17,358
0.896915
0
0
5,214
0.269416
0
0
10,769
0.556451
38c826bb3c6dbbd679effc96ae41e5e3bbce3014
4,899
py
Python
magnrings.py
Qvapil/Electromagnetic_Fields_B_2020
9fe139ff6574582ef64861261b0ee8c98a481a63
[ "MIT" ]
3
2021-08-18T08:47:33.000Z
2022-03-05T13:14:00.000Z
magnrings.py
Qvapil/Electromagnetic_Fields_B_2020
9fe139ff6574582ef64861261b0ee8c98a481a63
[ "MIT" ]
null
null
null
magnrings.py
Qvapil/Electromagnetic_Fields_B_2020
9fe139ff6574582ef64861261b0ee8c98a481a63
[ "MIT" ]
1
2021-12-22T11:57:30.000Z
2021-12-22T11:57:30.000Z
import matplotlib.pyplot as plt import matplotlib.cm as cm import numpy as np import math #constants d=2 h=1 a=0.1 I=1 #Axes N=100 xmin=0 xmax=4 xx=np.linspace(xmin,xmax,N) ymin=0 ymax=4 yy=np.linspace(ymin,ymax,N) zmin=-2 zmax=2 zz=np.linspace(zmin,zmax,N) X,Z=np.meshgrid(xx,zz) XX,Y=np.meshgrid(xx,yy) YY,ZZ=np....
27.368715
131
0.611962
0
0
0
0
0
0
0
0
1,592
0.324567
38ca028dcd1cdce17bd930dfa88dbdd8830ed96c
1,151
py
Python
examples/video.py
ankur09011/pycozmo
cd8492a141d61f6fd0119066d4e38528cef61fab
[ "MIT" ]
1
2021-01-11T20:34:38.000Z
2021-01-11T20:34:38.000Z
examples/video.py
ankur09011/pycozmo
cd8492a141d61f6fd0119066d4e38528cef61fab
[ "MIT" ]
null
null
null
examples/video.py
ankur09011/pycozmo
cd8492a141d61f6fd0119066d4e38528cef61fab
[ "MIT" ]
null
null
null
#!/usr/bin/env python import time import pycozmo # Last image, received from the robot. last_im = None def on_camera_image(cli, new_im): """ Handle new images, coming from the robot. """ del cli global last_im last_im = new_im def pycozmo_program(cli: pycozmo.client.Client): global last_im...
20.927273
95
0.636838
0
0
0
0
0
0
0
0
313
0.271937
38cabe0c4bced6b634c68a59cf4f8f5117b14f51
394
py
Python
2020/aoc6.py
lachtanek/advent-of-code
dc83d82d46392adc073191161c2767e684d776bd
[ "MIT" ]
null
null
null
2020/aoc6.py
lachtanek/advent-of-code
dc83d82d46392adc073191161c2767e684d776bd
[ "MIT" ]
null
null
null
2020/aoc6.py
lachtanek/advent-of-code
dc83d82d46392adc073191161c2767e684d776bd
[ "MIT" ]
null
null
null
from functools import reduce data = [] with open("aoc6.inp") as rf: sets = [] for l in rf: if l == "\n": data.append(sets) sets = [] else: sets.append(set([c for c in l.strip()])) a1 = a2 = 0 for sets in data: a1 += len(reduce(lambda s1, s2: s1 | s2, s...
17.909091
52
0.5
0
0
0
0
0
0
0
0
14
0.035533
38cae31a92a87d74ef017b14b1ce771550e7fc51
513
py
Python
hello_tradera.py
ErikAndren/hello_tradera
d318bf1c187a91f81d8452d0466cc837befafe34
[ "MIT" ]
null
null
null
hello_tradera.py
ErikAndren/hello_tradera
d318bf1c187a91f81d8452d0466cc837befafe34
[ "MIT" ]
null
null
null
hello_tradera.py
ErikAndren/hello_tradera
d318bf1c187a91f81d8452d0466cc837befafe34
[ "MIT" ]
null
null
null
import zeep import logging logging.getLogger('zeep').setLevel(logging.ERROR) publicServiceUrl = 'https://api.tradera.com/v3/PublicService.asmx' appId = 'REPLACE ME WITH TRADERA ID' appKey = 'REPLACE ME WITH TRADERA KEY' wsdl = 'https://api.tradera.com/v3/PublicService.asmx?WSDL' client = zeep.Client(wsdl=wsdl) au...
20.52
66
0.699805
0
0
0
0
0
0
0
0
199
0.387914
38caeb5a78603a7d077226028381762fc6c61e0d
1,611
py
Python
messungen/decrypt_trace.py
tihmstar/gido_public
dcc523603b9a27b37752211715a10e30b51ce812
[ "Unlicense" ]
16
2021-04-10T16:28:00.000Z
2021-12-12T10:15:23.000Z
messungen/decrypt_trace.py
tihmstar/gido_public
dcc523603b9a27b37752211715a10e30b51ce812
[ "Unlicense" ]
null
null
null
messungen/decrypt_trace.py
tihmstar/gido_public
dcc523603b9a27b37752211715a10e30b51ce812
[ "Unlicense" ]
2
2021-04-10T16:32:36.000Z
2021-04-11T14:13:45.000Z
import struct import sys import binascii import tarfile import usb import recovery BLOCKS_CNT = 8 if len(sys.argv) < 2: print("Usage: %s <path>"%sys.argv[0]) exit(0) infile = sys.argv[1] if infile[-len(".tar.gz"):] == ".tar.gz": print("cant open compressed file!") exit(1) else: f = open(infile,...
19.409639
66
0.612042
0
0
0
0
0
0
0
0
204
0.126629
38caf61d9a9e8681b2748236a9dabcabd645543a
1,075
py
Python
ghnotifier/menu.py
iamtalhaasghar/ghnotifier
7bbcbc32abc8ad923bff64055cb19ac042a03764
[ "MIT" ]
1
2022-02-03T05:30:22.000Z
2022-02-03T05:30:22.000Z
ghnotifier/menu.py
iamtalhaasghar/ghnotifier
7bbcbc32abc8ad923bff64055cb19ac042a03764
[ "MIT" ]
5
2018-10-30T13:03:24.000Z
2022-02-03T06:06:08.000Z
ghnotifier/menu.py
iamtalhaasghar/ghnotifier
7bbcbc32abc8ad923bff64055cb19ac042a03764
[ "MIT" ]
1
2022-02-03T06:02:02.000Z
2022-02-03T06:02:02.000Z
#!/usr/bin/env python3 import webbrowser import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk from ghnotifier.notifier import Notifier from ghnotifier.settings import Settings class Menu: GITHUB_NOTIFICATIONS = 'https://github.com/notifications' def __init__(self): self.menu =...
21.5
61
0.655814
874
0.813023
0
0
243
0.226047
0
0
112
0.104186
38cb1f29849026e4492f8972be47ed86aeea596c
118
py
Python
apps/enterprice/apps.py
jimforit/lagou
165593a15597012092b5e0ba34158fbc1d1c213d
[ "MIT" ]
2
2019-03-11T03:58:19.000Z
2020-03-06T06:45:28.000Z
apps/enterprice/apps.py
jimforit/lagou
165593a15597012092b5e0ba34158fbc1d1c213d
[ "MIT" ]
5
2020-06-05T20:04:20.000Z
2021-09-08T00:53:52.000Z
apps/enterprice/apps.py
jimforit/lagou
165593a15597012092b5e0ba34158fbc1d1c213d
[ "MIT" ]
null
null
null
from django.apps import AppConfig class EnterpriceConfig(AppConfig): name = 'enterprice' verbose_name = '企业'
19.666667
34
0.737288
86
0.704918
0
0
0
0
0
0
20
0.163934
38cc7e10e59cc8a253d9de4a014ba672e471157d
1,297
py
Python
python/utils/LaplacianLoss.py
aytewari/GVV-Differentiable-CUDA-Renderer
5da6bdab3fd44074ae752bd8192fc2aad9fb77e6
[ "CC-BY-4.0" ]
40
2020-10-09T06:13:32.000Z
2021-04-09T21:48:29.000Z
python/utils/LaplacianLoss.py
ayushtewari/GVV-Differentiable-CUDA-Renderer
5da6bdab3fd44074ae752bd8192fc2aad9fb77e6
[ "CC-BY-4.0" ]
2
2020-10-10T07:16:33.000Z
2021-03-27T09:07:57.000Z
python/utils/LaplacianLoss.py
ayushtewari/GVV-Differentiable-CUDA-Renderer
5da6bdab3fd44074ae752bd8192fc2aad9fb77e6
[ "CC-BY-4.0" ]
2
2021-06-29T15:40:03.000Z
2022-01-31T16:09:44.000Z
import tensorflow as tf ######################################################################################################################## # Isometry Loss ######################################################################################################################## def getLoss(inputMeshTensor, restTe...
37.057143
120
0.505783
0
0
0
0
0
0
0
0
375
0.289129
38ccad75a3a0fee55c8afb6cdcb6e3fd50a68c98
1,571
py
Python
scripts/logfetch/search.py
madhuri7112/Singularity
11a533ecf2baaa1a4a74404b3de435e8d5b7d1a3
[ "Apache-2.0" ]
692
2015-01-02T02:30:23.000Z
2022-03-18T08:16:05.000Z
scripts/logfetch/search.py
madhuri7112/Singularity
11a533ecf2baaa1a4a74404b3de435e8d5b7d1a3
[ "Apache-2.0" ]
1,399
2015-01-01T10:52:44.000Z
2022-03-17T18:27:23.000Z
scripts/logfetch/search.py
mikebell90/Singularity
290d647ee3cd5ddfbf381d09d22fdce1896e3388
[ "Apache-2.0" ]
280
2015-01-02T02:30:33.000Z
2022-03-03T21:08:33.000Z
import os import re import fnmatch from logfetch_base import log, is_in_date_range from termcolor import colored def find_cached_logs(args): matching_logs = [] log_fn_match = get_matcher(args) for filename in os.listdir(args.dest): if fnmatch.fnmatch(filename, log_fn_match) and in_date_range(args, ...
38.317073
106
0.630172
0
0
0
0
0
0
0
0
187
0.119032
38cd88d6a9d8806c77424757ca3b6620a2526f67
307
py
Python
algorithms/in_order.py
AutuanLiu/LeetCode2019
8efc7c5475fd888f7d86c3b08a3c1c9e55c1ac30
[ "MIT" ]
1
2019-06-20T07:43:59.000Z
2019-06-20T07:43:59.000Z
algorithms/in_order.py
AutuanLiu/Code-Storm2019
8efc7c5475fd888f7d86c3b08a3c1c9e55c1ac30
[ "MIT" ]
null
null
null
algorithms/in_order.py
AutuanLiu/Code-Storm2019
8efc7c5475fd888f7d86c3b08a3c1c9e55c1ac30
[ "MIT" ]
null
null
null
# 二叉树中序遍历的 生成器写法 # Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None def mid_order(root): if not root: return yield from mid_order(root.left) yield root.val yield from mid_order(root.right)
21.928571
36
0.648208
114
0.342342
136
0.408408
0
0
0
0
78
0.234234
38cee6d2267200542e95138691f1ada5ab2fedde
1,485
py
Python
predict_bw_lstm1.py
kyeongsoo/dash-simulation
ceccfee61d7102146e83b0a2d60d87693c871198
[ "MIT" ]
null
null
null
predict_bw_lstm1.py
kyeongsoo/dash-simulation
ceccfee61d7102146e83b0a2d60d87693c871198
[ "MIT" ]
null
null
null
predict_bw_lstm1.py
kyeongsoo/dash-simulation
ceccfee61d7102146e83b0a2d60d87693c871198
[ "MIT" ]
1
2020-06-06T14:02:35.000Z
2020-06-06T14:02:35.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ## # @file predict_bw_lstm1.py # @author Kyeong Soo (Joseph) Kim <Kyeongsoo.Kim@xjtlu.edu.cn> # @date 2019-04-22 # 2022-03-23 - updated for TensorFlow version 2.6 # # @brief Predict channel bandwidth. # # @remarks This code is based on the nice samp...
33.75
121
0.675421
0
0
0
0
0
0
0
0
899
0.605387
38cf20797afd513c24dc827a849f4617f931df33
586
py
Python
tests/integration/test_todo.py
nomilkinmyhome/todo-list
c596fa2003630de95e55ebe7d3420d9999270c97
[ "WTFPL" ]
3
2020-10-05T16:50:02.000Z
2021-01-01T17:36:22.000Z
tests/integration/test_todo.py
nomilkinmyhome/todo-list
c596fa2003630de95e55ebe7d3420d9999270c97
[ "WTFPL" ]
8
2020-10-05T20:59:01.000Z
2021-01-30T12:19:15.000Z
tests/integration/test_todo.py
nomilkinmyhome/todo-list
c596fa2003630de95e55ebe7d3420d9999270c97
[ "WTFPL" ]
null
null
null
from src.use_cases.todo import create_todo, update_todo def test_create_todo(client, user): payload = { 'title': 'test todo', 'description': 'very long and useful description', } todo = create_todo(user.id, payload) assert todo.id == 1 assert todo.title == payload['title'] def t...
25.478261
58
0.668942
0
0
0
0
0
0
0
0
131
0.223549
38d140e56cdd3b97964478d31b7516e144cef25a
4,818
py
Python
src/loopHandler.py
jerryduan07/gametime
43fbd6ae7f83c9ebf55dbedb4f98ce064c04514c
[ "BSD-3-Clause" ]
null
null
null
src/loopHandler.py
jerryduan07/gametime
43fbd6ae7f83c9ebf55dbedb4f98ce064c04514c
[ "BSD-3-Clause" ]
null
null
null
src/loopHandler.py
jerryduan07/gametime
43fbd6ae7f83c9ebf55dbedb4f98ce064c04514c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Exposes functions to perform a source-to-source transformation that detects and unrolls loops in the code being analyzed. """ """See the LICENSE file, located in the root directory of the source distribution and at http://verifun.eecs.berkeley.edu/gametime/about/LICENSE, for details on the Ga...
37.061538
79
0.695724
165
0.034247
0
0
0
0
0
0
3,057
0.634496
38d24f0b77db0580d1f6a1183215410fe0692d65
859
py
Python
Python/Maths/factorielle.py
GeneralNZR/maths-and-javascript
8a0e638e59808b1d987269dddac0b99c96c78c4a
[ "MIT" ]
3
2021-10-01T06:11:28.000Z
2021-10-04T20:50:07.000Z
Python/Maths/factorielle.py
GeneralNZR/maths-and-javascript
8a0e638e59808b1d987269dddac0b99c96c78c4a
[ "MIT" ]
null
null
null
Python/Maths/factorielle.py
GeneralNZR/maths-and-javascript
8a0e638e59808b1d987269dddac0b99c96c78c4a
[ "MIT" ]
null
null
null
def factorielle_rec(n: int) -> int: """ Description: Factorielle méthode récursive Paramètres: n: {int} -- Nombre à factorielle Retourne: {int} -- Factorielle de n Exemple: >>> factorielle_rec(100) 9.332622e+157 Pour l'écriture scientif...
21.475
65
0.549476
0
0
0
0
0
0
0
0
650
0.747986
38d2a0a5641034d2ed2a1afa289cfad9836977ff
8,928
py
Python
Gui.py
LLCoolDave/ALttPEntranceRandomizer
963ce00657321fb7eeee185fa4e8bb063bff30c5
[ "MIT" ]
17
2017-05-22T10:55:58.000Z
2020-12-23T21:44:47.000Z
Gui.py
LLCoolDave/ALttPEntranceRandomizer
963ce00657321fb7eeee185fa4e8bb063bff30c5
[ "MIT" ]
15
2017-05-22T12:14:55.000Z
2019-07-19T21:00:28.000Z
Gui.py
LLCoolDave/ALttPEntranceRandomizer
963ce00657321fb7eeee185fa4e8bb063bff30c5
[ "MIT" ]
15
2017-05-23T16:09:44.000Z
2022-01-22T09:09:27.000Z
from Main import main, __version__ as ESVersion from argparse import Namespace import random from tkinter import Checkbutton, OptionMenu, Tk, LEFT, RIGHT, BOTTOM, TOP, StringVar, IntVar, Frame, Label, W, E, Entry, Spinbox, Button, filedialog, messagebox def guiMain(args=None): mainWindow = Tk() mainWindow.wm...
40.216216
160
0.701053
0
0
0
0
0
0
0
0
934
0.104615
38d2f4460dbc9cd2bf0ff51a444458ddda0cea71
11,293
py
Python
src/dmri/coregister.py
erramuzpe/ruber
cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7
[ "MIT" ]
2
2018-11-07T07:54:34.000Z
2022-01-13T13:06:06.000Z
src/dmri/coregister.py
erramuzpe/ruber
cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7
[ "MIT" ]
null
null
null
src/dmri/coregister.py
erramuzpe/ruber
cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Nipype workflows to co-register anatomical MRI to diffusion MRI. """ from src.env import DATA import nipype.pipeline.engine as pe from nipype.interfaces.fsl import MultiImageMaths from nipype.interfaces.utility import IdentityInterface, Select, Split from nipype.algorithms.misc import Gunzi...
41.981413
130
0.595679
0
0
0
0
0
0
0
0
6,262
0.554503
38d36df65b3ed1c6bdcd5d1855bfdf3aac9db033
14,536
py
Python
huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/apply_individual_realname_auths_req.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/apply_individual_realname_auths_req.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/apply_individual_realname_auths_req.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ApplyIndividualRealnameAuthsReq: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (d...
45.003096
1,131
0.717735
21,841
0.994581
0
0
17,858
0.813206
0
0
17,148
0.780874
38d42eb30da6ce6e341aef340a29b43528065a7b
626
py
Python
tests/test_pack_data.py
derekmerck/endpoint
5b74f0b3303bbf419a6c9f71e9a4a156583bf51d
[ "MIT" ]
null
null
null
tests/test_pack_data.py
derekmerck/endpoint
5b74f0b3303bbf419a6c9f71e9a4a156583bf51d
[ "MIT" ]
null
null
null
tests/test_pack_data.py
derekmerck/endpoint
5b74f0b3303bbf419a6c9f71e9a4a156583bf51d
[ "MIT" ]
null
null
null
from datetime import datetime from pprint import pprint from cryptography.fernet import Fernet from libsvc.utils import pack_data, unpack_data def pack_data_test(): fkey = Fernet.generate_key() data = {"today": datetime.today(), "dog": "cat", "red": "blue"} p = pack_data(data, f...
21.586207
54
0.627796
0
0
0
0
0
0
0
0
78
0.124601
38d4b485fb5c15efab7f549f01ad1328142294e2
361
py
Python
threading/part6.py
kryvokhyzha/examples-and-courses
477e82ee24e6abba8a6b6d92555f2ed549ca682c
[ "MIT" ]
1
2021-12-13T15:41:48.000Z
2021-12-13T15:41:48.000Z
threading/part6.py
kryvokhyzha/examples-and-courses
477e82ee24e6abba8a6b6d92555f2ed549ca682c
[ "MIT" ]
15
2021-09-12T15:06:13.000Z
2022-03-31T19:02:08.000Z
threading/part6.py
kryvokhyzha/examples-and-courses
477e82ee24e6abba8a6b6d92555f2ed549ca682c
[ "MIT" ]
1
2022-01-29T00:37:52.000Z
2022-01-29T00:37:52.000Z
import threading import queue import time def putting_thread(q): while True: print('start thread') time.sleep(10) q.put(5) print('sup something') q = queue.Queue() t = threading.Thread(target=putting_thread, args=(q,), daemon=True) t.start() q.put(0) print(q.get(), 'first item')...
15.695652
67
0.617729
0
0
0
0
0
0
0
0
55
0.152355
38d56c4e68352399b46ecce8e483eb237d03b4c0
1,604
py
Python
iris_sdk/models/portin.py
NumberAI/python-bandwidth-iris
0e05f79d68b244812afb97e00fd65b3f46d00aa3
[ "MIT" ]
2
2020-04-13T13:47:59.000Z
2022-02-23T20:32:41.000Z
iris_sdk/models/portin.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2020-09-18T20:59:24.000Z
2021-08-25T16:51:42.000Z
iris_sdk/models/portin.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2018-12-12T14:39:50.000Z
2020-11-17T21:42:29.000Z
#!/usr/bin/env python from __future__ import division, absolute_import, print_function from future.builtins import super from iris_sdk.models.activation_status import ActivationStatus from iris_sdk.models.base_resource import BaseResource from iris_sdk.models.data.portin import PortInData from iris_sdk.models.history...
25.460317
64
0.703865
1,054
0.657107
0
0
428
0.266833
0
0
90
0.05611
38d6262e5df4e8207a9017b092a7fbda44ff1889
9,109
py
Python
lib/common_lib.py
JakubWS/imap-mailbox-backup-tool
8576b9aa2a9f3392a6c657cd40247cd71a83af49
[ "MIT" ]
null
null
null
lib/common_lib.py
JakubWS/imap-mailbox-backup-tool
8576b9aa2a9f3392a6c657cd40247cd71a83af49
[ "MIT" ]
null
null
null
lib/common_lib.py
JakubWS/imap-mailbox-backup-tool
8576b9aa2a9f3392a6c657cd40247cd71a83af49
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from encodings import utf_8 import imaplib, datetime, time, re, requests, yaml, os, email, glob, shutil, mailbox, smtplib, ssl, hashlib from zipfile import ZipFile from email.header import decode_header from os.path import exists as file_exists from os.path import basename from ...
42.966981
142
0.545834
0
0
0
0
0
0
0
0
1,180
0.129542