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
370bb4fe068e3ba3982bd58f8f7bad72c2b4ecd4
257
py
Python
demos/floc_sample/createSiteList.py
apakrash/floc_simulator
6276d9c94e953fb704ca687e7234658a699a434c
[ "MIT" ]
null
null
null
demos/floc_sample/createSiteList.py
apakrash/floc_simulator
6276d9c94e953fb704ca687e7234658a699a434c
[ "MIT" ]
null
null
null
demos/floc_sample/createSiteList.py
apakrash/floc_simulator
6276d9c94e953fb704ca687e7234658a699a434c
[ "MIT" ]
null
null
null
import json siteList = [] for i in range(1,20): siteList.append(input(f'Enter site {i}: ')) print(siteList) #print(siteList) with open('host_list.json', 'w', encoding='utf-8') as f: json.dump(siteList, f, ensure_ascii=False, indent=4)
21.416667
57
0.645914
0
0
0
0
0
0
0
0
62
0.241245
370ec5a0db02fa84a2f69c10a570dca652b97712
264
py
Python
output/models/nist_data/atomic/g_year/schema_instance/nistschema_sv_iv_atomic_g_year_min_exclusive_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/g_year/schema_instance/nistschema_sv_iv_atomic_g_year_min_exclusive_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/g_year/schema_instance/nistschema_sv_iv_atomic_g_year_min_exclusive_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.atomic.g_year.schema_instance.nistschema_sv_iv_atomic_g_year_min_exclusive_4_xsd.nistschema_sv_iv_atomic_g_year_min_exclusive_4 import NistschemaSvIvAtomicGYearMinExclusive4 __all__ = [ "NistschemaSvIvAtomicGYearMinExclusive4", ]
44
202
0.897727
0
0
0
0
0
0
0
0
40
0.151515
370f9cd890c1720a09c6e585711c280c23263c07
39
py
Python
checkov/dockerfile/__init__.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
checkov/dockerfile/__init__.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
checkov/dockerfile/__init__.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
from checkov.dockerfile.checks import *
39
39
0.846154
0
0
0
0
0
0
0
0
0
0
3711dfaf9aadca685cb6c92e813e94fd2708d1c2
4,354
py
Python
tests/core/contracts/test_contract_constructor_encoding.py
geofferyj/web3.py
b406663f59d5b228487951f019eaf45b3eb9413b
[ "MIT" ]
3,041
2017-11-22T16:23:46.000Z
2022-03-31T15:19:39.000Z
tests/core/contracts/test_contract_constructor_encoding.py
geofferyj/web3.py
b406663f59d5b228487951f019eaf45b3eb9413b
[ "MIT" ]
1,506
2017-11-22T15:44:34.000Z
2022-03-31T18:40:05.000Z
tests/core/contracts/test_contract_constructor_encoding.py
geofferyj/web3.py
b406663f59d5b228487951f019eaf45b3eb9413b
[ "MIT" ]
1,095
2017-11-22T18:20:22.000Z
2022-03-31T13:05:31.000Z
import pytest from eth_utils import ( encode_hex, remove_0x_prefix, ) def test_contract_constructor_abi_encoding_with_no_constructor_fn(MathContract, MATH_CODE): deploy_data = MathContract._encode_constructor_data() assert deploy_data == MATH_CODE def test_contract_constructor_abi_encoding_with_con...
36.588235
175
0.714515
0
0
0
0
2,993
0.687414
0
0
1,079
0.247818
371439527f71f5b5ea0e623382624347691d2251
832
py
Python
Pasture_Growth_Modelling/initialisation_support/define_reseed_params.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
Pasture_Growth_Modelling/initialisation_support/define_reseed_params.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
Pasture_Growth_Modelling/initialisation_support/define_reseed_params.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
""" Author: Matt Hanson Created: 18/12/2020 9:30 AM """ from Pasture_Growth_Modelling.initialisation_support.inital_long_term_runs import run_past_basgra_irrigated, \ run_past_basgra_dryland, plot_multiple_results import pandas as pd import numpy as np if __name__ == '__main__': reseed=True irr_ox = ru...
41.6
110
0.706731
0
0
0
0
0
0
0
0
124
0.149038
3714521e447b9677165a8e7963ed19bc3ce14d21
64
py
Python
vintageColorizer/__init__.py
Team-16-B/VintageColorizer
80c502fae32f5d4ca92727f2ffa63a48331bd8a8
[ "MIT" ]
1
2021-06-18T09:16:58.000Z
2021-06-18T09:16:58.000Z
vintageColorizer/__init__.py
Team-16-B/VintageColorizer
80c502fae32f5d4ca92727f2ffa63a48331bd8a8
[ "MIT" ]
null
null
null
vintageColorizer/__init__.py
Team-16-B/VintageColorizer
80c502fae32f5d4ca92727f2ffa63a48331bd8a8
[ "MIT" ]
null
null
null
from vintageColorizer._device import _Device device = _Device()
21.333333
44
0.828125
0
0
0
0
0
0
0
0
0
0
3714939ff710373dc09f1b61b849805c96854964
5,570
py
Python
system_maintenance/admin.py
mfcovington/django-system-maintenance
f28c5480ddfc862e7114846ae452ec73ed747029
[ "BSD-3-Clause" ]
2
2018-12-08T01:11:17.000Z
2018-12-14T22:54:04.000Z
system_maintenance/admin.py
mfcovington/django-system-maintenance
f28c5480ddfc862e7114846ae452ec73ed747029
[ "BSD-3-Clause" ]
null
null
null
system_maintenance/admin.py
mfcovington/django-system-maintenance
f28c5480ddfc862e7114846ae452ec73ed747029
[ "BSD-3-Clause" ]
1
2020-11-21T18:25:50.000Z
2020-11-21T18:25:50.000Z
from django import forms from django.contrib import admin from .models import (DocumentationRecord, Hardware, MaintenanceRecord, MaintenanceRecordRelationship, MaintenanceType, Software, SysAdmin, System) class ReferencingRecordInline(admin.TabularInline): model = MaintenanceRecordRelationship fk_name = ...
22.191235
79
0.597846
5,070
0.910233
0
0
4,236
0.760503
0
0
1,570
0.281867
371517cfafbdaa11e93899d8223418ed40816171
859
py
Python
BulkSmsApi/Parse.py
DonnC/BulkSmsZW-Api
9e4559bbff1c448a9ebb9b271ecdc7044f00801a
[ "MIT" ]
4
2019-03-30T00:44:36.000Z
2021-05-19T13:50:11.000Z
BulkSmsApi/Parse.py
DonnC/BulkSmsZW-Api
9e4559bbff1c448a9ebb9b271ecdc7044f00801a
[ "MIT" ]
null
null
null
BulkSmsApi/Parse.py
DonnC/BulkSmsZW-Api
9e4559bbff1c448a9ebb9b271ecdc7044f00801a
[ "MIT" ]
1
2019-08-21T20:24:16.000Z
2019-08-21T20:24:16.000Z
# handle url encoding # do 'quote' on url from urllib.parse import quote class Parse(object): ''' parse and encode webservice payload ''' def __init__(self, web_url, quote_body, quote_recipients): self.web_url = web_url self.quote_body = quote_body ...
26.84375
63
0.582072
779
0.906868
0
0
0
0
0
0
186
0.216531
371903e153c996cac483357a3df834531c766dc4
9,579
py
Python
ldap2pg/format.py
jeanpommier/ldap2pg
58a193ac79c13b99c13a2b963492678f553731d1
[ "PostgreSQL" ]
151
2017-06-29T08:09:33.000Z
2022-03-07T21:50:27.000Z
ldap2pg/format.py
jeanpommier/ldap2pg
58a193ac79c13b99c13a2b963492678f553731d1
[ "PostgreSQL" ]
363
2017-06-19T15:01:12.000Z
2022-03-16T08:34:35.000Z
ldap2pg/format.py
jeanpommier/ldap2pg
58a193ac79c13b99c13a2b963492678f553731d1
[ "PostgreSQL" ]
31
2017-06-16T08:40:54.000Z
2021-11-11T12:37:01.000Z
import itertools from copy import deepcopy from string import Formatter from .utils import unicode class FormatSpec(object): # A format string to generate e.g. role names. def __init__(self, spec): self.spec = spec self._fields = None def __repr__(self): return "%s(%r)" % (self....
29.383436
79
0.549431
9,334
0.974423
2,128
0.222153
2,524
0.263493
0
0
2,384
0.248878
37192bf521db3c020565d1e29a16401738175408
1,190
py
Python
bozkurt-port-scanner V1.0.py
B3zkurt/bozkurt-port-scanner
5a1f485ab042abc71d5307e433d845c7adbcf168
[ "BSL-1.0" ]
null
null
null
bozkurt-port-scanner V1.0.py
B3zkurt/bozkurt-port-scanner
5a1f485ab042abc71d5307e433d845c7adbcf168
[ "BSL-1.0" ]
null
null
null
bozkurt-port-scanner V1.0.py
B3zkurt/bozkurt-port-scanner
5a1f485ab042abc71d5307e433d845c7adbcf168
[ "BSL-1.0" ]
1
2022-02-11T18:24:13.000Z
2022-02-11T18:24:13.000Z
from socket import * def banner(): print(""" ########################################################### #------------------PORT SCAN V 1.0-----------------------# #--------------------Coder By Bozkurt-------------------# ########################################################### """) ...
36.060606
107
0.428571
0
0
0
0
0
0
0
0
599
0.49018
371a9f6e54991beac7038e5bc052194b2305b7a7
5,413
py
Python
ner/evaluation/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
ner/evaluation/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
ner/evaluation/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
from string import punctuation import random import jsonlines import regex class Evaluator: """Class for evaluating NER models on two IOB tagged datasets: SUC 3.0 and Web News 2012, both from Språkbanken.""" def __init__(self, suc): self.suc = suc if suc: self.path = "data/input...
33.621118
119
0.53741
5,335
0.985408
0
0
617
0.113964
0
0
1,164
0.214998
371ae39ecd84c32c520c1b09dada1780df5bee65
9,456
py
Python
util/graph.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
5
2016-05-12T08:48:41.000Z
2018-07-17T00:48:32.000Z
util/graph.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
1
2022-01-16T12:18:50.000Z
2022-01-16T12:18:50.000Z
util/graph.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 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 law or agreed to in writing,...
27.893805
99
0.64467
7,552
0.798646
0
0
0
0
0
0
1,466
0.155034
371b4de36b52d84cac233275c0bbe8ca788c6d87
825
py
Python
files/sources_raw/multiwordnet/jpn/jpn2tab.py
rvjansen/flp
989b6c0781b231e4cf2d4c1c0300e20f3f2f9aa6
[ "CC0-1.0" ]
1
2022-02-20T10:00:28.000Z
2022-02-20T10:00:28.000Z
files/sources_raw/multiwordnet/jpn/jpn2tab.py
rvjansen/flp
989b6c0781b231e4cf2d4c1c0300e20f3f2f9aa6
[ "CC0-1.0" ]
8
2022-01-10T01:35:58.000Z
2022-01-16T02:49:41.000Z
files/sources_raw/multiwordnet/jpn/jpn2tab.py
rvjansen/flp
989b6c0781b231e4cf2d4c1c0300e20f3f2f9aa6
[ "CC0-1.0" ]
null
null
null
#!/usr/share/python # -*- encoding: utf-8 -*- # # Extract synset-word pairs from the Japanese Wordnet # import sys import codecs #import re wndata="/home/bond/svn/wnja-code/tab/" wnname = "Japanese Wordnet" wnlang = "jpn" wnurl = "http://nlpwww.nict.go.jp/wn-ja/" wnlicense = "wordnet" # # header # outfile = "wn-dat...
21.710526
67
0.613333
0
0
0
0
0
0
0
0
438
0.530909
371c0cd9f1541bc9d1d7743f22dc97957977dc77
5,701
py
Python
util/loadtester/scripts/mnist_rest_locust.py
lorello/seldon-core
9509d41856071c72c419f7ec805c39be38a41249
[ "Apache-2.0" ]
1
2019-09-06T14:06:50.000Z
2019-09-06T14:06:50.000Z
util/loadtester/scripts/mnist_rest_locust.py
lorello/seldon-core
9509d41856071c72c419f7ec805c39be38a41249
[ "Apache-2.0" ]
null
null
null
util/loadtester/scripts/mnist_rest_locust.py
lorello/seldon-core
9509d41856071c72c419f7ec805c39be38a41249
[ "Apache-2.0" ]
null
null
null
from locust.stats import RequestStats from locust import HttpLocust, TaskSet, task, events import os import sys, getopt, argparse from random import randint,random import json from locust.events import EventHook import requests import re import time import resource import socket import signal from socket import error a...
36.544872
208
0.619891
3,690
0.647255
0
0
1,539
0.269953
0
0
1,210
0.212243
371c11466bbee73e5a5eb806d61588dcac84b8ca
106
py
Python
start.py
fahimfarhan/python-Package-Demo
ce4fe79dd0fe9494892baf620aca9d88107894a7
[ "MIT" ]
null
null
null
start.py
fahimfarhan/python-Package-Demo
ce4fe79dd0fe9494892baf620aca9d88107894a7
[ "MIT" ]
null
null
null
start.py
fahimfarhan/python-Package-Demo
ce4fe79dd0fe9494892baf620aca9d88107894a7
[ "MIT" ]
null
null
null
from measure import metrics, norms if __name__ == "__main__": metrics.metric(1) norms.norms()
11.777778
34
0.669811
0
0
0
0
0
0
0
0
10
0.09434
371d6857f471bf5c4303b94e13030507ce47c281
8,475
py
Python
tests/587/test_engine_integration.py
CSUN-COMP587-F18/keras
5beed1cae876f570f92ee49b532aef2f97176bb2
[ "MIT" ]
null
null
null
tests/587/test_engine_integration.py
CSUN-COMP587-F18/keras
5beed1cae876f570f92ee49b532aef2f97176bb2
[ "MIT" ]
10
2018-09-27T23:03:18.000Z
2018-12-05T23:32:33.000Z
tests/587/test_engine_integration.py
CSUN-COMP587-F18/keras
5beed1cae876f570f92ee49b532aef2f97176bb2
[ "MIT" ]
null
null
null
import threading import pytest import numpy as np import pandas as pd import sys from keras import losses from keras.engine import Input from keras.engine.training import Model from keras.engine import training_utils from keras.layers import Dense, Dropout from keras.utils.generic_utils import slice_arrays from keras....
32.224335
83
0.623717
860
0.101475
1,468
0.173215
1,577
0.186077
0
0
506
0.059705
371f4ea7362504af95802b40a1ae8e406cb61f3a
10,522
py
Python
tests/test_directory_view_get_context_data.py
wildfish/django-directory
7a097e1eca66a2e5f5ae02905b92ecc37ae0db34
[ "MIT" ]
5
2015-10-05T11:54:59.000Z
2021-07-07T05:08:56.000Z
tests/test_directory_view_get_context_data.py
wildfish/django-directory
7a097e1eca66a2e5f5ae02905b92ecc37ae0db34
[ "MIT" ]
null
null
null
tests/test_directory_view_get_context_data.py
wildfish/django-directory
7a097e1eca66a2e5f5ae02905b92ecc37ae0db34
[ "MIT" ]
1
2016-03-16T07:59:50.000Z
2016-03-16T07:59:50.000Z
from django.http import QueryDict from django.test import TestCase, RequestFactory from directory.views import DirectoryView from .models import TestModelB, MultipleFieldModel class DirectoryViewGetContextData(TestCase): def test_filter_is_not_supplied_in_kwargs___filter_is_added(self): class TestDirector...
35.789116
151
0.642558
10,343
0.982988
0
0
0
0
0
0
861
0.081829
3720c3899d53ebbf6a2778fd6e3ce1432176eae2
17,466
py
Python
entrypoint.py
lucteo/action-cxx-toolkit
f181ba4199669f9a4ca17c7786499e33d2313d13
[ "MIT" ]
1
2020-09-27T11:22:13.000Z
2020-09-27T11:22:13.000Z
entrypoint.py
lucteo/action-cxx-toolkit
f181ba4199669f9a4ca17c7786499e33d2313d13
[ "MIT" ]
null
null
null
entrypoint.py
lucteo/action-cxx-toolkit
f181ba4199669f9a4ca17c7786499e33d2313d13
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os, sys, subprocess from dataclasses import dataclass # Input variables: # INPUT_CHECKS # INPUT_DEPENDENCIES # INPUT_DIRECTORY # INPUT_BUILDDIR # INPUT_CC # INPUT_CFLAGS # INPUT_CXXFLAGS # INPUT_CONANFLAGS # INPUT_CMAKEFLAGS # INPUT_CTESTFLAGS # INPUT_MAKEFLAGS # ...
33.914563
214
0.631455
1,772
0.101454
0
0
1,338
0.076606
0
0
7,751
0.443776
37216d3efdd9c931e8fe08aa0d3a0f964dd8a029
1,811
py
Python
test_power_of_four.py
brigitteunger/katas
3f9af88fe5d98753360457084741f573c863dc25
[ "MIT" ]
null
null
null
test_power_of_four.py
brigitteunger/katas
3f9af88fe5d98753360457084741f573c863dc25
[ "MIT" ]
null
null
null
test_power_of_four.py
brigitteunger/katas
3f9af88fe5d98753360457084741f573c863dc25
[ "MIT" ]
null
null
null
import unittest class Solution: def isPowerOfFour(self, num: int) -> bool: if num <= 0: return False number_format_bin = format(num, 'b') number_ones = number_format_bin.count('1') if number_ones == 1: if (len(number_format_bin)-1) % 2 == 0: ...
20.816092
51
0.617891
1,740
0.960795
0
0
0
0
0
0
16
0.008835
3721f9b4857aebb54eda364b32c37163c9b97b18
561
py
Python
vanir/core/exchange/urls.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
1
2022-01-19T07:11:05.000Z
2022-01-19T07:11:05.000Z
vanir/core/exchange/urls.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
10
2021-11-07T14:17:07.000Z
2022-03-30T18:24:48.000Z
vanir/core/exchange/urls.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import ExchangeCreateView, ExchangeDeleteView, ExchangeDetailView, ExchangeListView, ExchangeUpdateView app_name = "exchange" urlpatterns = [ path("", ExchangeListView.as_view(), name="exchange_list"), path("add/", ExchangeCreateView.as_view(), name="exchange_add"), ...
43.153846
115
0.736185
0
0
0
0
0
0
0
0
141
0.251337
37225c968e5f417234da031f05ff2c4ef3bc4d89
3,579
py
Python
mycv/utils/pbar_utils.py
duanzhiihao/mycv
184b52f7a5c1b6f603122d4f4050952b65ba0ead
[ "MIT" ]
null
null
null
mycv/utils/pbar_utils.py
duanzhiihao/mycv
184b52f7a5c1b6f603122d4f4050952b65ba0ead
[ "MIT" ]
null
null
null
mycv/utils/pbar_utils.py
duanzhiihao/mycv
184b52f7a5c1b6f603122d4f4050952b65ba0ead
[ "MIT" ]
null
null
null
from collections import OrderedDict from mycv.utils.general import ANSI class SimpleTable(OrderedDict): def __init__(self, init_keys=[]): super().__init__() # initialization: assign None to initial keys for key in init_keys: if not isinstance(key, str): ANSI.wa...
29.825
82
0.531713
2,634
0.73596
0
0
593
0.165689
0
0
511
0.142777
372305c2d1fb8224de3b77aaf1f47a6d32e75ba4
2,939
py
Python
example_scripts/tidetable_tutorial.py
British-Oceanographic-Data-Centre/COAsT
4d3d57c9afb61a92063b665626c1828dd2998d2b
[ "MIT" ]
8
2020-09-10T13:40:07.000Z
2022-03-10T22:52:44.000Z
example_scripts/tidetable_tutorial.py
British-Oceanographic-Data-Centre/COAsT
4d3d57c9afb61a92063b665626c1828dd2998d2b
[ "MIT" ]
294
2020-05-11T12:17:17.000Z
2022-03-31T22:07:52.000Z
example_scripts/tidetable_tutorial.py
British-Oceanographic-Data-Centre/COAsT
4d3d57c9afb61a92063b665626c1828dd2998d2b
[ "MIT" ]
4
2020-05-28T10:43:56.000Z
2021-09-07T10:40:09.000Z
#!/usr/bin/env python3 """ Tutorial for processing tabulated tide gauge data Created on Mon Oct 12 22:30:21 2020 You might scrape tidal highs and lows from a website such as <a title="NTSLF tidal predictions" href="https://www.ntslf.org/tides/tidepred?port=Liverpool"> <img alt="NTSLF tidal predictions" src="https://...
37.202532
103
0.737326
0
0
0
0
0
0
0
0
2,076
0.706363
3724a438c48806b5fed578c995c9254f9535f7f6
1,373
py
Python
ai_challenge/env/utils.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
72
2017-05-22T18:22:58.000Z
2019-03-11T22:49:00.000Z
ai_challenge/env/utils.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
1
2017-06-09T05:26:43.000Z
2017-08-22T11:41:41.000Z
ai_challenge/env/utils.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
3
2017-05-25T08:49:27.000Z
2019-09-09T18:41:54.000Z
# Village People, 2017 from argparse import ArgumentParser def get_args(): args = ArgumentParser('PigChaseExperiment') args.add_argument('-t', '--type', type=str, default='random', choices=['dqn', 'empathetic', 'astar', 'random'], help='The type of baseline to run.'...
41.606061
80
0.611071
0
0
0
0
0
0
0
0
516
0.375819
3725a03ff33ceb614141f34ea4cafeace14f8296
721
py
Python
practice/leetcode/lc0238_product_excpt_self.py
deehzee/dsalgo
025bf292e5a2c4e079cecb0c284ab6aeae9a07f4
[ "MIT" ]
null
null
null
practice/leetcode/lc0238_product_excpt_self.py
deehzee/dsalgo
025bf292e5a2c4e079cecb0c284ab6aeae9a07f4
[ "MIT" ]
null
null
null
practice/leetcode/lc0238_product_excpt_self.py
deehzee/dsalgo
025bf292e5a2c4e079cecb0c284ab6aeae9a07f4
[ "MIT" ]
1
2020-08-06T16:50:07.000Z
2020-08-06T16:50:07.000Z
def product_except_self(A): ''' 238. Product of Array Except Self ================================= Given an array A of n integers (n > 1), return an array where the i-th element is the product of all but the i-th element of A. Restrictions: ------------- 1. Don't use division 2. Us...
24.033333
74
0.482663
0
0
0
0
0
0
0
0
473
0.656033
3726727223ff1c3c48169567a42d07d0a4165647
452
py
Python
pnuml/learner/utils/weight_initializer.py
Snowapril/pnu-machine-learning-2021
bba2410fece99aded2b118cb1ea98de3d250cb87
[ "MIT" ]
2
2021-04-02T07:58:50.000Z
2021-04-02T08:37:00.000Z
pnuml/learner/utils/weight_initializer.py
Snowapril/pnu-machine-learning-2021
bba2410fece99aded2b118cb1ea98de3d250cb87
[ "MIT" ]
null
null
null
pnuml/learner/utils/weight_initializer.py
Snowapril/pnu-machine-learning-2021
bba2410fece99aded2b118cb1ea98de3d250cb87
[ "MIT" ]
null
null
null
import numpy as np def xavier_uniform_weight(shape, seed=0): """ initialize weight matrix with xavier_uniform_initializer. matrix size will be shape arguments """ np.random.seed(seed) scale = 1 / max(1., np.sum(shape) / 2.) limit = np.sqrt(scale * 3.) return np.random.uniform(-limit, l...
22.6
61
0.654867
0
0
0
0
0
0
0
0
163
0.360619
372749ced3100fd6460b5bb6d9752ed56e2a92b1
5,952
py
Python
eventtools/tests/models/occurrence.py
atkinson/glamkit-eventtools
ed0b06c22ca3390506f4fac327493f871b0b4520
[ "BSD-3-Clause" ]
1
2015-11-05T10:26:49.000Z
2015-11-05T10:26:49.000Z
eventtools/tests/models/occurrence.py
atkinson/glamkit-eventtools
ed0b06c22ca3390506f4fac327493f871b0b4520
[ "BSD-3-Clause" ]
null
null
null
eventtools/tests/models/occurrence.py
atkinson/glamkit-eventtools
ed0b06c22ca3390506f4fac327493f871b0b4520
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8“ -*- from django.test import TestCase from eventtools.tests._inject_app import TestCaseWithApp as AppTestCase from eventtools.tests.eventtools_testapp.models import * from datetime import date, time, datetime, timedelta from eventtools.tests._fixture import bigfixture, reload_films from eventtools.u...
38.901961
193
0.649362
4,622
0.775243
0
0
0
0
0
0
2,259
0.3789
37289cb1a30c4bf356b2cf2d3ff9602d8438b905
1,756
py
Python
custom/m4change/migrations/0004_auto__add_field_mcctstatus_modified_on.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
custom/m4change/migrations/0004_auto__add_field_mcctstatus_modified_on.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
custom/m4change/migrations/0004_auto__add_field_mcctstatus_modified_on.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'McctStatus.modified_on' db.add_column(u'm4change_mcctstatus', 'modified_on', self.gf('djan...
46.210526
193
0.602506
1,630
0.928246
0
0
0
0
0
0
975
0.555239
372a1246ed0dcfcdbea326ad609c7b48827fe89f
6,231
py
Python
src/data.py
gkovacs81/argus_server
97ebf705ed3e61a69bd561faf495e2c19bda510d
[ "MIT" ]
null
null
null
src/data.py
gkovacs81/argus_server
97ebf705ed3e61a69bd561faf495e2c19bda510d
[ "MIT" ]
3
2021-06-02T04:07:35.000Z
2021-12-27T20:21:46.000Z
src/data.py
gkovacs81/argus_server
97ebf705ed3e61a69bd561faf495e2c19bda510d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse from sqlalchemy.exc import ProgrammingError from monitoring.constants import ROLE_ADMIN, ROLE_USER from models import Keypad, KeypadType, Sensor, SensorType, User, Zone from monitoring.database import Session from models import metadata SENSOR_TYPES = [ SensorType(1, name...
36.652941
132
0.67437
0
0
0
0
0
0
0
0
1,630
0.261595
372abdbaa3a72f1cf8f94702fe632481d4798115
1,595
py
Python
src/actionFactory.py
koleberd/goaldependency
b4572758c405c90b33408497429531db82f5d22b
[ "FTL", "CNRI-Python", "CECILL-B", "AAL" ]
1
2018-01-10T21:41:27.000Z
2018-01-10T21:41:27.000Z
src/actionFactory.py
koleberd/goaldependency
b4572758c405c90b33408497429531db82f5d22b
[ "FTL", "CNRI-Python", "CECILL-B", "AAL" ]
null
null
null
src/actionFactory.py
koleberd/goaldependency
b4572758c405c90b33408497429531db82f5d22b
[ "FTL", "CNRI-Python", "CECILL-B", "AAL" ]
null
null
null
from action import * from playerState import * import gameController import os.path import json ### #parses json containing known actions #produces actions that return a specified PS ### class ActionFactory: def __init__(self,costs): with open('json/actionMemory.json') as jsfl: actMemory = j...
28.482143
131
0.592476
1,404
0.880251
0
0
0
0
0
0
571
0.357994
372d79c40069d52a6abd36688789216fbc3fb69f
653
py
Python
src/pybullet_planning/interfaces/kinematics/__init__.py
mcx/pybullet_planning
cc90e8620dd61acc7fc4246638d91f222b64e77a
[ "MIT" ]
61
2019-10-07T19:20:15.000Z
2022-03-09T21:28:18.000Z
src/pybullet_planning/interfaces/kinematics/__init__.py
mcx/pybullet_planning
cc90e8620dd61acc7fc4246638d91f222b64e77a
[ "MIT" ]
9
2020-03-14T21:24:05.000Z
2021-06-01T13:27:45.000Z
src/pybullet_planning/interfaces/kinematics/__init__.py
mcx/pybullet_planning
cc90e8620dd61acc7fc4246638d91f222b64e77a
[ "MIT" ]
11
2020-08-20T12:54:55.000Z
2022-01-27T06:05:51.000Z
""" ******************************************************************************** interfaces.kinematics ******************************************************************************** .. currentmodule:: pybullet_planning.interfaces.kinematics Kinematics interface -------------------- .. autosummary:: :toctre...
21.766667
80
0.537519
0
0
0
0
0
0
0
0
509
0.779479
372e1a3008c4b808410b6df31c41c5b99e78576d
2,904
py
Python
seeq/models/lattice_plot.py
juanjosegarciaripoll/seeq
3554550c3348fbaae398737cf4ae5510a34d6665
[ "MIT" ]
13
2019-07-31T17:00:37.000Z
2021-02-02T18:34:34.000Z
seeq/models/lattice_plot.py
Ydeh22/seeq
3554550c3348fbaae398737cf4ae5510a34d6665
[ "MIT" ]
null
null
null
seeq/models/lattice_plot.py
Ydeh22/seeq
3554550c3348fbaae398737cf4ae5510a34d6665
[ "MIT" ]
5
2019-11-04T17:54:40.000Z
2022-02-16T23:04:56.000Z
import matplotlib.collections import matplotlib.pyplot as plt import matplotlib.tri as tri import scipy.sparse as sp import numpy as np def plot_lattice(L, ax=None, dot='.'): """Plot a 2D or 3D representation of the lattice on the given axis, or create one if none is given. Parameters ---------- ...
31.225806
79
0.551653
0
0
0
0
0
0
0
0
833
0.286254
372eaae9ab2c16dd902249d10915b4c6382a3850
3,143
py
Python
fake_modules.py
meissnert/StarCluster-Plugins
a84dc5f62b5a37e7843c0fb4ac69011ecd766e51
[ "MIT" ]
1
2016-05-27T19:58:53.000Z
2016-05-27T19:58:53.000Z
fake_modules.py
meissnert/StarCluster-Plugins
a84dc5f62b5a37e7843c0fb4ac69011ecd766e51
[ "MIT" ]
null
null
null
fake_modules.py
meissnert/StarCluster-Plugins
a84dc5f62b5a37e7843c0fb4ac69011ecd766e51
[ "MIT" ]
null
null
null
from starcluster.clustersetup import ClusterSetup from starcluster.logger import log class FakeModInstaller(ClusterSetup): def run(self, nodes, master, user, user_shell, volumes): for node in nodes: log.info("Creating python 2.6.5 module files on %s" % (node.alias)) node.ssh.execute('mkdir /usr/local/Modules/...
69.844444
130
0.673242
3,056
0.972319
0
0
0
0
0
0
2,032
0.646516
372ec5bb74cde700d6daf808f9e274dcb999cf1b
49
py
Python
Nino/Files/config.py
rdhuper/Project_Crypto
49e22c1f7d01e4689073f89d2c79a6cf419e47e3
[ "MIT" ]
1
2018-10-13T20:15:52.000Z
2018-10-13T20:15:52.000Z
Nino/Files/config.py
rdhuper/Project_Crypto
49e22c1f7d01e4689073f89d2c79a6cf419e47e3
[ "MIT" ]
1
2018-10-17T04:04:57.000Z
2018-10-17T04:04:57.000Z
Nino/Files/config.py
rdhuper/Project_Crypto
49e22c1f7d01e4689073f89d2c79a6cf419e47e3
[ "MIT" ]
null
null
null
# Enter your password for SQL sqlpw = "password"
16.333333
29
0.734694
0
0
0
0
0
0
0
0
39
0.795918
372f233c0bcb9fb29c757ffe4ac5e45a5fb9ba0e
10,696
py
Python
nl2codemodel/src/nltocode/eval/score.py
SmartDataAnalytics/codeCAI
18a31541506d89b72cd07e498ef43dfa657877f8
[ "MIT" ]
null
null
null
nl2codemodel/src/nltocode/eval/score.py
SmartDataAnalytics/codeCAI
18a31541506d89b72cd07e498ef43dfa657877f8
[ "MIT" ]
null
null
null
nl2codemodel/src/nltocode/eval/score.py
SmartDataAnalytics/codeCAI
18a31541506d89b72cd07e498ef43dfa657877f8
[ "MIT" ]
null
null
null
import argparse import logging as log import re from collections import defaultdict from difflib import SequenceMatcher from os.path import commonprefix import pandas as pd import torch from torch.nn.functional import nll_loss, log_softmax from nltocode.datamodule import NL2CodeTrainDataModule from nltocode.grammar.g...
39.036496
117
0.703628
0
0
0
0
0
0
0
0
1,799
0.168194
372f64e338493a2a24b995d3c6180d315a7bd7b3
11,735
py
Python
fast_tmp/admin/utils_bak.py
Chise1/fastapi-cli
e8e1bb20279880ea4de9c3358e49412dc644c98a
[ "Apache-2.0" ]
5
2021-01-23T06:43:01.000Z
2022-02-22T06:40:03.000Z
fast_tmp/admin/utils_bak.py
Chise1/fastapi-cli
e8e1bb20279880ea4de9c3358e49412dc644c98a
[ "Apache-2.0" ]
4
2022-02-09T04:44:50.000Z
2022-02-09T04:48:26.000Z
fast_tmp/admin/utils_bak.py
Chise1/fastapi-cli
e8e1bb20279880ea4de9c3358e49412dc644c98a
[ "Apache-2.0" ]
3
2021-01-13T09:40:42.000Z
2021-01-14T03:18:26.000Z
from typing import List, Optional, Type from tortoise import BackwardFKRelation, ForeignKeyFieldInstance, ManyToManyFieldInstance, Model from tortoise.fields import ( BigIntField, BooleanField, CharField, DateField, DatetimeField, DecimalField, FloatField, IntField, JSONField, S...
40.32646
100
0.545718
0
0
0
0
0
0
0
0
1,736
0.14427
37319bdaa284f723a5abf8c32c3ba570386d947b
5,943
py
Python
cv/yolov3/yolov3_gpu/src/detection.py
hellowaywewe/deeplearning
fcd12cb2cc46f17725b139571891b9c212e999d5
[ "Apache-2.0" ]
null
null
null
cv/yolov3/yolov3_gpu/src/detection.py
hellowaywewe/deeplearning
fcd12cb2cc46f17725b139571891b9c212e999d5
[ "Apache-2.0" ]
null
null
null
cv/yolov3/yolov3_gpu/src/detection.py
hellowaywewe/deeplearning
fcd12cb2cc46f17725b139571891b9c212e999d5
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict import numpy as np import sys import cv2 import pandas as pd label_list = [ 'Bird_spp', 'Blue_sheep', 'Glovers_pika', 'Gray_wolf', 'Himalaya_marmot', 'Red_fox', 'Snow_leopard', 'Tibetan_snowcock', 'Upland_Buzzard', 'White-lipped_deer' ] clas...
38.341935
119
0.502272
5,626
0.94666
0
0
0
0
0
0
1,117
0.187952
2e92b47f2d6ffa829108d4338b27ad0da0819ace
7,348
py
Python
RSNA Pneumonia Detection Challenge/Retina_net model.py
YakinRubaiat/Kaggle-competition
3c9cc9f2ef180bbde2a17c1332c0d13eca0e4a37
[ "Apache-2.0" ]
null
null
null
RSNA Pneumonia Detection Challenge/Retina_net model.py
YakinRubaiat/Kaggle-competition
3c9cc9f2ef180bbde2a17c1332c0d13eca0e4a37
[ "Apache-2.0" ]
null
null
null
RSNA Pneumonia Detection Challenge/Retina_net model.py
YakinRubaiat/Kaggle-competition
3c9cc9f2ef180bbde2a17c1332c0d13eca0e4a37
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: import pandas as pd import numpy as np import scipy.misc import pydicom import glob import sys import os import pandas as pd import base64 from IPython.display import HTML # In[ ]: from scipy.ndimage.interpolation import zoom # In[ ]: get_ipython().system('gi...
24.331126
274
0.651606
0
0
0
0
0
0
0
0
2,317
0.315324
2e92f90fb3e8266f62a37e3918ac6d4ec8f50ca0
369
py
Python
qt-python-ui/qt-python.py
mortengunnufsen/examples-Qt
83e1b4c394863335852acc445fc0cf687ee7f9b6
[ "BSD-3-Clause" ]
2
2019-12-25T16:24:43.000Z
2022-01-16T14:43:00.000Z
qt-python-ui/qt-python.py
mortengunnufsen/examples-Qt
83e1b4c394863335852acc445fc0cf687ee7f9b6
[ "BSD-3-Clause" ]
null
null
null
qt-python-ui/qt-python.py
mortengunnufsen/examples-Qt
83e1b4c394863335852acc445fc0cf687ee7f9b6
[ "BSD-3-Clause" ]
5
2020-02-25T09:04:39.000Z
2020-12-28T21:14:00.000Z
#!/usr/bin/env python import sys from qtpy import QtWidgets def window(): app = QtWidgets.QApplication(sys.argv) w = QtWidgets.QWidget() b = QtWidgets.QLabel(w) b.setText("Hello World!") w.setGeometry(100,100,200,50) b.move(50,20) w.setWindowTitle("hello") w.show() sys.exit(app.e...
17.571429
42
0.636856
0
0
0
0
0
0
0
0
52
0.140921
2e9316c66aa980440c5346bc184412999eb69eb1
7,321
py
Python
core/admin.py
StateArchivesOfNorthCarolina/ratom_server
7fc2c179f1baee85c4b95cdf64a2d5d690d2482e
[ "MIT" ]
1
2020-02-24T03:47:17.000Z
2020-02-24T03:47:17.000Z
core/admin.py
StateArchivesOfNorthCarolina/ratom_server
7fc2c179f1baee85c4b95cdf64a2d5d690d2482e
[ "MIT" ]
21
2020-01-20T13:29:51.000Z
2022-03-12T00:11:12.000Z
core/admin.py
StateArchivesOfNorthCarolina/ratom_server
7fc2c179f1baee85c4b95cdf64a2d5d690d2482e
[ "MIT" ]
3
2020-08-27T09:20:34.000Z
2022-01-24T06:20:14.000Z
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.utils.html import format_html from django.db.models import Count from django.template.defaultfilters import filesizeformat from django.utils.translation import gettext_lazy as _ from core import models as ratom @admin.registe...
29.639676
130
0.511406
6,816
0.93102
600
0.081956
6,999
0.956017
0
0
2,527
0.345171
2e940fa64dc6865ad17f9dcc7e74b2aaa6bf5fca
148
py
Python
setup.py
Syndelis/cellular-automata
0fd38cb03e83c3a4fde2e5b4acc994dc1e189d30
[ "Xnet", "X11" ]
2
2019-06-12T13:13:00.000Z
2021-04-08T18:05:53.000Z
setup.py
Syndelis/cellular-automata
0fd38cb03e83c3a4fde2e5b4acc994dc1e189d30
[ "Xnet", "X11" ]
null
null
null
setup.py
Syndelis/cellular-automata
0fd38cb03e83c3a4fde2e5b4acc994dc1e189d30
[ "Xnet", "X11" ]
null
null
null
# Cython compiler from distutils.core import setup from Cython.Build import cythonize setup(name='CA base class', ext_modules=cythonize("ca.pyx"))
24.666667
60
0.790541
0
0
0
0
0
0
0
0
40
0.27027
2e9452a258961100ea70bee55910c45c7ca053fb
721
py
Python
0150_Evaluate_Reverse_Polish_Notation.py
coldmanck/leetcode-python
f644b8a0711c96f312326b4d025e9be3340fec42
[ "MIT" ]
4
2021-01-11T09:53:58.000Z
2022-01-18T13:11:54.000Z
0150_Evaluate_Reverse_Polish_Notation.py
coldmanck/leetcode-python
f644b8a0711c96f312326b4d025e9be3340fec42
[ "MIT" ]
null
null
null
0150_Evaluate_Reverse_Polish_Notation.py
coldmanck/leetcode-python
f644b8a0711c96f312326b4d025e9be3340fec42
[ "MIT" ]
2
2020-04-13T13:55:48.000Z
2020-08-25T16:16:11.000Z
class Solution: def evalRPN(self, tokens: List[str]) -> int: stack = [] ops = {'+', '-', '*', '/'} for token in tokens: if token not in ops: stack.append(int(token)) else: a = stack.pop() b = stack.pop() ...
34.333333
100
0.363384
721
1
0
0
0
0
0
0
101
0.140083
2e963cd2a0462916e761886c42ba2584a9589e19
2,762
py
Python
plugins/ibm_qradar/unit_test/test_start_ariel_search.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
plugins/ibm_qradar/unit_test/test_start_ariel_search.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
plugins/ibm_qradar/unit_test/test_start_ariel_search.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
import os import sys from unittest.mock import patch from unittest import TestCase from insightconnect_plugin_runtime.exceptions import ( PluginException, ConnectionTestException, ) from icon_ibm_qradar.actions.start_ariel_search import StartArielSearch from unit_test.helpers.ariel_search import ArielSearchH...
32.116279
100
0.652788
2,392
0.866039
0
0
2,267
0.820782
0
0
734
0.265749
2e97acf2470e0d21cbc675a63fe3d4483f62b6c4
682
py
Python
appengine/findit/services/test/build_url_test.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/services/test/build_url_test.py
asdfghjjklllllaaa/infra
8f63af54e46194cd29291813f2790ff6e986804d
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/services/test/build_url_test.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from services import build_url from waterfall.test.wf_testcase import WaterfallTestCase class FlakeReportUtilTest(WaterfallTestCase): def testCreateBuild...
34.1
72
0.73607
429
0.629032
0
0
0
0
0
0
186
0.272727
2e993f4791d05c0ec353fdb6e68bb9e8aa5e5559
1,677
py
Python
evaluator/evaluator_matrix.py
CryptoRichy/OctoBot
1ca5bd2ba4b8fc09859518fcb2a62f74a1435019
[ "Apache-2.0" ]
1
2018-11-26T16:43:36.000Z
2018-11-26T16:43:36.000Z
evaluator/evaluator_matrix.py
CryptoRichy/OctoBot
1ca5bd2ba4b8fc09859518fcb2a62f74a1435019
[ "Apache-2.0" ]
null
null
null
evaluator/evaluator_matrix.py
CryptoRichy/OctoBot
1ca5bd2ba4b8fc09859518fcb2a62f74a1435019
[ "Apache-2.0" ]
null
null
null
from config.cst import EvaluatorMatrixTypes from tools.evaluators_util import check_valid_eval_note class EvaluatorMatrix: def __init__(self, config): self.config = config self.matrix = { EvaluatorMatrixTypes.TA: {}, EvaluatorMatrixTypes.SOCIAL: {}, EvaluatorMat...
37.266667
79
0.630292
1,574
0.938581
0
0
729
0.434705
0
0
30
0.017889
2e9aa47756ac21e3388a034195d347bd40bff78f
3,615
py
Python
deepjet_geometric/datasets/djc_v2_dataset.py
lgray/deepjet-geometric
2efe7ef80fecb470d3ef55a4ec67bbb19b45a846
[ "MIT" ]
null
null
null
deepjet_geometric/datasets/djc_v2_dataset.py
lgray/deepjet-geometric
2efe7ef80fecb470d3ef55a4ec67bbb19b45a846
[ "MIT" ]
null
null
null
deepjet_geometric/datasets/djc_v2_dataset.py
lgray/deepjet-geometric
2efe7ef80fecb470d3ef55a4ec67bbb19b45a846
[ "MIT" ]
3
2021-02-10T13:31:54.000Z
2022-03-24T17:24:05.000Z
import os.path as osp import glob import h5py import numpy as np from tqdm import tqdm import torch from torch_geometric.data import Data from torch_geometric.data import Dataset class DeepJetCoreV2(Dataset): r''' input z0: (FatJat basic stats, 1) 'fj_pt', 'fj_eta', 'f...
30.897436
92
0.517289
3,432
0.949378
0
0
196
0.054219
0
0
933
0.258091
2e9ab8241a8266c7db8bfa58384994c04aa38a39
1,427
py
Python
heat_integrationtests/functional/test_versionnegotiation.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
265
2015-01-02T09:33:22.000Z
2022-03-26T23:19:54.000Z
heat_integrationtests/functional/test_versionnegotiation.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
8
2015-09-01T15:43:19.000Z
2021-12-14T05:18:23.000Z
heat_integrationtests/functional/test_versionnegotiation.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
295
2015-01-06T07:00:40.000Z
2021-09-06T08:05: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...
38.567568
78
0.685354
625
0.437982
0
0
0
0
0
0
749
0.524877
2e9af0aa8d93c643754acda802091390f3f473d0
1,848
py
Python
app/plugins/notife.py
MoeZilla/BlueMoonVampireBot
af074f846b56e7a4f262740d7b65b32ab11a4e42
[ "MIT" ]
1
2022-01-25T06:28:51.000Z
2022-01-25T06:28:51.000Z
app/plugins/notife.py
MoeZilla/BlueMoonVampireBot
af074f846b56e7a4f262740d7b65b32ab11a4e42
[ "MIT" ]
null
null
null
app/plugins/notife.py
MoeZilla/BlueMoonVampireBot
af074f846b56e7a4f262740d7b65b32ab11a4e42
[ "MIT" ]
null
null
null
""" MIT License Copyright (C) 2021-2022, NkSama Copyright (C) 2021-2022 Moezilla Copyright (c) 2021, Sylviorus, <https://github.com/Sylviorus/BlueMoonVampireBot> This file is part of @BlueMoonVampireBot (Antispam Telegram Bot) Permission is hereby granted, free of charge, to any person obtaining a copy of this software...
37.714286
80
0.765152
0
0
0
0
281
0.152056
0
0
1,351
0.731061
2e9bd9729c6377e6989819bbf1d32c6c58841a32
403
py
Python
apps/users/migrations/0004_user_username.py
kevotovar/topdeck-arena
e09753a29837847bdc239cd98a1942711c953bbe
[ "MIT" ]
null
null
null
apps/users/migrations/0004_user_username.py
kevotovar/topdeck-arena
e09753a29837847bdc239cd98a1942711c953bbe
[ "MIT" ]
24
2018-08-16T03:17:08.000Z
2021-06-10T20:43:13.000Z
apps/users/migrations/0004_user_username.py
kevotovar/topdeck-arena
e09753a29837847bdc239cd98a1942711c953bbe
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-08-18 15:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0003_auto_20180815_2234'), ] operations = [ migrations.AddField( model_name='user', name='username', ...
21.210526
73
0.602978
312
0.774194
0
0
0
0
0
0
93
0.230769
2e9cb527ff1f857656488e0800350e5fc6febf44
13,024
py
Python
mmcls/models/backbones/t2t_vit.py
kivanctezoren/mmclassification
5c73d4b29f61c47d379bbec4621a465099e64bd7
[ "Apache-2.0" ]
1
2021-05-26T08:16:01.000Z
2021-05-26T08:16:01.000Z
mmcls/models/backbones/t2t_vit.py
kivanctezoren/mmclassification
5c73d4b29f61c47d379bbec4621a465099e64bd7
[ "Apache-2.0" ]
null
null
null
mmcls/models/backbones/t2t_vit.py
kivanctezoren/mmclassification
5c73d4b29f61c47d379bbec4621a465099e64bd7
[ "Apache-2.0" ]
1
2021-12-11T07:52:59.000Z
2021-12-11T07:52:59.000Z
# Copyright (c) OpenMMLab. All rights reserved. from copy import deepcopy from typing import Sequence import numpy as np import torch import torch.nn as nn from mmcv.cnn import build_norm_layer from mmcv.cnn.bricks.transformer import FFN from mmcv.cnn.utils.weight_init import trunc_normal_ from mmcv.runner.base_module...
35.391304
79
0.589527
11,588
0.889742
0
0
5,392
0.414005
0
0
4,758
0.365326
2e9e32236f3aacd45c54c96674594afc7e16ce46
2,313
py
Python
geopyspark/tests/geotrellis/rddwrapper_test.py
geotrellis/geotrellis-python
97bcb17a56ed4b4059e2f0dbab97706562cac692
[ "Apache-2.0" ]
182
2017-01-26T18:11:57.000Z
2021-09-07T07:39:52.000Z
geopyspark/tests/geotrellis/rddwrapper_test.py
geotrellis/geotrellis-python
97bcb17a56ed4b4059e2f0dbab97706562cac692
[ "Apache-2.0" ]
428
2016-12-21T14:53:43.000Z
2019-07-14T09:33:54.000Z
geopyspark/tests/geotrellis/rddwrapper_test.py
geotrellis/geotrellis-python
97bcb17a56ed4b4059e2f0dbab97706562cac692
[ "Apache-2.0" ]
66
2017-01-05T19:16:15.000Z
2022-02-23T12:49:50.000Z
import os import sys import numpy as np import pytest import unittest from geopyspark.geotrellis import Tile from geopyspark.geotrellis.layer import RasterLayer from geopyspark.geotrellis.constants import LayerType from geopyspark.tests.base_test_class import BaseTestClass from pyspark.storagelevel import StorageLevel...
33.521739
77
0.596628
1,942
0.839602
77
0.03329
111
0.04799
0
0
25
0.010808
2e9e378b71918a48cd1b5aa6e11813c09f19056c
432
py
Python
pia/cli.py
soasme/bamboo
5c2b879dcbeafc46990d6bfda6f376acc7a55f01
[ "0BSD" ]
4
2016-04-04T17:30:43.000Z
2016-04-11T11:03:38.000Z
pia/cli.py
soasme/pia
5c2b879dcbeafc46990d6bfda6f376acc7a55f01
[ "0BSD" ]
2
2016-04-04T09:44:57.000Z
2016-04-04T09:49:44.000Z
pia/cli.py
soasme/pia
5c2b879dcbeafc46990d6bfda6f376acc7a55f01
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- """ pia.cli ~~~~~~~~~~~~~ A simple command line application for pia. """ import click @click.group() def cli(): """ Pia cli group """ pass @cli.command() def run(): """ Run remote pia program. """ pass @cli.command() def dev(): """ Develop a pia progr...
11.675676
42
0.509259
0
0
0
0
222
0.513889
0
0
245
0.56713
2e9f955cd520a372ad16539bc58013fcc42d5c6b
1,222
py
Python
FEArena/feaapi/admin.py
Superbird11/FEArena
76b32dd9d4fddc62c191225e332560e0e9ed2c9e
[ "MIT" ]
1
2020-12-25T03:33:44.000Z
2020-12-25T03:33:44.000Z
FEArena/feaapi/admin.py
Superbird11/FEArena
76b32dd9d4fddc62c191225e332560e0e9ed2c9e
[ "MIT" ]
null
null
null
FEArena/feaapi/admin.py
Superbird11/FEArena
76b32dd9d4fddc62c191225e332560e0e9ed2c9e
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import core from .models import build from .models import play admin.site.register(core.FireEmblemGame) admin.site.register(core.Unit) admin.site.register(core.Class) admin.site.register(core.Weapon) admin.site.register(core.Item) admin.site.r...
32.157895
52
0.837152
0
0
0
0
0
0
0
0
28
0.022913
2ea10f31b9ad39b588a659cb52c25dc409daa644
207
py
Python
pytijo/constants.py
darinsikanic/structifytext
ff36ee92f483d8499710827773560f4886b07765
[ "Apache-2.0" ]
5
2017-04-28T08:03:15.000Z
2018-12-29T03:52:46.000Z
pytijo/constants.py
darinsikanic/structifytext
ff36ee92f483d8499710827773560f4886b07765
[ "Apache-2.0" ]
2
2020-01-15T06:25:48.000Z
2020-11-23T13:58:27.000Z
pytijo/constants.py
darinsikanic/structifytext
ff36ee92f483d8499710827773560f4886b07765
[ "Apache-2.0" ]
1
2019-05-02T10:44:53.000Z
2019-05-02T10:44:53.000Z
# Global KEYWORD_CHAR = "#" # API Keywords KEYWORD_ID = "#id" KEYWORD_START = "#start" KEYWORD_END = "#end" # Modules MODULE_CHAR = "@" CORE_MODULE_PACKAGE = "pytijo.modules" DEFAULT_MODULE_NAME = "tijo_re"
18.818182
38
0.719807
0
0
0
0
0
0
0
0
81
0.391304
2ea11475a7fe329519530a13d7b064e4322a451f
742
py
Python
rpi_rilla/light.py
gthar/rpi_rilla
50cb6aac0ead4094d72447538aca0296d1335a5a
[ "BSD-2-Clause" ]
null
null
null
rpi_rilla/light.py
gthar/rpi_rilla
50cb6aac0ead4094d72447538aca0296d1335a5a
[ "BSD-2-Clause" ]
null
null
null
rpi_rilla/light.py
gthar/rpi_rilla
50cb6aac0ead4094d72447538aca0296d1335a5a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import RPi.GPIO as GPIO from rpi_rilla.helpers import update_yaml GPIO.setmode(GPIO.BOARD) class Light: def __init__(self, id, pin, default, state_file): GPIO.setup(pin, GPIO.OUT) self.id = id self.pin = pin self.state_file = state_file self.set(def...
21.2
57
0.603774
623
0.839623
0
0
0
0
0
0
59
0.079515
2ea297ebd14c9f18c3e486da0ab8842cf15efdc3
1,476
py
Python
core/anchor.py
calmisential/TensorFlow2.0_SSD
737a631608a8c2d3f2213f9139c1c0af0063f1d1
[ "MIT" ]
90
2019-10-05T13:19:22.000Z
2022-03-09T22:49:23.000Z
core/anchor.py
calmisential/TensorFlow2.0_SSD
737a631608a8c2d3f2213f9139c1c0af0063f1d1
[ "MIT" ]
17
2019-10-28T11:13:05.000Z
2022-02-22T12:33:23.000Z
core/anchor.py
calmisential/TensorFlow2.0_SSD
737a631608a8c2d3f2213f9139c1c0af0063f1d1
[ "MIT" ]
54
2019-09-26T06:47:39.000Z
2022-03-25T15:36:23.000Z
import numpy as np import math from configuration import IMAGE_HEIGHT, IMAGE_WIDTH, ASPECT_RATIOS, FEATURE_MAPS, \ DEFAULT_BOXES_SIZES, DOWNSAMPLING_RATIOS from itertools import product class DefaultBoxes: def __init__(self): assert IMAGE_HEIGHT == IMAGE_WIDTH self.image_size = IMAGE_HEIGHT ...
37.846154
116
0.603659
1,301
0.869652
0
0
0
0
0
0
40
0.026738
2ea32157d60a32cc39cebcfdf2909acc3fb3af7b
16,006
py
Python
tmp.py
devYaoYH/CodinGame_GitC
f55db74dc53d8f2e8d71bc652dc792e6d005adf2
[ "MIT" ]
2
2018-05-15T12:07:24.000Z
2020-03-10T15:49:29.000Z
tmp.py
devYaoYH/codingame_gitc
f55db74dc53d8f2e8d71bc652dc792e6d005adf2
[ "MIT" ]
null
null
null
tmp.py
devYaoYH/codingame_gitc
f55db74dc53d8f2e8d71bc652dc792e6d005adf2
[ "MIT" ]
1
2018-04-02T14:53:22.000Z
2018-04-02T14:53:22.000Z
''' Reinforce function - Takes a list of targets to be reinforced - Weighs targets - Sends reinforcements if available ''' def reinforce(self, simulStates): #TODO: How to bring troops to the front? curTroops = min(self.troops, readMaxAvailTroops(simulStates[self.ID])[0]) ...
49.401235
211
0.590216
0
0
0
0
0
0
0
0
3,909
0.244221
2ea338d3af063a419c39ebbdc6516e42c2946316
1,185
py
Python
tests/test_complex.py
chenzhaiyu/abspy
c03d26e4ddb81d17467573ca2f399a9cb608a4be
[ "MIT" ]
5
2022-01-14T17:15:35.000Z
2022-03-11T09:51:49.000Z
tests/test_complex.py
chenzhaiyu/abspy
c03d26e4ddb81d17467573ca2f399a9cb608a4be
[ "MIT" ]
2
2022-01-18T15:17:54.000Z
2022-01-18T15:19:25.000Z
tests/test_complex.py
chenzhaiyu/abspy
c03d26e4ddb81d17467573ca2f399a9cb608a4be
[ "MIT" ]
1
2022-01-15T08:12:08.000Z
2022-01-15T08:12:08.000Z
from pathlib import Path import numpy as np from abspy import CellComplex dir_tests = Path(__file__).parent def example_cell_complex(): """ Simple CellComplex construction from specified planes and bounds. """ # start from two planes planes = np.array([[0, 1, 0, -50], [0, 0, 1, -50]]) # spe...
26.931818
93
0.678481
0
0
0
0
0
0
0
0
434
0.366245
2ea3a75a5f2751bf316fd5b79db613c01ad75117
1,106
py
Python
src/frr/tests/topotests/lib/exa-receive.py
zhouhaifeng/vpe
9c644ffd561988e5740021ed26e0f7739844353d
[ "Apache-2.0" ]
null
null
null
src/frr/tests/topotests/lib/exa-receive.py
zhouhaifeng/vpe
9c644ffd561988e5740021ed26e0f7739844353d
[ "Apache-2.0" ]
null
null
null
src/frr/tests/topotests/lib/exa-receive.py
zhouhaifeng/vpe
9c644ffd561988e5740021ed26e0f7739844353d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ exa-receive.py: Save received routes form ExaBGP into file """ import argparse import os from sys import stdin from datetime import datetime parser = argparse.ArgumentParser() parser.add_argument( "--no-timestamp", dest="timestamp", action="store_false", help="Disable timestamps" ) par...
25.136364
88
0.660036
0
0
0
0
0
0
0
0
320
0.289331
2ea3aab54423adec72cba91766a80d7a10a99caf
2,068
py
Python
unicrypto/backends/pure/external/AES/ccm.py
ac-rn/unicrypto
bb3205612d2d7943817d55aa93de67806ceabf0d
[ "MIT" ]
1
2022-03-15T23:23:03.000Z
2022-03-15T23:23:03.000Z
unicrypto/backends/pure/external/AES/ccm.py
ac-rn/unicrypto
bb3205612d2d7943817d55aa93de67806ceabf0d
[ "MIT" ]
null
null
null
unicrypto/backends/pure/external/AES/ccm.py
ac-rn/unicrypto
bb3205612d2d7943817d55aa93de67806ceabf0d
[ "MIT" ]
null
null
null
from Cryptodome.Cipher import AES import struct # https://tools.ietf.org/html/rfc3610 def aesCCMEncrypt(plaintext, aad, key, nonce, macLen): blockSize = 16 # For AES... if macLen not in (4, 6, 8, 10, 12, 14, 16): raise ValueError("Parameter 'mac_len' must be even and in the range 4..16 (not %d)" % macLen) if n...
25.85
95
0.640232
0
0
0
0
0
0
0
0
411
0.198743
2ea49685661b1bbd513afcd73c45bc80909614c1
1,878
py
Python
PyGenetic/mutation.py
Omair-R/PyGenetic
27c97e0958b65b6163a6fb9e9e5089eb2dc7dae2
[ "MIT" ]
17
2021-09-08T08:21:03.000Z
2022-03-24T16:57:02.000Z
PyGenetic/mutation.py
Omair-R/PyGenetic
27c97e0958b65b6163a6fb9e9e5089eb2dc7dae2
[ "MIT" ]
1
2021-12-16T15:40:16.000Z
2021-12-16T15:40:16.000Z
PyGenetic/mutation.py
Omair-R/PyGenetic
27c97e0958b65b6163a6fb9e9e5089eb2dc7dae2
[ "MIT" ]
6
2021-12-16T14:55:15.000Z
2022-01-11T18:05:35.000Z
import numpy as np class MutationDecidor: def __init__(self, mutation_type, n_genes, mutation_propability, low_boundery=0, high_boundery=0): self.n_genes = n_genes self.mutation_propability = mutation_propability...
34.145455
77
0.583067
1,856
0.988285
0
0
0
0
0
0
34
0.018104
2ea4c520dd53a2a52f11b5e7a9e632d6c39aba9d
3,480
py
Python
tools/eval.py
jiaruixu/Detectron
baa3392405402438f8c339727aa9c0704dc9fa72
[ "Apache-2.0" ]
null
null
null
tools/eval.py
jiaruixu/Detectron
baa3392405402438f8c339727aa9c0704dc9fa72
[ "Apache-2.0" ]
null
null
null
tools/eval.py
jiaruixu/Detectron
baa3392405402438f8c339727aa9c0704dc9fa72
[ "Apache-2.0" ]
null
null
null
"""Evaluate a network with Detectron.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import cv2 # NOQA (Must import before importing caffe2 due to bug in cv2) import os import pprint import sys imp...
31.071429
161
0.675862
0
0
0
0
0
0
0
0
1,026
0.294828
2ea5aaa2c98d99adc13ed905c0058e7f02231385
2,847
py
Python
u24_lymphocyte/third_party/treeano/nodes/tests/containers_test.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
45
2015-04-26T04:45:51.000Z
2022-01-24T15:03:55.000Z
u24_lymphocyte/third_party/treeano/nodes/tests/containers_test.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
u24_lymphocyte/third_party/treeano/nodes/tests/containers_test.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
import nose.tools as nt import numpy as np import theano import treeano.nodes as tn fX = theano.config.floatX def test_sequential_node_serialization(): tn.check_serialization(tn.SequentialNode("a", [])) tn.check_serialization(tn.SequentialNode( "a", [tn.SequentialNode("b", []), tn.S...
29.968421
75
0.488936
0
0
0
0
240
0.084299
0
0
350
0.122936
2ea5e98a4fc2b8a1c6d0d0f71589f165127c59dd
3,231
py
Python
pupa/migrations/0001_initial.py
datamade/pupa
7c7d2937dfa0c8347e47661a6ed42fd28a9e16d4
[ "BSD-3-Clause" ]
3
2015-11-21T10:39:44.000Z
2019-11-17T16:34:53.000Z
pupa/migrations/0001_initial.py
datamade/pupa
7c7d2937dfa0c8347e47661a6ed42fd28a9e16d4
[ "BSD-3-Clause" ]
1
2015-11-23T19:43:48.000Z
2015-11-23T19:45:06.000Z
pupa/migrations/0001_initial.py
datamade/pupa
7c7d2937dfa0c8347e47661a6ed42fd28a9e16d4
[ "BSD-3-Clause" ]
5
2015-11-22T09:23:14.000Z
2019-11-17T16:34:57.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ('legislative', '0001_initial'), ] operations = [ migrations.CreateModel( name='...
40.898734
280
0.535747
3,122
0.966264
0
0
0
0
0
0
742
0.22965
2ea60c9a91259a0b51917497b57172f651d30c70
1,112
py
Python
models/estudiante.py
javierdaza/directorio_estudiantes
13f5963cccec278dec4fde7332a4491d9220c059
[ "MIT" ]
null
null
null
models/estudiante.py
javierdaza/directorio_estudiantes
13f5963cccec278dec4fde7332a4491d9220c059
[ "MIT" ]
null
null
null
models/estudiante.py
javierdaza/directorio_estudiantes
13f5963cccec278dec4fde7332a4491d9220c059
[ "MIT" ]
null
null
null
from urllib.parse import urlparse import datetime from decouple import config from peewee import * database_proxy = DatabaseProxy() production = config('PRODUCTION', cast=bool) class BaseModel(Model): class Meta: database = database_proxy class Estudiante(BaseModel): nombre_usuario = CharField(m...
24.173913
65
0.678058
417
0.375
0
0
0
0
0
0
62
0.055755
2ea6798fa3e1352a78ff1f506bcd6a8b03ba29cd
2,213
py
Python
draftplot_PWx.py
erwinlambert/alphabeta
04dd03de3521556067c997c2deaf0d6560124b7b
[ "BSD-3-Clause" ]
null
null
null
draftplot_PWx.py
erwinlambert/alphabeta
04dd03de3521556067c997c2deaf0d6560124b7b
[ "BSD-3-Clause" ]
null
null
null
draftplot_PWx.py
erwinlambert/alphabeta
04dd03de3521556067c997c2deaf0d6560124b7b
[ "BSD-3-Clause" ]
null
null
null
from scipy.integrate import odeint import os import matplotlib as mpl import numpy as np import matplotlib.pyplot as plt import sys hstep = .01 sstep = .01 hmin = 0. hmax = 2. smin = 0. smax = 3. rmin = .01 rmax = 3. rstep = .1 rr = np.arange(rmin,rmax+rstep,rstep) LL3 = 1.2 LL4 = 0.22 dx = .01 s0 = .01 h0 = .01 ...
21.485437
50
0.619973
0
0
0
0
0
0
0
0
587
0.265251
2ea6f2f3bf56a4b8ce0430cc6d5843b95908a1ac
4,405
py
Python
solid-pancake/solid_pancake_cli.py
sharyar/solid-pancake
26eb519fbfcb5f195527cda06ff4a93e7c0018a7
[ "MIT" ]
null
null
null
solid-pancake/solid_pancake_cli.py
sharyar/solid-pancake
26eb519fbfcb5f195527cda06ff4a93e7c0018a7
[ "MIT" ]
null
null
null
solid-pancake/solid_pancake_cli.py
sharyar/solid-pancake
26eb519fbfcb5f195527cda06ff4a93e7c0018a7
[ "MIT" ]
null
null
null
# CLI application for sentiment analysis of a user's tweets # Load constants # Check if saved model exists, if it does not, ask user if ok to train # Save model for vectorizer as well # Get user's twitter address # Ask if he wants a word cloud too # Start analyzing - Show animation for loading? # display graph of se...
32.873134
112
0.695119
0
0
0
0
0
0
0
0
1,907
0.432917
2ea88745253e3b4338317f561c7e7bcfe24b4d43
1,237
py
Python
util.py
melkamar/fitanketa-miner
fa1d990a20f218cf1a2dde1d8485453f19ab597e
[ "MIT" ]
null
null
null
util.py
melkamar/fitanketa-miner
fa1d990a20f218cf1a2dde1d8485453f19ab597e
[ "MIT" ]
null
null
null
util.py
melkamar/fitanketa-miner
fa1d990a20f218cf1a2dde1d8485453f19ab597e
[ "MIT" ]
null
null
null
import datetime def get_semester(date: datetime.datetime) -> str: """ Semesters are coded B161 (winter 2016/2017), B162 (summer 2016/2017) etc. They are obtained by comparing dates: January-February year X -> winter semester of year (X-1)/X March-September year X -> summer semester of ye...
30.170732
86
0.641067
0
0
0
0
0
0
0
0
525
0.423729
2ea8c2bf1fba5f3a643f0cdd98c6a5c896e24557
1,465
py
Python
vsutillib/vsutillib-misc/vsutillib/misc/strFormatTimeDelta.py
akai10tsuki/vsutillib
6d623171cc2a5c66a94fb508bfc312abeab49ff2
[ "MIT" ]
null
null
null
vsutillib/vsutillib-misc/vsutillib/misc/strFormatTimeDelta.py
akai10tsuki/vsutillib
6d623171cc2a5c66a94fb508bfc312abeab49ff2
[ "MIT" ]
null
null
null
vsutillib/vsutillib-misc/vsutillib/misc/strFormatTimeDelta.py
akai10tsuki/vsutillib
6d623171cc2a5c66a94fb508bfc312abeab49ff2
[ "MIT" ]
null
null
null
""" format timedelta object """ from string import Formatter def strFormatTimeDelta(tDelta, fmt=None): """ strFormatTimeDelta format time delta string. If fmt is None a format of 'N days N hours N minutes N seconds' will be used starting with the first non zero N found in the calculations. Args...
29.3
86
0.579522
0
0
0
0
0
0
0
0
503
0.343345
2ea90ea2807bc0d66bfcd1a09e321202c437d6ed
951
py
Python
tests/conftest.py
carlegbert/crocodile
8b78c9d1610ba4977f718807e4ec442ce249f62a
[ "MIT" ]
null
null
null
tests/conftest.py
carlegbert/crocodile
8b78c9d1610ba4977f718807e4ec442ce249f62a
[ "MIT" ]
null
null
null
tests/conftest.py
carlegbert/crocodile
8b78c9d1610ba4977f718807e4ec442ce249f62a
[ "MIT" ]
null
null
null
import json from hashlib import sha1 import hmac from os import path import pytest from crocodile.app import create_app TEST_SECRET = 'test_secret' @pytest.fixture def app(): test_config = { 'CROCODILE_SECRET': TEST_SECRET, 'TESTING': True, 'CONSUMERSFILE': path.join(path.dirname(__file_...
19.02
75
0.674027
0
0
44
0.046267
783
0.823344
0
0
192
0.201893
2ea9a3d5c1e2aaee9a2edabc627b486bd2b84f2b
5,091
py
Python
gatelfpytorchjson/modules/TextClassBiLstmCnnSingle.py
GateNLP/gate-lf-pytorch-wrapper
a08e180e56062dc03247ff0eb2414c0179ef7863
[ "Apache-2.0" ]
1
2018-05-13T06:26:23.000Z
2018-05-13T06:26:23.000Z
gatelfpytorchjson/modules/TextClassBiLstmCnnSingle.py
GateNLP/gate-lf-pytorch-wrapper
a08e180e56062dc03247ff0eb2414c0179ef7863
[ "Apache-2.0" ]
46
2018-04-27T19:13:11.000Z
2019-06-10T20:45:27.000Z
gatelfpytorchjson/modules/TextClassBiLstmCnnSingle.py
GateNLP/gate-lf-pytorch-wrapper
a08e180e56062dc03247ff0eb2414c0179ef7863
[ "Apache-2.0" ]
2
2019-06-01T11:44:08.000Z
2019-06-18T03:27:19.000Z
from gatelfpytorchjson import CustomModule from gatelfpytorchjson import EmbeddingsModule import torch import torch.nn as nn import torch.nn.functional as F import sys import logging logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) streamhandler = logging.StreamHandler(stream=sys.stderr) formatter =...
41.390244
117
0.659006
4,604
0.904341
0
0
0
0
0
0
865
0.169908
2ea9f0f2aa03f595d96934647cb51c4753435863
728
py
Python
server/server/main.py
john-sonz/federated-learning-iot
4eb698dff6c43bfefeea8f99eaa6aa0765200fc8
[ "MIT" ]
null
null
null
server/server/main.py
john-sonz/federated-learning-iot
4eb698dff6c43bfefeea8f99eaa6aa0765200fc8
[ "MIT" ]
null
null
null
server/server/main.py
john-sonz/federated-learning-iot
4eb698dff6c43bfefeea8f99eaa6aa0765200fc8
[ "MIT" ]
1
2022-01-10T15:39:32.000Z
2022-01-10T15:39:32.000Z
import flwr as fl import os from flwr.server.strategy import FedAvg os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" ENV = os.environ FRACTION_FIT = float(ENV.get('FRACTION_FIT', "0.5")) MIN_AVAILABLE_CLIENTS = int(ENV.get('MIN_AVAILABLE_CLIENTS', "5")) NUM_ROUNDS = int(ENV.get('NUM_ROUNDS', "10")) SERVER_ADDRESS = ENV.get...
33.090909
96
0.773352
0
0
0
0
0
0
0
0
140
0.192308
2eaa782a586f2d229922037eef6508d342caa110
10,279
py
Python
plot_functions.py
Noahs-ARK/idea_relations
b84427ede926f4272a1f60a3554d9674d70582cc
[ "MIT" ]
29
2017-04-27T18:08:38.000Z
2020-11-14T06:54:37.000Z
plot_functions.py
Noahs-ARK/idea_relations
b84427ede926f4272a1f60a3554d9674d70582cc
[ "MIT" ]
1
2017-06-16T19:47:52.000Z
2017-06-16T19:47:52.000Z
plot_functions.py
Noahs-ARK/idea_relations
b84427ede926f4272a1f60a3554d9674d70582cc
[ "MIT" ]
8
2017-04-27T20:14:28.000Z
2019-03-18T16:50:55.000Z
"""Adapt plot functions with seaborn to get more beautiful plots.""" from __future__ import unicode_literals from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import os import collections import itertools import numpy as np import scipy.stats a...
36.580071
88
0.594027
1,054
0.102539
74
0.007199
0
0
0
0
1,582
0.153906
2eaa925e072fda3917a52d9ce1d563a4bee27bae
599
py
Python
Mask_RCNN/Faster_RCNN_New/vis_data.py
pkasten/Chiral-molecule-detection
fdeac581484b2b058eff863e2b5cd49b217fc4f5
[ "MIT" ]
2
2021-02-25T12:58:23.000Z
2021-11-30T13:03:27.000Z
Mask_RCNN/Faster_RCNN_New/vis_data.py
pkasten/Chiral-molecule-detection
fdeac581484b2b058eff863e2b5cd49b217fc4f5
[ "MIT" ]
null
null
null
Mask_RCNN/Faster_RCNN_New/vis_data.py
pkasten/Chiral-molecule-detection
fdeac581484b2b058eff863e2b5cd49b217fc4f5
[ "MIT" ]
1
2021-12-01T15:55:04.000Z
2021-12-01T15:55:04.000Z
import random from detectron2.utils.visualizer import Visualizer from detectron2.data.catalog import MetadataCatalog, DatasetCatalog import mol_data import cv2 mol_metadata = MetadataCatalog.get("mol") print(mol_metadata) dataset_dicts = DatasetCatalog.get("mol") for d in random.sample(dataset_dicts, ...
28.52381
68
0.686144
0
0
0
0
0
0
0
0
25
0.041736
2eaaf9b464b30657bb954716ce433490091b5cd9
1,916
py
Python
train/docker/src/train.py
samuelrojolopez/ml_technical_challenge
09b3d1e20243e0329042360d10af2d1832126c4a
[ "MIT" ]
null
null
null
train/docker/src/train.py
samuelrojolopez/ml_technical_challenge
09b3d1e20243e0329042360d10af2d1832126c4a
[ "MIT" ]
null
null
null
train/docker/src/train.py
samuelrojolopez/ml_technical_challenge
09b3d1e20243e0329042360d10af2d1832126c4a
[ "MIT" ]
null
null
null
# coding: utf-8 import pandas as pd from glob import glob from joblib import dump from imblearn.over_sampling import SMOTE from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier if __name__ == "__main__": TRAINING_DATA_PATH = "/opt/ml/input/data/train/" MODE...
26.246575
77
0.635699
0
0
0
0
0
0
0
0
409
0.212578
2eabbc492325693d84c09f8314053d43a9d2b56b
20,786
py
Python
pyne/tests/spatial_solvers/ahot_script.py
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
1
2022-03-26T20:01:13.000Z
2022-03-26T20:01:13.000Z
pyne/tests/spatial_solvers/ahot_script.py
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
null
null
null
pyne/tests/spatial_solvers/ahot_script.py
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
1
2022-03-26T19:59:13.000Z
2022-03-26T19:59:13.000Z
"""AHOT Spatial Solver tests""" # TODO: # Add tests with supported warning configurations? # a = populate_with_warnings("AHOTN") # a = populate_with_warnings("DGFEM") import numpy as np from numpy.testing import assert_array_almost_equal import pyne.spatialsolver from .dictionary_populate_test import ( populate_...
36.024263
85
0.537285
0
0
0
0
0
0
0
0
1,479
0.071154
2eac1b4af86faa566a0da740a08ed19d0bd17c1d
646
py
Python
asynchronous_qiwi/call/API/QIWIWallet/payment_api/currency_rates.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
3
2021-05-20T02:36:30.000Z
2021-11-28T16:00:15.000Z
asynchronous_qiwi/call/API/QIWIWallet/payment_api/currency_rates.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
null
null
null
asynchronous_qiwi/call/API/QIWIWallet/payment_api/currency_rates.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
1
2021-11-28T16:00:20.000Z
2021-11-28T16:00:20.000Z
from .....data.URL import QIWIWalletURLS from .....data_types.connector.request_type import GET from .....connector.aiohttp_connector import Connector class CurrencyRatesAPI: @classmethod async def get_currency_rates(cls, wallet_api_key: str) -> dict: url = QIWIWalletURLS.Payments.currency_rates ...
38
86
0.684211
492
0.76161
0
0
463
0.716718
446
0.690402
99
0.153251
2eac49e1485b2b305dadda77ebaf1519f5ff917c
47
py
Python
doubleratchet/exceptions/missingkeyexception.py
mmojahed93/python-doubleratchet
3a8ae7a2ab2222f50df0b8077d89b05447532978
[ "MIT" ]
11
2018-03-28T11:15:29.000Z
2021-10-24T01:48:30.000Z
doubleratchet/exceptions/missingkeyexception.py
mmojahed93/python-doubleratchet
3a8ae7a2ab2222f50df0b8077d89b05447532978
[ "MIT" ]
null
null
null
doubleratchet/exceptions/missingkeyexception.py
mmojahed93/python-doubleratchet
3a8ae7a2ab2222f50df0b8077d89b05447532978
[ "MIT" ]
6
2019-04-22T20:13:25.000Z
2021-09-13T16:24:32.000Z
class MissingKeyException(Exception): pass
15.666667
37
0.787234
46
0.978723
0
0
0
0
0
0
0
0
2eac8b4e05486b52eb12dc6e758aba64c32a1220
5,877
py
Python
okonomiyaki/file_formats/setuptools_egg.py
enthought/okonomiyaki
51b8b4fa8d17255e13c097402691726545cf5b4c
[ "BSD-3-Clause" ]
1
2021-06-01T16:35:00.000Z
2021-06-01T16:35:00.000Z
okonomiyaki/file_formats/setuptools_egg.py
enthought/okonomiyaki
51b8b4fa8d17255e13c097402691726545cf5b4c
[ "BSD-3-Clause" ]
249
2015-02-24T19:06:53.000Z
2021-07-30T09:01:53.000Z
okonomiyaki/file_formats/setuptools_egg.py
enthought/okonomiyaki
51b8b4fa8d17255e13c097402691726545cf5b4c
[ "BSD-3-Clause" ]
4
2015-02-19T21:29:12.000Z
2016-01-14T21:02:39.000Z
import os.path import re import sys try: import sysconfig except ImportError: # Python 2.6 support sysconfig = None import warnings from okonomiyaki.errors import OkonomiyakiError from okonomiyaki.platforms import PythonImplementation from okonomiyaki.utils import py3compat from ._egg_info import _guess_pytho...
29.681818
79
0.609495
2,245
0.381998
0
0
1,330
0.226306
0
0
2,096
0.356645
2ead2418ac79686f81faf8e79b899ef5370e790b
1,145
py
Python
Python/leetcode.271.encode-and-decode-strings.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
4
2015-10-10T00:30:55.000Z
2020-07-27T19:45:54.000Z
Python/leetcode.271.encode-and-decode-strings.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
Python/leetcode.271.encode-and-decode-strings.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
class Codec: def encode(self, strs): """Encodes a list of strings to a single string. :type strs: List[str] :rtype: str """ # encode format '<total_length> <seperate length connected with -> <joined str>' if not strs: return '' separate_l...
30.131579
88
0.535371
1,021
0.891703
0
0
0
0
0
0
445
0.388646
2eaee1f5ab79283db12741ad1f4f0ff16bd8988e
3,761
py
Python
shipyard/rules/base/build.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
3
2016-01-04T06:28:52.000Z
2020-09-20T13:18:40.000Z
shipyard/rules/base/build.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
shipyard/rules/base/build.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
"""Base of all build rules.""" from pathlib import Path from garage import scripts from foreman import define_parameter, rule, to_path (define_parameter.path_typed('root') .with_doc('Path to the root directory of this repository.') .with_default(Path(__file__).parent.parent.parent.parent)) (define_parameter.pa...
29.155039
78
0.650625
0
0
0
0
2,433
0.646902
0
0
1,677
0.445892
2eafb50bbce7f7a6466757554ee9222412c1f278
1,099
py
Python
examples/crud/authentication.py
fossabot/vial
0e33a68f5e0dd6a9a9877163f263114fc9e5f774
[ "MIT" ]
4
2019-02-07T14:58:21.000Z
2021-01-28T08:43:46.000Z
examples/crud/authentication.py
fossabot/vial
0e33a68f5e0dd6a9a9877163f263114fc9e5f774
[ "MIT" ]
8
2018-12-29T14:08:48.000Z
2021-03-19T07:54:54.000Z
examples/crud/authentication.py
fossabot/vial
0e33a68f5e0dd6a9a9877163f263114fc9e5f774
[ "MIT" ]
3
2019-01-07T05:50:39.000Z
2020-10-24T10:26:54.000Z
from functools import wraps from models import User class AuthenticationService: @classmethod def get_profile_from_token(cls, token): user = User.get(where={'auth_token': token}) if not user: raise Exception("No profile for this token") return user @classmethod d...
28.179487
94
0.591447
1,043
0.949045
0
0
998
0.908098
0
0
157
0.142857
2eb0484af9cce8ea841dc9edc7631fe9d4a6ea0c
13,938
py
Python
extractVerb.py
StatisticalProject/timetobirth
0a7acfe51d8eb5195e9d5cbe3e7378a0b73a3842
[ "Apache-2.0" ]
null
null
null
extractVerb.py
StatisticalProject/timetobirth
0a7acfe51d8eb5195e9d5cbe3e7378a0b73a3842
[ "Apache-2.0" ]
null
null
null
extractVerb.py
StatisticalProject/timetobirth
0a7acfe51d8eb5195e9d5cbe3e7378a0b73a3842
[ "Apache-2.0" ]
null
null
null
import urllib, json import urllib.request,os import socket import random import re socket.setdefaulttimeout(50) #https://www.hide-my-ip.com/fr/proxylist.shtml # .*(\[\{.*\]).* KEY="A00239D3-45F6-4A0A-810C-54A347F144C2" KEY="720129CF233B4CA2DF97DAE48C8717E1" KEY="35d28185-0ca1-47f0-8caf-edc457802c9d" KEY="B...
49.425532
235
0.570311
0
0
0
0
0
0
0
0
4,954
0.355431
2eb2116844f3cc0a0343be2f4899a9026e234186
9,739
py
Python
cli.py
summunity/DjangoReact_CLI
89f4b60028c04a800aa44f1476c63bab27e0b382
[ "MIT" ]
null
null
null
cli.py
summunity/DjangoReact_CLI
89f4b60028c04a800aa44f1476c63bab27e0b382
[ "MIT" ]
null
null
null
cli.py
summunity/DjangoReact_CLI
89f4b60028c04a800aa44f1476c63bab27e0b382
[ "MIT" ]
null
null
null
""" Diamond Cronjob ================= Event Detection based on data stored in Diamond :Author: Nik Sumikawa :Date: Nov 3, 2020 """ import logging log = logging.getLogger(__name__) import pandas as pd from src.apps.interface import * from src.git.interface import * import os class CLI: def __init__(self):...
26.60929
95
0.505904
6,478
0.665161
0
0
0
0
0
0
6,090
0.625321
2eb22faa9efa6dff300c7bf44da3227149fe3aa6
7,636
py
Python
src/DataBase/LogTool/LogTool.py
swipswaps/Wind-Blade-Inspection
24613b9f2fbab224ffd3bbfc1082aa1547c19779
[ "MIT" ]
null
null
null
src/DataBase/LogTool/LogTool.py
swipswaps/Wind-Blade-Inspection
24613b9f2fbab224ffd3bbfc1082aa1547c19779
[ "MIT" ]
null
null
null
src/DataBase/LogTool/LogTool.py
swipswaps/Wind-Blade-Inspection
24613b9f2fbab224ffd3bbfc1082aa1547c19779
[ "MIT" ]
null
null
null
''' Author: Hans Erik Heggem Email: hans.erik.heggem@gmail.com Project: Master's Thesis - Autonomous Inspection Of Wind Blades Repository: Master's Thesis - CV (Computer Vision ''' import timeit from getpass import getpass from src.DroneVision.DroneVision_src.hardware.imageTools import MatplotShow ''' @brief LogT...
38.761421
226
0.64484
7,114
0.93164
0
0
0
0
0
0
4,079
0.53418
2eb2a9edba41e9d0531222c23fa4b4443640a537
99
py
Python
acmicpc/11719/11719.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
3
2019-03-09T05:19:23.000Z
2019-04-06T09:26:36.000Z
acmicpc/11719/11719.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2020-02-23T10:38:04.000Z
2020-02-23T10:38:04.000Z
acmicpc/11719/11719.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2019-05-22T13:47:53.000Z
2019-05-22T13:47:53.000Z
while True: try: n = str(input()) print(n) except EOFError: break
14.142857
24
0.464646
0
0
0
0
0
0
0
0
0
0
2eb3d07900dd0c7f4751ad09bc670f3fadf5606f
458
py
Python
examples/zeromq_first.py
msabramo/diesel
a1ed7ed0358d0fec8592e23aafc3b7ec167ab649
[ "BSD-3-Clause" ]
224
2015-01-03T06:33:05.000Z
2021-11-22T03:19:02.000Z
examples/zeromq_first.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
12
2015-01-01T03:35:15.000Z
2021-05-22T23:37:28.000Z
examples/zeromq_first.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
37
2015-01-04T01:47:55.000Z
2022-03-03T02:04:15.000Z
from diesel import quickstart, quickstop, sleep, first from diesel.protocols.zeromq import DieselZMQSocket, zctx, zmq import time def get_messages(): outsock = DieselZMQSocket(zctx.socket(zmq.DEALER), bind="tcp://127.0.0.1:5000") for x in xrange(1000): t, m = first(sleep=1.0, waits=[outsock]) ...
24.105263
83
0.637555
0
0
0
0
0
0
0
0
51
0.111354
2eb55e581f300c9a4e077505d8a2d1a9bac31f8e
1,652
py
Python
homework.py
dieundead/studies
7da3a15b576ec1e2953c7fdf5762d88a42dea1d3
[ "MIT" ]
null
null
null
homework.py
dieundead/studies
7da3a15b576ec1e2953c7fdf5762d88a42dea1d3
[ "MIT" ]
null
null
null
homework.py
dieundead/studies
7da3a15b576ec1e2953c7fdf5762d88a42dea1d3
[ "MIT" ]
null
null
null
testlist_bubblesort = [40,723, 781, 610, 440, 819, 728, 280, 998, 744, 40, 303, 708, 279, 910] testlist_decision = [560, 769, 349, 97, 881, 108, 827, 131, 301, 952, 255, 787, 625, 549, 5] testlist_insertion = [984, 738, 859, 281, 548, 399, 894, ...
38.418605
80
0.580508
0
0
0
0
0
0
0
0
360
0.199446
2eb564479c3dbf656497d8b1066141ca9f3fba07
4,728
py
Python
bookstore/src/book/dao/BookDao.py
mehulk99/Online-Book-Store
27c64b31e6fd33ae3db0bde351f889518de41eb1
[ "Apache-2.0" ]
null
null
null
bookstore/src/book/dao/BookDao.py
mehulk99/Online-Book-Store
27c64b31e6fd33ae3db0bde351f889518de41eb1
[ "Apache-2.0" ]
null
null
null
bookstore/src/book/dao/BookDao.py
mehulk99/Online-Book-Store
27c64b31e6fd33ae3db0bde351f889518de41eb1
[ "Apache-2.0" ]
null
null
null
''' Created on 14-May-2019 @author: mehulk99 ''' from flask import jsonify from bookstore.src.config import BookConfig from bookstore.src.dao.DataAccessor import DataAccessor from ...category.CategoryService import CategoryService from ...models.core.business.books.BookRepository import BookRepository from ...searc...
38.129032
187
0.592851
4,346
0.919205
0
0
0
0
0
0
1,438
0.304146
2eb6625729f0d7d088a530fc6cdd71cef8012fd9
641
py
Python
tests/unit/api_notebook/test_Jp_GSheets.py
pbx-gs/OSBot-Jupyter
4c05384c46b6ba818a6856bf016b829b737cd72c
[ "Apache-2.0" ]
null
null
null
tests/unit/api_notebook/test_Jp_GSheets.py
pbx-gs/OSBot-Jupyter
4c05384c46b6ba818a6856bf016b829b737cd72c
[ "Apache-2.0" ]
2
2020-02-02T18:27:23.000Z
2020-02-02T18:49:24.000Z
tests/unit/api_notebook/test_Jp_GSheets.py
pbx-gs/OSBot-Jupyter
4c05384c46b6ba818a6856bf016b829b737cd72c
[ "Apache-2.0" ]
2
2019-12-15T23:36:37.000Z
2020-03-23T11:22:03.000Z
from unittest import TestCase from osbot_utils.utils.Dev import Dev from osbot_jupyter.api_notebook.Jp_GSheets import Jp_GSheets class test_Jp_GSheets(TestCase): def setUp(self): self.file_id = '1_Bwz6z34wALFGb1ILUXG8CtF1-Km6F9_sGXnAu4gewY' self.sheet_name = 'Jira Data' self.sheets ...
22.103448
72
0.672387
503
0.784711
0
0
0
0
0
0
57
0.088924
2eb67aa5bb0af8a097d82e0669d563067c7b38b0
1,576
py
Python
clase_9_LimpiezaDeDatos/test/test_1_limpieza.py
alanpirotta/data_science_dh
4cb183aca70505d50d45a3f898463a47ee5eb053
[ "MIT" ]
null
null
null
clase_9_LimpiezaDeDatos/test/test_1_limpieza.py
alanpirotta/data_science_dh
4cb183aca70505d50d45a3f898463a47ee5eb053
[ "MIT" ]
null
null
null
clase_9_LimpiezaDeDatos/test/test_1_limpieza.py
alanpirotta/data_science_dh
4cb183aca70505d50d45a3f898463a47ee5eb053
[ "MIT" ]
null
null
null
def dummy(): return 0; def test_not_null_count(data, result, axis): is_notnull_result = data.notnull() data_not_null = is_notnull_result.sum(axis = axis) test_ok = all(data_not_null == result) if test_ok: msg = "Muy bien!!" else: if type(result) == "pandas.core.series.Series": ...
35.818182
119
0.647843
0
0
0
0
0
0
0
0
447
0.283629
2eb6a5b3ad9075ee31087bd668337d5de2ad9d3f
3,583
py
Python
stickerfinder/telegram/keyboard/settings.py
annihilatorrrr/sticker-finder
873468f8de26cc32d1de9b688140569b8086ab5b
[ "MIT" ]
82
2018-11-13T05:39:44.000Z
2022-01-18T17:08:44.000Z
stickerfinder/telegram/keyboard/settings.py
annihilatorrrr/sticker-finder
873468f8de26cc32d1de9b688140569b8086ab5b
[ "MIT" ]
25
2018-12-02T18:45:52.000Z
2022-03-21T22:54:19.000Z
stickerfinder/telegram/keyboard/settings.py
annihilatorrrr/sticker-finder
873468f8de26cc32d1de9b688140569b8086ab5b
[ "MIT" ]
23
2019-01-22T20:04:50.000Z
2022-02-01T14:57:28.000Z
"""Maintenance related keyboards.""" from telegram import ( InlineKeyboardMarkup, InlineKeyboardButton, ) from stickerfinder.helper.callback import build_user_data, build_data def get_settings_keyboard(user): """Get the inline keyboard for settings.""" international_payload = build_user_data("user_tog...
32.279279
87
0.64192
0
0
0
0
0
0
0
0
890
0.245721
2eba00efde07993dc1c59983d15c23b1545c645f
1,931
py
Python
code/zeroinsertion_aging/plot-fewinsertion.py
andim/paper-tcellimprint
e89605e51014fa3f347f96bab3d3d84c2b013a2f
[ "MIT" ]
2
2020-07-28T10:47:40.000Z
2021-11-14T20:07:21.000Z
code/zeroinsertion_aging/plot-fewinsertion.py
andim/paper-tcellimprint
e89605e51014fa3f347f96bab3d3d84c2b013a2f
[ "MIT" ]
null
null
null
code/zeroinsertion_aging/plot-fewinsertion.py
andim/paper-tcellimprint
e89605e51014fa3f347f96bab3d3d84c2b013a2f
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib import palettable import pandas as pd import sys sys.path.append('..') from lib import * plt.style.use('../custom.mplstyle') names = ['oneInsertion', 'twoInsertion'] agebinsize = 10.0 agebins = np.arange(0.0, 90.0, agebinsize) bin_ts = agebins[:-1...
32.183333
95
0.663387
0
0
0
0
0
0
0
0
284
0.147074
2eba2b798479eb6da1c8d9471ea3f803852412fc
2,894
py
Python
library/library/modules/bigip_drop_connection.py
meverett1167/Ansible_Demos
dad515d43af19bcb201f31929e03352d09097efc
[ "Apache-2.0" ]
null
null
null
library/library/modules/bigip_drop_connection.py
meverett1167/Ansible_Demos
dad515d43af19bcb201f31929e03352d09097efc
[ "Apache-2.0" ]
null
null
null
library/library/modules/bigip_drop_connection.py
meverett1167/Ansible_Demos
dad515d43af19bcb201f31929e03352d09097efc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2017 F5 Networks Inc. # Copyright (c) 2016 Michael Perzel # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'...
24.735043
91
0.622668
0
0
0
0
0
0
0
0
1,687
0.58293
2eba870cf64953dbca714f2107848bfa15ca97d2
2,360
py
Python
tests/test_transforms.py
sri-sensors/atmosense-abcgan
6a0d88ce49b7de03e557eca362ab7d3399d44cfb
[ "MIT" ]
null
null
null
tests/test_transforms.py
sri-sensors/atmosense-abcgan
6a0d88ce49b7de03e557eca362ab7d3399d44cfb
[ "MIT" ]
null
null
null
tests/test_transforms.py
sri-sensors/atmosense-abcgan
6a0d88ce49b7de03e557eca362ab7d3399d44cfb
[ "MIT" ]
null
null
null
import unittest import abcgan.constants as const from abcgan import transforms as trans import numpy as np def fake_drivers(n): return np.exp(np.random.normal(size=(n, const.n_driver))) def fake_bvs(n): return np.exp(np.random.normal(size=(n, const.max_alt, const.n_bv))) class TestTransforms(unittest.Test...
34.202899
78
0.658051
1,983
0.840254
0
0
0
0
0
0
32
0.013559
2ebce4a5e3f3f33fb24cf40e4d6d09afffd1fa71
4,937
py
Python
bone-age/src/bsmu/bone_age/plugins/journal_exporter.py
IvanKosik/vision
74603d4b727e6d993b562eb4656952e29173323e
[ "BSD-3-Clause" ]
2
2019-10-15T11:34:17.000Z
2021-02-03T10:46:07.000Z
bone-age/src/bsmu/bone_age/plugins/journal_exporter.py
IvanKosik/vision
74603d4b727e6d993b562eb4656952e29173323e
[ "BSD-3-Clause" ]
null
null
null
bone-age/src/bsmu/bone_age/plugins/journal_exporter.py
IvanKosik/vision
74603d4b727e6d993b562eb4656952e29173323e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations import csv from typing import TYPE_CHECKING from PySide2.QtCore import QObject from PySide2.QtWidgets import QFileDialog, QMessageBox from bsmu.bone_age.plugins.main_window import TableMenu from bsmu.vision.core.plugins.base import Plugin if TYPE_CHECKING: from bsmu.bone_age.p...
46.140187
115
0.667004
4,434
0.898116
0
0
0
0
0
0
622
0.125987
2ebd1a88d72451941988cd64b63eaae21ba2e050
21,234
py
Python
pyximc.py
EmmaKindstrom/Indentation_Discrimination
bdb68c82a36aae7f00acbf071fdd8e68bc309874
[ "MIT" ]
null
null
null
pyximc.py
EmmaKindstrom/Indentation_Discrimination
bdb68c82a36aae7f00acbf071fdd8e68bc309874
[ "MIT" ]
null
null
null
pyximc.py
EmmaKindstrom/Indentation_Discrimination
bdb68c82a36aae7f00acbf071fdd8e68bc309874
[ "MIT" ]
1
2022-02-14T10:52:31.000Z
2022-02-14T10:52:31.000Z
from ctypes import * import os import platform import sys # Load library # use cdecl on unix and stdcall on windows def ximc_shared_lib(): if platform.system() == "Linux": return CDLL("libximc.so") elif platform.system() == "FreeBSD": return CDLL("libximc.so") elif platform.system() == "Da...
23.462983
65
0.646605
20,043
0.943911
0
0
0
0
0
0
4,189
0.197278
2ebd8e420a76964bfe5a3a13462a439277b542dc
4,787
py
Python
cgi-bin/report.py
alexander1389/IMS.WebAPI
cfc8c6c899655c337973f9a32a620e9cd6af34b9
[ "MIT" ]
null
null
null
cgi-bin/report.py
alexander1389/IMS.WebAPI
cfc8c6c899655c337973f9a32a620e9cd6af34b9
[ "MIT" ]
null
null
null
cgi-bin/report.py
alexander1389/IMS.WebAPI
cfc8c6c899655c337973f9a32a620e9cd6af34b9
[ "MIT" ]
null
null
null
import sys import os import time from datetime import datetime from os.path import isfile, join, splitext, getsize, basename from shutil import copyfileobj from zipfile import ZipFile from bad_request import bad_request from utils import validate_dt DEFAULT_DAT = 'last' DEFAULT_EXT = 'xml' def report(**kwargs): ...
27.354286
79
0.62628
0
0
0
0
0
0
0
0
2,084
0.435346
2ec079ba38dcec7f18ce2e34d38c3161e2e10e94
16,428
py
Python
websaver/parsed_data/views.py
aiirohituzi/myWebCrawler
67060f724de1142b7d7d6f6fb981d3c1e925d9b0
[ "MIT" ]
2
2017-08-21T14:38:22.000Z
2017-08-22T01:35:36.000Z
websaver/parsed_data/views.py
aiirohituzi/myWebCrawler
67060f724de1142b7d7d6f6fb981d3c1e925d9b0
[ "MIT" ]
2
2017-09-05T09:54:26.000Z
2017-12-03T13:06:02.000Z
websaver/parsed_data/views.py
aiirohituzi/myWebCrawler
67060f724de1142b7d7d6f6fb981d3c1e925d9b0
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from parsed_data.models import RatingData import json import datetime import config import operator # Create your views here. def getRating(request): data = [] season = request.GET.get('season', False) if season: for r in Ra...
32.023392
97
0.499696
0
0
0
0
0
0
0
0
9,545
0.58102
2ec18eb4c9d609c45f211bbba5ede5409418c196
173
py
Python
crawl_cvs/handlers/my_func.py
MacHu-GWU/crawl_cvs-project
1cf63254ea1d7c8026a9d0e0543aaa2d7b7f4918
[ "MIT" ]
1
2020-06-19T09:45:20.000Z
2020-06-19T09:45:20.000Z
crawl_cvs/handlers/my_func.py
MacHu-GWU/crawl_cvs-project
1cf63254ea1d7c8026a9d0e0543aaa2d7b7f4918
[ "MIT" ]
1
2019-12-27T18:41:21.000Z
2019-12-27T18:41:21.000Z
crawl_cvs/handlers/my_func.py
MacHu-GWU/crawl_cvs-project
1cf63254ea1d7c8026a9d0e0543aaa2d7b7f4918
[ "MIT" ]
1
2018-08-22T01:27:32.000Z
2018-08-22T01:27:32.000Z
# -*- coding: utf-8 -*- def handler(event, context): if event.get("name"): return "Hello {}!".format(event.get("name")) else: return "Hello World!"
21.625
52
0.549133
0
0
0
0
0
0
0
0
60
0.346821
2ec221502b1e647f94c1e89ca9e353cdcc04428f
507
py
Python
Python/CeV/Exercicios/ex99.py
WerickL/Learning
5a9a488f0422454e612439b89093d5bc11242e65
[ "MIT" ]
null
null
null
Python/CeV/Exercicios/ex99.py
WerickL/Learning
5a9a488f0422454e612439b89093d5bc11242e65
[ "MIT" ]
null
null
null
Python/CeV/Exercicios/ex99.py
WerickL/Learning
5a9a488f0422454e612439b89093d5bc11242e65
[ "MIT" ]
null
null
null
def maior(*valores): if len(valores) >= 1: maiorv = valores[0] print(f'Analisando os valores...') for c in valores: print(c, end=' ') if c > maiorv: maiorv = c print() print(f'Foram informados {len(valores)} valores ao todo.') p...
23.045455
66
0.512821
0
0
0
0
0
0
0
0
147
0.28937