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
a66166246703189297b327b36845062d1af73e37
29,651
py
Python
btclib/tests/test_dh.py
giubby84/btclib
0dd7e4e8ca43451a03b577fd7ec95715a1a21711
[ "MIT" ]
null
null
null
btclib/tests/test_dh.py
giubby84/btclib
0dd7e4e8ca43451a03b577fd7ec95715a1a21711
[ "MIT" ]
null
null
null
btclib/tests/test_dh.py
giubby84/btclib
0dd7e4e8ca43451a03b577fd7ec95715a1a21711
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (C) 2017-2020 The btclib developers # # This file is part of btclib. It is subject to the license terms in the # LICENSE file found in the top-level directory of this distribution. # # No part of btclib including this file, may be copied, modified, propagated, # or distributed except...
122.020576
455
0.868976
a661816e5916f0c7a9ee3d97c0dc846186965e97
4,728
py
Python
dni/mlp.py
DingKe/pytorch_workplace
4bc60a2c3640de522d0b72262667ba70391ba16e
[ "MIT" ]
184
2017-05-23T12:06:08.000Z
2021-12-21T09:09:51.000Z
dni/mlp.py
Ewenwan/pytorch_workplace
0ef2e905596a0b0db11b4929564175e6f7ab7423
[ "MIT" ]
8
2017-08-14T11:40:20.000Z
2019-01-16T13:14:32.000Z
dni/mlp.py
Ewenwan/pytorch_workplace
0ef2e905596a0b0db11b4929564175e6f7ab7423
[ "MIT" ]
61
2017-04-29T09:53:47.000Z
2021-02-19T02:13:14.000Z
import torch import torch.nn as nn import torchvision.datasets as dsets import torchvision.transforms as transforms from torch.autograd import Variable # Hyper Parameters input_size = 784 hidden_size = 256 dni_size = 1024 num_classes = 10 num_epochs = 50 batch_size = 500 learning_rate = 1e-3 use_cuda = torch.cuda.is...
28.311377
100
0.59412
a66300393de948ba2295823f544984ec41706a76
1,505
py
Python
dorkbot_extract_dll.py
dyussekeyev/dorkbot-c2-extractor
fad5faa0ff71d4df9fbae95155a046466c294051
[ "MIT" ]
null
null
null
dorkbot_extract_dll.py
dyussekeyev/dorkbot-c2-extractor
fad5faa0ff71d4df9fbae95155a046466c294051
[ "MIT" ]
null
null
null
dorkbot_extract_dll.py
dyussekeyev/dorkbot-c2-extractor
fad5faa0ff71d4df9fbae95155a046466c294051
[ "MIT" ]
null
null
null
import pefile import base64 from Crypto.Cipher import ARC4 datas = list() pe = pefile.PE("5C55FC257423ACD1AE6382D88B1EE306.bin") get_offset(pe.DIRECTORY_ENTRY_RESOURCE) count = 0 for x in datas: if not isBase64(x): exit(1) decoded = base64.b64decode(x) size_dll = int.from_bytes(de...
29.509804
88
0.613953
a66302e7cabfe8760a8aa9340aba6ceda0934422
6,884
py
Python
train-xception.py
jGsch/kaggle-dfdc
c074e4fcc2b88e478f306ddfbba7d7ceafcba7d6
[ "MIT" ]
124
2020-04-29T01:56:08.000Z
2022-03-04T12:40:26.000Z
train-xception.py
Yolanda-Wang/Kaggle-DFDC-2nd
72e94d8b2eb94b3aba5ac4de646b39847ac6fb19
[ "MIT" ]
14
2020-05-09T07:12:15.000Z
2022-03-12T00:26:44.000Z
train-xception.py
Yolanda-Wang/Kaggle-DFDC-2nd
72e94d8b2eb94b3aba5ac4de646b39847ac6fb19
[ "MIT" ]
38
2020-04-29T03:35:56.000Z
2022-01-14T15:29:47.000Z
import os import csv import shutil import random from PIL import Image import numpy as np import torch from torch import nn, optim from torch.utils.data import Dataset, DataLoader import xception_conf as config from model_def import xception from augmentation_utils import train_transform, val_transform ...
32.319249
80
0.534863
a66403d16de1416c241fb45625d1702808f5e9a1
381
py
Python
katas/beta/identifying_top_users_and_their_corresponding_purchases.py
the-zebulan/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
40
2016-03-09T12:26:20.000Z
2022-03-23T08:44:51.000Z
katas/beta/identifying_top_users_and_their_corresponding_purchases.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
null
null
null
katas/beta/identifying_top_users_and_their_corresponding_purchases.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
from collections import Counter from itertools import chain
29.307692
79
0.64042
a6645500bd9415fcb00c5c1063997449655e7a5b
464
py
Python
supriya/ugens/LFNoise1.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/LFNoise1.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/LFNoise1.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya import CalculationRate from supriya.synthdefs import UGen
18.56
79
0.68319
a66552cce516414aec7adafc8e30867833d3cf13
859
py
Python
Hackerrank/Max Array Sum/Max Array Sum.py
rahil-1407/Data-Structure-and-Algorithms
ea3eb9849aeb2716ef5812a0b5621a28120b1880
[ "MIT" ]
51
2021-01-14T04:05:55.000Z
2022-01-25T11:25:37.000Z
Hackerrank/Max Array Sum/Max Array Sum.py
rahil-1407/Data-Structure-and-Algorithms
ea3eb9849aeb2716ef5812a0b5621a28120b1880
[ "MIT" ]
638
2020-12-27T18:49:53.000Z
2021-11-21T05:22:52.000Z
Hackerrank/Max Array Sum/Max Array Sum.py
rahil-1407/Data-Structure-and-Algorithms
ea3eb9849aeb2716ef5812a0b5621a28120b1880
[ "MIT" ]
124
2021-01-30T06:40:20.000Z
2021-11-21T15:14:40.000Z
""" Given an array of integers, find the subset of non-adjacent elements with the maximum sum. Calculate the sum of that subset. It is possible that the maximum sum is , the case when all elements are negative. """
40.904762
115
0.649593
a6661363f224a1485632726708cd49bda0d4229c
80
py
Python
landlab/components/lake_fill/__init__.py
saraahsimon/landlab
1cf809b685efbccaaa149b5899a600c3ccedf30f
[ "MIT" ]
null
null
null
landlab/components/lake_fill/__init__.py
saraahsimon/landlab
1cf809b685efbccaaa149b5899a600c3ccedf30f
[ "MIT" ]
null
null
null
landlab/components/lake_fill/__init__.py
saraahsimon/landlab
1cf809b685efbccaaa149b5899a600c3ccedf30f
[ "MIT" ]
null
null
null
from .lake_fill_barnes import LakeMapperBarnes __all__ = ["LakeMapperBarnes"]
16
46
0.8125
a66938ab29c637408c050d9373a90dc5de5acdf6
4,995
py
Python
corehq/apps/hqadmin/management/commands/static_analysis.py
andyasne/commcare-hq
c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/hqadmin/management/commands/static_analysis.py
andyasne/commcare-hq
c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/hqadmin/management/commands/static_analysis.py
andyasne/commcare-hq
c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
import os import re import subprocess from collections import Counter from django.conf import settings from django.core.management.base import BaseCommand import datadog from dimagi.ext.couchdbkit import Document from corehq.feature_previews import all_previews from corehq.toggles import all_toggles
40.282258
112
0.614815
a66e625e6d85f06cff78fbfdfb9830d9ca9c326c
3,056
py
Python
dsample.py
her/dsample
4fdbda0c7f3334266589ade8de4503b656cd2cdd
[ "MIT" ]
3
2018-04-26T22:53:00.000Z
2019-04-04T12:20:43.000Z
dsample.py
her/dsample
4fdbda0c7f3334266589ade8de4503b656cd2cdd
[ "MIT" ]
null
null
null
dsample.py
her/dsample
4fdbda0c7f3334266589ade8de4503b656cd2cdd
[ "MIT" ]
null
null
null
import argparse import cv2 if __name__ == "__main__": parser = argparse.ArgumentParser( description='downsample image using bicubic interpolation', ) parser.add_argument( "filename", help="input filename to downsample" ) parser.add_argument( "-o", "--outpu...
22.977444
77
0.508181
a66eed49a3b39d2e0d734ff021df1302bfabe786
1,598
py
Python
tests/test_times.py
Invarato/sort_in_disk_project
8e725e683999aa6cf9db52711309b6a58099c3e2
[ "MIT" ]
3
2020-11-12T16:59:04.000Z
2021-12-03T18:57:27.000Z
tests/test_times.py
Invarato/sort_in_disk_project
8e725e683999aa6cf9db52711309b6a58099c3e2
[ "MIT" ]
null
null
null
tests/test_times.py
Invarato/sort_in_disk_project
8e725e683999aa6cf9db52711309b6a58099c3e2
[ "MIT" ]
1
2021-04-11T11:21:42.000Z
2021-04-11T11:21:42.000Z
# -*- coding: utf-8 -*- # # @autor: Ramn Invarato Menndez # @version 1.0 from datetime import datetime """ Several tests """ count = 20000000 if __name__ == "__main__": start = datetime.now() print("[if] start: {}".format(start)) val = True for _ in range(1, count): if val: v =...
23.850746
94
0.506258
a66ef729e29a7b137d77c4428bb5f454b35d79aa
330
py
Python
backend/src/controllers/util/time_util.py
tmdt-buw/gideon-ts
b839672fcc19f13562f6da23e6407fff0b18d3ec
[ "MIT" ]
null
null
null
backend/src/controllers/util/time_util.py
tmdt-buw/gideon-ts
b839672fcc19f13562f6da23e6407fff0b18d3ec
[ "MIT" ]
null
null
null
backend/src/controllers/util/time_util.py
tmdt-buw/gideon-ts
b839672fcc19f13562f6da23e6407fff0b18d3ec
[ "MIT" ]
null
null
null
import datetime import datetime as dt import pytz
22
60
0.715152
a66ef816916b38aed54eb96c747c5ba0afcaba49
668
py
Python
django_auto_model/tests/utils/test_get_now.py
dipasqualew/django-auto-model
958063b2df99e95f043b06f6a6df02fe8ccfb5de
[ "MIT" ]
null
null
null
django_auto_model/tests/utils/test_get_now.py
dipasqualew/django-auto-model
958063b2df99e95f043b06f6a6df02fe8ccfb5de
[ "MIT" ]
23
2020-10-29T07:02:00.000Z
2021-08-02T06:03:29.000Z
django_auto_model/tests/utils/test_get_now.py
rolafium/Django-AutoModel
958063b2df99e95f043b06f6a6df02fe8ccfb5de
[ "MIT" ]
null
null
null
""" Tests for snakelize module: django_auto_model.utils """ import datetime from django_auto_model.utils import get_now def test_is_datetime(): """Should be a datetime instance""" now = get_now() assert isinstance(now, datetime.datetime) def test_value_is_close_to_now(): """Should be close enough to t...
23.857143
68
0.703593
a66f14c5e01cc8010c14109afa24170d23c38ccd
2,216
py
Python
setup.py
cid-chan/vsutil
513576abd4bb08605f1f91ad32780ba16c7f3fea
[ "MIT" ]
25
2019-03-05T21:43:41.000Z
2022-03-17T06:18:57.000Z
setup.py
cid-chan/vsutil
513576abd4bb08605f1f91ad32780ba16c7f3fea
[ "MIT" ]
42
2019-03-05T21:49:45.000Z
2022-03-04T17:33:21.000Z
setup.py
cid-chan/vsutil
513576abd4bb08605f1f91ad32780ba16c7f3fea
[ "MIT" ]
18
2019-03-05T20:49:49.000Z
2022-01-12T14:24:50.000Z
from setuptools import setup, find_packages from setuptools.command.test import test from distutils.util import convert_path # We can't import the submodule normally as that would "run" the main module # code while the setup script is meant to *build* the module. # Besides preventing a whole possible mess of issues w...
33.074627
109
0.670126
a66f5311e18930dba9aee6d5a079e0eb27871fa5
482
py
Python
duffel_api/api/booking/seat_maps.py
duffelhq/duffel-api-python
583703f34e345ac8fa185ca26441f9168d1b0dac
[ "MIT" ]
2
2022-02-26T22:14:48.000Z
2022-03-10T10:04:11.000Z
duffel_api/api/booking/seat_maps.py
duffelhq/duffel-api-python
583703f34e345ac8fa185ca26441f9168d1b0dac
[ "MIT" ]
29
2022-01-04T12:40:54.000Z
2022-03-31T23:26:54.000Z
duffel_api/api/booking/seat_maps.py
duffelhq/duffel-api-python
583703f34e345ac8fa185ca26441f9168d1b0dac
[ "MIT" ]
null
null
null
from ...http_client import HttpClient from ...models import SeatMap
28.352941
73
0.626556
a66f853bf9f33f87146ba3858b82466747a4ba7f
133
py
Python
nicos_mlz/refsans/setups/elements/alphai.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/refsans/setups/elements/alphai.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/refsans/setups/elements/alphai.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'Alphai alias device' group = 'lowlevel' devices = dict( alphai = device('nicos.devices.generic.DeviceAlias'), )
16.625
57
0.706767
a66fb86f66ae53aa1b1feda298a87c0ab06d20d0
268
py
Python
src/core/migrations/0055_merge_20190305_1616.py
metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3
c754d3b1b401906a21640b8eacb6b724a448b31c
[ "MIT" ]
null
null
null
src/core/migrations/0055_merge_20190305_1616.py
metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3
c754d3b1b401906a21640b8eacb6b724a448b31c
[ "MIT" ]
null
null
null
src/core/migrations/0055_merge_20190305_1616.py
metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3
c754d3b1b401906a21640b8eacb6b724a448b31c
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2019-03-05 16:16 from django.db import migrations
17.866667
47
0.641791
a671987b4aec698f200fd1e8f711ebabd9e8fdf6
359
py
Python
afwf_fts_anything/__init__.py
MacHu-GWU/afwf_fts_anything-project
7050f12f6df9688fd553a5673ab21e10fa571cf2
[ "MIT" ]
20
2019-01-03T22:31:41.000Z
2021-10-14T11:32:29.000Z
afwf_fts_anything/__init__.py
MacHu-GWU/afwf_fts_anything-project
7050f12f6df9688fd553a5673ab21e10fa571cf2
[ "MIT" ]
2
2019-01-02T21:36:40.000Z
2020-08-23T18:03:54.000Z
afwf_fts_anything/__init__.py
MacHu-GWU/afwf_fts_anything-project
7050f12f6df9688fd553a5673ab21e10fa571cf2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Full text search workflow for Alfred. """ from ._version import __version__ __short_description__ = "Full text search workflow for Alfred." __license__ = "MIT" __author__ = "Sanhe Hu" __author_email__ = "husanhe@gmail.com" __maintainer__ = "Sanhe Hu" __maintainer_email__ = "husanhe@gmail....
22.4375
63
0.743733
a6736259f691ee42e01b77cfe927dab8c82e2223
609
py
Python
users/home_work.py
annadokuchaeva2002/python-home-bot
662acd3e3998d5c58a034004e0eef9e782d57447
[ "MIT" ]
null
null
null
users/home_work.py
annadokuchaeva2002/python-home-bot
662acd3e3998d5c58a034004e0eef9e782d57447
[ "MIT" ]
null
null
null
users/home_work.py
annadokuchaeva2002/python-home-bot
662acd3e3998d5c58a034004e0eef9e782d57447
[ "MIT" ]
null
null
null
from main import dp from aiogram import types from aiogram.dispatcher.filters.builtin import Text
29
107
0.758621
a674f43bddee54cbea1107c11705b1d7ee339b2f
583
py
Python
vcorelib/paths/context.py
vkottler/vcorelib
97c3b92932d5b2f8c6d9cdca55f34bf167980a21
[ "MIT" ]
1
2022-03-31T09:26:04.000Z
2022-03-31T09:26:04.000Z
vcorelib/paths/context.py
vkottler/vcorelib
97c3b92932d5b2f8c6d9cdca55f34bf167980a21
[ "MIT" ]
2
2022-03-31T09:35:06.000Z
2022-03-31T09:38:07.000Z
vcorelib/paths/context.py
vkottler/vcorelib
97c3b92932d5b2f8c6d9cdca55f34bf167980a21
[ "MIT" ]
null
null
null
""" A module for context managers related to file-system paths. """ # built-in from contextlib import contextmanager from os import chdir as _chdir from pathlib import Path as _Path from typing import Iterator as _Iterator # internal from vcorelib.paths import Pathlike as _Pathlike from vcorelib.paths import normaliz...
22.423077
68
0.728988
a675cde92791cd0863858fcb8d5b4afd657a5c32
467
py
Python
tf.py
thuyduongtt/region_based_active_learning
b3653c31a44135b5680949790549799c83a5a18b
[ "MIT" ]
null
null
null
tf.py
thuyduongtt/region_based_active_learning
b3653c31a44135b5680949790549799c83a5a18b
[ "MIT" ]
null
null
null
tf.py
thuyduongtt/region_based_active_learning
b3653c31a44135b5680949790549799c83a5a18b
[ "MIT" ]
null
null
null
if __name__ == '__main__': test_tf() # test_pt()
22.238095
91
0.683084
a6763636b40ab2fbbbb4112dcfc5086b9d872c0c
6,529
py
Python
smartmirror/authorization.py
not4juu/SmartMirror
61618bcfdbcc67d7703bb501a31e9e0d247ced90
[ "MIT" ]
null
null
null
smartmirror/authorization.py
not4juu/SmartMirror
61618bcfdbcc67d7703bb501a31e9e0d247ced90
[ "MIT" ]
6
2021-03-18T21:17:37.000Z
2022-03-11T23:32:24.000Z
smartmirror/authorization.py
not4juu/SmartMirror
61618bcfdbcc67d7703bb501a31e9e0d247ced90
[ "MIT" ]
1
2019-08-25T10:01:52.000Z
2019-08-25T10:01:52.000Z
import cv2 import os import sys import pickle import face_recognition from threading import Thread from smartmirror.Logger import Logger PATH = os.path.dirname(os.path.realpath(__file__)) if sys.platform != 'linux': PATH = PATH.replace("\\", '/') """ Authorization Class - authorization is based on face r...
38.405882
122
0.593506
a676ce23d30440ea1040f54ebcc3301013112767
7,174
py
Python
xlsx2html/core.py
waldobeest/xlsx2html
c3bbeade832e23ebed196ca59745f999931d4176
[ "MIT" ]
null
null
null
xlsx2html/core.py
waldobeest/xlsx2html
c3bbeade832e23ebed196ca59745f999931d4176
[ "MIT" ]
null
null
null
xlsx2html/core.py
waldobeest/xlsx2html
c3bbeade832e23ebed196ca59745f999931d4176
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import openpyxl import six from openpyxl.styles.colors import COLOR_INDEX, aRGB_REGEX from xlsx2html.format import format_cell DEFAULT_BORDER_STYLE = { 'style': 'solid', 'width': '1px', } BORDER_STYLES = { 'dashDot': None, 'dashDotDot':...
27.071698
107
0.550042
a677a9d8c7dd81264820a936343f06e0dd8ec3ac
359
py
Python
bin/python/filterfasta.py
reid-wagner/proteomics-pipelines
2214c2ad4c14fabcb50a3c0800e9d383ce73df3d
[ "MIT" ]
2
2018-09-06T14:05:59.000Z
2022-02-18T10:09:06.000Z
bin/python/filterfasta.py
reid-wagner/proteomics-pipelines
2214c2ad4c14fabcb50a3c0800e9d383ce73df3d
[ "MIT" ]
7
2018-09-30T00:49:04.000Z
2022-01-27T07:55:26.000Z
bin/python/filterfasta.py
reid-wagner/proteomics-pipelines
2214c2ad4c14fabcb50a3c0800e9d383ce73df3d
[ "MIT" ]
3
2019-10-29T12:20:45.000Z
2021-10-06T14:38:43.000Z
#!/usr/bin/env python import Bio from Bio import SeqIO import sys filt = [] seqs = list(SeqIO.parse(sys.argv[1],'fasta')) minlen = int(sys.argv[2]) maxlen = int(sys.argv[3]) output = sys.argv[4] for rec in seqs: s = str(rec.seq) l = len(s) if ((l >= minlen) and (l <= maxlen)): filt.append(rec...
14.36
45
0.607242
a678784dd44b43ad9384b6e430dcd31a811cb096
4,898
py
Python
src/krylov/lsqr.py
nschloe/krylov
58813233ff732111aa56f7b1d71908fda78080be
[ "MIT" ]
36
2020-06-17T15:51:16.000Z
2021-12-30T04:33:11.000Z
src/krylov/lsqr.py
nschloe/krylov
58813233ff732111aa56f7b1d71908fda78080be
[ "MIT" ]
26
2020-08-27T17:38:15.000Z
2021-11-11T20:00:07.000Z
src/krylov/lsqr.py
nschloe/krylov
58813233ff732111aa56f7b1d71908fda78080be
[ "MIT" ]
5
2021-05-20T19:47:44.000Z
2022-01-03T00:20:33.000Z
""" Christopher C. Paige, Michael A. Saunders, LSQR: An Algorithm for Sparse Linear Equations and Sparse Least Squares, ACM Transactions on Mathematical Software, Volume 8, Issue 1, March 1982, pp 43-71, <https://doi.org/10.1145/355984.355989>. <https://web.stanford.edu/group/SOL/software/lsqr/> <https://petsc.org/rel...
24.737374
88
0.521233
a67b799a74d0b1d933f25d6547dc5d5f94732f54
3,746
py
Python
2020/Day 24/main.py
edgorman/advent-of-code
374fee72dd853c60851231a672498ab2732889cf
[ "MIT" ]
null
null
null
2020/Day 24/main.py
edgorman/advent-of-code
374fee72dd853c60851231a672498ab2732889cf
[ "MIT" ]
null
null
null
2020/Day 24/main.py
edgorman/advent-of-code
374fee72dd853c60851231a672498ab2732889cf
[ "MIT" ]
null
null
null
import os import copy if __name__ == "__main__": # Get input from txt file with open(os.getcwd() + '\\2020\\Day 24\\input.txt', 'r') as file_obj: file_input = file_obj.readlines() # Clean input entries = [] for entry in file_input: index = 0 directions = [] whil...
31.478992
74
0.485585
a67bd7080832832bfead9a2d81306ef2cac33ab1
2,760
py
Python
zabbix_alarm_script/all.py
ansemz/zabbix-wechat
870f3676e9ce569eae01656653669b244ef2b180
[ "Apache-2.0" ]
81
2017-03-19T13:54:44.000Z
2022-01-13T08:36:44.000Z
zabbix_alarm_script/all.py
tony163/zabbixwechat
d0d187e490ebb2b563a417c450db4fe21e7817ea
[ "Apache-2.0" ]
2
2017-04-12T09:33:07.000Z
2019-04-24T11:20:54.000Z
zabbix_alarm_script/all.py
tony163/zabbixwechat
d0d187e490ebb2b563a417c450db4fe21e7817ea
[ "Apache-2.0" ]
42
2017-03-19T14:00:39.000Z
2021-12-26T04:52:38.000Z
#!/usr/bin/python3.4 # coding: utf-8 import urllib.request import cgi import cgitb import sys import json import time import os import shutil import logging import os import codecs import re import logging import json import base64 import http.cookiejar import urllib.request from urllib import request, parse from Cryp...
31.363636
88
0.697464
a67d10f27144999c6093454cdec1812be6142bc6
690
py
Python
greenrocket/aio.py
kr41/GreenRocket
4ae2658defc56cd567503045077b414d09ec2d6b
[ "BSD-2-Clause" ]
null
null
null
greenrocket/aio.py
kr41/GreenRocket
4ae2658defc56cd567503045077b414d09ec2d6b
[ "BSD-2-Clause" ]
null
null
null
greenrocket/aio.py
kr41/GreenRocket
4ae2658defc56cd567503045077b414d09ec2d6b
[ "BSD-2-Clause" ]
null
null
null
import asyncio
34.5
70
0.511594
a67f5b2b69195447312a516daafb3c0a5077dd7e
1,983
py
Python
src/opera/executor/ansible.py
anzoman/xopera-opera
0c9712dc6fc6bb2935e6c3e5a75364006b700390
[ "Apache-2.0" ]
null
null
null
src/opera/executor/ansible.py
anzoman/xopera-opera
0c9712dc6fc6bb2935e6c3e5a75364006b700390
[ "Apache-2.0" ]
null
null
null
src/opera/executor/ansible.py
anzoman/xopera-opera
0c9712dc6fc6bb2935e6c3e5a75364006b700390
[ "Apache-2.0" ]
null
null
null
import json import os import sys import tempfile import yaml from . import utils
29.597015
78
0.550177
a680ef9a14d7459d55ed4ce401528c8fd443a196
1,261
py
Python
e2e/test_ghprb_log_configure_page.py
svic/jenkins-configuration
87eb90ba4adcf25f0b779f1277bbeff0e6b3525b
[ "Apache-2.0" ]
null
null
null
e2e/test_ghprb_log_configure_page.py
svic/jenkins-configuration
87eb90ba4adcf25f0b779f1277bbeff0e6b3525b
[ "Apache-2.0" ]
null
null
null
e2e/test_ghprb_log_configure_page.py
svic/jenkins-configuration
87eb90ba4adcf25f0b779f1277bbeff0e6b3525b
[ "Apache-2.0" ]
null
null
null
import unittest import yaml import os from bok_choy.web_app_test import WebAppTest from pages.ghprb_log_configure_page import GhprbLogConfigurePage
38.212121
106
0.681205
a6815c7893a0d94c3e1ad438c9c59e228b6c752c
522
py
Python
InquirerPy/prompts/__init__.py
jfilipedias/InquirerPy
9f67125f808cbe6a73ab3cb652f35faba3f3443e
[ "MIT" ]
null
null
null
InquirerPy/prompts/__init__.py
jfilipedias/InquirerPy
9f67125f808cbe6a73ab3cb652f35faba3f3443e
[ "MIT" ]
null
null
null
InquirerPy/prompts/__init__.py
jfilipedias/InquirerPy
9f67125f808cbe6a73ab3cb652f35faba3f3443e
[ "MIT" ]
null
null
null
"""Module contains import of all prompts classes.""" from InquirerPy.prompts.checkbox import CheckboxPrompt from InquirerPy.prompts.confirm import ConfirmPrompt from InquirerPy.prompts.expand import ExpandPrompt from InquirerPy.prompts.filepath import FilePathPrompt from InquirerPy.prompts.fuzzy.fuzzy import FuzzyPromp...
47.454545
54
0.867816
a68185697f357240b61f536aa08af6593cfde478
2,357
py
Python
MMMaker/core/highlight_extractor.py
C4Ution/MMMaker
7e64b50abb2257c02618d5a5b3323a1e2993fe8a
[ "MIT" ]
9
2020-05-23T04:50:18.000Z
2020-12-19T05:16:39.000Z
MMMaker/core/highlight_extractor.py
C4Ution/MMMaker
7e64b50abb2257c02618d5a5b3323a1e2993fe8a
[ "MIT" ]
13
2020-05-23T12:01:08.000Z
2022-02-10T10:31:18.000Z
MMMaker/core/highlight_extractor.py
C4Ution/MMMaker
7e64b50abb2257c02618d5a5b3323a1e2993fe8a
[ "MIT" ]
5
2020-07-02T11:44:56.000Z
2021-07-10T03:19:17.000Z
import numpy as np import scipy.io.wavfile as wave from moviepy.editor import VideoFileClip from scipy.fftpack import fft from misc import get_random_name HIGHLIGHT_LENGTH = 0.65 def extract_highlights(file_paths): """ :param file_paths: :return: """ max_highlights = [] min_highligh...
35.712121
130
0.686042
a682e0a43b3f440fa929e4b88ed44df23b27afe0
1,755
py
Python
fafdata/fetch.py
yaniv-aknin/fafscrape
bd1beb61241ef28edc57c9b656dd039f58c4dcf1
[ "MIT" ]
null
null
null
fafdata/fetch.py
yaniv-aknin/fafscrape
bd1beb61241ef28edc57c9b656dd039f58c4dcf1
[ "MIT" ]
23
2022-03-12T11:51:46.000Z
2022-03-19T19:32:52.000Z
fafdata/fetch.py
yaniv-aknin/fafscrape
bd1beb61241ef28edc57c9b656dd039f58c4dcf1
[ "MIT" ]
null
null
null
import json import datetime import requests import urlobject from .utils import format_faf_date API_BASE = urlobject.URLObject('https://api.faforever.com') ENTITY_TYPE_TO_DEFAULT_DATE_FIELD = { 'game': 'startTime', 'player': 'createTime', 'map': 'createTime', 'mapVersion': 'createTime', }
35.1
138
0.698575
a68431761d9755f8a2a08a35a6e7019caa2ea98e
2,395
py
Python
main.py
sschr15/tldr-discord
4119a643b9b5f5fa48bf01b6032dad4072c6faaa
[ "MIT" ]
2
2020-10-21T17:09:23.000Z
2021-05-02T13:42:20.000Z
main.py
sschr15/tldr-discord
4119a643b9b5f5fa48bf01b6032dad4072c6faaa
[ "MIT" ]
null
null
null
main.py
sschr15/tldr-discord
4119a643b9b5f5fa48bf01b6032dad4072c6faaa
[ "MIT" ]
1
2020-10-21T17:09:28.000Z
2020-10-21T17:09:28.000Z
import discord import os import sys import datetime import glob import tldr # noinspection SpellCheckingInspection token: str = "revoked, accidentally made public" # If you want a custom language, input the language as shown in the tldr pages here. language = "" # noinspection PyMethodMayBeStatic if __name__ == ...
34.710145
149
0.534864
a6844d436f3ac8eae3409198b262402806d0a4c7
1,022
py
Python
class3/exercises/exercise3/exercise3.py
EndlessDynamics/Fork_nornir_course
04bf7e3819659f481a4e04059152877b795177b2
[ "Apache-2.0" ]
null
null
null
class3/exercises/exercise3/exercise3.py
EndlessDynamics/Fork_nornir_course
04bf7e3819659f481a4e04059152877b795177b2
[ "Apache-2.0" ]
null
null
null
class3/exercises/exercise3/exercise3.py
EndlessDynamics/Fork_nornir_course
04bf7e3819659f481a4e04059152877b795177b2
[ "Apache-2.0" ]
null
null
null
from nornir import InitNornir from nornir.core.filter import F if __name__ == "__main__": main()
25.55
76
0.620352
a6847afb9f867644d48e0218625f0dd5bd6e0330
13,700
py
Python
deprecated/version1/utility.py
kpimparkar/cloudmesh-cloud
cb5ec6c2c8e5eb8c41a697cb67e72183808adb64
[ "Apache-2.0" ]
null
null
null
deprecated/version1/utility.py
kpimparkar/cloudmesh-cloud
cb5ec6c2c8e5eb8c41a697cb67e72183808adb64
[ "Apache-2.0" ]
1
2020-10-21T18:15:46.000Z
2020-10-21T18:15:46.000Z
deprecated/version1/utility.py
kpimparkar/cloudmesh-cloud
cb5ec6c2c8e5eb8c41a697cb67e72183808adb64
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Sep 23 19:15:04 2018 @author: yuluo """ import subprocess
45.51495
118
0.564161
a68504f4c7d13cc8c0e0489a51095d8397a4bb6d
1,370
gyp
Python
binding.gyp
Ciccio99/electron-overlay-window
f25e29ec1ffe8f4ccb942051a986d217fb36a2b8
[ "MIT" ]
null
null
null
binding.gyp
Ciccio99/electron-overlay-window
f25e29ec1ffe8f4ccb942051a986d217fb36a2b8
[ "MIT" ]
null
null
null
binding.gyp
Ciccio99/electron-overlay-window
f25e29ec1ffe8f4ccb942051a986d217fb36a2b8
[ "MIT" ]
null
null
null
{ 'targets': [ { 'target_name': 'overlay_window', 'sources': [ 'src/lib/addon.c', 'src/lib/napi_helpers.c' ], 'include_dirs': [ 'src/lib' ], 'conditions': [ ['OS=="win"', { 'defines': [ 'WIN32_LEAN_AND_MEAN' ], ...
22.459016
80
0.350365
a685b99254f1096694c40e8467f047e4febef123
5,714
py
Python
aserializer/fields/serializer_fields.py
orderbird/aserializer
3aeaa073f2dac7830458a1f45ffa9af6540bd315
[ "MIT" ]
null
null
null
aserializer/fields/serializer_fields.py
orderbird/aserializer
3aeaa073f2dac7830458a1f45ffa9af6540bd315
[ "MIT" ]
null
null
null
aserializer/fields/serializer_fields.py
orderbird/aserializer
3aeaa073f2dac7830458a1f45ffa9af6540bd315
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from collections import Iterable from aserializer.utils import py2to3, registry from aserializer.fields.fields import BaseSerializerField, SerializerFieldValueError
36.628205
129
0.593455
a6891d269483be6ec34924e0b2a724eb2aa0420b
29,297
py
Python
autotest/ogr/ogr_gpkg.py
NathanW2/gdal
a5fc0fa500765f484b497d23ec5459176837e422
[ "MIT" ]
2
2015-07-24T16:16:34.000Z
2015-07-24T16:16:37.000Z
autotest/ogr/ogr_gpkg.py
samalone/gdal-ios
beed159503ce550c4e09edb25c168c8344e8998c
[ "MIT" ]
null
null
null
autotest/ogr/ogr_gpkg.py
samalone/gdal-ios
beed159503ce550c4e09edb25c168c8344e8998c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test GeoPackage driver functionality. # Author: Paul Ramsey <pramsey@boundlessgeom.com> # ################################################...
34.225467
176
0.617708
a689a5d6a9c1f320fa1c6a898b3f880278371c7b
769
py
Python
directory/models/directory_access_group.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
13
2015-11-29T12:19:12.000Z
2021-02-21T15:42:11.000Z
directory/models/directory_access_group.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
23
2015-04-29T19:43:34.000Z
2021-02-10T05:50:17.000Z
directory/models/directory_access_group.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
11
2015-09-20T18:59:00.000Z
2020-02-07T08:47:34.000Z
from django.db import models from django.utils.translation import ugettext_lazy as _
34.954545
83
0.73212
a68a59e9017053930697ebb496bf811bd8da3fd6
3,219
py
Python
@utils/parser/templating/technology.py
RogulinSV/stellaris-aoe
120d9114059b5e744c4025966e1f4b50e1d76200
[ "Unlicense" ]
null
null
null
@utils/parser/templating/technology.py
RogulinSV/stellaris-aoe
120d9114059b5e744c4025966e1f4b50e1d76200
[ "Unlicense" ]
null
null
null
@utils/parser/templating/technology.py
RogulinSV/stellaris-aoe
120d9114059b5e744c4025966e1f4b50e1d76200
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging from string import Template from domains import Module, Technology
35.373626
121
0.622864
a68c2fae55a4172bd6d6344ce187492035975eee
1,263
py
Python
app/analyzers/indicators/sar.py
r15ch13/crypto-signal
d423681223124278a3942cf2e930aafe5b84a855
[ "MIT" ]
4
2021-03-03T16:39:59.000Z
2021-08-28T21:05:34.000Z
app/analyzers/indicators/sar.py
r15ch13/crypto-signal
d423681223124278a3942cf2e930aafe5b84a855
[ "MIT" ]
1
2021-05-10T16:11:48.000Z
2021-05-10T16:11:48.000Z
app/analyzers/indicators/sar.py
r15ch13/crypto-signal
d423681223124278a3942cf2e930aafe5b84a855
[ "MIT" ]
6
2019-03-07T10:58:45.000Z
2021-05-08T22:18:01.000Z
""" MACD Indicator """ import math import pandas from talib import abstract from analyzers.utils import IndicatorUtils
33.236842
97
0.648456
a68cf49a12bc62a074851902de8ab970dee1d0f4
376
py
Python
tests/protocol/primary/a.py
gufolabs/gufo_loader
ffb4e17b2e8f36d938a145d50b7bd27d976f9fce
[ "BSD-3-Clause" ]
4
2022-03-04T07:49:18.000Z
2022-03-08T07:57:05.000Z
tests/protocol/primary/a.py
gufolabs/gufo_loader
ffb4e17b2e8f36d938a145d50b7bd27d976f9fce
[ "BSD-3-Clause" ]
null
null
null
tests/protocol/primary/a.py
gufolabs/gufo_loader
ffb4e17b2e8f36d938a145d50b7bd27d976f9fce
[ "BSD-3-Clause" ]
1
2022-03-08T07:57:07.000Z
2022-03-08T07:57:07.000Z
# --------------------------------------------------------------------- # Gufo Labs Loader: # a plugin # --------------------------------------------------------------------- # Copyright (C) 2022, Gufo Labs # ---------------------------------------------------------------------
26.857143
71
0.260638
a68d575600de2c24556e7348001ad2a913abac90
1,178
py
Python
tools/csv2kml.py
platypii/BASElineFlightComputer
7881febb680b32c88c7331563e6b4ed15db9a433
[ "MIT" ]
22
2016-06-28T15:18:25.000Z
2022-03-20T01:44:13.000Z
tools/csv2kml.py
Probot9/BASElineFlightComputer
cd449d32887e82d8a187586894cbd1a44c5b668a
[ "MIT" ]
5
2018-04-30T00:54:03.000Z
2020-01-30T18:11:45.000Z
tools/csv2kml.py
Probot9/BASElineFlightComputer
cd449d32887e82d8a187586894cbd1a44c5b668a
[ "MIT" ]
5
2015-05-27T03:26:49.000Z
2021-12-11T05:49:33.000Z
#!/usr/bin/python import sys if len(sys.argv) != 2: print 'Usage: csv2kml input.csv' exit() kml_header = """<?xml version=\"1.0\" encoding=\"UTF-8\"?> <kml xmlns=\"http://www.opengis.net/kml/2.2\" xmlns:gx=\"http://www.google.com/kml/ext/2.2\" xmlns:kml=\"http://www.opengis.net/kml/2.2\" xmlns:atom=\"http://www.w3...
21.418182
181
0.565365
a6932bb49ce1656029b076c4c5e5b86a4e1586b2
1,741
py
Python
scripts/artifacts/installedappsGass.py
Krypterry/ALEAPP
970b2e62742603336fe791b7c02e12e1f1e77375
[ "MIT" ]
187
2020-02-22T23:35:32.000Z
2022-03-31T13:46:24.000Z
scripts/artifacts/installedappsGass.py
Krypterry/ALEAPP
970b2e62742603336fe791b7c02e12e1f1e77375
[ "MIT" ]
65
2020-02-25T18:22:47.000Z
2022-03-27T21:41:21.000Z
scripts/artifacts/installedappsGass.py
Krypterry/ALEAPP
970b2e62742603336fe791b7c02e12e1f1e77375
[ "MIT" ]
47
2020-02-24T22:33:35.000Z
2022-03-11T05:19:42.000Z
import sqlite3 from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, tsv, open_sqlite_db_readonly
37.847826
136
0.546238
a6932f9707d279d372f18d0e6ea0ae4bd2d7bb9b
3,494
py
Python
6_google_trace/VMFuzzyPrediction/estimators/GAEstimator.py
nguyenthieu95/machine_learning
40595a003815445a7a9fef7e8925f71d19f8fa30
[ "MIT" ]
1
2017-12-30T20:10:07.000Z
2017-12-30T20:10:07.000Z
6_google_trace/VMFuzzyPrediction/estimators/GAEstimator.py
ThieuNv/machine_learning
40595a003815445a7a9fef7e8925f71d19f8fa30
[ "MIT" ]
null
null
null
6_google_trace/VMFuzzyPrediction/estimators/GAEstimator.py
ThieuNv/machine_learning
40595a003815445a7a9fef7e8925f71d19f8fa30
[ "MIT" ]
1
2019-12-23T15:30:16.000Z
2019-12-23T15:30:16.000Z
# from lasagne.nonlinearities import sigmoid from pyevolve import Crossovers from pyevolve import G1DList from pyevolve import GSimpleGA from pyevolve import Initializators, Mutators from pyevolve import Selectors from sklearn.base import BaseEstimator from sklearn.metrics import mean_squared_error from FeedFlow import...
42.609756
101
0.670864
a69449e89ea900074212b71558e97b166df355bd
1,388
py
Python
skassist-docs/python/doc_definitions.py
radmerti/scikit-assist
6ecd58608632c2ef8b52f6f71fd3695db522e22e
[ "BSD-2-Clause" ]
null
null
null
skassist-docs/python/doc_definitions.py
radmerti/scikit-assist
6ecd58608632c2ef8b52f6f71fd3695db522e22e
[ "BSD-2-Clause" ]
null
null
null
skassist-docs/python/doc_definitions.py
radmerti/scikit-assist
6ecd58608632c2ef8b52f6f71fd3695db522e22e
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ______________________________________________________________________________ def boolean_func(experiment): """Function that returns True when an experiment matches and False otherwise. Args: experiment (:class:`~skassist.Experiment`): Experiment that is to be tested. ...
42.060606
84
0.701009
a69483b15fce7657ead4227c986e5b9e8717d867
3,327
py
Python
CyTrack/sendData.py
M2I-HABET/ahac2020workshop
7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e
[ "MIT" ]
null
null
null
CyTrack/sendData.py
M2I-HABET/ahac2020workshop
7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e
[ "MIT" ]
null
null
null
CyTrack/sendData.py
M2I-HABET/ahac2020workshop
7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e
[ "MIT" ]
null
null
null
import rot2proG import serial import math import time import requests from queue import Queue from threading import Thread if __name__ == "__main__": MainLoop()
33.606061
146
0.471596
a69566d00c0403a5c7929fe88c805f00d3a9a9e2
587
py
Python
examples/rf_tmd_example.py
eltonfss/TMDLibrary
2eaca21d61ae4d012435c2dc8b65be0b62a2afd3
[ "MIT" ]
null
null
null
examples/rf_tmd_example.py
eltonfss/TMDLibrary
2eaca21d61ae4d012435c2dc8b65be0b62a2afd3
[ "MIT" ]
null
null
null
examples/rf_tmd_example.py
eltonfss/TMDLibrary
2eaca21d61ae4d012435c2dc8b65be0b62a2afd3
[ "MIT" ]
null
null
null
from examples.util import get_tmd_dataset from detectors.rf_tmd import RandomForestTMD from sklearn.metrics import accuracy_score if __name__ == '__main__': # load dataset df = get_tmd_dataset() travel_mode_column = 'target' # train model rf_tmd = RandomForestTMD() rf_tmd.fit( data_fr...
26.681818
78
0.729131
a695aa6f1ab93783e6c03d418b1565d4a3c0d64d
2,696
py
Python
cli.py
hiway/adventofcode
c4b3e94ad2bc967bc684a10ddc90541d6e1657fc
[ "MIT" ]
null
null
null
cli.py
hiway/adventofcode
c4b3e94ad2bc967bc684a10ddc90541d6e1657fc
[ "MIT" ]
null
null
null
cli.py
hiway/adventofcode
c4b3e94ad2bc967bc684a10ddc90541d6e1657fc
[ "MIT" ]
null
null
null
import click import collections
23.241379
91
0.709941
a696f0c13d70451610aab5bd60cb7ae4a08f0d3c
671
py
Python
tflowModel/pb2uff.py
moennen/sceneIllEst
c02358e43016c3b44059554c4e202e922656be89
[ "Apache-2.0" ]
3
2019-03-04T09:52:29.000Z
2019-06-17T07:02:49.000Z
tflowModel/pb2uff.py
moennen/sceneIllEst
c02358e43016c3b44059554c4e202e922656be89
[ "Apache-2.0" ]
null
null
null
tflowModel/pb2uff.py
moennen/sceneIllEst
c02358e43016c3b44059554c4e202e922656be89
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """ Tensorflow Frozen PB model to UFF """ import argparse import tensorflow as tf import uff if __name__ == "__main__": #------------------------------------------------------------------------------------------------ parser = argparse.ArgumentParser() parser.add_argument("inModelPath")...
29.173913
101
0.61997
a69723490e88c379953ed361d981759344135792
4,219
py
Python
jigu/core/proposal/__init__.py
bongtrop/jigu
448bce8ce693f3f7c530bea0f2f268e22100937a
[ "MIT" ]
14
2020-03-03T06:46:39.000Z
2021-05-01T15:29:35.000Z
jigu/core/proposal/__init__.py
bongtrop/jigu
448bce8ce693f3f7c530bea0f2f268e22100937a
[ "MIT" ]
9
2020-03-09T06:36:30.000Z
2021-02-15T14:40:48.000Z
jigu/core/proposal/__init__.py
bongtrop/jigu
448bce8ce693f3f7c530bea0f2f268e22100937a
[ "MIT" ]
5
2020-05-30T22:38:34.000Z
2021-02-11T00:56:20.000Z
from __future__ import annotations import abc from dataclasses import dataclass from typing import Any, Dict, Type from jigu.core import Coin, Coins, Timestamp from jigu.core.denoms import uLuna from jigu.util.serdes import JiguBox, JsonDeserializable, JsonSerializable from jigu.util.validation import Schemas as S _...
30.79562
85
0.670775
a6975cc67cf3d1ce0bf1918a4452973ed9a1cb9b
952
py
Python
interview/amazon/utilization-checks.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
10
2019-09-15T00:23:57.000Z
2022-01-05T12:53:42.000Z
interview/amazon/utilization-checks.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
3
2021-06-30T00:39:26.000Z
2021-08-01T07:13:59.000Z
interview/amazon/utilization-checks.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
6
2020-02-08T02:55:22.000Z
2022-01-02T22:48:18.000Z
# Utilization Checks # https://aonecode.com/amazon-online-assessment-utilization-checks import math uc = UtilizationChecks() uc.solve(2, [25, 23, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 76, 80]) uc.solve(3, [5, 10, 80]) uc.solve(5, [30, 5, 4, 8, 19, 89])
23.219512
66
0.456933
a6983bd2dae45fdbaac009e69a080431f0e315a5
522
py
Python
code/bot/mapping-bringup/launch/slam_launch.py
jacobwaller/beer-bot
60d89bee2029d87a870940081bd6ab93d05c4eca
[ "MIT" ]
null
null
null
code/bot/mapping-bringup/launch/slam_launch.py
jacobwaller/beer-bot
60d89bee2029d87a870940081bd6ab93d05c4eca
[ "MIT" ]
null
null
null
code/bot/mapping-bringup/launch/slam_launch.py
jacobwaller/beer-bot
60d89bee2029d87a870940081bd6ab93d05c4eca
[ "MIT" ]
null
null
null
from launch import LaunchDescription import launch_ros.actions from ament_index_python.packages import get_package_share_directory
30.705882
95
0.683908
a6987b7f5d13e03773ebbfeb594e4576981e0f1d
72
py
Python
Python/Matts_Lessons/comments.py
Josh-Luedke/Vision-Notes
544e9ef53dbf34e19af5144012b90bfa19012c16
[ "MIT" ]
null
null
null
Python/Matts_Lessons/comments.py
Josh-Luedke/Vision-Notes
544e9ef53dbf34e19af5144012b90bfa19012c16
[ "MIT" ]
null
null
null
Python/Matts_Lessons/comments.py
Josh-Luedke/Vision-Notes
544e9ef53dbf34e19af5144012b90bfa19012c16
[ "MIT" ]
null
null
null
# Here is something that I am typing # print("I am printing something")
36
37
0.736111
a698ed363c72fb8db096b455d881f891dde49eb2
6,282
py
Python
src/src/graph_environments.py
aka-cs/ia-sim-cmp
fa26f3d961a992698ca08f4213d6eae39f3ec039
[ "MIT" ]
null
null
null
src/src/graph_environments.py
aka-cs/ia-sim-cmp
fa26f3d961a992698ca08f4213d6eae39f3ec039
[ "MIT" ]
null
null
null
src/src/graph_environments.py
aka-cs/ia-sim-cmp
fa26f3d961a992698ca08f4213d6eae39f3ec039
[ "MIT" ]
null
null
null
from __future__ import annotations from .base_classes import Event, SetEvent, DeleteEvent, GenerateEvent, MapObject, Agent, Position, Generator, \ Environment
40.269231
115
0.639128
a69907bb61f411a2c1211e81e8529c57659a934d
3,003
py
Python
jsk_arc2017_common/node_scripts/candidates_publisher.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
null
null
null
jsk_arc2017_common/node_scripts/candidates_publisher.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
2
2019-04-11T05:36:23.000Z
2019-08-19T12:58:10.000Z
jsk_arc2017_common/node_scripts/candidates_publisher.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import dynamic_reconfigure.server from jsk_topic_tools import ConnectionBasedTransport import json import os.path as osp import rospy from std_msgs.msg import String from jsk_arc2017_common.cfg import CandidatesPublisherConfig from jsk_recognition_msgs.msg import Label from jsk_recognition_msgs....
34.918605
74
0.615718
a699cfaf6878aec2d41bc0a3750f8c53d818736b
638
py
Python
award/migrations/0002_auto_20190701_0754.py
maurinesinami/awards
0f8e390a41a0c462cdb2104797daa4b59c986656
[ "MIT" ]
null
null
null
award/migrations/0002_auto_20190701_0754.py
maurinesinami/awards
0f8e390a41a0c462cdb2104797daa4b59c986656
[ "MIT" ]
null
null
null
award/migrations/0002_auto_20190701_0754.py
maurinesinami/awards
0f8e390a41a0c462cdb2104797daa4b59c986656
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-07-01 04:54 from __future__ import unicode_literals from django.db import migrations, models
23.62963
61
0.587774
a69c3846d34f45eb89021386411cd01ce1729087
1,480
py
Python
tic_tac_toe_main.py
ilyakz/alpha-game2
fe492a59cd99b99b74979f81d407156dc7d0a08d
[ "MIT" ]
null
null
null
tic_tac_toe_main.py
ilyakz/alpha-game2
fe492a59cd99b99b74979f81d407156dc7d0a08d
[ "MIT" ]
null
null
null
tic_tac_toe_main.py
ilyakz/alpha-game2
fe492a59cd99b99b74979f81d407156dc7d0a08d
[ "MIT" ]
null
null
null
from framework.Coach import Coach from tic_tac_toe.TicTacToeGame import TicTacToeGame #from tic_tac_toe.tensorflow.NNet import NNetWrapper as nn from tic_tac_toe.keras.NNet import NNetWrapper as nn #from cube_tic_tac_toe.CubeTicTacToeGame import CubeTicTacToeGame #from cube_tic_tac_toe.tensorflow.NNet import NNetWrappe...
31.489362
80
0.7
a69c6da5a24875fb6294bf1da51edf46e3db4865
475
py
Python
hw/hw09/tests/q1_3.py
ds-modules/Colab-demo
cccaff13633f8a5ec697cd4aeca9087f2feec2e4
[ "BSD-3-Clause" ]
null
null
null
hw/hw09/tests/q1_3.py
ds-modules/Colab-demo
cccaff13633f8a5ec697cd4aeca9087f2feec2e4
[ "BSD-3-Clause" ]
null
null
null
hw/hw09/tests/q1_3.py
ds-modules/Colab-demo
cccaff13633f8a5ec697cd4aeca9087f2feec2e4
[ "BSD-3-Clause" ]
null
null
null
test = { 'name': 'q1_3', 'points': 1, 'suites': [ { 'cases': [ {'code': '>>> type(max_estimate) in set([int, np.int32, np.int64])\nTrue', 'hidden': False, 'locked': False}, {'code': '>>> max_estimate in observations.column(0)\nTrue', 'hidden': False, 'locked': False}],...
52.777778
144
0.414737
a69c988cc5ea3fab5e018e4dee803ea9a79a1f3a
938
py
Python
backend/gsr_booking/management/commands/load_gsrs.py
pennlabs/penn-mobile
fb3b514a55afbf6f29dd8bd589b4e76bf52e3e90
[ "MIT" ]
2
2021-11-23T18:06:40.000Z
2022-01-05T19:13:33.000Z
backend/gsr_booking/management/commands/load_gsrs.py
pennlabs/penn-mobile
fb3b514a55afbf6f29dd8bd589b4e76bf52e3e90
[ "MIT" ]
30
2021-10-17T23:29:44.000Z
2022-03-31T02:03:13.000Z
backend/gsr_booking/management/commands/load_gsrs.py
pennlabs/penn-mobile
fb3b514a55afbf6f29dd8bd589b4e76bf52e3e90
[ "MIT" ]
null
null
null
import csv from django.core.management.base import BaseCommand from gsr_booking.models import GSR
31.266667
95
0.559701
a69cf74b6c616c2a2b00c96da7d545e93b1d79f2
3,143
py
Python
src/types_constraintes.py
julien-antigny/JConfig
ba344a3ecd5b104fb361733cb789aa6b03c41c28
[ "Apache-2.0" ]
null
null
null
src/types_constraintes.py
julien-antigny/JConfig
ba344a3ecd5b104fb361733cb789aa6b03c41c28
[ "Apache-2.0" ]
null
null
null
src/types_constraintes.py
julien-antigny/JConfig
ba344a3ecd5b104fb361733cb789aa6b03c41c28
[ "Apache-2.0" ]
null
null
null
TYPES = {"int","float","str","bool","list"} MATCH_TYPES = {"int": int, "float": float, "str": str, "bool": bool, "list": list} CONSTRAINTS = { "is_same_type": lambda x, y: type(x) == type(y), "int" :{ "min_inc": lambda integer, min: integer >= min, "min_exc": lambda integer, ...
40.818182
96
0.560929
a69fa6818360c418e25ad57fb09af90cea7a16ff
3,655
py
Python
office365/sharepoint/changes/change_query.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/changes/change_query.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/changes/change_query.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
from office365.runtime.client_value import ClientValue
55.378788
120
0.691108
a6a06d990fb107f6d173990c09e667ce4615e46e
283
py
Python
backend0bit/serializers.py
piotrb5e3/0bit-backend
1df105ab57d0ddde5868ae4b03b359e0c3f00b13
[ "Apache-2.0" ]
null
null
null
backend0bit/serializers.py
piotrb5e3/0bit-backend
1df105ab57d0ddde5868ae4b03b359e0c3f00b13
[ "Apache-2.0" ]
1
2020-06-05T19:21:04.000Z
2020-06-05T19:21:04.000Z
backend0bit/serializers.py
piotrb5e3/0bit-backend
1df105ab57d0ddde5868ae4b03b359e0c3f00b13
[ "Apache-2.0" ]
null
null
null
from rest_framework import serializers from backend0bit.models import StaticPage
25.727273
60
0.696113
a6a07499f9e41376f3c3ce20f6b665363c5200f6
1,529
py
Python
visual_diarization_svm/clear_opt_flow_features_train.py
cvossos2046/visual_speaker_diarization_svm_project
bdc57d893ad9c04145568310c068f9c3e2305cf8
[ "MIT" ]
null
null
null
visual_diarization_svm/clear_opt_flow_features_train.py
cvossos2046/visual_speaker_diarization_svm_project
bdc57d893ad9c04145568310c068f9c3e2305cf8
[ "MIT" ]
null
null
null
visual_diarization_svm/clear_opt_flow_features_train.py
cvossos2046/visual_speaker_diarization_svm_project
bdc57d893ad9c04145568310c068f9c3e2305cf8
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
39.205128
207
0.63244
a6a08446e9c3af18bd3e2b4bc0b3c57b0b814990
2,906
py
Python
src/executor/run_mol.py
ferchault/clockwork
bfc852b34095401adeb4e2b4fcaa4320f60960c7
[ "MIT" ]
null
null
null
src/executor/run_mol.py
ferchault/clockwork
bfc852b34095401adeb4e2b4fcaa4320f60960c7
[ "MIT" ]
21
2019-01-04T10:55:39.000Z
2019-09-23T11:02:59.000Z
src/executor/run_mol.py
ferchault/clockwork
bfc852b34095401adeb4e2b4fcaa4320f60960c7
[ "MIT" ]
1
2019-02-23T15:15:00.000Z
2019-02-23T15:15:00.000Z
#!/usr/bin/env python from redis import Redis import uuid import sys import os import subprocess import shutil import numpy as np import itertools as it import json from rdkit import Chem from rdkit.Chem import AllChem, ChemicalForceFields redis = Redis.from_url("redis://" + os.environ.get("EXECUTOR_C...
30.914894
139
0.714728
a6a1239b6aa0686d999ec021a092f3122039794c
3,855
py
Python
eventsourcing/tests/processrecorder_testcase.py
h11r/eventsourcing
e53ef697bfef8b78a468dc52d342b0e39b7cb889
[ "BSD-3-Clause" ]
null
null
null
eventsourcing/tests/processrecorder_testcase.py
h11r/eventsourcing
e53ef697bfef8b78a468dc52d342b0e39b7cb889
[ "BSD-3-Clause" ]
null
null
null
eventsourcing/tests/processrecorder_testcase.py
h11r/eventsourcing
e53ef697bfef8b78a468dc52d342b0e39b7cb889
[ "BSD-3-Clause" ]
null
null
null
from abc import ABC, abstractmethod from timeit import timeit from unittest.case import TestCase from uuid import uuid4 from eventsourcing.persistence import ( RecordConflictError, StoredEvent, Tracking, )
26.047297
65
0.54345
a6a173dfa16946d1b343a80b4e42d5cc67ea6e07
397
py
Python
lolexport/log.py
dleiferives/lolexport
894c97240893da829e96f46e2c4cdebf85846412
[ "MIT" ]
2
2021-02-23T09:21:07.000Z
2022-03-25T15:02:50.000Z
lolexport/log.py
dleiferives/lolexport
894c97240893da829e96f46e2c4cdebf85846412
[ "MIT" ]
5
2021-02-24T01:26:36.000Z
2022-02-27T13:05:27.000Z
lolexport/log.py
dleiferives/lolexport
894c97240893da829e96f46e2c4cdebf85846412
[ "MIT" ]
1
2022-02-27T02:17:17.000Z
2022-02-27T02:17:17.000Z
from os import environ import logging from logzero import setup_logger # type: ignore[import] # https://docs.python.org/3/library/logging.html#logging-levels loglevel: int = logging.DEBUG # (10) if "LOLEXPORT" in environ: loglevel = int(environ["LOLEXPORT"]) # logzero handles this fine, can be imported/configu...
28.357143
63
0.758186
a6a1b6d7205087acf58bd99258d54c81c8cb5272
6,538
py
Python
test_routes.py
Varini/CHALLENGE_SFNewsAPI
439bf7dfc10f83466786f6bd054afc8ab07b1b58
[ "MIT" ]
null
null
null
test_routes.py
Varini/CHALLENGE_SFNewsAPI
439bf7dfc10f83466786f6bd054afc8ab07b1b58
[ "MIT" ]
null
null
null
test_routes.py
Varini/CHALLENGE_SFNewsAPI
439bf7dfc10f83466786f6bd054afc8ab07b1b58
[ "MIT" ]
null
null
null
from operator import index from fastapi.testclient import TestClient from index import app client = TestClient(app)
40.608696
277
0.487611
a6a36c3ad6ad312dcf0a3b5b7faffce0dc407190
19,787
py
Python
applications/javelin/controllers/jadmin.py
jjacobson93/javelin-web2py
d4de493156c6893acca74d4be7f4597c90c418f3
[ "BSD-3-Clause" ]
null
null
null
applications/javelin/controllers/jadmin.py
jjacobson93/javelin-web2py
d4de493156c6893acca74d4be7f4597c90c418f3
[ "BSD-3-Clause" ]
null
null
null
applications/javelin/controllers/jadmin.py
jjacobson93/javelin-web2py
d4de493156c6893acca74d4be7f4597c90c418f3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Javelin Web2Py Admin Controller """ # metadata __author__ = "Jeremy Jacobson" __copyright__ = "(c) 2013, Jacobson and Varni, LLC" __date__ = "7/12/2013" __email__ = "jjacobson93@gmail.com" __data__ = {'name' : 'jadmin', 'label' : 'Admin', 'description' : 'Only accessible to admins', 'ico...
35.588129
148
0.670086
a6a3e38e319e18c135bd1b7301d2bdabc8eba4b7
36,084
py
Python
Testing.py
Eric-Fernandes-529/Final_Project_SW555
45498ed718e67ee082182ead526cb43eedd2ac56
[ "MIT" ]
null
null
null
Testing.py
Eric-Fernandes-529/Final_Project_SW555
45498ed718e67ee082182ead526cb43eedd2ac56
[ "MIT" ]
1
2020-10-07T02:48:52.000Z
2020-10-07T02:48:52.000Z
Testing.py
Eric-Fernandes-529/Final_Project_SW555
45498ed718e67ee082182ead526cb43eedd2ac56
[ "MIT" ]
1
2020-10-07T01:53:44.000Z
2020-10-07T01:53:44.000Z
import unittest import sys #sys.path.append('../') from models.Individual import Individual from models.Family import Family from models.Gedcom import Gedcom if __name__ == '__main__': print('Running unit tests') unittest.main()
36.633503
117
0.517044
a6a5d4525cdd7bb5aa80c9c5bcf3a0e256af0a40
9,307
py
Python
energyPATHWAYS/supply_classes.py
Dhruv325/energypath-hub
0b6b5d1a40faf5a686f5b479d61b9971084494fd
[ "MIT" ]
null
null
null
energyPATHWAYS/supply_classes.py
Dhruv325/energypath-hub
0b6b5d1a40faf5a686f5b479d61b9971084494fd
[ "MIT" ]
null
null
null
energyPATHWAYS/supply_classes.py
Dhruv325/energypath-hub
0b6b5d1a40faf5a686f5b479d61b9971084494fd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Nov 17 09:36:07 2015 @author: Ben """ from shared_classes import Stock, StockItem, SpecifiedStock from datamapfunctions import DataMapFunctions, Abstract import util import numpy as np import config as cfg
51.137363
171
0.640701
a6a6431d51a235cb7ff69e63e81efdad25385e1c
2,485
py
Python
3.4 Knapsack Problem (Recursion with Memorization).py
INOS-soft/MOmmentum-SECList
779db12933a5c351c3a5f3a3bc70d5f122033aba
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
3.4 Knapsack Problem (Recursion with Memorization).py
INOS-soft/MOmmentum-SECList
779db12933a5c351c3a5f3a3bc70d5f122033aba
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
3.4 Knapsack Problem (Recursion with Memorization).py
INOS-soft/MOmmentum-SECList
779db12933a5c351c3a5f3a3bc70d5f122033aba
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
1
2021-04-20T18:57:55.000Z
2021-04-20T18:57:55.000Z
""" 2.Question 2 This problem also asks you to solve a knapsack instance, but a much bigger one. This file (knapsack_big.txt) describes a knapsack instance, and it has the following format: [knapsack_size][number_of_items] [value_1] [weight_1] [value_2] [weight_2] ... For example, the third line of ...
36.014493
464
0.711871
a6a650997a0e40d341164565e71707c592c13050
1,372
py
Python
src/producto18.py
alonsosilvaallende/Datos-COVID19
a52b586ce0c9eb41a3f7443a164402124ffef504
[ "MIT" ]
null
null
null
src/producto18.py
alonsosilvaallende/Datos-COVID19
a52b586ce0c9eb41a3f7443a164402124ffef504
[ "MIT" ]
null
null
null
src/producto18.py
alonsosilvaallende/Datos-COVID19
a52b586ce0c9eb41a3f7443a164402124ffef504
[ "MIT" ]
null
null
null
''' MIT License Copyright (c) 2020 Sebastian Cornejo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ...
41.575758
78
0.78207
a6a7113e619a2809e17b57f976bcac4480ea4305
2,125
py
Python
src/linebot/app.py
zaurus-yusya/AtCoderStalker
e3ab389f00995d752d87710c03da905ed89554c4
[ "MIT" ]
7
2021-07-11T15:50:52.000Z
2021-09-18T15:49:27.000Z
src/linebot/app.py
zaurus-yusya/AtCoderStalker
e3ab389f00995d752d87710c03da905ed89554c4
[ "MIT" ]
2
2020-05-30T16:18:33.000Z
2020-05-30T16:23:40.000Z
src/linebot/app.py
zaurus-yusya/AtCoderStalker
e3ab389f00995d752d87710c03da905ed89554c4
[ "MIT" ]
null
null
null
import json import urllib.request from linebot import (LineBotApi, WebhookHandler) from linebot.models import (MessageEvent, TextMessage, PostbackEvent, FollowEvent, UnfollowEvent) from linebot.exceptions import (LineBotApiError, InvalidSignatureError) import os import sys import logging import boto3 from boto3.dynamod...
28.716216
97
0.722353
a6a8e49393235dbee8fb04867d787d7bb8bf15f1
1,918
py
Python
setup.py
burhan/solace
40d2bc025ac3a78e67602f374c32355badafb4d2
[ "BSD-3-Clause" ]
null
null
null
setup.py
burhan/solace
40d2bc025ac3a78e67602f374c32355badafb4d2
[ "BSD-3-Clause" ]
null
null
null
setup.py
burhan/solace
40d2bc025ac3a78e67602f374c32355badafb4d2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Solace ====== *a multilingual support system* Solace is a multilingual support system developed at Plurk for end user support. The application design is heavily influenced by bulletin boards like phpBB and the new stackoverflow programming community site. For more information consult th...
25.236842
71
0.624609
a6a8e6192908dea4aad06b73839c0578612b9ce2
4,583
py
Python
relation_engine/taxa/ncbi/loaders/ncbi_taxa_delta_loader.py
jayrbolton/arangodb_biochem_importer
b1c3eb16908ce47bf4c0b2ed792262612b6a019b
[ "MIT" ]
null
null
null
relation_engine/taxa/ncbi/loaders/ncbi_taxa_delta_loader.py
jayrbolton/arangodb_biochem_importer
b1c3eb16908ce47bf4c0b2ed792262612b6a019b
[ "MIT" ]
17
2019-07-15T16:55:22.000Z
2021-11-02T18:49:56.000Z
relation_engine/taxa/ncbi/loaders/ncbi_taxa_delta_loader.py
jayrbolton/arangodb_biochem_importer
b1c3eb16908ce47bf4c0b2ed792262612b6a019b
[ "MIT" ]
6
2019-08-05T17:02:22.000Z
2021-05-13T15:52:11.000Z
#!/usr/bin/env python # TODO TEST import argparse import getpass import os from arango import ArangoClient from relation_engine.taxa.ncbi.parsers import NCBINodeProvider from relation_engine.taxa.ncbi.parsers import NCBIEdgeProvider from relation_engine.taxa.ncbi.parsers import NCBIMergeProvider from relation_engine...
38.512605
99
0.670521
a6a93fa998370452499035e80f03dcb57488747c
516
py
Python
listwords.py
corbinmcneill/bonkbot
5d355d9b8d2377176fc8ec317a7cba03ff3bb37a
[ "MIT" ]
1
2020-12-07T06:58:38.000Z
2020-12-07T06:58:38.000Z
listwords.py
corbinmcneill/bonkbot
5d355d9b8d2377176fc8ec317a7cba03ff3bb37a
[ "MIT" ]
1
2021-01-06T06:36:11.000Z
2021-01-06T09:06:15.000Z
listwords.py
corbinmcneill/bonkbot
5d355d9b8d2377176fc8ec317a7cba03ff3bb37a
[ "MIT" ]
2
2021-01-06T06:34:42.000Z
2021-01-28T08:41:40.000Z
#!/usr/bin/env python3 import discord import config import util from functools import reduce from handler import Handler
28.666667
119
0.718992
a6ab15c2903f3b2f130c56a38afb23e92c3c2863
12,984
py
Python
threedi_custom_stats/presets.py
threedi/beta-plugins
530a5542deda73201626f7a429f87ce64cbac51a
[ "MIT" ]
1
2022-02-14T10:31:51.000Z
2022-02-14T10:31:51.000Z
threedi_custom_stats/presets.py
threedi/beta-plugins
530a5542deda73201626f7a429f87ce64cbac51a
[ "MIT" ]
11
2019-04-08T14:11:45.000Z
2021-07-02T14:28:04.000Z
threedi_custom_stats/presets.py
threedi/beta-plugins
530a5542deda73201626f7a429f87ce64cbac51a
[ "MIT" ]
null
null
null
from typing import List try: from .threedi_result_aggregation import * # from .aggregation_classes import * # from .constants import * from .style import * except ImportError: from threedi_result_aggregation import * # from constants import * from style import * # No preset selected NO_P...
64.277228
120
0.456716
a6ae30671d32b4a1a187c08b2e996358d70fedaa
4,776
py
Python
script/build_template.py
lzztt/bbs.backend
ca83ba8badfd7cbdf85c75323aa9df751b5d11fe
[ "MIT" ]
null
null
null
script/build_template.py
lzztt/bbs.backend
ca83ba8badfd7cbdf85c75323aa9df751b5d11fe
[ "MIT" ]
null
null
null
script/build_template.py
lzztt/bbs.backend
ca83ba8badfd7cbdf85c75323aa9df751b5d11fe
[ "MIT" ]
1
2018-09-18T02:14:34.000Z
2018-09-18T02:14:34.000Z
#! python3 from sys import argv from pathlib import Path from re import compile from enum import Enum from inflection import camelize RE_CLASS = compile(r'^use [a-zA-Z_][a-zA-Z0-9_\\]*;$') RE_PARAM = compile(r'^[a-zA-Z_][a-zA-Z0-9_]* \$[a-zA-Z_][a-zA-Z0-9_]*,?$') PARAM_BEGIN = r'function (' PARAM_END = r') {' PARAM...
25.677419
108
0.527219
a6b00053cb475a5d6e67bb02e64f93f6e7d1106d
21,606
py
Python
app.py
ucsc-cgp/cgp-dashboard
0ec5d3e2374751be02487caf4efe7cd9dae18522
[ "Apache-2.0" ]
1
2018-07-09T16:21:29.000Z
2018-07-09T16:21:29.000Z
app.py
ucsc-cgp/cgp-dashboard
0ec5d3e2374751be02487caf4efe7cd9dae18522
[ "Apache-2.0" ]
46
2018-05-04T17:05:58.000Z
2019-01-23T18:39:08.000Z
app.py
DataBiosphere/cgp-dashboard
0ec5d3e2374751be02487caf4efe7cd9dae18522
[ "Apache-2.0" ]
5
2016-12-20T02:03:13.000Z
2018-03-13T19:51:44.000Z
import os import requests from bouncer import Bouncer from flask import Flask, url_for, redirect, \ render_template, session, request, Response, \ flash, get_flashed_messages, jsonify from flask_login import LoginManager, login_required, login_user, \ logout_user, current_user, UserMixin from oauthlib.oaut...
34.349762
147
0.643201
a6b278baa9a78edbd910abdfa8c4d04de51fc371
1,260
py
Python
setup.py
toinsson/pynatnetclient
9743fb33e668b209022ab06e61bc4816e9ad9355
[ "Apache-2.0" ]
1
2021-03-05T18:23:06.000Z
2021-03-05T18:23:06.000Z
setup.py
toinsson/pynatnetclient
9743fb33e668b209022ab06e61bc4816e9ad9355
[ "Apache-2.0" ]
null
null
null
setup.py
toinsson/pynatnetclient
9743fb33e668b209022ab06e61bc4816e9ad9355
[ "Apache-2.0" ]
null
null
null
import io, os, re from os import path from setuptools import find_packages from distutils.core import setup # pip's single-source version method as described here: # https://python-packaging-user-guide.readthedocs.io/single_source_version/ setup(name='pynatnetclient', version=find_version('pynatnetclient', '__...
30.731707
75
0.653968
a6b27c6859301d1606a8d5f073f133b9b73bc5e5
188
py
Python
Code/circle.py
notha99y/Satellite-Scheduling
6231eccf353f37ba643a7e37aa60525355f5d005
[ "MIT" ]
14
2018-04-06T22:36:30.000Z
2022-02-15T02:36:58.000Z
Code/circle.py
notha99y/Satellite-Scheduling
6231eccf353f37ba643a7e37aa60525355f5d005
[ "MIT" ]
null
null
null
Code/circle.py
notha99y/Satellite-Scheduling
6231eccf353f37ba643a7e37aa60525355f5d005
[ "MIT" ]
4
2018-04-06T22:36:57.000Z
2022-02-15T02:37:00.000Z
import matplotlib.pyplot as plt circle = plt.Circle((0,0),5, fill=False) fig, ax = plt.subplots() ax.add_artist(circle) ax.set_xlim((-10, 10)) ax.set_ylim((-10, 10)) plt.show()
18.8
41
0.654255
a6b3572cf5f220699e22344092a457efc15b97ad
358
py
Python
cwk_3b.py
mas250/Python3
6ac6f0ffe7869cd7520b2ae0debf3650116a97b1
[ "MIT" ]
1
2019-12-28T12:31:28.000Z
2019-12-28T12:31:28.000Z
cwk_3b.py
mas250/Python3
6ac6f0ffe7869cd7520b2ae0debf3650116a97b1
[ "MIT" ]
null
null
null
cwk_3b.py
mas250/Python3
6ac6f0ffe7869cd7520b2ae0debf3650116a97b1
[ "MIT" ]
null
null
null
prize_file_1 = open("/Users/MatBook/Downloads/prize3.txt") List = [] prizes = [] for line in prize_file_1: List.append(int(line)) first_line = List.pop(0) for i in List: print(i) for j in List: if i + j == first_line: prizes.append((i,j)) print (...
13.769231
58
0.547486
a6b3808aec7e81eab7bb1df7481e77ef7f5b409c
1,684
py
Python
DevNetworkPython/tagAnalysis.py
ManikHossain08/Metrics-Extraction-from-GitHub-MSR_Python
b846c8ea6d37246af1c202466b60c15d06c5ba8b
[ "MIT" ]
1
2020-06-13T22:30:17.000Z
2020-06-13T22:30:17.000Z
DevNetworkPython/tagAnalysis.py
ManikHossain08/Metrics-Extraction-from-GitHub-MSR
b846c8ea6d37246af1c202466b60c15d06c5ba8b
[ "MIT" ]
null
null
null
DevNetworkPython/tagAnalysis.py
ManikHossain08/Metrics-Extraction-from-GitHub-MSR
b846c8ea6d37246af1c202466b60c15d06c5ba8b
[ "MIT" ]
null
null
null
import os import git import csv from datetime import datetime from progress.bar import Bar
30.071429
93
0.574822
a6b564871deacaebf5076f647494e02a77ffcc72
2,129
py
Python
keystoneworkout/benchmark.py
dstanek/keystone-exercises
5023fe87896ffefb462936ca9e6a982b9d099d6c
[ "Apache-2.0" ]
null
null
null
keystoneworkout/benchmark.py
dstanek/keystone-exercises
5023fe87896ffefb462936ca9e6a982b9d099d6c
[ "Apache-2.0" ]
null
null
null
keystoneworkout/benchmark.py
dstanek/keystone-exercises
5023fe87896ffefb462936ca9e6a982b9d099d6c
[ "Apache-2.0" ]
null
null
null
import shelve import sys import threading import time
30.855072
103
0.550493
a6b8534dfb59965e01c0a204829dc917ef20d463
5,938
py
Python
src/dipus/search_js_t.py
shirou/dipus
1c8a9cc89fb95a5c6ae99e692488496bd3fbec34
[ "BSD-2-Clause" ]
null
null
null
src/dipus/search_js_t.py
shirou/dipus
1c8a9cc89fb95a5c6ae99e692488496bd3fbec34
[ "BSD-2-Clause" ]
null
null
null
src/dipus/search_js_t.py
shirou/dipus
1c8a9cc89fb95a5c6ae99e692488496bd3fbec34
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- template = """/* * * search_dipus * * ~~~~~~~~~~~~~~ * * * * Dipus JavaScript utilties for the full-text search. * * This files is based on searchtools.js of Sphinx. * * * * :copyright: Copyright 2007-2012 by the Sphinx team. * * :license: BSD, see LICENSE ...
35.556886
184
0.492253
a6b86b9c9b7aaf978ba0544515d3c12d570959c7
508
py
Python
src/offensivetextdetectionservice/src/config.py
alejgh/easidiomas
abe9e4dc6ccf27d28ea3b14ef0251f044a8c2261
[ "MIT" ]
1
2022-01-24T16:56:42.000Z
2022-01-24T16:56:42.000Z
src/offensivetextdetectionservice/src/config.py
alejgh/easidiomas
abe9e4dc6ccf27d28ea3b14ef0251f044a8c2261
[ "MIT" ]
null
null
null
src/offensivetextdetectionservice/src/config.py
alejgh/easidiomas
abe9e4dc6ccf27d28ea3b14ef0251f044a8c2261
[ "MIT" ]
null
null
null
""" Configuration variables used in the application. These variables should be setup as environment variables in the docker-compose.yml file when launching all the services. If these environment variables are not present, default values are asigned to them. """ import os KAFKA_ENDPOINT = os.environ.get('KAFKA_ENDPOI...
36.285714
71
0.797244
a6b882cf867dd1d00939f625ef0b69c7a7489074
13,896
py
Python
tsp_ac.py
Architecton/route-optimization-using-machine-learning
ae641bba4ac9a15656658f8cb1abdb83451aa753
[ "MIT" ]
null
null
null
tsp_ac.py
Architecton/route-optimization-using-machine-learning
ae641bba4ac9a15656658f8cb1abdb83451aa753
[ "MIT" ]
null
null
null
tsp_ac.py
Architecton/route-optimization-using-machine-learning
ae641bba4ac9a15656658f8cb1abdb83451aa753
[ "MIT" ]
null
null
null
import numpy as np import networkx as nx import argparse import random from models.distance import get_dist_func def get_fitness(solution, initial_node, node_list): """ Get fitness of solution encoded by permutation. Args: solution (numpy.ndarray): Solution encoded as a permutation ini...
45.411765
154
0.63637
a6ba1034d83cf267912fbc83efe67828fa37bf25
2,393
py
Python
samples/sample_file_handling.py
Wacom-Developer/universal-ink-library
689ed90e09e912b8fc9ac249984df43a7b59aa59
[ "Apache-2.0" ]
5
2021-09-06T11:45:37.000Z
2022-03-24T15:56:06.000Z
samples/sample_file_handling.py
Wacom-Developer/universal-ink-library
689ed90e09e912b8fc9ac249984df43a7b59aa59
[ "Apache-2.0" ]
null
null
null
samples/sample_file_handling.py
Wacom-Developer/universal-ink-library
689ed90e09e912b8fc9ac249984df43a7b59aa59
[ "Apache-2.0" ]
2
2021-09-03T09:08:45.000Z
2021-12-15T14:03:16.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Wacom Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
50.914894
120
0.558713
a6ba3b9a6eb8e00e8a17e5342d7063e3223bfdac
8,504
py
Python
net/LcaNet.py
SoufiyanBAHADI/ALCA
7eea7402eb00f410a6fd9c6734f1926b1e31cff8
[ "BSD-2-Clause" ]
3
2021-10-04T02:00:54.000Z
2022-03-09T18:52:31.000Z
net/LcaNet.py
SoufiyanBAHADI/ALCA
7eea7402eb00f410a6fd9c6734f1926b1e31cff8
[ "BSD-2-Clause" ]
2
2022-01-23T22:32:28.000Z
2022-03-12T02:21:11.000Z
net/LcaNet.py
SoufiyanBAHADI/ALCA
7eea7402eb00f410a6fd9c6734f1926b1e31cff8
[ "BSD-2-Clause" ]
null
null
null
""" Created on 30.09.2020 @author: Soufiyan Bahadi @director: Jean Rouat @co-director: Eric Plourde """ import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from managers.ContextManager import ContextManager from managers.LearningManager import LearningManager from managers.PlottingMan...
37.795556
166
0.485889
a6ba8aa475057ee102e8d38ba6b8631bbfab4990
8,254
py
Python
util_tools/L2L_analysis_module.py
WeilabMSU/PretrainModels
15370ded8c1c03ba0b9e123fe4c125815300d157
[ "MIT" ]
4
2021-12-22T08:35:47.000Z
2022-02-04T23:05:19.000Z
util_tools/L2L_analysis_module.py
WeilabMSU/PretrainModels
15370ded8c1c03ba0b9e123fe4c125815300d157
[ "MIT" ]
null
null
null
util_tools/L2L_analysis_module.py
WeilabMSU/PretrainModels
15370ded8c1c03ba0b9e123fe4c125815300d157
[ "MIT" ]
null
null
null
''' Analytic Hierarchy Process, AHP. Base on Wasserstein distance ''' from scipy.stats import wasserstein_distance from sklearn.decomposition import PCA import scipy import numpy as np import pandas as pd import sys import argparse import os import glob import datasets_analysis_module as dam if __name__ ...
36.522124
113
0.63024
a6bb1c54381bdffa7fdca88fa66dee0901c84e20
7,581
py
Python
src/opendr/_setup.py
daoran/opendr
bca25f6a43244fe9c219a24576181f94a0726923
[ "Apache-2.0" ]
null
null
null
src/opendr/_setup.py
daoran/opendr
bca25f6a43244fe9c219a24576181f94a0726923
[ "Apache-2.0" ]
null
null
null
src/opendr/_setup.py
daoran/opendr
bca25f6a43244fe9c219a24576181f94a0726923
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-2022 OpenDR European 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
34.616438
117
0.597019
a6bf3ee264874a265742ece6f2b12936cf879cc1
13,836
py
Python
modules/auto_split/splitter/mxnet_splitter.py
sophon-ai-algo/sophon-inference
f923413b76615e265af28fd1dd2b43e5eb303dcd
[ "Apache-2.0" ]
18
2020-02-21T03:06:33.000Z
2022-03-21T03:41:56.000Z
modules/auto_split/splitter/mxnet_splitter.py
sophon-ai-algo/sophon-inference
f923413b76615e265af28fd1dd2b43e5eb303dcd
[ "Apache-2.0" ]
null
null
null
modules/auto_split/splitter/mxnet_splitter.py
sophon-ai-algo/sophon-inference
f923413b76615e265af28fd1dd2b43e5eb303dcd
[ "Apache-2.0" ]
6
2020-07-10T08:55:38.000Z
2021-12-28T01:36:04.000Z
""" Copyright 2016-2022 by Bitmain Technologies Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
35.386189
79
0.700347
a6c033633c6c6cc98bdf46fde938f21a68a4d3ac
1,221
py
Python
src/heuristic.py
Maasouza/MinVertexCover
3edf31bfa9a8979e86094961034efce61d5c6b86
[ "MIT" ]
null
null
null
src/heuristic.py
Maasouza/MinVertexCover
3edf31bfa9a8979e86094961034efce61d5c6b86
[ "MIT" ]
null
null
null
src/heuristic.py
Maasouza/MinVertexCover
3edf31bfa9a8979e86094961034efce61d5c6b86
[ "MIT" ]
null
null
null
import networkx as nx from util import * def heuristic_cover(graph , preprocess = False): """ heuristica se preprocess entao realiza o preprocessamento para remover vertices com apenas um vizinho retornando os vertices ja visitados enquanto existir vertices no grafo...
27.133333
82
0.556921
a6c04b1be112a409e5c402b61de90de419055381
389
py
Python
autharch_sharc/editor/migrations/0042_sharciiif_order.py
kingsdigitallab/autharch_sharc
92de5fbec8cc72ce48a9e25eb634d40ac2cc83ca
[ "MIT" ]
null
null
null
autharch_sharc/editor/migrations/0042_sharciiif_order.py
kingsdigitallab/autharch_sharc
92de5fbec8cc72ce48a9e25eb634d40ac2cc83ca
[ "MIT" ]
null
null
null
autharch_sharc/editor/migrations/0042_sharciiif_order.py
kingsdigitallab/autharch_sharc
92de5fbec8cc72ce48a9e25eb634d40ac2cc83ca
[ "MIT" ]
null
null
null
# Generated by Django 3.0.10 on 2021-07-09 09:38 from django.db import migrations, models
20.473684
50
0.601542
a6c079133086435312474069fd2c024714d94107
13,761
py
Python
turtlebot3_dqn/src/turtlebot3_dqn/simulation_environment_real.py
2529342549/turtlebot3_m_learning
19fc961de8a993eafcd421186ad1c38473d04818
[ "Apache-2.0" ]
3
2020-01-27T09:23:50.000Z
2022-03-24T09:58:48.000Z
turtlebot3_dqn/src/turtlebot3_dqn/simulation_environment_real.py
2529342549/turtlebot3_machine_learning
bdb8cc0fa0110269cd3573d3f78011c3e0201e09
[ "Apache-2.0" ]
null
null
null
turtlebot3_dqn/src/turtlebot3_dqn/simulation_environment_real.py
2529342549/turtlebot3_machine_learning
bdb8cc0fa0110269cd3573d3f78011c3e0201e09
[ "Apache-2.0" ]
2
2020-01-27T09:23:54.000Z
2021-09-20T04:07:13.000Z
#!/usr/bin/env python ################################################################################# # Copyright 2018 ROBOTIS CO., LTD. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
37.70137
129
0.534263
a6c1c0b4ec9e4d0b37b006d5d64e485ed7f8cc62
417
py
Python
codeforces/anirudhak47/1328/B.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
3
2020-07-09T16:15:42.000Z
2020-07-17T13:19:42.000Z
codeforces/anirudhak47/1328/B.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
null
null
null
codeforces/anirudhak47/1328/B.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
1
2020-07-17T13:19:48.000Z
2020-07-17T13:19:48.000Z
# cook your dish here for t in range(int(input())): #n=int(input()) n,k=map(int,input().split()) clas=classfinder(k) i=k-clas*(clas-1)//2 str="" for z in range(n): if z==n-clas-1 or z==n-i: str+="b" else: str+="a" print(str)
18.954545
34
0.443645
a6c2f3f7fadfd4ca0984002c0c949dd1121f320e
3,827
py
Python
ch05/ch0501_convnet.py
zhuyuanxiang/deep-learning-with-python-notebooks
6b6b5670193f5a26321c36de3b547203e30dc8c7
[ "MIT" ]
6
2019-11-30T01:34:24.000Z
2021-11-28T10:53:22.000Z
ch05/ch0501_convnet.py
zhuyuanxiang/deep-learning-with-python-notebooks
6b6b5670193f5a26321c36de3b547203e30dc8c7
[ "MIT" ]
null
null
null
ch05/ch0501_convnet.py
zhuyuanxiang/deep-learning-with-python-notebooks
6b6b5670193f5a26321c36de3b547203e30dc8c7
[ "MIT" ]
4
2020-04-11T10:46:17.000Z
2021-11-09T08:04:55.000Z
# -*- encoding: utf-8 -*- """ @Author : zYx.Tom @Contact : 526614962@qq.com @site : https://zhuyuanxiang.github.io --------------------------- @Software : PyCharm @Project : deep-learning-with-python-notebooks @File : ch0501_convnet.py @Version : v0.1 @Time : 2019-11...
35.435185
118
0.709694
a6c390b45f2052455e5898ffbc22af9be8ea36fa
878
py
Python
run.py
sulavmhrzn/facebook-autoreply-bot
2196f392c03305a9d9eca9bd70e2e6dafc38c995
[ "MIT" ]
null
null
null
run.py
sulavmhrzn/facebook-autoreply-bot
2196f392c03305a9d9eca9bd70e2e6dafc38c995
[ "MIT" ]
null
null
null
run.py
sulavmhrzn/facebook-autoreply-bot
2196f392c03305a9d9eca9bd70e2e6dafc38c995
[ "MIT" ]
null
null
null
from utils.app import SendBot try: from dotenv import load_dotenv import os except ModuleNotFoundError: print('Required modules not found.') exit() load_dotenv() env = input('Load environment variables? (y/n): ').lower() options = ['y', 'n'] if env in options: if env == 'n': email = inpu...
24.388889
60
0.595672