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
a6c3f96b7909d2e2755a500bcd6ce3c2ca94c43c
11,416
py
Python
template/tests/load_dat.py
ajmaurais/peptide_analyzer
62f37d88fefd0a8cfb57a8c157cfc85692956360
[ "MIT" ]
null
null
null
template/tests/load_dat.py
ajmaurais/peptide_analyzer
62f37d88fefd0a8cfb57a8c157cfc85692956360
[ "MIT" ]
null
null
null
template/tests/load_dat.py
ajmaurais/peptide_analyzer
62f37d88fefd0a8cfb57a8c157cfc85692956360
[ "MIT" ]
null
null
null
import sys import os from collections import Counter import pandas as pd sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../') dat_std = pd.read_csv(os.path.dirname(os.path.abspath(__file__)) + '/data/std_output.tsv', sep='\t') atom_counts = {'A': Counter({'C': 3, 'H': 5,...
38.053333
100
0.102313
a6c79b97d437b297bf666481ac065486d65e213c
8,576
py
Python
tools/nntool/graph/manipulations/dimensions.py
gemenerik/gap_sdk
afae64d239db6d73f79c90c2ca2c832b6361f109
[ "Apache-2.0" ]
null
null
null
tools/nntool/graph/manipulations/dimensions.py
gemenerik/gap_sdk
afae64d239db6d73f79c90c2ca2c832b6361f109
[ "Apache-2.0" ]
null
null
null
tools/nntool/graph/manipulations/dimensions.py
gemenerik/gap_sdk
afae64d239db6d73f79c90c2ca2c832b6361f109
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
40.64455
104
0.672225
a6c7dfeaf23ecebc079761c27c16e7671b2bf8e6
334
py
Python
data/ratings/tezxt.py
SLAB-NLP/Akk
baa07b0fdf8c7d8623fbd78508867c30a8a7ff6d
[ "MIT" ]
5
2021-09-14T07:09:07.000Z
2021-11-15T19:43:13.000Z
data/ratings/tezxt.py
SLAB-NLP/Akk
baa07b0fdf8c7d8623fbd78508867c30a8a7ff6d
[ "MIT" ]
null
null
null
data/ratings/tezxt.py
SLAB-NLP/Akk
baa07b0fdf8c7d8623fbd78508867c30a8a7ff6d
[ "MIT" ]
1
2021-11-15T19:43:19.000Z
2021-11-15T19:43:19.000Z
with open(r"D:\Drive\\ \\ancient-text-processing\jsons_unzipped\saao\saa01\catalogue.json","r",encoding="utf_8") as file: catalog = eval(file.read())["members"] rulers = [] for c in catalog: cat = catalog[c] if cat["period"] == "Neo-Assyrian" and cat.get("ruler"): rulers += cat["ruler"]
33.4
141
0.652695
a6c9ce3f66a98ad170b4f87e31f76e548b232e16
528
py
Python
abc185/abc185_d.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
abc185/abc185_d.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
abc185/abc185_d.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
# https://atcoder.jp/contests/abc185/tasks/abc185_d from math import ceil N, M = map(int, input().split()) if M == 0: print(1) exit() a_arr = list(map(int, input().split())) a_arr.sort() blanks = [0] for i in range(M): if i == 0: blanks.append(a_arr[i] - 1) continue blanks.append(a_arr[i...
20.307692
51
0.585227
a6ca3adc2fc881cf47636f14b970e81283f26529
9,771
py
Python
code_rejected/model_resnet_and_new_loss.py
rcalfredson/objects_counting_dmap
5194306d60f987741c4ec0f22eff990422fbd405
[ "Apache-2.0" ]
null
null
null
code_rejected/model_resnet_and_new_loss.py
rcalfredson/objects_counting_dmap
5194306d60f987741c4ec0f22eff990422fbd405
[ "Apache-2.0" ]
null
null
null
code_rejected/model_resnet_and_new_loss.py
rcalfredson/objects_counting_dmap
5194306d60f987741c4ec0f22eff990422fbd405
[ "Apache-2.0" ]
null
null
null
"""The implementation of U-Net and FCRN-A models.""" from typing import Tuple import numpy as np import torch from torch import nn from torchvision.models import resnet from model_config import DROPOUT_PROB # --- PYTESTS --- # def run_network(network: nn.Module, input_channels: int): """Generate a rando...
34.896429
127
0.566472
a6ca5dc72a2a53aa7dccb88c27d8a3fa44186150
1,175
py
Python
tests/conftest.py
dclimber/python-kzt-exchangerates
60eca52b776f889848d631be43c843bd9bd50d06
[ "MIT" ]
1
2021-05-15T15:19:00.000Z
2021-05-15T15:19:00.000Z
tests/conftest.py
dclimber/python-kzt-exchangerates
60eca52b776f889848d631be43c843bd9bd50d06
[ "MIT" ]
null
null
null
tests/conftest.py
dclimber/python-kzt-exchangerates
60eca52b776f889848d631be43c843bd9bd50d06
[ "MIT" ]
null
null
null
import pytest from pathlib import Path import xml.etree.ElementTree as ET
24.479167
79
0.577872
a6ca838341623a89031c7d01f921b6b241d6b6fa
10,756
py
Python
tests/test_UI.py
HubLot/buildH
21201b55991b46337cab05508c0942611d00f477
[ "BSD-3-Clause" ]
13
2020-12-21T14:43:08.000Z
2022-02-16T03:35:14.000Z
tests/test_UI.py
HubLot/buildH
21201b55991b46337cab05508c0942611d00f477
[ "BSD-3-Clause" ]
137
2019-08-14T17:00:15.000Z
2022-03-29T14:48:38.000Z
tests/test_UI.py
HubLot/buildH
21201b55991b46337cab05508c0942611d00f477
[ "BSD-3-Clause" ]
6
2019-08-30T08:00:22.000Z
2022-01-19T20:06:24.000Z
""" Unit tests for buildH. Test functions from module UI """ import os import pathlib import pytest from buildh import UI, lipids, BuildHError import sys DIR_DATA = "test_data" PATH_ROOT_DATA = pathlib.Path(__file__).parent / DIR_DATA # Ignore some MDAnalysis warnings for this test file pytestmark = pytest.mark.f...
35.853333
100
0.622257
a6ccca58625760a3a85f825d48b3bbe69cfdf917
7,844
py
Python
train.py
s-broda/capstoneproject
816fe144db6dc7eb430e5e1cc14937c63a8fc4b0
[ "MIT" ]
null
null
null
train.py
s-broda/capstoneproject
816fe144db6dc7eb430e5e1cc14937c63a8fc4b0
[ "MIT" ]
7
2020-03-24T18:13:33.000Z
2022-02-10T01:12:31.000Z
train.py
s-broda/capstoneproject
816fe144db6dc7eb430e5e1cc14937c63a8fc4b0
[ "MIT" ]
null
null
null
import os import argparse import json from datetime import datetime import numpy as np from sklearn.utils.class_weight import compute_class_weight from sklearn.metrics import balanced_accuracy_score from sklearn.metrics import confusion_matrix from tensorflow import keras from tensorflow.keras.callbacks import EarlySto...
44.316384
162
0.729475
a6cd531ba3259edc8b54ccf233a89ab0a561de13
2,179
py
Python
tests/events/test_api_gateway_authorizer.py
chuckwondo/aws-lambda-typing
8417ab67f2492be1508fe38b2c34bc106619a56d
[ "MIT" ]
29
2021-01-07T13:35:16.000Z
2022-03-25T07:20:54.000Z
tests/events/test_api_gateway_authorizer.py
chuckwondo/aws-lambda-typing
8417ab67f2492be1508fe38b2c34bc106619a56d
[ "MIT" ]
13
2021-02-28T00:31:00.000Z
2022-03-29T15:24:01.000Z
tests/events/test_api_gateway_authorizer.py
chuckwondo/aws-lambda-typing
8417ab67f2492be1508fe38b2c34bc106619a56d
[ "MIT" ]
5
2021-02-27T13:50:42.000Z
2022-01-13T15:05:44.000Z
from aws_lambda_typing.events import ( APIGatewayRequestAuthorizerEvent, APIGatewayTokenAuthorizerEvent, )
36.316667
107
0.502065
a6ce33e31ccfc0113bca5c9e83c41d2a6a6f5182
37,722
py
Python
Tools/SinGED/scene_manager.py
willcassella/SinGE
f4c1a5736585c0f154cc6aabe7f7aa634175ebfd
[ "MIT" ]
9
2016-10-14T16:18:31.000Z
2021-12-13T00:36:49.000Z
Tools/SinGED/scene_manager.py
willcassella/SinGE
f4c1a5736585c0f154cc6aabe7f7aa634175ebfd
[ "MIT" ]
null
null
null
Tools/SinGED/scene_manager.py
willcassella/SinGE
f4c1a5736585c0f154cc6aabe7f7aa634175ebfd
[ "MIT" ]
null
null
null
# scene_manager.py from copy import deepcopy from . import editor_session # Recursively updates a dictionary a with b. # This assumes that b has a structure that is a subset of a # Returns whether the dictionary a was modified.
37.05501
151
0.616961
a6cea9ab25c6ee3d7b3a6630ab209a88876c39c1
713
py
Python
airflow/pyspark/weekday/avg_temperature.py
juliocnsouzadev/gcp-data-engineer
c32a516440c8989f28a33234a05a02873c7fc5b8
[ "MIT" ]
null
null
null
airflow/pyspark/weekday/avg_temperature.py
juliocnsouzadev/gcp-data-engineer
c32a516440c8989f28a33234a05a02873c7fc5b8
[ "MIT" ]
null
null
null
airflow/pyspark/weekday/avg_temperature.py
juliocnsouzadev/gcp-data-engineer
c32a516440c8989f28a33234a05a02873c7fc5b8
[ "MIT" ]
null
null
null
#!/usr/bin/python from pyspark.sql import SparkSession spark = ( SparkSession.builder.master("yarn") .appName("bigquery-analytics-avg-temperature") .getOrCreate() ) bucket = "01-logistics-backup" spark.conf.set("temporaryGcsBucket", bucket) history = ( spark.read.format("bigquery").option("table", "v...
26.407407
105
0.748948
a6cf3da01e7d9f5279818dd26034a1596d124cb2
1,814
py
Python
chapter09/idqn/ddqn_agent.py
roiyeho/drl-book
1db635fd508e5b17ef8bfecbe49a79f55503a1f1
[ "MIT" ]
null
null
null
chapter09/idqn/ddqn_agent.py
roiyeho/drl-book
1db635fd508e5b17ef8bfecbe49a79f55503a1f1
[ "MIT" ]
null
null
null
chapter09/idqn/ddqn_agent.py
roiyeho/drl-book
1db635fd508e5b17ef8bfecbe49a79f55503a1f1
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow import keras from idqn.dqn_agent import DQNAgent
46.512821
102
0.695149
a6d0eab6e2d70e95ab1bd7c0ef87edee8250bf73
3,267
py
Python
reader.py
SimGGG/abae-pytorch
a3be72738204d1a61879fb84754ff28febff52d5
[ "MIT" ]
null
null
null
reader.py
SimGGG/abae-pytorch
a3be72738204d1a61879fb84754ff28febff52d5
[ "MIT" ]
null
null
null
reader.py
SimGGG/abae-pytorch
a3be72738204d1a61879fb84754ff28febff52d5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import gensim import numpy as np from sklearn.cluster import MiniBatchKMeans def text2vectors(text, w2v_model, maxlen, vocabulary): """ Token sequence -- to a list of word vectors; if token not in vocabulary, it is skipped; the rest of the slots up to `maxlen` are ...
28.408696
108
0.642792
a6d132395b8e7021c469015245123b41854214f8
2,375
py
Python
service.py
deeso/python-listcurator
238bbc45eb53f93f3c01a9b2052938e598770dd1
[ "Apache-2.0" ]
null
null
null
service.py
deeso/python-listcurator
238bbc45eb53f93f3c01a9b2052938e598770dd1
[ "Apache-2.0" ]
null
null
null
service.py
deeso/python-listcurator
238bbc45eb53f93f3c01a9b2052938e598770dd1
[ "Apache-2.0" ]
null
null
null
import web, argparse, os, logging, sys from listcurator.service.listcurator import * from listcurator.service.listcurator import * from sqlalchemy import * PORT = 45000 HOST = '0.0.0.0' ML_SAVE_DIR = 'managed_lists' SAVE_DIR = os.path.join(os.getcwd(), ML_SAVE_DIR) LOGGER_NAME = "managed_lists_webservice" ML_LOG_FILE ...
45.673077
119
0.743579
a6d31d9e8aa8ac0ef8afc1f1dce26c8c8fb6d88e
422
py
Python
py/tests/test_cli.py
sthagen/odata-url-parser
b05397c5fb9f33bcd2b883f82bda0a5a388eadae
[ "MIT" ]
2
2020-09-11T20:01:08.000Z
2020-09-12T11:40:43.000Z
py/tests/test_cli.py
sthagen/python-odata_url_parser
b05397c5fb9f33bcd2b883f82bda0a5a388eadae
[ "MIT" ]
11
2020-09-10T20:55:45.000Z
2020-09-12T12:51:02.000Z
py/tests/test_cli.py
sthagen/python-odata_url_parser
b05397c5fb9f33bcd2b883f82bda0a5a388eadae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=missing-docstring,unused-import,reimported import io import pytest # type: ignore import odata_url_parser.cli as cli import odata_url_parser.odata_url_parser as oup
26.375
60
0.725118
a6d3a31bdbcc36b5cf3b5e120684f5d29b4647d6
3,400
py
Python
mathics/core/attributes.py
tirkarthi/mathics-core
6b07500b935f23dc332f4ec3fac1d71ac4c8fc04
[ "Apache-2.0" ]
90
2021-09-11T14:14:00.000Z
2022-03-29T02:08:29.000Z
mathics/core/attributes.py
tirkarthi/mathics-core
6b07500b935f23dc332f4ec3fac1d71ac4c8fc04
[ "Apache-2.0" ]
187
2021-09-13T01:00:41.000Z
2022-03-31T11:52:52.000Z
mathics/core/attributes.py
tirkarthi/mathics-core
6b07500b935f23dc332f4ec3fac1d71ac4c8fc04
[ "Apache-2.0" ]
10
2021-10-05T15:44:26.000Z
2022-03-21T12:34:33.000Z
# -*- coding: utf-8 -*- # The builtin's attributes are stored in a bit set. # Each bit represets a attribute, if that is 0, the builtin doesn't has the # property, if that is 1, the builtin has the property. # The Builtin class has the property Protected by default, but if you overrides # the attributes you need to a...
34
79
0.701471
a6d47efb044c92d4dfec30a904a3f3088fdb915c
1,005
py
Python
openapi_documentor/openapi/views.py
codeasashu/openapi-documentor
dde825edaac85bb117d06adf0a4eabf1f5da44f5
[ "MIT" ]
null
null
null
openapi_documentor/openapi/views.py
codeasashu/openapi-documentor
dde825edaac85bb117d06adf0a4eabf1f5da44f5
[ "MIT" ]
5
2021-04-06T07:46:47.000Z
2022-03-02T13:12:20.000Z
openapi_documentor/openapi/views.py
codeasashu/openapi-documentor
dde825edaac85bb117d06adf0a4eabf1f5da44f5
[ "MIT" ]
null
null
null
from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import get_object_or_404 from django.views.generic import DetailView, ListView from taggit.models import Tag from .models import Document api_list_view = OpenapiListView.as_view() api_detail_view = OpenapiDetailView.as_view() api_...
24.512195
57
0.734328
a6d6233f8b8a3e3c27f3cfdb765619296305bc07
2,798
py
Python
scripts/version.py
DrSensor/scdlang
0152b8ea7d3da79a6bcce1144d59e5b037316cb9
[ "UPL-1.0" ]
80
2019-04-25T09:54:53.000Z
2022-01-02T03:08:31.000Z
scripts/version.py
DrSensor/scdlang
0152b8ea7d3da79a6bcce1144d59e5b037316cb9
[ "UPL-1.0" ]
32
2019-02-05T00:35:49.000Z
2019-08-30T13:16:35.000Z
scripts/version.py
DrSensor/scdlang
0152b8ea7d3da79a6bcce1144d59e5b037316cb9
[ "UPL-1.0" ]
2
2019-10-01T23:01:16.000Z
2022-03-22T14:19:47.000Z
#!/usr/bin/env python from tomlkit.toml_file import TOMLFile from glob import glob from os import path from sys import argv, stdin from pampy import match from functools import reduce import operator as op import re re_version = r"\d+\.\d+\.\d+-?" # fmt: off if not stdin.isatty(): print(change_version(stdi...
33.710843
96
0.640815
a6d814af1778f60073b49257626a57797ebe43ba
1,326
py
Python
qhcfp/urls.py
kilinger/firon-qhcst
057e5b65f454083599502c3b178c88399f11c8b7
[ "BSD-3-Clause" ]
null
null
null
qhcfp/urls.py
kilinger/firon-qhcst
057e5b65f454083599502c3b178c88399f11c8b7
[ "BSD-3-Clause" ]
null
null
null
qhcfp/urls.py
kilinger/firon-qhcst
057e5b65f454083599502c3b178c88399f11c8b7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^$', 'regist.views.regist_index'), url(r'^admin/', include(admin.site.urls)), url(r'', include('accounts.urls')), url(r'^regist/', inc...
30.837209
83
0.634238
a6d89dd7c7ead3e11cb5faaf6c84a4ae68e8bc94
10,123
py
Python
ecosante/newsletter/tasks/import_in_sb.py
betagouv/ecosante
cc7dd76bb65405ba44f432197de851dc7e22ed38
[ "MIT" ]
null
null
null
ecosante/newsletter/tasks/import_in_sb.py
betagouv/ecosante
cc7dd76bb65405ba44f432197de851dc7e22ed38
[ "MIT" ]
167
2020-06-30T08:59:38.000Z
2021-03-18T14:36:22.000Z
ecosante/newsletter/tasks/import_in_sb.py
betagouv/ecosante
cc7dd76bb65405ba44f432197de851dc7e22ed38
[ "MIT" ]
2
2020-04-08T11:56:17.000Z
2020-04-09T14:04:15.000Z
from flask import current_app from datetime import datetime from uuid import uuid4 import os from flask.helpers import url_for import sib_api_v3_sdk from sib_api_v3_sdk.rest import ApiException from ecosante.newsletter.models import Newsletter, NewsletterDB, Inscription from ecosante.extensions import db, sib, celery f...
35.149306
147
0.603675
a6d986c40e24945e64957667011e08483bed5806
672
py
Python
RecoVertex/BeamSpotProducer/scripts/copyFromCastor.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoVertex/BeamSpotProducer/scripts/copyFromCastor.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoVertex/BeamSpotProducer/scripts/copyFromCastor.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
#!/usr/bin/env python import sys,os,commands from CommonMethods import * if __name__ == "__main__": main()
29.217391
86
0.604167
a6db049249a0dd90f23b37710611b72301a81d77
9,521
py
Python
app.py
Terrence-Cummings/sqlalchemy-challenge
6426661fcb1430beb66a90a0cc59a0cec9df8575
[ "ADSL" ]
null
null
null
app.py
Terrence-Cummings/sqlalchemy-challenge
6426661fcb1430beb66a90a0cc59a0cec9df8575
[ "ADSL" ]
null
null
null
app.py
Terrence-Cummings/sqlalchemy-challenge
6426661fcb1430beb66a90a0cc59a0cec9df8575
[ "ADSL" ]
null
null
null
#Dependencies, libraries, and imports from matplotlib import style style.use('fivethirtyeight') import matplotlib.pyplot as plt import numpy as np import pandas as pd import datetime as dt #SQLalchemy libraries and functions import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import S...
44.283721
164
0.714316
a6db579ee6c1383d11f407805e230fc8f9c23875
5,257
py
Python
eval/gen_histories.py
DBCobra/CobraBench
d48697248948decc206cfba0a6e40fea8a772ff9
[ "MIT" ]
1
2021-03-03T06:52:50.000Z
2021-03-03T06:52:50.000Z
eval/gen_histories.py
DBCobra/CobraBench
d48697248948decc206cfba0a6e40fea8a772ff9
[ "MIT" ]
1
2021-03-05T09:36:50.000Z
2021-03-08T12:02:53.000Z
eval/gen_histories.py
DBCobra/CobraBench
d48697248948decc206cfba0a6e40fea8a772ff9
[ "MIT" ]
1
2021-03-03T06:57:02.000Z
2021-03-03T06:57:02.000Z
#!/usr/bin/python import subprocess import sys import os from gen_config import Config if __name__ == "__main__": if len(sys.argv) != 3: print("Usage: gen_histories.py [one-shot|scaling|longrun] <location>") exit(1) mode = sys.argv[1] tpath = sys.argv[2] if not os.listdir(tpath)...
32.450617
112
0.56439
a6dc9452149f59b3c7ccae49e0070336f130ec2c
16,339
py
Python
src/backend/api/utils/rclone_connection.py
dtenenba/motuz
1b54295d2790f756bcb2de61f667f60b7fd5c340
[ "MIT" ]
null
null
null
src/backend/api/utils/rclone_connection.py
dtenenba/motuz
1b54295d2790f756bcb2de61f667f60b7fd5c340
[ "MIT" ]
null
null
null
src/backend/api/utils/rclone_connection.py
dtenenba/motuz
1b54295d2790f756bcb2de61f667f60b7fd5c340
[ "MIT" ]
null
null
null
from collections import defaultdict import functools import json import logging import re import subprocess import threading import time import os from .abstract_connection import AbstractConnection, RcloneException if __name__ == '__main__': main()
27.787415
127
0.505723
a6df1b58a3503a041b065c001a210524d030e7a9
493
py
Python
src/apps/account/test_utils.py
plitzenberger/graphene-auth-examples
93694f10977feb35f73ffe1f84dea631fd6d17dc
[ "MIT" ]
71
2017-06-09T13:02:15.000Z
2021-06-15T20:00:38.000Z
src/apps/account/test_utils.py
plitzenberger/graphene-auth-examples
93694f10977feb35f73ffe1f84dea631fd6d17dc
[ "MIT" ]
13
2017-07-11T16:08:40.000Z
2019-07-01T04:33:17.000Z
src/apps/account/test_utils.py
plitzenberger/graphene-auth-examples
93694f10977feb35f73ffe1f84dea631fd6d17dc
[ "MIT" ]
14
2017-05-18T16:27:30.000Z
2019-09-20T12:57:17.000Z
import pytest from django.core import mail from test_fixtures.users import user from .utils import send_activation_email, send_password_reset_email
23.47619
67
0.770791
a6e0bdf1eeef5e0d534429ccf40177b615819121
1,749
py
Python
mmfashion/apis/test_fashion_recommender.py
RyanJiang0416/mmfashion
89f56e3e631b4f5c1403f7e8897396cc02b5aa91
[ "Apache-2.0" ]
952
2019-10-31T01:49:07.000Z
2022-03-29T11:33:27.000Z
mmfashion/apis/test_fashion_recommender.py
RyanJiang0416/mmfashion
89f56e3e631b4f5c1403f7e8897396cc02b5aa91
[ "Apache-2.0" ]
135
2019-11-02T07:09:04.000Z
2022-03-17T06:08:11.000Z
mmfashion/apis/test_fashion_recommender.py
RyanJiang0416/mmfashion
89f56e3e631b4f5c1403f7e8897396cc02b5aa91
[ "Apache-2.0" ]
239
2019-10-31T02:08:40.000Z
2022-03-22T03:14:38.000Z
from __future__ import division import torch from mmcv.parallel import MMDataParallel from ..datasets import build_dataloader from .env import get_root_logger
26.5
66
0.62207
a6e0d961ca054cd2c16be2efbdd6fc8a2f205473
4,834
py
Python
pyvx/build_cbackend.py
hakanardo/pyvx
683eeabfa1932b9e8038848356790ea822bb0007
[ "MIT" ]
7
2015-03-07T18:58:48.000Z
2020-12-02T15:47:42.000Z
pyvx/build_cbackend.py
hakanardo/pyvx
683eeabfa1932b9e8038848356790ea822bb0007
[ "MIT" ]
3
2016-12-02T19:04:33.000Z
2020-12-09T05:09:06.000Z
pyvx/build_cbackend.py
hakanardo/pyvx
683eeabfa1932b9e8038848356790ea822bb0007
[ "MIT" ]
3
2016-08-15T03:16:04.000Z
2020-01-17T06:42:52.000Z
import os import re import sys from cffi import FFI from pyvx import __backend_version__ mydir = os.path.dirname(os.path.abspath(__file__)) if __name__ == '__main__': args = sys.argv[1:] default = '--default' in args if default: args.remove('--default') if len(args) == 2: name, open...
36.074627
107
0.604055
a6e312bee0b6e88f70b4dd7852b96dd49c779b25
1,774
py
Python
t2s/trackinfo.py
frenchytheasian/tracklist-to-spotify
d227c7b2d68ac130a35a218492cd307727906098
[ "MIT" ]
null
null
null
t2s/trackinfo.py
frenchytheasian/tracklist-to-spotify
d227c7b2d68ac130a35a218492cd307727906098
[ "MIT" ]
null
null
null
t2s/trackinfo.py
frenchytheasian/tracklist-to-spotify
d227c7b2d68ac130a35a218492cd307727906098
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup if __name__ == "__main__": main()
30.586207
120
0.616122
a6e381a0ddef00ffd917ab6e0453f03462c4d295
47,823
py
Python
gbmodel/model_sqlalchemy.py
BartMassey/capstone360
4079ce9963e30e38bb1ce5d35fde438af20cd7bd
[ "MIT" ]
null
null
null
gbmodel/model_sqlalchemy.py
BartMassey/capstone360
4079ce9963e30e38bb1ce5d35fde438af20cd7bd
[ "MIT" ]
89
2019-04-04T06:05:51.000Z
2019-12-03T06:51:22.000Z
gbmodel/model_sqlalchemy.py
BartMassey/capstone360
4079ce9963e30e38bb1ce5d35fde438af20cd7bd
[ "MIT" ]
1
2019-10-22T22:00:55.000Z
2019-10-22T22:00:55.000Z
import os import sys import datetime import logging import traceback from extensions import db from sqlalchemy import exc, func sys.path.append(os.getcwd())
38.1668
109
0.533885
a6e3c3ffa2830e6dc6e8d6bc0393272aef1d0fd6
349
py
Python
tab2comma.py
Guerillero/GeolocationFun
f61be4f2b3e0a6a2c4641f83ae29ff161eb861fe
[ "MIT" ]
1
2016-03-11T10:26:08.000Z
2016-03-11T10:26:08.000Z
tab2comma.py
Guerillero/GeolocationFun
f61be4f2b3e0a6a2c4641f83ae29ff161eb861fe
[ "MIT" ]
null
null
null
tab2comma.py
Guerillero/GeolocationFun
f61be4f2b3e0a6a2c4641f83ae29ff161eb861fe
[ "MIT" ]
null
null
null
#Converts the geo_data tvs into a more ArcMap friendly csv import csv import sys fin = open('geo_data.tsv', 'r') fout = open('geo_data.csv', 'w') csv.field_size_limit(sys.maxsize) tabfile = csv.reader(fin, dialect=csv.excel_tab) commafile = csv.writer(fout, dialect=csv.excel) for row in tabfile: commafile....
20.529412
58
0.724928
a6e4911a102a56bec265217b599cb065b431fc4f
106
py
Python
srv/service/__init__.py
mantou22/SC_system
0c048c1ba678e378e62bb046b39c1a0f7792adee
[ "MulanPSL-1.0" ]
null
null
null
srv/service/__init__.py
mantou22/SC_system
0c048c1ba678e378e62bb046b39c1a0f7792adee
[ "MulanPSL-1.0" ]
1
2021-09-01T03:28:39.000Z
2021-09-01T03:28:39.000Z
srv/service/__init__.py
mantou22/SC_system
0c048c1ba678e378e62bb046b39c1a0f7792adee
[ "MulanPSL-1.0" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- """ @author:MT @file:__init__.py.py @time:2021/8/21 23:02 """
15.142857
24
0.575472
a6e5dd3f1d3b5d0f461d38590a4be156f592fc44
600
py
Python
Python/Introduction/write-a-function.py
lakshika1064/Hackerrank_Solutions-Python
50ca205c5a3a9a4f294dcda077c390209eb57ecc
[ "MIT" ]
1
2020-08-18T08:14:41.000Z
2020-08-18T08:14:41.000Z
Python/Introduction/write-a-function.py
lakshika1064/Hackerrank_Solutions-Python
50ca205c5a3a9a4f294dcda077c390209eb57ecc
[ "MIT" ]
null
null
null
Python/Introduction/write-a-function.py
lakshika1064/Hackerrank_Solutions-Python
50ca205c5a3a9a4f294dcda077c390209eb57ecc
[ "MIT" ]
null
null
null
year = int(input()) print(is_leap(year)) ''' In the Gregorian calendar, three conditions are used to identify leap years: The year can be evenly divided by 4, is a leap year, unless: The year can be evenly divided by 100, it is NOT a leap year, unless: The year is also evenly divisible by 40...
23.076923
77
0.553333
a6e636c3407d17a05d2d215c473b50da1c8bf471
464
py
Python
systemfixtures/tests/test_users.py
alejdg/systemfixtures
d1c42d83c3dca2a36b52e8fc214639ebcb1cd8a1
[ "MIT" ]
13
2017-01-24T15:25:47.000Z
2022-01-06T23:56:06.000Z
systemfixtures/tests/test_users.py
cjwatson/systemfixtures
6ff52e224585d8fab2908dc08a22fe36dcaf93d4
[ "MIT" ]
10
2017-03-08T09:36:01.000Z
2022-02-09T11:08:00.000Z
systemfixtures/tests/test_users.py
cjwatson/systemfixtures
6ff52e224585d8fab2908dc08a22fe36dcaf93d4
[ "MIT" ]
5
2017-03-08T09:30:51.000Z
2022-02-05T23:22:25.000Z
import pwd from testtools import TestCase from ..users import FakeUsers
21.090909
49
0.642241
a6e82e8401f083b412aeb15f384d0aa8ee6b7b91
5,666
py
Python
StatisticalModelling.py
bdolenc/Zemanta-challenge
5ece77c48bf6da4e96de6bceb910ac77496f54e2
[ "MIT" ]
null
null
null
StatisticalModelling.py
bdolenc/Zemanta-challenge
5ece77c48bf6da4e96de6bceb910ac77496f54e2
[ "MIT" ]
null
null
null
StatisticalModelling.py
bdolenc/Zemanta-challenge
5ece77c48bf6da4e96de6bceb910ac77496f54e2
[ "MIT" ]
null
null
null
#The code is published under MIT license. from sklearn.ensemble import RandomForestClassifier from sklearn.ensemble import ExtraTreesClassifier from sklearn.ensemble import GradientBoostingClassifier from sklearn import cross_validation from sklearn.cross_validation import StratifiedKFold from sklearn.metrics import ro...
35.192547
116
0.667137
a6e8d7ed37187c0ba83698ca8f5232fa4215e1e9
487
py
Python
setup.py
bkbilly/AlarmPI
8106769d83c1f1d697173c5e352e4e3cb3d5c4ec
[ "MIT" ]
55
2016-03-08T19:24:28.000Z
2022-02-16T22:10:39.000Z
setup.py
bkbilly/AlarmPI
8106769d83c1f1d697173c5e352e4e3cb3d5c4ec
[ "MIT" ]
18
2017-09-02T10:40:58.000Z
2020-09-25T20:46:11.000Z
setup.py
bkbilly/AlarmPI
8106769d83c1f1d697173c5e352e4e3cb3d5c4ec
[ "MIT" ]
9
2018-05-17T12:54:11.000Z
2021-07-23T01:40:22.000Z
from setuptools import setup, find_packages REQUIRES = [ 'Flask>=1.1.1', 'Flask-SocketIO>=4.2.1', 'Flask-Login>=0.4.1', 'requests>=2.22.0', 'pytz>=2019.2', 'paho-mqtt>=1.4.0', 'RPi.GPIO>=0.7.0', ] setup( name='AlarmPI', version='4.7', description='Home Security System', au...
20.291667
47
0.61191
a6e98b236e9721997e3c77aa490d7419aefda036
5,115
py
Python
AntiFire/model_utils.py
MikhailKitikov/AntiFire
5b148a4f1b8f9be402a30af6dc2b0a5982327a71
[ "MIT" ]
null
null
null
AntiFire/model_utils.py
MikhailKitikov/AntiFire
5b148a4f1b8f9be402a30af6dc2b0a5982327a71
[ "MIT" ]
null
null
null
AntiFire/model_utils.py
MikhailKitikov/AntiFire
5b148a4f1b8f9be402a30af6dc2b0a5982327a71
[ "MIT" ]
null
null
null
from keras.layers.pooling import AveragePooling2D, MaxPooling2D from keras.applications.mobilenet_v2 import MobileNetV2 from keras.applications.nasnet import NASNetMobile from keras.applications import ResNet50V2 from keras.layers.core import Dropout from keras.layers.core import Flatten from keras.layers.core import D...
33.214286
103
0.71652
a6ec7b00bceb0ccf36922a5e75396e5957211a11
2,379
py
Python
test/functional/omni_graceperiod.py
fiscalobject/uniasset
54337e5bfae4af6b1ac453937038201835de15c4
[ "MIT" ]
39
2021-09-07T18:17:20.000Z
2022-02-25T19:10:34.000Z
test/functional/omni_graceperiod.py
fiscalobject/uniasset
54337e5bfae4af6b1ac453937038201835de15c4
[ "MIT" ]
2
2021-12-31T20:42:29.000Z
2022-01-06T09:05:10.000Z
test/functional/omni_graceperiod.py
fiscalobject/uniasset
54337e5bfae4af6b1ac453937038201835de15c4
[ "MIT" ]
10
2021-09-09T09:33:23.000Z
2022-02-11T15:37:50.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test grace period.""" from test_framework.test_framework import BitcoinTestFramework from test_framewo...
42.482143
154
0.701976
a6efb681feeb49e4829de2d74d70c18a039c51a6
719
py
Python
PythonEdition/03_lengthOfLongestSubstring.py
cxiaolong/Algorithm-Practice
6f3d3f4b14a3fc170a3dc47b2ab24f8e37cb941c
[ "MIT" ]
null
null
null
PythonEdition/03_lengthOfLongestSubstring.py
cxiaolong/Algorithm-Practice
6f3d3f4b14a3fc170a3dc47b2ab24f8e37cb941c
[ "MIT" ]
null
null
null
PythonEdition/03_lengthOfLongestSubstring.py
cxiaolong/Algorithm-Practice
6f3d3f4b14a3fc170a3dc47b2ab24f8e37cb941c
[ "MIT" ]
null
null
null
if __name__ == '__main__': s = Solution() s1 = "abcabcbb" s2 = "bbbbb" s3 = "pwwkew" print(s.lengthOfLongestSubstring(s1)) print(s.lengthOfLongestSubstring(s2)) print(s.lengthOfLongestSubstring(s3)) print(s.lengthOfLongestSubstring(""))
27.653846
54
0.527121
a6efcbaa9ab60d9cd78abbd8c9ede3ab97ef6d45
3,739
py
Python
main.py
eternal-forces/profielwerkstuk
efcd5a7b796dec66b95b99a40f4c43ea5958fb8f
[ "Apache-2.0" ]
1
2020-12-07T07:24:25.000Z
2020-12-07T07:24:25.000Z
main.py
eternal-forces/profielwerkstuk
efcd5a7b796dec66b95b99a40f4c43ea5958fb8f
[ "Apache-2.0" ]
null
null
null
main.py
eternal-forces/profielwerkstuk
efcd5a7b796dec66b95b99a40f4c43ea5958fb8f
[ "Apache-2.0" ]
null
null
null
import pyglet import os from classes.car import Car from classes.improvedCircuit import circuit from classes.Vector import Vector2D ### MAIN LOOP # config = pyglet.gl.Config(sample_buffers=1, samples=4) window = pyglet.window.Window(resizable=False, width=1920, height=1080, vsync=True) #inner_points = [[18,3],[8,3],[...
41.087912
263
0.641883
a6f04c096ac02af94095dc0b90b868e0e2b87e2f
2,750
py
Python
gefen-hdsdi2dvi.py
timvideos/panacontrol
3fbaec8d9491255735b8f685fc05bd1abc078a96
[ "Apache-2.0" ]
null
null
null
gefen-hdsdi2dvi.py
timvideos/panacontrol
3fbaec8d9491255735b8f685fc05bd1abc078a96
[ "Apache-2.0" ]
2
2015-01-06T02:36:27.000Z
2015-01-20T00:06:51.000Z
gefen-hdsdi2dvi.py
timvideos/panacontrol
3fbaec8d9491255735b8f685fc05bd1abc078a96
[ "Apache-2.0" ]
2
2015-01-05T21:20:54.000Z
2022-01-13T00:20:48.000Z
#!/usr/bin/python import fcntl import struct import sys import termios import time import math import os if __name__ == '__main__': main()
26.960784
108
0.560727
a6f141e9d9f97e34bca576e7230af21be66d021b
18,603
py
Python
main.py
3ntr0phy/Binance_New_Coins_Scraper
8d5dadf937f818f079aa64b3bc56381d7caff56b
[ "MIT" ]
null
null
null
main.py
3ntr0phy/Binance_New_Coins_Scraper
8d5dadf937f818f079aa64b3bc56381d7caff56b
[ "MIT" ]
null
null
null
main.py
3ntr0phy/Binance_New_Coins_Scraper
8d5dadf937f818f079aa64b3bc56381d7caff56b
[ "MIT" ]
null
null
null
import os import re import time import json import requests import threading import traceback from json_manage import * from binance_key import * from config import * from datetime import datetime, timedelta import dateutil.parser as dparser ARTICLES_URL = 'https://www.binance.com/bapi/composite/v1/public/cms/articl...
40.975771
2,739
0.563619
a6f54e48526554985a473b45ed63c07b4e9862ba
522
py
Python
misc/osutils.py
KartikaySrivadtava/dl-for-har-ea1e9babb2b178cc338dbc72db974325c193c781
f4fa436000a46df80ec083c8e3692cd21787e5b3
[ "MIT" ]
null
null
null
misc/osutils.py
KartikaySrivadtava/dl-for-har-ea1e9babb2b178cc338dbc72db974325c193c781
f4fa436000a46df80ec083c8e3692cd21787e5b3
[ "MIT" ]
null
null
null
misc/osutils.py
KartikaySrivadtava/dl-for-har-ea1e9babb2b178cc338dbc72db974325c193c781
f4fa436000a46df80ec083c8e3692cd21787e5b3
[ "MIT" ]
null
null
null
from __future__ import absolute_import import os import errno import numpy as np
24.857143
80
0.670498
a6f626e57a1d82eddc8ff7025f8974f6515c91cf
113
py
Python
docs/constants.py
djangothon/django-mptt-docs
802aebdbd3181ec006f4711b0a03d3d2a00d6af9
[ "BSD-3-Clause" ]
1
2017-09-02T20:06:41.000Z
2017-09-02T20:06:41.000Z
docs/constants.py
djangothon/django-mptt-docs
802aebdbd3181ec006f4711b0a03d3d2a00d6af9
[ "BSD-3-Clause" ]
null
null
null
docs/constants.py
djangothon/django-mptt-docs
802aebdbd3181ec006f4711b0a03d3d2a00d6af9
[ "BSD-3-Clause" ]
null
null
null
"""HackerEarth docs constants""" DOC_URL_DICT = { # 'doc_name': 'doc_url1', # 'doc_name': 'doc_url2', }
16.142857
32
0.60177
a6f7219a8f54935a9b88e311e47f1df9fac18b53
7,618
py
Python
main.py
wsuzume/proj
127c9793b8fd85024aa99840bcf60b6d781702e4
[ "MIT" ]
null
null
null
main.py
wsuzume/proj
127c9793b8fd85024aa99840bcf60b6d781702e4
[ "MIT" ]
null
null
null
main.py
wsuzume/proj
127c9793b8fd85024aa99840bcf60b6d781702e4
[ "MIT" ]
null
null
null
import os import sys import json import argparse script_content = """\ #!/bin/sh gpython=${PYENV_ROOT}/versions/$(pyenv global)/bin/python gproj=${PYENV_ROOT}/versions/$(pyenv global)/bin/proj if [[ $1 =~ ^[^\-] ]] ; then result=$(exec $gpython $gproj --echo $1) exit_code=$? if test $exit_code -eq 0 ; th...
34.627273
99
0.606327
a6f88fc52c3755838f73b21f8411977db57b5ed5
1,114
py
Python
tools_box/tools_box/report/helpdesk_report/helpdesk_report.py
maisonarmani/Tools_Box
4f8cc3a0deac1be50a3ac80758a10608faf58454
[ "MIT" ]
4
2017-09-25T23:34:08.000Z
2020-07-17T23:52:26.000Z
tools_box/tools_box/report/helpdesk_report/helpdesk_report.py
maisonarmani/Tools_Box
4f8cc3a0deac1be50a3ac80758a10608faf58454
[ "MIT" ]
null
null
null
tools_box/tools_box/report/helpdesk_report/helpdesk_report.py
maisonarmani/Tools_Box
4f8cc3a0deac1be50a3ac80758a10608faf58454
[ "MIT" ]
5
2017-06-02T01:58:32.000Z
2022-02-22T16:59:01.000Z
# Copyright (c) 2013, bobzz.zone@gmail.com and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe
48.434783
199
0.708259
a6fa7ec8acfd9ea1e153741c57cc223290236b4d
5,516
py
Python
relay/__init__.py
ldesgoui/relay
263c3245052c501b0285be9ebab3dcb58ca8bfec
[ "MIT" ]
null
null
null
relay/__init__.py
ldesgoui/relay
263c3245052c501b0285be9ebab3dcb58ca8bfec
[ "MIT" ]
null
null
null
relay/__init__.py
ldesgoui/relay
263c3245052c501b0285be9ebab3dcb58ca8bfec
[ "MIT" ]
null
null
null
# coding: utf-8 """ Relay ~~~~~ Relay is an irc micro-framework that smells too much like a web framework Copyright (c) 2015, ldesgoui <relay at ldesgoui dot xyz> See LICENSE for more informations. """ from collections import defaultdict import logging import os import socket from . import constants from . import ...
32.069767
82
0.553662
a6faa0e8a2b4027e6b39c35c091009b368bde331
1,192
py
Python
src/views/panels/grade.py
abelfodil/inf1900-grader
bc3522eb8bf03ce08914c6988e43cdff919fe352
[ "MIT" ]
1
2022-03-22T07:10:52.000Z
2022-03-22T07:10:52.000Z
src/views/panels/grade.py
abelfodil/inf1900-grader
bc3522eb8bf03ce08914c6988e43cdff919fe352
[ "MIT" ]
11
2019-01-05T02:07:29.000Z
2021-04-21T06:17:31.000Z
src/views/panels/grade.py
abelfodil/inf1900-grader
bc3522eb8bf03ce08914c6988e43cdff919fe352
[ "MIT" ]
5
2018-12-24T17:56:18.000Z
2021-03-13T05:44:46.000Z
from urwid import Edit, IntEdit, LineBox from src.models.grade import AssignmentType, grade from src.models.state import state from src.views.widgets.form import Form from src.views.widgets.radio import RadioGroup
45.846154
105
0.707215
a6fe29f9e05c9d7234744039de99dfa3803cb44a
7,536
py
Python
software/stdMac_python/main.py
ATMakersOrg/IKeysAdapter
49da2b0f6a4399d322f998337d1d40fe1db2c725
[ "MIT" ]
null
null
null
software/stdMac_python/main.py
ATMakersOrg/IKeysAdapter
49da2b0f6a4399d322f998337d1d40fe1db2c725
[ "MIT" ]
null
null
null
software/stdMac_python/main.py
ATMakersOrg/IKeysAdapter
49da2b0f6a4399d322f998337d1d40fe1db2c725
[ "MIT" ]
null
null
null
# Trinket IO demo # Welcome to CircuitPython 3.1.1 :) import board import adafruit_dotstar as dotstar import time import busio import struct from adafruit_hid.keyboard import Keyboard from adafruit_hid.mouse import Mouse from qwertyMAC import * overlay = webaccess # One pixel connected internally! dot = dotstar.DotS...
29.669291
77
0.503052
a6fed8cafb5d0edd2dc00b848834bd0e891d7ca5
379
py
Python
Drawing Book/code.py
swy20190/HackerRankChallenge
c7f73e72daa5a9f892e07ab8fc1bc4d71f240c2a
[ "MIT" ]
null
null
null
Drawing Book/code.py
swy20190/HackerRankChallenge
c7f73e72daa5a9f892e07ab8fc1bc4d71f240c2a
[ "MIT" ]
null
null
null
Drawing Book/code.py
swy20190/HackerRankChallenge
c7f73e72daa5a9f892e07ab8fc1bc4d71f240c2a
[ "MIT" ]
null
null
null
import os if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') n = int(input().strip()) p = int(input().strip()) result = pageCount(n, p) fptr.write(str(result) + '\n') fptr.close()
16.478261
47
0.591029
a6ff14ad05f8ebe1c83e39372f5bf76d98c7dc1d
4,944
py
Python
pylearn2/sampling/replace_samples.py
CKehl/pylearn2
086a198b9f437cf03c35d606e6b3b56b4634ebd8
[ "BSD-3-Clause" ]
null
null
null
pylearn2/sampling/replace_samples.py
CKehl/pylearn2
086a198b9f437cf03c35d606e6b3b56b4634ebd8
[ "BSD-3-Clause" ]
null
null
null
pylearn2/sampling/replace_samples.py
CKehl/pylearn2
086a198b9f437cf03c35d606e6b3b56b4634ebd8
[ "BSD-3-Clause" ]
null
null
null
''' Created on Apr 16, 2015 @author: christian ''' from optparse import OptionParser import numpy import os from os import listdir from os.path import isfile, join import cPickle import glob if __name__ == '__main__': optionParser = OptionParser("usage: %prog -i INPUT_FILE -m META_FILE -t SOURCE_TAG -r DESTINAT...
34.573427
145
0.63835
a6ff7fff18ec58c6987302477424ca3924375eef
4,332
py
Python
GAN/CGAN/cgan_mnist.py
fengjiran/scholar_project
35e86b7a8d0226ad0fee3b2983821a3f331f68aa
[ "Apache-2.0" ]
3
2017-08-20T08:47:18.000Z
2019-06-21T06:09:27.000Z
GAN/CGAN/cgan_mnist.py
fengjiran/scholar_project
35e86b7a8d0226ad0fee3b2983821a3f331f68aa
[ "Apache-2.0" ]
null
null
null
GAN/CGAN/cgan_mnist.py
fengjiran/scholar_project
35e86b7a8d0226ad0fee3b2983821a3f331f68aa
[ "Apache-2.0" ]
null
null
null
from __future__ import division import numpy as np from keras.models import Model, Sequential from keras.optimizers import SGD, Adam from keras.layers import Input, Dense, Dropout, LeakyReLU, concatenate from keras.layers.normalization import BatchNormalization from keras.regularizers import l1, l1_l2 from keras...
35.801653
99
0.560018
a6ffb2cce71e31e979d8246a2d1f4abb5ecfebb0
1,516
py
Python
user/migrations/0002_auto_20200816_0510.py
moewahed/trade_cycle
8ace51f08781a568ef087234b65a7864236dfcaf
[ "MIT" ]
null
null
null
user/migrations/0002_auto_20200816_0510.py
moewahed/trade_cycle
8ace51f08781a568ef087234b65a7864236dfcaf
[ "MIT" ]
null
null
null
user/migrations/0002_auto_20200816_0510.py
moewahed/trade_cycle
8ace51f08781a568ef087234b65a7864236dfcaf
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-08-16 02:10 import django.core.validators from django.db import migrations, models import user.model_addon
43.314286
364
0.64314
4701b69ece1ffb86a010433c4dab85c899b9d3ee
951
py
Python
App/migrations/0001_initial.py
GnomGad/BackendDjangoTodoServer
0aae8e5dc751b8914ee81e280a248a4154d8d5c0
[ "MIT" ]
null
null
null
App/migrations/0001_initial.py
GnomGad/BackendDjangoTodoServer
0aae8e5dc751b8914ee81e280a248a4154d8d5c0
[ "MIT" ]
null
null
null
App/migrations/0001_initial.py
GnomGad/BackendDjangoTodoServer
0aae8e5dc751b8914ee81e280a248a4154d8d5c0
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-07-10 22:53 from django.db import migrations, models import django.db.models.deletion
29.71875
114
0.566772
470257d84016a4e45db78acf75fde0f745cbddab
1,320
py
Python
tinybot/user.py
codymcelroy/Tinyman-Bot
6501eb4e8c9ac5e551e064d9d03bef61dbd54705
[ "MIT" ]
null
null
null
tinybot/user.py
codymcelroy/Tinyman-Bot
6501eb4e8c9ac5e551e064d9d03bef61dbd54705
[ "MIT" ]
null
null
null
tinybot/user.py
codymcelroy/Tinyman-Bot
6501eb4e8c9ac5e551e064d9d03bef61dbd54705
[ "MIT" ]
null
null
null
from algosdk import mnemonic from tinyman.v1.client import TinymanMainnetClient import os from dotenv import load_dotenv #Creating Tinyman client object if __name__ == "__main__": User.main()
27.5
73
0.668939
47037400ff4e76fc857f6ee41c232c1a45585226
148
py
Python
graphgallery/nn/models/pytorch/autoencoder/__init__.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
graphgallery/nn/models/pytorch/autoencoder/__init__.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
graphgallery/nn/models/pytorch/autoencoder/__init__.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
from .decoder import InnerProductDecoder from .autoencoder import AutoEncoder from .loss import BCELoss from .gae import GAE from .vgae import VGAE
24.666667
40
0.831081
470412bcb9b63709268258bfb24826c99f45c360
2,009
py
Python
ad_api/api/sb/bid_recommendations.py
mkdir700/python-amazon-ad-api
e82429be4c56f4b56bddfcd70c18dabd4c109406
[ "MIT" ]
12
2021-11-06T11:12:12.000Z
2022-03-31T19:10:08.000Z
ad_api/api/sb/bid_recommendations.py
saleweaver/python-amazon-ad-api
55fca99167ea918d34d5c9e666a4107f10b348a6
[ "MIT" ]
12
2021-11-06T03:46:59.000Z
2022-03-11T19:09:58.000Z
ad_api/api/sb/bid_recommendations.py
saleweaver/python-amazon-ad-api
55fca99167ea918d34d5c9e666a4107f10b348a6
[ "MIT" ]
6
2021-09-19T00:47:57.000Z
2022-01-11T13:55:44.000Z
from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
59.088235
314
0.66899
470602cdea3451a6105b9f20948c550da2428a6d
1,649
py
Python
rrt.py
dixantmittal/vanilla-rrt-and-variants
3affcef78491a2a54dd6129470bb17b2ce016c3f
[ "Apache-2.0" ]
10
2019-06-04T17:10:56.000Z
2022-03-21T02:41:35.000Z
rrt.py
etarakci-hvl/fast-rrt-star
3affcef78491a2a54dd6129470bb17b2ce016c3f
[ "Apache-2.0" ]
null
null
null
rrt.py
etarakci-hvl/fast-rrt-star
3affcef78491a2a54dd6129470bb17b2ce016c3f
[ "Apache-2.0" ]
5
2020-04-07T02:11:33.000Z
2022-03-04T07:48:05.000Z
import numpy as np import networkx as nx from commons import * from tqdm import tqdm
33.653061
104
0.624621
4706b5d1ad0c266a57f9f225693953bcaf8bb2a5
1,792
py
Python
migrations/versions/b829c4a4c128_add_sign_hash_table.py
rivendale/ethsigns
8ffecc264a54b00d5615c6fa36c9f661dce468b5
[ "MIT" ]
1
2021-01-24T04:27:57.000Z
2021-01-24T04:27:57.000Z
migrations/versions/b829c4a4c128_add_sign_hash_table.py
rivendale/ethsigns
8ffecc264a54b00d5615c6fa36c9f661dce468b5
[ "MIT" ]
19
2021-02-07T18:24:31.000Z
2021-07-02T08:03:56.000Z
migrations/versions/b829c4a4c128_add_sign_hash_table.py
rivendale/ethsigns
8ffecc264a54b00d5615c6fa36c9f661dce468b5
[ "MIT" ]
null
null
null
"""add-sign-hash-table Revision ID: b829c4a4c128 Revises: cc5dce03ad39 Create Date: 2021-05-25 16:04:18.028626 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b829c4a4c128' down_revision = 'cc5dce03ad39' branch_labels = None depends_on = None
33.811321
94
0.695871
4708d3e35d8cf6c31327e57cf3dc0a3ada86640d
3,675
py
Python
tests/util/test_json_stream.py
MatthiasLohr/bfebench
baca2e18a9c24282ecda99dccfd134fab4c223b3
[ "Apache-2.0" ]
null
null
null
tests/util/test_json_stream.py
MatthiasLohr/bfebench
baca2e18a9c24282ecda99dccfd134fab4c223b3
[ "Apache-2.0" ]
null
null
null
tests/util/test_json_stream.py
MatthiasLohr/bfebench
baca2e18a9c24282ecda99dccfd134fab4c223b3
[ "Apache-2.0" ]
null
null
null
# This file is part of the Blockchain-based Fair Exchange Benchmark Tool # https://gitlab.com/MatthiasLohr/bfebench # # Copyright 2021-2022 Matthias Lohr <mail@mlohr.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 o...
34.345794
94
0.670476
4708f606f6729a7f4233abfc1e9dcd8087cb2f67
196
py
Python
python-objects_statements_and_data_structures-practice-master/even_in_range.py
valcal/python_practice
bbc9b7075a5af7b7461afa322acb8c946bad1024
[ "MIT" ]
null
null
null
python-objects_statements_and_data_structures-practice-master/even_in_range.py
valcal/python_practice
bbc9b7075a5af7b7461afa322acb8c946bad1024
[ "MIT" ]
null
null
null
python-objects_statements_and_data_structures-practice-master/even_in_range.py
valcal/python_practice
bbc9b7075a5af7b7461afa322acb8c946bad1024
[ "MIT" ]
null
null
null
""" EVEN IN RANGE: Use range() to print all the even numbers from 0 to 10. """ for number in range(11): if number % 2 == 0: if number == 0: continue print(number)
19.6
70
0.55102
470a71e16d544812e51ec3558f13c543292f57e3
935
py
Python
DummyTile.py
godesab/minesweep
06396f5be237438411a4df6370b739d0d38e89f3
[ "MIT" ]
null
null
null
DummyTile.py
godesab/minesweep
06396f5be237438411a4df6370b739d0d38e89f3
[ "MIT" ]
null
null
null
DummyTile.py
godesab/minesweep
06396f5be237438411a4df6370b739d0d38e89f3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
23.974359
93
0.605348
470b82a1389643eded862261d0f38a66e716c512
4,336
py
Python
ameilisearch/_httprequests.py
SaidBySolo/ameilisearch
017883b6c480e2e3633b8474060387c59588f357
[ "MIT" ]
null
null
null
ameilisearch/_httprequests.py
SaidBySolo/ameilisearch
017883b6c480e2e3633b8474060387c59588f357
[ "MIT" ]
null
null
null
ameilisearch/_httprequests.py
SaidBySolo/ameilisearch
017883b6c480e2e3633b8474060387c59588f357
[ "MIT" ]
null
null
null
import json from typing import Any, Dict, List, Optional, Type, Union from types import TracebackType from aiohttp.client_reqrep import ClientResponse try: from typing import Literal except ImportError: from typing_extensions import Literal from aiohttp.client import ClientConnectionError, ClientResponseError...
32.848485
91
0.594788
470c4a8d64bc83e0bb784d92aef60d7c0b20c194
2,711
py
Python
cuida24/backend/cuida24/services_habits.py
afonscosta/LEI_1819
e25641cc46d06ab25e54f3366adbbe02496aedcb
[ "MIT" ]
null
null
null
cuida24/backend/cuida24/services_habits.py
afonscosta/LEI_1819
e25641cc46d06ab25e54f3366adbbe02496aedcb
[ "MIT" ]
11
2019-12-04T23:42:06.000Z
2022-02-10T08:21:13.000Z
cuida24/backend/cuida24/services_habits.py
afonscosta/LEI_1819
e25641cc46d06ab25e54f3366adbbe02496aedcb
[ "MIT" ]
1
2019-06-26T16:49:31.000Z
2019-06-26T16:49:31.000Z
from django.utils import timezone from django.shortcuts import get_object_or_404 from backend.cuida24.serializers import * logger = logging.getLogger("mylogger")
49.290909
159
0.565474
470c68bee171c558b2fa27895830521e28ccc585
7,758
py
Python
tests/acceptance/features/component/environment.py
AlvaroVega/fiware-facts
6224dd8d87c361bde5eb87f1d9d61a386c5632a8
[ "Apache-2.0" ]
1
2017-11-28T14:52:49.000Z
2017-11-28T14:52:49.000Z
tests/acceptance/features/component/environment.py
AlvaroVega/fiware-facts
6224dd8d87c361bde5eb87f1d9d61a386c5632a8
[ "Apache-2.0" ]
70
2015-01-26T17:32:39.000Z
2018-08-15T14:28:19.000Z
tests/acceptance/features/component/environment.py
AlvaroVega/fiware-facts
6224dd8d87c361bde5eb87f1d9d61a386c5632a8
[ "Apache-2.0" ]
9
2015-01-22T09:29:19.000Z
2020-03-05T19:27:56.000Z
# -*- coding: utf-8 -*- # # Copyright 2015 Telefnica Investigacin y Desarrollo, S.A.U # # This file is parpt of FI-WARE project. # # 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: # # ...
45.905325
121
0.792472
470cfac6bd7f23ed4cc1c90ca9f96df0ee2b0c3e
1,791
py
Python
savu/plugins/azimuthal_integrators/pyfai_azimuthal_integrator.py
malte-storm/Savu
16291e8a22464c50c511af01fbc648860c1236e6
[ "Apache-2.0" ]
1
2021-04-18T09:30:54.000Z
2021-04-18T09:30:54.000Z
savu/plugins/azimuthal_integrators/pyfai_azimuthal_integrator.py
malte-storm/Savu
16291e8a22464c50c511af01fbc648860c1236e6
[ "Apache-2.0" ]
1
2019-07-30T12:31:51.000Z
2019-07-30T12:31:51.000Z
savu/plugins/azimuthal_integrators/pyfai_azimuthal_integrator.py
malte-storm/Savu
16291e8a22464c50c511af01fbc648860c1236e6
[ "Apache-2.0" ]
1
2021-05-20T16:31:29.000Z
2021-05-20T16:31:29.000Z
# Copyright 2014 Diamond Light Source Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
33.792453
79
0.712451
470eba693eedc484f3528cebad4ea8fde2a80a34
47
py
Python
Exercise/t4.py
Twenkid/Python-Various
cb6d704724d0e0325cf05a2f95b08cc892ff0857
[ "MIT" ]
null
null
null
Exercise/t4.py
Twenkid/Python-Various
cb6d704724d0e0325cf05a2f95b08cc892ff0857
[ "MIT" ]
null
null
null
Exercise/t4.py
Twenkid/Python-Various
cb6d704724d0e0325cf05a2f95b08cc892ff0857
[ "MIT" ]
null
null
null
#t4.py
11.75
23
0.595745
470f7eeda75283f4e7198eb5c53e3a28834ff646
1,227
py
Python
config.py
paris3200/flask-inventory
fe858e5c12a8e193590e978e573a3891dfde37de
[ "MIT" ]
6
2016-05-29T05:24:39.000Z
2021-12-02T14:23:36.000Z
config.py
paris3200/flask-inventory
fe858e5c12a8e193590e978e573a3891dfde37de
[ "MIT" ]
20
2016-11-04T23:22:25.000Z
2019-10-21T13:39:49.000Z
config.py
paris3200/flask-inventory
fe858e5c12a8e193590e978e573a3891dfde37de
[ "MIT" ]
7
2016-03-27T12:19:33.000Z
2019-11-18T23:11:23.000Z
# config.jinja2 import os basedir = os.path.abspath(os.path.dirname(__file__))
27.886364
87
0.731051
470fe23973530032b500905cb2a05ec7d7b4bff3
238
py
Python
ensysmod/model/ts_capacity_max.py
NOWUM/EnSysMod
18c8a2198db3510e667c1f0298d00a3dfcb0aab7
[ "MIT" ]
1
2021-12-10T19:41:01.000Z
2021-12-10T19:41:01.000Z
ensysmod/model/ts_capacity_max.py
NOWUM/EnSysMod
18c8a2198db3510e667c1f0298d00a3dfcb0aab7
[ "MIT" ]
83
2021-10-20T22:54:28.000Z
2022-03-24T19:07:06.000Z
ensysmod/model/ts_capacity_max.py
NOWUM/EnSysMod
18c8a2198db3510e667c1f0298d00a3dfcb0aab7
[ "MIT" ]
null
null
null
from sqlalchemy import Column, PickleType from ensysmod.database.base_class import Base from ensysmod.database.ref_base_class import RefCRBase
26.444444
55
0.827731
4710ee05a8d41a4dc8d0cb9674e01b883d964fbf
1,262
py
Python
ui/AterAuiNotebook.py
yeweiasia/ater
7d3408adc576abc9dda4f29492f80460dce3f89a
[ "MIT" ]
2
2018-11-22T15:12:32.000Z
2018-12-12T06:19:29.000Z
ui/AterAuiNotebook.py
yeweiasia/ater
7d3408adc576abc9dda4f29492f80460dce3f89a
[ "MIT" ]
null
null
null
ui/AterAuiNotebook.py
yeweiasia/ater
7d3408adc576abc9dda4f29492f80460dce3f89a
[ "MIT" ]
1
2018-12-12T06:19:33.000Z
2018-12-12T06:19:33.000Z
import time import wx.aui as aui from SessionManager import SessionManager
36.057143
147
0.692552
4711fa4a5f248f729dbb574084def1809fe1751a
36,453
py
Python
pyyeti/cla/_rptpct1.py
twmacro/pyye
c4febd44be836bd87368da13c1fb0cf82838b687
[ "BSD-3-Clause" ]
null
null
null
pyyeti/cla/_rptpct1.py
twmacro/pyye
c4febd44be836bd87368da13c1fb0cf82838b687
[ "BSD-3-Clause" ]
null
null
null
pyyeti/cla/_rptpct1.py
twmacro/pyye
c4febd44be836bd87368da13c1fb0cf82838b687
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Low level tool for writing percent difference reports. Typically, this is called via: :func:`cla.DR_Results.rptpct`. """ from io import StringIO from types import SimpleNamespace import warnings import numpy as np import matplotlib.pyplot as plt from pyyeti import ytools, locate, writer from...
34.19606
88
0.549173
47154e4f13dd1dcdda9cb5781744c6421ce714c9
1,759
py
Python
python/run_selective_universal.py
rwightman/pytorch-nips2017-adversarial
1727494ea3bfcbc3b4754b35096e816e1269ff38
[ "Apache-2.0" ]
17
2018-02-05T15:09:01.000Z
2022-03-15T06:27:07.000Z
python/run_selective_universal.py
rwightman/pytorch-nips2017-adversarial
1727494ea3bfcbc3b4754b35096e816e1269ff38
[ "Apache-2.0" ]
1
2019-03-03T05:30:38.000Z
2019-03-08T04:44:39.000Z
python/run_selective_universal.py
rwightman/pytorch-nips2017-adversarial
1727494ea3bfcbc3b4754b35096e816e1269ff38
[ "Apache-2.0" ]
2
2019-07-26T07:17:09.000Z
2019-10-16T03:44:02.000Z
import argparse from attacks.image_save_runner import ImageSaveAttackRunner from attacks.selective_universal import SelectiveUniversal from dataset import Dataset from models import create_ensemble from models.model_configs import config_from_string parser = argparse.ArgumentParser(description='Defence') parser.add_a...
38.23913
102
0.712905
4715857bcca4a207ecfd692fa8d2496336300ae1
449,136
py
Python
py-fedex/pyfedex/location_service_v11.py
QwadwoNyamekye/purplship-carriers
ce34e3054de246e3d85ddf6928b607193d061ae2
[ "MIT" ]
2
2021-04-12T22:40:28.000Z
2021-04-21T18:28:31.000Z
py-fedex/pyfedex/location_service_v11.py
QwadwoNyamekye/purplship-carriers
ce34e3054de246e3d85ddf6928b607193d061ae2
[ "MIT" ]
2
2021-01-29T07:14:31.000Z
2021-02-18T18:29:23.000Z
py-fedex/pyfedex/location_service_v11.py
QwadwoNyamekye/purplship-carriers
ce34e3054de246e3d85ddf6928b607193d061ae2
[ "MIT" ]
3
2020-09-09T17:04:46.000Z
2021-03-05T00:32:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated Fri Mar 6 15:54:36 2020 by generateDS.py version 2.35.15. # Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') # ('-o', './python/location_service_v11.py') # # Com...
51.282941
513
0.664514
47179f5bf12e9b03efc4a0874bcc2fffe620b647
347
py
Python
context_cache/context_cache.py
tervay/the-blue-alliance
e14c15cb04b455f90a2fcfdf4c1cdbf8454e17f8
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
context_cache/context_cache.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
context_cache/context_cache.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
from google.appengine.ext import ndb CACHE_DATA = {}
23.133333
76
0.70317
4717bd47c7c38c3762d1b1d17800ed74ea5afe27
3,762
py
Python
pytma/Sentiment.py
aloidia-solutions/nlp-modelling
cc181bf08c5f93d6949d47bb5212dcefb336279d
[ "MIT" ]
1
2019-07-25T21:18:10.000Z
2019-07-25T21:18:10.000Z
pytma/Sentiment.py
brucebcampbell/nlp-modelling
b6e5b6c5b2df7cc20e7de68f32d164981353aaf9
[ "MIT" ]
13
2019-08-08T15:42:27.000Z
2019-09-29T20:34:14.000Z
pytma/Sentiment.py
aloidia-solutions/nlp-modelling
cc181bf08c5f93d6949d47bb5212dcefb336279d
[ "MIT" ]
1
2019-10-23T19:51:41.000Z
2019-10-23T19:51:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import nltk from nltk.tokenize import word_tokenize from nltk.sentiment.vader import SentimentIntensityAnalyzer from pytma.Utility import log if __name__ == '__main__': #This will be the unit test test_text_supervised = [("Great place to be when you are in Ban...
35.158879
114
0.598086
4717fca0de416a008ce00cf368fbdddc1489506d
14,104
py
Python
aiida_castep/calculations/tools.py
asamli/aiida-castep
893113152460a632439c91652211381091566645
[ "MIT" ]
3
2021-09-02T16:02:47.000Z
2021-12-17T22:38:20.000Z
aiida_castep/calculations/tools.py
asamli/aiida-castep
893113152460a632439c91652211381091566645
[ "MIT" ]
16
2020-05-07T07:58:01.000Z
2022-03-21T11:35:35.000Z
aiida_castep/calculations/tools.py
asamli/aiida-castep
893113152460a632439c91652211381091566645
[ "MIT" ]
3
2020-05-25T13:05:51.000Z
2021-12-17T22:39:12.000Z
""" Tools for calculations """ import warnings from aiida.tools import CalculationTools from aiida.common import InputValidationError from aiida.orm import CalcJobNode, Dict from aiida.common.links import LinkType from aiida.plugins import DataFactory from aiida.engine import CalcJob, ProcessBuilder from aiida_castep...
34.568627
85
0.64308
4718a2b90ba5afaa7f04662ac1cca9de7cdf47a0
1,013
py
Python
apps/addons/tests/test_search.py
muffinresearch/addons-server
66613e9262a5e9475254091552de28a53b5b4072
[ "BSD-3-Clause" ]
1
2015-12-01T03:53:51.000Z
2015-12-01T03:53:51.000Z
apps/addons/tests/test_search.py
magopian/olympia
70cad15111a89e3d5c715cbade8925b12d1b98dc
[ "BSD-3-Clause" ]
5
2021-02-02T23:09:35.000Z
2021-09-08T02:47:20.000Z
apps/addons/tests/test_search.py
magopian/olympia
70cad15111a89e3d5c715cbade8925b12d1b98dc
[ "BSD-3-Clause" ]
null
null
null
from nose.tools import eq_ import amo.tests from addons.models import (Addon, attach_categories, attach_tags, attach_translations) from addons.search import extract
33.766667
79
0.622902
4718c3e6f88080fb3ddbf1b2d1feee70ac12c913
1,669
py
Python
src/beanmachine/applications/hme/interface.py
horizon-blue/beanmachine-1
b13e4e3e28ffb860947eb8046863b0cabb581222
[ "MIT" ]
177
2021-12-12T14:19:05.000Z
2022-03-24T05:48:10.000Z
src/beanmachine/applications/hme/interface.py
horizon-blue/beanmachine-1
b13e4e3e28ffb860947eb8046863b0cabb581222
[ "MIT" ]
171
2021-12-11T06:12:05.000Z
2022-03-31T20:26:29.000Z
src/beanmachine/applications/hme/interface.py
horizon-blue/beanmachine-1
b13e4e3e28ffb860947eb8046863b0cabb581222
[ "MIT" ]
31
2021-12-11T06:27:19.000Z
2022-03-25T13:31:56.000Z
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Tuple import pandas as pd from .configs import InferConfig, ModelConfig from .null_mixture_model import NullMixtureMixe...
34.770833
78
0.720791
471c0022039369de016a67c94f58c195fe745dc1
7,390
py
Python
python-examples/bulk/bulk_send_complex.py
ryan-lydz/socketlabs-python
1c6497205991e946d1630f83f452289476539833
[ "MIT" ]
10
2018-11-15T20:52:52.000Z
2021-05-17T22:06:26.000Z
python-examples/bulk/bulk_send_complex.py
ryan-lydz/socketlabs-python
1c6497205991e946d1630f83f452289476539833
[ "MIT" ]
1
2021-08-24T17:47:06.000Z
2022-02-06T06:58:26.000Z
python-examples/bulk/bulk_send_complex.py
ryan-lydz/socketlabs-python
1c6497205991e946d1630f83f452289476539833
[ "MIT" ]
4
2020-07-29T18:04:01.000Z
2021-07-30T19:42:23.000Z
import json import os from socketlabs.injectionapi import SocketLabsClient from socketlabs.injectionapi.message.__imports__ import \ Attachment, BulkMessage, BulkRecipient, CustomHeader, EmailAddress # build the message message = BulkMessage() message.message_id = "ComplexExample" message.mailing_id = "BulkSend...
39.518717
117
0.547903
471cbbb20475ef2a9c2237f251f9c85a33676981
127
py
Python
input_tests.py
KittyKuttleFish/Python
3bb0309d55ac63982706653b00591fc286c6deeb
[ "Unlicense" ]
null
null
null
input_tests.py
KittyKuttleFish/Python
3bb0309d55ac63982706653b00591fc286c6deeb
[ "Unlicense" ]
null
null
null
input_tests.py
KittyKuttleFish/Python
3bb0309d55ac63982706653b00591fc286c6deeb
[ "Unlicense" ]
null
null
null
test = input("Please enter any string for input testing:") print("Testing String...") import time time.sleep(5) if(test)
21.166667
59
0.692913
471ea69b41d7dcaee6304d49c046c2751ce16a2b
8,504
py
Python
model.py
hafezgh/music_classification
68fa398b7d4455475d07ae17c3b6b94459a96ac7
[ "MIT" ]
1
2021-07-15T18:47:02.000Z
2021-07-15T18:47:02.000Z
model.py
hafezgh/music_classification
68fa398b7d4455475d07ae17c3b6b94459a96ac7
[ "MIT" ]
null
null
null
model.py
hafezgh/music_classification
68fa398b7d4455475d07ae17c3b6b94459a96ac7
[ "MIT" ]
null
null
null
import torch.optim as optim import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np import torchvision import torch from torchvision import models, datasets
36.497854
111
0.577493
47209eebbc149e62a5f0d2dabf52ddf2204e7525
1,036
py
Python
tests/utils/test_string_utils.py
PeterSulcs/mlflow
14c48e7bb1ca6cd6a3c1b249a486cd98bd5e7051
[ "Apache-2.0" ]
10,351
2018-07-31T02:52:49.000Z
2022-03-31T23:33:13.000Z
tests/utils/test_string_utils.py
PeterSulcs/mlflow
14c48e7bb1ca6cd6a3c1b249a486cd98bd5e7051
[ "Apache-2.0" ]
3,733
2018-07-31T01:38:51.000Z
2022-03-31T23:56:25.000Z
tests/utils/test_string_utils.py
PeterSulcs/mlflow
14c48e7bb1ca6cd6a3c1b249a486cd98bd5e7051
[ "Apache-2.0" ]
2,596
2018-07-31T06:38:39.000Z
2022-03-31T23:56:32.000Z
import pytest from mlflow.utils.string_utils import strip_prefix, strip_suffix, is_string_type def test_is_string_type(): assert is_string_type("validstring") assert is_string_type("") assert is_string_type((b"dog").decode("utf-8")) assert not is_string_type(None) assert not is_string_type(["te...
31.393939
91
0.666023
472102e62d417732e12272e8b4c6fc0b9a1fb145
352
py
Python
api/migrations/0002_auto_20181108_2243.py
apigram/jade-api
1aece29c3109db68897fdf854be431554e7f2863
[ "Apache-2.0" ]
null
null
null
api/migrations/0002_auto_20181108_2243.py
apigram/jade-api
1aece29c3109db68897fdf854be431554e7f2863
[ "Apache-2.0" ]
null
null
null
api/migrations/0002_auto_20181108_2243.py
apigram/jade-api
1aece29c3109db68897fdf854be431554e7f2863
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-08 11:43 from django.db import migrations
18.526316
47
0.571023
47213f9e5edf66ce4e4334e6890171cc22696a9b
4,523
py
Python
argueserver/plugins/arguments.py
UKPLab/argotario
cb817460e2c1cae1d2edb86eeb3ab238c592de4b
[ "Apache-2.0" ]
8
2017-12-13T18:41:51.000Z
2021-12-14T20:56:33.000Z
argueserver/plugins/arguments.py
UKPLab/argotario
cb817460e2c1cae1d2edb86eeb3ab238c592de4b
[ "Apache-2.0" ]
1
2019-12-18T03:02:27.000Z
2019-12-23T19:06:07.000Z
argueserver/plugins/arguments.py
UKPLab/argotario
cb817460e2c1cae1d2edb86eeb3ab238c592de4b
[ "Apache-2.0" ]
2
2017-08-14T13:24:16.000Z
2021-02-16T08:52:22.000Z
import interfaces import random import pymongo def getHandler(database): """ a function instantiating and returning this plugin """ return Arguments(database, 'arguments', public_endpoint_extensions=['fallacy_recognition', 'insert'])
34.265152
124
0.569755
47228a6a12c88d7a3cfa15a2f732624f6eded042
2,245
py
Python
predictions/dota_predictor.py
LavinaVRovine/hazard
e0408374dc0b76f8b9a0107f5f12cca2d4c033ef
[ "MIT" ]
1
2020-10-05T14:19:35.000Z
2020-10-05T14:19:35.000Z
predictions/dota_predictor.py
LavinaVRovine/hazard
e0408374dc0b76f8b9a0107f5f12cca2d4c033ef
[ "MIT" ]
null
null
null
predictions/dota_predictor.py
LavinaVRovine/hazard
e0408374dc0b76f8b9a0107f5f12cca2d4c033ef
[ "MIT" ]
null
null
null
import pandas as pd from sqlalchemy import create_engine from config import DATABASE_URI from predictions.common_predictor import CommonPredictor pd.set_option("display.width", 1000) pd.set_option("display.max_columns", 50) if __name__ == "__main__": DB_URL = f"{DATABASE_URI}dota" ENGINE = create_engine(DB...
28.782051
84
0.571938
4722d1369c95c041c606bcb2874aaeb9b35e80f8
5,646
py
Python
sphinxcontrib/gitloginfo/__init__.py
TYPO3-Documentation/sphinxcontrib-gitloginfo
5f0ea2e3c69cde680f7431843e41ce598088f04c
[ "MIT" ]
null
null
null
sphinxcontrib/gitloginfo/__init__.py
TYPO3-Documentation/sphinxcontrib-gitloginfo
5f0ea2e3c69cde680f7431843e41ce598088f04c
[ "MIT" ]
1
2021-11-28T10:28:16.000Z
2021-11-29T08:59:43.000Z
sphinxcontrib/gitloginfo/__init__.py
TYPO3-Documentation/sphinxcontrib-gitloginfo
5f0ea2e3c69cde680f7431843e41ce598088f04c
[ "MIT" ]
null
null
null
""" sphinxcontrib.gitloginfo ~~~~~~~~~~~~~~~~~~~~~~~~ Provide properties obtained from git log :copyright: Copyright 2020 by Martin Bless <martin.bless@mbless.de> :license: MIT, see LICENSE for details. """ import datetime import io import json import sys from os.path import exists as ospe, join...
37.390728
82
0.589798
4722f796a55af95014f5b5b2803786e73346c8bc
22,314
py
Python
train/train.py
sjtu-tcloud/Tiny-OFA
4b0c3228d96e0a0a16b6a73d8c65afddea7bad49
[ "MIT" ]
null
null
null
train/train.py
sjtu-tcloud/Tiny-OFA
4b0c3228d96e0a0a16b6a73d8c65afddea7bad49
[ "MIT" ]
null
null
null
train/train.py
sjtu-tcloud/Tiny-OFA
4b0c3228d96e0a0a16b6a73d8c65afddea7bad49
[ "MIT" ]
null
null
null
import argparse import torch.distributed as dist import torch.optim as optim import torch.optim.lr_scheduler as lr_scheduler import test # import test.py to get mAP after each epoch from models import * from utils.dataset import * from utils.utils import * from mymodel import * wdir = 'weights' + os.sep # weights...
47.375796
146
0.54589
4722f8068271144abbf5c6184025fd0b5c1933a0
4,422
py
Python
client.py
BrenndonCJ/GUI_Chat_MultiClient_Python
491105ed260ce28a3b95bb56feff43a0900cd765
[ "MIT" ]
null
null
null
client.py
BrenndonCJ/GUI_Chat_MultiClient_Python
491105ed260ce28a3b95bb56feff43a0900cd765
[ "MIT" ]
null
null
null
client.py
BrenndonCJ/GUI_Chat_MultiClient_Python
491105ed260ce28a3b95bb56feff43a0900cd765
[ "MIT" ]
null
null
null
import sys from socket import AF_INET, socket, SOCK_STREAM from threading import Thread from PySide2.QtCore import * from PySide2.QtGui import * from PySide2.QtWidgets import * from frontend.tela_login import * from frontend.tela_chat import * if __name__ == "__main__": n_clients = 3 # Defina o numero de c...
28.714286
74
0.613297
47237997c5e5520b03dbf2e14640da28cd728e21
554
py
Python
server/serv.py
pdeutsch/RobotVisionSim
166ad4a634b5488e169aa1a8a397a36c0c63a1d1
[ "Apache-2.0" ]
null
null
null
server/serv.py
pdeutsch/RobotVisionSim
166ad4a634b5488e169aa1a8a397a36c0c63a1d1
[ "Apache-2.0" ]
null
null
null
server/serv.py
pdeutsch/RobotVisionSim
166ad4a634b5488e169aa1a8a397a36c0c63a1d1
[ "Apache-2.0" ]
null
null
null
import time from networktables import NetworkTables #NetworkTables.initialize() #NetworkTables.startServer(persistFilename='networktables.ini', listenAddress='localhost', port=8123) NetworkTables.startServer() print('isServer:{}'.format(NetworkTables.isServer())) t = NetworkTables.getTable('vision') t.putNumber('x...
20.518519
101
0.729242
4723919a9d77e95a8ef3cea2313a03d4c809f601
725
py
Python
diet/urls.py
EspeIgira/Health-Diet
a0314beb787e981a50946c64f6da30bd34897cc3
[ "MIT" ]
null
null
null
diet/urls.py
EspeIgira/Health-Diet
a0314beb787e981a50946c64f6da30bd34897cc3
[ "MIT" ]
null
null
null
diet/urls.py
EspeIgira/Health-Diet
a0314beb787e981a50946c64f6da30bd34897cc3
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns=[ url('^$',views.diet,name = 'diet'), url('^$',views.health_of_day,name='healthToday'), url(r'^search/', views.search_results, name='search_results'), url(r'...
31.521739
81
0.675862
4723dcee9820113cc4255a18cebb8871583017fd
124
py
Python
tests/data/samplecfg.py
glebshevchukk/gradslam
ce38c98537e1521b5e0a780f1c53f26924df7dab
[ "MIT" ]
1,048
2020-11-06T03:49:27.000Z
2022-03-28T17:57:05.000Z
tests/data/samplecfg.py
glebshevchukk/gradslam
ce38c98537e1521b5e0a780f1c53f26924df7dab
[ "MIT" ]
32
2020-11-08T09:19:21.000Z
2022-03-14T20:36:25.000Z
tests/data/samplecfg.py
glebshevchukk/gradslam
ce38c98537e1521b5e0a780f1c53f26924df7dab
[ "MIT" ]
124
2020-11-08T07:29:57.000Z
2022-03-16T11:40:56.000Z
import os import sys from gradslam.config import CfgNode as CN cfg = CN() cfg.TRAIN = CN() cfg.TRAIN.HYPERPARAM_1 = 0.9
11.272727
41
0.717742
4724329a1d45ef768bccff6671f8a252daabbfed
908
py
Python
whendidit/tests/test_happen.py
RyanSkraba/whendidit
2b9ffd489d3b894d60a4712a53ffd94ae93a194d
[ "Apache-2.0" ]
1
2020-01-31T08:19:55.000Z
2020-01-31T08:19:55.000Z
whendidit/tests/test_happen.py
RyanSkraba/whendidit
2b9ffd489d3b894d60a4712a53ffd94ae93a194d
[ "Apache-2.0" ]
null
null
null
whendidit/tests/test_happen.py
RyanSkraba/whendidit
2b9ffd489d3b894d60a4712a53ffd94ae93a194d
[ "Apache-2.0" ]
null
null
null
import os import tempfile from unittest import TestCase import avro import whendidit
30.266667
94
0.612335
472749bd2670647f70a7a59990ef445be74c2560
846
py
Python
hackerrank/Python/Hex Color Code/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerrank/Python/Hex Color Code/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerrank/Python/Hex Color Code/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
import io import unittest from contextlib import redirect_stdout from unittest.mock import patch if __name__ == '__main__': unittest.main()
24.171429
53
0.471631
472aaec1568b0bce44426eab87e5a536d04258d9
5,078
py
Python
minos/tests/model/parameters_test.py
qorrect/sisy
4c279f3a47109395d57521b5c8144b18693737fc
[ "Apache-2.0" ]
6
2017-09-15T03:14:10.000Z
2019-12-03T04:15:21.000Z
minos/tests/model/parameters_test.py
qorrect/sisy
4c279f3a47109395d57521b5c8144b18693737fc
[ "Apache-2.0" ]
2
2017-09-21T01:49:42.000Z
2017-09-23T16:33:01.000Z
minos/tests/model/parameters_test.py
qorrect/sisy
4c279f3a47109395d57521b5c8144b18693737fc
[ "Apache-2.0" ]
null
null
null
''' Created on Feb 7, 2017 @author: julien ''' import unittest from keras.layers.core import Dense from minos.experiment.experiment import ExperimentParameters, Experiment,\ check_experiment_parameters, InvalidParametersException from minos.experiment.training import Training from minos.model.parameter import ra...
37.614815
97
0.62052
472ab92bb444adbe723ece54af105e66dd29ae4d
4,408
py
Python
agent/adapters/opencog/relex/__init__.py
akolonin/singnet
3be30d40a2394325dc14bb55ea2871fe463b9405
[ "MIT" ]
null
null
null
agent/adapters/opencog/relex/__init__.py
akolonin/singnet
3be30d40a2394325dc14bb55ea2871fe463b9405
[ "MIT" ]
null
null
null
agent/adapters/opencog/relex/__init__.py
akolonin/singnet
3be30d40a2394325dc14bb55ea2871fe463b9405
[ "MIT" ]
1
2020-10-27T01:32:15.000Z
2020-10-27T01:32:15.000Z
# # adapters/opencog/relex/__init__.py - an AI adapter that integrates the relex natural language parser... # # Copyright (c) 2017 SingularityNET # # Distributed under the MIT software license, see LICENSE file. # import logging from typing import List import socket import json import select import asyncio from sn_ag...
33.907692
105
0.650181
472afc21ea7eeaee85fc2d73a6095f40e07d89e4
22,482
py
Python
oompa/tracking/github/GitHubNeo.py
sjtsp2008/oompa
2dfdecba192c408c0463da27e0b5859ef9ce3db6
[ "Apache-2.0" ]
2
2016-02-23T00:58:11.000Z
2017-06-14T15:39:22.000Z
oompa/tracking/github/GitHubNeo.py
sjtsp2008/oompa
2dfdecba192c408c0463da27e0b5859ef9ce3db6
[ "Apache-2.0" ]
3
2015-06-21T11:13:50.000Z
2015-06-21T13:27:03.000Z
oompa/tracking/github/GitHubNeo.py
sjtsp2008/oompa
2dfdecba192c408c0463da27e0b5859ef9ce3db6
[ "Apache-2.0" ]
null
null
null
# # GitHubNeo.py # # note: i tried using bulbs, which would be easier to # migrate to other tinkerpop graph engines, but had # trouble authenticating # # """ package oompa.tracking.github experiments with working on github graphs in neo uses py2neo TODO: i think bulb seems to have better object modeling...
26.892344
96
0.526644
472b7eae05711c0a1df1ff938d239d30340dd29a
60
py
Python
tests/dummy_cell_env.py
pktl/distributed_game_of_life
9ac63cec43977fff2653e7a1b9c7a4c12bbd7925
[ "MIT" ]
null
null
null
tests/dummy_cell_env.py
pktl/distributed_game_of_life
9ac63cec43977fff2653e7a1b9c7a4c12bbd7925
[ "MIT" ]
null
null
null
tests/dummy_cell_env.py
pktl/distributed_game_of_life
9ac63cec43977fff2653e7a1b9c7a4c12bbd7925
[ "MIT" ]
null
null
null
from src.dgol_worker.cell_env import CellEnv ce = CellEnv()
20
44
0.8
472bc55d336ce348951bd8eeba92c1a80bba3988
526
py
Python
webServ/app.py
harryparkdotio/dabdabrevolution
ffb8a28379edd5e44d23d39ee5e5cc38ddf5181a
[ "MIT" ]
9
2017-01-10T03:40:18.000Z
2019-03-20T11:27:22.000Z
webServ/app.py
harryparkdotio/dabdabrevolution
ffb8a28379edd5e44d23d39ee5e5cc38ddf5181a
[ "MIT" ]
null
null
null
webServ/app.py
harryparkdotio/dabdabrevolution
ffb8a28379edd5e44d23d39ee5e5cc38ddf5181a
[ "MIT" ]
3
2018-02-28T04:10:55.000Z
2018-12-21T14:19:12.000Z
from flask import Flask, Response, send_from_directory import random, time app = Flask(__name__, static_folder='www') if __name__ == '__main__': app.run(debug=True)
22.869565
62
0.671103
472bdb7d6f77fde9bd50d0c0ca58b1a849377617
1,039
py
Python
scripts/jandan_crawler.py
920671233/SpiderItems
cf615de5f496083e43ca067200318d4a49f79cab
[ "Apache-2.0" ]
null
null
null
scripts/jandan_crawler.py
920671233/SpiderItems
cf615de5f496083e43ca067200318d4a49f79cab
[ "Apache-2.0" ]
null
null
null
scripts/jandan_crawler.py
920671233/SpiderItems
cf615de5f496083e43ca067200318d4a49f79cab
[ "Apache-2.0" ]
null
null
null
import re import urllib.request from urllib.error import URLError if __name__ == '__main__': crawl()
32.46875
159
0.60924
472ccb20b84f3fb1960515f43b725476c316bd05
212
py
Python
SRC/Chapter_03-When-Object-Are-Alike/supplier.py
eminemence/python3_OOPs
a61f2649cf9c68a782a3e90c1f667877597dfb1d
[ "MIT" ]
null
null
null
SRC/Chapter_03-When-Object-Are-Alike/supplier.py
eminemence/python3_OOPs
a61f2649cf9c68a782a3e90c1f667877597dfb1d
[ "MIT" ]
null
null
null
SRC/Chapter_03-When-Object-Are-Alike/supplier.py
eminemence/python3_OOPs
a61f2649cf9c68a782a3e90c1f667877597dfb1d
[ "MIT" ]
1
2021-01-13T08:25:04.000Z
2021-01-13T08:25:04.000Z
import contact
21.2
54
0.566038
472d33ee671b834600d631e1bc6cb1211dc6683a
1,356
py
Python
gamestate/Main.py
skitter30/modbot
6526f5bd1b8e73143ff45d71081d64c6e4aa8ea5
[ "MIT" ]
2
2019-12-29T13:15:13.000Z
2020-04-27T07:32:21.000Z
gamestate/Main.py
skitter30/modbot
6526f5bd1b8e73143ff45d71081d64c6e4aa8ea5
[ "MIT" ]
9
2018-05-02T14:39:48.000Z
2018-05-27T22:08:53.000Z
gamestate/Main.py
skitter30/modbot
6526f5bd1b8e73143ff45d71081d64c6e4aa8ea5
[ "MIT" ]
6
2018-05-08T19:48:35.000Z
2018-06-03T02:58:55.000Z
from GameState import GameState, Game from Component import Component def main(): # Testing code """ game = Game('large_normal_186') game.load_events() game.process_events() print(game.generate_vote_count(278)) print('\nNow in RC style!\n') print(game.generate_vote_count(278, style='la...
35.684211
121
0.69764