hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
130
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
e782ab6519d6eb45869667c81ea29373a6747990
3,379
py
Python
src/dataset/__init__.py
renyi-ai/drfrankenstein
b9064cdea67698f70af07849bc5decaafccac9f3
[ "MIT" ]
4
2021-12-08T14:27:19.000Z
2022-01-05T20:19:03.000Z
src/dataset/__init__.py
renyi-ai/drfrankenstein
b9064cdea67698f70af07849bc5decaafccac9f3
[ "MIT" ]
null
null
null
src/dataset/__init__.py
renyi-ai/drfrankenstein
b9064cdea67698f70af07849bc5decaafccac9f3
[ "MIT" ]
null
null
null
import os import torch import torchvision from dotmap import DotMap from torch.utils.data import DataLoader import warnings warnings.filterwarnings("ignore", category=UserWarning) # suppress deprecation warning coming from torchvision from torchvision import transforms as T from src.dataset.celeba import CelebAGener...
33.127451
111
0.701687
e783b17584e255167072de85b2618b63b5b4dc93
2,036
py
Python
sqlpuzzle/_queries/query.py
Dundee/python-sqlpuzzle
260524922a0645c9bf94a9779195f93ef2c78cba
[ "MIT" ]
8
2015-03-19T11:25:32.000Z
2020-09-02T11:30:10.000Z
sqlpuzzle/_queries/query.py
Dundee/python-sqlpuzzle
260524922a0645c9bf94a9779195f93ef2c78cba
[ "MIT" ]
7
2015-03-23T14:34:28.000Z
2022-02-21T12:36:01.000Z
sqlpuzzle/_queries/query.py
Dundee/python-sqlpuzzle
260524922a0645c9bf94a9779195f93ef2c78cba
[ "MIT" ]
4
2018-11-28T21:59:27.000Z
2020-01-05T01:50:08.000Z
from collections import OrderedDict from sqlpuzzle._common import Object, force_text __all__ = ('Query',)
32.83871
103
0.594303
e78424b14306bfa799fb3574d99aac50146668c6
7,380
py
Python
src/model/rfdn_old.py
yamengxi/EDSR-PyTorch
c99fa78bb57f62a0a317b0875ead79b78a2cb51f
[ "MIT" ]
null
null
null
src/model/rfdn_old.py
yamengxi/EDSR-PyTorch
c99fa78bb57f62a0a317b0875ead79b78a2cb51f
[ "MIT" ]
null
null
null
src/model/rfdn_old.py
yamengxi/EDSR-PyTorch
c99fa78bb57f62a0a317b0875ead79b78a2cb51f
[ "MIT" ]
null
null
null
from math import gcd import torch import torch.nn as nn import torch.nn.functional as F from model import common if __name__ == '__main__': # test network import os os.environ['CUDA_VISIBLE_DEVICES'] = '1' import argparse args = argparse.Namespace() args.scale = [2] args.patch_siz...
30
122
0.577642
e784490971ab41ffd2647c11b71798f07f70439d
1,825
py
Python
tests/test_versions.py
uilianries/bintray-python
ab06edcf33663a5095c6c2121c19fbe2c1409127
[ "MIT" ]
4
2019-07-02T14:37:55.000Z
2022-01-20T13:37:01.000Z
tests/test_versions.py
uilianries/bintray-python
ab06edcf33663a5095c6c2121c19fbe2c1409127
[ "MIT" ]
53
2019-07-02T17:13:47.000Z
2022-03-15T11:55:41.000Z
tests/test_versions.py
uilianries/bintray-python
ab06edcf33663a5095c6c2121c19fbe2c1409127
[ "MIT" ]
null
null
null
import datetime import pytest from bintray.bintray import Bintray PACKAGE_VERSION = None
33.796296
97
0.651507
e784bdd424c3f8231790a74c4c0cceee56ac71b8
2,811
py
Python
mlsurvey/sl/workflows/tasks/split_data.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
mlsurvey/sl/workflows/tasks/split_data.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
mlsurvey/sl/workflows/tasks/split_data.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
from kedro.pipeline import node from mlsurvey.workflows.tasks import BaseTask
42.590909
119
0.615439
e7852830f7448dabef4a58fa4656c3bc9f91759a
1,148
py
Python
examples/translation/utils.py
TomerRonen34/fairseq-mcrerank
f8682632fda388fa4ac8b37c8b1217aab7c6cc78
[ "MIT" ]
null
null
null
examples/translation/utils.py
TomerRonen34/fairseq-mcrerank
f8682632fda388fa4ac8b37c8b1217aab7c6cc78
[ "MIT" ]
null
null
null
examples/translation/utils.py
TomerRonen34/fairseq-mcrerank
f8682632fda388fa4ac8b37c8b1217aab7c6cc78
[ "MIT" ]
null
null
null
from multiprocessing.pool import ThreadPool, Pool from typing import Any, List, Callable, Sequence, TypeVar, Optional, Iterable from functools import partial from tqdm import tqdm T = TypeVar('T')
38.266667
105
0.713415
e7852b32b35a07e13497ea3cb29b32fa65afdefa
5,590
py
Python
ludus/neural_net/hello_world/by_torch.py
hiryou/MLPractice
72de4e54b7775b3e51415deef25dfba13f0df2bd
[ "MIT" ]
null
null
null
ludus/neural_net/hello_world/by_torch.py
hiryou/MLPractice
72de4e54b7775b3e51415deef25dfba13f0df2bd
[ "MIT" ]
null
null
null
ludus/neural_net/hello_world/by_torch.py
hiryou/MLPractice
72de4e54b7775b3e51415deef25dfba13f0df2bd
[ "MIT" ]
null
null
null
from datetime import datetime as dt import torch import torch.nn as nn """ Inspired by https://medium.com/dair-ai/a-simple-neural-network-from-scratch-with-pytorch-and-google-colab-c7f3830618e0 """ f = open('study-sleep-grade.txt') lines = f.readlines() f.close() # print(lines) x_all = [] y_all = [] for line in l...
32.312139
119
0.583363
e785b3be6e87a6ac65e2125dcfad43785cdbddfd
26,003
py
Python
assignment 5/hw5/submit_hw5.py
dhruvgairola/linearAlgebra-coursera
20109133b9e53a7a38cbd17d8ca1fa1316bbf0d3
[ "MIT" ]
6
2015-09-18T02:07:21.000Z
2020-04-22T17:05:11.000Z
submit_hw5.py
tri2sing/LinearAlgebraPython
f3dde94f02f146089607eb520ebd4467becb5f9e
[ "Apache-2.0" ]
null
null
null
submit_hw5.py
tri2sing/LinearAlgebraPython
f3dde94f02f146089607eb520ebd4467becb5f9e
[ "Apache-2.0" ]
10
2015-09-05T03:54:00.000Z
2020-04-21T12:56:40.000Z
# version code 941 ######## ######## # Hi there, curious student. # # # # This submission script runs some tests on your # # code and then uploads it to Coursera for grading. # # ...
97.389513
16,294
0.588971
e787bcd6981ab8c6f9fc36ab52ca6a454a307f8b
18,932
py
Python
simtrain/run_sim_ab.py
jamesmcinerney/accordion
e7845396f0800037ec9883b687c7f2c51f3605ea
[ "BSD-3-Clause" ]
2
2022-01-06T23:53:49.000Z
2022-03-09T11:45:59.000Z
simtrain/run_sim_ab.py
jamesmcinerney/accordion
e7845396f0800037ec9883b687c7f2c51f3605ea
[ "BSD-3-Clause" ]
1
2021-11-30T15:39:46.000Z
2021-11-30T15:39:46.000Z
simtrain/run_sim_ab.py
jamesmcinerney/accordion
e7845396f0800037ec9883b687c7f2c51f3605ea
[ "BSD-3-Clause" ]
null
null
null
import os import numpy as np import pandas as pd from scipy import sparse as sp from typing import Callable, List, Tuple, Dict from os.path import join from . import utils, process_dat from . import SETTINGS_POLIMI as SETTINGS os.environ['NUMEXPR_MAX_THREADS'] = str(SETTINGS.hyp['cores']) pd.options.mode.chained_ass...
51.445652
173
0.642087
e7892fea9811ca64f1f900de4472430e6d8b4486
164
py
Python
pysmore/test_optimizer.py
RainBoltz/pySmore
abb805639ea04c1c34877e4423a799ceb2e13b52
[ "MIT" ]
null
null
null
pysmore/test_optimizer.py
RainBoltz/pySmore
abb805639ea04c1c34877e4423a799ceb2e13b52
[ "MIT" ]
4
2021-06-26T11:42:29.000Z
2021-06-29T04:25:30.000Z
pysmore/test_optimizer.py
RainBoltz/pySmore
abb805639ea04c1c34877e4423a799ceb2e13b52
[ "MIT" ]
null
null
null
from libs.optimizer import get_dotproduct_loss import numpy as np a = np.array([0.1,0.2,0.3]) b = np.array([0,0.2,0]) L = get_dotproduct_loss(a, b, 1.0) print(L)
18.222222
46
0.689024
e78f62fb09e2bbb8eb8ee9208fe99efffe0f65df
764
py
Python
hackathon/migrations/0040_auto_20210225_1656.py
auxfuse/ci-hackathon-app
87d5ad7aae33c15f535ceed28e1657a014159516
[ "MIT" ]
11
2020-10-06T13:50:46.000Z
2021-02-27T20:19:17.000Z
hackathon/migrations/0040_auto_20210225_1656.py
auxfuse/ci-hackathon-app
87d5ad7aae33c15f535ceed28e1657a014159516
[ "MIT" ]
174
2020-10-13T18:25:34.000Z
2022-01-17T09:49:18.000Z
hackathon/migrations/0040_auto_20210225_1656.py
auxfuse/ci-hackathon-app
87d5ad7aae33c15f535ceed28e1657a014159516
[ "MIT" ]
46
2020-10-14T11:27:20.000Z
2022-01-31T17:48:12.000Z
# Generated by Django 3.1.3 on 2021-02-25 16:56 from django.db import migrations, models
31.833333
166
0.645288
e7900d67c9b489f2fc3ebfdce5b20defba370ffd
14,412
py
Python
lume_model/variables.py
jacquelinegarrahan/lume-model
d66e8031a7ff378626cf35d50e82479ce41fddd5
[ "BSD-3-Clause-LBNL" ]
1
2020-07-31T18:28:53.000Z
2020-07-31T18:28:53.000Z
lume_model/variables.py
jacquelinegarrahan/lume-model
d66e8031a7ff378626cf35d50e82479ce41fddd5
[ "BSD-3-Clause-LBNL" ]
null
null
null
lume_model/variables.py
jacquelinegarrahan/lume-model
d66e8031a7ff378626cf35d50e82479ce41fddd5
[ "BSD-3-Clause-LBNL" ]
null
null
null
""" This module contains definitions of lume-model variables for use with lume tools. The variables are divided into input and outputs, each with different minimal requirements. Initiating any variable without the minimum requirements will result in an error. Two types of variables are currently defined: Scalar and Im...
28.595238
95
0.653691
e7906c70b711ba97e6fdc5595977690188fb605b
14,139
py
Python
elavonvtpv/Request.py
jros99/elavontpv
5c6dc8dae6118fae49b1e6b68171d6afb966a6f4
[ "MIT" ]
null
null
null
elavonvtpv/Request.py
jros99/elavontpv
5c6dc8dae6118fae49b1e6b68171d6afb966a6f4
[ "MIT" ]
null
null
null
elavonvtpv/Request.py
jros99/elavontpv
5c6dc8dae6118fae49b1e6b68171d6afb966a6f4
[ "MIT" ]
null
null
null
from xml.etree import ElementTree as Etree from xml.dom import minidom from elavonvtpv.enum import RequestType from elavonvtpv.Response import Response import datetime import hashlib import requests
39.828169
116
0.680529
e793b8c6c2db37656d49f422576a00f5c293a6c7
764
py
Python
qal/transformation/tests/test_transformation.py
OptimalBPM/qal
4d7a31c0d68042b4110e1fa3e733711e0fdd473e
[ "Unlicense" ]
3
2016-05-02T14:35:55.000Z
2021-08-31T14:19:15.000Z
qal/transformation/tests/test_transformation.py
OptimalBPM/qal
4d7a31c0d68042b4110e1fa3e733711e0fdd473e
[ "Unlicense" ]
null
null
null
qal/transformation/tests/test_transformation.py
OptimalBPM/qal
4d7a31c0d68042b4110e1fa3e733711e0fdd473e
[ "Unlicense" ]
1
2018-03-18T13:19:52.000Z
2018-03-18T13:19:52.000Z
import json import os from jsonschema.validators import Draft4Validator from qal.transformation import generate_schema __author__ = 'nibo' import unittest Test_Script_Dir = os.path.dirname(__file__) Test_Resource_Dir = os.path.join(Test_Script_Dir, 'resources') if __name__ == '__main__': unittest.main()
26.344828
102
0.721204
e795e23298f6f43ba743d0ade5bd00f6bbba1f9e
3,900
py
Python
tools/send_notification.py
Gruntrexpewrus/qiskit-app-benchmarks
2415e3387e834b886795119b98a2a57cda1f8402
[ "Apache-2.0" ]
null
null
null
tools/send_notification.py
Gruntrexpewrus/qiskit-app-benchmarks
2415e3387e834b886795119b98a2a57cda1f8402
[ "Apache-2.0" ]
null
null
null
tools/send_notification.py
Gruntrexpewrus/qiskit-app-benchmarks
2415e3387e834b886795119b98a2a57cda1f8402
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # This code is part of Qiskit. # # (C) Copyright IBM 2022. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modific...
30
96
0.62
e79679623553bf3e6b0c212a4abe4239e1e9c46e
597
py
Python
custom_model_metrics_visualize.py
Miso-K/DDCW
aa033e1bf9258eee0a39b6dd69260910179528e0
[ "MIT" ]
1
2021-12-07T19:22:27.000Z
2021-12-07T19:22:27.000Z
custom_model_metrics_visualize.py
Miso-K/DDCW
aa033e1bf9258eee0a39b6dd69260910179528e0
[ "MIT" ]
null
null
null
custom_model_metrics_visualize.py
Miso-K/DDCW
aa033e1bf9258eee0a39b6dd69260910179528e0
[ "MIT" ]
null
null
null
import pickle """Run visualization of internal metrics of DDCW model after evaluation (read saved evaluation object)""" evaluator = pickle.load(open("evaluatorobject", "rb")) # Plotting internal model metrics (for DDCW model) from utils import plot_custom_model_metrics as pc pc.plot_model_size(evaluator, model_ids=[0,...
59.7
154
0.775544
e797a7a5a91026acebbea8e62cd9af74a6081d82
130
py
Python
tests/http/conftest.py
cuenca-mx/facturapi-python
a81f0c6e350d3782f845269c12ed201a7b448a29
[ "MIT" ]
1
2022-01-13T23:17:10.000Z
2022-01-13T23:17:10.000Z
tests/http/conftest.py
cuenca-mx/facturapi-python
a81f0c6e350d3782f845269c12ed201a7b448a29
[ "MIT" ]
58
2020-12-03T00:41:13.000Z
2022-03-30T17:07:21.000Z
tests/http/conftest.py
cuenca-mx/facturapi-python
a81f0c6e350d3782f845269c12ed201a7b448a29
[ "MIT" ]
null
null
null
import pytest
18.571429
55
0.769231
e797c53079a12e6b66af6ddfba0f8e193f423bfa
12,061
py
Python
rmnd_lca/data_collection.py
xiaoshir/rmnd-lca
9831d59361ec7afbb6ff69e318eb225fd7ae7aaf
[ "BSD-3-Clause" ]
2
2021-02-02T13:17:56.000Z
2021-02-03T13:20:49.000Z
rmnd_lca/data_collection.py
xiaoshir/rmnd-lca
9831d59361ec7afbb6ff69e318eb225fd7ae7aaf
[ "BSD-3-Clause" ]
null
null
null
rmnd_lca/data_collection.py
xiaoshir/rmnd-lca
9831d59361ec7afbb6ff69e318eb225fd7ae7aaf
[ "BSD-3-Clause" ]
null
null
null
from . import DATA_DIR import pandas as pd import xarray as xr import numpy as np from pathlib import Path import csv REMIND_ELEC_MARKETS = (DATA_DIR / "remind_electricity_markets.csv") REMIND_ELEC_EFFICIENCIES = (DATA_DIR / "remind_electricity_efficiencies.csv") REMIND_ELEC_EMISSIONS = (DATA_DIR / "remind_electricity...
41.163823
121
0.633032
e797fb0c79199d813ab06d5cbc6850ea799dad85
817
py
Python
runtests.py
imposeren/django-loginas
d1bfde45d37f1a7b6fd5e1128ab3a4811c89f46d
[ "BSD-3-Clause" ]
null
null
null
runtests.py
imposeren/django-loginas
d1bfde45d37f1a7b6fd5e1128ab3a4811c89f46d
[ "BSD-3-Clause" ]
null
null
null
runtests.py
imposeren/django-loginas
d1bfde45d37f1a7b6fd5e1128ab3a4811c89f46d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys from django.conf import settings if not settings.configured: settings.configure(**{ 'ROOT_URLCONF': 'loginas.tests.urls', 'INSTALLED_APPS': ( 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.au...
24.029412
75
0.625459
e79800f262cb9ba9ad9c992c22e0ce9c0d9971e1
2,219
py
Python
verification/alembic/versions/398d6252cdce_baseline.py
DhivakharVenkatachalam/snet-marketplace-service
6aee606bc9b00d418caeae26c64deae03792e0ce
[ "MIT" ]
14
2019-02-12T09:14:52.000Z
2021-03-11T18:42:22.000Z
verification/alembic/versions/398d6252cdce_baseline.py
prashantramangupta/snet-marketplace-service
7c293054e4b0207deefecc46defd743c064472a4
[ "MIT" ]
1,079
2019-01-10T04:31:24.000Z
2022-03-29T06:16:42.000Z
verification/alembic/versions/398d6252cdce_baseline.py
prashantramangupta/snet-marketplace-service
7c293054e4b0207deefecc46defd743c064472a4
[ "MIT" ]
20
2018-12-18T13:06:41.000Z
2021-09-17T11:13:01.000Z
"""baseline Revision ID: 398d6252cdce Revises: Create Date: 2020-03-12 10:10:15.689958 """ import sqlalchemy as sa from alembic import op from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = '398d6252cdce' down_revision = None branch_labels = None depends_on = None
40.345455
79
0.713384
e79859dfb4990d5e5cfbb2680f14d60850089719
3,037
py
Python
11 - Attention Mechanism/deployment/german_to_english.py
shan18/EVA4-Phase-2
12922fbeac63397944e9b464c2d5c60faf24e532
[ "MIT" ]
null
null
null
11 - Attention Mechanism/deployment/german_to_english.py
shan18/EVA4-Phase-2
12922fbeac63397944e9b464c2d5c60faf24e532
[ "MIT" ]
null
null
null
11 - Attention Mechanism/deployment/german_to_english.py
shan18/EVA4-Phase-2
12922fbeac63397944e9b464c2d5c60faf24e532
[ "MIT" ]
4
2020-08-09T07:10:46.000Z
2021-01-16T14:57:23.000Z
import pickle import torch import numpy as np from attention import make_model SRC_STOI = None TARGET_ITOS = None TRG_EOS_TOKEN = None TRG_SOS_TOKEN = None def greedy_decode(model, src, src_mask, src_lengths, max_len=100, sos_index=1, eos_index=None): """Greedily decode a sentence.""" with torch.no_grad()...
26.181034
95
0.650642
e798df9c3613a25e49d4f31b12f398095cbd43e5
1,470
py
Python
dvrip/cmd/log.py
alexshpilkin/xmeye
e76df1d091d85aa6cffb5c332ba6ae419ac9ac89
[ "CC0-1.0" ]
34
2019-05-04T06:06:17.000Z
2021-12-06T03:28:40.000Z
dvrip/cmd/log.py
alexshpilkin/xmeye
e76df1d091d85aa6cffb5c332ba6ae419ac9ac89
[ "CC0-1.0" ]
9
2019-06-17T09:37:50.000Z
2020-10-24T22:36:29.000Z
dvrip/cmd/log.py
alexshpilkin/xmeye
e76df1d091d85aa6cffb5c332ba6ae419ac9ac89
[ "CC0-1.0" ]
21
2019-06-17T09:34:27.000Z
2022-03-22T18:14:22.000Z
from datetime import datetime from getopt import GetoptError, getopt from socket import AF_INET, SOCK_STREAM, socket as Socket from sys import stderr from typing import List, NoReturn from ..io import DVRIPClient from ..message import EPOCH from . import EX_USAGE, guard, prog_connect
22.96875
66
0.62449
e7a2f6b672dc486099d8e2392cbe5c375c0acf9b
974
py
Python
scripts/dockerize.py
allenai/twentyquestions
48f0de26d2dca963cdae1263245d3b267ae7a771
[ "Apache-2.0" ]
9
2020-07-23T03:36:26.000Z
2022-03-03T15:20:36.000Z
scripts/dockerize.py
allenai/twentyquestions
48f0de26d2dca963cdae1263245d3b267ae7a771
[ "Apache-2.0" ]
null
null
null
scripts/dockerize.py
allenai/twentyquestions
48f0de26d2dca963cdae1263245d3b267ae7a771
[ "Apache-2.0" ]
2
2021-12-21T18:36:43.000Z
2022-03-30T07:28:52.000Z
"""Create the docker image for running twentyquestions. See ``python dockerize.py --help`` for more information. """ import logging import subprocess import click from backend import settings logger = logging.getLogger(__name__) if __name__ == '__main__': dockerize()
22.136364
74
0.680698
e7a3d90a6de6a45565b36fa144dea090e1ad04fd
872
py
Python
brainex/misc.py
ebuntel/BrainExTemp
991038155a6e9289af90da3d800210841ef23ff1
[ "MIT" ]
1
2020-09-04T16:15:26.000Z
2020-09-04T16:15:26.000Z
brainex/misc.py
ebuntel/Brainextemp
991038155a6e9289af90da3d800210841ef23ff1
[ "MIT" ]
null
null
null
brainex/misc.py
ebuntel/Brainextemp
991038155a6e9289af90da3d800210841ef23ff1
[ "MIT" ]
null
null
null
import numpy as np
27.25
114
0.65711
e7a4488e65f1fc4046645c736a4bb09a8772ab4a
923
py
Python
day6.py
robbyblum/adventofcode2020
88121a613181bbe2afe720c4941e819394692314
[ "MIT" ]
null
null
null
day6.py
robbyblum/adventofcode2020
88121a613181bbe2afe720c4941e819394692314
[ "MIT" ]
null
null
null
day6.py
robbyblum/adventofcode2020
88121a613181bbe2afe720c4941e819394692314
[ "MIT" ]
null
null
null
# day 6... # count distinct questions or whatever # parse forms from input file. Split by group! if __name__ == '__main__': main()
27.147059
79
0.622969
e7a4d66c86e3930282ca2d1df67c260cf1812319
30,854
py
Python
danceschool/core/classreg.py
benjwrdill/django-danceschool
9ecb2754502e62d0f49aa23d08ca6de6cae3c99a
[ "BSD-3-Clause" ]
null
null
null
danceschool/core/classreg.py
benjwrdill/django-danceschool
9ecb2754502e62d0f49aa23d08ca6de6cae3c99a
[ "BSD-3-Clause" ]
null
null
null
danceschool/core/classreg.py
benjwrdill/django-danceschool
9ecb2754502e62d0f49aa23d08ca6de6cae3c99a
[ "BSD-3-Clause" ]
null
null
null
from django.core.urlresolvers import reverse from django.core.exceptions import ObjectDoesNotExist, ValidationError from django.contrib import messages from django.db.models import Q from django.http import HttpResponseRedirect, Http404 from django.views.generic import FormView, RedirectView, TemplateView from django.u...
45.70963
209
0.651099
e7a5a15ae34d07d8db1c25006ec84dcaf8009bc5
2,962
py
Python
back/account/api/email.py
LEEJ0NGWAN/FreeChart
8769aea07079fe3a5af4aab701028e6aa9cb6598
[ "MIT" ]
null
null
null
back/account/api/email.py
LEEJ0NGWAN/FreeChart
8769aea07079fe3a5af4aab701028e6aa9cb6598
[ "MIT" ]
6
2021-04-08T19:48:40.000Z
2022-02-27T08:27:06.000Z
back/account/api/email.py
LEEJ0NGWAN/FreeList
8769aea07079fe3a5af4aab701028e6aa9cb6598
[ "MIT" ]
null
null
null
import json from datetime import datetime from django.core.mail import send_mail from django.contrib.auth import ( login, logout, update_session_auth_hash ) from django.template import loader from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from django.utils.decorators impor...
30.536082
69
0.571236
e7a5ebe78234567ac294586e54a0cc52c905e1ab
7,069
py
Python
uhecr_model/legacy/fit_model.py
uhecr-project/uhecr_model
8a2e8ab6f11cd2700f6455dff54c746cf3ffb143
[ "MIT" ]
null
null
null
uhecr_model/legacy/fit_model.py
uhecr-project/uhecr_model
8a2e8ab6f11cd2700f6455dff54c746cf3ffb143
[ "MIT" ]
2
2021-07-12T08:01:11.000Z
2021-08-04T03:01:30.000Z
uhecr_model/legacy/fit_model.py
uhecr-project/uhecr_model
8a2e8ab6f11cd2700f6455dff54c746cf3ffb143
[ "MIT" ]
null
null
null
''' Python script of the fitting process in the notebook run_simulation.ipynb. This is made so that this can be run on command line as a bash script. ''' import os from fancy import Data, Model, Analysis import argparse # paths to important files path_to_this_file = os.path.abspath(os.path.dirname(__file__)) stan_pa...
35.883249
82
0.602065
e7a6b3deb3404722ce0da5d1eb1fa36f8c646f61
24,339
py
Python
src/STATS_VALLBLS_FROMDATA.py
IBMPredictiveAnalytics/STATS_VALLBLS_FROMDATA
84e3a236f89ab519c4060799ea18475b21cbe182
[ "Apache-2.0" ]
null
null
null
src/STATS_VALLBLS_FROMDATA.py
IBMPredictiveAnalytics/STATS_VALLBLS_FROMDATA
84e3a236f89ab519c4060799ea18475b21cbe182
[ "Apache-2.0" ]
null
null
null
src/STATS_VALLBLS_FROMDATA.py
IBMPredictiveAnalytics/STATS_VALLBLS_FROMDATA
84e3a236f89ab519c4060799ea18475b21cbe182
[ "Apache-2.0" ]
null
null
null
#/*********************************************************************** # * Licensed Materials - Property of IBM # * # * IBM SPSS Products: Statistics Common # * # * (C) Copyright IBM Corp. 1989, 2020 # * # * US Government Users Restricted Rights - Use, duplication or disclosure # * restricted by GSA ADP Schedule Co...
40.430233
118
0.613131
e7a768bb780bbb1c988fdcd6c422407c747377f4
2,432
py
Python
grb/model/torch/gcn.py
Stanislas0/grb
96fc521f57fdb06ab6a3c442fcf4a8bc97894829
[ "MIT" ]
null
null
null
grb/model/torch/gcn.py
Stanislas0/grb
96fc521f57fdb06ab6a3c442fcf4a8bc97894829
[ "MIT" ]
null
null
null
grb/model/torch/gcn.py
Stanislas0/grb
96fc521f57fdb06ab6a3c442fcf4a8bc97894829
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F
32.864865
118
0.622944
e7a791554575cfdae58180ee5e737290c593ad04
4,959
py
Python
graph_helper/graph_helper/graph_tools.py
mepland/steam_ana
e8fa381f9bb0924b64f7d821800584038e475f58
[ "MIT" ]
null
null
null
graph_helper/graph_helper/graph_tools.py
mepland/steam_ana
e8fa381f9bb0924b64f7d821800584038e475f58
[ "MIT" ]
null
null
null
graph_helper/graph_helper/graph_tools.py
mepland/steam_ana
e8fa381f9bb0924b64f7d821800584038e475f58
[ "MIT" ]
null
null
null
import pandas as pd import networkx as nx import collections from operator import itemgetter
31.993548
107
0.661827
e7a8aa6b70456f5550774b4856cbe073e29b6d11
4,818
py
Python
test/test_modify_contact.py
EkaterinaPentjuhina/python_training
43f939cf690a91af9ec0fddfd18f9e3c55cfefb6
[ "Apache-2.0" ]
1
2020-06-08T17:16:29.000Z
2020-06-08T17:16:29.000Z
test/test_modify_contact.py
EkaterinaPentjuhina/python_training
43f939cf690a91af9ec0fddfd18f9e3c55cfefb6
[ "Apache-2.0" ]
null
null
null
test/test_modify_contact.py
EkaterinaPentjuhina/python_training
43f939cf690a91af9ec0fddfd18f9e3c55cfefb6
[ "Apache-2.0" ]
null
null
null
from model.contact_properties import Contact import random import allure # def test_edit_contact_firstname(app): # if app.contact.count() == 0: # app.contact.add_new(Contact(firstname="Ekaterina", middlename="Aleksandrovna", lastname="Pentjuhina", # nickname="kate_pent...
62.571429
127
0.611872
e7a92a95db912c80cf38633ff72e26c2c4e31c0b
10,690
py
Python
gnuradio-3.7.13.4/gr-digital/python/digital/gmsk.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
1
2021-03-09T07:32:37.000Z
2021-03-09T07:32:37.000Z
gnuradio-3.7.13.4/gr-digital/python/digital/gmsk.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
gnuradio-3.7.13.4/gr-digital/python/digital/gmsk.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
# # GMSK modulation and demodulation. # # # Copyright 2005-2007,2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either v...
37.118056
106
0.628344
e7aa9064324acdd187e774765f46eb3185d1f2ed
879
py
Python
CS1/0270_while_loop_projects/shape_drawing_answers/00turtle_triangle.py
nealholt/python_programming_curricula
eda4432dab97178b4a5712b160f5b1da74c068cb
[ "MIT" ]
7
2020-10-14T03:23:12.000Z
2022-03-09T23:16:13.000Z
CS1/0270_while_loop_projects/shape_drawing_answers/00turtle_triangle.py
nealholt/python_programming_curricula
eda4432dab97178b4a5712b160f5b1da74c068cb
[ "MIT" ]
null
null
null
CS1/0270_while_loop_projects/shape_drawing_answers/00turtle_triangle.py
nealholt/python_programming_curricula
eda4432dab97178b4a5712b160f5b1da74c068cb
[ "MIT" ]
11
2021-02-21T20:50:56.000Z
2022-01-29T07:01:28.000Z
''' Start by reading and running the following code to see what it does. 1. Then rewrite this code so that it uses a for loop. Challenge yourself to make the rewrite as short as possible. 2. Modify your code to draw a square instead of a triangle. 3. Modify your code to draw a pentagon. (You should Google what angles ...
24.416667
59
0.763367
e7ab9b749df400d1548577100113061652fee1a6
1,237
py
Python
app/core/tests/test_models.py
samkahunga65/recipe-app
9cc20530d9b144d63a732ebb8a882c4574571a58
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
samkahunga65/recipe-app
9cc20530d9b144d63a732ebb8a882c4574571a58
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
samkahunga65/recipe-app
9cc20530d9b144d63a732ebb8a882c4574571a58
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model
32.552632
69
0.641067
e7ad7e22c70ed3137dd18f4e726de9b99512a83a
1,505
py
Python
seg_vgg19_all/dataloader.py
dingmyu/Pytorch-Topology-Aware-Delineation
beaedccf0f5ac5bbff873b338a46224da6aa3e74
[ "MIT" ]
32
2019-02-27T21:13:31.000Z
2022-03-16T03:01:05.000Z
model/dataloader.py
dingmyu/Pytorch-Instance-Lane-Segmentation
81b03124904ea25e96ace0e3586cde10760e8dd1
[ "MIT" ]
2
2018-06-11T09:57:20.000Z
2019-09-03T06:56:35.000Z
model/dataloader.py
dingmyu/Pytorch-Instance-Lane-Segmentation
81b03124904ea25e96ace0e3586cde10760e8dd1
[ "MIT" ]
14
2018-08-01T14:39:23.000Z
2020-04-20T11:46:54.000Z
import torch.utils.data as data import os import numpy as np import cv2 #/mnt/lustre/share/dingmingyu/new_list_lane.txt
34.204545
103
0.592691
e7b0d827d74cdcb93b4f709a268a326fc11991f2
840
py
Python
setup.py
eldridgea/workdown
d32258079e924c8340f54ee870b9c5730c689d4a
[ "MIT" ]
18
2019-09-24T14:17:43.000Z
2022-02-26T20:44:41.000Z
setup.py
eldridgea/workdown
d32258079e924c8340f54ee870b9c5730c689d4a
[ "MIT" ]
3
2019-09-24T00:40:13.000Z
2019-09-24T00:41:28.000Z
setup.py
eldridgea/workdown
d32258079e924c8340f54ee870b9c5730c689d4a
[ "MIT" ]
1
2019-10-31T15:17:11.000Z
2019-10-31T15:17:11.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="workdown", version="0.0.4", author="Eldridge Alexander", author_email="eldridgea@gmail.com", description="Write Markdown and have it published and hosted on Cloudflare Workers", long_d...
30
88
0.64881
e7b296bb1a1ad24f7f75ecc81423bfc15fe48ea4
6,834
py
Python
transport/views.py
ezekielkibiego/Store_Center
199bb8240e78e7227d2daa0ce8d9df13e1c429f7
[ "MIT" ]
6
2022-01-27T15:12:43.000Z
2022-03-28T23:07:14.000Z
transport/views.py
ezekielkibiego/Store_Center
199bb8240e78e7227d2daa0ce8d9df13e1c429f7
[ "MIT" ]
7
2022-01-21T11:58:55.000Z
2022-01-29T00:11:10.000Z
transport/views.py
ezekielkibiego/Store_Center
199bb8240e78e7227d2daa0ce8d9df13e1c429f7
[ "MIT" ]
3
2022-01-27T13:22:11.000Z
2022-03-03T12:41:31.000Z
from django.conf import settings from django.shortcuts import redirect, render from transport.models import * from transport.forms import * from django.contrib.auth.decorators import login_required import requests,json from django.template.loader import render_to_string, get_template from django.core.mail import Email...
34
99
0.685104
e7b2e1c4fe302de386156f3fdfc4d005279001ea
5,267
py
Python
gui/loadobservations_widget.py
Varnani/pywd2015-qt5
b4865eeb80f659d8d7cf8f45807ee3e27e8555fb
[ "MIT" ]
7
2020-04-17T16:33:24.000Z
2021-12-28T14:27:53.000Z
gui/loadobservations_widget.py
Varnani/pywd2015-qt5
b4865eeb80f659d8d7cf8f45807ee3e27e8555fb
[ "MIT" ]
null
null
null
gui/loadobservations_widget.py
Varnani/pywd2015-qt5
b4865eeb80f659d8d7cf8f45807ee3e27e8555fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'loadobservations_widget.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
56.031915
104
0.734574
e7b3485f66392bf1b323888f547fee27f2a1d7b3
33,383
py
Python
configs/parameter.py
THU-luvision/SurRF
581b9fa5392cb6cceffcd5f13876e3de6c125ac0
[ "MIT" ]
3
2022-02-14T01:15:48.000Z
2022-03-22T07:24:05.000Z
configs/parameter.py
THU-luvision/SurRF
581b9fa5392cb6cceffcd5f13876e3de6c125ac0
[ "MIT" ]
null
null
null
configs/parameter.py
THU-luvision/SurRF
581b9fa5392cb6cceffcd5f13876e3de6c125ac0
[ "MIT" ]
null
null
null
import numpy as np import os import torch import math
45.419048
277
0.563191
e7b6a95018b4406321bba44db5a81c84cc3f5675
1,214
py
Python
beatcrunch/beatUrlTest.py
iero/BeatCrunch
baa88595670b0dc1fb2a0e95fe33b176a0c010d6
[ "Apache-2.0" ]
null
null
null
beatcrunch/beatUrlTest.py
iero/BeatCrunch
baa88595670b0dc1fb2a0e95fe33b176a0c010d6
[ "Apache-2.0" ]
null
null
null
beatcrunch/beatUrlTest.py
iero/BeatCrunch
baa88595670b0dc1fb2a0e95fe33b176a0c010d6
[ "Apache-2.0" ]
null
null
null
import sys, os import traceback import gensim import pickle import utils import Statistics import Article # Grep articles from services and extract informations # Used to debug services if __name__ == "__main__": if len(sys.argv) < 4 : print("Please use # python beattest.py services.xml service url") sys.exit(...
26.977778
101
0.696046
e7b876f3135a73ac645437693c4874a6c9f2178e
6,000
py
Python
scripts/Discord-Scraper/SimpleRequests/SimpleRequestsPy3.py
kyle-rgb/Discord_Project
1cbb1bb5a4a4bc8ac4529cfc537de20a1f058422
[ "MIT" ]
1
2020-11-18T00:28:52.000Z
2020-11-18T00:28:52.000Z
scripts/Discord-Scraper/SimpleRequests/SimpleRequestsPy3.py
kyle-rgb/Discord_Project
1cbb1bb5a4a4bc8ac4529cfc537de20a1f058422
[ "MIT" ]
null
null
null
scripts/Discord-Scraper/SimpleRequests/SimpleRequestsPy3.py
kyle-rgb/Discord_Project
1cbb1bb5a4a4bc8ac4529cfc537de20a1f058422
[ "MIT" ]
1
2021-02-07T17:52:29.000Z
2021-02-07T17:52:29.000Z
# Give us access to http.client functions for network requests. from http.client import HTTPConnection, HTTPSConnection, HTTPException # Give us access to the OS module functions. from os import makedirs, path # Give us access to our basic SimpleRequests functions. from .SimpleRequest import error # Give us...
30.769231
118
0.577167
e7b91ab1d3ab9d0a7daea23b33329529e9f148f8
5,262
py
Python
setup.py
RafaelCenzano/backer
695607462e1362307986c2d3c34dfbb2b1a816cd
[ "Apache-2.0" ]
null
null
null
setup.py
RafaelCenzano/backer
695607462e1362307986c2d3c34dfbb2b1a816cd
[ "Apache-2.0" ]
null
null
null
setup.py
RafaelCenzano/backer
695607462e1362307986c2d3c34dfbb2b1a816cd
[ "Apache-2.0" ]
null
null
null
#from setuptools import setup, find_packages #from os import getcwd, path import os import sys import json import config #currentDir = getcwd() ''' # Get Readme text with open(path.join(currentDir, 'README.md'), encoding='utf-8') as fR: readme = fR.read() ''' # Run setup ''' setup( # Project's name name...
31.321429
138
0.676359
e7ba6afcd29c252c66c5224bc72ef91b803fd6ff
3,285
py
Python
smida/models.py
dchaplinsky/ragoogle
dccb3d29334c3220ea12c46c725c443c8bd725c0
[ "MIT" ]
3
2018-06-10T21:20:56.000Z
2021-04-04T11:21:06.000Z
smida/models.py
dchaplinsky/ragoogle
dccb3d29334c3220ea12c46c725c443c8bd725c0
[ "MIT" ]
7
2018-08-14T20:54:49.000Z
2020-06-05T18:17:30.000Z
smida/models.py
dchaplinsky/ragoogle
dccb3d29334c3220ea12c46c725c443c8bd725c0
[ "MIT" ]
3
2018-06-27T12:53:13.000Z
2020-09-25T19:41:46.000Z
import logging from django.db import models from django.urls import reverse from abstract.models import AbstractDataset from names_translator.name_utils import ( generate_all_names, autocomplete_suggestions, concat_name, ) from abstract.tools.countries import COUNTRIES from abstract.tools.stocks import ST...
33.520408
98
0.571994
e7bdecb59192c20a3769338156f36e66c6aeb79a
687
py
Python
codenames/messages.py
dieret/codenames
dc4bf9c873c2bf96d7a0fd86bc46e570f9721f0f
[ "MIT" ]
null
null
null
codenames/messages.py
dieret/codenames
dc4bf9c873c2bf96d7a0fd86bc46e570f9721f0f
[ "MIT" ]
null
null
null
codenames/messages.py
dieret/codenames
dc4bf9c873c2bf96d7a0fd86bc46e570f9721f0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # std from typing import List, Optional # ours from codenames.users import User
22.16129
66
0.615721
e7be6614443324013858185616d53e02b823673b
152
py
Python
data/contacts.py
MikhailDr/python_training
a30ef429eb968149285ee6b59a8e04069f62f92a
[ "Apache-2.0" ]
null
null
null
data/contacts.py
MikhailDr/python_training
a30ef429eb968149285ee6b59a8e04069f62f92a
[ "Apache-2.0" ]
null
null
null
data/contacts.py
MikhailDr/python_training
a30ef429eb968149285ee6b59a8e04069f62f92a
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact testdata = [ Contact(firstname="Mikhail", lastname="Kennett"), Contact(firstname="Lily", lastname="Watson") ]
25.333333
53
0.717105
e7beac69afa6afa1deed6ee2c349364797c9adca
1,486
py
Python
Scripts/Gnuplot/add_values.py
ciaid-colombia/InsFEM
be7eb35baa75c31e3b175e95286549ccd84f8d40
[ "MIT" ]
1
2021-11-24T08:19:54.000Z
2021-11-24T08:19:54.000Z
Scripts/Gnuplot/add_values.py
ciaid-colombia/InsFEM
be7eb35baa75c31e3b175e95286549ccd84f8d40
[ "MIT" ]
null
null
null
Scripts/Gnuplot/add_values.py
ciaid-colombia/InsFEM
be7eb35baa75c31e3b175e95286549ccd84f8d40
[ "MIT" ]
null
null
null
from __future__ import division import pylab as pl import numpy as np import os,re,sys,getopt import numpy.ma as MA #Arguments data_file = sys.argv[1] #Folder name: file.gid var_x = sys.argv[2] #Variable: variable to add value to add_val = sys.argv[3] #Variable: value to add cols = sys.argv[4] #Variable: ...
28.037736
113
0.672275
e7c1545a0d568c7ffcd446eb0202a99e64ed40d0
8,953
py
Python
src/model.py
beamimc/tcr-pmhc
d9fc1aa9ce6015970676cad070c49d7c6226918a
[ "MIT" ]
null
null
null
src/model.py
beamimc/tcr-pmhc
d9fc1aa9ce6015970676cad070c49d7c6226918a
[ "MIT" ]
null
null
null
src/model.py
beamimc/tcr-pmhc
d9fc1aa9ce6015970676cad070c49d7c6226918a
[ "MIT" ]
null
null
null
import glob import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn import metrics from sklearn.metrics import f1_score, accuracy_score from sklearn.metrics import roc_curve, confusion_matrix import torch import torch.nn as nn # All neural network modules, nn.Linear, nn.Conv2d, BatchNorm, ...
38.590517
103
0.577683
e7c33b57e33d10a7f2bd559ec1a3c4c514bb414b
153
py
Python
tagger/data/__init__.py
XMUNLP/Tagger
02e1fd323ac747bfe5f7b8824c6b416fd90f33a1
[ "BSD-3-Clause" ]
335
2017-12-08T07:14:32.000Z
2022-03-01T15:22:26.000Z
tagger/data/__init__.py
XMUNLP/Tagger
02e1fd323ac747bfe5f7b8824c6b416fd90f33a1
[ "BSD-3-Clause" ]
23
2018-03-27T01:59:19.000Z
2022-02-15T16:15:57.000Z
tagger/data/__init__.py
XMUNLP/Tagger
02e1fd323ac747bfe5f7b8824c6b416fd90f33a1
[ "BSD-3-Clause" ]
91
2017-12-08T07:14:34.000Z
2021-12-16T23:19:42.000Z
from tagger.data.dataset import get_dataset from tagger.data.vocab import load_vocabulary, lookup from tagger.data.embedding import load_glove_embedding
38.25
54
0.869281
e7c3e7c276b064d382c47c8c47a4edd8d575b5ce
7,047
py
Python
api/tacticalrmm/winupdate/tasks.py
steroberts89/tacticalrmm
b2bca5fe1ccc22a7e9a419ce3af9319121d13d06
[ "MIT" ]
null
null
null
api/tacticalrmm/winupdate/tasks.py
steroberts89/tacticalrmm
b2bca5fe1ccc22a7e9a419ce3af9319121d13d06
[ "MIT" ]
null
null
null
api/tacticalrmm/winupdate/tasks.py
steroberts89/tacticalrmm
b2bca5fe1ccc22a7e9a419ce3af9319121d13d06
[ "MIT" ]
null
null
null
from time import sleep from django.utils import timezone as djangotime from django.conf import settings import datetime as dt import pytz from loguru import logger from agents.models import Agent from .models import WinUpdate from tacticalrmm.celery import app logger.configure(**settings.LOG_CONFIG)
34.714286
129
0.593018
e7c875adeb4ecacf414c747fdc41c161ac8f1e49
33,922
py
Python
obsolete/reports/pipeline_chipseq/trackers/Motifs.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
49
2015-04-13T16:49:25.000Z
2022-03-29T10:29:14.000Z
obsolete/reports/pipeline_chipseq/trackers/Motifs.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
252
2015-04-08T13:23:34.000Z
2019-03-18T21:51:29.000Z
obsolete/reports/pipeline_chipseq/trackers/Motifs.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
22
2015-05-21T00:37:52.000Z
2019-09-25T05:04:27.000Z
from ChipseqReport import * import xml.etree.ElementTree import Glam2 def computeMastCurve(evalues): '''compute a MAST curve. see http://www.nature.com/nbt/journal/v26/n12/extref/nbt.1508-S1.pdf returns a tuple of arrays (evalues, with_motifs, explained ) ''' if len(evalues) == 0: rais...
32.933981
163
0.546224
e7c88489a28ff18baaa2156f3f5c8d2311eb8bce
567
py
Python
tests/unit_tests/test_tethys_config/test_apps.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
79
2015-10-05T13:13:28.000Z
2022-02-01T12:30:33.000Z
tests/unit_tests/test_tethys_config/test_apps.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
542
2015-08-12T22:11:32.000Z
2022-03-29T22:18:08.000Z
tests/unit_tests/test_tethys_config/test_apps.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
71
2016-01-16T01:03:41.000Z
2022-03-31T17:55:54.000Z
import unittest from django.apps import apps from tethys_config.apps import TethysPortalConfig
24.652174
67
0.714286
e7c91da1c371ad1f5e70b4e2288d89a42550cc38
6,566
py
Python
main.py
SameerSahu007/Street-Fighter-in-Pygame
5826fe1c58b6e30d62696a1b3251f831fcb32495
[ "CC0-1.0" ]
1
2021-12-11T07:51:26.000Z
2021-12-11T07:51:26.000Z
main.py
SameerSahu007/Street-Fighter-in-Pygame
5826fe1c58b6e30d62696a1b3251f831fcb32495
[ "CC0-1.0" ]
null
null
null
main.py
SameerSahu007/Street-Fighter-in-Pygame
5826fe1c58b6e30d62696a1b3251f831fcb32495
[ "CC0-1.0" ]
null
null
null
import pygame import math from pygame import mixer import os pygame.init() WIDTH, HEIGHT = 800, 600 #create the screen screen = pygame.display.set_mode((WIDTH , HEIGHT)) # Title and Icon pygame.display.set_caption("Space Fighter") icon = pygame.image.load(os.path.join('assets', 'icon.png')) pygame.di...
28.180258
137
0.583003
e7c92b00482e580e8ca5918a5b90b90b5f5a5cc8
68,133
py
Python
pysnmp-with-texts/DOCS-RPHY-PTP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/DOCS-RPHY-PTP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/DOCS-RPHY-PTP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module DOCS-RPHY-PTP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DOCS-RPHY-PTP-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:53:44 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
191.923944
9,463
0.824857
e7c9cb369fe81130d100ee0e17c352a8ba036e48
3,749
py
Python
reframechecks/memory/gpu_memory/single_node_gpu_memory_nvidia.py
reframe-hpc/hpctools
ad3efe478334fabb7f64aa3d1566c88e4c488aaf
[ "BSD-3-Clause" ]
3
2020-02-18T12:48:08.000Z
2021-02-06T01:43:30.000Z
reframechecks/memory/gpu_memory/single_node_gpu_memory_nvidia.py
reframe-hpc/hpctools
ad3efe478334fabb7f64aa3d1566c88e4c488aaf
[ "BSD-3-Clause" ]
5
2020-03-28T11:59:57.000Z
2020-08-28T08:46:02.000Z
reframechecks/memory/gpu_memory/single_node_gpu_memory_nvidia.py
reframe-hpc/hpctools
ad3efe478334fabb7f64aa3d1566c88e4c488aaf
[ "BSD-3-Clause" ]
3
2020-03-17T16:10:56.000Z
2020-07-10T06:24:34.000Z
import reframe as rfm import reframe.utility.sanity as sn
37.49
79
0.597759
e7ca76d686d778ab68a8ea50474e8fef73a40fad
2,150
py
Python
icc/main.py
jinhopark8345/ICC
be0ee8fb36399b156427749c867d64524dff786e
[ "MIT" ]
null
null
null
icc/main.py
jinhopark8345/ICC
be0ee8fb36399b156427749c867d64524dff786e
[ "MIT" ]
7
2020-09-28T07:17:58.000Z
2020-11-25T08:00:08.000Z
icc/main.py
jinhopark8345/icc
be0ee8fb36399b156427749c867d64524dff786e
[ "MIT" ]
null
null
null
from flask import Flask, render_template app = Flask(__name__) from iccjson.jconnect import * from recommend.compare_recipe import * from recommend.recommend_recipe import * from iccdb.db_manage import * from gui.main_gui import * # main_t() # import tkinter as tk # class IccGUI(tk.Frame): # def __init__(self...
25
78
0.673023
e7cab7e8f67e44347b904a6c808f5bc7f840496e
2,054
py
Python
tests/test_data.py
ig248/livehistoryplot
9a13745baf76d898eea17751dfc01054aec36cfb
[ "MIT" ]
1
2021-09-26T01:14:19.000Z
2021-09-26T01:14:19.000Z
tests/test_data.py
ig248/livehistoryplot
9a13745baf76d898eea17751dfc01054aec36cfb
[ "MIT" ]
4
2019-10-21T18:23:56.000Z
2020-06-02T03:08:59.000Z
tests/test_data.py
ig248/livehistoryplot
9a13745baf76d898eea17751dfc01054aec36cfb
[ "MIT" ]
2
2019-07-17T07:23:19.000Z
2020-05-28T06:28:51.000Z
from kerashistoryplot.data import (get_metrics, _get_batch_metric_vs_epoch, get_metric_vs_epoch) HISTORY = { 'batches': [ { 'batch': [0, 1], 'size': [300, 200], 'loss': [0.4, 0.3], 'mean_ab...
29.342857
74
0.474197
e7cb0c928c378eb6c46f243f7b6ad0bbb91dd1de
6,524
py
Python
source/layers.py
kjm1559/vit
7bb0c994672cdd22c014dc2b8f65cc341c3f165c
[ "MIT" ]
null
null
null
source/layers.py
kjm1559/vit
7bb0c994672cdd22c014dc2b8f65cc341c3f165c
[ "MIT" ]
null
null
null
source/layers.py
kjm1559/vit
7bb0c994672cdd22c014dc2b8f65cc341c3f165c
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras.layers import Dense, LayerNormalization, Reshape, Permute, Dropout, GlobalAveragePooling1D, Embedding from tensorflow.keras.activations import softmax, linear import tensorflow.keras.backend as K import numpy as np def visionTransformer(input_dim, output_dim,...
38.60355
126
0.603004
e7cbe02cf507fc33454c879df707df61de9c8f5c
16,982
py
Python
controller.py
kdschlosser/micropython_fastled
d924784e9c2226382f0e1adf1aa985267d79d42e
[ "MIT" ]
10
2020-09-13T20:07:14.000Z
2022-03-18T14:39:20.000Z
controller.py
kdschlosser/micropython_fastled
d924784e9c2226382f0e1adf1aa985267d79d42e
[ "MIT" ]
1
2021-01-14T08:25:20.000Z
2021-01-14T17:49:56.000Z
controller.py
kdschlosser/micropython_fastled
d924784e9c2226382f0e1adf1aa985267d79d42e
[ "MIT" ]
null
null
null
# @file controller.h # base definitions used by led controllers for writing out led data from . import * from .led_sysdefs import * from .pixeltypes import * from .color import * from .lib8tion import * from . import NO_DITHERING, FASTLED_SCALE8_FIXED, NO_CORRECTION # operator byte *(struct CRGB[] arr) { ret...
34.032064
119
0.597338
e7ccec7100b66766a04325a1823880bc81d9d844
185
py
Python
digani/attr_func/state.py
ZwEin27/dig-attribute-name-identification
669c2d4f66560e4085884a5d0c259390214ef69f
[ "Apache-2.0" ]
null
null
null
digani/attr_func/state.py
ZwEin27/dig-attribute-name-identification
669c2d4f66560e4085884a5d0c259390214ef69f
[ "Apache-2.0" ]
null
null
null
digani/attr_func/state.py
ZwEin27/dig-attribute-name-identification
669c2d4f66560e4085884a5d0c259390214ef69f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: ZwEin # @Date: 2016-07-08 13:48:24 # @Last Modified by: ZwEin # @Last Modified time: 2016-07-08 13:48:34
23.125
42
0.643243
e7cdd4dc73f41ed2b84ee42ef38c2bba0c5d9e7b
168
py
Python
test/test_credit_calculator_full.py
Verstuk/pyton_for_testers
67c78ba72a201126f5808dd142e3446e587e5f83
[ "Apache-2.0" ]
null
null
null
test/test_credit_calculator_full.py
Verstuk/pyton_for_testers
67c78ba72a201126f5808dd142e3446e587e5f83
[ "Apache-2.0" ]
null
null
null
test/test_credit_calculator_full.py
Verstuk/pyton_for_testers
67c78ba72a201126f5808dd142e3446e587e5f83
[ "Apache-2.0" ]
null
null
null
from model.group import Group
28
79
0.702381
e7ced5ef013aaf0952b010288b1d4c6719a64436
3,052
py
Python
Python-client.py
zanda8893/Python-client-server
5d11f31d98df021cc5d2625c4da4c461f7c13ba4
[ "MIT" ]
1
2019-12-20T08:02:17.000Z
2019-12-20T08:02:17.000Z
Python-client.py
zanda8893/Python-client-server
5d11f31d98df021cc5d2625c4da4c461f7c13ba4
[ "MIT" ]
3
2019-12-20T17:08:46.000Z
2019-12-24T15:45:10.000Z
Python-client.py
zanda8893/Python-client-server
5d11f31d98df021cc5d2625c4da4c461f7c13ba4
[ "MIT" ]
null
null
null
from time import sleep from threading import Thread import socket import datetime as datetime from tkinter import * #global varaibles global run global message global gui run=True client = client() gui = gui() client.connect() Thread(name='client-receive', target=client.receive, daemon=True).start() gui.messaging() ...
29.921569
130
0.579948
e7cee237e4c2e2fcc39805a7da646d27ab0850ce
169
py
Python
harness/python/ext/__init__.py
tonyfast/tidy-harness
905bb7e980d1c962a3cda97d0056ca1e2e88852a
[ "BSD-3-Clause" ]
4
2016-11-06T17:54:12.000Z
2017-03-08T13:37:20.000Z
harness/python/ext/__init__.py
tonyfast/tidy-harness
905bb7e980d1c962a3cda97d0056ca1e2e88852a
[ "BSD-3-Clause" ]
null
null
null
harness/python/ext/__init__.py
tonyfast/tidy-harness
905bb7e980d1c962a3cda97d0056ca1e2e88852a
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # In[3]: try: from .base import HarnessExtension except: from harness.python.ext.base import HarnessExtension __all__ = ['HarnessExtension']
14.083333
56
0.715976
e7cf3dbcfabe4cb4e8148257f03c311d71e1b1fd
1,734
py
Python
dash-asynchronous.py
cswarth/dash-recipes
5724a663dfe1d7aaee8c20e124abc1bd66cd2398
[ "MIT" ]
null
null
null
dash-asynchronous.py
cswarth/dash-recipes
5724a663dfe1d7aaee8c20e124abc1bd66cd2398
[ "MIT" ]
null
null
null
dash-asynchronous.py
cswarth/dash-recipes
5724a663dfe1d7aaee8c20e124abc1bd66cd2398
[ "MIT" ]
null
null
null
import dash from dash.dependencies import Input, Output import dash_core_components as dcc import dash_html_components as html import logging import datetime import time semaphore = Semaphore() app = dash.Dash() app.logger.setLevel(logging.DEBUG) app.layout = layout app.scripts.config.serve_locally = True if __na...
25.130435
80
0.634371
e7cf4685a8206b12d923f82813a63fb38ac41398
2,455
py
Python
irco/countries.py
GaretJax/irco
e5df3cf1a608dc813011a1ee7e920637e5bd155c
[ "MIT" ]
null
null
null
irco/countries.py
GaretJax/irco
e5df3cf1a608dc813011a1ee7e920637e5bd155c
[ "MIT" ]
null
null
null
irco/countries.py
GaretJax/irco
e5df3cf1a608dc813011a1ee7e920637e5bd155c
[ "MIT" ]
1
2015-12-17T19:18:28.000Z
2015-12-17T19:18:28.000Z
import pycountry from irco import logging _cache = {} log = logging.get_logger() NAMES = {c.name.lower(): c for c in pycountry.countries.objects} SUBDIVISIONS = {s.name.lower(): s for s in pycountry.subdivisions.objects} PREFIXES = set([ 'Republic of', ]) REPLACEMENTS = { 'South Korea': 'Korea, Republic of...
29.578313
79
0.559267
e7cf7ba0b15891237f5fbb5ea5a2112c17fcf8a2
2,095
py
Python
nerds/test/test_crf_ner_model.py
elsevierlabs-os/nerds
9c4f32a51e3e08c802498dc88b5f6367c9d2df2d
[ "BSD-3-Clause" ]
19
2018-07-06T10:09:37.000Z
2020-11-27T18:14:42.000Z
nerds_orig/test/test_crf_ner_model.py
Banguiskode/nerds
366420b2ec57bf790562de62a79f4973cbd6b3ed
[ "BSD-3-Clause" ]
6
2018-12-28T12:14:12.000Z
2020-04-22T14:09:12.000Z
nerds/test/test_crf_ner_model.py
elsevierlabs-os/nerds
9c4f32a51e3e08c802498dc88b5f6367c9d2df2d
[ "BSD-3-Clause" ]
8
2018-07-14T16:50:28.000Z
2020-11-25T08:03:24.000Z
from nose.tools import assert_equal from nerds.core.model.input.annotation import Annotation from nerds.core.model.input.document import Document, AnnotatedDocument from nerds.core.model.ner.crf import CRF
33.790323
76
0.666826
e7d01d5596c98267e2d849c7a50050a61e7e8fda
370
py
Python
rooms/urls.py
nahidsaikat/reservation
7b4856b67072f90e2a126cc55c484e0d8bf601d4
[ "MIT" ]
null
null
null
rooms/urls.py
nahidsaikat/reservation
7b4856b67072f90e2a126cc55c484e0d8bf601d4
[ "MIT" ]
null
null
null
rooms/urls.py
nahidsaikat/reservation
7b4856b67072f90e2a126cc55c484e0d8bf601d4
[ "MIT" ]
null
null
null
from django.urls import include, path from rest_framework.routers import DefaultRouter from rooms import views # Create a router and register our viewsets with it. router = DefaultRouter() router.register(r"room", views.RoomViewSet, basename="room") # The API URLs are now determined automatically by the router. urlp...
26.428571
62
0.767568
e7d0bc956106a3ee9212b18cb8dd13641746fef0
3,781
py
Python
hyperion/bin/keras-eval-pdda-1vs1.py
jsalt2019-diadet/hyperion
14a11436d62f3c15cd9b1f70bcce3eafbea2f753
[ "Apache-2.0" ]
9
2019-09-22T05:19:59.000Z
2022-03-05T18:03:37.000Z
hyperion/bin/keras-eval-pdda-1vs1.py
jsalt2019-diadet/hyperion
14a11436d62f3c15cd9b1f70bcce3eafbea2f753
[ "Apache-2.0" ]
null
null
null
hyperion/bin/keras-eval-pdda-1vs1.py
jsalt2019-diadet/hyperion
14a11436d62f3c15cd9b1f70bcce3eafbea2f753
[ "Apache-2.0" ]
4
2019-10-10T06:34:05.000Z
2022-03-05T18:03:56.000Z
#!/usr/bin/env python """ Copyright 2018 Johns Hopkins University (Author: Jesus Villalba) Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """ """ Evals PDDA LLR """ from __future__ import absolute_import from __future__ import print_function from __future__ import division from six.moves import xrange imp...
34.372727
101
0.67945
e7d1544000c33210fecbad84ef0dea3376828748
2,239
py
Python
main.py
PomeloWang/opensearch-index-rotate
78872a0bd2d24e1430987ec6cf60ca01643056f4
[ "MIT" ]
null
null
null
main.py
PomeloWang/opensearch-index-rotate
78872a0bd2d24e1430987ec6cf60ca01643056f4
[ "MIT" ]
null
null
null
main.py
PomeloWang/opensearch-index-rotate
78872a0bd2d24e1430987ec6cf60ca01643056f4
[ "MIT" ]
null
null
null
import re import typing import logging import argparse from opensearchpy import OpenSearch from datetime import datetime _version = "0.0.1" _project_name = "opensearch-index-rotate" logging.basicConfig(level=logging.INFO) logger = logging.getLogger(f"{_project_name}-{_version}") if __name__ == "__main__": p...
30.671233
82
0.671728
e7d22ca2712d191a88cf00a9683dd5820d828e32
1,912
py
Python
src/trellisdata/database_query.py
StanfordBioinformatics/trellisdata
b866180979a39a9649bd5d1a292acbb234b18066
[ "MIT" ]
null
null
null
src/trellisdata/database_query.py
StanfordBioinformatics/trellisdata
b866180979a39a9649bd5d1a292acbb234b18066
[ "MIT" ]
null
null
null
src/trellisdata/database_query.py
StanfordBioinformatics/trellisdata
b866180979a39a9649bd5d1a292acbb234b18066
[ "MIT" ]
null
null
null
import yaml #import ruamel.yaml
32.40678
105
0.732741
e7d469a2b915f57d7024559e17cd3d524efd509a
144
py
Python
config.sample.py
talyguryn/watcher
dc491179f544ec7a120f82b19a67f69a6bed39bc
[ "MIT" ]
null
null
null
config.sample.py
talyguryn/watcher
dc491179f544ec7a120f82b19a67f69a6bed39bc
[ "MIT" ]
null
null
null
config.sample.py
talyguryn/watcher
dc491179f544ec7a120f82b19a67f69a6bed39bc
[ "MIT" ]
1
2019-05-24T19:41:47.000Z
2019-05-24T19:41:47.000Z
# Domains list DOMAINS = [ { 'url': 'https://ifmo.su', 'message': '@guryn' } ] # Notifications link from https://t.me/wbhkbot WEBHOOK = ''
18
53
0.604167
e7d6c85737b989047b510d19ae1cf5d243f04bf4
8,143
py
Python
billing/tests/test_customer.py
hkhanna/django-stripe-billing
75a53c183ff86b1c7edf741683ffe3330e733d87
[ "MIT" ]
1
2022-03-29T20:16:34.000Z
2022-03-29T20:16:34.000Z
billing/tests/test_customer.py
hkhanna/django-stripe-billing
75a53c183ff86b1c7edf741683ffe3330e733d87
[ "MIT" ]
2
2022-02-21T17:38:22.000Z
2022-02-22T20:56:39.000Z
billing/tests/test_customer.py
hkhanna/django-stripe-billing
75a53c183ff86b1c7edf741683ffe3330e733d87
[ "MIT" ]
null
null
null
"""Tests related to automatic Customer creation and model constraints.""" # A customer is automatically created if a user does not have one, and it accomplishes this via signals. # We also have some model constraints we want to test. import pytest from datetime import timedelta from django.contrib.auth import get_use...
32.442231
131
0.675672
e7d86e13c0223baf6941b530f92dd1ca66b17550
10,653
py
Python
src/visual.py
rmill040/eda_viewer
d236b8a4b29d62dac54ac669baeb6d62f223efc9
[ "MIT" ]
null
null
null
src/visual.py
rmill040/eda_viewer
d236b8a4b29d62dac54ac669baeb6d62f223efc9
[ "MIT" ]
null
null
null
src/visual.py
rmill040/eda_viewer
d236b8a4b29d62dac54ac669baeb6d62f223efc9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Import libraries from api from visual_api import *
36.608247
112
0.511217
e7d8947e25eaf960adfcdd3cb4049a848205e153
3,788
py
Python
python/open3d/realsense_pcd_viewer.py
NobuoTsukamoto/realsense_examples
210006ec43ab4d5aee179558dae571044ab60fcc
[ "MIT" ]
3
2020-08-28T12:50:32.000Z
2021-05-26T16:48:27.000Z
python/open3d/realsense_pcd_viewer.py
NobuoTsukamoto/realsense_examples
210006ec43ab4d5aee179558dae571044ab60fcc
[ "MIT" ]
1
2021-03-02T23:38:32.000Z
2021-03-03T12:53:52.000Z
python/open3d/realsense_pcd_viewer.py
NobuoTsukamoto/realsense_examples
210006ec43ab4d5aee179558dae571044ab60fcc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ RealSense PCD Viewer with Open3D. Copyright (c) 2021 Nobuo Tsukamoto This software is released under the MIT License. See the LICENSE file in the project root for more information. """ import argparse import json import os import numpy as np import ...
32.101695
87
0.626452
e7db8492475b75a00d0010b8cfc1881824df5024
14,511
py
Python
multiplication.py
iAnatoly/multiplication
221d7cd2dd8c2d5ac4440568a4368b5f34f914ac
[ "Apache-2.0" ]
1
2019-04-17T19:17:23.000Z
2019-04-17T19:17:23.000Z
multiplication.py
iAnatoly/multiplication
221d7cd2dd8c2d5ac4440568a4368b5f34f914ac
[ "Apache-2.0" ]
null
null
null
multiplication.py
iAnatoly/multiplication
221d7cd2dd8c2d5ac4440568a4368b5f34f914ac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # This script is free for use and redistribution in educational purposes. # See https://github.com/iAnatoly/multiplication/ for more info. # # email notification configuration is defined in multiplication.config import random import os import sys import smtplib import ConfigParser from email.mime.t...
33.130137
260
0.585142
e7dbf4a8467a3dde1ae0fe118924ed4a28a6d8d3
2,426
py
Python
scripts/reformat_unmapped_primers.py
fulcrumgenomics/fg-idprimer
0f31c49057ca86df5ebf087fb58a44a1cf2f5ce1
[ "MIT" ]
1
2019-03-27T21:50:53.000Z
2019-03-27T21:50:53.000Z
scripts/reformat_unmapped_primers.py
fulcrumgenomics/fg-idprimer
0f31c49057ca86df5ebf087fb58a44a1cf2f5ce1
[ "MIT" ]
10
2018-11-02T23:04:40.000Z
2019-10-15T20:24:40.000Z
scripts/reformat_unmapped_primers.py
fulcrumgenomics/fg-idprimer
0f31c49057ca86df5ebf087fb58a44a1cf2f5ce1
[ "MIT" ]
1
2019-03-27T20:54:41.000Z
2019-03-27T20:54:41.000Z
#!/usr/bin/env python3 from pathlib import Path import defopt def main(*, in_primers: Path, out_primers: Path, forward_names: List[str] = ['SP1', '1'], reverse_names: List[str] = ['SP2', '-1']) -> None: '''Reformats unmapped primers for use with fgbio's IdentifyPrimers. The in...
44.109091
101
0.62366
e7dcf750c3fed9535d22a6585b042fbd4e5bb8e3
4,306
py
Python
jenkins.py
shoy160/python-tools
4212322ec5c18f559417fe9e1381328e7ec333ab
[ "Apache-2.0" ]
null
null
null
jenkins.py
shoy160/python-tools
4212322ec5c18f559417fe9e1381328e7ec333ab
[ "Apache-2.0" ]
5
2020-06-17T08:16:56.000Z
2022-02-10T01:49:30.000Z
jenkins.py
shoy160/python-tools
4212322ec5c18f559417fe9e1381328e7ec333ab
[ "Apache-2.0" ]
null
null
null
import requests import sys import getopt import time requests.adapters.DEFAULT_RETRIES = 5 # HOST = 'http://jenkins.local' CRUMB = 'a0854aedfb3062b192f80d648b9d2b45' COOKIE = 'jenkins-timestamper-offset=-28800000; ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE=c2hheToxNTkyMzg0MjU0NTE2OmNmZTk0YmRjMDg1NWFmNWQ1ZjQ1MzY2ODI5ZD...
33.123077
292
0.534371
e7dd7b060a46fd4c552b6f9a551306db94f44c9a
924
tac
Python
6 复试/2 笔试/4 编译原理/编原/hw/2015_刘智峰_PA/PA3/TestCases/S3/output/test_q2.tac
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
1
2022-03-02T16:05:49.000Z
2022-03-02T16:05:49.000Z
6 复试/2 笔试/4 编译原理/编原/hw/2015_刘智峰_PA/PA3/TestCases/S3/output/test_q2.tac
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
null
null
null
6 复试/2 笔试/4 编译原理/编原/hw/2015_刘智峰_PA/PA3/TestCases/S3/output/test_q2.tac
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
null
null
null
VTABLE(_Main) { <empty> Main } FUNCTION(_Main_New) { memo '' _Main_New: _T1 = 4 parm _T1 _T2 = call _Alloc _T3 = VTBL <_Main> *(_T2 + 0) = _T3 return _T2 } FUNCTION(main) { memo '' main: _T7 = 1 _T5 = _T7 _T8 = 2 _T6 = _T8 _T9 = 1 _T4 = _T9 _T10 = 3 _T1...
14.4375
30
0.508658
e7dd901a743dd265775faa4ee6e7731fa2589461
892
py
Python
binatron.py
tosi-n/BITRON
2bd5769e1ae8edb4d6bbc5b95285f19105984cc0
[ "MIT" ]
1
2020-11-11T14:24:47.000Z
2020-11-11T14:24:47.000Z
binatron.py
tosi-n/BITRON
2bd5769e1ae8edb4d6bbc5b95285f19105984cc0
[ "MIT" ]
4
2021-06-08T21:14:36.000Z
2022-03-12T00:23:24.000Z
binatron.py
tosi-n/BITRON
2bd5769e1ae8edb4d6bbc5b95285f19105984cc0
[ "MIT" ]
null
null
null
# Tosin Dairo # /Module for Binary Classification from classification import ClassificationModel import pandas as pd import logging import sklearn # import fire eval_df = pd.read_csv('/Volumes/Loopdisk/Bi_Transformer/data/dev.csv', sep='\t') eval_df = eval_df[['0', '1']] eval_df['0'] = eval_df['0'].astype(str) mo...
25.485714
104
0.705157
e7deb1679af25d09e1d50c1052e387e2a3fc381d
26,463
py
Python
src/sphinx_c_autodoc/__init__.py
speedyleion/sphinx-c-doc
65721f7164a463742bc2d0b18a92b2d633a5eb3a
[ "MIT", "Unlicense" ]
7
2020-06-06T06:47:31.000Z
2021-12-12T14:18:08.000Z
src/sphinx_c_autodoc/__init__.py
speedyleion/sphinx-c-doc
65721f7164a463742bc2d0b18a92b2d633a5eb3a
[ "MIT", "Unlicense" ]
15
2020-03-12T01:43:24.000Z
2021-04-21T06:45:13.000Z
src/sphinx_c_autodoc/__init__.py
speedyleion/sphinx-c-doc
65721f7164a463742bc2d0b18a92b2d633a5eb3a
[ "MIT", "Unlicense" ]
1
2021-08-05T20:23:01.000Z
2021-08-05T20:23:01.000Z
""" sphinx_c_autodoc is a package which provide c source file parsing for sphinx. It is composed of multiple directives and settings: .. rst:directive:: .. c:module:: filename A directive to document a c file. This is similar to :rst:dir:`py:module` except it's for the C domain. This can be used for both c...
33.970475
109
0.619733
e7df50dbe0b02f791f3b141f564aba28825ae59c
2,205
py
Python
odoo-13.0/addons/l10n_mx/models/account.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/l10n_mx/models/account.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/l10n_mx/models/account.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright 2016 Vauxoo (https://www.vauxoo.com) <info@vauxoo.com> # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). import re from odoo import models, api, fields, _
36.75
102
0.606803
e7e089613ccfe0324f946b6e7045fe1c57e1d223
11
py
Python
demo.py
OddBloke/RustPython
a40ef57ba4dddc18f9f5a9ba5224203f4a983ed6
[ "MIT" ]
null
null
null
demo.py
OddBloke/RustPython
a40ef57ba4dddc18f9f5a9ba5224203f4a983ed6
[ "MIT" ]
null
null
null
demo.py
OddBloke/RustPython
a40ef57ba4dddc18f9f5a9ba5224203f4a983ed6
[ "MIT" ]
null
null
null
print(42)
3.666667
9
0.636364
e7e23c2283ceafe400bbd5709d693c3053fcfe61
9,852
py
Python
2d_navigation/dynamical_system/modulation.py
nbfigueroa/RoCUS
f1e1a538a2d0d12d307d9a003c4a2d5bcadcb30f
[ "MIT" ]
null
null
null
2d_navigation/dynamical_system/modulation.py
nbfigueroa/RoCUS
f1e1a538a2d0d12d307d9a003c4a2d5bcadcb30f
[ "MIT" ]
null
null
null
2d_navigation/dynamical_system/modulation.py
nbfigueroa/RoCUS
f1e1a538a2d0d12d307d9a003c4a2d5bcadcb30f
[ "MIT" ]
null
null
null
import sys import numpy as np
35.695652
104
0.663216
e7e2634573cae71ca54a22103a862f4b99ae8ac4
89
py
Python
opensda_flasher/utilities.py
jed-frey/opensda_flasher
aef0bddb5aa56f4e3aeffe76cf1b6c9491125529
[ "BSD-3-Clause" ]
8
2017-09-25T07:43:34.000Z
2019-12-13T14:03:26.000Z
opensda_flasher/utilities.py
jed-frey/opensda_flasher
aef0bddb5aa56f4e3aeffe76cf1b6c9491125529
[ "BSD-3-Clause" ]
1
2017-09-25T20:15:05.000Z
2017-10-06T00:32:05.000Z
opensda_flasher/utilities.py
dapperfu/opensda_flasher
aef0bddb5aa56f4e3aeffe76cf1b6c9491125529
[ "BSD-3-Clause" ]
2
2017-09-25T12:50:40.000Z
2017-09-27T21:23:19.000Z
"""Module Utilities.""" import os path = os.path.abspath(os.path.dirname(__file__))
17.8
50
0.685393
e7e2f0d8909d8aded4b234668a35a9bea452ea64
514
py
Python
src/bromine/exceptions.py
Etiqa/bromine
cabf0931f5a06796c26fdc7fb9f7ecf147554fd5
[ "BSD-2-Clause" ]
2
2018-09-20T12:37:01.000Z
2021-08-30T14:44:25.000Z
src/bromine/exceptions.py
Etiqa/bromine
cabf0931f5a06796c26fdc7fb9f7ecf147554fd5
[ "BSD-2-Clause" ]
null
null
null
src/bromine/exceptions.py
Etiqa/bromine
cabf0931f5a06796c26fdc7fb9f7ecf147554fd5
[ "BSD-2-Clause" ]
null
null
null
""" Global Bromine exception and warning classes. """ from selenium.common.exceptions import (NoSuchElementException, # pylint: disable=unused-import StaleElementReferenceException, TimeoutException)
32.125
96
0.663424
99ad1c9d3ca2ba09ee8615a5daa54f0c9b686fa1
5,800
py
Python
code/group_test_simulations/test_on_simulated_population.py
cleary-lab/covid19-group-tests
89b383390509423ca05ba89df984f9b01f912c20
[ "MIT" ]
1
2020-11-28T20:53:43.000Z
2020-11-28T20:53:43.000Z
code/group_test_simulations/test_on_simulated_population.py
cleary-lab/covid19-group-tests
89b383390509423ca05ba89df984f9b01f912c20
[ "MIT" ]
null
null
null
code/group_test_simulations/test_on_simulated_population.py
cleary-lab/covid19-group-tests
89b383390509423ca05ba89df984f9b01f912c20
[ "MIT" ]
null
null
null
import numpy as np from scipy.stats import poisson from scipy.sparse import load_npz import glob,os import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--viral-load-matrix', help='Path to viral load matrix (individuals x time points) in sparse format') parser.add_argum...
42.647059
187
0.713103
99ae644f99800ddc1a11654f8839f0d5a32165ef
18,963
py
Python
kronos_modeller/kronos_modeller/logreader/scheduler_reader.py
ecmwf/kronos
4f8c896baa634fc937f866d2bd05b438106c1663
[ "Apache-2.0" ]
4
2020-09-15T15:16:17.000Z
2021-08-17T14:02:28.000Z
kronos_modeller/kronos_modeller/logreader/scheduler_reader.py
ecmwf/kronos
4f8c896baa634fc937f866d2bd05b438106c1663
[ "Apache-2.0" ]
4
2020-09-12T07:22:35.000Z
2020-10-13T17:08:35.000Z
kronos_modeller/kronos_modeller/logreader/scheduler_reader.py
ecmwf/kronos
4f8c896baa634fc937f866d2bd05b438106c1663
[ "Apache-2.0" ]
null
null
null
# (C) Copyright 1996-2018 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergov...
35.116667
112
0.551495
99af3070370c3b832ba00e5ad0d751d816e04a44
503
py
Python
problems/alphabet_war.py
stereoabuse/codewars
d6437afaef38c3601903891b8b9cb0f84c108c54
[ "MIT" ]
null
null
null
problems/alphabet_war.py
stereoabuse/codewars
d6437afaef38c3601903891b8b9cb0f84c108c54
[ "MIT" ]
null
null
null
problems/alphabet_war.py
stereoabuse/codewars
d6437afaef38c3601903891b8b9cb0f84c108c54
[ "MIT" ]
null
null
null
## Alphabet war ## 7 kyu ## https://www.codewars.com/kata/59377c53e66267c8f6000027
26.473684
59
0.530815
99b02eb168229b1ffb9c68b8ad493dabf5f9c87c
7,151
py
Python
tools/parse_log.py
KyleHai/DeepSpeech2
44884426e213b6d5440914882064c9142b6ea7a3
[ "BSD-3-Clause" ]
158
2018-03-28T21:58:07.000Z
2022-02-22T00:49:46.000Z
tools/parse_log.py
KyleHai/DeepSpeech2
44884426e213b6d5440914882064c9142b6ea7a3
[ "BSD-3-Clause" ]
35
2018-09-03T21:27:15.000Z
2019-05-11T02:17:49.000Z
tools/parse_log.py
KyleHai/DeepSpeech2
44884426e213b6d5440914882064c9142b6ea7a3
[ "BSD-3-Clause" ]
22
2017-09-21T07:47:30.000Z
2021-09-16T11:22:01.000Z
import fileinput as fin # funcs: # variables: lines = [] module_rnncell = "CustomRNNCell2" module_grad = 'gradients' num_rnn_layer = 7 rnn_cell_string = "cell_" module_rnn = 'rnn' module_conv1 = 'conv1' module_conv2 = 'conv2' module_softmax = 'softmax_linear' module_ctc = ['ctc_loss', 'CTCLoss'] module_bn = 'bn2' rn...
32.504545
141
0.66704
99b0b3354b8eb9cccccec316dbff5d9e280269c3
3,883
py
Python
sps/sps/report/contract_posting/contract_posting.py
tushar7724/SPS
4a32b740830117327b3597d4e16127ac0a90a3ef
[ "MIT" ]
null
null
null
sps/sps/report/contract_posting/contract_posting.py
tushar7724/SPS
4a32b740830117327b3597d4e16127ac0a90a3ef
[ "MIT" ]
null
null
null
sps/sps/report/contract_posting/contract_posting.py
tushar7724/SPS
4a32b740830117327b3597d4e16127ac0a90a3ef
[ "MIT" ]
null
null
null
# Copyright (c) 2013, TUSHAR TAJNE and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _
53.930556
225
0.618079
99b0ba7f03b2766d824e986ab5fb96ab8c0fa7e0
928
py
Python
api_client/auth.py
ciandt-d1/cvtool-ingestion-pipeline
10602668fe5980a577032c85f16f0a12262d5ea6
[ "Apache-2.0" ]
null
null
null
api_client/auth.py
ciandt-d1/cvtool-ingestion-pipeline
10602668fe5980a577032c85f16f0a12262d5ea6
[ "Apache-2.0" ]
null
null
null
api_client/auth.py
ciandt-d1/cvtool-ingestion-pipeline
10602668fe5980a577032c85f16f0a12262d5ea6
[ "Apache-2.0" ]
null
null
null
import base64 import json import time from google.appengine.api import app_identity DEFAULT_SERVICE_ACCOUNT = app_identity.get_service_account_name() def generate_jwt(): """Generates a signed JSON Web Token using the Google App Engine default service account.""" now = int(time.time()) header_json =...
27.294118
116
0.677802
99b3045cad2b02c487f592e3a12fefd9366714c0
65
py
Python
src/__init__.py
neuront/jtrans
291e04deac061c1848484bb5f80bcfec0d910d6c
[ "MIT" ]
1
2018-10-31T02:12:01.000Z
2018-10-31T02:12:01.000Z
src/__init__.py
neuront/jtrans
291e04deac061c1848484bb5f80bcfec0d910d6c
[ "MIT" ]
null
null
null
src/__init__.py
neuront/jtrans
291e04deac061c1848484bb5f80bcfec0d910d6c
[ "MIT" ]
null
null
null
__version__ = '0.0.3' REPO = 'https://github.com/neuront/jtrans'
21.666667
42
0.692308
99b3ede6b3c6096b7a85dbe8a78e3d96b008603a
22,046
py
Python
py_dp/dispersion/dispersion_models_1d.py
amirdel/dispersion-continua
2e1f7a3fbfcdc0b27c546cb0ae51a628a926ad60
[ "0BSD" ]
1
2019-12-23T14:35:43.000Z
2019-12-23T14:35:43.000Z
py_dp/dispersion/dispersion_models_1d.py
amirdel/dispersion-continua
2e1f7a3fbfcdc0b27c546cb0ae51a628a926ad60
[ "0BSD" ]
null
null
null
py_dp/dispersion/dispersion_models_1d.py
amirdel/dispersion-continua
2e1f7a3fbfcdc0b27c546cb0ae51a628a926ad60
[ "0BSD" ]
1
2019-12-23T14:34:43.000Z
2019-12-23T14:34:43.000Z
# Copyright 2017 Amir Hossein Delgoshaie, amirdel@stanford.edu # # Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee # is hereby granted, provided that the above copyright notice and this permission notice appear in all # copies. # # THE SOFTWARE IS PROVIDED "AS IS" AN...
40.750462
105
0.624966
99b3f30ef4b1ee0e9c7160d19e8567d047b8c14c
3,895
py
Python
PhotoShowcase/photolibrary.py
Reinhardtlotter/Valen-s-Repository-Tri-3
b3259eccd41e9dbcc46587a9c9d8e0a75de196b3
[ "MIT" ]
null
null
null
PhotoShowcase/photolibrary.py
Reinhardtlotter/Valen-s-Repository-Tri-3
b3259eccd41e9dbcc46587a9c9d8e0a75de196b3
[ "MIT" ]
null
null
null
PhotoShowcase/photolibrary.py
Reinhardtlotter/Valen-s-Repository-Tri-3
b3259eccd41e9dbcc46587a9c9d8e0a75de196b3
[ "MIT" ]
null
null
null
from __future__ import print_function import os.path from google.auth.transport.requests import Request from google.oauth2.credentials import Credentials import google_auth_oauthlib from google_auth_oauthlib.flow import InstalledAppFlow from googleapiclient.discovery import build from googleapiclient.erro...
34.469027
102
0.654942
99b421b8fc3c77a78c8b42d4e7d8dc9eab6fdc76
4,767
py
Python
SimpleSAC/sampler.py
chethus/CQL
9cceb35fe220ae517bc87ae219704d6eca409566
[ "MIT" ]
null
null
null
SimpleSAC/sampler.py
chethus/CQL
9cceb35fe220ae517bc87ae219704d6eca409566
[ "MIT" ]
null
null
null
SimpleSAC/sampler.py
chethus/CQL
9cceb35fe220ae517bc87ae219704d6eca409566
[ "MIT" ]
null
null
null
import numpy as np from collections import defaultdict from .utils import flatten_dict
37.242188
102
0.550451
99b439817790c7610ae8a7e8b0e92d675cac1d00
2,156
py
Python
example.py
Til-Piffl/RAVE_SelectionFunction
0971f2578f9a474c1f0997109057b1967b276c3d
[ "MIT" ]
null
null
null
example.py
Til-Piffl/RAVE_SelectionFunction
0971f2578f9a474c1f0997109057b1967b276c3d
[ "MIT" ]
null
null
null
example.py
Til-Piffl/RAVE_SelectionFunction
0971f2578f9a474c1f0997109057b1967b276c3d
[ "MIT" ]
null
null
null
import pyRAVE import numpy as np import healpy # Load RAVE data RAVE = pyRAVE.readCSV('RAVE_DR4.csv') # ======================================================= # Selection criteria by the user user_select = np.ones(len(RAVE['rave_obs_id']),dtype=bool) # all entries user_select = (RAVE['snr_k']>20) &\ (...
32.179104
77
0.583952
99b571a1d7e93b4bc38a531353fff75fb6b0092f
365
py
Python
topic/templatetags/recent_reply.py
reBiocoder/bioforum
08c8ff2f07ae667d37ce343f537e878d78ac8fe2
[ "MIT" ]
33
2018-09-16T15:31:53.000Z
2021-02-16T06:27:43.000Z
topic/templatetags/recent_reply.py
reBiocoder/bioforum
08c8ff2f07ae667d37ce343f537e878d78ac8fe2
[ "MIT" ]
1
2018-12-27T02:58:19.000Z
2018-12-31T03:46:16.000Z
topic/templatetags/recent_reply.py
reBiocoder/bioforum
08c8ff2f07ae667d37ce343f537e878d78ac8fe2
[ "MIT" ]
15
2018-10-12T08:52:14.000Z
2020-09-30T03:22:37.000Z
from django import template from topic.models import Create_Topic register=template.Library()
24.333333
60
0.693151
99b5fda17cb22c59f93cf1e142a30c7136b582f1
9,253
py
Python
shap/explainers/tree.py
naivelamb/shap
cf8e768a36e9c6e92ecbbade1dd20c8872baa6aa
[ "MIT" ]
null
null
null
shap/explainers/tree.py
naivelamb/shap
cf8e768a36e9c6e92ecbbade1dd20c8872baa6aa
[ "MIT" ]
null
null
null
shap/explainers/tree.py
naivelamb/shap
cf8e768a36e9c6e92ecbbade1dd20c8872baa6aa
[ "MIT" ]
1
2019-02-05T19:36:59.000Z
2019-02-05T19:36:59.000Z
import numpy as np import multiprocessing import sys have_cext = False try: from .. import _cext have_cext = True except ImportError: pass except: print("the C extension is installed...but failed to load!") pass try: import xgboost except ImportError: pass except: print("xgboost is ins...
40.056277
119
0.608235
99b6a9f08e774dd8a64a6a924724a0eb8d8ba067
1,085
py
Python
tmd/bilayer/clean_wfc.py
tflovorn/tmd
74da6d83a59eca0ab380d5ce97a36219db21fee6
[ "MIT" ]
1
2019-08-07T18:14:21.000Z
2019-08-07T18:14:21.000Z
tmd/bilayer/clean_wfc.py
tflovorn/tmd
74da6d83a59eca0ab380d5ce97a36219db21fee6
[ "MIT" ]
null
null
null
tmd/bilayer/clean_wfc.py
tflovorn/tmd
74da6d83a59eca0ab380d5ce97a36219db21fee6
[ "MIT" ]
5
2017-09-21T06:39:22.000Z
2021-09-29T16:17:37.000Z
import os import shutil from argparse import ArgumentParser from tmd.bilayer.dgrid import get_prefixes from tmd.bilayer.bilayer_util import global_config if __name__ == "__main__": _main()
32.878788
83
0.689401
99b6b0110cc7ef6710b3af92dbc9337bbeb8fdbb
942
py
Python
planner/section.py
ksu-web-dev/planner
1aa7f50b2b8c1dda3dccf12e59ca169f19049d18
[ "MIT" ]
null
null
null
planner/section.py
ksu-web-dev/planner
1aa7f50b2b8c1dda3dccf12e59ca169f19049d18
[ "MIT" ]
null
null
null
planner/section.py
ksu-web-dev/planner
1aa7f50b2b8c1dda3dccf12e59ca169f19049d18
[ "MIT" ]
null
null
null
import dataclasses import time
24.153846
69
0.58811