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
91c545eedebfe63072291f5498dba2aca85beda1
8,738
py
Python
basic_code/networks.py
J-asy/Emotion-FAN
30c1e24a31b2a05c0810a17eb533096a7baaeeef
[ "MIT" ]
275
2019-09-11T10:22:06.000Z
2022-03-29T07:14:31.000Z
basic_code/networks.py
J-asy/Emotion-FAN
30c1e24a31b2a05c0810a17eb533096a7baaeeef
[ "MIT" ]
34
2019-09-11T11:32:32.000Z
2022-03-18T09:32:42.000Z
basic_code/networks.py
J-asy/Emotion-FAN
30c1e24a31b2a05c0810a17eb533096a7baaeeef
[ "MIT" ]
69
2019-09-18T19:00:17.000Z
2022-03-08T11:43:49.000Z
import torch.nn as nn import math import torch.utils.model_zoo as model_zoo import torch.nn.functional as F import torch import numpy as np import cv2 import pdb def sigmoid(x): return 1 / (1 + math.exp(-x)) def norm_angle(angle): norm_angle = sigmoid(10 * (abs(angle) / 0.7853975 - 1)) return norm_angle ...
34.674603
120
0.54509
7,958
0.910735
0
0
0
0
0
0
758
0.086748
91c59190736d04c98947f42fd90af017204111ac
505
py
Python
ndscheduler/server/handlers/index.py
symphonyrm/ndscheduler
e9a56ef345b25916a2b53d1ea3349efb532d63ce
[ "BSD-2-Clause" ]
null
null
null
ndscheduler/server/handlers/index.py
symphonyrm/ndscheduler
e9a56ef345b25916a2b53d1ea3349efb532d63ce
[ "BSD-2-Clause" ]
null
null
null
ndscheduler/server/handlers/index.py
symphonyrm/ndscheduler
e9a56ef345b25916a2b53d1ea3349efb532d63ce
[ "BSD-2-Clause" ]
null
null
null
"""Serves the single page app web ui.""" import json import tornado.gen from ndscheduler import settings from ndscheduler import utils from ndscheduler.server.handlers import base class Handler(base.BaseHandler): """Index page request handler.""" @tornado.gen.coroutine def get(self): """Serve u...
25.25
82
0.732673
320
0.633663
0
0
244
0.483168
0
0
132
0.261386
91c6b0a778c821558e257de0d52e71c5f953c2bf
801
py
Python
Scripts/xbbtools/xbb_io.py
eoc21/biopython
c0f8db8f55a506837c320459957a0ce99b0618b6
[ "PostgreSQL" ]
3
2017-10-23T21:53:57.000Z
2019-09-23T05:14:12.000Z
Scripts/xbbtools/xbb_io.py
eoc21/biopython
c0f8db8f55a506837c320459957a0ce99b0618b6
[ "PostgreSQL" ]
null
null
null
Scripts/xbbtools/xbb_io.py
eoc21/biopython
c0f8db8f55a506837c320459957a0ce99b0618b6
[ "PostgreSQL" ]
6
2020-02-26T16:34:20.000Z
2020-03-04T15:34:00.000Z
#!/usr/bin/env python # Created: Wed Jun 21 13:46:35 2000 # Last changed: Time-stamp: <00/12/02 14:18:23 thomas> # Thomas.Sicheritz@molbio.uu.se, http://evolution.bmc.uu.se/~thomas # File: xbb_io.py import os, sys # os.system, sys.argv sys.path.insert(0, '.') sys.path.insert(0, os.path.expanduser('~thomas/cbs/python/...
23.558824
81
0.604245
391
0.48814
0
0
0
0
0
0
250
0.31211
91c7653e4b544fa3638814ac8e321e91f01ca6d4
288
py
Python
HW6/Andrii_Haponov/cw_4.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW6/Andrii_Haponov/cw_4.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW6/Andrii_Haponov/cw_4.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
6
2022-02-22T22:30:49.000Z
2022-03-28T12:51:19.000Z
# Convert a Number to a String! # We need a function that can transform a number into a string. # What ways of achieving this do you know? def number_to_string(num: int) -> str: str_num = str(num) return str_num print(number_to_string(123)) print(type(number_to_string(123)))
24
63
0.729167
0
0
0
0
0
0
0
0
136
0.472222
91c7cf66ad6751a13ba5162d5a7e62b526efecd6
2,693
py
Python
project/scripts/clausecat/evaluate_clausecat.py
explosion/healthsea
4481488ed9fc85b89844ee872d0a8412a33f0b15
[ "MIT" ]
60
2021-12-15T17:14:37.000Z
2022-03-26T18:25:15.000Z
project/scripts/clausecat/evaluate_clausecat.py
zhinoos-adibi/healthsea
4481488ed9fc85b89844ee872d0a8412a33f0b15
[ "MIT" ]
3
2021-12-16T19:50:15.000Z
2022-03-28T06:10:48.000Z
project/scripts/clausecat/evaluate_clausecat.py
zhinoos-adibi/healthsea
4481488ed9fc85b89844ee872d0a8412a33f0b15
[ "MIT" ]
9
2021-12-15T21:00:05.000Z
2022-03-17T09:20:51.000Z
import spacy from spacy.scorer import PRFScore import typer from pathlib import Path from wasabi import Printer, table import operator import benepar import clausecat_component import clausecat_model import clausecat_reader import clause_segmentation import clause_aggregation msg = Printer() def main(model_path: Pa...
26.93
88
0.580394
0
0
0
0
0
0
0
0
258
0.095804
91c7ef0594439547e88e45169d2cad470d31a591
130
py
Python
utils/test.py
david-waugh/network-automation
c85ab092cd9b76753c4d35f113126cfb663c1933
[ "MIT" ]
null
null
null
utils/test.py
david-waugh/network-automation
c85ab092cd9b76753c4d35f113126cfb663c1933
[ "MIT" ]
null
null
null
utils/test.py
david-waugh/network-automation
c85ab092cd9b76753c4d35f113126cfb663c1933
[ "MIT" ]
null
null
null
import pathlib print(pathlib.Path(__file__).parent.resolve()) while True: next_cmd = input("> ") print(eval(next_cmd))
14.444444
46
0.684615
0
0
0
0
0
0
0
0
4
0.030769
91c92b40c4f1e26399a0ff522ec30f406f0ff98d
934
py
Python
nlp_annotator_api/server/app.py
IBM/deepsearch-nlp-annotator-api-example
76c2c8fd83c1e6d51c51c7b581a8c3f273b23c40
[ "Apache-2.0" ]
3
2022-01-04T12:15:22.000Z
2022-03-25T21:19:20.000Z
nlp_annotator_api/server/app.py
IBM/deepsearch-nlp-annotator-api-example
76c2c8fd83c1e6d51c51c7b581a8c3f273b23c40
[ "Apache-2.0" ]
null
null
null
nlp_annotator_api/server/app.py
IBM/deepsearch-nlp-annotator-api-example
76c2c8fd83c1e6d51c51c7b581a8c3f273b23c40
[ "Apache-2.0" ]
5
2021-09-27T08:26:09.000Z
2022-03-10T11:41:35.000Z
import logging import os import aiohttp.web from connexion import AioHttpApp from nlp_annotator_api.config.config import conf from nlp_annotator_api.config.logging import setup_logging from nlp_annotator_api.server.middleware.statsd_middleware import StatsdMiddleware from nlp_annotator_api.server.signals.statsd_clien...
26.685714
86
0.799786
0
0
0
0
0
0
0
0
83
0.088865
91c97df0fae07bca6b5ed203a6e4102faddf3f12
4,534
py
Python
keras_cv_attention_models/resnest/resnest.py
dcleres/keras_cv_attention_models
264876673e369f23eff49b3b589b72f908a9625b
[ "MIT" ]
140
2021-08-04T06:51:41.000Z
2022-03-30T08:08:32.000Z
keras_cv_attention_models/resnest/resnest.py
dcleres/keras_cv_attention_models
264876673e369f23eff49b3b589b72f908a9625b
[ "MIT" ]
12
2021-09-29T00:43:58.000Z
2022-03-28T07:50:35.000Z
keras_cv_attention_models/resnest/resnest.py
dcleres/keras_cv_attention_models
264876673e369f23eff49b3b589b72f908a9625b
[ "MIT" ]
20
2021-09-28T20:07:35.000Z
2022-03-31T14:06:40.000Z
import tensorflow as tf from tensorflow import keras from tensorflow.keras import backend as K from keras_cv_attention_models.aotnet import AotNet from keras_cv_attention_models.download_and_load import reload_model_weights from keras_cv_attention_models.attention_layers import batchnorm_with_activation, conv2d_no_bias...
50.377778
155
0.696074
0
0
0
0
0
0
0
0
718
0.158359
91c9ae32ffd6100ceb2a8fceee2c2c30ae4e7dc4
3,518
py
Python
dataactcore/migrations/versions/8692ab1298e1_replace_filerequest_with_filegeneration.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
1
2019-06-22T21:53:16.000Z
2019-06-22T21:53:16.000Z
dataactcore/migrations/versions/8692ab1298e1_replace_filerequest_with_filegeneration.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
3
2021-08-22T11:47:45.000Z
2022-03-29T22:06:49.000Z
dataactcore/migrations/versions/8692ab1298e1_replace_filerequest_with_filegeneration.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
1
2020-07-17T23:50:56.000Z
2020-07-17T23:50:56.000Z
"""replace FileRequest with FileGeneration Revision ID: 8692ab1298e1 Revises: 4bbc47f2b48d Create Date: 2018-10-24 14:54:39.278159 """ # revision identifiers, used by Alembic. revision = '8692ab1298e1' down_revision = '4bbc47f2b48d' branch_labels = None depends_on = None from alembic import op import sqlalchemy as ...
45.102564
158
0.726549
0
0
0
0
0
0
0
0
1,708
0.485503
91cb094ac7602563246a111f9c1326b917365ed1
10,652
py
Python
cluster.py
Birfy/Endlinking
cc87a5528498e1733111d302437aeb1142b0a47f
[ "MIT" ]
1
2020-02-20T03:46:10.000Z
2020-02-20T03:46:10.000Z
cluster.py
Birfy/Endlinking
cc87a5528498e1733111d302437aeb1142b0a47f
[ "MIT" ]
null
null
null
cluster.py
Birfy/Endlinking
cc87a5528498e1733111d302437aeb1142b0a47f
[ "MIT" ]
null
null
null
import numpy as np import random import sys chainlength = int(sys.argv[1]) dfname = sys.argv[2] outfl = 'result.data' cluster_size = int(sys.argv[3]) def readsize(dfname): with open(dfname, 'r') as df: lines = df.readlines() for line in lines: content = line.split() if content and cont...
36.986111
135
0.557548
0
0
0
0
0
0
0
0
3,334
0.312993
91cb09a3e92988e65a39aed7bb0bc23d1f6a9538
20,537
py
Python
util/hierarchical_primitive/cube_inclusion.py
isunchy/cuboid_abstraction
afda6ca8516c2f5e5e7292b3b22a059a4f6c84ec
[ "MIT" ]
43
2019-09-20T07:45:08.000Z
2022-03-23T04:07:21.000Z
util/hierarchical_primitive/cube_inclusion.py
SilenKZYoung/cuboid_abstraction
afda6ca8516c2f5e5e7292b3b22a059a4f6c84ec
[ "MIT" ]
4
2019-11-25T00:57:10.000Z
2021-09-02T10:59:05.000Z
util/hierarchical_primitive/cube_inclusion.py
SilenKZYoung/cuboid_abstraction
afda6ca8516c2f5e5e7292b3b22a059a4f6c84ec
[ "MIT" ]
10
2019-09-10T02:19:47.000Z
2021-06-16T05:23:43.000Z
import numpy as np import quaternion sample_points = np.array([[-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,...
315.953846
5,958
0.466378
0
0
0
0
0
0
0
0
160
0.007791
91cc3e617eabbbaa426a11dc2dc6c376ad5cab95
740
py
Python
ituro/accounts/tests.py
kayduemre/ituro
eb5bb0655c2d85eed212d28c1d154006c57a4f03
[ "MIT" ]
9
2015-03-18T01:59:24.000Z
2022-03-09T06:36:21.000Z
ituro/accounts/tests.py
kayduemre/ituro
eb5bb0655c2d85eed212d28c1d154006c57a4f03
[ "MIT" ]
29
2015-03-18T01:59:49.000Z
2021-06-10T20:39:03.000Z
ituro/accounts/tests.py
kayduemre/ituro
eb5bb0655c2d85eed212d28c1d154006c57a4f03
[ "MIT" ]
10
2016-01-31T05:44:46.000Z
2019-10-15T06:12:27.000Z
from django.test import TestCase from django.utils import timezone from accounts.models import CustomUser, CustomUserManager class UserCreateTestCase(TestCase): def test_create_user_correctly(self): "Creating users correctly" new_user = CustomUser.objects.create( email="participant@gm...
33.636364
71
0.671622
612
0.827027
0
0
0
0
0
0
146
0.197297
91ce005123b48bec43dd6a96411c6f2b6ba102be
2,284
py
Python
continuum/datasets/dtd.py
oleksost/continuum
682d66540bfbfa171ac73281ed2989f9338e88bf
[ "MIT" ]
282
2020-05-09T21:35:22.000Z
2022-03-20T11:29:41.000Z
continuum/datasets/dtd.py
oleksost/continuum
682d66540bfbfa171ac73281ed2989f9338e88bf
[ "MIT" ]
180
2020-05-03T09:31:48.000Z
2022-03-30T12:12:48.000Z
continuum/datasets/dtd.py
oleksost/continuum
682d66540bfbfa171ac73281ed2989f9338e88bf
[ "MIT" ]
34
2020-06-13T14:09:29.000Z
2022-03-14T14:05:07.000Z
import os from typing import List import numpy as np from torchvision import datasets as torchdata from continuum.datasets import ImageFolderDataset from continuum import download from continuum.tasks import TaskType class DTD(ImageFolderDataset): """Describable Textures Dataset (DTD) Reference: * ...
35.6875
108
0.595009
2,061
0.902364
0
0
0
0
0
0
550
0.240806
91ce047cf63bd3235780b724cb14faa1d2a5cf51
1,732
py
Python
src/tests/testdata.py
Doometnick/MaxiMin-2048
f1d795ec07fffe1aa239c105cf522d2c3bc9b011
[ "MIT" ]
null
null
null
src/tests/testdata.py
Doometnick/MaxiMin-2048
f1d795ec07fffe1aa239c105cf522d2c3bc9b011
[ "MIT" ]
null
null
null
src/tests/testdata.py
Doometnick/MaxiMin-2048
f1d795ec07fffe1aa239c105cf522d2c3bc9b011
[ "MIT" ]
null
null
null
from board import Direction # Tuples of input, action, expected output. moving_tests = [ ( [[0,0,0,0], [4,0,0,0], [0,0,0,0], [4,0,2,0]], Direction.UP, [[8,0,2,0], [0,0,0,0], [0,0,0,0], [0,0,0,0]] ), ( [[0,0,0,0], ...
18.623656
43
0.265012
0
0
0
0
0
0
0
0
43
0.024827
91ce29247f546090ea7272eb8cba1493be43a9a9
449
py
Python
test/utils/test_value.py
HansBug/pji
449d171cea0c03f4c302da886988f36f70e34ee6
[ "Apache-2.0" ]
null
null
null
test/utils/test_value.py
HansBug/pji
449d171cea0c03f4c302da886988f36f70e34ee6
[ "Apache-2.0" ]
null
null
null
test/utils/test_value.py
HansBug/pji
449d171cea0c03f4c302da886988f36f70e34ee6
[ "Apache-2.0" ]
null
null
null
import pytest from pji.utils import ValueProxy @pytest.mark.unittest class TestUtilsValue: def test_value_proxy_init(self): value = ValueProxy() assert value.value is None value = ValueProxy(233) assert value.value == 233 def test_value_proxy_set(self): value = Value...
20.409091
36
0.63029
376
0.837416
0
0
398
0.886414
0
0
0
0
91d00c668e9c3c29e1e078f088b136cfebc103ca
1,727
py
Python
intro.py
Ebenazer-2002/library-management
8c1ededc7167d2221a3947abfeec4773da39dca9
[ "Apache-2.0" ]
null
null
null
intro.py
Ebenazer-2002/library-management
8c1ededc7167d2221a3947abfeec4773da39dca9
[ "Apache-2.0" ]
null
null
null
intro.py
Ebenazer-2002/library-management
8c1ededc7167d2221a3947abfeec4773da39dca9
[ "Apache-2.0" ]
1
2021-09-22T22:08:15.000Z
2021-09-22T22:08:15.000Z
#Intro Page from tkinter import * from PIL import Image, ImageTk import cv2 #----------------------------Start Function--------------------------# def start(event): label1.destroy() import log win.destroy() log.main() #------------------------Main Window---------------------------------#li def main_...
28.311475
72
0.466126
0
0
0
0
0
0
0
0
565
0.327157
91d02ed15b88e5d9e5da4c1c6b0a923344ec181d
16,740
py
Python
notebooks/week4_help.py
hugh9876/04-multivariate-analysis
0541962842df8844aa323c368f8a4e44999c2d7f
[ "MIT" ]
null
null
null
notebooks/week4_help.py
hugh9876/04-multivariate-analysis
0541962842df8844aa323c368f8a4e44999c2d7f
[ "MIT" ]
null
null
null
notebooks/week4_help.py
hugh9876/04-multivariate-analysis
0541962842df8844aa323c368f8a4e44999c2d7f
[ "MIT" ]
null
null
null
""" This module provides helper functions to support exercises during AM1 with outliers, robust regression and template regression in the CORE data analytics workshop series, week 4. """ import numpy as np import pandas as pd import math from collections import namedtuple def recovery_sulphur_dataframe_wit...
41.435644
97
0.683871
1,968
0.117563
0
0
891
0.053226
0
0
8,385
0.500896
91d0d1d94cdf45c4bcbd44fd68f0bba0ecae92c7
2,671
py
Python
tests/actions/test_mutable_token_action.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
32
2022-01-12T16:52:28.000Z
2022-03-24T18:05:47.000Z
tests/actions/test_mutable_token_action.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
3
2022-01-12T17:01:55.000Z
2022-02-12T15:14:16.000Z
tests/actions/test_mutable_token_action.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
1
2022-01-21T04:28:07.000Z
2022-01-21T04:28:07.000Z
from radixlib.actions import CreateTokenDefinition from typing import Dict, Any import unittest class TestMutableTokenAction(unittest.TestCase): """ Unit tests for the CreateTokenDefinition action of mutable tokens """ ActionDict: Dict[str, Any] = { "token_properties": { "name": "MutableTe...
47.696429
110
0.675028
2,574
0.963684
0
0
0
0
0
0
1,110
0.415575
91d124efa1b2bf7e4e72928accf387408c43adc6
113
py
Python
src/tests/testModules/loadCfg_typeCasting/allowsCastFailKeeping/primativeTypes.py
Trimatix/carica
074be16bdf50541eb3ba92ca42d0ad901cc51bd0
[ "Apache-2.0" ]
5
2021-09-08T07:29:23.000Z
2021-11-24T00:18:22.000Z
src/tests/testModules/loadCfg_typeCasting/allowsCastFailKeeping/primativeTypes.py
Trimatix/Carica
074be16bdf50541eb3ba92ca42d0ad901cc51bd0
[ "Apache-2.0" ]
42
2021-09-08T07:31:25.000Z
2022-01-16T17:39:34.000Z
src/tests/testModules/loadCfg_typeCasting/allowsCastFailKeeping/primativeTypes.py
Trimatix/carica
074be16bdf50541eb3ba92ca42d0ad901cc51bd0
[ "Apache-2.0" ]
null
null
null
floatVar = 1.0 listVar = [3, "hello"] dictVar = { "myField": "value" } aotVar = [dictVar, dictVar] intVar = 1
16.142857
27
0.610619
0
0
0
0
0
0
0
0
23
0.20354
91d348a1fe2260f1d59725d0f07d7baf69518dae
22
py
Python
quacc/recipes/xtb/__init__.py
arosen93/HT-ASE
a76542e7a2bc5bf6e7382d8f1387374eb2abc713
[ "BSD-3-Clause-LBNL" ]
9
2022-02-08T08:31:30.000Z
2022-03-30T21:37:35.000Z
quacc/recipes/xtb/__init__.py
arosen93/HT-ASE
a76542e7a2bc5bf6e7382d8f1387374eb2abc713
[ "BSD-3-Clause-LBNL" ]
5
2022-02-02T21:47:59.000Z
2022-03-18T21:28:52.000Z
quacc/recipes/xtb/__init__.py
arosen93/HT-ASE
a76542e7a2bc5bf6e7382d8f1387374eb2abc713
[ "BSD-3-Clause-LBNL" ]
3
2022-02-23T12:00:57.000Z
2022-03-24T23:54:22.000Z
"""Recipes for xTB"""
11
21
0.590909
0
0
0
0
0
0
0
0
21
0.954545
91d380ce2b1e14c5b063e9056626bb2c1ea92f55
6,869
py
Python
src/python/pants/backend/native/subsystems/xcode_cli_tools.py
StephanErb/pants
a368267b6b4cf50138ba567f582409ed31bf5db9
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/native/subsystems/xcode_cli_tools.py
StephanErb/pants
a368267b6b4cf50138ba567f582409ed31bf5db9
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/native/subsystems/xcode_cli_tools.py
StephanErb/pants
a368267b6b4cf50138ba567f582409ed31bf5db9
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import os from pants.backend.native.config.environment import Assembler, CCompiler, CppC...
34.345
105
0.7084
5,587
0.813364
0
0
4,198
0.611152
0
0
2,540
0.369777
91d43878e8db19b2ac8a4228dcc70b222e3033cf
11,998
py
Python
improver_tests/regrid/test_RegridWithLandSeaMask.py
yzhaobom/improver
47f9e103c63f890bfbb24d5e08d9d01d041514f7
[ "BSD-3-Clause" ]
77
2017-04-26T07:47:40.000Z
2022-03-31T09:40:49.000Z
improver_tests/regrid/test_RegridWithLandSeaMask.py
yzhaobom/improver
47f9e103c63f890bfbb24d5e08d9d01d041514f7
[ "BSD-3-Clause" ]
1,440
2017-03-29T10:04:15.000Z
2022-03-28T10:11:29.000Z
improver_tests/regrid/test_RegridWithLandSeaMask.py
MoseleyS/improver
ca028e3a1c842e3ff00b188c8ea6eaedd0a07149
[ "BSD-3-Clause" ]
72
2017-03-17T16:53:45.000Z
2022-02-16T09:41:37.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
35.602374
86
0.596516
0
0
0
0
0
0
0
0
3,196
0.266378
91d4aad729e6a3ae80ef7ec7692d7daf662bb479
1,127
py
Python
setup.py
garnaat/details
07f2fc7f27b29a6ddcda918abf6ae0882450319e
[ "Apache-2.0" ]
27
2015-03-01T10:54:32.000Z
2021-09-08T14:52:30.000Z
setup.py
garnaat/details
07f2fc7f27b29a6ddcda918abf6ae0882450319e
[ "Apache-2.0" ]
3
2015-01-29T08:26:13.000Z
2017-02-14T09:35:06.000Z
setup.py
garnaat/details
07f2fc7f27b29a6ddcda918abf6ae0882450319e
[ "Apache-2.0" ]
7
2015-03-26T13:53:34.000Z
2017-05-23T20:58:28.000Z
#!/usr/bin/env python from setuptools import setup, find_packages import os requires = [ ] setup( name='details', version=open(os.path.join('details', '_version')).read(), description='Tools for processing AWS detailed billing reports', long_description=open('README.md').read(), author='Mitch G...
30.459459
68
0.632653
0
0
0
0
0
0
0
0
639
0.566992
91d5346576f73b2550ed5c3a87e027cb58449870
4,686
py
Python
beam_telescope_analysis/testing/test_kalman.py
YannickDieter/beam_telescope_analysis
0c678ad991a9ef42178b2eeaf58059d387362f2a
[ "MIT" ]
3
2019-03-14T09:28:43.000Z
2020-02-24T13:04:12.000Z
beam_telescope_analysis/testing/test_kalman.py
YannickDieter/beam_telescope_analysis
0c678ad991a9ef42178b2eeaf58059d387362f2a
[ "MIT" ]
14
2019-05-09T10:01:06.000Z
2021-05-20T12:52:46.000Z
beam_telescope_analysis/testing/test_kalman.py
YannickDieter/beam_telescope_analysis
0c678ad991a9ef42178b2eeaf58059d387362f2a
[ "MIT" ]
1
2019-09-07T12:06:35.000Z
2019-09-07T12:06:35.000Z
''' Script to check the correctness of the analysis. The analysis is done on raw data and all results are compared to a recorded analysis. ''' import os import unittest import numpy as np from beam_telescope_analysis import track_analysis from beam_telescope_analysis.tools import test_tools class TestTrackAnalysis...
62.48
153
0.588135
4,084
0.871532
0
0
544
0.11609
0
0
843
0.179898
91d54e85fa9e683a691056ba3de4c8a49958c847
3,723
py
Python
test/test_workflow.py
asnramos/asv
8a0979b532d06c7c352826e2acf0dd872922260e
[ "BSD-3-Clause" ]
null
null
null
test/test_workflow.py
asnramos/asv
8a0979b532d06c7c352826e2acf0dd872922260e
[ "BSD-3-Clause" ]
null
null
null
test/test_workflow.py
asnramos/asv
8a0979b532d06c7c352826e2acf0dd872922260e
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import glob import os import sys import json from os.path import join, isfile import pytest from asv import util from . import tools def test_run_publish(capfd, basic_conf_2): tmpdir, local, conf, machine_file = basic_conf_2 tmpdir = util.lon...
39.189474
85
0.552243
0
0
0
0
0
0
0
0
1,215
0.32635
91d673a77f43b00da4523b7edc231f25e64c3f72
5,750
py
Python
trainer.py
Metro1998/P-DQN
6ab2ac6991d2685f10887c16f854ebba6144b306
[ "MIT" ]
5
2021-12-13T15:25:07.000Z
2022-03-29T12:42:37.000Z
trainer.py
Metro1998/P-DQN
6ab2ac6991d2685f10887c16f854ebba6144b306
[ "MIT" ]
null
null
null
trainer.py
Metro1998/P-DQN
6ab2ac6991d2685f10887c16f854ebba6144b306
[ "MIT" ]
null
null
null
# @author Metro # @time 2021/11/24 import os.path import gym from agents.pdqn import P_DQN from utilities.memory import ReplayBuffer from utilities.utilities import * from utilities.route_generator import generate_routefile class Train_and_Evaluate(object): def __init__(self, config): # Environment ...
42.592593
113
0.598609
5,522
0.960348
0
0
0
0
0
0
397
0.069043
91d7cad5b4e7e6fe780b392c22b198941b8e6380
10,434
py
Python
server/splunkdj/views.py
splunk/splunk-webframework
a4179558616f5f4fcbfa2b54e9179f30e6395264
[ "Apache-2.0" ]
31
2015-01-20T12:49:17.000Z
2022-02-21T05:21:44.000Z
server/splunkdj/views.py
splunk/splunk-webframework
a4179558616f5f4fcbfa2b54e9179f30e6395264
[ "Apache-2.0" ]
2
2015-07-08T19:40:41.000Z
2018-04-26T21:34:35.000Z
server/splunkdj/views.py
splunk/splunk-webframework
a4179558616f5f4fcbfa2b54e9179f30e6395264
[ "Apache-2.0" ]
8
2015-02-26T13:19:45.000Z
2022-03-27T08:34:20.000Z
import sys import pprint import json import datetime import uuid import urllib import types import traceback from django.core.urlresolvers import reverse, resolve from django.http import HttpResponseRedirect, Http404, HttpResponseServerError, HttpResponseNotFound from django.conf import settings from django.contrib.aut...
37.804348
119
0.637531
0
0
0
0
3,661
0.350872
0
0
2,804
0.268737
91d867e70ec797fb77cf3fedd501ea6a1aca218d
8,301
py
Python
wbia/plottool/interact_keypoints.py
mmulich/wildbook-ia
81b405e2bfaa3f6c30a546fb6dc6e6488e9b2663
[ "Apache-2.0" ]
null
null
null
wbia/plottool/interact_keypoints.py
mmulich/wildbook-ia
81b405e2bfaa3f6c30a546fb6dc6e6488e9b2663
[ "Apache-2.0" ]
null
null
null
wbia/plottool/interact_keypoints.py
mmulich/wildbook-ia
81b405e2bfaa3f6c30a546fb6dc6e6488e9b2663
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import logging import utool as ut import six from . import draw_func2 as df2 from wbia.plottool import plot_helpers as ph from wbia.plottool import interact_helpers as ih from wbia.plottool.viz_featrow import draw_feat_row from wbia.plottool.viz_keypoints import show_keypoints from wbia.plottool...
39.15566
113
0.563787
3,382
0.407421
0
0
0
0
0
0
3,019
0.363691
91d921988391847f171d7f816701e122ce388582
143
py
Python
tb/storage/__init__.py
DronMDF/manabot
b412e8cb9b5247f05487bed4cbf4967f7b58327f
[ "MIT" ]
1
2017-11-29T11:51:12.000Z
2017-11-29T11:51:12.000Z
tb/storage/__init__.py
DronMDF/manabot
b412e8cb9b5247f05487bed4cbf4967f7b58327f
[ "MIT" ]
109
2017-11-28T20:51:59.000Z
2018-02-02T13:15:29.000Z
tb/storage/__init__.py
DronMDF/manabot
b412e8cb9b5247f05487bed4cbf4967f7b58327f
[ "MIT" ]
null
null
null
from .database import StDatabase from .telegram import StTelegram from .tinydb import TinyDataBase, TinySelect from .utility import StDispatch
28.6
44
0.846154
0
0
0
0
0
0
0
0
0
0
91d9d1d9ae07a637595f6f1be3521d0ea393c068
1,468
py
Python
algorithms/maths/chinese_remainder_theorem.py
hbqdev/algorithms
65cc8551d86d7e065069d165dd8bf9baf10345a0
[ "MIT" ]
22,426
2017-01-17T04:01:44.000Z
2022-03-31T12:06:16.000Z
algorithms/maths/chinese_remainder_theorem.py
Shubhanshu156/algorithms
d8f1428cee7f66376929f72c524b6e0325bf3492
[ "MIT" ]
523
2017-04-18T12:05:11.000Z
2022-03-20T11:10:41.000Z
algorithms/maths/chinese_remainder_theorem.py
AmandaStromdahl/algorithms
1652835c3aef9aa670b67a5459e51dd3a8e6a71c
[ "MIT" ]
4,900
2017-01-19T23:47:05.000Z
2022-03-31T10:00:47.000Z
from algorithms.maths.gcd import gcd from typing import List def solve_chinese_remainder(num : List[int], rem : List[int]): """ Computes the smallest x that satisfies the chinese remainder theorem for a system of equations. The system of equations has the form: x % num[0] = rem[0] x % num[1] = ...
31.234043
84
0.559264
0
0
0
0
0
0
0
0
645
0.439373
91da549f96f9ccca48e20a796a48546be83febae
206
py
Python
exercises/ja/exc_03_16_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/exc_03_16_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/exc_03_16_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("ja_core_news_sm") text = ( "チックフィレイはジョージア州カレッジパークに本社を置く、" "チキンサンドを専門とするアメリカのファストフードレストランチェーンです。" ) # トークナイズのみ行う doc = nlp(text) print([token.text for token in doc])
17.166667
42
0.73301
0
0
0
0
0
0
0
0
245
0.69209
91dad0ab0f33fc6693bf8cc4e9a065c0be985607
19,086
py
Python
apphelper/image.py
caiyueliang/chineseocr
4495598f938936c6bcb2222fa44f840a7919212c
[ "MIT" ]
null
null
null
apphelper/image.py
caiyueliang/chineseocr
4495598f938936c6bcb2222fa44f840a7919212c
[ "MIT" ]
null
null
null
apphelper/image.py
caiyueliang/chineseocr
4495598f938936c6bcb2222fa44f840a7919212c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ##图像相关函数 @author: lywen """ import sys import six import os import base64 import requests import numpy as np import cv2 from PIL import Image import traceback import uuid from glob import glob from bs4 import BeautifulSoup def sort_box_(box): x1,y1,x2,y2,x3,y3,x4,y4 = box[:8] pts =...
29.40832
113
0.515561
0
0
0
0
0
0
0
0
5,332
0.27066
91db99963a9d2cafd0fa8e863ed2ec3e7df55f3e
1,320
py
Python
opendatatools/common/ui_util.py
harveywwu/OpenData
cf421465dd9b11fdbb2fbf4d00512e3aaf09d070
[ "Apache-2.0" ]
null
null
null
opendatatools/common/ui_util.py
harveywwu/OpenData
cf421465dd9b11fdbb2fbf4d00512e3aaf09d070
[ "Apache-2.0" ]
null
null
null
opendatatools/common/ui_util.py
harveywwu/OpenData
cf421465dd9b11fdbb2fbf4d00512e3aaf09d070
[ "Apache-2.0" ]
1
2020-05-29T00:26:59.000Z
2020-05-29T00:26:59.000Z
# -*- coding: UTF-8 -*- import sys, time class ShowProcess(): """ 显示处理进度的类 调用该类相关函数即可实现处理进度的显示 """ i = 0 # 当前的处理进度 max_steps = 0 # 总共需要处理的次数 max_arrow = 50 #进度条的长度 infoDone = 'done' # 初始化函数,需要知道总共的处理次数 def __init__(self, max_steps, infoDone = 'Done'): self.max_steps = ...
26.938776
77
0.526515
1,364
0.856784
0
0
0
0
0
0
597
0.375
91dbd76ebb4a6ee074d9e41d9b7337c54be487ec
1,748
py
Python
data_structure/stack_and_queue/494. Target Sum_ Medium.py
JunzhongLin/leetcode_practice
47b2f5cc3c87de004ae21a94024e751b40b8f559
[ "MIT" ]
null
null
null
data_structure/stack_and_queue/494. Target Sum_ Medium.py
JunzhongLin/leetcode_practice
47b2f5cc3c87de004ae21a94024e751b40b8f559
[ "MIT" ]
null
null
null
data_structure/stack_and_queue/494. Target Sum_ Medium.py
JunzhongLin/leetcode_practice
47b2f5cc3c87de004ae21a94024e751b40b8f559
[ "MIT" ]
null
null
null
''' You are given an integer array nums and an integer target. You want to build an expression out of nums by adding one of the symbols '+' and '-' before each integer in nums and then concatenate all the integers. For example, if nums = [2, 1], you can add a '+' before 2 and a '-' before 1 and concatenate them to bu...
34.96
151
0.529748
1,177
0.673341
0
0
0
0
0
0
495
0.283181
91dd1a3b5de5801e9e8baf1d02a035b6853b1ad3
3,733
py
Python
fixtrack/frontend/pickable_markers.py
os-gabe/fixtrack
a0af4dfa9342acc0ba05c0249a32806c825b74b2
[ "MIT" ]
null
null
null
fixtrack/frontend/pickable_markers.py
os-gabe/fixtrack
a0af4dfa9342acc0ba05c0249a32806c825b74b2
[ "MIT" ]
null
null
null
fixtrack/frontend/pickable_markers.py
os-gabe/fixtrack
a0af4dfa9342acc0ba05c0249a32806c825b74b2
[ "MIT" ]
1
2022-03-25T04:26:36.000Z
2022-03-25T04:26:36.000Z
import numpy as np from fixtrack.frontend.pickable_base import PickableBase from vispy import scene class PickableMarkers(PickableBase): """ Markers that can highlight on hover and be selected """ class State(PickableBase.State): def __init__(self, **kwargs): super(PickableMarker...
33.936364
94
0.587731
3,628
0.971872
0
0
224
0.060005
0
0
143
0.038307
91dedad5ac38b05af586adadc029baeb5dbdb36c
2,242
py
Python
examples/blocking_subscribe.py
FFY00/jeepney
293241a54fbb73581755e97191720ed1603aed34
[ "MIT" ]
null
null
null
examples/blocking_subscribe.py
FFY00/jeepney
293241a54fbb73581755e97191720ed1603aed34
[ "MIT" ]
null
null
null
examples/blocking_subscribe.py
FFY00/jeepney
293241a54fbb73581755e97191720ed1603aed34
[ "MIT" ]
null
null
null
""" Example of subscribing to a D-Bus signal using blocking I/O. This subscribes to the signal for a desktop notification being closed. To try it, start this script, then trigger a desktop notification, and close it somehow to trigger the signal. Use Ctrl-C to stop the script. This example relies on the ``org.freedes...
34.492308
88
0.752007
0
0
0
0
0
0
0
0
1,293
0.576717
91dfcb96d3cfa72fba7a82aeea1a69a09b3627d9
126
py
Python
test.py
league3236/shholiday
54d0fcfd393d09183cd77cab697f5bc60864b314
[ "MIT" ]
null
null
null
test.py
league3236/shholiday
54d0fcfd393d09183cd77cab697f5bc60864b314
[ "MIT" ]
null
null
null
test.py
league3236/shholiday
54d0fcfd393d09183cd77cab697f5bc60864b314
[ "MIT" ]
null
null
null
from shholiday import holiday2020 as hd daytuple = (1,1) nowholiday = hd.holiday2020() print(nowholiday.is_holiday(daytuple))
25.2
39
0.793651
0
0
0
0
0
0
0
0
0
0
91e036fe4dd0d56410bf8828136484d3650838c6
740
py
Python
setup.py
dalejung/pandas-composition
e73e5295b2d2f44f09805dcf06db12108c555197
[ "MIT" ]
5
2015-04-08T20:58:25.000Z
2018-04-22T00:10:44.000Z
setup.py
dalejung/pandas-composition
e73e5295b2d2f44f09805dcf06db12108c555197
[ "MIT" ]
null
null
null
setup.py
dalejung/pandas-composition
e73e5295b2d2f44f09805dcf06db12108c555197
[ "MIT" ]
null
null
null
from distutils.core import setup DISTNAME='pandas_composition' FULLVERSION='0.1' ...
67.272727
94
0.172973
0
0
0
0
0
0
0
0
45
0.060811
91e12d660ef7f4298457f9dc8c2b1a07e4f99285
404
py
Python
blog/migrations/0005_title_null.py
encukou/Zpetnovazebnik
0d058fd67049a3d42814b04486bde93bc406fa3b
[ "MIT" ]
1
2019-12-04T10:10:53.000Z
2019-12-04T10:10:53.000Z
blog/migrations/0005_title_null.py
encukou/Zpetnovazebnik
0d058fd67049a3d42814b04486bde93bc406fa3b
[ "MIT" ]
14
2019-04-07T07:46:07.000Z
2022-03-11T23:44:31.000Z
blog/migrations/0005_title_null.py
encukou/Zpetnovazebnik
0d058fd67049a3d42814b04486bde93bc406fa3b
[ "MIT" ]
1
2019-02-16T09:25:51.000Z
2019-02-16T09:25:51.000Z
# Generated by Django 2.1.7 on 2019-02-27 14:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0004_longer_password'), ] operations = [ migrations.AlterField( model_name='session', name='title', ...
21.263158
74
0.601485
311
0.769802
0
0
0
0
0
0
91
0.225248
91e1834b8771a7ae37346ead4e29d9b3101da09b
917
py
Python
setup.py
Kuba77/Xian-DB
2f15ef1b9b7a96c21bd46e9fb8481de6feb713b7
[ "MIT" ]
1
2016-10-22T21:04:09.000Z
2016-10-22T21:04:09.000Z
setup.py
Kuba77/Xian-DB
2f15ef1b9b7a96c21bd46e9fb8481de6feb713b7
[ "MIT" ]
null
null
null
setup.py
Kuba77/Xian-DB
2f15ef1b9b7a96c21bd46e9fb8481de6feb713b7
[ "MIT" ]
null
null
null
from setuptools import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='xiandb', version='0.2.0', description='A database model for Xian', long_d...
21.325581
64
0.641221
0
0
0
0
0
0
0
0
401
0.437296
91e197a6aad024d05c47c68f4923bef335ff491f
4,993
py
Python
yolo3/focal_loss.py
ashishpatel26/tf2-yolo3
38814178643eb8e1f8b5e4fe8d448faed44ad574
[ "Apache-2.0" ]
43
2019-12-08T15:05:53.000Z
2022-03-20T13:38:07.000Z
yolo3/focal_loss.py
1911590204/tf2-yolo3
38814178643eb8e1f8b5e4fe8d448faed44ad574
[ "Apache-2.0" ]
3
2020-05-18T11:20:15.000Z
2021-02-26T01:11:04.000Z
yolo3/focal_loss.py
1911590204/tf2-yolo3
38814178643eb8e1f8b5e4fe8d448faed44ad574
[ "Apache-2.0" ]
15
2019-12-25T01:44:29.000Z
2022-01-18T08:45:49.000Z
from functools import partial import tensorflow as tf _EPSILON = tf.keras.backend.epsilon() def register_keras_custom_object(cls): tf.keras.utils.get_custom_objects()[cls.__name__] = cls return cls def binary_focal_loss(y_true, y_pred, gamma, *, pos_weight=None, from_logits=False, label_smoothing=None): ...
36.985185
106
0.616263
1,000
0.20028
0
0
1,030
0.206289
0
0
361
0.072301
91e197bc72174a007b45ebf73223d69beb79eca0
13,808
py
Python
characters/models/characters.py
Sult/evetool
155db9f3b0ecc273fe3c75daf8f9c6f37cb3e47f
[ "MIT" ]
null
null
null
characters/models/characters.py
Sult/evetool
155db9f3b0ecc273fe3c75daf8f9c6f37cb3e47f
[ "MIT" ]
null
null
null
characters/models/characters.py
Sult/evetool
155db9f3b0ecc273fe3c75daf8f9c6f37cb3e47f
[ "MIT" ]
null
null
null
import time from collections import OrderedDict from datetime import datetime, timedelta from django.db import models from django.conf import settings from django.utils.timezone import utc from .skills import Skill, SkillGroup from metrics.models import Corporation from tasks.models import EveApiCache, Task from evet...
33.596107
79
0.571915
13,426
0.972335
0
0
4,574
0.331257
0
0
1,654
0.119786
91e3f480fdcbf40fb3a62c946e3ea8b2a208638d
92
py
Python
webex_assistant_sdk/templates/mindmeld_template/{{cookiecutter.skill_name}}/{{cookiecutter.skill_name}}/__init__.py
sachanacar/webex-assistant-sdk
bb0f1ad16973cfa5784d7d887381229fab01effa
[ "Apache-2.0" ]
null
null
null
webex_assistant_sdk/templates/mindmeld_template/{{cookiecutter.skill_name}}/{{cookiecutter.skill_name}}/__init__.py
sachanacar/webex-assistant-sdk
bb0f1ad16973cfa5784d7d887381229fab01effa
[ "Apache-2.0" ]
null
null
null
webex_assistant_sdk/templates/mindmeld_template/{{cookiecutter.skill_name}}/{{cookiecutter.skill_name}}/__init__.py
sachanacar/webex-assistant-sdk
bb0f1ad16973cfa5784d7d887381229fab01effa
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from {{cookiecutter.skill_name}}.root import app __all__ = ['app']
18.4
48
0.641304
0
0
0
0
0
0
0
0
28
0.304348
91e4401665d568cd4d6102a4a69c6d2f7668744f
602
py
Python
backend/api/v1/dialogs/urls.py
donicrazy/ChatApp
ab129a9c0706bbb972cbce43283ba6e06d144635
[ "MIT" ]
null
null
null
backend/api/v1/dialogs/urls.py
donicrazy/ChatApp
ab129a9c0706bbb972cbce43283ba6e06d144635
[ "MIT" ]
7
2021-03-19T04:47:13.000Z
2022-01-13T02:02:46.000Z
backend/api/v1/dialogs/urls.py
donicrazy/ChatApp
ab129a9c0706bbb972cbce43283ba6e06d144635
[ "MIT" ]
null
null
null
from django.urls import path from backend.api.v1.dialogs.views import ( DialogListCreateView, DialogRetrieveUpdateDestroyAPIView, DialogMembershipListCreateView, DialogMessageListCreateView, DialogMessageRetrieveUpdateDestroyAPIView, ) urlpatterns = [ path('', DialogListCreateView.as_view()), ...
35.411765
83
0.770764
0
0
0
0
0
0
0
0
55
0.091362
91e4a887944adf9f3a04214dd378ac72dc05e86a
2,100
py
Python
biomaj2galaxy/commands/init.py
genouest/biomaj2galaxy
8c76f3cc96902d9401a03e7b1a6cd8f4a7ba17bd
[ "MIT" ]
1
2015-05-11T00:08:24.000Z
2015-05-11T00:08:24.000Z
biomaj2galaxy/commands/init.py
genouest/biomaj2galaxy
8c76f3cc96902d9401a03e7b1a6cd8f4a7ba17bd
[ "MIT" ]
5
2019-04-15T16:09:50.000Z
2020-11-24T10:35:21.000Z
biomaj2galaxy/commands/init.py
genouest/biomaj2galaxy
8c76f3cc96902d9401a03e7b1a6cd8f4a7ba17bd
[ "MIT" ]
3
2015-06-14T08:33:49.000Z
2020-10-16T09:07:21.000Z
# coding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from bioblend import galaxy from biomaj2galaxy import config, pass_context from biomaj2galaxy.io import info, warn import click CONFIG_TEMPLATE = """## BioMAJ2Galaxy: Global Confi...
29.166667
121
0.65381
0
0
0
0
1,445
0.688095
0
0
852
0.405714
91e4f118680c4b4128c740a76beaad48599ab626
848
py
Python
datamart/tests/test_Dimension.py
josemrsantos/zoopla_datamart
f3a3af8071199deeb712d1814aecb6cc3cd88d57
[ "MIT" ]
1
2016-02-01T20:27:25.000Z
2016-02-01T20:27:25.000Z
datamart/tests/test_Dimension.py
josemrsantos/zoopla_datamart
f3a3af8071199deeb712d1814aecb6cc3cd88d57
[ "MIT" ]
null
null
null
datamart/tests/test_Dimension.py
josemrsantos/zoopla_datamart
f3a3af8071199deeb712d1814aecb6cc3cd88d57
[ "MIT" ]
null
null
null
from ..datamart import * def test_create_dimension(): dimension = Dimension("test_dimension") assert dimension.is_degenerate == False def test_create_dimension_insert_2_identical_lines(): ''' with 2 identical lines, only one gets stored ''' dimension = Dimension("test_dimension") dimension.add...
33.92
69
0.732311
0
0
0
0
0
0
0
0
206
0.242925
91e5db16db7c305afa819a65e2ba7480fc9d4276
4,700
py
Python
preprocessing/convert_formats/msmarco_doc_create_train_input.py
PranjaliJain/matchmaker
b7e22eb8b70cccabf0729076df7cbab3f4ba4a1f
[ "Apache-2.0" ]
97
2021-07-11T14:34:40.000Z
2022-03-31T14:17:25.000Z
preprocessing/convert_formats/msmarco_doc_create_train_input.py
PranjaliJain/matchmaker
b7e22eb8b70cccabf0729076df7cbab3f4ba4a1f
[ "Apache-2.0" ]
12
2021-07-11T13:03:23.000Z
2022-03-02T16:07:11.000Z
preprocessing/convert_formats/msmarco_doc_create_train_input.py
PranjaliJain/matchmaker
b7e22eb8b70cccabf0729076df7cbab3f4ba4a1f
[ "Apache-2.0" ]
16
2019-12-23T01:22:35.000Z
2021-06-23T12:54:36.000Z
# # msmarco doc: create the train.tsv triples # ------------------------------- import random random.seed(42) import argparse import os import sys from tqdm import tqdm sys.path.append(os.getcwd()) from matchmaker.evaluation.msmarco_eval import * from collections import defaultdict from matchmaker.dataloaders.blin...
33.098592
154
0.636809
0
0
0
0
0
0
0
0
1,819
0.387021
91e6679035e0b02c68e5fa8e7ebbce0f267caee0
13,748
py
Python
tests/communities/test_reply.py
powerblossom/workcloud
fd943220366ebeadfa90c59fc395f84a734b5686
[ "MIT" ]
1
2019-10-18T05:57:13.000Z
2019-10-18T05:57:13.000Z
tests/communities/test_reply.py
powerblossom/workcloud
fd943220366ebeadfa90c59fc395f84a734b5686
[ "MIT" ]
11
2019-12-02T13:59:22.000Z
2021-04-24T08:52:19.000Z
tests/communities/test_reply.py
powerblossom/workcloud
fd943220366ebeadfa90c59fc395f84a734b5686
[ "MIT" ]
null
null
null
from core.response import Response from communities.tests import TestCase class ReplyPermissionTest(TestCase): def setUp(self): self.create_user(is_staff=True) def test_permission_reply_all(self): self.create_forum() self.create_thread() thread_id = self.thread.id res...
28.404959
71
0.485598
13,665
0.993963
0
0
0
0
0
0
2,297
0.167079
91e82476dc55d0591c20d0a5e9975a53641bca72
6,711
py
Python
examples/Word2Vec_AverageVectorsTuto.py
noiseux1523/Deep-Belief-Network
6eb364a85fb128a33c539e5e414ef451f24e499d
[ "MIT" ]
1
2019-08-20T12:13:34.000Z
2019-08-20T12:13:34.000Z
examples/Word2Vec_AverageVectorsTuto.py
noiseux1523/Deep-Belief-Network
6eb364a85fb128a33c539e5e414ef451f24e499d
[ "MIT" ]
null
null
null
examples/Word2Vec_AverageVectorsTuto.py
noiseux1523/Deep-Belief-Network
6eb364a85fb128a33c539e5e414ef451f24e499d
[ "MIT" ]
null
null
null
# Author: Angela Chapman # Date: 8/6/2014 # # This file contains code to accompany the Kaggle tutorial # "Deep learning goes to the movies". The code in this file # is for Parts 2 and 3 of the tutorial, which cover how to # train a model using Word2Vec. # # *************************************** # # ****** Re...
37.915254
118
0.670094
0
0
0
0
0
0
0
0
3,163
0.471316
91e8cdd7e37d12c63565c41b5269a325281584b2
36
py
Python
src/phl_budget_data/etl/qcmr/positions/__init__.py
PhiladelphiaController/phl-budget-data
438999017b8659de5bfb223a038f49fe6fd4a83a
[ "MIT" ]
null
null
null
src/phl_budget_data/etl/qcmr/positions/__init__.py
PhiladelphiaController/phl-budget-data
438999017b8659de5bfb223a038f49fe6fd4a83a
[ "MIT" ]
null
null
null
src/phl_budget_data/etl/qcmr/positions/__init__.py
PhiladelphiaController/phl-budget-data
438999017b8659de5bfb223a038f49fe6fd4a83a
[ "MIT" ]
null
null
null
from .core import FullTimePositions
18
35
0.861111
0
0
0
0
0
0
0
0
0
0
91e914734fc05c34e408967e2c372a75de766234
1,207
py
Python
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/search_get_schema_response.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/search_get_schema_response.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/search_get_schema_response.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
36.575758
76
0.610605
691
0.572494
0
0
0
0
0
0
860
0.71251
91ebeac4c8302d86c1514c58ecbae0f104ee5904
1,332
py
Python
python/ds/spiralprint.py
unhingedporter/DataStructureMustKnow
3c5b3225afa2775d37a2ff90121f73208717640a
[ "MIT" ]
3
2019-11-23T08:43:58.000Z
2019-11-23T08:52:53.000Z
python/ds/spiralprint.py
unhingedpotter/DSMustKnow
64958cbbbb3f4cdb1104c2255e555233554503f9
[ "MIT" ]
null
null
null
python/ds/spiralprint.py
unhingedpotter/DSMustKnow
64958cbbbb3f4cdb1104c2255e555233554503f9
[ "MIT" ]
null
null
null
# Python3 program to print # given matrix in spiral form def spiralPrint(m, n, a): start_row_index = 0 start_col_index = 0 l = 0 ''' start_row_index - starting row index m - ending row index start_col_index - starting column index n - ending column index i - iterator ''' while (start...
22.965517
61
0.534535
0
0
0
0
0
0
0
0
428
0.321321
91ed3db43e489e433ff783f8e76e26a52b78a6d5
568
py
Python
rest-api/routers/authorization.py
marintrace/backend
ad34bd50bd5e3f90be1ac16a74d39a0a9342fa33
[ "MIT" ]
2
2021-12-14T03:14:41.000Z
2022-01-17T18:36:31.000Z
rest-api/routers/authorization.py
marintrace/backend
ad34bd50bd5e3f90be1ac16a74d39a0a9342fa33
[ "MIT" ]
1
2021-03-29T08:06:42.000Z
2021-03-29T08:06:42.000Z
rest-api/routers/authorization.py
tracing-app/backend
ad34bd50bd5e3f90be1ac16a74d39a0a9342fa33
[ "MIT" ]
null
null
null
""" Authorization Utilities """ from shared.models.user_entities import User from shared.service.jwt_auth_wrapper import JWTAuthManager manager = JWTAuthManager(oidc_vault_secret="oidc/rest", object_creator=lambda claims, assumed_role, user_roles: User( first_name=...
35.5
86
0.572183
0
0
0
0
0
0
0
0
74
0.130282
91ee06a1881d10f22e7c8d7c219f9ef37412d52d
1,365
py
Python
photonpy/tests/psf_g2d_sigma.py
qnano/photonpy
9c03a1c9f4c2177c9c6fb3f2f16dfec2306006d4
[ "MIT" ]
5
2021-04-29T21:06:05.000Z
2022-03-23T03:45:25.000Z
photonpy/tests/psf_g2d_sigma.py
qnano/photonpy
9c03a1c9f4c2177c9c6fb3f2f16dfec2306006d4
[ "MIT" ]
null
null
null
photonpy/tests/psf_g2d_sigma.py
qnano/photonpy
9c03a1c9f4c2177c9c6fb3f2f16dfec2306006d4
[ "MIT" ]
1
2021-06-18T12:39:28.000Z
2021-06-18T12:39:28.000Z
import matplotlib.pyplot as plt import numpy as np from photonpy.cpp.context import Context import photonpy.cpp.gaussian as gaussian from photonpy.smlm.util import imshow_hstack from photonpy.cpp.estimator import Estimator def CheckDeriv(psf:Estimator, theta): nderiv,ev=psf.NumDeriv(theta,eps=1e-6) deriv,ev=p...
26.764706
106
0.606593
0
0
0
0
0
0
0
0
198
0.145055
91ee64a13c556aefe5259d2a930de14c6c79472f
2,018
py
Python
tests/tools_tests/helpers_tests.py
Gautierhyp/tespy
d44ae41874baeff77619e560faea59dd0cb84c7c
[ "MIT" ]
null
null
null
tests/tools_tests/helpers_tests.py
Gautierhyp/tespy
d44ae41874baeff77619e560faea59dd0cb84c7c
[ "MIT" ]
null
null
null
tests/tools_tests/helpers_tests.py
Gautierhyp/tespy
d44ae41874baeff77619e560faea59dd0cb84c7c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 """Module for testing helper functions. This file is part of project TESPy (github.com/oemof/tespy). It's copyrighted by the contributors recorded in the version control history of the file, available from its original location tests/tools_tests/helpers_tests.py SPDX-License-Identifier: MIT """ ...
32.548387
78
0.646184
0
0
0
0
0
0
0
0
1,189
0.589197
91eebd9cfe8ecc166ed16501e2c6d724f724535d
4,110
py
Python
theory/model/form.py
ralfonso/theory
41684969313cfc545d74b306e409fd5bf21387b3
[ "MIT" ]
4
2015-07-03T19:53:59.000Z
2016-04-25T03:03:56.000Z
theory/model/form.py
ralfonso/theory
41684969313cfc545d74b306e409fd5bf21387b3
[ "MIT" ]
null
null
null
theory/model/form.py
ralfonso/theory
41684969313cfc545d74b306e409fd5bf21387b3
[ "MIT" ]
2
2020-03-29T22:02:29.000Z
2021-07-13T07:17:19.000Z
import formencode import pylons from pylons import app_globals as g class OutputSchema(formencode.Schema): allow_extra_fields = False enabled = formencode.validators.Int() class ConfigForm(formencode.Schema): allow_extra_fields = True filter_extra_fields = True #pre_validators = [formencode.Nest...
42.8125
139
0.682968
2,714
0.660341
0
0
0
0
0
0
1,058
0.257421
91eed42dd8cd7828f31d4494c0f4f389955bf685
8,960
py
Python
utils/dynamo.py
OnRails-IN/backend
5f5c9703fcda282ed54f2e6315680fb30fd91a6f
[ "MIT" ]
null
null
null
utils/dynamo.py
OnRails-IN/backend
5f5c9703fcda282ed54f2e6315680fb30fd91a6f
[ "MIT" ]
null
null
null
utils/dynamo.py
OnRails-IN/backend
5f5c9703fcda282ed54f2e6315680fb30fd91a6f
[ "MIT" ]
null
null
null
""" Dynamo Utils ============ All utility functions for interactions with DynamoDB Functions - ensure_json - create_user_table - create_or_update_record - list_tables - list_records - get_record - delete_table - delete_record - check_active """ import boto3 from decimal import Deci...
24.888889
76
0.547098
0
0
0
0
0
0
0
0
3,500
0.390625
91eee874c4335dfd997cd3ef3e9c2d23c76e47b1
26
py
Python
cloudcms/branch/__init__.py
gitana/cloudcms-python-driver
8685c634880c1a6af6f359f1a25de42dcf49f319
[ "Apache-2.0" ]
null
null
null
cloudcms/branch/__init__.py
gitana/cloudcms-python-driver
8685c634880c1a6af6f359f1a25de42dcf49f319
[ "Apache-2.0" ]
null
null
null
cloudcms/branch/__init__.py
gitana/cloudcms-python-driver
8685c634880c1a6af6f359f1a25de42dcf49f319
[ "Apache-2.0" ]
null
null
null
from .branch import Branch
26
26
0.846154
0
0
0
0
0
0
0
0
0
0
91ef6e454e8d3a02bbbb8495426f9e53729bb9c8
30
py
Python
test2/test2.py
kubatom/my_nemtiko_repo
842a303ae120d871623c267ea76c2353d70b2fce
[ "Apache-2.0" ]
null
null
null
test2/test2.py
kubatom/my_nemtiko_repo
842a303ae120d871623c267ea76c2353d70b2fce
[ "Apache-2.0" ]
null
null
null
test2/test2.py
kubatom/my_nemtiko_repo
842a303ae120d871623c267ea76c2353d70b2fce
[ "Apache-2.0" ]
null
null
null
print('this is a test2 file')
15
29
0.7
0
0
0
0
0
0
0
0
22
0.733333
37cd4b6be89839faecee7dd52588398ff12411ba
247
py
Python
src/compas_blender/forms/__init__.py
yijiangh/compas
a9e86edf6b602f47ca051fccedcaa88a5e5d3600
[ "MIT" ]
1
2019-03-27T22:32:56.000Z
2019-03-27T22:32:56.000Z
src/compas_blender/forms/__init__.py
yijiangh/compas
a9e86edf6b602f47ca051fccedcaa88a5e5d3600
[ "MIT" ]
null
null
null
src/compas_blender/forms/__init__.py
yijiangh/compas
a9e86edf6b602f47ca051fccedcaa88a5e5d3600
[ "MIT" ]
null
null
null
""" ******************************************************************************** compas_blender.forms ******************************************************************************** .. currentmodule:: compas_blender.forms """ __all__ = []
22.454545
80
0.234818
0
0
0
0
0
0
0
0
232
0.939271
37cd97b1c214ca81d9e46e1e2c07bc9bb82f06f0
340
py
Python
Source/Git/Experiments/git_annotate.py
cadappl/scm-workbench
302cdb8e36bb755f4977062e8977c37e7f4491f9
[ "Apache-2.0" ]
24
2017-03-23T06:24:02.000Z
2022-03-19T13:35:44.000Z
Source/Git/Experiments/git_annotate.py
cadappl/scm-workbench
302cdb8e36bb755f4977062e8977c37e7f4491f9
[ "Apache-2.0" ]
14
2016-06-21T10:06:27.000Z
2020-07-25T11:56:23.000Z
Source/Git/Experiments/git_annotate.py
barry-scott/git-workbench
9f352875ab097ce5e45f85bf255b1fa02a196807
[ "Apache-2.0" ]
11
2016-12-25T12:36:16.000Z
2022-03-23T14:25:25.000Z
#!/usr/bin/python3 import sys import git r = git.Repo( sys.argv[1] ) num = 0 for info in r.blame( 'HEAD', sys.argv[2] ): num += 1 commit = info[0] all_lines = info[1] print( '%s %6d:%s' % (commit, num, all_lines[0]) ) for line in all_lines[1:]: num += 1 print( '%*s %6d:%s' % (4...
17
54
0.517647
0
0
0
0
0
0
0
0
49
0.144118
37cf805b2f12051ac4eca05f7ae1c89c1a8dc059
544
py
Python
configs/global_configs.py
HansikaPH/time-series-forecasting
23be319a190489bc1464653a3d672edd70ab110b
[ "MIT" ]
67
2019-09-09T14:53:35.000Z
2022-02-21T08:51:15.000Z
configs/global_configs.py
HansikaPH/time-series-forecasting
23be319a190489bc1464653a3d672edd70ab110b
[ "MIT" ]
6
2019-09-09T06:11:51.000Z
2019-12-16T04:31:11.000Z
configs/global_configs.py
HansikaPH/time-series-forecasting
23be319a190489bc1464653a3d672edd70ab110b
[ "MIT" ]
18
2019-09-12T02:49:58.000Z
2022-02-16T11:15:57.000Z
# configs for the model training class model_training_configs: VALIDATION_ERRORS_DIRECTORY = 'results/validation_errors/' INFO_FREQ = 1 # configs for the model testing class model_testing_configs: RNN_FORECASTS_DIRECTORY = 'results/rnn_forecasts/' RNN_ERRORS_DIRECTORY = 'results/errors' PROCESSED_R...
30.222222
75
0.799632
429
0.788603
0
0
0
0
0
0
208
0.382353
37cf939b241a87e359fb447071196040b0ef99e6
26,714
py
Python
openprocurement/blade/tests/auctions.py
imaginal/openprocurement.blade
4ef512e3d0c1287af1faca9caa9e5349a3c5b0fb
[ "Apache-2.0" ]
null
null
null
openprocurement/blade/tests/auctions.py
imaginal/openprocurement.blade
4ef512e3d0c1287af1faca9caa9e5349a3c5b0fb
[ "Apache-2.0" ]
null
null
null
openprocurement/blade/tests/auctions.py
imaginal/openprocurement.blade
4ef512e3d0c1287af1faca9caa9e5349a3c5b0fb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from uuid import uuid4 from copy import deepcopy from openprocurement.api.models import get_now from openprocurement.edge.tests.base import AuctionBaseWebTest, test_award, test_auction_data, test_document, ROUTE_PREFIX try: import openprocurement.auctions.core as auctions_co...
47.960503
145
0.63521
25,814
0.96631
0
0
26,009
0.973609
0
0
6,575
0.246126
37cfc9903bdf3148211aecc7d83461d403271fff
3,967
py
Python
webium/controls/select.py
kejkz/webium
ccb09876a201e75f5c5810392d4db7a8708b90cb
[ "Apache-2.0" ]
152
2015-01-16T11:26:56.000Z
2022-01-22T12:11:28.000Z
webium/controls/select.py
goblinintree/webium
ccb09876a201e75f5c5810392d4db7a8708b90cb
[ "Apache-2.0" ]
13
2015-03-05T14:36:44.000Z
2018-08-08T09:43:39.000Z
webium/controls/select.py
goblinintree/webium
ccb09876a201e75f5c5810392d4db7a8708b90cb
[ "Apache-2.0" ]
57
2015-01-27T12:53:49.000Z
2022-03-26T23:02:36.000Z
from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.remote.webelement import WebElement class Select(WebElement): """ Implements logic to work with Web List UI elements """ @property def is_multiple(self): value = self.get_attribute('multiple') re...
33.058333
118
0.57575
3,842
0.96849
0
0
1,023
0.257877
0
0
1,137
0.286615
37d1196ce920fb2354298f73f3de4a4a984c7332
12,564
py
Python
mc/cookies/CookieManager.py
zy-sunshine/falkon-pyqt5
bc2b60aa21c9b136439bd57a11f391d68c736f99
[ "MIT" ]
1
2021-04-29T05:36:44.000Z
2021-04-29T05:36:44.000Z
mc/cookies/CookieManager.py
zy-sunshine/falkon-pyqt5
bc2b60aa21c9b136439bd57a11f391d68c736f99
[ "MIT" ]
1
2020-03-28T17:43:18.000Z
2020-03-28T17:43:18.000Z
mc/cookies/CookieManager.py
zy-sunshine/falkon-pyqt5
bc2b60aa21c9b136439bd57a11f391d68c736f99
[ "MIT" ]
1
2021-01-15T20:09:24.000Z
2021-01-15T20:09:24.000Z
from PyQt5.QtWidgets import QDialog from PyQt5 import uic from PyQt5.Qt import Qt from PyQt5.Qt import QShortcut from PyQt5.Qt import QKeySequence from PyQt5.QtWidgets import QMessageBox from PyQt5.QtWidgets import QInputDialog from PyQt5.Qt import QDateTime from PyQt5.Qt import QStyle from PyQt5.Qt import QNetworkCook...
35.897143
103
0.630372
12,000
0.95511
0
0
0
0
0
0
1,719
0.136819
37d161d2ab9998ed2955dcc68be64d87474fc1ce
1,803
py
Python
.circleci/process_submitted_data.py
dongbohu/cimr-d
7d8f7f7319cff0092946a28d1416d38c06e085d7
[ "CC-BY-4.0" ]
null
null
null
.circleci/process_submitted_data.py
dongbohu/cimr-d
7d8f7f7319cff0092946a28d1416d38c06e085d7
[ "CC-BY-4.0" ]
null
null
null
.circleci/process_submitted_data.py
dongbohu/cimr-d
7d8f7f7319cff0092946a28d1416d38c06e085d7
[ "CC-BY-4.0" ]
2
2019-05-22T16:05:54.000Z
2019-05-23T14:29:10.000Z
#!/usr/bin/env python3 import os import sys import logging import subprocess logging.basicConfig(level=logging.INFO) root_dir = 'submitted_data' submitted_file_split = set() for dir_, _, files in os.walk(root_dir): for file_name in files: rel_dir = os.path.relpath(dir_, root_dir) rel_file = os...
31.086207
95
0.585136
0
0
0
0
0
0
0
0
214
0.118691
37d19d97641fbdfe4cfca519ffd963eb1a649c60
469
py
Python
common/enums.py
resourceidea/resourceideaapi
4cc7db98f981d8f2011c1995e23e8a8655e31f75
[ "MIT" ]
1
2020-05-30T22:27:59.000Z
2020-05-30T22:27:59.000Z
common/enums.py
resourceidea/resourceideaapi
4cc7db98f981d8f2011c1995e23e8a8655e31f75
[ "MIT" ]
15
2020-02-11T21:53:08.000Z
2021-11-02T21:20:03.000Z
common/enums.py
resourceidea/resourceideaapi
4cc7db98f981d8f2011c1995e23e8a8655e31f75
[ "MIT" ]
1
2020-08-27T10:57:47.000Z
2020-08-27T10:57:47.000Z
import enum class Status(enum.Enum): """Status enumeration.""" ACTIVE = 'ACTIVE' DISABLED = 'DISABLED' ARCHIVED = 'ARCHIVED' DELETED = 'DELETED' class ProgressStatus(enum.Enum): """Enumeration indicates the different stages of the progress made on an engagement, job or ...
21.318182
50
0.616205
444
0.946695
0
0
0
0
0
0
223
0.47548
37d29492156d47c44672b00f04cedb7fbbdcf78e
5,880
py
Python
networks/mobilenet.py
softsys4ai/FlexiBO
1406d67e5bd14d6b7210e724e6b239889f210db6
[ "MIT" ]
8
2020-06-23T07:05:18.000Z
2021-10-24T02:38:14.000Z
networks/mobilenet.py
softsys4ai/FlexiBO
1406d67e5bd14d6b7210e724e6b239889f210db6
[ "MIT" ]
null
null
null
networks/mobilenet.py
softsys4ai/FlexiBO
1406d67e5bd14d6b7210e724e6b239889f210db6
[ "MIT" ]
3
2020-01-06T10:49:12.000Z
2020-04-20T03:26:33.000Z
# Copyright 2019 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, ...
35.209581
96
0.671769
0
0
0
0
0
0
0
0
2,489
0.423299
37d2de39d6a42eafed34788e36c34749e153b301
500
py
Python
info.py
altfool/mri_face_detection
3117f7f00c98efe2260936146ce6b5454b059672
[ "MIT" ]
1
2021-11-13T02:42:49.000Z
2021-11-13T02:42:49.000Z
info.py
altfool/mri_face_detection
3117f7f00c98efe2260936146ce6b5454b059672
[ "MIT" ]
null
null
null
info.py
altfool/mri_face_detection
3117f7f00c98efe2260936146ce6b5454b059672
[ "MIT" ]
null
null
null
import numpy as np img_dtype = np.float32 imgX, imgY, imgZ = (256, 256, 150) imgs_path_withfaces = '../dataset/withfaces' imgs_path_nofaces = '../dataset/nofaces' imgX_dwt1, imgY_dwt1, imgZ_dwt1 = (128, 128, 75) imgs_path_withfaces_dwt = './dataset/withfaces' imgs_path_nofaces_dwt = './dataset/nofaces' dwt_flag = (...
27.777778
54
0.752
0
0
0
0
0
0
0
0
82
0.164
37d34e7f40c00147044227bceb687730996c355b
10,288
py
Python
biggan/paddorch/paddorch/vision/functional.py
zzz2010/Contrib
d351d83da718145cef9f6c98598f7fedc027efe5
[ "Apache-2.0" ]
20
2020-03-13T13:40:32.000Z
2022-03-10T07:31:48.000Z
biggan/paddorch/paddorch/vision/functional.py
zzz2010/Contrib
d351d83da718145cef9f6c98598f7fedc027efe5
[ "Apache-2.0" ]
34
2020-02-20T11:04:58.000Z
2022-03-12T00:54:26.000Z
biggan/paddorch/paddorch/vision/functional.py
zzz2010/Contrib
d351d83da718145cef9f6c98598f7fedc027efe5
[ "Apache-2.0" ]
41
2020-02-14T09:34:39.000Z
2022-03-10T07:31:42.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
38.38806
111
0.602061
0
0
0
0
0
0
0
0
6,004
0.583593
37d5209ef3010122c779cf4e6e97b119c2f9a504
14,267
py
Python
ground_battle.py
ashhansen6/minigames
5b2e0db14b3567c9b6220206105ed448fb303551
[ "MIT" ]
null
null
null
ground_battle.py
ashhansen6/minigames
5b2e0db14b3567c9b6220206105ed448fb303551
[ "MIT" ]
3
2021-03-25T02:39:44.000Z
2021-06-16T17:53:36.000Z
ground_battle.py
ashhansen6/minigames
5b2e0db14b3567c9b6220206105ed448fb303551
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jan 29 13:38:35 2021 GROUND INVASION! The Game @author: Ashton Hansen (ashhansen6@outlook.com) """ # Packages used: import numpy as np import pandas as pd import random as rng from termcolor import colored # Defining starting forces ## Defenders: def_force =...
41.961765
107
0.604892
0
0
0
0
0
0
0
0
5,302
0.371627
37d53dc9e4eafc3370db20f7342e6ffdb10aeb9f
24,609
py
Python
src/pretalx/orga/urls.py
martinheidegger/pretalx
d812e665c1c5ce29df3eafc1985af08e4d986fef
[ "Apache-2.0" ]
null
null
null
src/pretalx/orga/urls.py
martinheidegger/pretalx
d812e665c1c5ce29df3eafc1985af08e4d986fef
[ "Apache-2.0" ]
null
null
null
src/pretalx/orga/urls.py
martinheidegger/pretalx
d812e665c1c5ce29df3eafc1985af08e4d986fef
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import include, url from django.views.generic.base import RedirectView from pretalx.event.models.event import SLUG_CHARS from pretalx.orga.views import cards from .views import ( admin, auth, cfp, dashboard, event, mails, organiser, person, plugins, review...
40.54201
91
0.358771
0
0
0
0
0
0
0
0
5,680
0.23081
37d57b222d4daa1969049535271df3dff47b0edb
1,925
py
Python
ws2122-lspm/Lib/site-packages/pm4py/statistics/overlap/utils/compute.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
ws2122-lspm/Lib/site-packages/pm4py/statistics/overlap/utils/compute.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
ws2122-lspm/Lib/site-packages/pm4py/statistics/overlap/utils/compute.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
31.048387
122
0.676883
47
0.024416
0
0
0
0
0
0
1,154
0.599481
37d597714762fd1b5295ccfa14750529f2501042
1,775
py
Python
webapp/apps/Base Quiz/baseui_gen.py
sk-Prime/webapp
c21d7d49de4e4442f9af29ba9f08f37b5abbd20d
[ "MIT" ]
4
2021-12-11T16:01:10.000Z
2021-12-22T19:47:51.000Z
webapp/apps/Base Quiz/baseui_gen.py
sk-Prime/webapp
c21d7d49de4e4442f9af29ba9f08f37b5abbd20d
[ "MIT" ]
null
null
null
webapp/apps/Base Quiz/baseui_gen.py
sk-Prime/webapp
c21d7d49de4e4442f9af29ba9f08f37b5abbd20d
[ "MIT" ]
null
null
null
from htmlman import HTMLMan from styleman import Template page=HTMLMan() page.make_responsive() page.add_title("Base Quiz") style=Template('antartica') page.add_body_class(style['page']) page.add_js("baseui.js") page.create_section('main',append=True) page['main'].add_style_class(style['main']) title=page.create_sec...
26.102941
73
0.750423
0
0
0
0
0
0
0
0
552
0.310986
37d5b6f804f5b3c1c18198672cc73bf3cc33a2a6
514
py
Python
cluster_config/cluster.py
srcc-msu/job_statistics
74680a4e4c105ebcff94f089e07fcb44dbcc12d9
[ "MIT" ]
null
null
null
cluster_config/cluster.py
srcc-msu/job_statistics
74680a4e4c105ebcff94f089e07fcb44dbcc12d9
[ "MIT" ]
null
null
null
cluster_config/cluster.py
srcc-msu/job_statistics
74680a4e4c105ebcff94f089e07fcb44dbcc12d9
[ "MIT" ]
null
null
null
name = "cluster" num_cores = 1000 GENERAL_PARTITIONS = ["regular"] GPU_PARTITIONS = ["gpu"] PARTITIONS = GENERAL_PARTITIONS + GPU_PARTITIONS ACTIVE_JOB_STATES = ["RUNNING", "COMPLETING"] FINISHED_JOB_STATES = ["COMPLETED", "NODE_FAIL", "TIMEOUT", "FAILED", "CANCELLED"] JOB_STATES = ACTIVE_JOB_STATES + FINISHED_JOB_...
27.052632
82
0.741245
0
0
0
0
0
0
0
0
201
0.391051
37d62e06868fc1146c429cff23d726ebbfa8afd8
7,146
py
Python
room_assistance/indico_room_assistance/plugin.py
OmeGak/indico-plugins-cern
6e32bc158877080085ceffd021ab1d2247192f75
[ "MIT" ]
4
2019-02-12T05:08:56.000Z
2022-03-09T23:43:18.000Z
room_assistance/indico_room_assistance/plugin.py
OmeGak/indico-plugins-cern
6e32bc158877080085ceffd021ab1d2247192f75
[ "MIT" ]
40
2017-11-08T15:08:50.000Z
2022-03-28T15:09:51.000Z
room_assistance/indico_room_assistance/plugin.py
OmeGak/indico-plugins-cern
6e32bc158877080085ceffd021ab1d2247192f75
[ "MIT" ]
15
2017-11-08T12:35:59.000Z
2022-01-13T15:16:42.000Z
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2021 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. import dateutil.parser import pytz from flask import flash, request...
52.160584
120
0.645116
5,629
0.787713
0
0
0
0
0
0
1,711
0.239435
37d69c9affc9004808d91089e961fe9861840f56
6,808
py
Python
datamart/materializers/wikidata_spo_materializer.py
liangmuxin/datamart
495a21588db39c9ad239409208bec701dca07f30
[ "MIT" ]
7
2018-10-02T01:32:23.000Z
2020-10-08T00:42:35.000Z
datamart/materializers/wikidata_spo_materializer.py
liangmuxin/datamart
495a21588db39c9ad239409208bec701dca07f30
[ "MIT" ]
47
2018-10-02T05:41:13.000Z
2021-02-02T21:50:31.000Z
datamart/materializers/wikidata_spo_materializer.py
liangmuxin/datamart
495a21588db39c9ad239409208bec701dca07f30
[ "MIT" ]
19
2018-10-01T22:27:20.000Z
2019-02-28T18:59:53.000Z
from datamart.materializers.materializer_base import MaterializerBase import os import urllib.request import sys import csv import copy import json from typing import List from pprint import pprint import re import typing from pandas import DataFrame import traceback class WikidataSPOMaterializer(MaterializerBase): ...
38.03352
126
0.552732
6,536
0.960047
0
0
3,723
0.546857
0
0
2,431
0.35708
37d6ae677936f62a1cad64182feb228714d24c7d
1,402
py
Python
axelrod/load_data_.py
danilobellini/Axelrod
2c9212553e06095c24adcb82a5979279cbdf45fb
[ "MIT" ]
null
null
null
axelrod/load_data_.py
danilobellini/Axelrod
2c9212553e06095c24adcb82a5979279cbdf45fb
[ "MIT" ]
1
2019-01-22T09:59:52.000Z
2019-01-22T09:59:52.000Z
axelrod/load_data_.py
danilobellini/Axelrod
2c9212553e06095c24adcb82a5979279cbdf45fb
[ "MIT" ]
null
null
null
from typing import Dict, List, Tuple import pkg_resources def load_file(filename: str, directory: str) -> List[List[str]]: """Loads a data file stored in the Axelrod library's data subdirectory, likely for parameters for a strategy.""" path = "/".join((directory, filename)) data_bytes = pkg_resources...
31.155556
75
0.601284
0
0
0
0
0
0
0
0
251
0.17903
37d85e09c27d6497523862946e45ed0db97f77b6
5,248
py
Python
prescryptchain/api/views.py
genobank-io/CryptoVault
7c2f6c4c55df7d9e172058aad334a26786ea839f
[ "Apache-2.0" ]
3
2018-05-03T18:40:48.000Z
2019-06-09T19:04:44.000Z
prescryptchain/api/views.py
genobank-io/CryptoVault
7c2f6c4c55df7d9e172058aad334a26786ea839f
[ "Apache-2.0" ]
6
2018-06-27T00:14:46.000Z
2018-10-29T20:51:45.000Z
prescryptchain/api/views.py
genobank-io/CryptoVault
7c2f6c4c55df7d9e172058aad334a26786ea839f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals # REST from rest_framework.viewsets import ViewSetMixin from rest_framework import routers, serializers, viewsets from rest_framework.authentication import SessionAuthentication, BasicAuthentication, TokenAuthentication from rest_framework.permissions imp...
33.858065
129
0.664444
3,933
0.749428
0
0
0
0
0
0
1,241
0.236471
37d92a06667232ad4a4f6ca14ad0257dd6a2e56a
2,484
py
Python
client/commands/incremental.py
stvreumi/pyre-check
94d13c8df37b53843ae92544b81042347b64315d
[ "MIT" ]
null
null
null
client/commands/incremental.py
stvreumi/pyre-check
94d13c8df37b53843ae92544b81042347b64315d
[ "MIT" ]
null
null
null
client/commands/incremental.py
stvreumi/pyre-check
94d13c8df37b53843ae92544b81042347b64315d
[ "MIT" ]
null
null
null
# Copyright (c) 2016-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import atexit import logging import os import subprocess import sys from typing import List from .command import ClientException, ExitCode, State f...
31.846154
88
0.625201
2,068
0.832528
0
0
0
0
0
0
428
0.172303
37da81bd71be1d388df7554cdc71e1b8d0bef4e9
26,540
py
Python
main_random_policy.py
rish-raghu/Object-Goal-Navigation
d2c882f3a97396c691fc75b46bd94bb7077f7d0f
[ "MIT" ]
null
null
null
main_random_policy.py
rish-raghu/Object-Goal-Navigation
d2c882f3a97396c691fc75b46bd94bb7077f7d0f
[ "MIT" ]
null
null
null
main_random_policy.py
rish-raghu/Object-Goal-Navigation
d2c882f3a97396c691fc75b46bd94bb7077f7d0f
[ "MIT" ]
null
null
null
from collections import deque, defaultdict import os import sys import logging import time import json import gym import torch.nn as nn import torch import numpy as np import matplotlib.pyplot as plt from model import RL_Policy, Semantic_Mapping from utils.storage import GlobalRolloutStorage from envs import make_vec_...
41.020093
132
0.511492
0
0
0
0
0
0
0
0
4,860
0.18312
37db93135f06b7cc7a06b9ea9f0839b0af335d54
6,889
py
Python
src/ITN/srmg/core/RiemannianRight.py
Yulv-git/Awesome-Ultrasound-Standard-Plane-Detection
2e35afaa891badf5a235b5d995102e4dc8a4cf0d
[ "MIT" ]
1
2022-03-24T06:54:36.000Z
2022-03-24T06:54:36.000Z
src/ITN/srmg/core/RiemannianRight.py
Yulv-git/Awesome-Ultrasound-Standard-Plane-Detection
2e35afaa891badf5a235b5d995102e4dc8a4cf0d
[ "MIT" ]
null
null
null
src/ITN/srmg/core/RiemannianRight.py
Yulv-git/Awesome-Ultrasound-Standard-Plane-Detection
2e35afaa891badf5a235b5d995102e4dc8a4cf0d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 ''' Author: Shuangchi He / Yulv Email: yulvchi@qq.com Date: 2022-03-19 10:33:38 Motto: Entities should not be multiplied unnecessarily. LastEditors: Shuangchi He LastEditTime: 2022-03-23 00:52:55 FilePath: /Awesome-Ultrasound-Standard-Plane-Detection/src/ITN/srmg/core/RiemannianRigh...
27.556
108
0.609958
0
0
0
0
0
0
0
0
4,961
0.720134
37dc25007d47db4fa96ca0730b82167ce6738233
4,658
py
Python
v0449gRpc_pb2.py
StormDev87/VPH_bot_python
ae83a0b61e234912c0136ef0f176e7a88603ff28
[ "MIT" ]
1
2022-02-28T16:20:33.000Z
2022-02-28T16:20:33.000Z
v0449gRpc_pb2.py
StormDev87/VPH_bot_python
ae83a0b61e234912c0136ef0f176e7a88603ff28
[ "MIT" ]
null
null
null
v0449gRpc_pb2.py
StormDev87/VPH_bot_python
ae83a0b61e234912c0136ef0f176e7a88603ff28
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: v0449gRpc.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from go...
43.12963
790
0.800129
0
0
0
0
0
0
0
0
1,944
0.417347
37dd454cd95fe5c19347e66dba4d2c8da8d4857f
14,423
py
Python
api/resources_portal/test/views/test_search_endpoint.py
AlexsLemonade/resources-portal
d91c6c8d6135461faccbc78ef2b0be3f9b358f21
[ "BSD-3-Clause" ]
null
null
null
api/resources_portal/test/views/test_search_endpoint.py
AlexsLemonade/resources-portal
d91c6c8d6135461faccbc78ef2b0be3f9b358f21
[ "BSD-3-Clause" ]
536
2019-11-13T15:49:03.000Z
2022-03-28T20:17:24.000Z
api/resources_portal/test/views/test_search_endpoint.py
AlexsLemonade/resources-portal
d91c6c8d6135461faccbc78ef2b0be3f9b358f21
[ "BSD-3-Clause" ]
1
2020-04-03T02:07:29.000Z
2020-04-03T02:07:29.000Z
import datetime from django.core.management import call_command from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase from resources_portal.management.commands.populate_dev_database import populate_dev_database from resources_portal.models import Material, Organ...
35.264059
99
0.662969
14,080
0.976219
0
0
2,113
0.146502
0
0
2,338
0.162102
37ddb9f83521ff471c035e9cd6a4902772e590bf
5,107
py
Python
mindarmour/utils/logger.py
hboshnak/mindarmour
0609a4eaea875a84667bed279add9305752880cc
[ "Apache-2.0" ]
139
2020-03-28T02:37:07.000Z
2022-03-24T15:35:39.000Z
mindarmour/utils/logger.py
hboshnak/mindarmour
0609a4eaea875a84667bed279add9305752880cc
[ "Apache-2.0" ]
2
2020-04-02T09:50:21.000Z
2020-05-09T06:52:57.000Z
mindarmour/utils/logger.py
hboshnak/mindarmour
0609a4eaea875a84667bed279add9305752880cc
[ "Apache-2.0" ]
12
2020-03-28T02:52:42.000Z
2021-07-15T08:05:06.000Z
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
32.119497
91
0.595457
4,204
0.823184
0
0
1,013
0.198355
0
0
2,959
0.579401
37de891f427c0291be7aba179849ea2f6a86e5c6
281
py
Python
Python/Programming Basics/Simple Calculations/17. Daily Earnings.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
Python/Programming Basics/Simple Calculations/17. Daily Earnings.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
Python/Programming Basics/Simple Calculations/17. Daily Earnings.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
workdays = float(input()) daily_tips = float(input()) exchange_rate = float(input()) salary = workdays * daily_tips annual_income = salary * 12 + salary * 2.5 net_income = annual_income - annual_income * 25 / 100 result = net_income / 365 * exchange_rate print('%.2f' % result)
23.416667
53
0.711744
0
0
0
0
0
0
0
0
6
0.021352
37e09e1c599fd41f037cb54000938dba1d33127b
7,483
py
Python
bert_rerannker_eval.py
satya77/transformer_rankers
0d2c20bd26041d887fb65102020a0b609ec967fc
[ "MIT" ]
null
null
null
bert_rerannker_eval.py
satya77/transformer_rankers
0d2c20bd26041d887fb65102020a0b609ec967fc
[ "MIT" ]
null
null
null
bert_rerannker_eval.py
satya77/transformer_rankers
0d2c20bd26041d887fb65102020a0b609ec967fc
[ "MIT" ]
null
null
null
from transformer_rankers.trainers import transformer_trainer from transformer_rankers.datasets import dataset, preprocess_scisumm_ranked from transformer_rankers.eval import results_analyses_tools from transformers import BertTokenizer, BertForSequenceClassification from sacred.observers import FileStorageObserver fro...
47.967949
116
0.526928
0
0
0
0
5,447
0.727917
0
0
3,938
0.52626
37e0cdbd73052a4cfa66dd46c357ae89f7505242
424
py
Python
python/p21.py
tonyfg/project_euler
3a9e6352a98faaa506056b42160c91bffe93838c
[ "WTFPL" ]
null
null
null
python/p21.py
tonyfg/project_euler
3a9e6352a98faaa506056b42160c91bffe93838c
[ "WTFPL" ]
null
null
null
python/p21.py
tonyfg/project_euler
3a9e6352a98faaa506056b42160c91bffe93838c
[ "WTFPL" ]
null
null
null
#Q: Evaluate the sum of all the amicable numbers under 10000. #A: 31626 def divisor_sum(n): return sum([i for i in xrange (1, n//2+1) if not n%i]) def sum_amicable(start, end): sum = 0 for i in xrange(start, end): tmp = divisor_sum(i) if i == divisor_sum(tmp) and i != tmp: ...
26.5
61
0.610849
0
0
0
0
0
0
0
0
114
0.268868
37e13b4fd890037fc4d7192b2e7467ef9a1cb201
4,033
py
Python
check.py
Dysoncat/student-services-slas-chat-bot
5d9c7105cef640c34018d260249b6a05b959e73f
[ "MIT" ]
null
null
null
check.py
Dysoncat/student-services-slas-chat-bot
5d9c7105cef640c34018d260249b6a05b959e73f
[ "MIT" ]
null
null
null
check.py
Dysoncat/student-services-slas-chat-bot
5d9c7105cef640c34018d260249b6a05b959e73f
[ "MIT" ]
null
null
null
import long_responses as long # Returns the probability of a message matching the responses that we have def messageProb(userMessage, recognizedWords, isSingleResponse=False, requiredWords=[]): messageCertainty = 0 hasRequiredWords = True # Counts how many words are present in each predefined message ...
40.33
154
0.623109
0
0
0
0
0
0
0
0
1,623
0.40243
37e16ab061f36f12398b74b8a1440f3cc6768529
1,446
py
Python
image_predictor/utils.py
jdalzatec/streamlit-manizales-tech-talks
619af5edc79a22ed4cc9f50dd2d0379399357549
[ "MIT" ]
2
2022-02-05T15:48:55.000Z
2022-02-05T15:57:40.000Z
image_predictor/utils.py
jdalzatec/streamlit-manizales-tech-talks
619af5edc79a22ed4cc9f50dd2d0379399357549
[ "MIT" ]
null
null
null
image_predictor/utils.py
jdalzatec/streamlit-manizales-tech-talks
619af5edc79a22ed4cc9f50dd2d0379399357549
[ "MIT" ]
4
2022-02-05T15:49:02.000Z
2022-02-05T15:58:14.000Z
from io import StringIO import numpy as np from h5py import File from keras.models import load_model as keras_load_model from PIL import Image, ImageOps def predict(image, model): # Create the array of the right shape to feed into the keras model # The 'length' or number of images you can put into the array ...
32.133333
81
0.697095
0
0
0
0
0
0
0
0
493
0.340941
37e2c12beb329286ae2d567a8dedde433414f28a
417
py
Python
client/setup.py
emilywoods/docker-workshop
46fef25ed06ab33f653bebffdd837ee4cc31c373
[ "MIT" ]
1
2022-03-21T07:32:36.000Z
2022-03-21T07:32:36.000Z
client/setup.py
emilywoods/docker-workshop
46fef25ed06ab33f653bebffdd837ee4cc31c373
[ "MIT" ]
null
null
null
client/setup.py
emilywoods/docker-workshop
46fef25ed06ab33f653bebffdd837ee4cc31c373
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="workshop-client", install_requires=["flask==1.1.1", "requests==2.22.0"], python_requires=">=3.7", classifiers=[ "Development Status :: 1 - Beta", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "P...
27.8
58
0.580336
0
0
0
0
0
0
0
0
243
0.582734
37e304a5ab34e95d070c76d96d91559914adff14
561
py
Python
tests/facebook/models/test_photo.py
Socian-Ltd/python-facebook-1
e9a4f626b37541103c9534a29342ef6033c09c06
[ "Apache-2.0" ]
2
2021-03-16T02:58:10.000Z
2021-03-16T16:53:23.000Z
tests/facebook/models/test_photo.py
nedsons/python-facebook
bf2b4a70ef0e0a67a142f5856586ea318f9807ea
[ "Apache-2.0" ]
null
null
null
tests/facebook/models/test_photo.py
nedsons/python-facebook
bf2b4a70ef0e0a67a142f5856586ea318f9807ea
[ "Apache-2.0" ]
1
2021-06-02T07:15:35.000Z
2021-06-02T07:15:35.000Z
import json import unittest import pyfacebook.models as models class PhotoModelTest(unittest.TestCase): BASE_PATH = "testdata/facebook/models/photos/" with open(BASE_PATH + 'photo.json', 'rb') as f: PHOTO_INFO = json.loads(f.read().decode('utf-8')) def testPhoto(self): m = models.Photo....
28.05
60
0.686275
494
0.88057
0
0
0
0
0
0
91
0.16221
37e4a1783cf1d5a9318a74c7d860d1f54e64ee4e
5,837
py
Python
airbyte-integrations/connectors/source-scaffold-source-python/source_scaffold_source_python/source.py
curanaj/airbyte-dbt-demo
f6b8ccd8f8e57b7ea84caf814b14d836338e8007
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-scaffold-source-python/source_scaffold_source_python/source.py
curanaj/airbyte-dbt-demo
f6b8ccd8f8e57b7ea84caf814b14d836338e8007
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-scaffold-source-python/source_scaffold_source_python/source.py
curanaj/airbyte-dbt-demo
f6b8ccd8f8e57b7ea84caf814b14d836338e8007
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2020 Airbyte # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publ...
47.072581
122
0.704471
4,367
0.748158
1,818
0.311461
0
0
0
0
4,314
0.739078
37e4f2c4b90817314cd77bae4c4800a1c5a1cfd8
11,933
py
Python
alerter/src/monitorables/nodes/chainlink_node.py
SimplyVC/panic
2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d
[ "Apache-2.0" ]
41
2019-08-23T12:40:42.000Z
2022-03-28T11:06:02.000Z
alerter/src/monitorables/nodes/chainlink_node.py
SimplyVC/panic
2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d
[ "Apache-2.0" ]
147
2019-08-30T22:09:48.000Z
2022-03-30T08:46:26.000Z
alerter/src/monitorables/nodes/chainlink_node.py
SimplyVC/panic
2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d
[ "Apache-2.0" ]
3
2019-09-03T21:12:28.000Z
2021-08-18T14:27:56.000Z
from datetime import datetime from typing import Optional, Dict, List, Union from schema import Schema, Or from src.monitorables.nodes.node import Node from src.utils.exceptions import InvalidDictSchemaException class ChainlinkNode(Node): def __init__(self, node_name: str, node_id: str, parent_id: str) -> None:...
37.407524
80
0.67636
11,716
0.981815
0
0
3,409
0.285678
0
0
3,190
0.267326
37e57878ec351c326eab8dff88096e5a9b705681
8,983
py
Python
experiments/vgg16/VGG16_utils.py
petrapoklukar/DCA
e5b3f3481433306a4b33e712272f8bbf5e9d05ce
[ "MIT" ]
2
2022-02-14T15:54:22.000Z
2022-02-15T18:43:36.000Z
experiments/vgg16/VGG16_utils.py
petrapoklukar/DCA
e5b3f3481433306a4b33e712272f8bbf5e9d05ce
[ "MIT" ]
null
null
null
experiments/vgg16/VGG16_utils.py
petrapoklukar/DCA
e5b3f3481433306a4b33e712272f8bbf5e9d05ce
[ "MIT" ]
null
null
null
import pickle import numpy as np import os def _analyze_query_point_assignment( query_data_dict: dict, init_Rdata_dict: dict, init_Edata_dict: dict, num_R: int, query_point_assignment_array: np.ndarray, root: str, n_points_to_copy=50, ): """ Analyzes and visualizes qDCA results. ...
36.815574
87
0.571969
0
0
0
0
0
0
0
0
2,036
0.22665
37e640e884ea7efdcb34d9809f129977c3b8f796
2,905
py
Python
back-end/RawFishSheep/app_cart/views.py
Coldarra/RawFishSheep
266bd9d8d9832d5c692b63e7515d45fdc4f6acc4
[ "Apache-2.0" ]
null
null
null
back-end/RawFishSheep/app_cart/views.py
Coldarra/RawFishSheep
266bd9d8d9832d5c692b63e7515d45fdc4f6acc4
[ "Apache-2.0" ]
4
2021-10-06T22:49:52.000Z
2022-02-27T12:28:18.000Z
back-end/RawFishSheep/app_cart/views.py
Coldarra/RawFishSheep
266bd9d8d9832d5c692b63e7515d45fdc4f6acc4
[ "Apache-2.0" ]
null
null
null
from .models import * from decorator import * from app_goods.views import getGoodsByID # 查询当前用户所有的购物车信息 def getCartByUser(user_id=None): if user_id == None: raise ParamException() return Cart.objects.filter(user_id=user_id) def getSelectedCart(user_id=None): if user_id == None: raise P...
29.05
78
0.685714
0
0
0
0
0
0
0
0
248
0.081767
37e6a1c12c2e7ca4fa6cc0bc35bd20189bfd7063
7,704
py
Python
extensions/catsum.py
johannesgiorgis/my-timewarrior-extensions
1a8b83359298d3cbf002148f02b5ef6f1693a797
[ "MIT" ]
null
null
null
extensions/catsum.py
johannesgiorgis/my-timewarrior-extensions
1a8b83359298d3cbf002148f02b5ef6f1693a797
[ "MIT" ]
1
2022-02-14T16:53:54.000Z
2022-02-14T16:53:54.000Z
extensions/catsum.py
xoiopure/my-timewarrior-extensions
1a8b83359298d3cbf002148f02b5ef6f1693a797
[ "MIT" ]
1
2021-08-29T00:32:18.000Z
2021-08-29T00:32:18.000Z
#!/usr/bin/env python3 ############################################################################### # # Category Summaries # # ############################################################################### import datetime import io import json import logging import pprint import sys from typing import Dict, Any ...
31.57377
98
0.641874
0
0
0
0
0
0
0
0
2,241
0.290888
37e90c8995ed6a6f4dbc2bb7d6d0c967a69b04ab
3,881
py
Python
resources/hotel.py
jnascimentocode/REST-API-COM-PYTHON-E-FLASK
c55dca53f3a864c6c1aba8bbde63dcadc3c19347
[ "MIT" ]
null
null
null
resources/hotel.py
jnascimentocode/REST-API-COM-PYTHON-E-FLASK
c55dca53f3a864c6c1aba8bbde63dcadc3c19347
[ "MIT" ]
null
null
null
resources/hotel.py
jnascimentocode/REST-API-COM-PYTHON-E-FLASK
c55dca53f3a864c6c1aba8bbde63dcadc3c19347
[ "MIT" ]
null
null
null
from typing import ParamSpecArgs from flask_restful import Resource, reqparse from models.hotel import HotelModel from flask_jwt_extended import jwt_required from models.site import SiteModel from resources.filtros import * import sqlite3 path_params = reqparse.RequestParser() path_params.add_argument('cidade', type=s...
34.345133
116
0.631538
3,249
0.837155
0
0
1,571
0.404793
0
0
681
0.17547
37e97b75428a1033eda5441303e4da93aa132446
221
py
Python
src/wormhole/__main__.py
dmgolembiowski/magic-wormhole
d517a10282d5e56f300db462b1a6eec517202af7
[ "MIT" ]
2,801
2021-01-10T16:37:14.000Z
2022-03-31T19:02:50.000Z
src/wormhole/__main__.py
dmgolembiowski/magic-wormhole
d517a10282d5e56f300db462b1a6eec517202af7
[ "MIT" ]
52
2021-01-10T01:54:00.000Z
2022-03-11T13:12:41.000Z
src/wormhole/__main__.py
dmgolembiowski/magic-wormhole
d517a10282d5e56f300db462b1a6eec517202af7
[ "MIT" ]
106
2021-01-21T14:32:22.000Z
2022-03-18T10:33:09.000Z
from __future__ import absolute_import, print_function, unicode_literals if __name__ == "__main__": from .cli import cli cli.wormhole() else: # raise ImportError('this module should not be imported') pass
27.625
72
0.737557
0
0
0
0
0
0
0
0
67
0.303167
37eaf107409d84d5c2fde68eaa08ffa5c4d85c18
2,413
py
Python
testing/berge_equilibrium_cndp.py
Eliezer-Beczi/CNDP
73decdfaef1c9e546ad94dd7448c89078af27034
[ "MIT" ]
1
2021-08-13T09:14:40.000Z
2021-08-13T09:14:40.000Z
testing/berge_equilibrium_cndp.py
Eliezer-Beczi/CNDP
73decdfaef1c9e546ad94dd7448c89078af27034
[ "MIT" ]
null
null
null
testing/berge_equilibrium_cndp.py
Eliezer-Beczi/CNDP
73decdfaef1c9e546ad94dd7448c89078af27034
[ "MIT" ]
null
null
null
import networkx as nx import utils.connectivity_metrics as connectivity_metric from platypus import NSGAII, EpsMOEA, NSGAIII, EpsNSGAII, Problem, Dominance, Subset, TournamentSelector, \ HypervolumeFitnessEvaluator, Archive import statistics import multiprocessing as mp G = nx.read_adjlist("input/Ventresca/Barabas...
25.135417
111
0.63075
1,216
0.503937
0
0
0
0
0
0
100
0.041442