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
784e5bf0a0b8655d9a0a603fb8012750676dd86a
1,450
py
Python
trafficgen/benignGenerator/DataGen/wordpressautonew/LoginWordPressData.py
cyberdeception/deepdig
482061bc5039181a95631fcb8515d990eb2e16a9
[ "Apache-2.0" ]
5
2020-03-07T21:28:51.000Z
2022-03-11T06:03:46.000Z
trafficgen/benignGenerator/DataGen/wordpressautonew/LoginWordPressData.py
cyberdeception/deepdig
482061bc5039181a95631fcb8515d990eb2e16a9
[ "Apache-2.0" ]
null
null
null
trafficgen/benignGenerator/DataGen/wordpressautonew/LoginWordPressData.py
cyberdeception/deepdig
482061bc5039181a95631fcb8515d990eb2e16a9
[ "Apache-2.0" ]
4
2019-10-18T18:32:35.000Z
2021-07-16T11:52:38.000Z
import unittest from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdriver.support.ui import WebDriverWait import time from BaseWordpressData import BaseWordPressData class LoginWordPressData(BaseWordPressData): def __init__(self,type, dataDict,browser): ...
28.431373
78
0.671034
1,219
0.84069
0
0
0
0
0
0
399
0.275172
78505ac1a273f3c03ae2bd2074823ab5e86e19af
4,688
py
Python
src/utils/options.py
JiachengLi1995/FastRec
88174f8beb822c6b5b348c888de184d48d9d013c
[ "MIT" ]
null
null
null
src/utils/options.py
JiachengLi1995/FastRec
88174f8beb822c6b5b348c888de184d48d9d013c
[ "MIT" ]
null
null
null
src/utils/options.py
JiachengLi1995/FastRec
88174f8beb822c6b5b348c888de184d48d9d013c
[ "MIT" ]
null
null
null
from src.datasets import DATASETS from src.dataloaders import DATALOADERS from src.models import MODELS from src.trainers import TRAINERS import argparse parser = argparse.ArgumentParser(description='SASRec') ################ # Test ################ parser.add_argument('--load_pretrained_weights', type=str, default=...
50.956522
132
0.706485
0
0
0
0
0
0
0
0
2,175
0.463951
7850cdbf5aa5b5cdc836f3b7b8695fc3dc13997b
124
py
Python
mainapp/StaffView.py
Facele55/E-Commerce
20103ee09a3c349eb3a0fffeb16b7fc86c5cabbc
[ "Apache-2.0" ]
null
null
null
mainapp/StaffView.py
Facele55/E-Commerce
20103ee09a3c349eb3a0fffeb16b7fc86c5cabbc
[ "Apache-2.0" ]
null
null
null
mainapp/StaffView.py
Facele55/E-Commerce
20103ee09a3c349eb3a0fffeb16b7fc86c5cabbc
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render def staff_home(request): return render(request, 'staff_template/staff_home.html')
20.666667
60
0.790323
0
0
0
0
0
0
0
0
32
0.258065
7852009b941cee12bd32debb6b11c9f5ed52309b
3,416
py
Python
progress_job_iterator.py
Ariel96cs/SimpleMapReduceFramework
7cf482f94b1ed1e6436a7b229dfe09c3c0906d56
[ "MIT" ]
null
null
null
progress_job_iterator.py
Ariel96cs/SimpleMapReduceFramework
7cf482f94b1ed1e6436a7b229dfe09c3c0906d56
[ "MIT" ]
null
null
null
progress_job_iterator.py
Ariel96cs/SimpleMapReduceFramework
7cf482f94b1ed1e6436a7b229dfe09c3c0906d56
[ "MIT" ]
null
null
null
import message_tools as mt import time class ProgressTaskIterator: def __init__(self, job_id, task, status_handler, file_sys_addr): ''' Tengo que poner a esperar a que inserten en la tabla block de status_db_url los bloques correspodientes a la tarea de task. lo que tengo que esper...
40.188235
116
0.602459
3,375
0.987998
1,052
0.307963
0
0
0
0
1,371
0.401347
7852458867e37b272e2b2586e35216cc3c5811b9
137
py
Python
module.py
supperhappie/web_scraper
334cc877d06fe0083f52fca84de7fb906a0ff5f7
[ "MIT" ]
null
null
null
module.py
supperhappie/web_scraper
334cc877d06fe0083f52fca84de7fb906a0ff5f7
[ "MIT" ]
null
null
null
module.py
supperhappie/web_scraper
334cc877d06fe0083f52fca84de7fb906a0ff5f7
[ "MIT" ]
null
null
null
from math import * print(ceil(4.2)) print(sum([0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1])) print(fsum([0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1]))
27.4
50
0.569343
0
0
0
0
0
0
0
0
0
0
7853fc867b9268e27df1fa9c7f6378f0521175e4
7,310
py
Python
untitled.py
czyczyyzc/MyMaskRCNN
e5a451fd05c593ae05d6e596813fc63aad7af2de
[ "MIT" ]
1
2020-10-16T08:10:12.000Z
2020-10-16T08:10:12.000Z
untitled.py
czyczyyzc/MyMaskRCNN
e5a451fd05c593ae05d6e596813fc63aad7af2de
[ "MIT" ]
null
null
null
untitled.py
czyczyyzc/MyMaskRCNN
e5a451fd05c593ae05d6e596813fc63aad7af2de
[ "MIT" ]
null
null
null
BACKBONE = "resnet101" BACKBONE_STRIDES = [4, 8, 16, 32, 64] POST_NMS_ROIS_TRAINING = 2000 POST_NMS_ROIS_INFERENCE = 1000 RPN_NMS_THRESHOLD = 0.7 POOL_SIZE = 7 MASK_POOL_SIZE = 14 TRAIN_BN = False # Defaulting to False since bat...
41.067416
126
0.583174
6,539
0.859038
0
0
0
0
0
0
683
0.089727
7854206db388f69d88e15202d41b4806273c060f
6,198
py
Python
skm_tea/engine/trainer.py
StanfordMIMI/skm-tea
5678bfcebad4fdc30de62b319d96ec1775e1671c
[ "MIT" ]
26
2021-08-28T06:57:50.000Z
2022-02-17T06:33:41.000Z
skm_tea/engine/trainer.py
StanfordMIMI/skm-tea
5678bfcebad4fdc30de62b319d96ec1775e1671c
[ "MIT" ]
6
2021-10-20T16:04:12.000Z
2022-03-15T20:16:52.000Z
skm_tea/engine/trainer.py
StanfordMIMI/skm-tea
5678bfcebad4fdc30de62b319d96ec1775e1671c
[ "MIT" ]
4
2021-11-15T08:32:41.000Z
2022-02-23T18:54:30.000Z
import logging import os import pytorch_lightning as pl from meddlr.config.config import CfgNode from meddlr.engine.trainer import convert_cfg_time_to_iter as _convert_cfg_time_to_iter from meddlr.engine.trainer import format_as_iter from meddlr.utils import env from meddlr.utils.env import supports_wandb from pytorch...
38.02454
99
0.666989
4,914
0.792836
0
0
431
0.069539
0
0
1,318
0.212649
78542c8e023300ee416e5d670aa78aae94c4eae7
1,189
py
Python
uw_canvas/tests/test_quizzes.py
uw-it-aca/uw-restclients-canvas
2c54d7676649ec18129817992890878ace1ec6c6
[ "Apache-2.0" ]
1
2019-11-26T21:38:50.000Z
2019-11-26T21:38:50.000Z
uw_canvas/tests/test_quizzes.py
uw-it-aca/uw-restclients-canvas
2c54d7676649ec18129817992890878ace1ec6c6
[ "Apache-2.0" ]
135
2017-04-04T23:11:26.000Z
2021-05-28T17:00:20.000Z
uw_canvas/tests/test_quizzes.py
uw-it-aca/uw-restclients-canvas
2c54d7676649ec18129817992890878ace1ec6c6
[ "Apache-2.0" ]
2
2020-05-20T20:36:55.000Z
2022-03-05T00:23:44.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from unittest import TestCase from uw_canvas.utilities import fdao_canvas_override from uw_canvas.quizzes import Quizzes from uw_canvas.models import Quiz @fdao_canvas_override class CanvasTestQuizzes(TestCase): def test_quizz...
32.135135
76
0.660219
921
0.774601
0
0
943
0.793103
0
0
265
0.222876
78556b4b51cbe376c3830238e0401b6707b4b355
87
py
Python
decision_record/record/apps.py
scotthsieh0503/decision-record
a868f5c8b94d621453b330eefad1045b7afb55d4
[ "MIT" ]
3
2020-02-05T06:42:15.000Z
2020-02-17T14:39:58.000Z
yet-another-timelogger/record/apps.py
MarkWh1te/yet-another-timelogger
b3518db9b85ee45a547bc2556e3700f7aab695c6
[ "MIT" ]
17
2020-03-24T17:30:33.000Z
2022-03-11T23:58:34.000Z
record/apps.py
souper-streetwise/charity_data
6d91d4b3d635dad868a5eabab94bbb20eea3d082
[ "MIT" ]
1
2020-06-13T02:25:42.000Z
2020-06-13T02:25:42.000Z
from django.apps import AppConfig class RecordConfig(AppConfig): name = 'record'
14.5
33
0.747126
50
0.574713
0
0
0
0
0
0
8
0.091954
785857077b4350d54dda9d398a5eaff19132e288
820
py
Python
tabular/tests/unittests/models/test_tabular_nn_fastai.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
4,462
2019-12-09T17:41:07.000Z
2022-03-31T22:00:41.000Z
tabular/tests/unittests/models/test_tabular_nn_fastai.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
1,408
2019-12-09T17:48:59.000Z
2022-03-31T20:24:12.000Z
tabular/tests/unittests/models/test_tabular_nn_fastai.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
623
2019-12-10T02:04:18.000Z
2022-03-20T17:11:01.000Z
from autogluon.tabular.models.fastainn.tabular_nn_fastai import NNFastAiTabularModel def test_tabular_nn_fastai_binary(fit_helper): fit_args = dict( hyperparameters={NNFastAiTabularModel: {}}, ) dataset_name = 'adult' fit_helper.fit_and_validate_dataset(dataset_name=dataset_name, fit_args=fit...
30.37037
85
0.765854
0
0
0
0
0
0
0
0
24
0.029268
785958f309382a011e6f540a7d611fcf8a976c4a
2,082
py
Python
kernel/Settings.py
flopezag/fiware-scrum-reports
56773c2b1d0603f019f08ca7b66fc091e2b975a0
[ "Apache-2.0" ]
null
null
null
kernel/Settings.py
flopezag/fiware-scrum-reports
56773c2b1d0603f019f08ca7b66fc091e2b975a0
[ "Apache-2.0" ]
6
2018-09-04T08:49:29.000Z
2018-09-05T10:31:32.000Z
kernel/Settings.py
flopezag/fiware-scrum-reports
56773c2b1d0603f019f08ca7b66fc091e2b975a0
[ "Apache-2.0" ]
null
null
null
import os from xml.etree import ElementTree as ET from datetime import datetime from collections import namedtuple __author__ = "Manuel Escriche < mev@tid.es>" class Settings: def __init__(self): self._dashboard = dict() self._review = dict() self.home = os.path.split(os.path.dirname(os.p...
33.047619
112
0.628242
1,857
0.891931
0
0
378
0.181556
0
0
410
0.196926
7859d6c0896c5f80478ef39ac42a3fbaba78584d
4,554
py
Python
diofant/solvers/utils.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
null
null
null
diofant/solvers/utils.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
null
null
null
diofant/solvers/utils.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
null
null
null
"""General utility functions for solvers.""" import warnings from ..core import (expand_mul, expand_multinomial, nan, oo, preorder_traversal, zoo) from ..core.sympify import sympify from ..simplify.simplify import posify, simplify __all__ = 'checksol', def checksol(f, sol, **flags): r"""Ch...
32.070423
85
0.538428
0
0
0
0
0
0
0
0
1,932
0.424242
786031bca4e4c25f1b895df6dc07e93096ae9dfe
148
py
Python
Python/read/read.py
BackEndTea/Learning
ccbf8fdbb8fb23643898d73e64fe7442ab46b791
[ "MIT" ]
1
2018-10-31T10:36:34.000Z
2018-10-31T10:36:34.000Z
Python/read/read.py
BackEndTea/Learning
ccbf8fdbb8fb23643898d73e64fe7442ab46b791
[ "MIT" ]
null
null
null
Python/read/read.py
BackEndTea/Learning
ccbf8fdbb8fb23643898d73e64fe7442ab46b791
[ "MIT" ]
2
2021-05-06T11:18:25.000Z
2021-12-04T07:56:29.000Z
with open('file.csv', 'r') as f: a = [i for i in f] print(a) with open('file.csv', 'r') as f: a = [i[1: -2] for i in f] print(a)
14.8
32
0.472973
0
0
0
0
0
0
0
0
26
0.175676
78607ee463c1efbeda346568d754d388788b0a46
16,798
py
Python
client/admin.py
AhmedElmawary/erp
c998787c62194e26e10e3cbc61e35935e901e56d
[ "MIT" ]
null
null
null
client/admin.py
AhmedElmawary/erp
c998787c62194e26e10e3cbc61e35935e901e56d
[ "MIT" ]
null
null
null
client/admin.py
AhmedElmawary/erp
c998787c62194e26e10e3cbc61e35935e901e56d
[ "MIT" ]
null
null
null
import os from django.template.response import TemplateResponse from _helpers.common import make_list_of_lists from app_user.models import ClosingPeriod from datetime import datetime from django.utils import timezone from django.core.paginator import Paginator from django.db.models.query import QuerySet from django.te...
35.816631
238
0.589177
15,376
0.915347
0
0
0
0
0
0
3,104
0.184784
7862362c2a685a044c14e4b97a8f43d0e7baa1f5
1,352
py
Python
hackerearth/Algorithms/Largest Windmill/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerearth/Algorithms/Largest Windmill/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerearth/Algorithms/Largest Windmill/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here from collections import defaultdict, deque ...
23.719298
94
0.517751
0
0
0
0
0
0
0
0
274
0.202663
786303dad3d68e212f04a894e451f0bed72ebf96
949
py
Python
mountainproject/util/util.py
calebwang/mountainproject
6a986d33a1e44710308e66eea77b66167a0ef2a7
[ "MIT" ]
null
null
null
mountainproject/util/util.py
calebwang/mountainproject
6a986d33a1e44710308e66eea77b66167a0ef2a7
[ "MIT" ]
null
null
null
mountainproject/util/util.py
calebwang/mountainproject
6a986d33a1e44710308e66eea77b66167a0ef2a7
[ "MIT" ]
null
null
null
import itertools def chunk(iterable, n): it = iter(iterable) cls = list chunk = cls(itertools.islice(it, n)) while chunk: yield chunk chunk = cls(itertools.islice(it, n)) def map_chunk(iterable, n, f_chunk): """ Map over iterable in chunks of size n, applying f_chunk to each chunk, and then fla...
24.333333
83
0.700738
0
0
456
0.480506
0
0
0
0
159
0.167545
78634d639d85d08c0ec70e8b376d62a31e283863
6,622
py
Python
code/release/normalize_to_vcd.py
williamgibb/la-data-graphing
dba49e4dcc65256566474f9c8ff407c164d188c2
[ "ECL-1.0" ]
null
null
null
code/release/normalize_to_vcd.py
williamgibb/la-data-graphing
dba49e4dcc65256566474f9c8ff407c164d188c2
[ "ECL-1.0" ]
null
null
null
code/release/normalize_to_vcd.py
williamgibb/la-data-graphing
dba49e4dcc65256566474f9c8ff407c164d188c2
[ "ECL-1.0" ]
null
null
null
# # This script is Copyrighted (c) 2012 by William Gibb and # licensed under the OSI Educational Community License version 1.0 # # Please see the LICENSE.txt file for a full reading of the appopriate # license. # import sys import os import csv import optparse import string import logging import re imp...
31.235849
114
0.614467
0
0
0
0
0
0
0
0
2,433
0.367412
78652027358f752a4fa3b5d361b4256d3dc48763
5,372
py
Python
src/psypose/MEVA/scripts/eval_vae.py
scraplab/psypose
81753e29b78023b8a7c48356ec54c67b7182c183
[ "MIT" ]
null
null
null
src/psypose/MEVA/scripts/eval_vae.py
scraplab/psypose
81753e29b78023b8a7c48356ec54c67b7182c183
[ "MIT" ]
1
2021-10-13T16:27:34.000Z
2021-10-13T16:27:34.000Z
src/psypose/MEVA/scripts/eval_vae.py
scraplab/psypose
81753e29b78023b8a7c48356ec54c67b7182c183
[ "MIT" ]
null
null
null
import glob import os import sys import pdb import os.path as osp sys.path.append(os.getcwd()) import math import pickle as pk import argparse import time from torch import optim from torch.utils.tensorboard import SummaryWriter from tqdm import tqdm import joblib from khrylib.utils import * from meva.utils.config im...
36.794521
136
0.648734
0
0
0
0
0
0
0
0
605
0.112621
786642d4839cecf971d110875afa5237e48ae23f
475
py
Python
exercise1_6.py
ccie8030/pynet
84be459c6cb50a025a801e3d4b9bd237c698776a
[ "Apache-2.0" ]
1
2016-01-30T03:36:15.000Z
2016-01-30T03:36:15.000Z
exercise1_6.py
ccie8030/pynet
84be459c6cb50a025a801e3d4b9bd237c698776a
[ "Apache-2.0" ]
null
null
null
exercise1_6.py
ccie8030/pynet
84be459c6cb50a025a801e3d4b9bd237c698776a
[ "Apache-2.0" ]
null
null
null
import yaml import json def main(): yaml_file = 'my_yaml.yml' json_file = 'my_json.json' net_dict = {'ip_addr' : '192.168.1.214', 'model' : 'wlc', 'manufacturer' : 'Cisco', 'model': '2504'} net_list = ['test_strings','1','2','3', net_dict, 'python', 'neteng'] with open(yaml_file, "...
18.269231
104
0.581053
0
0
0
0
0
0
0
0
142
0.298947
786662f7fd60f019ba19ea1741f61dafe91fb64a
1,978
py
Python
Structral Similarity/stsim_2.py
Michelle0903/Performance-Comparison-of-Structural-Similarity-Metrics
c2c409eefe335e4946ca895ad1d22b4930263819
[ "MIT" ]
null
null
null
Structral Similarity/stsim_2.py
Michelle0903/Performance-Comparison-of-Structural-Similarity-Metrics
c2c409eefe335e4946ca895ad1d22b4930263819
[ "MIT" ]
null
null
null
Structral Similarity/stsim_2.py
Michelle0903/Performance-Comparison-of-Structural-Similarity-Metrics
c2c409eefe335e4946ca895ad1d22b4930263819
[ "MIT" ]
null
null
null
from perceptual.metric_copy import Metric import cv2 import os import glob import heapq import torch import time from torch.utils.data import Dataset, DataLoader data_dir = "/Users/yuxiao/Desktop/data/Corbis128BigExperiment_gray/" data = glob.glob(data_dir + "*.tiff") class ImgData(Dataset): def __init__(self, k...
22.224719
86
0.570779
424
0.214358
0
0
0
0
0
0
177
0.089484
7866925166859dc7a69b09e9e27d0bf72413316f
1,040
py
Python
Bag/testbag.py
yeyuning1/DataStructures
c302db3b14ee131e7090a8cc088519b863880336
[ "MIT" ]
null
null
null
Bag/testbag.py
yeyuning1/DataStructures
c302db3b14ee131e7090a8cc088519b863880336
[ "MIT" ]
null
null
null
Bag/testbag.py
yeyuning1/DataStructures
c302db3b14ee131e7090a8cc088519b863880336
[ "MIT" ]
null
null
null
""" File: testbag.py Author: Yeyuning A tester program for bag implementations. """ from Bag.arraybag import ArrayBag from Bag.linkedbag import LinkedBag # def test(bagType): # lyst = [2013, 61, 1973] # print('The list of items added is:', lyst) # b1 = bagType(lyst) # print("Expect 3:", len(b1)) # ...
25.365854
50
0.575962
0
0
0
0
0
0
0
0
928
0.892308
786736d9f2365d02c0ef89f14817a4203397cc30
165
py
Python
plotsearch/apps.py
City-of-Helsinki/mvj
6f786047805a968317ecc37b38c2262ada2c3805
[ "MIT" ]
1
2021-01-12T08:14:10.000Z
2021-01-12T08:14:10.000Z
plotsearch/apps.py
City-of-Helsinki/mvj
6f786047805a968317ecc37b38c2262ada2c3805
[ "MIT" ]
249
2017-04-18T14:00:13.000Z
2022-03-30T12:18:03.000Z
plotsearch/apps.py
City-of-Helsinki/mvj
6f786047805a968317ecc37b38c2262ada2c3805
[ "MIT" ]
7
2017-04-18T08:43:54.000Z
2021-07-28T07:29:30.000Z
from django.apps import AppConfig class PlotsearchConfig(AppConfig): name = "plotsearch" def ready(self): import plotsearch.signals # noqa: F401
18.333333
47
0.70303
128
0.775758
0
0
0
0
0
0
24
0.145455
7867596a29dbeb64fbd242bc6c8c7720e3a87739
509
py
Python
src/codebase/controllers/default.py
ooclab/ga.service
894b4703628b2ce93790db31939009783e8e7b09
[ "MIT" ]
1
2019-09-20T04:32:52.000Z
2019-09-20T04:32:52.000Z
src/codebase/controllers/default.py
ooclab/ga.service
894b4703628b2ce93790db31939009783e8e7b09
[ "MIT" ]
1
2019-02-01T04:57:27.000Z
2019-02-01T04:57:27.000Z
src/codebase/controllers/default.py
ooclab/ga.service
894b4703628b2ce93790db31939009783e8e7b09
[ "MIT" ]
1
2019-01-14T06:51:17.000Z
2019-01-14T06:51:17.000Z
# pylint: disable=W0221,W0223 import os from codebase.web import APIRequestHandler class HealthHandler(APIRequestHandler): def get(self): self.write("ok") class SpecHandler(APIRequestHandler): """ 提供 SwaggerUI YAML 文档 """ def get(self): path = os.path.abspath(os.path.join(os....
20.36
82
0.650295
426
0.823985
0
0
0
0
0
0
119
0.230174
786b2cbe165ff3efeddb8ce434ec54fe8e4cbb38
2,189
py
Python
Projecto1/basico/Exercicio3.py
CarlosMacaneta/Basic-Python
13034a23ca4cb45eab1226c6b719476d713803b9
[ "MIT" ]
1
2021-05-13T11:09:16.000Z
2021-05-13T11:09:16.000Z
Projecto1/basico/Exercicio3.py
CarlosMacaneta/Basic-Python
13034a23ca4cb45eab1226c6b719476d713803b9
[ "MIT" ]
null
null
null
Projecto1/basico/Exercicio3.py
CarlosMacaneta/Basic-Python
13034a23ca4cb45eab1226c6b719476d713803b9
[ "MIT" ]
null
null
null
import os.path import random def gerar_id(): return "AZ" + str(random.randrange(1, 1000)) def designar_arq(): return gerar_id() + ".txt" def formulario(fich): fich.write("Id: " + gerar_id() + "\n") fich.write("Nome: " + input("Nome: ").capitalize() + "\n") fich.write("Perfil: Docente\n") f...
23.042105
69
0.583828
0
0
0
0
0
0
0
0
338
0.154408
786ea20db76f036afee97045dee5cd524ee74858
166
py
Python
Exercicios/ex012.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
2
2021-11-13T13:52:56.000Z
2022-03-29T18:10:27.000Z
Exercicios/ex012.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
null
null
null
Exercicios/ex012.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
null
null
null
v = float(input('qual e o valor do seu produto? R$:')) d = v / 100 * 5 print('o valor do produto de R$:{} agora com 5% de desconto ficou R$:{:.2f}'.format(v, (v-d)))
41.5
94
0.60241
0
0
0
0
0
0
0
0
106
0.638554
787089ab58a2c573c193c13a1c54f7ae8051fe13
1,692
py
Python
graphql/backend/tests/test_compileddocument.py
ThanksBoomerang/graphql-core-legacy
6e2fbccdec655ce9122b84d3808c14242c4e6b96
[ "MIT" ]
8
2020-03-23T21:34:02.000Z
2021-11-12T11:27:45.000Z
graphql/backend/tests/test_compileddocument.py
ThanksBoomerang/graphql-core-legacy
6e2fbccdec655ce9122b84d3808c14242c4e6b96
[ "MIT" ]
17
2020-03-14T22:22:29.000Z
2022-03-16T19:26:37.000Z
graphql/backend/tests/test_compileddocument.py
ThanksBoomerang/graphql-core-legacy
6e2fbccdec655ce9122b84d3808c14242c4e6b96
[ "MIT" ]
17
2020-03-23T12:06:23.000Z
2022-02-13T05:33:32.000Z
from ...language.base import parse from ...utils.ast_to_code import ast_to_code from ..compiled import GraphQLCompiledDocument from .schema import schema def test_compileddocument_from_module_dict(): # type: () -> None document_string = "{ hello }" document_ast = parse(document_string) document = Grap...
28.2
79
0.708038
0
0
0
0
0
0
0
0
514
0.303783
78715707268ed203ef8de172b23e49fc52b02ddc
9,568
py
Python
pid/eco/views.py
PlanetaryResources/pid
ecb146cc26c6ade2863bcdc6d271ead3cbcbbe40
[ "Apache-2.0" ]
3
2019-06-14T18:05:22.000Z
2020-01-22T17:38:17.000Z
pid/eco/views.py
PlanetaryResources/pid
ecb146cc26c6ade2863bcdc6d271ead3cbcbbe40
[ "Apache-2.0" ]
null
null
null
pid/eco/views.py
PlanetaryResources/pid
ecb146cc26c6ade2863bcdc6d271ead3cbcbbe40
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Design views.""" from flask import Blueprint, request, jsonify, render_template, make_response from flask_login import login_required, current_user from .forms import CreateECOForm from .models import ECO from pid.common.models import Project, Approver from pid.mail import send_email from pid...
35.969925
110
0.639946
0
0
0
0
9,067
0.947638
0
0
1,812
0.189381
7872f59905b7d2b01c5c5e396418732a9653183b
3,485
py
Python
psono/restapi/serializers/create_membership.py
dirigeant/psono-server
a18c5b3c4d8bbbe4ecf1615b210d99fb77752205
[ "Apache-2.0", "CC0-1.0" ]
48
2018-04-19T15:50:58.000Z
2022-01-23T15:58:11.000Z
psono/restapi/serializers/create_membership.py
dirigeant/psono-server
a18c5b3c4d8bbbe4ecf1615b210d99fb77752205
[ "Apache-2.0", "CC0-1.0" ]
9
2018-09-13T14:56:18.000Z
2020-01-17T16:44:33.000Z
psono/restapi/serializers/create_membership.py
dirigeant/psono-server
a18c5b3c4d8bbbe4ecf1615b210d99fb77752205
[ "Apache-2.0", "CC0-1.0" ]
11
2019-09-20T11:53:47.000Z
2021-07-18T22:41:31.000Z
from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers, exceptions from ..fields import UUIDField, BooleanField from ..models import User, User_Group_Membership import re class CreateMembershipSerializer(serializers.Serializer): user_id = UUIDField(required=True) grou...
33.190476
145
0.663415
3,270
0.938307
0
0
0
0
0
0
584
0.167575
78736c505d7315485f6b5015659e5139ab914041
7,158
py
Python
stanza_wrapper/stanza_wrapper.py
Filter-Bubble/stanza_wrapper
04388869cbbe419132628422663e4c7c987cf1d0
[ "Apache-2.0" ]
null
null
null
stanza_wrapper/stanza_wrapper.py
Filter-Bubble/stanza_wrapper
04388869cbbe419132628422663e4c7c987cf1d0
[ "Apache-2.0" ]
null
null
null
stanza_wrapper/stanza_wrapper.py
Filter-Bubble/stanza_wrapper
04388869cbbe419132628422663e4c7c987cf1d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from . import __version__ import logging import stanza from KafNafParserPy import * from lxml.etree import XMLSyntaxError from io import BytesIO import sys from itertools import groupby from operator import itemgetter from xml.sax.saxutils import escape logger = logging.getLogger(__name__) thi...
34.248804
86
0.58955
0
0
0
0
0
0
0
0
935
0.130623
78745512b8e1db248b6cccfe158e400723701d66
138
py
Python
measure/_measure.py
jedhsu/measure
34dfffa51d6fc348bd324bc490a682103b5b5b99
[ "Apache-2.0" ]
null
null
null
measure/_measure.py
jedhsu/measure
34dfffa51d6fc348bd324bc490a682103b5b5b99
[ "Apache-2.0" ]
null
null
null
measure/_measure.py
jedhsu/measure
34dfffa51d6fc348bd324bc490a682103b5b5b99
[ "Apache-2.0" ]
null
null
null
""" *Measure* The measure type. """ from abc import ABCMeta __all__ = ["Measure"] class Measure: __metaclass__ = ABCMeta
8.625
27
0.630435
42
0.304348
0
0
0
0
0
0
53
0.384058
78747f79066b20c85ec7068912df47ccb366ae61
2,749
py
Python
micro_center_price_monitor/price_checker.py
Nintendude64/micro-center-price-monitor
5aee275ef2e6a65d1fd69aa07956225bad7f30ac
[ "MIT" ]
null
null
null
micro_center_price_monitor/price_checker.py
Nintendude64/micro-center-price-monitor
5aee275ef2e6a65d1fd69aa07956225bad7f30ac
[ "MIT" ]
null
null
null
micro_center_price_monitor/price_checker.py
Nintendude64/micro-center-price-monitor
5aee275ef2e6a65d1fd69aa07956225bad7f30ac
[ "MIT" ]
null
null
null
from micro_center_price_monitor.scraper import MicroCenterScraper from micro_center_price_monitor.mail import Email import datetime, time class PriceChecker: """ PriceChecker: Manages execution flow for: -> Retrieving search results list -> Selected wanted product -> Monitori...
39.84058
123
0.559112
2,606
0.947981
0
0
0
0
0
0
1,016
0.369589
78756479e1ce298be3ad0fcb9bbe4e75724a401d
3,613
py
Python
yakbak/diff.py
shiroyuki/2019-cfp
90c20ad01c19ddf17b0bfd1f96b264c715456c01
[ "BSD-3-Clause" ]
null
null
null
yakbak/diff.py
shiroyuki/2019-cfp
90c20ad01c19ddf17b0bfd1f96b264c715456c01
[ "BSD-3-Clause" ]
6
2019-04-27T16:48:33.000Z
2019-08-06T20:28:23.000Z
yakbak/diff.py
shiroyuki/2019-cfp
90c20ad01c19ddf17b0bfd1f96b264c715456c01
[ "BSD-3-Clause" ]
2
2019-08-06T15:23:57.000Z
2019-08-21T23:16:01.000Z
# Per Google's recommendation [1], this is copied from [2], with # the line ending match adjusted to find spans of whitespace. # # The original [2] is used under the Apache License, Version 2.0: # # Diff Match and Patch # Copyright 2018 The diff-match-patch Authors. # https://github.com/google/diff-match-patch # ...
35.772277
122
0.681705
0
0
0
0
0
0
0
0
2,356
0.65209
78758a785c0289c32fa159acab530e62fdfcc65f
24,304
py
Python
mayan/apps/documents/tests/test_document_file_views.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
343
2015-01-05T14:19:35.000Z
2018-12-10T19:07:48.000Z
mayan/apps/documents/tests/test_document_file_views.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
191
2015-01-03T00:48:19.000Z
2018-11-30T09:10:25.000Z
mayan/apps/documents/tests/test_document_file_views.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
257
2019-05-14T10:26:37.000Z
2022-03-30T03:37:36.000Z
from mayan.apps.converter.layers import layer_saved_transformations from mayan.apps.converter.permissions import ( permission_transformation_delete, permission_transformation_edit ) from mayan.apps.converter.tests.mixins import LayerTestMixin from mayan.apps.documents.tests.literals import TEST_MULTI_PAGE_TIFF from...
33.615491
94
0.697704
23,131
0.951736
0
0
0
0
0
0
79
0.00325
78768458d1d5d8763041828ce894b1405751ca58
5,872
py
Python
pyjobs_web/pyjobsweb/controllers/jobs.py
pyjobs/web
183742ae571ee83d4fe4b34f1f0ce9f2204c449e
[ "MIT" ]
8
2016-01-29T13:06:26.000Z
2020-11-02T07:23:57.000Z
pyjobs_web/pyjobsweb/controllers/jobs.py
pyjobs/web
183742ae571ee83d4fe4b34f1f0ce9f2204c449e
[ "MIT" ]
18
2016-02-11T08:17:13.000Z
2022-03-02T14:53:38.000Z
pyjobs_web/pyjobsweb/controllers/jobs.py
pyjobs/web
183742ae571ee83d4fe4b34f1f0ce9f2204c449e
[ "MIT" ]
5
2016-02-05T08:57:12.000Z
2018-01-15T08:19:43.000Z
# -*- coding: utf-8 -*- import json import logging from elasticsearch_dsl import Q, SF from sqlalchemy.orm.exc import NoResultFound from tg.decorators import expose, redirect, paginate from tg.exceptions import HTTPNotFound from pyjobsweb.model import JobAlchemy from pyjobsweb.model import JobElastic from pyjobsweb.m...
28.504854
76
0.552282
5,357
0.912296
0
0
5,048
0.859673
0
0
773
0.131642
7877594dfebd86d5488c351f1f1c7312d5340ea1
2,143
py
Python
market/checkout/urls.py
katomaso/django-market
84c4fa10aefbd792a956cef3d727623ca78cb5fd
[ "MIT" ]
null
null
null
market/checkout/urls.py
katomaso/django-market
84c4fa10aefbd792a956cef3d727623ca78cb5fd
[ "MIT" ]
null
null
null
market/checkout/urls.py
katomaso/django-market
84c4fa10aefbd792a956cef3d727623ca78cb5fd
[ "MIT" ]
null
null
null
# coding: utf-8 from django.utils.translation import gettext as _ from market.core.urls import api from urljects import U, slug, url from market.checkout.views import cart, checkout, order, payment action = slug.replace("slug", "action") def active(user): """Check if the user is active with verified email.""" ...
44.645833
109
0.679421
0
0
0
0
0
0
0
0
1,018
0.475035
78778c152bb481987b9b0fa41ad4c6ca47520ed9
126
py
Python
apps/notifications/forms.py
TransparentHealth/smh-organization
ca32d1cbb7600e8b22e43e06edab83c323a2404d
[ "Apache-2.0" ]
3
2019-03-03T22:41:00.000Z
2020-04-16T04:07:07.000Z
apps/notifications/forms.py
TransparentHealth/smh_app
ca32d1cbb7600e8b22e43e06edab83c323a2404d
[ "Apache-2.0" ]
112
2019-03-04T14:20:50.000Z
2020-04-29T21:32:07.000Z
apps/notifications/forms.py
TransparentHealth/smh-organization
ca32d1cbb7600e8b22e43e06edab83c323a2404d
[ "Apache-2.0" ]
2
2019-08-01T13:08:28.000Z
2019-12-06T15:53:25.000Z
from django import forms class DismissNotificationForm(forms.Form): pk = forms.IntegerField(required=True, min_value=1)
21
55
0.785714
98
0.777778
0
0
0
0
0
0
0
0
7878b2bddcace81614a809f86447f1bedc047ddf
92
py
Python
pji/entry/__init__.py
HansBug/pji
449d171cea0c03f4c302da886988f36f70e34ee6
[ "Apache-2.0" ]
null
null
null
pji/entry/__init__.py
HansBug/pji
449d171cea0c03f4c302da886988f36f70e34ee6
[ "Apache-2.0" ]
null
null
null
pji/entry/__init__.py
HansBug/pji
449d171cea0c03f4c302da886988f36f70e34ee6
[ "Apache-2.0" ]
null
null
null
from .cli import cli from .runner import DispatchRunner from .script import load_pji_script
23
35
0.836957
0
0
0
0
0
0
0
0
0
0
787af07ddabb27f12cabf735e06b4adc1ae9725b
4,498
py
Python
tukey/api/nova.py
Li-Ko/tukey_portal
8dc395ef1a1ebaa806d23c88ce51460e6c202921
[ "Apache-2.0" ]
null
null
null
tukey/api/nova.py
Li-Ko/tukey_portal
8dc395ef1a1ebaa806d23c88ce51460e6c202921
[ "Apache-2.0" ]
null
null
null
tukey/api/nova.py
Li-Ko/tukey_portal
8dc395ef1a1ebaa806d23c88ce51460e6c202921
[ "Apache-2.0" ]
null
null
null
from collections import Sequence from django.conf import settings from openstack_dashboard.api import nova from openstack_dashboard.api.base import Quota from openstack_dashboard.api.nova import flavor_list from openstack_dashboard.api.nova import novaclient from openstack_dashboard.api.nova import server_list from o...
38.118644
83
0.611827
2,795
0.621387
0
0
0
0
0
0
1,212
0.269453
787b63dc0fd0b28ae87da2a327123d0389504e2a
4,881
py
Python
blockchain/toycoin/block.py
tkuriyama/toycoin
aace6c2f2b55ddb2003dcbffff8b923ea6a47670
[ "MIT" ]
2
2021-07-14T07:45:26.000Z
2021-08-11T19:28:42.000Z
blockchain/toycoin/block.py
tkuriyama/toycoin
aace6c2f2b55ddb2003dcbffff8b923ea6a47670
[ "MIT" ]
null
null
null
blockchain/toycoin/block.py
tkuriyama/toycoin
aace6c2f2b55ddb2003dcbffff8b923ea6a47670
[ "MIT" ]
null
null
null
"""Construct blocks. A block consists of a collection of transactions (of some limited number), plus additional metadata in a header. Blocks are generated with a proof-of-work hash. """ import math # type: ignore from toycoin import hash, merkle, transaction, utils # type: ignore from typing import List, Optional, Tu...
28.881657
80
0.597828
218
0.044663
0
0
0
0
0
0
1,687
0.345626
787c3c6f3e40d9b934038220ef7e2d375b00740c
1,172
py
Python
uptimer/uptimer.py
sourcepirate/uptimer
07ec5586cc1f57676073a8b3098f705ca9c843ec
[ "MIT" ]
1
2021-10-10T16:17:00.000Z
2021-10-10T16:17:00.000Z
uptimer/uptimer.py
sourcepirate/uptimer
07ec5586cc1f57676073a8b3098f705ca9c843ec
[ "MIT" ]
null
null
null
uptimer/uptimer.py
sourcepirate/uptimer
07ec5586cc1f57676073a8b3098f705ca9c843ec
[ "MIT" ]
null
null
null
"""Main module.""" import logging from datetime import datetime from urllib.parse import urlparse from typing import Any, Dict, List import requests def check_domain(domain_url: str) -> Dict[str, Any]: try: current_time = datetime.now() session = requests.Session() response = session.ge...
27.255814
65
0.595563
0
0
0
0
0
0
0
0
150
0.127986
787c830352c3b6240940e7f3f6a544c89fc5bdf9
1,071
py
Python
tests/python_frontend/arithmetic_conversions_test.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
227
2019-03-15T23:39:06.000Z
2022-03-30T07:49:08.000Z
tests/python_frontend/arithmetic_conversions_test.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
834
2019-07-31T22:49:31.000Z
2022-03-28T14:01:32.000Z
tests/python_frontend/arithmetic_conversions_test.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
64
2019-03-19T05:40:37.000Z
2022-03-11T15:02:42.000Z
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import dace import numpy as np @dace.program def add(A: dace.complex64[5, 5], B: dace.float64[5, 5]): return A + B def test_add(): A = np.random.randint(0, high=10, size=(5, 5), dtype=np.uint64).astype(np.complex64) B = np.random...
23.282609
88
0.633053
0
0
0
0
266
0.248366
0
0
85
0.079365
787d2f3c3a6fd4faa65d2cb284cf88e6378a574b
1,484
py
Python
archai/algos/divnas/divnas_exp_runner.py
cclauss/archai
a5fb8f937f7f1319e3204120803b2a045e9f768b
[ "MIT" ]
344
2020-06-12T22:12:56.000Z
2022-03-29T06:48:20.000Z
archai/algos/divnas/divnas_exp_runner.py
cclauss/archai
a5fb8f937f7f1319e3204120803b2a045e9f768b
[ "MIT" ]
29
2020-06-13T19:56:49.000Z
2022-03-30T20:26:48.000Z
archai/algos/divnas/divnas_exp_runner.py
cclauss/archai
a5fb8f937f7f1319e3204120803b2a045e9f768b
[ "MIT" ]
68
2020-06-12T19:32:43.000Z
2022-03-05T06:58:40.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from typing import Type from overrides import overrides from archai.common.common import get_conf from archai.nas.exp_runner import ExperimentRunner from archai.nas.arch_trainer import ArchTrainer, TArchTrainer from archai.algos.darts.bilevel_a...
29.098039
70
0.715633
841
0.566712
0
0
775
0.522237
0
0
162
0.109164
7880e8c114adeeed696cf6d28a33365f19d2d6f6
7,612
py
Python
Seeder/settings/base.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
8
2017-08-16T19:18:57.000Z
2022-01-24T10:08:19.000Z
Seeder/settings/base.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
242
2017-02-03T19:15:52.000Z
2022-03-25T08:02:52.000Z
Seeder/settings/base.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
2
2019-03-06T12:36:29.000Z
2019-07-08T12:52:20.000Z
""" Django settings for Seeder project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) imp...
25.373333
97
0.638203
0
0
0
0
0
0
0
0
4,995
0.656201
788255405425a8b525763b34fd49429697be3d01
915
py
Python
main.py
sonmezerekrem/pytool
181a35ef6d45eba90c5f22cb812aa9fb713443cf
[ "MIT" ]
null
null
null
main.py
sonmezerekrem/pytool
181a35ef6d45eba90c5f22cb812aa9fb713443cf
[ "MIT" ]
null
null
null
main.py
sonmezerekrem/pytool
181a35ef6d45eba90c5f22cb812aa9fb713443cf
[ "MIT" ]
null
null
null
import argparse from src import passwordops from src import fileops parser = argparse.ArgumentParser( formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument("--password", help="Password operations") parser.add_argument("--file", help="File operations") parser.add_argument("--network", help="...
29.516129
75
0.727869
0
0
0
0
0
0
0
0
204
0.222951
788278de32ad2471d9489fe9c2247f9241b25b2a
262
py
Python
thenewboston_node/business_logic/models/mixins/metadata.py
nishp77/thenewboston-node
158b1f1739b2c6c9c21c80e9da854ca141f1cf8f
[ "MIT" ]
30
2021-03-05T22:08:17.000Z
2021-09-23T02:45:45.000Z
thenewboston_node/business_logic/models/mixins/metadata.py
nishp77/thenewboston-node
158b1f1739b2c6c9c21c80e9da854ca141f1cf8f
[ "MIT" ]
148
2021-03-05T23:37:50.000Z
2021-11-02T02:18:58.000Z
thenewboston_node/business_logic/models/mixins/metadata.py
nishp77/thenewboston-node
158b1f1739b2c6c9c21c80e9da854ca141f1cf8f
[ "MIT" ]
14
2021-03-05T21:58:46.000Z
2021-10-15T17:27:52.000Z
from dataclasses import dataclass from thenewboston_node.core.utils.dataclass import cover_docstring, revert_docstring from .serializable import SerializableMixin @revert_docstring @dataclass @cover_docstring class MetadataMixin(SerializableMixin): pass
20.153846
84
0.854962
48
0.183206
0
0
94
0.358779
0
0
0
0
78833315feaedc364d2bfb0b40ea41f96410349e
369
py
Python
myCompany/dashboard/containers/dashboard.py
Rom4eg/myCompany
31846a861d8b0560191e2e1d9791f101b88874df
[ "MIT" ]
null
null
null
myCompany/dashboard/containers/dashboard.py
Rom4eg/myCompany
31846a861d8b0560191e2e1d9791f101b88874df
[ "MIT" ]
null
null
null
myCompany/dashboard/containers/dashboard.py
Rom4eg/myCompany
31846a861d8b0560191e2e1d9791f101b88874df
[ "MIT" ]
null
null
null
import datetime from dashboard.mixins import DashboardMixin class DashboardContainer(object): title = "" date = None content = "" url = ""; author = "" def __init__(self, title, content, date, url, author): self.title = title self.content = content self.date = date ...
20.5
58
0.598916
307
0.831978
0
0
0
0
0
0
8
0.02168
78848f7ee34a7d0fca0d77ac1f78fbe0189d64c4
2,437
py
Python
tools/internal/tizenrt_testresult_collector.py
JoshWorld/RT-OCF
fd41fc4ccd0b3a56e6a2a1bee3e164a559a0fd45
[ "Apache-2.0" ]
15
2018-03-07T12:53:30.000Z
2021-07-26T07:08:13.000Z
tools/internal/tizenrt_testresult_collector.py
JoshWorld/RT-OCF
fd41fc4ccd0b3a56e6a2a1bee3e164a559a0fd45
[ "Apache-2.0" ]
2
2018-01-19T06:38:20.000Z
2018-04-09T06:34:28.000Z
tools/internal/tizenrt_testresult_collector.py
JoshWorld/RT-OCF
fd41fc4ccd0b3a56e6a2a1bee3e164a559a0fd45
[ "Apache-2.0" ]
4
2018-01-18T09:53:00.000Z
2020-08-30T13:09:14.000Z
#!/usr/bin/env python import glob import serial import sys from internal.common import Result import time WIFI_SSID = 'ZEROROOT' WIFI_PASSWORD = 'zeroroot' class TestResultCollector: def __init__(self, usb_device=None): if usb_device is None: usb_device = self.get_usb_tty_number() sel...
30.08642
88
0.608535
1,967
0.80714
0
0
0
0
0
0
331
0.135823
78859d3a0ec32800a98db67e89c1c45c1d8a70f3
216
py
Python
liaoxuefeng.com/023-PartialFunction.py
snownothing/Python
9b9e909b66db1c1eccfa41225919acdcd59ab4e3
[ "MIT" ]
null
null
null
liaoxuefeng.com/023-PartialFunction.py
snownothing/Python
9b9e909b66db1c1eccfa41225919acdcd59ab4e3
[ "MIT" ]
null
null
null
liaoxuefeng.com/023-PartialFunction.py
snownothing/Python
9b9e909b66db1c1eccfa41225919acdcd59ab4e3
[ "MIT" ]
null
null
null
# !/usr/bin/env python # coding: utf-8 print int('123', base = 8) def int2(x, base = 2): return int(x, base) print int2('10010') import functools int2 = functools.partial(int, base = 2) print int2('10010')
13.5
39
0.643519
0
0
0
0
0
0
0
0
56
0.259259
78888d554122d723a2a040946bd993cce961a9e0
2,685
py
Python
metalearn/metalearn/data_environments/sklearn_regression.py
cosmicBboy/ml-research
04fd31f68e7a44152caf6eaaf66ab59f136dd8f5
[ "MIT" ]
8
2018-03-04T21:14:27.000Z
2021-11-16T11:50:12.000Z
metalearn/metalearn/data_environments/sklearn_regression.py
cosmicBboy/ml-research
04fd31f68e7a44152caf6eaaf66ab59f136dd8f5
[ "MIT" ]
24
2018-08-01T04:39:35.000Z
2020-08-18T13:21:56.000Z
metalearn/metalearn/data_environments/sklearn_regression.py
cosmicBboy/ml-research
04fd31f68e7a44152caf6eaaf66ab59f136dd8f5
[ "MIT" ]
4
2020-01-22T04:21:44.000Z
2021-06-25T10:11:22.000Z
"""Module for sampling from a distribution of regression environments.""" from collections import OrderedDict from functools import partial import sklearn.datasets from .data_environment import DataEnvironment from ..data_types import FeatureType, TargetType, DataSourceType def envs(n=5, test_size=None, random_sta...
38.913043
73
0.603352
0
0
0
0
0
0
0
0
281
0.104655
7888949bd7f932e7b291514995f398653ef1a039
9,561
py
Python
tethys_apps/cli/services_commands.py
quyendong/tethys
99bcb524d5b2021b88d5fa15b7ed6b8acb460997
[ "BSD-2-Clause" ]
1
2020-10-08T20:38:33.000Z
2020-10-08T20:38:33.000Z
tethys_apps/cli/services_commands.py
quyendong/tethys
99bcb524d5b2021b88d5fa15b7ed6b8acb460997
[ "BSD-2-Clause" ]
1
2018-04-14T19:40:54.000Z
2018-04-14T19:40:54.000Z
tethys_apps/cli/services_commands.py
quyendong/tethys
99bcb524d5b2021b88d5fa15b7ed6b8acb460997
[ "BSD-2-Clause" ]
1
2021-09-07T14:47:11.000Z
2021-09-07T14:47:11.000Z
from __future__ import print_function from django.core.exceptions import ObjectDoesNotExist from django.db.utils import IntegrityError from django.forms.models import model_to_dict from .cli_colors import BOLD, pretty_output, FG_RED, FG_GREEN from .cli_helpers import add_geoserver_rest_to_endpoint from builtins impor...
41.751092
117
0.590315
86
0.008995
0
0
0
0
0
0
2,014
0.210647
788a11df4d7eb86501d6c98b081b63c1da73fda6
6,078
py
Python
graphAttack/gaUtilities/neuralNetwork.py
jgolebiowski/graphAttack
ec8488444b44d0bd54498bf917ee42d821643ee8
[ "MIT" ]
51
2017-08-16T13:04:43.000Z
2022-03-30T09:10:30.000Z
graphAttack/gaUtilities/neuralNetwork.py
jgolebiowski/graphAttack
ec8488444b44d0bd54498bf917ee42d821643ee8
[ "MIT" ]
null
null
null
graphAttack/gaUtilities/neuralNetwork.py
jgolebiowski/graphAttack
ec8488444b44d0bd54498bf917ee42d821643ee8
[ "MIT" ]
12
2017-09-27T01:10:02.000Z
2021-05-05T09:44:56.000Z
"""Neural networks utilities""" import numpy as np from ..coreDataContainers import Variable from ..operations.activationOperations import * from ..operations.costOperations import * from ..operations.twoInputOperations import * from ..operations.singleInputOperations import * from ..operations.convolutionOperation imp...
36.614458
106
0.618954
0
0
0
0
0
0
0
0
1,898
0.312274
788c4b05fc916695f80ef1ea25828672d59aa6d7
28,835
py
Python
unity/MMutils.py
kreimanlab/WhenPigsFlyContext
4d03bb29f3be3e96c2b9d1945dc08c381abae513
[ "MIT" ]
13
2021-04-07T15:39:24.000Z
2022-03-08T19:01:20.000Z
unity/MMutils.py
kreimanlab/WhenPigsFlyContext
4d03bb29f3be3e96c2b9d1945dc08c381abae513
[ "MIT" ]
1
2021-11-13T17:18:03.000Z
2021-12-03T02:05:33.000Z
unity/MMutils.py
kreimanlab/WhenPigsFlyContext
4d03bb29f3be3e96c2b9d1945dc08c381abae513
[ "MIT" ]
1
2021-04-18T18:14:51.000Z
2021-04-18T18:14:51.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Nov 1 17:14:58 2020 @author: mengmi """ import IPython.display # cd into virtualhome repo import sys sys.path.append('../simulation/') from unity_simulator.comm_unity import UnityCommunication import PIL import numpy as np from collections import defa...
37.69281
157
0.594902
0
0
0
0
0
0
0
0
5,086
0.176383
788e61041c9a49c346500289a402234d7ce95ad1
6,820
py
Python
jobs.py
jeinarsson/josync
03cd5690f72d1dffb46f5668c3539fd7da2ae9a9
[ "MIT" ]
null
null
null
jobs.py
jeinarsson/josync
03cd5690f72d1dffb46f5668c3539fd7da2ae9a9
[ "MIT" ]
2
2015-01-13T23:01:22.000Z
2015-08-13T10:55:43.000Z
jobs.py
jeinarsson/josync
03cd5690f72d1dffb46f5668c3539fd7da2ae9a9
[ "MIT" ]
null
null
null
import utils import json import os import logging import subprocess as sp import re import datetime logger = logging.getLogger(__name__) class Job(object): """Parent class for backup jobs.""" def __init__(self,params): super(Job, self).__init__() logger.debug("Entering Job constructor.") ...
36.084656
114
0.590469
5,901
0.864996
0
0
0
0
0
0
1,973
0.289211
788eb0842dabcf5bdcfbc33b4a3c93db411e4720
316
py
Python
test/testConnectDB.py
dantegg/pythonWeather
ceda06e0fb2fe68695b56f8bf0d206099d8779d9
[ "MIT" ]
null
null
null
test/testConnectDB.py
dantegg/pythonWeather
ceda06e0fb2fe68695b56f8bf0d206099d8779d9
[ "MIT" ]
null
null
null
test/testConnectDB.py
dantegg/pythonWeather
ceda06e0fb2fe68695b56f8bf0d206099d8779d9
[ "MIT" ]
null
null
null
#coding:utf-8 import sys sys.path.append("..") from connectDB import connectDB testDB = connectDB testWeatherRecord = { "collectTime": '2016-10-16', "ctemp":'22' } testconnection = testDB.connectMongo() testDB.saveWeather(testWeatherRecord,testconnection) testDB.printWeather(testconnection)
18.588235
52
0.727848
0
0
0
0
0
0
0
0
53
0.167722
789058adc310f2219139e2b3fcb62604800cf282
1,249
py
Python
babybuddy/migrations/0003_add_refresh_help_text.py
Gitoffomalawn/babybuddy
3fc147c2f16167858284e2bbec657b1756157fd3
[ "BSD-2-Clause" ]
922
2017-10-26T13:15:40.000Z
2020-02-05T19:06:13.000Z
babybuddy/migrations/0003_add_refresh_help_text.py
Gitoffomalawn/babybuddy
3fc147c2f16167858284e2bbec657b1756157fd3
[ "BSD-2-Clause" ]
109
2017-10-26T14:00:30.000Z
2020-02-05T23:37:11.000Z
babybuddy/migrations/0003_add_refresh_help_text.py
Gitoffomalawn/babybuddy
3fc147c2f16167858284e2bbec657b1756157fd3
[ "BSD-2-Clause" ]
87
2017-10-26T13:15:54.000Z
2020-01-25T12:49:46.000Z
# Generated by Django 2.0.5 on 2018-07-15 14:16 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("babybuddy", "0002_add_settings"), ] operations = [ migrations.AlterField( model_name="settings", nam...
33.756757
109
0.491593
1,140
0.91273
0
0
0
0
0
0
284
0.227382
78907edec7992fb491f3918fa2ca9ac505827ceb
1,553
py
Python
gender-age/test.py
hazxone/insightface
215e0b602c05be204051225cf84d3691a8672b31
[ "MIT" ]
null
null
null
gender-age/test.py
hazxone/insightface
215e0b602c05be204051225cf84d3691a8672b31
[ "MIT" ]
null
null
null
gender-age/test.py
hazxone/insightface
215e0b602c05be204051225cf84d3691a8672b31
[ "MIT" ]
null
null
null
import face_model import argparse import cv2 import sys import numpy as np import datetime import os import csv parser = argparse.ArgumentParser(description='face model test') # general parser.add_argument('--image-size', default='112,112', help='') parser.add_argument('--image', default='Tom_Hanks_54745.png', help=''...
31.693878
119
0.692853
0
0
0
0
0
0
0
0
746
0.480361
7890861cf35effbd978b1f446fe1133e0f69c410
12,683
py
Python
analysis/analysis/seg_stats.py
asaran/sawyer-demos_human-audio
b9f1d1df152234569a95b525441e2afba43f54bf
[ "MIT" ]
null
null
null
analysis/analysis/seg_stats.py
asaran/sawyer-demos_human-audio
b9f1d1df152234569a95b525441e2afba43f54bf
[ "MIT" ]
null
null
null
analysis/analysis/seg_stats.py
asaran/sawyer-demos_human-audio
b9f1d1df152234569a95b525441e2afba43f54bf
[ "MIT" ]
null
null
null
# Analyze the ground truth hand annotated audio features with error presence/segment presence. (Level II) # [What kind of mistake types there are? What are the types of audio that are labeled there?] # TODO: bar plots indicating how frequent errors/segment types are # TODO: What is the distribution of human audio typ...
46.457875
119
0.498305
11,734
0.925175
0
0
0
0
0
0
3,437
0.270993
7890995ad59e5c3bbb5109c842b33e0e62a5d810
1,255
py
Python
exceptions.py
SynStratos/Fitness_Pose_Machine
006576f36b2e5c9b592a1585a91791a0af950814
[ "MIT" ]
3
2020-06-18T21:43:07.000Z
2021-12-18T22:43:44.000Z
exceptions.py
SynStratos/Fitness_Pose_Machine
006576f36b2e5c9b592a1585a91791a0af950814
[ "MIT" ]
null
null
null
exceptions.py
SynStratos/Fitness_Pose_Machine
006576f36b2e5c9b592a1585a91791a0af950814
[ "MIT" ]
null
null
null
class BadRepetitionException(Exception): """ exception raised for a bad repetition """ def __init__(self, *args): super(BadRepetitionException, self).__init__(*args) class NoneRepetitionException(Exception): """ exception raised for repetition ended without movements """ def __...
27.282609
84
0.690837
1,240
0.988048
0
0
0
0
0
0
430
0.342629
7890d4f24ed4a643bfc95b0ced319e559f2a1e26
4,786
py
Python
AVSD_Baseline/Feature_Extraction/extract_i3d_rgb_features.py
hudaAlamri/DSTC7-Audio-Visual-Scene-Aware-Dialog-AVSD-Challenge
6a5ee8542132ad6634ee02896d7c935b8c447d78
[ "MIT" ]
51
2018-06-04T11:34:58.000Z
2022-03-09T09:18:08.000Z
AVSD_Baseline/Feature_Extraction/extract_i3d_rgb_features.py
TwentyBN/DSTC7-Audio-Visual-Scene-Aware-Dialog-AVSD-Challenge
61ea13cd680fc4743ad20e010c6d3047e03b993c
[ "MIT" ]
4
2018-08-17T12:40:34.000Z
2020-01-09T19:00:56.000Z
AVSD_Baseline/Feature_Extraction/extract_i3d_rgb_features.py
hudaAlamri/DSTC7-Audio-Visual-Scene-Aware-Dialog-AVSD-Challenge
6a5ee8542132ad6634ee02896d7c935b8c447d78
[ "MIT" ]
13
2018-06-01T19:50:44.000Z
2020-12-04T03:37:48.000Z
"""I3D feature extration using a tensorflow model. Copyright 2018 Mitsubishi Electric Research Labs """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import h5py import numpy as np import tensorflow as tf import time import os import scipy.io as sio im...
39.553719
120
0.602382
0
0
0
0
0
0
0
0
632
0.132052
7891d89406deccb9af158b35a76ea6e08c700edb
1,037
py
Python
code/add_country_lat_lon.py
ParhamP/Global-Trade-Network
106d3e55fba04e72feda2844d092745ce170e55d
[ "BSD-3-Clause" ]
2
2021-08-22T10:02:08.000Z
2021-11-09T11:30:31.000Z
code/add_country_lat_lon.py
ParhamP/Global-Trade-Network
106d3e55fba04e72feda2844d092745ce170e55d
[ "BSD-3-Clause" ]
null
null
null
code/add_country_lat_lon.py
ParhamP/Global-Trade-Network
106d3e55fba04e72feda2844d092745ce170e55d
[ "BSD-3-Clause" ]
null
null
null
import csv import collections # iterator and counter libraries with open("../MIT_WT_datafiles/country_names.csv", 'r') as cntry, open("../MIT_WT_datafiles/country_lat_lon_from_google.csv", 'r') as ll, open("../MIT_WT_datafiles/cntry_lat_lon_combined.csv", 'w') as output: reader = csv.reader(cntry) #,delimiter='...
35.758621
208
0.66731
0
0
0
0
0
0
0
0
379
0.365477
7895a56533a856d00ddcc556bf216b2bb9177e04
6,354
py
Python
ermaket/api/system/auth.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
ermaket/api/system/auth.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
ermaket/api/system/auth.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
import logging from sqlalchemy.orm.exc import NoResultFound from werkzeug.security import generate_password_hash from ermaket.api.database import DBConn from ermaket.api.models import Models, NamesConverter from ermaket.api.system.hierarchy import AccessRight, PrebuiltPageType from ermaket.utils import Singleton fro...
34.532609
77
0.583727
5,594
0.88039
0
0
79
0.012433
0
0
349
0.054926
7895bdd07a7517b3b9e9dfa70984e814010bc677
114
py
Python
winter/routing/query_parameters/query_parameter.py
EvgenySmekalin/winter
24b6a02f958478547a4a120324823743a1f7e1a1
[ "MIT" ]
9
2019-01-24T11:50:19.000Z
2019-07-05T07:58:46.000Z
winter/routing/query_parameters/query_parameter.py
EvgenySmekalin/winter
24b6a02f958478547a4a120324823743a1f7e1a1
[ "MIT" ]
100
2019-01-29T08:11:38.000Z
2020-04-03T12:00:42.000Z
winter/routing/query_parameters/query_parameter.py
EvgenySmekalin/winter
24b6a02f958478547a4a120324823743a1f7e1a1
[ "MIT" ]
8
2020-07-16T13:56:50.000Z
2021-12-27T03:33:23.000Z
import dataclasses @dataclasses.dataclass class QueryParameter: name: str map_to: str explode: bool
12.666667
22
0.72807
69
0.605263
0
0
92
0.807018
0
0
0
0
7897d25e3d9c9fe5aa2e8cfd3788a5de8d96e834
2,791
py
Python
pylti1p3/launch_data_storage/base.py
edubadges/pylti1.3
46534384b79076d254ff3e94676ae6155e77a05e
[ "MIT" ]
62
2019-08-13T11:24:36.000Z
2022-03-11T16:24:55.000Z
pylti1p3/launch_data_storage/base.py
edubadges/pylti1.3
46534384b79076d254ff3e94676ae6155e77a05e
[ "MIT" ]
58
2019-08-13T13:27:27.000Z
2022-03-28T11:00:56.000Z
pylti1p3/launch_data_storage/base.py
edubadges/pylti1.3
46534384b79076d254ff3e94676ae6155e77a05e
[ "MIT" ]
35
2019-10-11T18:26:02.000Z
2022-03-29T08:33:00.000Z
import typing as t from abc import ABCMeta, abstractmethod if t.TYPE_CHECKING: from ..request import Request _T_DISABLED_SESSION_ID = t.TypeVar('_T_DISABLED_SESSION_ID', bound='DisableSessionId') T = t.TypeVar('T') class LaunchDataStorage(t.Generic[T]): __metaclass__ = ABCMeta _request = None # type: t...
29.691489
86
0.627732
2,564
0.918667
0
0
478
0.171265
0
0
603
0.216052
789a940855a4fdec7e550813b2608db3bb1d258c
2,096
py
Python
sphinxcontrib/confluencebuilder/translator/shared.py
richardhofman6/sphinxcontrib-confluencebuilder
617fbb99b13751feafe793773268da87a3448849
[ "BSD-2-Clause" ]
null
null
null
sphinxcontrib/confluencebuilder/translator/shared.py
richardhofman6/sphinxcontrib-confluencebuilder
617fbb99b13751feafe793773268da87a3448849
[ "BSD-2-Clause" ]
null
null
null
sphinxcontrib/confluencebuilder/translator/shared.py
richardhofman6/sphinxcontrib-confluencebuilder
617fbb99b13751feafe793773268da87a3448849
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ sphinxcontrib.confluencebuilder.translator.shared ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2016-2018 by the contributors (see AUTHORS file). :license: BSD, see LICENSE.txt for details. """ from __future__ import (absolute_import, print_functio...
34.360656
82
0.694179
1,518
0.724237
0
0
0
0
0
0
812
0.387405
789bdd5e34a470287b773e590ecc610782669894
545
py
Python
pyro/CaseInsensitiveList.py
dmdemoura/pyro
cf4b6651a9e5d603abb6e0b8c0b3bbaf407c0b08
[ "MIT" ]
null
null
null
pyro/CaseInsensitiveList.py
dmdemoura/pyro
cf4b6651a9e5d603abb6e0b8c0b3bbaf407c0b08
[ "MIT" ]
null
null
null
pyro/CaseInsensitiveList.py
dmdemoura/pyro
cf4b6651a9e5d603abb6e0b8c0b3bbaf407c0b08
[ "MIT" ]
null
null
null
from collections import UserList class CaseInsensitiveList(UserList): """ Simple list type for storing and comparing strings case-insensitively """ def __contains__(self, item: object) -> bool: if isinstance(item, str): return any(item.casefold() == x.casefold() for x in s...
30.277778
75
0.607339
505
0.926606
0
0
0
0
0
0
87
0.159633
789ccecbc53bbdded880ac33de58a7bbeecb50e7
1,062
py
Python
pinnwand/cli.py
aether-space/pinnwand
427c8fe68486f2afa0832abbe584595e51848c03
[ "BSD-3-Clause" ]
null
null
null
pinnwand/cli.py
aether-space/pinnwand
427c8fe68486f2afa0832abbe584595e51848c03
[ "BSD-3-Clause" ]
null
null
null
pinnwand/cli.py
aether-space/pinnwand
427c8fe68486f2afa0832abbe584595e51848c03
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys from datetime import datetime, timedelta from pinnwand.models import Base, engine, session, Paste def main(): args = sys.argv[1:] if args: if args[0] == "init_db": Base.metadata.create_all(engine) if args[0] == "add": paste = Paste("<...
25.285714
90
0.548964
0
0
0
0
0
0
0
0
114
0.107345
789e80d561984bf5a1ebb8afe7abe71ef6eeb87f
296
py
Python
utils.py
debater-coder/py-simple-tracer
ac8ccfd1830be9072502fb27faced180ed893390
[ "MIT" ]
null
null
null
utils.py
debater-coder/py-simple-tracer
ac8ccfd1830be9072502fb27faced180ed893390
[ "MIT" ]
null
null
null
utils.py
debater-coder/py-simple-tracer
ac8ccfd1830be9072502fb27faced180ed893390
[ "MIT" ]
null
null
null
import numpy as np def lerp(a, b, t): return a * (1 - t) + b * t def normalize(vector): return vector / np.linalg.norm(vector) def random_unit_vector(): point = np.random.rand(3) while np.dot(point, point) >= 1: point = np.random.rand(3) return normalize(point)
17.411765
42
0.614865
0
0
0
0
0
0
0
0
0
0
789fa2729424c49d88156fb0210d7cb6917ce60b
357
py
Python
examples/grid_numbers.py
lebalz/smartphone-connector
303cbdb851416c1da7329e7bae2ee4a12aa7f5b0
[ "MIT" ]
1
2021-01-24T01:22:12.000Z
2021-01-24T01:22:12.000Z
examples/grid_numbers.py
lebalz/smartphone-connector
303cbdb851416c1da7329e7bae2ee4a12aa7f5b0
[ "MIT" ]
1
2020-09-14T17:12:53.000Z
2020-09-14T17:12:53.000Z
examples/grid_numbers.py
lebalz/smartphone-connector
303cbdb851416c1da7329e7bae2ee4a12aa7f5b0
[ "MIT" ]
1
2020-09-14T12:51:48.000Z
2020-09-14T12:51:48.000Z
import os import sys from pprint import pprint sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from smartphone_connector import Connector from examples.server_address import SERVER_ADDRESS device = Connector(SERVER_ADDRESS, 'FooBar') device.set_grid([1, 2, 3, 4], base_color='blue') ...
25.5
82
0.77591
0
0
0
0
0
0
0
0
18
0.05042
78a2c697223c67940447a26395bef5e289aebf8d
736
py
Python
tests/actions/_action.py
zduey/shap
1bb8203f2d43f7552396a5f26167a258cbdc505c
[ "MIT" ]
16,097
2016-12-01T20:01:26.000Z
2022-03-31T20:27:40.000Z
tests/actions/_action.py
zduey/shap
1bb8203f2d43f7552396a5f26167a258cbdc505c
[ "MIT" ]
2,217
2017-09-18T20:06:45.000Z
2022-03-31T21:00:25.000Z
tests/actions/_action.py
zduey/shap
1bb8203f2d43f7552396a5f26167a258cbdc505c
[ "MIT" ]
2,634
2017-06-29T21:30:46.000Z
2022-03-30T07:30:36.000Z
""" Unit tests for the Exact explainer. """ # pylint: disable=missing-function-docstring import numpy as np import pandas as pd import shap def test_create_and_run(): X = pd.DataFrame({"feature1": np.ones(5), "feature2": np.ones(5)}) class IncreaseFeature1(shap.actions.Action): """ Sample action. ...
23.741935
70
0.601902
346
0.470109
0
0
0
0
0
0
194
0.263587
78a3b061984d25f892de9e2d172a18884e735177
1,781
py
Python
fastquotes/fund/history.py
YangzhenZhao/fastquotes
1faba9f7fc7801a11359001e08cefa9cfbc41d64
[ "MIT" ]
4
2020-11-18T11:25:00.000Z
2021-04-08T01:02:49.000Z
fastquotes/fund/history.py
YangzhenZhao/fastquotes
1faba9f7fc7801a11359001e08cefa9cfbc41d64
[ "MIT" ]
null
null
null
fastquotes/fund/history.py
YangzhenZhao/fastquotes
1faba9f7fc7801a11359001e08cefa9cfbc41d64
[ "MIT" ]
1
2020-11-18T11:25:01.000Z
2020-11-18T11:25:01.000Z
import json from datetime import datetime from typing import Optional import requests from ..const import CUSTOM_HEADER def get_dividend(msg: str) -> Optional[float]: if not msg: return None left, right = 0, len(msg) - 1 while not msg[left].isdigit() or not msg[right].isdigit(): if not m...
30.706897
83
0.590679
0
0
0
0
0
0
0
0
246
0.133478
78a4817896a145e970020819125dee94a1bc26c2
1,221
py
Python
Code/venv/src/Unit Testing/test_register.py
WebMetadataRetrieval/15-Web_Metadata_Retrieval
96a9c8869ccc5429c4de9e97d37705bbb9e19c5b
[ "Apache-2.0" ]
null
null
null
Code/venv/src/Unit Testing/test_register.py
WebMetadataRetrieval/15-Web_Metadata_Retrieval
96a9c8869ccc5429c4de9e97d37705bbb9e19c5b
[ "Apache-2.0" ]
38
2021-04-01T18:09:31.000Z
2021-05-08T17:27:03.000Z
Code/venv/src/Unit Testing/test_register.py
WebMetadataRetrieval/15-Web_Metadata_Retrieval
96a9c8869ccc5429c4de9e97d37705bbb9e19c5b
[ "Apache-2.0" ]
3
2021-04-16T07:25:11.000Z
2022-01-29T10:24:33.000Z
from django.conf import settings from django.test import TestCase from django.contrib.auth import get_user_model # Create your tests here. User = get_user_model() class RegistrationTestCase(TestCase): # Setup for our Tests def setUp(self): user_a = User(email='abcd@invalid.com') user_a_pw =...
30.525
72
0.670762
1,053
0.862408
0
0
0
0
0
0
318
0.260442
78a496b2a0070c4f4f9eaf3fbeda74f89fbfda56
110
py
Python
gdbcat/__init__.py
mcdeid/gdb-cat
2a861eaa3ee0360f26266397f47c2a5c16c0281f
[ "MIT" ]
null
null
null
gdbcat/__init__.py
mcdeid/gdb-cat
2a861eaa3ee0360f26266397f47c2a5c16c0281f
[ "MIT" ]
null
null
null
gdbcat/__init__.py
mcdeid/gdb-cat
2a861eaa3ee0360f26266397f47c2a5c16c0281f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Sep 25 15:06:49 2019 @author: smcdeid """ from .cat import Gdbcat
13.75
35
0.627273
0
0
0
0
0
0
0
0
84
0.763636
78a63407fdf170dd04e91df753c26e7db2382f0f
6,405
py
Python
python-example/test_tittle_collor_and_font.py
eugene-petrash/selenium-webdriver-full-tutorial
a83f77982b28c2228b48e531f34ae6ff24808039
[ "Apache-2.0" ]
null
null
null
python-example/test_tittle_collor_and_font.py
eugene-petrash/selenium-webdriver-full-tutorial
a83f77982b28c2228b48e531f34ae6ff24808039
[ "Apache-2.0" ]
null
null
null
python-example/test_tittle_collor_and_font.py
eugene-petrash/selenium-webdriver-full-tutorial
a83f77982b28c2228b48e531f34ae6ff24808039
[ "Apache-2.0" ]
null
null
null
import pytest from selenium import webdriver from selenium.webdriver.common.by import By import regex # pip install regex @pytest.fixture def driver(request): wd = webdriver.Chrome() wd.implicitly_wait(2) request.addfinalizer(wd.quit) return wd def test_tittle_collor_and_font(driver): driver.get...
62.794118
156
0.779859
0
0
0
0
138
0.021546
0
0
1,308
0.204215
78a7a55aa4340aef048d0c56e138e8fbbb85d556
102
py
Python
net_automation/apps.py
Nikolas-01/Lesson_21-
025ff91547465a57e6a8d5911896fcdfb8c7e3f8
[ "MIT" ]
null
null
null
net_automation/apps.py
Nikolas-01/Lesson_21-
025ff91547465a57e6a8d5911896fcdfb8c7e3f8
[ "MIT" ]
4
2021-03-30T14:19:21.000Z
2021-09-22T19:33:36.000Z
net_automation/apps.py
Nikolas-01/Lesson_21-
025ff91547465a57e6a8d5911896fcdfb8c7e3f8
[ "MIT" ]
null
null
null
from django.apps import AppConfig class NetAutomationConfig(AppConfig): name = 'net_automation'
17
37
0.784314
65
0.637255
0
0
0
0
0
0
16
0.156863
78a897b7f40cac7c3cf59971f4394a4765aa060b
599
py
Python
dacy/tests/test_download.py
MalteHB/DaCy
1c3d348b14368c772d13344d35dc076b01d5bf07
[ "Apache-2.0" ]
1
2021-07-24T19:14:34.000Z
2021-07-24T19:14:34.000Z
dacy/tests/test_download.py
MalteHB/DaCy
1c3d348b14368c772d13344d35dc076b01d5bf07
[ "Apache-2.0" ]
null
null
null
dacy/tests/test_download.py
MalteHB/DaCy
1c3d348b14368c772d13344d35dc076b01d5bf07
[ "Apache-2.0" ]
null
null
null
import urllib import os from dacy.download import models_url from dacy.load import load def test_urls(): for m, url in models_url.items(): print(m) req = urllib.request.Request(url, method="HEAD") f = urllib.request.urlopen(req) assert f.status == 200 print("\t Status:", f....
24.958333
56
0.599332
0
0
0
0
0
0
0
0
103
0.171953
78ab84fbfc0799cfbe7822b26a69af440075f9ad
19,503
py
Python
flowsa/USDA_CoA_Cropland.py
ericmbell1/flowsa
d251301864289a4de42dda118c9c6da41bcf4cf0
[ "CC0-1.0" ]
null
null
null
flowsa/USDA_CoA_Cropland.py
ericmbell1/flowsa
d251301864289a4de42dda118c9c6da41bcf4cf0
[ "CC0-1.0" ]
null
null
null
flowsa/USDA_CoA_Cropland.py
ericmbell1/flowsa
d251301864289a4de42dda118c9c6da41bcf4cf0
[ "CC0-1.0" ]
null
null
null
# USDA_CoA_Cropland.py (flowsa) # !/usr/bin/env python3 # coding=utf-8 import json import numpy as np import pandas as pd from flowsa.common import * from flowsa.flowbyfunctions import assign_fips_location_system, sector_disaggregation def CoA_Cropland_URL_helper(build_url, config, args): """This helper function...
53.57967
153
0.654463
0
0
0
0
0
0
0
0
10,308
0.528534
78abd190bf2a63aa7b7a97ea20a03a84acf5f2f9
1,032
py
Python
Regular_Expressions/Regular_Expressions.py
Jadams29/Coding_Problems
780af79cfa3933922a06b571e13322ff517b87ef
[ "MIT" ]
null
null
null
Regular_Expressions/Regular_Expressions.py
Jadams29/Coding_Problems
780af79cfa3933922a06b571e13322ff517b87ef
[ "MIT" ]
null
null
null
Regular_Expressions/Regular_Expressions.py
Jadams29/Coding_Problems
780af79cfa3933922a06b571e13322ff517b87ef
[ "MIT" ]
null
null
null
# Regular Expressions (RegEx) are used to # 1. Search for a specific string in a large amount of data # 2. Verify that a string has the proper format (Email, Phone #) # 3. Find a string and replace it with another string # 4. Format data into the proper form for importing for example import re if re.search("ape", "T...
23.454545
89
0.689922
0
0
0
0
0
0
0
0
528
0.511628
78ad4b986a8ab80a87cd7b6fae6377801b600a11
29
py
Python
test_functions/kafka_function.py
vudung45/ProtoK
ca0a84c46bcd02cf50f1e8565a00ae602a10b3c7
[ "MIT" ]
1
2021-07-15T11:29:56.000Z
2021-07-15T11:29:56.000Z
test_functions/kafka_function.py
vudung45/ProtoK
ca0a84c46bcd02cf50f1e8565a00ae602a10b3c7
[ "MIT" ]
null
null
null
test_functions/kafka_function.py
vudung45/ProtoK
ca0a84c46bcd02cf50f1e8565a00ae602a10b3c7
[ "MIT" ]
null
null
null
def kafka(msg): print(msg)
7.25
15
0.655172
0
0
0
0
0
0
0
0
0
0
78ae8759ea2b129373c29e7f5013918d787344a7
10,347
py
Python
doc/jupyter_execute/notebooks/protocol_examples.py
edshee/seldon-core
78c10fbca16a5e2a0c25b9673aa3deb220070e26
[ "Apache-2.0" ]
null
null
null
doc/jupyter_execute/notebooks/protocol_examples.py
edshee/seldon-core
78c10fbca16a5e2a0c25b9673aa3deb220070e26
[ "Apache-2.0" ]
null
null
null
doc/jupyter_execute/notebooks/protocol_examples.py
edshee/seldon-core
78c10fbca16a5e2a0c25b9673aa3deb220070e26
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Basic Examples with Different Protocols # # ## Prerequisites # # * A kubernetes cluster with kubectl configured # * curl # * grpcurl # * pygmentize # # ## Examples # # * [Seldon Protocol](#Seldon-Protocol-Model) # * [Tensorflow Protocol](#Tensorflow-Protocol-Model...
35.313993
912
0.663381
0
0
0
0
129
0.012467
0
0
8,093
0.782159
78b114541d2883d76b5e6615c0019a1dbcd48b43
1,129
py
Python
src/experiments/models/index_emb_classifier.py
clemens33/thesis
c94e066c2fe22881a7465eb9c3859bd02138748e
[ "MIT" ]
null
null
null
src/experiments/models/index_emb_classifier.py
clemens33/thesis
c94e066c2fe22881a7465eb9c3859bd02138748e
[ "MIT" ]
null
null
null
src/experiments/models/index_emb_classifier.py
clemens33/thesis
c94e066c2fe22881a7465eb9c3859bd02138748e
[ "MIT" ]
null
null
null
import torch from torch import nn from tabnet_lightning import TabNetClassifier class IndexEmbTabNetClassifier(TabNetClassifier): """test model implementation using index based embeddings""" def __init__(self, **kwargs): super(IndexEmbTabNetClassifier, self).__init__(**kwargs) self.index_em...
28.225
98
0.635075
617
0.546501
0
0
0
0
0
0
518
0.458813
78b122bff610d3b425a22d6e2a005f675785a7e9
11,595
py
Python
ballgameActorCritic.py
ranok92/toySocialNav
06b935621c088605f0d395c01ae73e2f37a2e7e4
[ "MIT" ]
1
2021-05-26T01:41:13.000Z
2021-05-26T01:41:13.000Z
ballgameActorCritic.py
ranok92/toySocialNav
06b935621c088605f0d395c01ae73e2f37a2e7e4
[ "MIT" ]
null
null
null
ballgameActorCritic.py
ranok92/toySocialNav
06b935621c088605f0d395c01ae73e2f37a2e7e4
[ "MIT" ]
null
null
null
import ballenv_pygame as BE #from flat_game import ballgamepyg as BE import numpy as np from itertools import count from collections import namedtuple import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.distributions import Categorical import datetime from matplotli...
29.206549
170
0.601811
1,593
0.137387
0
0
0
0
0
0
2,915
0.251401
78b1ddaf10061b10db5d28ce24732f514b36c95b
616
py
Python
MOD/game_stats.py
divineflatus/MOD
988299e0e75d8f8fa7893c22ab0db707f02a8f1d
[ "MIT" ]
null
null
null
MOD/game_stats.py
divineflatus/MOD
988299e0e75d8f8fa7893c22ab0db707f02a8f1d
[ "MIT" ]
null
null
null
MOD/game_stats.py
divineflatus/MOD
988299e0e75d8f8fa7893c22ab0db707f02a8f1d
[ "MIT" ]
null
null
null
import pygame #Class to store game statistics class GameStats(): def __init__(self, mod_settings): #Initialize MOD settings self.mod_settings = mod_settings #Number of lives available self.ninjas_left = self.mod_settings.ninja_limit #Starts inactive until 'Pla...
24.64
57
0.641234
564
0.915584
0
0
0
0
0
0
185
0.300325
78b3b7b20fc77d21a6acfb8879b55256c9895bc0
101
py
Python
data.py
alexhong121/py_pt
78f11f2a2fed54154017371a97de563a8fffcd81
[ "MIT" ]
null
null
null
data.py
alexhong121/py_pt
78f11f2a2fed54154017371a97de563a8fffcd81
[ "MIT" ]
null
null
null
data.py
alexhong121/py_pt
78f11f2a2fed54154017371a97de563a8fffcd81
[ "MIT" ]
null
null
null
# 檢查變數的型態是否正確 isinstance(7,int) print(isinstance(7,int)) # True a=7 print(type(a)) # <class 'int'>
14.428571
31
0.673267
0
0
0
0
0
0
0
0
57
0.463415
78b58b48b827ca39fceb691318d6f8b6d3109a50
1,985
py
Python
RealDataset_SocialChemical/datasets/dataset.py
GKAT-NeurIPS2021/GKAT_Experiments
38eda546bfedfaf5a86999309c30595d9fe83cc7
[ "MIT" ]
3
2021-07-29T05:20:45.000Z
2022-01-07T01:24:44.000Z
RealDataset_SocialChemical/datasets/dataset.py
GKAT-NeurIPS2021/GKAT_Experiments
38eda546bfedfaf5a86999309c30595d9fe83cc7
[ "MIT" ]
null
null
null
RealDataset_SocialChemical/datasets/dataset.py
GKAT-NeurIPS2021/GKAT_Experiments
38eda546bfedfaf5a86999309c30595d9fe83cc7
[ "MIT" ]
null
null
null
import numpy as np class GraphDataset: def __init__(self, data): self.data = data def __getitem__(self, index): return self.data[index] def __len__(self): return len(self.data) def get_targets(self): targets = [d.y.item() for d in self.data] return np.array(t...
29.191176
98
0.580353
1,960
0.987406
0
0
0
0
0
0
706
0.355668
78b6dc301c1b043d7640e21cef75902cf0f201a3
1,373
py
Python
tests/grammar/test_sql_file.py
Daniihh/sqlpyparser
aad1d613c02d4f8fa6b833c060a683cf7e194b1c
[ "MIT" ]
28
2016-02-13T10:20:21.000Z
2022-03-10T02:41:58.000Z
tests/grammar/test_sql_file.py
Daniihh/sqlpyparser
aad1d613c02d4f8fa6b833c060a683cf7e194b1c
[ "MIT" ]
22
2016-02-15T15:55:09.000Z
2017-09-12T13:49:17.000Z
tests/grammar/test_sql_file.py
Daniihh/sqlpyparser
aad1d613c02d4f8fa6b833c060a683cf7e194b1c
[ "MIT" ]
16
2016-02-15T16:41:23.000Z
2021-05-18T04:51:52.000Z
# -*- encoding:utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import unittest from mysqlparse.grammar.sql_file import sql_file_syntax class SqlFileSyntaxTest(unittest.TestCase): def test_multiple_statements(self): sql_file = sql_file_syntax.parseString(""" ...
35.205128
82
0.674436
1,188
0.865259
0
0
0
0
0
0
776
0.565186
78b76294cbc37248ab04281f09991a89a57a24b6
2,061
py
Python
barchart2.py
ahealy19/F-IDE-2016
82fd4664fc105174cbe2f1a57e2a099fbf3c81d8
[ "Apache-2.0" ]
2
2017-10-13T09:16:01.000Z
2018-01-23T04:03:19.000Z
barchart2.py
ahealy19/F-IDE-2016
82fd4664fc105174cbe2f1a57e2a099fbf3c81d8
[ "Apache-2.0" ]
null
null
null
barchart2.py
ahealy19/F-IDE-2016
82fd4664fc105174cbe2f1a57e2a099fbf3c81d8
[ "Apache-2.0" ]
null
null
null
import numpy as np from pandas import DataFrame import matplotlib.pyplot as plt import os """ plots the results for each solver and strategy on the test set as a stacked barchart Andrew Healy, Aug. 2016 """ fig = plt.figure(figsize=(10,5)) ax = fig.add_subplot(1,1,1) df = DataFrame.from_csv('data_for_second_barcha...
28.232877
96
0.663755
0
0
0
0
0
0
0
0
508
0.246482
78b8980c397285a3ee6cf5a9943a92060add2e64
727
py
Python
Procedural Paradigm/exercises/week-7-basic/HitungJarak.py
morenzoe/IF1210_Dasar_Pemrograman
6bfd5300c18bfb9c6ba80f6108e2206aa9cbf015
[ "BSD-3-Clause" ]
null
null
null
Procedural Paradigm/exercises/week-7-basic/HitungJarak.py
morenzoe/IF1210_Dasar_Pemrograman
6bfd5300c18bfb9c6ba80f6108e2206aa9cbf015
[ "BSD-3-Clause" ]
null
null
null
Procedural Paradigm/exercises/week-7-basic/HitungJarak.py
morenzoe/IF1210_Dasar_Pemrograman
6bfd5300c18bfb9c6ba80f6108e2206aa9cbf015
[ "BSD-3-Clause" ]
1
2022-02-21T05:03:26.000Z
2022-02-21T05:03:26.000Z
# Program HitungJarak # Menghitung jarak (s) berdasarkan kecepatan (v) dan waktu tempuh (t), yaitu: s = v * t # KAMUS # s : float # v : float # t : float # ALGORITMA v = float(input()) # menerima input kecepatan dalam m/s t = float (input()) # menerima input waktu dalam s s = v * t # menghitung jarak dalam m print...
21.382353
88
0.671252
0
0
0
0
0
0
0
0
652
0.896836
78b92735f679218e246415e9c15eb48e474ed578
4,414
py
Python
os_xml_automation/text_manipulation/_text_manipulation_mapper.py
osfunapps/os-xml-automation-py
2e339642fcfa11a9b71c231c652e6e3aa3849354
[ "MIT" ]
1
2020-10-25T10:30:40.000Z
2020-10-25T10:30:40.000Z
os_xml_automation/text_manipulation/_text_manipulation_mapper.py
osfunapps/os-xml-automation-py
2e339642fcfa11a9b71c231c652e6e3aa3849354
[ "MIT" ]
null
null
null
os_xml_automation/text_manipulation/_text_manipulation_mapper.py
osfunapps/os-xml-automation-py
2e339642fcfa11a9b71c231c652e6e3aa3849354
[ "MIT" ]
null
null
null
import os_xml_handler.xml_handler as xh from os_xml_automation import shared_res as shared_res from os_xml_automation import shared_tools as shared_tools from os_xml_automation.text_manipulation import _res as res # manipulate the files by the text mapper def manipulate(xml_path, xml, place_holder_map): file_nod...
55.873418
187
0.783643
0
0
0
0
0
0
0
0
452
0.102401
78b964ea1f80a7b69e03614379bba228f287598a
2,304
py
Python
src/lib/mine/task/task_manager.py
rdw20170120/workstation
ed19aa930a83885c2a8cb58eb0bb5afe58f95df3
[ "MIT" ]
null
null
null
src/lib/mine/task/task_manager.py
rdw20170120/workstation
ed19aa930a83885c2a8cb58eb0bb5afe58f95df3
[ "MIT" ]
2
2021-04-06T18:07:32.000Z
2021-06-02T01:50:40.000Z
src/lib/mine/task/task_manager.py
rdw20170120/workstation
ed19aa930a83885c2a8cb58eb0bb5afe58f95df3
[ "MIT" ]
null
null
null
#!/usr/bin/env false """Manage tasks.""" # Internal packages (absolute references, distributed with Python) from logging import getLogger # External packages (absolute references, NOT distributed with Python) # Library modules (absolute references, NOT packaged, in project) from task.exception import Abort from task...
31.135135
78
0.613715
1,786
0.775174
0
0
120
0.052083
0
0
604
0.262153
78bb9f6fead8743af1a26622df014e1a85ee9267
5,002
py
Python
domonic/CDN.py
Jordan-Cottle/domonic
05d70af0d1564d3ba80c860bb5f5bfe089293b18
[ "MIT" ]
1
2022-03-09T03:39:04.000Z
2022-03-09T03:39:04.000Z
domonic/CDN.py
Jordan-Cottle/domonic
05d70af0d1564d3ba80c860bb5f5bfe089293b18
[ "MIT" ]
null
null
null
domonic/CDN.py
Jordan-Cottle/domonic
05d70af0d1564d3ba80c860bb5f5bfe089293b18
[ "MIT" ]
null
null
null
""" domonic.CDN ==================================== Refs to some useful .js and .css libs. use for prototyping. wget anything in later and create your own local references once ur happy TODO - integrity/cross origin/module? WARNING/NOTE - dont use. this isn't released or documented. just ide...
43.877193
118
0.686325
4,591
0.917833
0
0
602
0.120352
0
0
4,112
0.822071
78bc6d363f695604891dee0584bdb38942f09a51
2,519
py
Python
robosuite/scripts/Final_Copy/utils.py
spatric5/robosuite
9e6b9691eb949fbf33a23fbe8a8c6faea61c50b6
[ "MIT" ]
null
null
null
robosuite/scripts/Final_Copy/utils.py
spatric5/robosuite
9e6b9691eb949fbf33a23fbe8a8c6faea61c50b6
[ "MIT" ]
null
null
null
robosuite/scripts/Final_Copy/utils.py
spatric5/robosuite
9e6b9691eb949fbf33a23fbe8a8c6faea61c50b6
[ "MIT" ]
null
null
null
from mpi4py import MPI import numpy as np import torch # sync_networks across the different cores def sync_networks(network): """ netowrk is the network you want to sync """ comm = MPI.COMM_WORLD flat_params, params_shape = _get_flat_params(network) comm.Bcast(flat_params, root=0) # set th...
35.985714
91
0.692735
0
0
0
0
0
0
0
0
316
0.125447
78bcb186211d7461ff0a6ae1e7dbc5b9a2291c4d
873
py
Python
ovaas/models.py
OVaaS/ovaas2-backend
db51304161760e2b81b9a497634dded59123bc7d
[ "Apache-2.0" ]
null
null
null
ovaas/models.py
OVaaS/ovaas2-backend
db51304161760e2b81b9a497634dded59123bc7d
[ "Apache-2.0" ]
2
2021-11-02T12:43:18.000Z
2021-11-12T08:31:35.000Z
ovaas/models.py
OVaaS/ovaas2-backend
db51304161760e2b81b9a497634dded59123bc7d
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.contrib.auth import get_user_model # Create your models here. User = get_user_model() class GUIType(models.TextChoices): img = "image_upload", "Image Upload" draw = "draw", "Draw" class Demo(models.Model): name_ja = models.CharField(max_length=128) name_en =...
31.178571
72
0.750286
736
0.84307
0
0
0
0
0
0
66
0.075601
78bd0b2e66f0e85648681b291bc8a89574b81f25
187
py
Python
app/admin.py
alanwu4321/Submission_Platform
daf45a14b97ac7e86d4d3ab63153713fd019f11c
[ "MIT" ]
null
null
null
app/admin.py
alanwu4321/Submission_Platform
daf45a14b97ac7e86d4d3ab63153713fd019f11c
[ "MIT" ]
null
null
null
app/admin.py
alanwu4321/Submission_Platform
daf45a14b97ac7e86d4d3ab63153713fd019f11c
[ "MIT" ]
null
null
null
from django.contrib import admin from app.models import User,Admin,UserFile # Register your models here. admin.site.register(User) admin.site.register(Admin) admin.site.register(UserFile)
31.166667
42
0.823529
0
0
0
0
0
0
0
0
28
0.149733
78bd42c19113c497e1993e92b673e02423c0f0b9
9,143
py
Python
src/apd/aggregation/cli.py
MatthewWilkes/apd.aggregation
427fa908f45332d623295f92e1ccfdaf545d6997
[ "BSD-3-Clause" ]
null
null
null
src/apd/aggregation/cli.py
MatthewWilkes/apd.aggregation
427fa908f45332d623295f92e1ccfdaf545d6997
[ "BSD-3-Clause" ]
11
2020-11-23T21:36:48.000Z
2022-03-12T00:48:58.000Z
src/apd/aggregation/cli.py
MatthewWilkes/apd.aggregation
427fa908f45332d623295f92e1ccfdaf545d6997
[ "BSD-3-Clause" ]
1
2020-08-09T01:47:59.000Z
2020-08-09T01:47:59.000Z
import asyncio import functools import importlib.util import logging import signal import sys import typing as t import uuid import aiohttp import click from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from . import collect from .actions.runner import DataProcessor from .actions.source imp...
32.30742
90
0.665099
0
0
0
0
7,029
0.768785
1,284
0.140435
2,728
0.29837
78be57289fc53eb405e7499adae1ebb913de3e39
3,019
py
Python
tests/cluster_test/kmeans_test.py
alisoltanirad/Reason
9062dc8e365efa424706a309de5cfb90ab497e9a
[ "MIT" ]
1
2020-12-21T21:26:27.000Z
2020-12-21T21:26:27.000Z
tests/cluster_test/kmeans_test.py
alisoltanirad/Reason
9062dc8e365efa424706a309de5cfb90ab497e9a
[ "MIT" ]
10
2020-12-26T18:55:43.000Z
2021-01-10T09:15:32.000Z
tests/cluster_test/kmeans_test.py
alisoltanirad/reason
9062dc8e365efa424706a309de5cfb90ab497e9a
[ "MIT" ]
null
null
null
import pytest import pandas as pd from reason.cluster import KMeansClusterer @pytest.fixture def df(): x = {'feature1': [2, 7], 'feature2': [3, 6]} df = pd.DataFrame(data=x) return df def test_object_creation(): KMeansClusterer() def test_fit_featureset(): data = [{'feature1': 2, 'feature2': 3}...
25.584746
75
0.676714
0
0
0
0
118
0.039086
0
0
189
0.062604
78c0b5cce43db211f820b2e27ad74c24b5509ab2
1,081
py
Python
core/models/Candidato.py
roimpacta/exemplos
cbfe7c81fc14932697c02eb63bec7d7e4a2c5d5a
[ "Apache-2.0" ]
null
null
null
core/models/Candidato.py
roimpacta/exemplos
cbfe7c81fc14932697c02eb63bec7d7e4a2c5d5a
[ "Apache-2.0" ]
null
null
null
core/models/Candidato.py
roimpacta/exemplos
cbfe7c81fc14932697c02eb63bec7d7e4a2c5d5a
[ "Apache-2.0" ]
null
null
null
from django.db import models #TODO candidatura class Candidato(models.Model): nome = models.CharField(max_length = 120, null=True) ra = models.CharField(max_length = 80, null=True) email = models.CharField(max_length = 80, null=True) celular = models.CharField(max_length = 11, null=True) codigo_...
38.607143
108
0.716004
935
0.86494
0
0
0
0
0
0
159
0.147086
78c30ded833df096d4b427f36eaa87d10cc3bfa0
242
py
Python
frictionless/checks/__init__.py
kant/frictionless-py
09cc98e1966d6f97f4eecb47757f45f8a946c5e7
[ "MIT" ]
null
null
null
frictionless/checks/__init__.py
kant/frictionless-py
09cc98e1966d6f97f4eecb47757f45f8a946c5e7
[ "MIT" ]
null
null
null
frictionless/checks/__init__.py
kant/frictionless-py
09cc98e1966d6f97f4eecb47757f45f8a946c5e7
[ "MIT" ]
null
null
null
from .baseline import BaselineCheck from .checksum import ChecksumCheck from .heuristic import DuplicateRowCheck, DeviatedValueCheck, TruncatedValueCheck from .regulation import BlacklistedValueCheck, SequentialValueCheck, RowConstraintCheck
48.4
87
0.884298
0
0
0
0
0
0
0
0
0
0
78c41a1434c06c1642f44349fdd1eea2106f0e22
17,447
py
Python
backend/integration/tests.py
Tim6FTN/UKS
3cf19f014cdc7845bf0b808b97c4e05dc49b062e
[ "MIT" ]
1
2021-01-10T12:34:59.000Z
2021-01-10T12:34:59.000Z
backend/integration/tests.py
Tim6FTN/UKS
3cf19f014cdc7845bf0b808b97c4e05dc49b062e
[ "MIT" ]
37
2021-01-07T22:31:25.000Z
2021-02-20T10:59:46.000Z
backend/integration/tests.py
Tim6FTN/UKS
3cf19f014cdc7845bf0b808b97c4e05dc49b062e
[ "MIT" ]
null
null
null
from unittest.mock import MagicMock, Mock import six from django.contrib.auth.models import User from django.core.exceptions import SuspiciousOperation from django.test import SimpleTestCase, Client, TransactionTestCase from django.urls import reverse, resolve from branch.models import Branch from integration.views i...
43.400498
118
0.638161
7,639
0.43784
0
0
301
0.017252
0
0
7,895
0.452513
78c4a426cafffab51634f30f2aa6fb1438ab7cd4
628
py
Python
TopQuarkAnalysis/TopJetCombination/python/TtSemiLepHypHitFit_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
TopQuarkAnalysis/TopJetCombination/python/TtSemiLepHypHitFit_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
TopQuarkAnalysis/TopJetCombination/python/TtSemiLepHypHitFit_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # # produce hitFit hypothesis with all necessary # ingredients # ## std sequence to perform kinematic fit import TopQuarkAnalysis.TopHitFit.TtSemiLepHitFitProducer_Muons_cfi hitFitTtSemiLepEventHypothesis = TopQuarkAnalysis.TopHitFit.TtSemiLepHitFitProducer_Muons_cfi.hitFitTt...
29.904762
122
0.851911
0
0
0
0
0
0
0
0
150
0.238854
78c52171bb8eb9ca8c41c0f6116afa3c336f5adc
272
py
Python
tests/urls.py
TreZc0/donation-tracker
3a833a5eba3c0b7cedd8249b44b1435f526095ba
[ "Apache-2.0" ]
39
2016-01-04T04:13:27.000Z
2022-01-18T19:17:24.000Z
tests/urls.py
TreZc0/donation-tracker
3a833a5eba3c0b7cedd8249b44b1435f526095ba
[ "Apache-2.0" ]
140
2015-11-01T01:19:54.000Z
2022-03-10T13:00:33.000Z
tests/urls.py
TreZc0/donation-tracker
3a833a5eba3c0b7cedd8249b44b1435f526095ba
[ "Apache-2.0" ]
35
2016-01-20T12:42:21.000Z
2022-01-20T07:06:47.000Z
import ajax_select.urls from django.contrib import admin from django.urls import include, path import tracker.urls urlpatterns = [ path('tracker/', include(tracker.urls)), path('admin/lookups/', include(ajax_select.urls)), path('admin/', admin.site.urls), ]
22.666667
54
0.724265
0
0
0
0
0
0
0
0
34
0.125