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
688159bdf8610b835edab2ced8f2deeade5b818b
498
py
Python
accounts/models.py
asandeep/pseudo-electronics
2ce9f03a43c917448bfc340f8011eaf4bac159da
[ "MIT" ]
null
null
null
accounts/models.py
asandeep/pseudo-electronics
2ce9f03a43c917448bfc340f8011eaf4bac159da
[ "MIT" ]
null
null
null
accounts/models.py
asandeep/pseudo-electronics
2ce9f03a43c917448bfc340f8011eaf4bac159da
[ "MIT" ]
null
null
null
from django.contrib.auth import models as auth_models from django.db import models from django.urls import reverse class User(auth_models.AbstractUser): """Extends default model to add project specific fields.""" birth_date = models.DateField(help_text="Employee Date of birth.") address = models.TextFiel...
33.2
72
0.740964
380
0.763052
0
0
0
0
0
0
165
0.331325
688316b56cd53635e3fbd2f9611352d74bf1174a
3,623
py
Python
pytorch_trainmodel/pytorch_train.py
hoangcaobao/projectube-nlp
b0471b1626b241082eac3b7a30cacf54b9668375
[ "MIT" ]
5
2021-09-16T15:05:20.000Z
2022-02-04T00:39:12.000Z
pytorch_trainmodel/pytorch_train.py
hoangcaobao/projectube-sentiment-analysis
b0471b1626b241082eac3b7a30cacf54b9668375
[ "MIT" ]
null
null
null
pytorch_trainmodel/pytorch_train.py
hoangcaobao/projectube-sentiment-analysis
b0471b1626b241082eac3b7a30cacf54b9668375
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import torch import torch.nn as nn from pytorch_model import * from pytorch_clean import * from sklearn.metrics import classification_report from torch.optim import optimizer from transformers import AutoModel, AutoTokenizer from vncorenlp import VnCoreNLP from vncorenlp.vncorenlp...
29.696721
100
0.743031
0
0
0
0
0
0
0
0
400
0.110406
68855b61bab7f85695a5b52312067872e87f33fd
295
py
Python
tests/basics/builtin_sorted.py
84KaliPleXon3/micropython-esp32
a64dc82742749cf4a4bbe5688dde05122fb38f56
[ "MIT" ]
1
2020-04-24T06:09:44.000Z
2020-04-24T06:09:44.000Z
tests/basics/builtin_sorted.py
84KaliPleXon3/micropython-esp32
a64dc82742749cf4a4bbe5688dde05122fb38f56
[ "MIT" ]
null
null
null
tests/basics/builtin_sorted.py
84KaliPleXon3/micropython-esp32
a64dc82742749cf4a4bbe5688dde05122fb38f56
[ "MIT" ]
null
null
null
# test builtin sorted try: sorted set except: import sys print("SKIP") sys.exit() print(sorted(set(range(100)))) print(sorted(set(range(100)), key=lambda x: x + 100*(x % 2))) # need to use keyword argument try: sorted([], None) except TypeError: print("TypeError")
16.388889
61
0.630508
0
0
0
0
0
0
0
0
68
0.230508
6885709e154f6ae3d0952842e393c4c290d87e3b
643
py
Python
addons/mendeley/tests/test_serializer.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
628
2015-01-15T04:33:22.000Z
2022-03-30T06:40:10.000Z
addons/mendeley/tests/test_serializer.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
4,712
2015-01-02T01:41:53.000Z
2022-03-30T14:18:40.000Z
addons/mendeley/tests/test_serializer.py
Johnetordoff/osf.io
de10bf249c46cede04c78f7e6f7e352c69e6e6b5
[ "Apache-2.0" ]
371
2015-01-12T16:14:08.000Z
2022-03-31T18:58:29.000Z
# -*- coding: utf-8 -*- """Serializer tests for the Mendeley addon.""" import pytest from addons.base.tests.serializers import CitationAddonSerializerTestSuiteMixin from addons.base.tests.utils import MockFolder from addons.mendeley.tests.factories import MendeleyAccountFactory from addons.mendeley.serializer import M...
30.619048
81
0.819596
231
0.359253
0
0
0
0
0
0
79
0.122862
688600d6cad34394de4e5a48da1144fe75003447
465
py
Python
src/project/_tests/base.py
pviojo/boilerplate-flask-api
4e3832cc1a6979019311e01f60227ace0f2c3259
[ "MIT" ]
null
null
null
src/project/_tests/base.py
pviojo/boilerplate-flask-api
4e3832cc1a6979019311e01f60227ace0f2c3259
[ "MIT" ]
null
null
null
src/project/_tests/base.py
pviojo/boilerplate-flask-api
4e3832cc1a6979019311e01f60227ace0f2c3259
[ "MIT" ]
null
null
null
from app import run_migration from flask import current_app as app from flask_testing import TestCase from project import db class BaseTestCase(TestCase): def create_app(self): app.config.from_object('project.configs.TestingConfig') return app def setUp(self): run_migration() def...
22.142857
63
0.692473
337
0.724731
0
0
0
0
0
0
31
0.066667
688701927338303df5deb153d6634d0b60ce9445
956
py
Python
models/three_layers_nn.py
erwanlecarpentier/optimistic-regressor
8daac40289b591b88aa0658c531df15c92792d23
[ "CC0-1.0" ]
null
null
null
models/three_layers_nn.py
erwanlecarpentier/optimistic-regressor
8daac40289b591b88aa0658c531df15c92792d23
[ "CC0-1.0" ]
null
null
null
models/three_layers_nn.py
erwanlecarpentier/optimistic-regressor
8daac40289b591b88aa0658c531df15c92792d23
[ "CC0-1.0" ]
null
null
null
""" N layers optimistic neural network """ import torch class ThreeLayersNN(torch.nn.Module): def __init__(self, in_dim, out_dim, h_dim, activation='relu'): """ :param in_dim: (int) input dimension :param out_dim: (int) output dimension """ super(ThreeLayersNN, self).__in...
28.969697
66
0.585774
896
0.937238
0
0
0
0
0
0
189
0.197699
68880d2a92cdd46241a4f5ad354ad532bcf2dac3
630
py
Python
helper/trap.py
shivaroast/AidenBot
6b6463d48baec55d5df707d31d0fd6f7ed77a345
[ "MIT" ]
null
null
null
helper/trap.py
shivaroast/AidenBot
6b6463d48baec55d5df707d31d0fd6f7ed77a345
[ "MIT" ]
null
null
null
helper/trap.py
shivaroast/AidenBot
6b6463d48baec55d5df707d31d0fd6f7ed77a345
[ "MIT" ]
null
null
null
''' ? (c) 2018 - laymonage ''' import os import random import requests from .dropson import dbx_dl, get_json def surprise(safe=False): ''' ? ''' cat_api = 'http://thecatapi.com/api/images/get' prev_url = requests.get(cat_api) prev_url = prev_url.url.replace('http://', 'https://') if safe...
21.724138
63
0.633333
0
0
0
0
0
0
0
0
143
0.226984
68881d8d1f87bdfd089d83ddb17e5dd84d4f78de
11,019
py
Python
defaulter.py
tipabu/swift_defaulter
fd72f5652fd7ab766dcef73c41fcbfa9a6e0e368
[ "Apache-2.0" ]
4
2015-08-12T19:47:05.000Z
2017-08-25T06:04:27.000Z
defaulter.py
tipabu/swift_defaulter
fd72f5652fd7ab766dcef73c41fcbfa9a6e0e368
[ "Apache-2.0" ]
null
null
null
defaulter.py
tipabu/swift_defaulter
fd72f5652fd7ab766dcef73c41fcbfa9a6e0e368
[ "Apache-2.0" ]
null
null
null
# Copyright 2015-2016 Tim Burke # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
36.486755
79
0.63808
6,141
0.55731
0
0
816
0.074054
0
0
5,041
0.457483
688966ef062d193a314e93a1d3dc28aa32628e39
42,873
py
Python
src/sage/coding/information_set_decoder.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/coding/information_set_decoder.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/coding/information_set_decoder.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
# -*- coding: utf-8 -*- r""" Information-set decoding for linear codes Information-set decoding is a probabilistic decoding strategy that essentially tries to guess `k` correct positions in the received word, where `k` is the dimension of the code. A codeword agreeing with the received word on the guessed position can...
42.197835
211
0.606746
40,084
0.934947
0
0
972
0.022672
0
0
33,746
0.787115
6889889d0c9df269b34f5ffdec65275a1517a339
3,380
py
Python
satelitedl/__init__.py
RyosukeDTomita/satelite-dl
f205adb9f97b67b8375147f6c9320a6742e032b0
[ "MIT" ]
null
null
null
satelitedl/__init__.py
RyosukeDTomita/satelite-dl
f205adb9f97b67b8375147f6c9320a6742e032b0
[ "MIT" ]
null
null
null
satelitedl/__init__.py
RyosukeDTomita/satelite-dl
f205adb9f97b67b8375147f6c9320a6742e032b0
[ "MIT" ]
null
null
null
# coding: utf-8 """ Usage: python3 -m satelitedl --date 19900101 Authore: Ryosuke Tomita Date: 2021/11/02 """ import os from os.path import abspath, dirname, join from datetime import datetime from typing import Union from .options import parse_args from .scrapeimg import ScrapingImg def judge_date_type(date: str) ->...
25.413534
68
0.601479
0
0
0
0
0
0
0
0
922
0.272781
688d68c26f6147245edb5881ed9bf81be6cc0b77
602
py
Python
ostrawling/event/particle.py
JacobRawling/OstrawlingMC
d87c12c8502a12c150ece0eac0fbe2c829062f6e
[ "MIT" ]
null
null
null
ostrawling/event/particle.py
JacobRawling/OstrawlingMC
d87c12c8502a12c150ece0eac0fbe2c829062f6e
[ "MIT" ]
null
null
null
ostrawling/event/particle.py
JacobRawling/OstrawlingMC
d87c12c8502a12c150ece0eac0fbe2c829062f6e
[ "MIT" ]
null
null
null
from .four_momentum import FourMomentum class Particle: def __init__(self, pdg_id, momentum): self.pdg_id = pdg_id self.momentum = momentum self.momentum.set_basis( (momentum.px,momentum.py, momentum.pz, Particle.get_mass(pdg_id)), 'x,y,z,m' ...
24.08
54
0.528239
560
0.930233
0
0
210
0.348837
0
0
28
0.046512
688e64a4f428342bad4484cacd07ec145d18e8f0
2,572
py
Python
src/icolos/core/workflow_steps/gromacs/genion.py
jharrymoore/Icolos
c60cc00c34208ab7011d41d52a74651763673e7a
[ "Apache-2.0" ]
null
null
null
src/icolos/core/workflow_steps/gromacs/genion.py
jharrymoore/Icolos
c60cc00c34208ab7011d41d52a74651763673e7a
[ "Apache-2.0" ]
null
null
null
src/icolos/core/workflow_steps/gromacs/genion.py
jharrymoore/Icolos
c60cc00c34208ab7011d41d52a74651763673e7a
[ "Apache-2.0" ]
null
null
null
from icolos.utils.enums.step_enums import StepBaseEnum, StepGromacsEnum from icolos.utils.enums.program_parameters import GromacsEnum from icolos.core.workflow_steps.gromacs.base import StepGromacsBase from icolos.utils.execute_external.gromacs import GromacsExecutor from pydantic import BaseModel from icolos.core.work...
36.742857
88
0.641524
2,146
0.83437
0
0
0
0
0
0
391
0.152022
688e6a6789ccea72d0b875d4cb59a3a4a8aed53b
6,811
py
Python
mayo/session/train.py
deep-fry/mayo
7211a11fdb9bb0a036d496a3eba16c96db122f89
[ "MIT" ]
110
2018-06-07T17:52:29.000Z
2022-03-28T08:04:02.000Z
mayo/session/train.py
kypomon/mayo
7211a11fdb9bb0a036d496a3eba16c96db122f89
[ "MIT" ]
6
2019-10-17T12:00:29.000Z
2021-10-21T13:41:22.000Z
mayo/session/train.py
kypomon/mayo
7211a11fdb9bb0a036d496a3eba16c96db122f89
[ "MIT" ]
22
2018-07-05T01:30:49.000Z
2021-10-19T06:15:40.000Z
import math import tensorflow as tf from mayo.log import log from mayo.util import ( Percent, memoize_method, memoize_property, object_from_params) from mayo.session.base import SessionBase class Train(SessionBase): mode = 'train' def __init__(self, config): super().__init__(config) sel...
38.698864
79
0.616356
6,613
0.970787
0
0
3,055
0.448473
0
0
1,129
0.165737
688f82d913086422926e43ef0486a06096928207
570
py
Python
lazysignup/utils.py
yoccodog/django-lazysignup
18d273b97083c8e2a21e54bf326f41c0b4e231fb
[ "BSD-3-Clause" ]
null
null
null
lazysignup/utils.py
yoccodog/django-lazysignup
18d273b97083c8e2a21e54bf326f41c0b4e231fb
[ "BSD-3-Clause" ]
null
null
null
lazysignup/utils.py
yoccodog/django-lazysignup
18d273b97083c8e2a21e54bf326f41c0b4e231fb
[ "BSD-3-Clause" ]
1
2018-06-22T13:07:34.000Z
2018-06-22T13:07:34.000Z
def is_lazy_user(user): """ Return True if the passed user is a lazy user. """ # Anonymous users are not lazy. if user.is_anonymous: return False # Check the user backend. If the lazy signup backend # authenticated them, then the user is lazy. backend = getattr(user, 'backend', None) ...
33.529412
63
0.685965
0
0
0
0
0
0
0
0
288
0.505263
688fe87882b842c1041f5df8b971fea0174982fb
2,753
py
Python
md/obs-tntq_md2md.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
6
2015-07-27T21:50:39.000Z
2020-06-25T14:32:35.000Z
md/obs-tntq_md2md.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
89
2015-06-24T09:35:40.000Z
2022-02-13T14:40:31.000Z
md/obs-tntq_md2md.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
12
2015-07-13T17:31:04.000Z
2021-08-06T06:50:21.000Z
# -*- coding: utf-8 -*- # This script copies a directory of OBS-tQ or OBS-tN markdown files to a second location. # It cleans up the files in these ways: # Ensures blank lines surrounding markdown headers. # Fixes links of this form [[:en:...]] # Removes leading spaces. # Global variables source_dir = r'C:\DC...
34.848101
90
0.658918
0
0
0
0
0
0
0
0
967
0.351253
688feb8d7e8fef2bae057b526cc5ad3bba5366d4
2,620
py
Python
hw10_conine/thomas.py
gconine88/MATH_6204
ecff4ecd3ae423c113d8259fe24b76b4a67de6ea
[ "MIT" ]
null
null
null
hw10_conine/thomas.py
gconine88/MATH_6204
ecff4ecd3ae423c113d8259fe24b76b4a67de6ea
[ "MIT" ]
null
null
null
hw10_conine/thomas.py
gconine88/MATH_6204
ecff4ecd3ae423c113d8259fe24b76b4a67de6ea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Nov 20 23:06:49 2017 @author: Grant An implementation of the Thomas algorithm in Python, using just-in-time compiling from numba for additional speed """ import numpy as np from numba import njit, f8 def solve(A, d): '''Helper function for Thomas algorit...
30.465116
82
0.591603
0
0
0
0
1,249
0.476718
0
0
1,634
0.623664
68907c9f56a7dff7255659e5fac49a90b9c790a1
1,444
py
Python
chemreg/auth/tests/test_views.py
Chemical-Curation/chemcurator
bcd7fab84e407f06502e6873c38820724d4e54e7
[ "MIT" ]
1
2020-10-05T18:02:24.000Z
2020-10-05T18:02:24.000Z
chemreg/auth/tests/test_views.py
Chemical-Curation/chemcurator_django
bcd7fab84e407f06502e6873c38820724d4e54e7
[ "MIT" ]
207
2020-01-30T19:17:44.000Z
2021-02-24T19:45:29.000Z
chemreg/auth/tests/test_views.py
Chemical-Curation/chemcurator_django
bcd7fab84e407f06502e6873c38820724d4e54e7
[ "MIT" ]
null
null
null
from base64 import b64encode import pytest @pytest.mark.django_db def test_login_view(user, client, settings): """Test that the login view can login and logout.""" login_url = f"/{settings.LOGIN_URL.strip('/')}/" # Django doesn't store the raw password, so we need to set one we know. password = "A ...
32.088889
75
0.702216
0
0
0
0
1,397
0.967452
0
0
403
0.279086
68914268f5d91c6c327ee9480e17e743af2a3790
9,445
py
Python
vnpy/app/cta_strategy/strategies/tsmyo_polyfit_strategy.py
TheSuperMyo/vnpy
e38b7f4de879f1756aa664d5dfe7e0bec65c9a1b
[ "MIT" ]
null
null
null
vnpy/app/cta_strategy/strategies/tsmyo_polyfit_strategy.py
TheSuperMyo/vnpy
e38b7f4de879f1756aa664d5dfe7e0bec65c9a1b
[ "MIT" ]
null
null
null
vnpy/app/cta_strategy/strategies/tsmyo_polyfit_strategy.py
TheSuperMyo/vnpy
e38b7f4de879f1756aa664d5dfe7e0bec65c9a1b
[ "MIT" ]
null
null
null
from datetime import time from vnpy.app.cta_strategy import ( CtaTemplate, StopOrder, TickData, BarData, TradeData, OrderData, BarGenerator, ArrayManager ) from vnpy.app.cta_strategy.base import ( EngineType, STOPORDER_PREFIX, StopOrder, StopOrderStatus, ) from vnpy.app.c...
32.457045
138
0.565061
9,901
0.962664
0
0
0
0
0
0
2,278
0.221488
689273e3976328d8791057987bb0cd4e006aacad
4,757
py
Python
run.py
GpNico/KernelMethods_MVA_Kaggle
c6c083301977ca765557680f1e724a5d0322ef13
[ "MIT" ]
null
null
null
run.py
GpNico/KernelMethods_MVA_Kaggle
c6c083301977ca765557680f1e724a5d0322ef13
[ "MIT" ]
null
null
null
run.py
GpNico/KernelMethods_MVA_Kaggle
c6c083301977ca765557680f1e724a5d0322ef13
[ "MIT" ]
null
null
null
# run.py """ Script for running a specific pipeline from a given yaml config file """ import os import argparse import yaml from importlib import import_module import numpy as np import time import pandas as pd def import_from_path(path_to_module, obj_name = None): """ Import an object from a module based o...
35.766917
101
0.596384
0
0
0
0
0
0
0
0
1,286
0.270338
689285cf22e54c3ba6df2bb206502e17fb240035
1,970
py
Python
alien_invasion.py
shtiyu/biubiubiu
ebb41a14d4fd14cfc2a27a01af755713e084c4b3
[ "MIT" ]
3
2018-11-22T11:31:47.000Z
2022-02-22T06:29:59.000Z
alien_invasion.py
shtiyu/biubiubiu
ebb41a14d4fd14cfc2a27a01af755713e084c4b3
[ "MIT" ]
null
null
null
alien_invasion.py
shtiyu/biubiubiu
ebb41a14d4fd14cfc2a27a01af755713e084c4b3
[ "MIT" ]
null
null
null
import pygame from pygame.sprite import Group from button import Button from game_stats import GameStats from settings import Settings from ship import Ship from scoreboard import Scoreboard import game_funcitons as gf def run_game(): pygame.init() pygame.mixer.init() ai_settings = Settings() screen =...
28.970588
128
0.664975
0
0
0
0
0
0
0
0
119
0.059086
6892e2003fc1c2b7ef39326cbcdfaa61a234e1ef
185
py
Python
insights_messaging/downloaders/localfs.py
dpensi/insights-core-messaging
a964cecdf5cbb57407dae9e9208a31fc5e9318e4
[ "Apache-2.0" ]
6
2019-12-12T14:19:30.000Z
2020-04-08T16:20:04.000Z
insights_messaging/downloaders/localfs.py
dpensi/insights-core-messaging
a964cecdf5cbb57407dae9e9208a31fc5e9318e4
[ "Apache-2.0" ]
14
2020-01-27T17:04:39.000Z
2021-03-16T15:18:30.000Z
insights_messaging/downloaders/localfs.py
dpensi/insights-core-messaging
a964cecdf5cbb57407dae9e9208a31fc5e9318e4
[ "Apache-2.0" ]
13
2019-12-16T09:32:38.000Z
2021-05-05T12:39:38.000Z
import os from contextlib import contextmanager class LocalFS: @contextmanager def get(self, src): path = os.path.realpath(os.path.expanduser(src)) yield path
18.5
56
0.686486
134
0.724324
95
0.513514
115
0.621622
0
0
0
0
68943b195cd6c1b43741489cbceaa66e3ae51918
3,542
py
Python
tests/test_utilities/test_manifest_parser.py
QualiSystems/DevBox
9a1807006bc93727970068d586764e9dccda94ec
[ "Apache-1.1" ]
null
null
null
tests/test_utilities/test_manifest_parser.py
QualiSystems/DevBox
9a1807006bc93727970068d586764e9dccda94ec
[ "Apache-1.1" ]
null
null
null
tests/test_utilities/test_manifest_parser.py
QualiSystems/DevBox
9a1807006bc93727970068d586764e9dccda94ec
[ "Apache-1.1" ]
null
null
null
import os from pyfakefs import fake_filesystem_unittest from devbox.utilities.manifest_parser import ManifestParser class TestManifestParser(fake_filesystem_unittest.TestCase): def setUp(self): self.setUpPyfakefs() def test_manifest_parser(self): # Arrange self.fs.CreateFile('my-app/...
30.016949
100
0.593732
3,420
0.965556
0
0
0
0
0
0
2,505
0.707228
68960b586f20c8d621871e22f1d973112cd25522
2,140
py
Python
messages.py
Pyprohly/batch-bot
0163fa75d4b6b2408a7504429d1b8662b13dded9
[ "MIT" ]
null
null
null
messages.py
Pyprohly/batch-bot
0163fa75d4b6b2408a7504429d1b8662b13dded9
[ "MIT" ]
null
null
null
messages.py
Pyprohly/batch-bot
0163fa75d4b6b2408a7504429d1b8662b13dded9
[ "MIT" ]
null
null
null
from enum import Enum, auto from string import Template class MessageRegister: def __init__(self, dispatch_table=None): self.dispatch = dict() if dispatch_table is None else dispatch_table def register(self, ref): def decorator(func): self.dispatch[ref] = func return func return decorator def get(sel...
27.792208
201
0.730841
2,065
0.956019
0
0
303
0.140278
0
0
1,216
0.562963
6896c0545b2d4f8acba5f99caf7c1f5b8e3c596c
91
py
Python
siem_integrations/clx_query_service/clxquery/apps.py
mdemoret-nv/clx
3737706187d8f5720561e10b85cbd638c77b9267
[ "Apache-2.0" ]
143
2019-11-06T16:08:50.000Z
2022-03-22T12:14:59.000Z
siem_integrations/clx_query_service/clxquery/apps.py
mdemoret-nv/clx
3737706187d8f5720561e10b85cbd638c77b9267
[ "Apache-2.0" ]
361
2019-11-06T20:33:24.000Z
2022-03-31T19:59:12.000Z
siem_integrations/clx_query_service/clxquery/apps.py
mdemoret-nv/clx
3737706187d8f5720561e10b85cbd638c77b9267
[ "Apache-2.0" ]
82
2019-11-06T17:36:42.000Z
2022-03-17T07:03:04.000Z
from django.apps import AppConfig class ClxQueryConfig(AppConfig): name = "clxquery"
15.166667
33
0.758242
54
0.593407
0
0
0
0
0
0
10
0.10989
6897023917e0a55a0e08c289c8451ac380c0fbaa
5,254
py
Python
tests/test_code_vasp.py
petavazohi/PyChemia
e779389418771c25c830aed360773c63bb069372
[ "MIT" ]
67
2015-01-31T07:44:55.000Z
2022-03-21T21:43:34.000Z
tests/test_code_vasp.py
petavazohi/PyChemia
e779389418771c25c830aed360773c63bb069372
[ "MIT" ]
13
2016-06-03T19:07:51.000Z
2022-03-31T04:20:40.000Z
tests/test_code_vasp.py
petavazohi/PyChemia
e779389418771c25c830aed360773c63bb069372
[ "MIT" ]
37
2015-01-22T15:37:23.000Z
2022-03-21T15:38:10.000Z
import os import shutil import pychemia import tempfile import unittest class MyTestCase(unittest.TestCase): def test_incar(self): """ Test (pychemia.code.vasp) [INCAR parsing and writing] : """ print(os.getcwd()) iv = pychemia.code.vasp.read_incar('tests/data/vasp_0...
39.208955
113
0.621622
5,178
0.985535
0
0
0
0
0
0
1,212
0.230681
6897d0617b652b4190982ab2f26f229b87c68973
7,048
py
Python
generateResources.py
shisi1/libVulpes
15ec3cab2cdea076cf777da811d783f58ec7f36f
[ "MIT" ]
null
null
null
generateResources.py
shisi1/libVulpes
15ec3cab2cdea076cf777da811d783f58ec7f36f
[ "MIT" ]
null
null
null
generateResources.py
shisi1/libVulpes
15ec3cab2cdea076cf777da811d783f58ec7f36f
[ "MIT" ]
2
2021-11-29T18:16:46.000Z
2021-12-16T16:35:59.000Z
import os class Material: def __init__(self, name, color, outputs): self.name = name self.color = color self.outputs = outputs materials = [Material("dilithium", 0xddcecb, ("DUST", "GEM")), Material("iron", 0xafafaf, ("SHEET", "STICK", "DUST", "PLATE")), Material("gold", 0xffff5d, ("D...
41.458824
209
0.610528
149
0.021141
0
0
0
0
0
0
2,352
0.333712
68989bd20a742e1b1f652b4df8e618dc746273a5
89,471
py
Python
SOGM-3D-2D-Net/slam/dev_slam.py
liuxinren456852/Deep-Collison-Checker
1d96415fd865361e22a6f25547707c47628dcfbe
[ "MIT" ]
7
2021-09-09T15:03:36.000Z
2022-03-15T16:33:33.000Z
SOGM-3D-2D-Net/slam/dev_slam.py
liuxinren456852/Deep-Collison-Checker
1d96415fd865361e22a6f25547707c47628dcfbe
[ "MIT" ]
null
null
null
SOGM-3D-2D-Net/slam/dev_slam.py
liuxinren456852/Deep-Collison-Checker
1d96415fd865361e22a6f25547707c47628dcfbe
[ "MIT" ]
1
2021-09-10T01:46:50.000Z
2021-09-10T01:46:50.000Z
# # # 0=================================0 # | Kernel Point Convolutions | # 0=================================0 # # # ---------------------------------------------------------------------------------------------------------------------- # # Class handling SemanticKitti dataset. # ...
35.141791
121
0.499156
0
0
0
0
0
0
0
0
22,030
0.246225
68998d2ad54cd9bef2834023dae463b6fbec5d90
1,128
py
Python
src/3-all_together/parse_vectors.py
bt3gl/Tool-NetClean_Complex_Networks_Data_Cleanser
312f4fe2a080b75550e353a55ebf5b03d4d9c9a1
[ "MIT" ]
5
2015-04-14T04:09:40.000Z
2018-05-18T21:57:21.000Z
src/3-all_together/parse_vectors.py
aquario-crypto/NetClean-Complex_Networks_Data_Cleanser
312f4fe2a080b75550e353a55ebf5b03d4d9c9a1
[ "MIT" ]
null
null
null
src/3-all_together/parse_vectors.py
aquario-crypto/NetClean-Complex_Networks_Data_Cleanser
312f4fe2a080b75550e353a55ebf5b03d4d9c9a1
[ "MIT" ]
4
2015-04-14T04:11:28.000Z
2019-07-12T03:47:30.000Z
#!/usr/bin/env python __author__ = "Mari Wahl" __copyright__ = "Copyright 2014, The Cogent Project" __credits__ = ["Mari Wahl"] __license__ = "GPL" __version__ = "2.0" __maintainer__ = "Mari Wahl" __email__ = "[email protected]" import os from constants import SUBFOLDERS, FEATURES def create_input_files(...
21.692308
61
0.625
0
0
0
0
0
0
0
0
291
0.257979
6899ddd456696f5f8cbff28853c9ebc19f43f8ce
18,361
py
Python
monitoring/tests/unit/gapic/v3/test_service_monitoring_service_client_v3.py
q-logic/google-cloud-python
a65065c89c059bc564bbdd79288a48970907c399
[ "Apache-2.0" ]
null
null
null
monitoring/tests/unit/gapic/v3/test_service_monitoring_service_client_v3.py
q-logic/google-cloud-python
a65065c89c059bc564bbdd79288a48970907c399
[ "Apache-2.0" ]
40
2019-07-16T10:04:48.000Z
2020-01-20T09:04:59.000Z
monitoring/tests/unit/gapic/v3/test_service_monitoring_service_client_v3.py
q-logic/google-cloud-python
a65065c89c059bc564bbdd79288a48970907c399
[ "Apache-2.0" ]
2
2019-07-18T00:05:31.000Z
2019-11-27T14:17:22.000Z
# -*- coding: utf-8 -*- # # Copyright 2020 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...
38.093361
88
0.680954
17,502
0.953216
0
0
0
0
0
0
3,325
0.18109
689b058710ba7e2e873901967ce4945aab966125
294
py
Python
bin/ripple/util/Database.py
tdfischer/rippled
399c43cae6e90a428e9ce6a988123972b0f03c99
[ "BSL-1.0" ]
89
2015-04-23T20:24:58.000Z
2022-03-20T12:35:30.000Z
bin/ripple/util/Database.py
tdfischer/rippled
399c43cae6e90a428e9ce6a988123972b0f03c99
[ "BSL-1.0" ]
14
2020-05-25T15:42:18.000Z
2022-03-20T12:44:56.000Z
bin/ripple/util/Database.py
tdfischer/rippled
399c43cae6e90a428e9ce6a988123972b0f03c99
[ "BSL-1.0" ]
41
2015-01-19T05:26:34.000Z
2022-02-23T03:47:39.000Z
from __future__ import absolute_import, division, print_function, unicode_literals import sqlite3 def fetchall(database, query, kwds): conn = sqlite3.connect(database) try: cursor = conn.execute(query, kwds) return cursor.fetchall() finally: conn.close()
22.615385
82
0.697279
0
0
0
0
0
0
0
0
0
0
689c35abc62fa1170e0db4a74ec9011f9d0a466c
1,775
py
Python
backend/utils/__init__.py
szkkteam/agrosys
a390332202f7200632d2ff3816e1b0f3cc76f586
[ "MIT" ]
null
null
null
backend/utils/__init__.py
szkkteam/agrosys
a390332202f7200632d2ff3816e1b0f3cc76f586
[ "MIT" ]
null
null
null
backend/utils/__init__.py
szkkteam/agrosys
a390332202f7200632d2ff3816e1b0f3cc76f586
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Common Python library imports import re import unicodedata # Pip package imports from flask_sqlalchemy.model import camel_to_snake_case from flask import current_app from itsdangerous import URLSafeSerializer, BadData from loguru import logger # Internal package import...
27.307692
100
0.654085
0
0
0
0
0
0
0
0
481
0.270986
689c565289e0ab67922c34bd175bd019c149cc51
3,028
py
Python
aadi/roi_heads.py
WanXiaopei/aadi
08a7399b3dcfab716cc7b80a88201fc47186ffd3
[ "MIT" ]
4
2021-06-01T02:46:21.000Z
2022-01-11T03:02:36.000Z
aadi/roi_heads.py
WanXiaopei/aadi
08a7399b3dcfab716cc7b80a88201fc47186ffd3
[ "MIT" ]
null
null
null
aadi/roi_heads.py
WanXiaopei/aadi
08a7399b3dcfab716cc7b80a88201fc47186ffd3
[ "MIT" ]
null
null
null
from typing import List import torch from detectron2.structures import ImageList, Boxes, Instances, pairwise_iou from detectron2.modeling.box_regression import Box2BoxTransform from detectron2.modeling.roi_heads import ROI_HEADS_REGISTRY, StandardROIHeads from detectron2.modeling.roi_heads.cascade_rcnn import CascadeR...
40.373333
88
0.674042
2,513
0.829921
0
0
2,575
0.850396
0
0
197
0.065059
689ca4570dd678af10ee1eb645c837983c0d78c1
350
py
Python
TF/tensorflow--tutorial/tf.contrib.data.py
STHSF/DeepLearning
af91fced5af87f69915bb2674229d5f6461f553d
[ "MIT" ]
6
2016-09-13T05:50:05.000Z
2020-01-03T06:34:53.000Z
TF/tensorflow--tutorial/tf.contrib.data.py
STHSF/DeepLearning
af91fced5af87f69915bb2674229d5f6461f553d
[ "MIT" ]
null
null
null
TF/tensorflow--tutorial/tf.contrib.data.py
STHSF/DeepLearning
af91fced5af87f69915bb2674229d5f6461f553d
[ "MIT" ]
6
2016-09-28T02:55:35.000Z
2019-05-31T02:51:43.000Z
# coding=utf-8 # tensorflow tf.contrib.data api test import tensorflow as tf # file path filename = '' batch_size = 100 aa = (tf.contrib.data.TextLineDataset(filename) .map((lambda line: tf.decode_csv(line, record_defaults=[['1'], ['1'], ['1']], field_delim='\t'))) .shuffle(buffer_size=1000) .bat...
18.421053
103
0.651429
0
0
0
0
0
0
0
0
77
0.22
689cd75c21771ffe0186b10faeb2d7cc34833c06
1,333
py
Python
哥伦布(STM32F407)/4.拓展实验/3.音频播放/01-物理按键版/main.py
01studio-lab/MicroPython_Examples
f06a1bee398674ceafebed2aac88d8413cc8abad
[ "MIT" ]
73
2020-05-02T13:48:27.000Z
2022-03-26T13:15:10.000Z
哥伦布(STM32F407)/4.拓展实验/3.音频播放/01-物理按键版/main.py
01studio-lab/MicroPython_Examples
f06a1bee398674ceafebed2aac88d8413cc8abad
[ "MIT" ]
null
null
null
哥伦布(STM32F407)/4.拓展实验/3.音频播放/01-物理按键版/main.py
01studio-lab/MicroPython_Examples
f06a1bee398674ceafebed2aac88d8413cc8abad
[ "MIT" ]
50
2020-05-15T13:57:28.000Z
2022-03-30T14:03:33.000Z
''' 实验名称:音频播放 版本:v1.0 日期:2020.12 作者:01Studio 说明:MP3/WAV音频文件播放。使用物理按键控制 ''' #导入相关模块 import audio,time from pyb import Switch from machine import Pin #构建音频对象 wm=audio.WM8978() vol = 80 #音量初始化,80 ###################### # 播放 USR按键 ###################### play_flag = 0 def music_play(): global play_flag play_fla...
15.147727
55
0.523631
0
0
0
0
0
0
0
0
596
0.380831
689f3d8878428c818087147e65c24430b3c5c043
942
py
Python
mir_navigation/nodes/min_max_finder.py
xneomac/mir_robot
0041b41bb661d32a34c266d0535acf1c78cf61b9
[ "BSD-3-Clause" ]
3
2020-07-31T05:15:59.000Z
2020-11-30T03:49:43.000Z
mir_navigation/nodes/min_max_finder.py
xneomac/mir_robot
0041b41bb661d32a34c266d0535acf1c78cf61b9
[ "BSD-3-Clause" ]
null
null
null
mir_navigation/nodes/min_max_finder.py
xneomac/mir_robot
0041b41bb661d32a34c266d0535acf1c78cf61b9
[ "BSD-3-Clause" ]
9
2019-09-17T21:18:01.000Z
2021-04-21T11:28:24.000Z
#!/usr/bin/env python import rospy from nav_msgs.msg import Odometry lin_min = 0.0 lin_max = 0.0 ang_min = 0.0 ang_max = 0.0 def odom_cb(msg): global lin_min, lin_max, ang_min, ang_max if lin_min > msg.twist.twist.linear.x: lin_min = msg.twist.twist.linear.x if lin_max < msg.twist.twist.linear.x...
26.166667
109
0.663482
0
0
0
0
0
0
0
0
186
0.197452
68a03991604ba0d78b82b80d7e17b446d2af4cc2
5,076
py
Python
classes.py
cheng-zeng35/lyricsync
19a4dde9eee543b822a93f9ccf613252dc1ad067
[ "MIT" ]
null
null
null
classes.py
cheng-zeng35/lyricsync
19a4dde9eee543b822a93f9ccf613252dc1ad067
[ "MIT" ]
null
null
null
classes.py
cheng-zeng35/lyricsync
19a4dde9eee543b822a93f9ccf613252dc1ad067
[ "MIT" ]
null
null
null
# this file is to store all custom classes import tkinter as tk # class to store tkinter window properties # font: tk font dictionary {family, size, weight, slant, underline, overstrike} # font color: string # nrows: the number of rows of lyric displayed (integer greater than 0) # width: window width (int greater tha...
45.72973
120
0.656816
3,548
0.698838
0
0
0
0
0
0
1,873
0.368919
68a37f7b4dbe79a75b57e0f1d831de618aa2079e
563
py
Python
test/unit/unittest_utils/utility.py
tsungjui/fusionline
26d5d41e82ac83822ba41df1cd14c54afa112655
[ "CC-BY-3.0" ]
1
2019-11-03T11:45:43.000Z
2019-11-03T11:45:43.000Z
test/unit/unittest_utils/utility.py
tsungjui/fusionline
26d5d41e82ac83822ba41df1cd14c54afa112655
[ "CC-BY-3.0" ]
4
2017-05-24T19:36:34.000Z
2019-08-23T02:49:18.000Z
test/unit/unittest_utils/utility.py
abretaud/galaxy
1ad89511540e6800cd2d0da5d878c1c77d8ccfe9
[ "CC-BY-3.0" ]
null
null
null
""" Unit test utilities. """ import textwrap def clean_multiline_string( multiline_string, sep='\n' ): """ Dedent, split, remove first and last empty lines, rejoin. """ multiline_string = textwrap.dedent( multiline_string ) string_list = multiline_string.split( sep ) if not string_list[0]: ...
23.458333
61
0.641208
0
0
0
0
0
0
0
0
167
0.296625
68a4b52bb7b1fdaa9592b0d8a5eb274cac1c955e
1,387
py
Python
tests/test_chunk_messages.py
UncleGoogle/galaxy-integrations-python-api
49ae2beab9cc48e55d7a5e90e39d43789fb823db
[ "MIT" ]
null
null
null
tests/test_chunk_messages.py
UncleGoogle/galaxy-integrations-python-api
49ae2beab9cc48e55d7a5e90e39d43789fb823db
[ "MIT" ]
null
null
null
tests/test_chunk_messages.py
UncleGoogle/galaxy-integrations-python-api
49ae2beab9cc48e55d7a5e90e39d43789fb823db
[ "MIT" ]
null
null
null
import asyncio import json def test_chunked_messages(plugin, read): request = { "jsonrpc": "2.0", "method": "install_game", "params": { "game_id": "3" } } message = json.dumps(request).encode() + b"\n" read.side_effect = [message[:5], message[5:], b""] a...
25.218182
83
0.522711
0
0
0
0
0
0
0
0
267
0.192502
68a4f3241cf1bad984e99e344329235393aad6ba
2,731
py
Python
test/Crawler/Fs/Image/ImageCrawlerTest.py
paulondc/chilopoda
046dbb0c1b4ff20ea5f2e1679f8d89f3089b6aa4
[ "MIT" ]
2
2019-09-24T18:56:27.000Z
2021-02-07T04:58:49.000Z
test/Crawler/Fs/Image/ImageCrawlerTest.py
paulondc/kombi
046dbb0c1b4ff20ea5f2e1679f8d89f3089b6aa4
[ "MIT" ]
20
2019-02-16T04:21:13.000Z
2019-03-09T21:21:21.000Z
test/Crawler/Fs/Image/ImageCrawlerTest.py
paulondc/kombi
046dbb0c1b4ff20ea5f2e1679f8d89f3089b6aa4
[ "MIT" ]
3
2019-11-15T05:16:32.000Z
2021-09-28T21:28:29.000Z
import os import unittest from ....BaseTestCase import BaseTestCase from kombi.Crawler import Crawler from kombi.Crawler.Fs.Image import ImageCrawler from kombi.Crawler.PathHolder import PathHolder class ImageCrawlerTest(BaseTestCase): """Test Image crawler.""" __singleFile = os.path.join(BaseTestCase.dataTes...
36.905405
89
0.677774
2,482
0.908825
0
0
0
0
0
0
864
0.316368
68a865bda85a4ed7b4aebbb6e21920d35b0aaa7a
3,688
py
Python
test/test_websocket_server.py
markkorput/pyRemoteParams
b96cc3d694f5715af40cf71865e7c2f550897a81
[ "MIT" ]
null
null
null
test/test_websocket_server.py
markkorput/pyRemoteParams
b96cc3d694f5715af40cf71865e7c2f550897a81
[ "MIT" ]
2
2020-03-13T07:14:36.000Z
2020-05-22T09:54:08.000Z
test/test_websocket_server.py
markkorput/pyRemoteParams
b96cc3d694f5715af40cf71865e7c2f550897a81
[ "MIT" ]
null
null
null
#!/usr/bin/env python import unittest, asyncio, asynctest, websockets, json from remote_params import HttpServer, Params, Server, Remote, create_sync_params, schema_list from remote_params.WebsocketServer import WebsocketServer class MockSocket: def __init__(self): self.close_count = 0 self.msgs = [] de...
31.521368
94
0.699024
3,372
0.914317
0
0
0
0
2,873
0.779013
838
0.227223
68a90bb15946847753f138179d4f2bda0c5abd53
3,592
py
Python
analyzer/com_classfiction.py
mt-group-1/social-react
8b3b75b08c595c99ab61da3c76b4916a524f75b0
[ "MIT" ]
null
null
null
analyzer/com_classfiction.py
mt-group-1/social-react
8b3b75b08c595c99ab61da3c76b4916a524f75b0
[ "MIT" ]
4
2021-11-08T20:48:42.000Z
2021-11-11T21:38:16.000Z
analyzer/com_classfiction.py
mt-group-1/social-react
8b3b75b08c595c99ab61da3c76b4916a524f75b0
[ "MIT" ]
null
null
null
import warnings import pandas as pd from nltk.sentiment.vader import SentimentIntensityAnalyzer warnings.filterwarnings("ignore") def classify_comments(text_file, page_name): """ Description: This function recives a text file and convert it into csv file to enable to label the comments inside that file, ...
32.654545
249
0.584633
0
0
0
0
0
0
0
0
1,942
0.540646
68aaa854df265e745f3f5094661f5862c8bd4125
846
py
Python
tests/test_android_here.py
b3b/pythonhere
edd45b4f5087d63e1bf265ec6a7c6ade23580de3
[ "MIT" ]
2
2021-01-06T19:38:25.000Z
2022-01-25T10:00:20.000Z
tests/test_android_here.py
b3b/pythonhere
edd45b4f5087d63e1bf265ec6a7c6ade23580de3
[ "MIT" ]
1
2021-01-04T10:44:12.000Z
2021-01-04T10:44:12.000Z
tests/test_android_here.py
b3b/pythonhere
edd45b4f5087d63e1bf265ec6a7c6ade23580de3
[ "MIT" ]
null
null
null
import pytest @pytest.mark.parametrize( "script", (None, "test.py"), ) def test_restart_app(mocked_android_modules, app_instance, test_py_script, script): from android_here import restart_app restart_app(script) def test_script_path_resolved(mocked_android_modules, app_instance, test_py_script): fro...
32.538462
93
0.795508
0
0
0
0
209
0.247045
0
0
59
0.06974
68aff5ecfb731da2cc7a3de58df5147f26f41df7
346
py
Python
Example/facenet_example.py
generalized-intelligence/Tegu
99394f62f2acdeed9e985685811e76f94ab7ac11
[ "BSD-3-Clause" ]
11
2019-01-29T07:01:38.000Z
2021-07-28T06:25:49.000Z
Example/facenet_example.py
generalized-intelligence/Tegu
99394f62f2acdeed9e985685811e76f94ab7ac11
[ "BSD-3-Clause" ]
23
2019-02-18T13:35:09.000Z
2022-03-11T23:42:11.000Z
Example/facenet_example.py
generalized-intelligence/Tegu
99394f62f2acdeed9e985685811e76f94ab7ac11
[ "BSD-3-Clause" ]
3
2019-02-12T08:09:45.000Z
2019-06-06T02:28:55.000Z
import sys sys.path.append('..') from Network.facenet.API import build_face_manager, detetion_and_recongnize ''' You have to build face manager before you start detection and recongnize. ''' face_manager = build_face_manager(r"face/dataset/path") result = detetion_and_recongnize(face_manager, r"images/path/you/want/...
28.833333
81
0.794798
0
0
0
0
0
0
0
0
138
0.398844
68b1fd87e78b3220b657c40bcdf0a4d61bd25d07
149
py
Python
Fundamentos/mundo_pc/dispositivo_entrada.py
ijchavez/python
bccd94a9bee90125e2be27b0355bdaedb0ae9d19
[ "Unlicense" ]
null
null
null
Fundamentos/mundo_pc/dispositivo_entrada.py
ijchavez/python
bccd94a9bee90125e2be27b0355bdaedb0ae9d19
[ "Unlicense" ]
null
null
null
Fundamentos/mundo_pc/dispositivo_entrada.py
ijchavez/python
bccd94a9bee90125e2be27b0355bdaedb0ae9d19
[ "Unlicense" ]
null
null
null
class DispositivoEntrada: def __init__(self, marca, tipo_entrada): self._marca = marca self.tipo_entrada = tipo_entrada
24.833333
44
0.657718
139
0.932886
0
0
0
0
0
0
0
0
68b43353f299ef2ed5654c73d7e6db582ed331bb
132
py
Python
src/clarityv2/homepage/urls.py
Clarity-89/clarityv2
7c4af765c5473778fc0750d1505f8b5f1724e5c5
[ "MIT" ]
null
null
null
src/clarityv2/homepage/urls.py
Clarity-89/clarityv2
7c4af765c5473778fc0750d1505f8b5f1724e5c5
[ "MIT" ]
1
2022-03-11T23:38:16.000Z
2022-03-11T23:38:16.000Z
src/clarityv2/homepage/urls.py
Clarity-89/clarityv2
7c4af765c5473778fc0750d1505f8b5f1724e5c5
[ "MIT" ]
null
null
null
from django.urls import path from .views import HomepageView urlpatterns = [ path('', HomepageView.as_view(), name='home'), ]
16.5
50
0.704545
0
0
0
0
0
0
0
0
8
0.060606
68b51c475fa96363f2601bbdb5efa8957c5f2363
5,394
py
Python
kolibri/plugins/utils/options.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
545
2016-01-19T19:26:55.000Z
2022-03-20T00:13:04.000Z
kolibri/plugins/utils/options.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
8,329
2016-01-19T19:32:02.000Z
2022-03-31T21:23:12.000Z
kolibri/plugins/utils/options.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
493
2016-01-19T19:26:48.000Z
2022-03-28T14:35:05.000Z
import copy import logging import warnings from kolibri.plugins.registry import registered_plugins logger = logging.getLogger(__name__) def __validate_config_option( section, name, base_config_spec, plugin_specs, module_path ): # Raise an error if someone tries to overwrite a base option # except for th...
40.253731
119
0.616982
0
0
0
0
0
0
0
0
1,329
0.246385
68b5318b5c1be79ea4655397f748e0742a2d9190
2,909
py
Python
utils.py
yzhhome/seq2seq_chatbot
2dd135da0d390c19b48cd72dfe19d6b32f698e03
[ "MIT" ]
null
null
null
utils.py
yzhhome/seq2seq_chatbot
2dd135da0d390c19b48cd72dfe19d6b32f698e03
[ "MIT" ]
null
null
null
utils.py
yzhhome/seq2seq_chatbot
2dd135da0d390c19b48cd72dfe19d6b32f698e03
[ "MIT" ]
null
null
null
from io import open import time import math import torch import torch.nn.functional as F from config import MAX_LENGTH from config import SOS_token from config import EOS_token from config import device class Lang: def __init__(self, name): self.name = name self.word2index = {} self.word2co...
28.80198
77
0.644208
629
0.211003
0
0
0
0
0
0
329
0.110366
68b5fc5d2f892e35cab73d5c07f10d1ff89a7241
1,941
py
Python
src/archive-comments-lambda/main.py
knotsrepus/knotsrepus-archiver
68384f24c6b8c3a45c39ac9720e10c26c1512279
[ "Apache-2.0" ]
1
2021-07-17T07:56:46.000Z
2021-07-17T07:56:46.000Z
src/archive-comments-lambda/main.py
knotsrepus/knotsrepus-archiver
68384f24c6b8c3a45c39ac9720e10c26c1512279
[ "Apache-2.0" ]
null
null
null
src/archive-comments-lambda/main.py
knotsrepus/knotsrepus-archiver
68384f24c6b8c3a45c39ac9720e10c26c1512279
[ "Apache-2.0" ]
null
null
null
import asyncio import json import os from datetime import datetime from src.common import log_utils, pushshift from src.common.filesystem import S3FileSystem, StubFileSystem from src.common.lambda_context import local_lambda_invocation def handler(event, context): logger = log_utils.get_logger("archive-comments-...
26.958333
97
0.703246
0
0
0
0
0
0
1,133
0.58372
277
0.14271
68b67bfa73f83b95f8183d1aa57786bce152b7a4
11,578
py
Python
cpc/criterion/clustering/clustering_quantization.py
anuragkumar95/CPC_audio
c771d07bb1cac4df947496813a4d07fd95e53f7f
[ "MIT" ]
6
2021-04-27T06:19:15.000Z
2021-11-04T20:22:46.000Z
cpc/criterion/clustering/clustering_quantization.py
anuragkumar95/CPC_audio
c771d07bb1cac4df947496813a4d07fd95e53f7f
[ "MIT" ]
7
2021-02-05T11:40:54.000Z
2021-04-06T12:45:54.000Z
cpc/criterion/clustering/clustering_quantization.py
anuragkumar95/CPC_audio
c771d07bb1cac4df947496813a4d07fd95e53f7f
[ "MIT" ]
5
2021-04-29T06:45:00.000Z
2021-11-23T19:51:02.000Z
import os import sys import json import argparse import progressbar from pathlib import Path from random import shuffle from time import time import torch from cpc.dataset import findAllSeqs from cpc.feature_loader import buildFeature, FeatureModule, loadModel, buildFeature_batch from cpc.criterion.clustering import kM...
43.040892
139
0.608568
0
0
0
0
0
0
0
0
3,471
0.299793
d799c19014a1b79f5fe8a1069ce05224e3482da3
1,591
py
Python
workflows/pipe-common/pipeline/autoscaling/cloudprovider.py
NShaforostov/cloud-pipeline
8d25b2b5f4838be569d9c25a307b77df5b0e73fc
[ "Apache-2.0" ]
null
null
null
workflows/pipe-common/pipeline/autoscaling/cloudprovider.py
NShaforostov/cloud-pipeline
8d25b2b5f4838be569d9c25a307b77df5b0e73fc
[ "Apache-2.0" ]
378
2021-03-25T20:09:54.000Z
2021-10-01T01:02:39.000Z
workflows/pipe-common/pipeline/autoscaling/cloudprovider.py
NShaforostov/cloud-pipeline
8d25b2b5f4838be569d9c25a307b77df5b0e73fc
[ "Apache-2.0" ]
2
2019-08-09T18:04:54.000Z
2019-08-11T19:03:06.000Z
# Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/) # # 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...
32.469388
125
0.715273
822
0.516656
0
0
0
0
0
0
691
0.434318
d79a0e50ffc39bcabbef42ae425c1e746935ff84
4,140
py
Python
setup.py
gokceneraslan/ProDy
74d40c372c53bd68f5e9f9c47b991b2e2b1b9f27
[ "NCSA" ]
null
null
null
setup.py
gokceneraslan/ProDy
74d40c372c53bd68f5e9f9c47b991b2e2b1b9f27
[ "NCSA" ]
null
null
null
setup.py
gokceneraslan/ProDy
74d40c372c53bd68f5e9f9c47b991b2e2b1b9f27
[ "NCSA" ]
null
null
null
import glob import os import os.path import sys import shutil import cPickle from types import StringType, UnicodeType from distutils.core import setup from distutils.extension import Extension from distutils.command.install import install PY3K = sys.version_info[0] > 2 with open('README.rst') as inp: long_descr...
35.689655
79
0.587923
0
0
0
0
0
0
0
0
1,747
0.421981
d79a69ca5970bcc43c73bbe72a7d4bd0d0841c39
491
py
Python
rabbitai/migrations/versions/d7c1a0d6f2da_remove_limit_used_from_query_model.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
rabbitai/migrations/versions/d7c1a0d6f2da_remove_limit_used_from_query_model.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
rabbitai/migrations/versions/d7c1a0d6f2da_remove_limit_used_from_query_model.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
1
2021-07-09T16:29:50.000Z
2021-07-09T16:29:50.000Z
"""Remove limit used from query model Revision ID: d7c1a0d6f2da Revises: afc69274c25a Create Date: 2019-06-04 10:12:36.675369 """ # revision identifiers, used by Alembic. revision = "d7c1a0d6f2da" down_revision = "afc69274c25a" import sqlalchemy as sa from alembic import op def upgrade(): with op.batch_alter_...
20.458333
80
0.735234
0
0
0
0
0
0
0
0
237
0.482688
d79a6a449f7e90756102071f66e54f7f316037df
13,393
py
Python
realworld_benchmark/nets/eig_layer.py
DomInvivo/pna
1a7d8ae645d093ebedeffcf148a98f6061957a23
[ "MIT" ]
null
null
null
realworld_benchmark/nets/eig_layer.py
DomInvivo/pna
1a7d8ae645d093ebedeffcf148a98f6061957a23
[ "MIT" ]
null
null
null
realworld_benchmark/nets/eig_layer.py
DomInvivo/pna
1a7d8ae645d093ebedeffcf148a98f6061957a23
[ "MIT" ]
2
2020-11-05T15:34:23.000Z
2020-12-17T17:44:48.000Z
EPS = 1e-5 import threading import torch import torch.nn as nn import torch.nn.functional as F from .aggregators import AGGREGATORS from .layers import MLP, FCLayer from .scalers import SCALERS class EIGLayerComplex(nn.Module): def __init__(self, in_dim, out_dim, dropout, graph_norm, batch_norm, aggregators, sc...
37.099723
199
0.605615
13,046
0.974091
0
0
0
0
0
0
1,275
0.095199
d79aca613972336652669e46aaf23dbcf659d8b3
3,553
py
Python
NLPEngine/utils/nlp_config.py
hmi-digital/bot_platform
91a26e566b07fa309774d0333a6bccf3d64cccc5
[ "MIT" ]
null
null
null
NLPEngine/utils/nlp_config.py
hmi-digital/bot_platform
91a26e566b07fa309774d0333a6bccf3d64cccc5
[ "MIT" ]
null
null
null
NLPEngine/utils/nlp_config.py
hmi-digital/bot_platform
91a26e566b07fa309774d0333a6bccf3d64cccc5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import json import hashlib from warnings import simplefilter from utils import log_util # ignore all warnings simplefilter(action='ignore') ##Global parameters scriptDir = os.path.dirname(__file__) dataPath = os.path.join(scriptDir, '..', 'training_data', 'intents') propertyFile =...
28.653226
102
0.633268
0
0
0
0
0
0
0
0
721
0.202927
d79b4bcbf6a110684a6330158716bc8642e8c218
641
py
Python
flow/core/gcp_credentials.py
hwknsj/synergy_flow
aba8f57b2cbeeb0368a64eaa7e5369fcef0a3136
[ "BSD-3-Clause" ]
null
null
null
flow/core/gcp_credentials.py
hwknsj/synergy_flow
aba8f57b2cbeeb0368a64eaa7e5369fcef0a3136
[ "BSD-3-Clause" ]
1
2016-10-03T18:48:15.000Z
2019-11-01T21:53:30.000Z
flow/core/gcp_credentials.py
hwknsj/synergy_flow
aba8f57b2cbeeb0368a64eaa7e5369fcef0a3136
[ "BSD-3-Clause" ]
1
2019-11-02T00:45:26.000Z
2019-11-02T00:45:26.000Z
import io import json from google.auth import compute_engine from google.oauth2 import service_account def gcp_credentials(service_account_file): if service_account_file: with io.open(service_account_file, 'r', encoding='utf-8') as json_fi: credentials_info = json.load(json_fi) creden...
35.611111
93
0.75195
0
0
0
0
0
0
0
0
149
0.232449
d79b6b0b33508785a7ea10e66bc23630bb1ac265
4,218
py
Python
main.py
tremor6916/sakugabooru-bot
c9e226699e97201dfa1937638adfd30f70d8cbf9
[ "MIT" ]
1
2021-08-16T14:47:19.000Z
2021-08-16T14:47:19.000Z
main.py
tremor6916/sakugabooru-bot
c9e226699e97201dfa1937638adfd30f70d8cbf9
[ "MIT" ]
2
2021-08-12T13:18:50.000Z
2021-08-14T07:01:28.000Z
main.py
tremor6916/sakugabooru-bot
c9e226699e97201dfa1937638adfd30f70d8cbf9
[ "MIT" ]
null
null
null
import requests import tweepy import random import time import os import bs4 from bs4 import BeautifulSoup from pybooru import Moebooru siteurl='https://www.sakugabooru.com/post/show/' header = {'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/53...
35.745763
170
0.628497
0
0
0
0
0
0
0
0
1,162
0.275486
d79bfd3dab6cfcc04ef37c5a0243968c7e22addb
491
py
Python
demos/template/src/urls.py
akornatskyy/wheezy.web
417834db697cf1f78f3a60cc880b9fd25d40c6de
[ "MIT" ]
17
2020-08-29T18:45:51.000Z
2022-03-02T19:37:13.000Z
demos/template/src/urls.py
akornatskyy/wheezy.web
417834db697cf1f78f3a60cc880b9fd25d40c6de
[ "MIT" ]
29
2020-07-18T04:34:03.000Z
2021-07-06T09:42:36.000Z
demos/template/src/urls.py
akornatskyy/wheezy.web
417834db697cf1f78f3a60cc880b9fd25d40c6de
[ "MIT" ]
1
2022-03-14T08:41:42.000Z
2022-03-14T08:41:42.000Z
""" """ from membership.web.urls import membership_urls from public.web.urls import error_urls, public_urls, static_urls from public.web.views import home from wheezy.routing import url locale_pattern = "{locale:(en|ru)}/" locale_defaults = {"locale": "en"} locale_urls = public_urls + membership_urls locale_urls.app...
25.842105
64
0.747454
0
0
0
0
0
0
0
0
57
0.11609
d79c181f52cc059ca3916a4f670fd6822c3c776d
5,571
py
Python
olmm.py
wesselb/olmm
367d69a4a646083d6b3f6ffd1963aeb2b7816ef9
[ "MIT" ]
2
2020-09-01T17:09:23.000Z
2021-08-21T12:19:19.000Z
olmm.py
wesselb/olmm
367d69a4a646083d6b3f6ffd1963aeb2b7816ef9
[ "MIT" ]
null
null
null
olmm.py
wesselb/olmm
367d69a4a646083d6b3f6ffd1963aeb2b7816ef9
[ "MIT" ]
2
2019-11-04T17:38:43.000Z
2021-08-21T12:19:20.000Z
from stheno import ( B, # Linear algebra backend Graph, # Graph that keep track of the graphical model GP, # Gaussian process EQ, # Squared-exponential kernel Matern12, # Matern-1/2 kernel Matern52, # Matern-5/2 kernel Delta, # Noise kernel Normal, # Gaussian distribution Dia...
32.578947
76
0.605277
0
0
0
0
0
0
0
0
2,585
0.46401
d79c63266fd7ef84a044820de7a71feb3ff446ff
1,995
py
Python
tests/molecular/molecules/utilities/building_block.py
andrewtarzia/stk
1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a
[ "MIT" ]
21
2018-04-12T16:25:24.000Z
2022-02-14T23:05:43.000Z
tests/molecular/molecules/utilities/building_block.py
JelfsMaterialsGroup/stk
0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2
[ "MIT" ]
8
2019-03-19T12:36:36.000Z
2020-11-11T12:46:00.000Z
tests/molecular/molecules/utilities/building_block.py
supramolecular-toolkit/stk
0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2
[ "MIT" ]
5
2018-08-07T13:00:16.000Z
2021-11-01T00:55:10.000Z
import itertools as it from tests.utilities import ( is_equivalent_atom, is_equivalent_molecule, ) def are_equivalent_functional_groups( functional_groups1, functional_groups2, ): functional_groups = it.zip_longest( functional_groups1, functional_groups2, ) for fg1, fg2 in...
28.913043
69
0.736341
0
0
0
0
0
0
0
0
0
0
d79c6838f09a05f79a094ede5cbcfc88762b1778
36
py
Python
pydeps/__main__.py
miketheman/pydeps
907a1a29cc0e04ad3698a812082775ccf39b6479
[ "BSD-2-Clause" ]
981
2015-07-08T15:55:30.000Z
2022-03-31T08:53:30.000Z
pydeps/__main__.py
miketheman/pydeps
907a1a29cc0e04ad3698a812082775ccf39b6479
[ "BSD-2-Clause" ]
129
2016-09-03T16:51:52.000Z
2022-03-19T23:07:50.000Z
pydeps/__main__.py
miketheman/pydeps
907a1a29cc0e04ad3698a812082775ccf39b6479
[ "BSD-2-Clause" ]
88
2015-03-24T03:25:54.000Z
2022-03-24T07:35:02.000Z
from .pydeps import pydeps pydeps()
12
26
0.777778
0
0
0
0
0
0
0
0
0
0
d79dec81c3204981b242083307d7250e99c10afb
271
py
Python
fileInfo.py
Jiaoma/fileStr
f400f607c7ab6923b36ffdda4e6eccdbc12c32cd
[ "MIT" ]
null
null
null
fileInfo.py
Jiaoma/fileStr
f400f607c7ab6923b36ffdda4e6eccdbc12c32cd
[ "MIT" ]
null
null
null
fileInfo.py
Jiaoma/fileStr
f400f607c7ab6923b36ffdda4e6eccdbc12c32cd
[ "MIT" ]
null
null
null
from os import listdir from os.path import join import os, errno def getImageNum(rootDir): return len(listdir(join(rootDir))) def safeMkdir(path:str): try: os.makedirs(path) except OSError as e: if e.errno != errno.EEXIST: raise
19.357143
38
0.649446
0
0
0
0
0
0
0
0
0
0
d79e215cb8f499e47e5107fabf650f63a2a2ff52
305
py
Python
text-classify/test.py
ubear/MachineLearn
c24947f7078269f51bf7ee0d2167ca6b71152d1e
[ "MIT" ]
null
null
null
text-classify/test.py
ubear/MachineLearn
c24947f7078269f51bf7ee0d2167ca6b71152d1e
[ "MIT" ]
null
null
null
text-classify/test.py
ubear/MachineLearn
c24947f7078269f51bf7ee0d2167ca6b71152d1e
[ "MIT" ]
null
null
null
#coding:utf-8 import re import math from docclass import Classifier def test_infc_func(): c = Classifier(getfeatures=None) c.infc("python", "good") c.infc("python", "good") c.infc("the", "bad") c.infc("the", "good") print c.fc if __name__ == "__main__": test_infc_func()
15.25
36
0.629508
0
0
0
0
0
0
0
0
72
0.236066
d79e31449a493b9c8402aeee5862015258d4756b
8,560
py
Python
libs/hermes/hermes.cloudbreak/hermes/cloudbreak/kubernetes/base.py
KAGRA-TW-ML/gw-iaas
3f4ff0fef16d39b75615b80fedf106a8dd4f846d
[ "MIT" ]
2
2021-12-21T22:34:30.000Z
2021-12-22T01:26:57.000Z
libs/hermes/hermes.cloudbreak/hermes/cloudbreak/kubernetes/base.py
KAGRA-TW-ML/gw-iaas
3f4ff0fef16d39b75615b80fedf106a8dd4f846d
[ "MIT" ]
3
2021-11-09T21:38:26.000Z
2022-02-26T20:44:31.000Z
libs/hermes/hermes.cloudbreak/hermes/cloudbreak/kubernetes/base.py
KAGRA-TW-ML/gw-iaas
3f4ff0fef16d39b75615b80fedf106a8dd4f846d
[ "MIT" ]
3
2021-08-07T17:19:10.000Z
2022-02-11T02:00:38.000Z
import abc import time from dataclasses import dataclass from functools import partial from typing import TYPE_CHECKING import kubernetes from kubernetes.utils.create_from_yaml import FailToCreateError from urllib3.exceptions import MaxRetryError from hermes.cloudbreak.utils import snakeify, wait_for if TYPE_CHECKIN...
30.140845
79
0.573248
8,145
0.951519
0
0
6,439
0.75222
0
0
1,493
0.174416
d79fcf121072d7dc68656d391c409e397c811e06
333
py
Python
src/chapter2/exercise7.py
group6BCS1/BCS-2021
272b1117922163cde03901cfdd82f8e0cfab9a67
[ "MIT" ]
null
null
null
src/chapter2/exercise7.py
group6BCS1/BCS-2021
272b1117922163cde03901cfdd82f8e0cfab9a67
[ "MIT" ]
null
null
null
src/chapter2/exercise7.py
group6BCS1/BCS-2021
272b1117922163cde03901cfdd82f8e0cfab9a67
[ "MIT" ]
null
null
null
c = float(input("Enter Amount Between 0-99 :")) print(c // 20, "Twenties") c = c % 20 print(c // 10, "Tens") c = c % 10 print(c // 5, "Fives") c = c % 5 print(c // 1, "Ones") c = c % 1 print(c // 0.25, "Quarters") c = c % 0.25 print(c // 0.1, "Dimes") c = c % 0.1 print(c // 0.05, "Nickles") c = c % 0.05 print(c // 0.01...
19.588235
47
0.51952
0
0
0
0
0
0
0
0
93
0.279279
d7a074b6e62790e1749e72555067425bbae6f923
4,772
py
Python
gmn/src/d1_gmn/tests/test_content_disposition.py
DataONEorg/d1_python
dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb
[ "Apache-2.0" ]
15
2016-10-28T13:56:52.000Z
2022-01-31T19:07:49.000Z
gmn/src/d1_gmn/tests/test_content_disposition.py
DataONEorg/d1_python
dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb
[ "Apache-2.0" ]
56
2017-03-16T03:52:32.000Z
2022-03-12T01:05:28.000Z
gmn/src/d1_gmn/tests/test_content_disposition.py
DataONEorg/d1_python
dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb
[ "Apache-2.0" ]
11
2016-05-31T16:22:02.000Z
2020-10-05T14:37:10.000Z
#!/usr/bin/env python # This work was created by participants in the DataONE project, and is # jointly copyrighted by participating institutions in DataONE. For # more information on DataONE, see our web site at http://dataone.org. # # Copyright 2009-2019 DataONE # # Licensed under the Apache License, Version 2.0 (t...
35.61194
86
0.667854
3,518
0.737217
0
0
3,596
0.753562
0
0
2,159
0.452431
d7a429ba73c168c4f1bfd1cea778f28be08cf20c
2,159
py
Python
tests/test_models/test_ner_model.py
xyzhu8/mmocr
f62b4513f5411bde9f24e1902b1cb1945340022a
[ "Apache-2.0" ]
null
null
null
tests/test_models/test_ner_model.py
xyzhu8/mmocr
f62b4513f5411bde9f24e1902b1cb1945340022a
[ "Apache-2.0" ]
null
null
null
tests/test_models/test_ner_model.py
xyzhu8/mmocr
f62b4513f5411bde9f24e1902b1cb1945340022a
[ "Apache-2.0" ]
null
null
null
import copy import os.path as osp import tempfile import pytest import torch from mmocr.models import build_detector def _create_dummy_vocab_file(vocab_file): with open(vocab_file, 'w') as fw: for char in list(map(chr, range(ord('a'), ord('z') + 1))): fw.write(char + '\n') def _get_config_...
27.679487
78
0.673923
0
0
0
0
1,385
0.640907
0
0
482
0.223045
d7a7c1b8bf94815da1b2a43d746bb8543d773174
1,106
py
Python
Cita.py
Desquivel501/Backend_Proyecto2_IPC1
b983682eef4bcc379f6d57bf034675bf623fb33d
[ "Apache-2.0" ]
null
null
null
Cita.py
Desquivel501/Backend_Proyecto2_IPC1
b983682eef4bcc379f6d57bf034675bf623fb33d
[ "Apache-2.0" ]
null
null
null
Cita.py
Desquivel501/Backend_Proyecto2_IPC1
b983682eef4bcc379f6d57bf034675bf623fb33d
[ "Apache-2.0" ]
null
null
null
class Cita: def __init__(self,id,solicitante,fecha,hora,motivo,estado,doctor): self.id = id self.solicitante = solicitante self.fecha = fecha self.hora = hora self.motivo = motivo self.estado = estado self.doctor = doctor def getId(self): ...
20.867925
70
0.567812
1,095
0.990054
0
0
0
0
0
0
0
0
d7a7ff3bd6f840a0858a02d02a7395eeedc612d9
3,333
py
Python
recohut/models/layers/graph.py
sparsh-ai/recohut
4121f665761ffe38c9b6337eaa9293b26bee2376
[ "Apache-2.0" ]
null
null
null
recohut/models/layers/graph.py
sparsh-ai/recohut
4121f665761ffe38c9b6337eaa9293b26bee2376
[ "Apache-2.0" ]
1
2022-01-12T05:40:57.000Z
2022-01-12T05:40:57.000Z
recohut/models/layers/graph.py
RecoHut-Projects/recohut
4121f665761ffe38c9b6337eaa9293b26bee2376
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/models/layers/models.layers.graph.ipynb (unless otherwise specified). __all__ = ['FiGNN_Layer', 'GraphLayer'] # Cell import torch import torch.nn as nn import torch.nn.functional as F from itertools import product # Cell class FiGNN_Layer(nn.Module): def __init__(s...
40.646341
117
0.610561
3,052
0.915692
0
0
0
0
0
0
228
0.068407
d7a8eecbc304f83f8cc307ef1ff32ce4d5ad23c6
20,638
py
Python
euchre.py
duck57/euchre.py
838ef7b3bdd9e3bb6af6edce532300b004a4f1a4
[ "0BSD" ]
1
2020-03-26T00:00:18.000Z
2020-03-26T00:00:18.000Z
euchre.py
duck57/euchre.py
838ef7b3bdd9e3bb6af6edce532300b004a4f1a4
[ "0BSD" ]
null
null
null
euchre.py
duck57/euchre.py
838ef7b3bdd9e3bb6af6edce532300b004a4f1a4
[ "0BSD" ]
null
null
null
#!venv/bin/python # coding=UTF-8 # -*- coding: UTF-8 -*- # vim: set fileencoding=UTF-8 : """ Double-deck bid euchre Implementation is similar to the rules given by Craig Powers https://www.pagat.com/euchre/bideuch.html Notable differences (to match how I learned in high school calculus) include: * Minimum bid o...
34.168874
93
0.537358
18,980
0.919618
0
0
2,598
0.125878
0
0
4,231
0.205
d7a9af578243dd70e67e5e691e31327e0ed63c8d
3,908
py
Python
src/consumer/catalog-search/swagger_server/models/error_response.py
CADDE-sip/connector
233b63df334dea67c05d379e925ebb7cc15f4b4d
[ "MIT" ]
1
2022-03-29T05:44:47.000Z
2022-03-29T05:44:47.000Z
src/provider/provenance-management/swagger_server/models/error_response.py
CADDE-sip/connector
233b63df334dea67c05d379e925ebb7cc15f4b4d
[ "MIT" ]
null
null
null
src/provider/provenance-management/swagger_server/models/error_response.py
CADDE-sip/connector
233b63df334dea67c05d379e925ebb7cc15f4b4d
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server import util class ErrorResponse(Model): """NOTE: This class is auto generated by the swagg...
25.376623
116
0.570368
3,761
0.94025
0
0
2,564
0.641
0
0
2,399
0.59975
d7aa0f6c9b402105d7439f34f24ee84832389102
1,534
py
Python
dh_example.py
afakharany93/DH_Matrix_Python
97e29d5b14511f68884a89852d014b010aa4e0f2
[ "MIT" ]
null
null
null
dh_example.py
afakharany93/DH_Matrix_Python
97e29d5b14511f68884a89852d014b010aa4e0f2
[ "MIT" ]
null
null
null
dh_example.py
afakharany93/DH_Matrix_Python
97e29d5b14511f68884a89852d014b010aa4e0f2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from dh import dh_solver #from IPython.display import Latex import sympy from sympy import Symbol import numpy as np #create an object mtb = dh_solver() # ## adding the dh paramters # just use obj.add() method to add a set of dh paramters in the kinematic chain, the first o...
25.147541
205
0.730769
0
0
0
0
0
0
0
0
1,062
0.692308
d7aa249c00c97006115a30d68bd7d12ff4ce1c5c
1,646
py
Python
src/python/pants/help/list_goals_integration_test.py
thamenato/pants
bc4a8fb3f07f6145649f02b06a1e5599aa28b36c
[ "Apache-2.0" ]
null
null
null
src/python/pants/help/list_goals_integration_test.py
thamenato/pants
bc4a8fb3f07f6145649f02b06a1e5599aa28b36c
[ "Apache-2.0" ]
null
null
null
src/python/pants/help/list_goals_integration_test.py
thamenato/pants
bc4a8fb3f07f6145649f02b06a1e5599aa28b36c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.testutil.pants_integration_test import run_pants def test_goals() -> None: pants_run = run_pants(["goals"]) pants_run.assert_success() assert "to get help for a pa...
38.27907
93
0.694411
0
0
0
0
0
0
0
0
703
0.427096
d7ac1e6f92f48c0869fd34f768c9769c6cff0aee
78
py
Python
tests/data/custom_loader2.py
cambiegroup/aizynthfinder
f5bafb2ac4749284571c05ae6df45b6f45cccd30
[ "MIT" ]
219
2020-06-15T08:04:53.000Z
2022-03-31T09:02:47.000Z
tests/data/custom_loader2.py
cambiegroup/aizynthfinder
f5bafb2ac4749284571c05ae6df45b6f45cccd30
[ "MIT" ]
56
2020-08-14T14:50:42.000Z
2022-03-22T12:49:06.000Z
tests/data/custom_loader2.py
cambiegroup/aizynthfinder
f5bafb2ac4749284571c05ae6df45b6f45cccd30
[ "MIT" ]
58
2020-06-15T13:36:42.000Z
2022-03-21T06:18:02.000Z
def extract_smiles(): return ["c1ccccc1", "Cc1ccccc1", "c1ccccc1", "CCO"]
26
55
0.653846
0
0
0
0
0
0
0
0
36
0.461538
d7ac26c759283e3913ac9e8cb81d30bdc1dc518a
9,903
py
Python
proa.py
andrehigher/ProA
bd05d231f6edb1c2f87a3c067ff0cf1f2867b9b5
[ "Apache-2.0" ]
null
null
null
proa.py
andrehigher/ProA
bd05d231f6edb1c2f87a3c067ff0cf1f2867b9b5
[ "Apache-2.0" ]
null
null
null
proa.py
andrehigher/ProA
bd05d231f6edb1c2f87a3c067ff0cf1f2867b9b5
[ "Apache-2.0" ]
null
null
null
""" A Python Class A simple Python graph class to do essential operations into graph. """ import operator import math from random import choice from collections import defaultdict import networkx as nx class ProA(): def __init__(self, graph): """ Initializes util object. """ self.__graph =...
36.951493
139
0.58144
9,699
0.9794
0
0
0
0
0
0
2,240
0.226194
d7acd6c4288f7d67024c98e799deb3358d6fb4d1
1,214
py
Python
fix-sfz.py
SpotlightKid/sfzparser
9a339274bc44931965ebb36336f43c4fa5f1e498
[ "MIT" ]
5
2017-01-10T23:22:57.000Z
2020-05-08T06:29:38.000Z
fix-sfz.py
SpotlightKid/sfzparser
9a339274bc44931965ebb36336f43c4fa5f1e498
[ "MIT" ]
2
2017-03-28T20:14:27.000Z
2017-03-29T07:54:59.000Z
fix-sfz.py
SpotlightKid/sfzparser
9a339274bc44931965ebb36336f43c4fa5f1e498
[ "MIT" ]
2
2017-03-28T20:00:42.000Z
2020-10-24T16:39:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import shutil from os.path import basename, exists, isdir, splitext from sfzparser import SFZParser def main(args=None): fn = args[0] bn = splitext(basename(fn))[0] parser = SFZParser(fn) fixed = False for name, sect in parser.sections: # fi...
28.904762
93
0.521417
0
0
0
0
0
0
0
0
261
0.214992
d7ad4862b9b6c2d525c8d2c7b82c06b8e22cd716
103
py
Python
pytoolkit/applications/__init__.py
ak110/pytoolk
8eef7e0add7bbc0ced1f1f1d82ed245388cc6684
[ "MIT" ]
26
2018-12-03T23:02:56.000Z
2020-08-07T06:33:21.000Z
pytoolkit/applications/__init__.py
ak110/pytoolk
8eef7e0add7bbc0ced1f1f1d82ed245388cc6684
[ "MIT" ]
null
null
null
pytoolkit/applications/__init__.py
ak110/pytoolk
8eef7e0add7bbc0ced1f1f1d82ed245388cc6684
[ "MIT" ]
5
2019-08-10T11:10:59.000Z
2020-11-18T02:39:37.000Z
"""Kerasの各種モデル。""" # pylint: skip-file # flake8: noqa from . import darknet53, efficientnet, xception
17.166667
47
0.718447
0
0
0
0
0
0
0
0
65
0.555556
d7ada5e8230786197ee97f5ef4dfe811a9ba707b
1,536
py
Python
tests/rest/integration/test_common_endpoints.py
Palem1988/huobi
400d07ea309dc7bc75fb953ddf507c3592678b05
[ "MIT" ]
19
2018-05-18T09:49:47.000Z
2021-06-18T20:25:14.000Z
tests/rest/integration/test_common_endpoints.py
tianshanghong/huobi
b2d1a14ed83ac890cc63b513618c8f5ba2574512
[ "MIT" ]
14
2018-05-15T16:30:40.000Z
2022-03-17T08:52:06.000Z
tests/rest/integration/test_common_endpoints.py
tianshanghong/huobi
b2d1a14ed83ac890cc63b513618c8f5ba2574512
[ "MIT" ]
9
2018-05-27T01:34:37.000Z
2022-03-04T20:11:30.000Z
import unittest from huobi.rest.client import HuobiRestClient from huobi.rest.error import ( HuobiRestiApiError ) import os from os.path import join, dirname from dotenv import load_dotenv dotenv_path = join(dirname(dirname(dirname(dirname(__file__)))), '.env') load_dotenv(dotenv_path) class TestCommonEndpoint(...
25.6
72
0.682292
1,231
0.801432
0
0
0
0
0
0
48
0.03125
d7afcd461d31d762481c2b25c06e4d95251be3d2
8,477
py
Python
gerritviewer/views/accounts.py
tivaliy/gerrit-quick-viewer
86d6995faf2a1eeb611eb861fef2a8c856f4be86
[ "Apache-2.0" ]
null
null
null
gerritviewer/views/accounts.py
tivaliy/gerrit-quick-viewer
86d6995faf2a1eeb611eb861fef2a8c856f4be86
[ "Apache-2.0" ]
null
null
null
gerritviewer/views/accounts.py
tivaliy/gerrit-quick-viewer
86d6995faf2a1eeb611eb861fef2a8c856f4be86
[ "Apache-2.0" ]
null
null
null
# # Copyright 2017 Vitalii Kulanov # # 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 ...
46.070652
79
0.575911
0
0
0
0
7,037
0.830129
0
0
1,673
0.197358
d7afd3383399873e7b024e174d09b83c6155eba6
2,928
py
Python
infra/tools/git-push-speed.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
infra/tools/git-push-speed.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
infra/tools/git-push-speed.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Measures the average time used by git-push command in CQ based on data from chromium-cq-status.appspot.com.""" import argparse import json import logging...
36.148148
79
0.653005
0
0
0
0
0
0
0
0
1,193
0.407445
d7b09b3899eab74c7da7d05d1a738239da6a6f8c
93
py
Python
backoffice/transactions/utils.py
AlejandroUPC/pythonmicroservices
9d42bd6dfd9847ad4a8e6029e808de927292c251
[ "MIT" ]
null
null
null
backoffice/transactions/utils.py
AlejandroUPC/pythonmicroservices
9d42bd6dfd9847ad4a8e6029e808de927292c251
[ "MIT" ]
null
null
null
backoffice/transactions/utils.py
AlejandroUPC/pythonmicroservices
9d42bd6dfd9847ad4a8e6029e808de927292c251
[ "MIT" ]
null
null
null
import random def create_random_id(): return str(random.randint(100000,999999999999999))
23.25
54
0.795699
0
0
0
0
0
0
0
0
0
0
d7b1f098471299492d3a164aae5bda72d5a2c99e
113
py
Python
bitmovin_api_sdk/encoding/infrastructure/kubernetes/configuration/__init__.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
null
null
null
bitmovin_api_sdk/encoding/infrastructure/kubernetes/configuration/__init__.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
1
2020-07-06T07:13:43.000Z
2020-07-06T07:13:43.000Z
bitmovin_api_sdk/encoding/infrastructure/kubernetes/configuration/__init__.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
1
2020-07-06T07:07:26.000Z
2020-07-06T07:07:26.000Z
from bitmovin_api_sdk.encoding.infrastructure.kubernetes.configuration.configuration_api import ConfigurationApi
56.5
112
0.920354
0
0
0
0
0
0
0
0
0
0
d7b416d06c92253082c35eb75c67b3efcc2cb569
3,427
py
Python
python/cudf/cudf/core/column/methods.py
shridharathi/cudf
664712eb124e35dd2e8f28c287adbb48fc8049d6
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/core/column/methods.py
shridharathi/cudf
664712eb124e35dd2e8f28c287adbb48fc8049d6
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/core/column/methods.py
shridharathi/cudf
664712eb124e35dd2e8f28c287adbb48fc8049d6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. from __future__ import annotations from typing import TYPE_CHECKING, Optional, Union, overload from typing_extensions import Literal import cudf if TYPE_CHECKING: from cudf.core.column import ColumnBase class ColumnMethodsMixin: _column: ColumnBase _parent: O...
31.440367
79
0.534578
3,170
0.925007
0
0
713
0.208054
0
0
387
0.112927
d7b668f8518c7dd4a692c3180e8c31313bbcc189
8,139
py
Python
spa/tests/dom_helper.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
spa/tests/dom_helper.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
spa/tests/dom_helper.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
from selenium.common.exceptions import NoSuchElementException, TimeoutException class DomHelper(object): driver = None waiter = None def open_page(self, url): self.driver.get(url) def reload_page(self): self.driver.refresh() def print_el(self, element): print('tag: ' + e...
38.03271
154
0.615678
8,057
0.989925
0
0
0
0
0
0
798
0.098046
d7b71be599126f3487b3d6c940f7c879926c6044
1,491
py
Python
gravityspytools/search/models.py
Gravity-Spy/gravityspytools
23ef83e36ed934f7c39440bf43f4d5c7b7b4abb0
[ "BSD-3-Clause" ]
4
2019-03-11T12:32:24.000Z
2020-12-01T06:31:39.000Z
gravityspytools/search/models.py
johnwick211/gravityspytools
23ef83e36ed934f7c39440bf43f4d5c7b7b4abb0
[ "BSD-3-Clause" ]
19
2018-01-29T21:28:39.000Z
2020-07-14T18:38:23.000Z
gravityspytools/search/models.py
johnwick211/gravityspytools
23ef83e36ed934f7c39440bf43f4d5c7b7b4abb0
[ "BSD-3-Clause" ]
4
2018-02-02T16:47:16.000Z
2020-12-01T06:31:49.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User from django.contrib.postgres.fields import ArrayField # Create your models here. """ class NewSearch(models.Model): SINGLEVIEW = 'similarityindex' MULTIVIEW = 'updated_simi...
31.723404
174
0.646546
0
0
0
0
0
0
0
0
1,319
0.884641
d7b7548d8ddf5ce24d29bb3004f66eaa2e7d0d79
776
py
Python
simple_menu/simple_encoder.py
mexclub/simple_menu
9e37b2101c74f451270ceab0f50e19457562d20a
[ "MIT" ]
null
null
null
simple_menu/simple_encoder.py
mexclub/simple_menu
9e37b2101c74f451270ceab0f50e19457562d20a
[ "MIT" ]
null
null
null
simple_menu/simple_encoder.py
mexclub/simple_menu
9e37b2101c74f451270ceab0f50e19457562d20a
[ "MIT" ]
3
2020-01-07T14:36:31.000Z
2021-01-04T15:37:30.000Z
from machine import Pin class simple_encoder(): def __init__(self, ra, rb, pin_irq): self.ra = ra self.rb = rb self.counter = 0 self.ra.irq(trigger=pin_irq, handler=self.turn) self.rb.irq(trigger=pin_irq, handler=self.turn) def turn(self, pin): change...
32.333333
62
0.487113
747
0.962629
0
0
0
0
0
0
0
0
d7b9607848de2585415aac4ac43c5891e9257879
7,928
py
Python
Final/prediction/nb1.py
NaguGowda/machin-learning-
dd04f44a06d6f83e58ed6eb4d69db09620040e49
[ "Apache-2.0" ]
null
null
null
Final/prediction/nb1.py
NaguGowda/machin-learning-
dd04f44a06d6f83e58ed6eb4d69db09620040e49
[ "Apache-2.0" ]
null
null
null
Final/prediction/nb1.py
NaguGowda/machin-learning-
dd04f44a06d6f83e58ed6eb4d69db09620040e49
[ "Apache-2.0" ]
null
null
null
# Example of Naive Bayes implemented from Scratch in Python import csv import random import math import xgboost as xgb import matplotlib.pyplot as plt import numpy as np def loadCsv(filename): lines = csv.reader(open(filename, "r")) dataset = list(lines) for i in range(len(dataset)): dataset[i] = [flo...
31.839357
101
0.645686
0
0
0
0
0
0
0
0
1,778
0.224268
d7ba1f7895f8a28f6a1b180ed84e6be8b3b520b7
7,367
py
Python
wingstructure/data/wing.py
helo9/wingstructure
ff82eb0b87e3b5ececff39895f959bfef468e7c3
[ "MIT" ]
7
2019-01-02T16:47:31.000Z
2020-10-10T10:06:15.000Z
wingstructure/data/wing.py
helo9/wingstructure
ff82eb0b87e3b5ececff39895f959bfef468e7c3
[ "MIT" ]
9
2019-01-13T20:11:23.000Z
2019-10-10T21:38:58.000Z
wingstructure/data/wing.py
helo9/wingstructure
ff82eb0b87e3b5ececff39895f959bfef468e7c3
[ "MIT" ]
1
2018-12-27T14:20:36.000Z
2018-12-27T14:20:36.000Z
from collections import namedtuple from copy import deepcopy import numpy as np # data type for 3D-Coordinates Point = namedtuple('Point', 'x y z') # monkey patch function def serializesection(self): data = dict(self._asdict()) data['pos'] = dict(self.pos._asdict()) return data class _Wing: """ ...
26.692029
102
0.529659
7,071
0.95878
0
0
2,083
0.282441
0
0
2,025
0.274576
d7ba596dc0cf678dc2c3cf189ee8dd90496c1aa2
3,103
py
Python
crossdock/problems/experiment/crossdock_15_25_15_5_5.py
krerkkiat/icpr-2019-public
f3023c009f3335ce58204a45c270cfeb6ef19367
[ "BSD-3-Clause" ]
null
null
null
crossdock/problems/experiment/crossdock_15_25_15_5_5.py
krerkkiat/icpr-2019-public
f3023c009f3335ce58204a45c270cfeb6ef19367
[ "BSD-3-Clause" ]
null
null
null
crossdock/problems/experiment/crossdock_15_25_15_5_5.py
krerkkiat/icpr-2019-public
f3023c009f3335ce58204a45c270cfeb6ef19367
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Cross-docking truck data. This data is generated by a generate_dataset.py script. Created: Feb 18, 2019 at 07:30:02 PM Copyright (c) 2022, Krerkkiat Chusap This souce code is licensed under BSD 3-Clause "New" or "Revised" License (see LICENSE for details). """ from pathlib import Path # ...
41.373333
100
0.477602
0
0
0
0
0
0
0
0
373
0.120206
d7ba6d2580da27c50c90b24f37ff13d8bc2e1d42
1,121
py
Python
CIFAR10/train.py
aidezone/pytorch-learning
c9c5c185e4de71503002083e271c6b19321520c1
[ "MIT" ]
null
null
null
CIFAR10/train.py
aidezone/pytorch-learning
c9c5c185e4de71503002083e271c6b19321520c1
[ "MIT" ]
null
null
null
CIFAR10/train.py
aidezone/pytorch-learning
c9c5c185e4de71503002083e271c6b19321520c1
[ "MIT" ]
null
null
null
import base # 开始真正的模型训练 import torch import torch.nn as nn # 实例化网络 net = base.MyCustomNet() # 定义数据集的训练迭代轮次 max_epoch = 5 # 定义学习率 learning_rate = 0.001 # 定义loss函数、定义优化器 import torch.optim as optim criterion = nn.CrossEntropyLoss() optimizer = optim.SGD(net.parameters(), lr=learning_rate, momentum=0.9) # 进行模型训练 fo...
22.42
79
0.6405
0
0
0
0
0
0
0
0
458
0.376955
d7bae06c160ec85487c4a5b05e1c32a823c606b8
14,934
py
Python
coord2vec/models/baselines/coord2vec_model.py
jonzarecki/coord2vec
4f267fdd87af7b3d3558ca834b88e9ab7c309c18
[ "Apache-2.0" ]
null
null
null
coord2vec/models/baselines/coord2vec_model.py
jonzarecki/coord2vec
4f267fdd87af7b3d3558ca834b88e9ab7c309c18
[ "Apache-2.0" ]
null
null
null
coord2vec/models/baselines/coord2vec_model.py
jonzarecki/coord2vec
4f267fdd87af7b3d3558ca834b88e9ab7c309c18
[ "Apache-2.0" ]
1
2021-01-25T09:21:17.000Z
2021-01-25T09:21:17.000Z
import os import random from typing import List, Tuple, Callable import torch from ignite.contrib.handlers import ProgressBar, LRScheduler from ignite.handlers import ModelCheckpoint from sklearn.base import BaseEstimator, TransformerMixin from torch import nn from torch import optim from torch.nn.modules.loss import _...
47.56051
118
0.64169
13,371
0.895339
0
0
4,320
0.289273
0
0
3,262
0.218428
d7bb7502a2e24be8eaf3bc4172023cbaaaa79d16
1,716
py
Python
PythonExercicios/ex045.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
PythonExercicios/ex045.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
PythonExercicios/ex045.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
from random import choice from time import sleep jokenpo = ['Pedra', 'Papel', 'Tesoura'] jokenposter_stainger = choice(jokenpo) jogador = int(input('Qual a sua jogada?' '\n1. Pedra' '\n2. Papel' '\n3. Tesoura' '\nEscolha: ')) print('\nJO....
23.189189
64
0.597902
0
0
0
0
0
0
0
0
557
0.322152
d7bba15bb04519ffa2576bb1d237b14798175a4e
102
py
Python
demo_backend/text_generator/apps.py
WallaceLiu/Web-Full-Stack-Practice
2551ab12d7b500387cc511f1cb7428aef4d59ab4
[ "BSD-2-Clause" ]
33
2019-03-04T12:56:47.000Z
2021-11-27T02:29:45.000Z
demo_backend/text_generator/apps.py
WallaceLiu/Web-Full-Stack-Practice
2551ab12d7b500387cc511f1cb7428aef4d59ab4
[ "BSD-2-Clause" ]
1
2021-06-10T21:39:42.000Z
2021-06-10T21:39:42.000Z
demo_backend/text_generator/apps.py
WallaceLiu/Web-Full-Stack-Practice
2551ab12d7b500387cc511f1cb7428aef4d59ab4
[ "BSD-2-Clause" ]
9
2019-03-04T13:15:51.000Z
2021-08-24T01:24:34.000Z
from django.apps import AppConfig class TextGeneratorConfig(AppConfig): name = 'text_generator'
17
37
0.784314
65
0.637255
0
0
0
0
0
0
16
0.156863
d7bd08d0f54f08c80ef0751f3fb01d94c3153c59
760
py
Python
tools/find_protoc.py
Kill-Console/xresloader
dc11f4cffecb9f9d706c91a83d5b70a1d418cfc5
[ "MIT" ]
219
2015-05-21T03:27:46.000Z
2022-03-22T08:39:41.000Z
tools/find_protoc.py
Kill-Console/xresloader
dc11f4cffecb9f9d706c91a83d5b70a1d418cfc5
[ "MIT" ]
9
2016-04-26T07:11:26.000Z
2021-12-30T02:45:00.000Z
tools/find_protoc.py
Kill-Console/xresloader
dc11f4cffecb9f9d706c91a83d5b70a1d418cfc5
[ "MIT" ]
59
2015-05-19T01:29:28.000Z
2022-03-22T08:39:43.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import sys import os import stat protoc_exec = None def find_protoc(): global protoc_exec if protoc_exec is not None: return protoc_exec script_dir = os.path.dirname(os.path.realpath(__file__)) if sys.platform[0:5].lower() == "linux": protoc_ex...
29.230769
78
0.665789
0
0
0
0
0
0
0
0
164
0.215789
d7bd3f72caaeb6260431ad1a59089ba8056f0635
43,253
py
Python
inventory/views.py
yellowjaguar5/lnldb
dea7708f5e4e103ef6ef968c9f3a4deaa58861c5
[ "MIT" ]
5
2017-09-25T21:24:59.000Z
2021-12-18T17:08:13.000Z
inventory/views.py
yellowjaguar5/lnldb
dea7708f5e4e103ef6ef968c9f3a4deaa58861c5
[ "MIT" ]
304
2015-03-24T17:44:22.000Z
2022-03-29T14:09:41.000Z
inventory/views.py
yellowjaguar5/lnldb
dea7708f5e4e103ef6ef968c9f3a4deaa58861c5
[ "MIT" ]
10
2017-10-24T02:18:12.000Z
2021-09-20T20:40:25.000Z
from io import BytesIO import json import re import requests from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import login_required, permission_required from django.core.exceptions import PermissionDenied from django.core.paginator import EmptyPage, PageNotAnInte...
51.369359
199
0.565464
0
0
0
0
32,120
0.742607
0
0
18,340
0.424017
d7c1a3f606fca343046498c63a29e95730e0801b
2,877
py
Python
tests/unit_tests/db_engine_specs/test_athena.py
awchisholm/superset
a169b6071209c4f6681c95486127fc43884ff6d1
[ "Apache-2.0" ]
2
2021-12-21T15:57:16.000Z
2022-01-31T02:22:02.000Z
tests/unit_tests/db_engine_specs/test_athena.py
awchisholm/superset
a169b6071209c4f6681c95486127fc43884ff6d1
[ "Apache-2.0" ]
8
2021-11-19T11:56:39.000Z
2022-03-02T10:50:58.000Z
tests/unit_tests/db_engine_specs/test_athena.py
awchisholm/superset
a169b6071209c4f6681c95486127fc43884ff6d1
[ "Apache-2.0" ]
2
2021-12-21T13:41:18.000Z
2021-12-26T22:16:43.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.847059
120
0.680222
0
0
0
0
0
0
0
0
1,498
0.520681
d7c1f88f81f11884d3d6e8d5e5c7d5256d7a55bf
1,376
py
Python
apps/accounts/tests/functional/transactions/test_confirm_email.py
victoraguilarc/xib.li
11e61641d0b2bad148713488aa7b730c1f6cbb0c
[ "MIT" ]
1
2020-05-08T09:29:08.000Z
2020-05-08T09:29:08.000Z
apps/accounts/tests/functional/transactions/test_confirm_email.py
victoraguilarc/xib.li
11e61641d0b2bad148713488aa7b730c1f6cbb0c
[ "MIT" ]
1
2020-05-08T16:47:17.000Z
2020-05-13T21:05:00.000Z
apps/accounts/tests/functional/transactions/test_confirm_email.py
victoraguilarc/xib.li
11e61641d0b2bad148713488aa7b730c1f6cbb0c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*- import pytest from django.test import RequestFactory from django.urls import reverse from doubles import allow, expect from rest_framework import status from apps.accounts.models.choices import ActionCategory from apps.accounts.services.auth import AuthService from apps...
32.761905
90
0.750727
897
0.65189
0
0
920
0.668605
0
0
92
0.06686
d7c2573fe1dc3783d90bd1abbefb46141b4afea9
15,240
py
Python
data/test/test_queue.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
2,027
2019-11-12T18:05:48.000Z
2022-03-31T22:25:04.000Z
data/test/test_queue.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
496
2019-11-12T18:13:37.000Z
2022-03-31T10:43:45.000Z
data/test/test_queue.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
249
2019-11-12T18:02:27.000Z
2022-03-22T12:19:19.000Z
import json import time import pytest from contextlib import contextmanager from datetime import datetime, timedelta from functools import wraps from data.database import QueueItem from data.queue import ( WorkQueue, MINIMUM_EXTENSION, queue_items_locked, queue_items_available, queue_items_availa...
34.247191
98
0.720997
567
0.037205
36
0.002362
428
0.028084
0
0
2,104
0.138058
d7c5b2db0f4c72202956af5eb6262f4c752182db
24
py
Python
fortifyapi/__init__.py
brownsec/fortifyapi
18ce25eb0dd082dd3017f27162740cb29f7bda85
[ "MIT" ]
null
null
null
fortifyapi/__init__.py
brownsec/fortifyapi
18ce25eb0dd082dd3017f27162740cb29f7bda85
[ "MIT" ]
1
2021-06-25T15:18:20.000Z
2021-06-25T15:18:20.000Z
fortifyapi/__init__.py
brownsec/fortifyapi
18ce25eb0dd082dd3017f27162740cb29f7bda85
[ "MIT" ]
null
null
null
__version__ = '1.0.19'
8
22
0.625
0
0
0
0
0
0
0
0
8
0.333333
d7c62fc471a3322202e63b6f1c8bacf3b6d8ab26
1,432
py
Python
18Host/TDT4110/PythonWorkspace/Oving5/Blackjack.py
MarcusTL12/School
f7302f2d390e99ad9d06004e15da032c05ec59e7
[ "Apache-2.0" ]
null
null
null
18Host/TDT4110/PythonWorkspace/Oving5/Blackjack.py
MarcusTL12/School
f7302f2d390e99ad9d06004e15da032c05ec59e7
[ "Apache-2.0" ]
null
null
null
18Host/TDT4110/PythonWorkspace/Oving5/Blackjack.py
MarcusTL12/School
f7302f2d390e99ad9d06004e15da032c05ec59e7
[ "Apache-2.0" ]
null
null
null
import random def shuffle(cards): for i in range(len(cards)): randindex = random.randrange(0, len(cards)) cards[randindex], cards[i] = cards[i], cards[randindex] def run(): stack = [2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 'A'] * 4 shuffle(stack) stack_top = 51 dealer_cards = [] your_cards = [] deale...
20.457143
66
0.629888
0
0
0
0
0
0
0
0
160
0.111732
d7c647bb1019176d7d7f0e17a3dee844575194ad
11,017
py
Python
tools/external_converter_v2/parser/operations/op_io.py
pangge/Anakin
f327267d1ee2038d92d8c704ec9f1a03cb800fc8
[ "Apache-2.0" ]
533
2018-05-18T06:14:04.000Z
2022-03-23T11:46:30.000Z
tools/external_converter_v2/parser/operations/op_io.py
pangge/Anakin
f327267d1ee2038d92d8c704ec9f1a03cb800fc8
[ "Apache-2.0" ]
100
2018-05-26T08:32:48.000Z
2022-03-17T03:26:25.000Z
tools/external_converter_v2/parser/operations/op_io.py
pangge/Anakin
f327267d1ee2038d92d8c704ec9f1a03cb800fc8
[ "Apache-2.0" ]
167
2018-05-18T06:14:35.000Z
2022-02-14T01:44:20.000Z
#! /usr/bin/env python # Copyright (c) 2017, Cuichaowen. All rights reserved. # -*- coding: utf-8 -*- # ops helper dictionary class Dictionary(object): """ Dictionary for op param which needs to be combined """ def __init__(self): self.__dict__ = {} def set_attr(self, **kwargs): ...
54.004902
108
0.338023
726
0.065898
0
0
0
0
0
0
1,040
0.0944