hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
93feb2b5aaee509b3ca59bd657fd9239d3cc9aa4
5,234
py
Python
rtk/dao/RTKMatrix.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
null
null
null
rtk/dao/RTKMatrix.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
null
null
null
rtk/dao/RTKMatrix.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
2
2020-04-03T04:14:42.000Z
2021-02-22T05:30:35.000Z
# -*- coding: utf-8 -*- # # rtk.dao.RTKMatrix.py is part of The RTK Project # # All rights reserved. # Copyright 2007 - 2017 Andrew Rowland andrew.rowland <AT> reliaqual <DOT> com """ =============================================================================== The RTKMatrix Table ==============================...
40.261538
79
0.526175
4,555
0.870271
0
0
0
0
0
0
3,188
0.609094
93ff19152094c70f894a1b56b790e173ed1c2638
614
py
Python
tool/gitautopull.py
chaosannals/trial-python
740b91fa4b1b1b9839b7524515995a6d417612ca
[ "MIT" ]
null
null
null
tool/gitautopull.py
chaosannals/trial-python
740b91fa4b1b1b9839b7524515995a6d417612ca
[ "MIT" ]
8
2020-12-26T07:48:15.000Z
2022-03-12T00:25:14.000Z
tool/gitautopull.py
chaosannals/trial-python
740b91fa4b1b1b9839b7524515995a6d417612ca
[ "MIT" ]
null
null
null
import os import shutil def pull_default(folder=None): cwd = os.getcwd() if None == folder: folder = cwd for path in os.listdir(folder): project_path = os.path.join(folder, path) if os.path.isdir(project_path): dot_git_folder = os.path.join(project_path, '.git') ...
29.238095
65
0.583062
0
0
0
0
0
0
0
0
73
0.116987
93ff6193a2b94edc476d54fd31667524f6fc80f3
815
py
Python
pyogp/apps/web/django/pyogp_webbot/urls.py
grobertson/PyOGP.Apps
03583baa8d3a2438b0d0a5452ee8c9e56aace9fd
[ "Apache-2.0" ]
null
null
null
pyogp/apps/web/django/pyogp_webbot/urls.py
grobertson/PyOGP.Apps
03583baa8d3a2438b0d0a5452ee8c9e56aace9fd
[ "Apache-2.0" ]
null
null
null
pyogp/apps/web/django/pyogp_webbot/urls.py
grobertson/PyOGP.Apps
03583baa8d3a2438b0d0a5452ee8c9e56aace9fd
[ "Apache-2.0" ]
null
null
null
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^pyogp_webbot/', include('pyogp_webbot.foo.urls')), # Uncomment the admin/doc line below and add 'django.contrib...
37.045455
87
0.692025
0
0
0
0
0
0
0
0
666
0.817178
93ffdac053f4b224bf9ac1f85bcc5aea184dd502
9,300
py
Python
emit.py
richardbenson91477/simile
aa1faa8902d24e57133cd2c9982e5d4eef6f913f
[ "Unlicense" ]
null
null
null
emit.py
richardbenson91477/simile
aa1faa8902d24e57133cd2c9982e5d4eef6f913f
[ "Unlicense" ]
null
null
null
emit.py
richardbenson91477/simile
aa1faa8902d24e57133cd2c9982e5d4eef6f913f
[ "Unlicense" ]
null
null
null
''' code emitters ''' import out, enums as e class s: ''' state ''' # long_len # arg_regs, arg_regs_n # regs # stack_regs pass def init (long_len): s.long_len = long_len if long_len == 8: s.arg_regs = ['%rdi', '%rsi', '%rdx', '%rcx', 'r8', 'r9'] s.arg_regs_n = len(s.arg...
30.693069
78
0.475484
105
0.01129
0
0
0
0
0
0
860
0.092473
9e00237613a99687f5e6e25a05d24aa9f51580f2
2,291
py
Python
_static/cookbook/gravmag_euler_classic_expanding_window.py
fatiando/v0.1
1ab9876b247c67834b8e1c874d5b1d86f82802e2
[ "BSD-3-Clause" ]
null
null
null
_static/cookbook/gravmag_euler_classic_expanding_window.py
fatiando/v0.1
1ab9876b247c67834b8e1c874d5b1d86f82802e2
[ "BSD-3-Clause" ]
null
null
null
_static/cookbook/gravmag_euler_classic_expanding_window.py
fatiando/v0.1
1ab9876b247c67834b8e1c874d5b1d86f82802e2
[ "BSD-3-Clause" ]
null
null
null
""" GravMag: Classic 3D Euler deconvolution of magnetic data using an expanding window """ from fatiando import logger, mesher, gridder, utils, gravmag from fatiando.vis import mpl, myv log = logger.get() log.info(logger.header()) # Make a model bounds = [-5000, 5000, -5000, 5000, 0, 5000] model = [ mesher.Prism(...
32.728571
78
0.690965
0
0
0
0
0
0
0
0
719
0.313837
9e00350a4a2fb7dd0ecbdf440b5912df33e77fb3
324
py
Python
popmemes/backend/popmemes/migrations/0002_auto_20190122_0939.py
hangulu/twitter
e4461652d35fc6d547e93f364b56c1a1637c5547
[ "MIT" ]
null
null
null
popmemes/backend/popmemes/migrations/0002_auto_20190122_0939.py
hangulu/twitter
e4461652d35fc6d547e93f364b56c1a1637c5547
[ "MIT" ]
7
2019-12-29T08:23:25.000Z
2022-02-26T14:04:51.000Z
popmemes/backend/popmemes/migrations/0002_auto_20190122_0939.py
hangulu/twitter
e4461652d35fc6d547e93f364b56c1a1637c5547
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-01-22 09:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('popmemes', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='Popmemes', new_name='PopImage', ), ...
18
47
0.58642
239
0.737654
0
0
0
0
0
0
91
0.280864
9e06be00254eeed4fa569ee854389c69ab61f743
6,434
py
Python
tests/ampligraph/datasets/test_datasets.py
ojasviyadav/AmpliGraph
07ce70ff9e30812ac8f4a34d245d1d5decec27f7
[ "Apache-2.0" ]
null
null
null
tests/ampligraph/datasets/test_datasets.py
ojasviyadav/AmpliGraph
07ce70ff9e30812ac8f4a34d245d1d5decec27f7
[ "Apache-2.0" ]
null
null
null
tests/ampligraph/datasets/test_datasets.py
ojasviyadav/AmpliGraph
07ce70ff9e30812ac8f4a34d245d1d5decec27f7
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The AmpliGraph Authors. All Rights Reserved. # # This file is Licensed under the Apache License, Version 2.0. # A copy of the Licence is available in LICENCE, or at: # # http://www.apache.org/licenses/LICENSE-2.0 # from ampligraph.datasets import load_wn18, load_fb15k, load_fb15k_237, load_yago3_10...
42.328947
119
0.615636
0
0
0
0
0
0
0
0
2,496
0.387939
9e08eda6cab019bc0097ad8470c08bcc09a74c92
5,959
py
Python
code/geometry/sector.py
Prometheus3375/inno-thesis
72245706fa25b49f333e08d6074d421b5becfdb5
[ "BSD-3-Clause" ]
null
null
null
code/geometry/sector.py
Prometheus3375/inno-thesis
72245706fa25b49f333e08d6074d421b5becfdb5
[ "BSD-3-Clause" ]
null
null
null
code/geometry/sector.py
Prometheus3375/inno-thesis
72245706fa25b49f333e08d6074d421b5becfdb5
[ "BSD-3-Clause" ]
null
null
null
from io import StringIO from math import atan2, ceil from typing import Literal, Union, overload from common import PI, Real, TWOPI, deg, real, reduce_angle from functions import qbezeir_svg_given_middle from .circle import CircleBase, FixedCircle from .point import PointBase, Polar def check_arc(value: float, /): ...
26.721973
112
0.587515
4,719
0.791247
0
0
1,322
0.221663
0
0
574
0.096244
9e097d9b8021dd21364c747eb7b2f08352fe9ba6
1,155
py
Python
scripts/gen_mh.py
bplank/DaNplus
220428109c9ae5abc60e8968a7fe7a4aa6ad92e3
[ "MIT" ]
5
2020-12-11T17:11:03.000Z
2022-01-01T12:14:04.000Z
scripts/gen_mh.py
bplank/DaNplus
220428109c9ae5abc60e8968a7fe7a4aa6ad92e3
[ "MIT" ]
null
null
null
scripts/gen_mh.py
bplank/DaNplus
220428109c9ae5abc60e8968a7fe7a4aa6ad92e3
[ "MIT" ]
null
null
null
import os COL_SEPARATOR = "\t" MULTI_SEPARATOR = "$" for neFile in os.listdir('data/'): neFile = 'data/' + neFile out_filename = neFile.replace('.tsv', "_mh.tsv") if os.path.isfile(out_filename) or '_mh' in neFile or os.path.isdir(neFile): continue out_f = open(out_filename, "w") with open(n...
38.5
80
0.507359
0
0
0
0
0
0
0
0
72
0.062338
9e0bbeb93835b36e23fb310038a044e9818c4553
13,451
py
Python
kecpkg/commands/sign.py
jberends/kecpkg-tools
3c288c5b91b619fe76cd3622615f3ffe43509725
[ "Apache-2.0" ]
null
null
null
kecpkg/commands/sign.py
jberends/kecpkg-tools
3c288c5b91b619fe76cd3622615f3ffe43509725
[ "Apache-2.0" ]
7
2017-12-07T11:16:07.000Z
2019-12-11T15:25:07.000Z
kecpkg/commands/sign.py
KE-works/kecpkg-tools
3c288c5b91b619fe76cd3622615f3ffe43509725
[ "Apache-2.0" ]
null
null
null
import os import sys from pprint import pprint import click from pykechain.utils import temp_chdir from kecpkg.commands.utils import CONTEXT_SETTINGS from kecpkg.gpg import get_gpg, list_keys, hash_of_file from kecpkg.settings import SETTINGS_FILENAME, GNUPG_KECPKG_HOME, load_settings, DEFAULT_SETTINGS, ARTIFACTS_FIL...
46.867596
120
0.63564
0
0
0
0
9,886
0.734964
0
0
5,375
0.399599
9e0cb81c07d1ab8a7ecca4e8e8464e12bdf7bef9
954
py
Python
benchmark/generate_data.py
etra0/sapeaob
3e21bd66f8530f983130c52e37d612cc53181acd
[ "MIT" ]
3
2021-08-04T13:00:25.000Z
2021-12-21T21:07:40.000Z
benchmark/generate_data.py
etra0/sapeaob
3e21bd66f8530f983130c52e37d612cc53181acd
[ "MIT" ]
null
null
null
benchmark/generate_data.py
etra0/sapeaob
3e21bd66f8530f983130c52e37d612cc53181acd
[ "MIT" ]
null
null
null
import argparse import random SIGNATURE = b'\xDE\xAD\xBE\xEF\xC0\xFF\xEE\xAA\xBB\xCC\xDD\xEE\xFF\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xAA' # Generate data in chunks of 1024 bytes. def generate_random_data(size): data = bytearray() while len(data) <= size: data += random.randbytes(1024) return ...
25.783784
111
0.669811
0
0
0
0
0
0
0
0
203
0.212788
9e0dd95d1aaf80cae2655fcee6b6427ac437b94c
10,563
py
Python
doctor/lib/utils.py
freelawproject/doctor
3858b6f5de7903353f4376303329a986db5b7983
[ "BSD-2-Clause" ]
null
null
null
doctor/lib/utils.py
freelawproject/doctor
3858b6f5de7903353f4376303329a986db5b7983
[ "BSD-2-Clause" ]
null
null
null
doctor/lib/utils.py
freelawproject/doctor
3858b6f5de7903353f4376303329a986db5b7983
[ "BSD-2-Clause" ]
null
null
null
import datetime import io import os import re import subprocess import warnings from collections import namedtuple from decimal import Decimal from pathlib import Path import six from PyPDF2 import PdfFileMerger from reportlab.pdfgen import canvas class DoctorUnicodeDecodeError(UnicodeDecodeError): def __init__(...
30.528902
87
0.619142
508
0.048092
0
0
0
0
0
0
4,204
0.397993
9e0e1c62ee116428b55cffa380260139fb9ea5d8
906
py
Python
src/xrl/env_tester.py
k4ntz/XmodRL
dffb416bcd91010d8075ee1ac00cc4b9a3021967
[ "MIT" ]
null
null
null
src/xrl/env_tester.py
k4ntz/XmodRL
dffb416bcd91010d8075ee1ac00cc4b9a3021967
[ "MIT" ]
null
null
null
src/xrl/env_tester.py
k4ntz/XmodRL
dffb416bcd91010d8075ee1ac00cc4b9a3021967
[ "MIT" ]
1
2021-11-10T18:09:27.000Z
2021-11-10T18:09:27.000Z
import gym import numpy as np import os import random import matplotlib.pyplot as plt from atariari.benchmark.wrapper import AtariARIWrapper # YarsRevenge # env_name = "DemonAttackDeterministic-v4" def print_labels(env_info): # extract raw features labels = env_info["labels"] print(labels) env = Atar...
22.65
66
0.695364
0
0
0
0
0
0
0
0
190
0.209482
9e0ef102e2826e6b9febd80bed5d0193a3687555
2,711
py
Python
packages/lrn/model/question.py
genropy/learn
019286c1fa1548482f64ccbd91082e069ec62a56
[ "MIT" ]
3
2019-11-16T12:38:20.000Z
2019-11-17T08:44:41.000Z
packages/lrn/model/question.py
genropy/learn
019286c1fa1548482f64ccbd91082e069ec62a56
[ "MIT" ]
null
null
null
packages/lrn/model/question.py
genropy/learn
019286c1fa1548482f64ccbd91082e069ec62a56
[ "MIT" ]
5
2019-11-16T16:22:10.000Z
2019-11-18T21:46:50.000Z
# encoding: utf-8 from datetime import datetime class Table(object): def config_db(self,pkg): tbl=pkg.table('question', pkey='id', name_long='!![en]Question', name_plural='!![en]Questions',caption_field='question') self.sysFields(tbl, draftField=True) tbl.column('question',name_long='!![en]...
54.22
138
0.570638
2,652
0.977876
0
0
0
0
0
0
1,009
0.37205
9e11d3f12bcf35bac083ace9a1b7490250555694
3,087
py
Python
core/api/OxfordAPI.py
vimarind/Complete-GRE-Vocab
6dc8bb8ed0506ed572edd1a01a456d9a27238c94
[ "MIT" ]
null
null
null
core/api/OxfordAPI.py
vimarind/Complete-GRE-Vocab
6dc8bb8ed0506ed572edd1a01a456d9a27238c94
[ "MIT" ]
null
null
null
core/api/OxfordAPI.py
vimarind/Complete-GRE-Vocab
6dc8bb8ed0506ed572edd1a01a456d9a27238c94
[ "MIT" ]
null
null
null
import json import requests from os import path class OxfordAPI: def __init__(self, app_id, app_key, cache_path): self.app_id = app_id self.app_key = app_key self.cache_path = cache_path def __parse_sense(self, word, sense): for definition in sense.get('definitions', list()):...
38.111111
117
0.618724
3,033
0.982507
0
0
0
0
0
0
719
0.232912
9e1202ada111dfedf3e1239998ddc9e7e0c2bac2
2,568
py
Python
linked_list.py
bentsi/data-structures
ce4a3a49ec131550ec0b77875b8f0367addcca05
[ "Apache-2.0" ]
null
null
null
linked_list.py
bentsi/data-structures
ce4a3a49ec131550ec0b77875b8f0367addcca05
[ "Apache-2.0" ]
null
null
null
linked_list.py
bentsi/data-structures
ce4a3a49ec131550ec0b77875b8f0367addcca05
[ "Apache-2.0" ]
1
2021-01-10T15:41:50.000Z
2021-01-10T15:41:50.000Z
class Node: def __init__(self, data=None): self.data = data self.next = None class LinkedListIndexError(IndexError): pass class LinkedList: def __init__(self): self.head = Node() def _get_last_node(self): pointer = self.head while pointer.next is not None: ...
24.457143
73
0.550234
2,109
0.821262
0
0
0
0
0
0
198
0.077103
9e13f559b1f0c5960c9398a871cf6613d7ce918c
5,442
py
Python
apps/login/views.py
kwarodom/bemoss_web_ui-1
6c65c49b8f52bc7d189c9f2391f9098ec0f2dd92
[ "Unlicense" ]
null
null
null
apps/login/views.py
kwarodom/bemoss_web_ui-1
6c65c49b8f52bc7d189c9f2391f9098ec0f2dd92
[ "Unlicense" ]
null
null
null
apps/login/views.py
kwarodom/bemoss_web_ui-1
6c65c49b8f52bc7d189c9f2391f9098ec0f2dd92
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- ''' Copyright (c) 2016, Virginia Tech All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of condi...
52.326923
118
0.717567
0
0
0
0
0
0
0
0
4,126
0.757899
9e14d6737904e50f196708249c8435de6151b062
2,768
py
Python
custom_html_validator/custom_html_validator.py
koan-u/custom_html_validator
1a6735146e64d3c346201d10eddfd9ebfe1377c2
[ "MIT" ]
null
null
null
custom_html_validator/custom_html_validator.py
koan-u/custom_html_validator
1a6735146e64d3c346201d10eddfd9ebfe1377c2
[ "MIT" ]
null
null
null
custom_html_validator/custom_html_validator.py
koan-u/custom_html_validator
1a6735146e64d3c346201d10eddfd9ebfe1377c2
[ "MIT" ]
null
null
null
from html.parser import HTMLParser class CustomHTMLValidater(HTMLParser): __SINGLE_TAGS = [ 'area','base','br','col','embed', 'hr','img','input','keygen','link', 'meta','param','source','track','wbr' ] def __init__(self): HTMLParser.__init__(self) self.reset(True) ...
33.756098
66
0.462789
2,731
0.986633
0
0
0
0
0
0
453
0.163656
9e14d840b0d68fa20db94e8f512ad11ba709e64f
1,841
py
Python
boltfile.py
arahmanhamdy/bolt
8f5d9b8149db833b54a7b353162b2c28a53c8aff
[ "MIT" ]
15
2016-10-21T14:30:38.000Z
2021-10-12T04:50:48.000Z
boltfile.py
arahmanhamdy/bolt
8f5d9b8149db833b54a7b353162b2c28a53c8aff
[ "MIT" ]
51
2016-02-05T01:24:32.000Z
2019-12-09T16:52:20.000Z
boltfile.py
arahmanhamdy/bolt
8f5d9b8149db833b54a7b353162b2c28a53c8aff
[ "MIT" ]
6
2016-10-17T13:48:16.000Z
2021-03-28T20:40:14.000Z
import logging import os.path import bolt import bolt.about PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__)) _src_dir = os.path.join(PROJECT_ROOT, 'bolt') _test_dir = os.path.join(PROJECT_ROOT, 'test') _output_dir = os.path.join(PROJECT_ROOT, 'output') _coverage_dir = os.path.join(_output_dir, 'coverage') ...
25.569444
78
0.523628
0
0
0
0
0
0
0
0
689
0.374253
9e15279f716f2f3dcaf04f7c355aee058fe22e12
1,120
py
Python
pyxedit/xedit/object_classes/HDPT.py
leontristain/pyxedit
4100506930ab6d62d6e2c4a89fee024dbbf87c7b
[ "MIT" ]
null
null
null
pyxedit/xedit/object_classes/HDPT.py
leontristain/pyxedit
4100506930ab6d62d6e2c4a89fee024dbbf87c7b
[ "MIT" ]
13
2019-04-09T06:14:22.000Z
2020-07-03T07:35:30.000Z
pyxedit/xedit/object_classes/HDPT.py
leontristain/pyxedit
4100506930ab6d62d6e2c4a89fee024dbbf87c7b
[ "MIT" ]
null
null
null
from enum import Enum from pyxedit.xedit.attribute import XEditAttribute from pyxedit.xedit.generic import XEditGenericObject class HeadPartTypes(Enum): Misc = 'Misc' Face = 'Face' Eyes = 'Eyes' Hair = 'Hair' FacialHair = 'Facial Hair' Scar = 'Scar' Eyebrows = 'Eyebrows' class XEditHead...
31.111111
80
0.669643
987
0.88125
0
0
234
0.208929
0
0
184
0.164286
9e158c914469c96413a23f9b7926f662ec188191
1,309
py
Python
assignments/04_head/head.py
emma-huffman/biosystems-analytics-2020
eaf9c084407fa6d25b815b7d63077ed9aec53447
[ "MIT" ]
null
null
null
assignments/04_head/head.py
emma-huffman/biosystems-analytics-2020
eaf9c084407fa6d25b815b7d63077ed9aec53447
[ "MIT" ]
null
null
null
assignments/04_head/head.py
emma-huffman/biosystems-analytics-2020
eaf9c084407fa6d25b815b7d63077ed9aec53447
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : Me <me@foo.com> Date : today Purpose: Rock the Casbah """ import argparse import io import os import sys # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( description='Rock the...
23.375
66
0.450726
0
0
0
0
0
0
0
0
437
0.333843
9e16d5b26d929cfae2b8a212b8915e0500128d25
1,040
py
Python
tests/CornerCasesTest.py
dpep/py_pluckit
be7c1cd6e2555234f08dd0cb6239db2c249562a4
[ "MIT" ]
null
null
null
tests/CornerCasesTest.py
dpep/py_pluckit
be7c1cd6e2555234f08dd0cb6239db2c249562a4
[ "MIT" ]
null
null
null
tests/CornerCasesTest.py
dpep/py_pluckit
be7c1cd6e2555234f08dd0cb6239db2c249562a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import unittest from collections import namedtuple sys.path = [ os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')) ] + sys.path from pluckit import pluck class CornerCasesTest(unittest.TestCase): def test_null_handle(self): data = [1, 2, 3] ...
21.22449
91
0.516346
772
0.742308
0
0
0
0
0
0
59
0.056731
9e177263a0ebd8c89321b840a71c84edfd2ea746
1,520
py
Python
src/lib/transforms/cross_drop.py
pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution
0bc51075db31a747eeebb7f4775a3cd26ad5f870
[ "MIT" ]
44
2020-12-09T06:15:15.000Z
2022-03-31T02:37:47.000Z
src/lib/transforms/cross_drop.py
pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution
0bc51075db31a747eeebb7f4775a3cd26ad5f870
[ "MIT" ]
null
null
null
src/lib/transforms/cross_drop.py
pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution
0bc51075db31a747eeebb7f4775a3cd26ad5f870
[ "MIT" ]
7
2020-12-09T10:08:32.000Z
2021-08-17T01:53:51.000Z
from albumentations.core.transforms_interface import ImageOnlyTransform import albumentations.augmentations.functional as F import random class CrossDrop(ImageOnlyTransform): def __init__(self, max_h_cut=0.2, max_w_cut=0.2, fill_value=0, always_apply=False, p=0.5): super(CrossDrop, self).__init__(always_a...
33.777778
94
0.620395
1,380
0.907895
0
0
67
0.044079
0
0
43
0.028289
9e1798f13a1e5958c9273e51efaff12141f4e76c
9,497
py
Python
js_components/cms_plugins.py
compoundpartners/js-components
a58a944254354078a0a7b53a4c9a7df50790267a
[ "BSD-3-Clause" ]
null
null
null
js_components/cms_plugins.py
compoundpartners/js-components
a58a944254354078a0a7b53a4c9a7df50790267a
[ "BSD-3-Clause" ]
null
null
null
js_components/cms_plugins.py
compoundpartners/js-components
a58a944254354078a0a7b53a4c9a7df50790267a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import functools import six from django.utils.translation import ugettext_lazy as _ from django.template import TemplateDoesNotExist from django.template.loader import select_template from cms.plugin_base import CMSPluginBase, CMSPluginBaseMetaclass from ...
29.958991
134
0.666737
7,698
0.810572
0
0
2,409
0.253659
0
0
2,120
0.223228
9e18ddf285ec21f8d58dafd4142a06363020741a
1,232
py
Python
src/julia/tests/test_juliaoptions.py
dpinol/pyjulia
cec4bf0b0eac7e39cecd8f3e7882563062903d0f
[ "MIT" ]
649
2016-09-09T07:38:19.000Z
2022-03-28T04:30:55.000Z
src/julia/tests/test_juliaoptions.py
dpinol/pyjulia
cec4bf0b0eac7e39cecd8f3e7882563062903d0f
[ "MIT" ]
362
2016-09-08T16:25:30.000Z
2022-03-05T23:15:05.000Z
src/julia/tests/test_juliaoptions.py
dpinol/pyjulia
cec4bf0b0eac7e39cecd8f3e7882563062903d0f
[ "MIT" ]
85
2016-11-08T09:32:44.000Z
2022-03-03T13:10:37.000Z
import pytest from julia.core import JuliaOptions # fmt: off @pytest.mark.parametrize("kwargs, args", [ ({}, []), (dict(compiled_modules=None), []), (dict(compiled_modules=False), ["--compiled-modules", "no"]), (dict(compiled_modules="no"), ["--compiled-modules", "no"]), (dict(depwarn="error"), [...
28
65
0.655844
0
0
0
0
1,150
0.933442
0
0
251
0.203734
9e19326d841517afadd3d42542cc9b11a5c4a5d7
1,578
py
Python
tests/common.py
Algomorph/ext_argparse
fbca26f8a551f84677475a11fb5415ddda78abd9
[ "Apache-2.0" ]
1
2021-09-06T23:22:07.000Z
2021-09-06T23:22:07.000Z
tests/common.py
Algomorph/ext_argparse
fbca26f8a551f84677475a11fb5415ddda78abd9
[ "Apache-2.0" ]
11
2021-09-07T14:13:39.000Z
2021-09-29T15:17:46.000Z
tests/common.py
Algomorph/ext_argparse
fbca26f8a551f84677475a11fb5415ddda78abd9
[ "Apache-2.0" ]
null
null
null
import os import pathlib import typing import pytest from ext_argparse.parameter import Parameter from ext_argparse.param_enum import ParameterEnum from enum import Enum class RoofMaterial(Enum): SLATE = 0 METAL = 1 CONCRETE = 2 COMPOSITE = 3 SOLAR = 4 CLAY = 5 SYNTHETIC_BARREL = 6 S...
28.690909
116
0.693916
1,278
0.809886
0
0
114
0.072243
0
0
176
0.111534
9e1b5f4b3183d1482047160b015715a1f35d97f0
389
py
Python
lambda/exercices/PhotoCollector/photo_uploader_from_csv.py
Mythridor/aws-scripting
5f978ae7f2b05a40862cbe35d766534fcc40fef0
[ "MIT" ]
null
null
null
lambda/exercices/PhotoCollector/photo_uploader_from_csv.py
Mythridor/aws-scripting
5f978ae7f2b05a40862cbe35d766534fcc40fef0
[ "MIT" ]
null
null
null
lambda/exercices/PhotoCollector/photo_uploader_from_csv.py
Mythridor/aws-scripting
5f978ae7f2b05a40862cbe35d766534fcc40fef0
[ "MIT" ]
null
null
null
#! /usr/local/bin/Python3.5 import urllib.request with open("images.csv", 'r') as csv: i = 0 for line in csv: line = line.split(',') if line[1] != '' and line[1] != "\n": urllib.request.urlretrieve(line[1].encode('utf-8'), ("img_" + str(i) + ".jpg").encode('utf-8')) pri...
25.933333
107
0.524422
0
0
0
0
0
0
0
0
108
0.277635
9e1b7c970fedf5252f5d2635e9703e31344e54e5
1,031
py
Python
src/main/tools/api.py
NGnius/streamq
aa31085befc7da2e3f7461698b2638a246a73eef
[ "MIT" ]
null
null
null
src/main/tools/api.py
NGnius/streamq
aa31085befc7da2e3f7461698b2638a246a73eef
[ "MIT" ]
null
null
null
src/main/tools/api.py
NGnius/streamq
aa31085befc7da2e3f7461698b2638a246a73eef
[ "MIT" ]
null
null
null
''' API-related functions in one spot for convenience Created by NGnius 2019-06-15 ''' from flask import jsonify, request from threading import Semaphore, RLock def get_param(param, silent=False): if request.method == 'GET': return request.args.get(param) else: try: return request...
26.435897
69
0.693501
0
0
0
0
0
0
0
0
108
0.104753
9e1ba32a4a9094fb6f7a46a889dbdd7f780c6321
323
py
Python
run.py
kamidox/weixin_producthunt
24269da93e75374ee481b1b78257b18abda4d0c7
[ "BSD-3-Clause" ]
10
2015-01-07T06:01:13.000Z
2021-02-14T09:11:10.000Z
run.py
kamidox/weixin_producthunt
24269da93e75374ee481b1b78257b18abda4d0c7
[ "BSD-3-Clause" ]
3
2015-01-01T09:56:04.000Z
2015-01-06T01:34:44.000Z
run.py
kamidox/weixin_producthunt
24269da93e75374ee481b1b78257b18abda4d0c7
[ "BSD-3-Clause" ]
5
2015-01-01T10:31:50.000Z
2018-03-09T05:22:16.000Z
""" productporter ~~~~~~~~~~~~~~~~~~~~ helper for uwsgi :copyright: (c) 2014 by the ProductPorter Team. :license: BSD, see LICENSE for more details. """ from productporter.app import create_app from productporter.configs.production import ProductionConfig app = create_app(config=ProductionConfig(...
23.071429
61
0.693498
0
0
0
0
0
0
0
0
174
0.5387
9e1bee51dd0ea1878f4a4736c40b34f0977aa174
3,968
py
Python
built-in/PyTorch/Official/cv/image_classification/MobileNetV1_ID0094_for_PyTorch/benchmark.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/PyTorch/Official/cv/image_classification/MobileNetV1_ID0094_for_PyTorch/benchmark.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/PyTorch/Official/cv/image_classification/MobileNetV1_ID0094_for_PyTorch/benchmark.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# BSD 3-Clause License # # Copyright (c) 2017 xxxx # All rights reserved. # Copyright 2021 Huawei Technologies Co., Ltd # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain th...
35.115044
80
0.618952
1,415
0.356603
0
0
0
0
0
0
1,775
0.447329
9e1da62e19fe4f3008c5d21f24d0decbe6f6039d
1,012
py
Python
client/setup.py
nnabeyang/tepra-lite-esp32
69cbbafce6a3f8b0214178cc80d2fea024ab8c07
[ "MIT" ]
33
2021-09-04T08:46:48.000Z
2022-02-04T08:12:55.000Z
client/setup.py
nnabeyang/tepra-lite-esp32
69cbbafce6a3f8b0214178cc80d2fea024ab8c07
[ "MIT" ]
2
2021-09-28T12:05:21.000Z
2021-12-11T04:08:04.000Z
client/setup.py
nnabeyang/tepra-lite-esp32
69cbbafce6a3f8b0214178cc80d2fea024ab8c07
[ "MIT" ]
2
2021-09-28T10:51:27.000Z
2021-12-10T09:56:22.000Z
from setuptools import setup, find_packages __version__ = '1.0.0' __author__ = 'Takumi Sueda' __author_email__ = 'puhitaku@gmail.com' __license__ = 'MIT License' __classifiers__ = ( 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Progra...
29.764706
74
0.6917
0
0
0
0
0
0
0
0
436
0.43083
9e1db727da394433477d2ebb717048f5a98a0ab1
962
py
Python
03.Trabalhando_com_Arquivos/003.path_arquivos.py
heliton1986/Descubra_Python
66738b295b0c5f526529ce0588fa3189eff110a1
[ "MIT" ]
null
null
null
03.Trabalhando_com_Arquivos/003.path_arquivos.py
heliton1986/Descubra_Python
66738b295b0c5f526529ce0588fa3189eff110a1
[ "MIT" ]
null
null
null
03.Trabalhando_com_Arquivos/003.path_arquivos.py
heliton1986/Descubra_Python
66738b295b0c5f526529ce0588fa3189eff110a1
[ "MIT" ]
null
null
null
# Como trabalhar com paths from os import path import time def dadosArquivo(): # Verificar se o arquivo existe arquivoExiste = path.exists("./03.Trabalhando_com_Arquivos/NovoArquivo.txt") # Verificar se é diretório ehDiretorio = path.isdir("./03.Trabalhando_com_Arquivos/NovoArquivo.txt") # Verifi...
31.032258
96
0.745322
0
0
0
0
0
0
0
0
489
0.505165
9e210cf9cae77591487ca0d70ca7341aca8bd44a
16,303
py
Python
src/colorpredicate.py
petrusmassabki/color-predicate
828f62b50985cb795aa5b5743e4f7e5c305d2175
[ "MIT" ]
null
null
null
src/colorpredicate.py
petrusmassabki/color-predicate
828f62b50985cb795aa5b5743e4f7e5c305d2175
[ "MIT" ]
null
null
null
src/colorpredicate.py
petrusmassabki/color-predicate
828f62b50985cb795aa5b5743e4f7e5c305d2175
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import colorsys import cv2 import numpy as np from scipy.stats import multivariate_normal from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D class ColorPredicate: def __init__(self, name, images_path, n_max=10): self.name = name self._t...
37.825986
90
0.56235
16,098
0.987426
0
0
2,407
0.147642
0
0
5,784
0.354781
9e2177e43f0a318b03307485c7498c4b6cef36fa
2,127
py
Python
src/environments/migrations/0001_initial.py
nixplay/bullet-train-api
608422d174443a4d9178d875ccaeb756a771e908
[ "BSD-3-Clause" ]
1,259
2021-06-10T11:24:09.000Z
2022-03-31T10:30:44.000Z
src/environments/migrations/0001_initial.py
nixplay/bullet-train-api
608422d174443a4d9178d875ccaeb756a771e908
[ "BSD-3-Clause" ]
392
2021-06-10T11:12:29.000Z
2022-03-31T10:13:53.000Z
src/environments/migrations/0001_initial.py
nixplay/bullet-train-api
608422d174443a4d9178d875ccaeb756a771e908
[ "BSD-3-Clause" ]
58
2021-06-11T03:18:07.000Z
2022-03-31T14:39:10.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-05-25 15:41 from __future__ import unicode_literals import app.utils from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('projects', '0001_init...
39.388889
99
0.487541
1,918
0.90174
0
0
0
0
0
0
369
0.173484
9e23d085a14f192cef141c0732be27df361cf10b
4,456
py
Python
tests/test_basic_train.py
maxwellmckinnon/fastai
b67bf7184ac2be1825697709051c5bcba058a40d
[ "Apache-2.0" ]
1
2019-04-08T09:52:28.000Z
2019-04-08T09:52:28.000Z
tests/test_basic_train.py
maxwellmckinnon/fastai
b67bf7184ac2be1825697709051c5bcba058a40d
[ "Apache-2.0" ]
null
null
null
tests/test_basic_train.py
maxwellmckinnon/fastai
b67bf7184ac2be1825697709051c5bcba058a40d
[ "Apache-2.0" ]
1
2020-05-19T12:56:20.000Z
2020-05-19T12:56:20.000Z
""" module: basic_train.py - Model fitting methods docs : https://docs.fast.ai/train.html """ import pytest, fastai from fastai.vision import * from utils.fakes import * from utils.text import * from utils.mem import * from fastai.utils.mem import * from math import isclose torch_preload_mem() @pytest.fixture(scope...
38.08547
134
0.710727
0
0
0
0
2,396
0.537702
0
0
1,641
0.368268
9e246f8197a11b73a278225e329244b30642e5a1
196
py
Python
ch04/return.none.py
kxen42/Learn-Python-Programming-Third-Edition
851ddc5e6094fadd44f31a9ad1d3876456b04372
[ "MIT" ]
19
2021-11-05T22:54:09.000Z
2022-03-29T15:03:47.000Z
ch04/return.none.py
kxen42/Learn-Python-Programming-Third-Edition
851ddc5e6094fadd44f31a9ad1d3876456b04372
[ "MIT" ]
null
null
null
ch04/return.none.py
kxen42/Learn-Python-Programming-Third-Edition
851ddc5e6094fadd44f31a9ad1d3876456b04372
[ "MIT" ]
26
2021-11-12T17:04:50.000Z
2022-03-29T01:10:35.000Z
# return.none.py def func(): pass func() # the return of this call won't be collected. It's lost. a = func() # the return of this one instead is collected into `a` print(a) # prints: None
24.5
66
0.663265
0
0
0
0
0
0
0
0
140
0.714286
9e24c2357a655395c364e4237fd2c11303d74334
204
py
Python
pyperi/__init__.py
takeontom/PyPeri
181b6c60bf5ec5c57cd24418ee4524ed81c9a998
[ "MIT" ]
5
2017-03-10T10:43:07.000Z
2021-04-01T06:28:29.000Z
pyperi/__init__.py
takeontom/PyPeri
181b6c60bf5ec5c57cd24418ee4524ed81c9a998
[ "MIT" ]
359
2016-12-12T20:19:16.000Z
2022-03-28T09:04:19.000Z
pyperi/__init__.py
takeontom/PyPeri
181b6c60bf5ec5c57cd24418ee4524ed81c9a998
[ "MIT" ]
3
2018-08-12T13:38:30.000Z
2020-07-10T14:36:31.000Z
# -*- coding: utf-8 -*- __author__ = """Tom Smith""" __email__ = 'tom@takeontom.com' __version__ = '0.2.0' from pyperi.pyperi import Peri # noqa from pyperi.pyperi import PyPeriConnectionError # noqa
22.666667
55
0.70098
0
0
0
0
0
0
0
0
76
0.372549
f508079561b7a2a57df3ea9bb24da6c3cf24ed29
13,454
py
Python
examples/cartpole_example/test/cartpole_PID_MPC_sim.py
marcosfelt/sysid-neural-structures-fitting
80eda427251e8cce1d2a565b5cbca533252315e4
[ "MIT" ]
17
2019-11-15T06:27:05.000Z
2021-10-02T14:24:25.000Z
examples/cartpole_example/test/cartpole_PID_MPC_sim.py
marcosfelt/sysid-neural-structures-fitting
80eda427251e8cce1d2a565b5cbca533252315e4
[ "MIT" ]
null
null
null
examples/cartpole_example/test/cartpole_PID_MPC_sim.py
marcosfelt/sysid-neural-structures-fitting
80eda427251e8cce1d2a565b5cbca533252315e4
[ "MIT" ]
4
2020-09-03T17:01:34.000Z
2021-11-05T04:09:24.000Z
import numpy as np import scipy.sparse as sparse from scipy.integrate import ode from scipy.interpolate import interp1d import time import control import control.matlab import numpy.random import pandas as pd from ltisim import LinearStateSpaceSystem from pendulum_model import * from pyMPC.mpc import MPCController # R...
33.219753
179
0.612829
0
0
0
0
0
0
0
0
3,084
0.229226
f508880d35de4e5c61d56d0000d4001cccea0293
163
py
Python
server/controllers/main.py
eruixma/trading-app
3db3bbd27fdc405b9ecb41d9e68330899a3dcc6a
[ "BSD-2-Clause" ]
2
2019-03-27T04:46:29.000Z
2019-10-10T13:03:24.000Z
server/controllers/main.py
eruixma/trading-app
3db3bbd27fdc405b9ecb41d9e68330899a3dcc6a
[ "BSD-2-Clause" ]
1
2021-06-01T23:31:21.000Z
2021-06-01T23:31:21.000Z
server/controllers/main.py
eruixma/trading-app
3db3bbd27fdc405b9ecb41d9e68330899a3dcc6a
[ "BSD-2-Clause" ]
1
2021-08-19T03:09:05.000Z
2021-08-19T03:09:05.000Z
from flask import Blueprint, current_app main = Blueprint('main', __name__) @main.route('/') def home(): return current_app.send_static_file('index.html')
16.3
53
0.723926
0
0
0
0
82
0.503067
0
0
21
0.128834
f508dd3ad06395335728ce6e7db17f8e899fd2f6
2,221
py
Python
pypad/collab.py
candyninja001/pypad
82bfc104c2524ca54cc415d37d2c21fec471838f
[ "MIT" ]
null
null
null
pypad/collab.py
candyninja001/pypad
82bfc104c2524ca54cc415d37d2c21fec471838f
[ "MIT" ]
null
null
null
pypad/collab.py
candyninja001/pypad
82bfc104c2524ca54cc415d37d2c21fec471838f
[ "MIT" ]
null
null
null
from enum import Enum from .dev import Dev class Collab(Enum): UNKNOWN = -1 NONE = 0 RAGNAROK_ONLINE = 1 TAIKO_NO_TATSUJIN = 2 EMIL_CHRONICLE_ONLINE = 3 GUNMA_NO_YABOU = 5 CRYSTAL_DEFENDER = 6 FAMITSU = 7 PRINCESS_PUNT_SWEET = 8 ANDROID = 9 SHINRABANSHO_CHOCO = 10 CAPYBA...
24.677778
61
0.662765
2,177
0.980189
0
0
117
0.052679
0
0
190
0.085547
f50910b14f5b09655a9e1eaecc696a5cfe950b0f
4,923
py
Python
settings.py
msetzu/data-mining
9e01d00964004dea4a2aea88dfe855f785302ef1
[ "MIT" ]
1
2018-10-09T14:41:59.000Z
2018-10-09T14:41:59.000Z
settings.py
msetzu/data-mining
9e01d00964004dea4a2aea88dfe855f785302ef1
[ "MIT" ]
null
null
null
settings.py
msetzu/data-mining
9e01d00964004dea4a2aea88dfe855f785302ef1
[ "MIT" ]
null
null
null
import pandas as pd from matplotlib.colors import LinearSegmentedColormap # Dataset data = pd.read_csv("./hr.csv") entries = len(data) bins = 10 # Data analysis analysis = { "bins": 10, "balance_threshold": 0.1 } # Plot labels labels = ["satisfaction_level", "average_montly_hours", "last_...
30.018293
98
0.487508
0
0
0
0
0
0
0
0
1,964
0.398944
f509ca15e0e12b426c5e187595364f7eea92a920
397
py
Python
GCD - Euclidean (Basic)/Python3/gcdEuclid.py
i-vishi/ds-and-algo
90a8635db9570eb17539201be29ec1cfd4b5ae18
[ "MIT" ]
1
2021-03-01T04:15:08.000Z
2021-03-01T04:15:08.000Z
GCD - Euclidean (Basic)/Python3/gcdEuclid.py
i-vishi/ds-and-algo
90a8635db9570eb17539201be29ec1cfd4b5ae18
[ "MIT" ]
null
null
null
GCD - Euclidean (Basic)/Python3/gcdEuclid.py
i-vishi/ds-and-algo
90a8635db9570eb17539201be29ec1cfd4b5ae18
[ "MIT" ]
null
null
null
# Author: Vishal Gaur # Created: 17-01-2021 20:31:34 # function to find GCD using Basic Euclidean Algorithm def gcdEuclid(a, b): if a == 0: return b else: return gcdEuclid(b % a, a) # Driver Code to test above function a = 14 b = 35 g = gcdEuclid(a, b) print("GCD of", a, "&", b, "is: ", ...
17.26087
54
0.566751
0
0
0
0
0
0
0
0
179
0.450882
f50a95d4fbb66571658a68aa0a66854f9c5c4220
437
py
Python
src/my_package/todelete/modules/MotionSymmetryModule.py
laomao0/AIM_DAIN
8322569498d675d3b2c1f35475c1299cad580bde
[ "MIT" ]
3
2020-05-08T20:45:57.000Z
2021-01-18T11:32:38.000Z
src/my_package/todelete/modules/MotionSymmetryModule.py
laomao0/AIM_DAIN
8322569498d675d3b2c1f35475c1299cad580bde
[ "MIT" ]
null
null
null
src/my_package/todelete/modules/MotionSymmetryModule.py
laomao0/AIM_DAIN
8322569498d675d3b2c1f35475c1299cad580bde
[ "MIT" ]
null
null
null
# modules/InterpolationLayer.py from torch.nn import Module from functions.MotionSymmetryLayer import MotionSymmetryLayer class MotionSymmetryModule(Module): def __init__(self): super(MotionSymmetryModule, self).__init__() self.f = MotionSymmetryLayer() def forward(self, input1, input2): ...
29.133333
81
0.741419
312
0.713959
0
0
0
0
0
0
108
0.24714
f50adc78c47a350acb70a96ee1ecc3c1259e77a6
2,997
py
Python
steer.py
nlw0/pyPyrTools
91fc0932906054f6d43a32a205069aa25d884545
[ "MIT" ]
1
2020-10-13T14:40:39.000Z
2020-10-13T14:40:39.000Z
steer.py
umeshraj/pyPyrTools
91fc0932906054f6d43a32a205069aa25d884545
[ "MIT" ]
null
null
null
steer.py
umeshraj/pyPyrTools
91fc0932906054f6d43a32a205069aa25d884545
[ "MIT" ]
1
2018-04-26T10:06:47.000Z
2018-04-26T10:06:47.000Z
import numpy from steer2HarmMtx import steer2HarmMtx def steer(*args): ''' Steer BASIS to the specfied ANGLE. function res = steer(basis,angle,harmonics,steermtx) BASIS should be a matrix whose columns are vectorized rotated copies of a steerable function, or the responses of a set of s...
34.448276
93
0.621288
0
0
0
0
0
0
0
0
1,277
0.426093
f50baf297616723fd430fcda467e665dcd88c479
2,057
py
Python
pydest/pydest.py
henworth/pydest
9537696c39f36f8250082891ddcc0198142d22eb
[ "MIT" ]
null
null
null
pydest/pydest.py
henworth/pydest
9537696c39f36f8250082891ddcc0198142d22eb
[ "MIT" ]
null
null
null
pydest/pydest.py
henworth/pydest
9537696c39f36f8250082891ddcc0198142d22eb
[ "MIT" ]
null
null
null
import aiohttp import asyncio import os import zipfile from pydest.api import API from pydest.manifest import Manifest class Pydest: def __init__(self, api_key, loop=None, client_id=None, client_secret=None): """Base class for Pydest Args: api_key (str): Bungie.net A...
29.811594
96
0.619349
1,928
0.937287
0
0
0
0
1,023
0.497326
1,115
0.542052
f50ea0f4e8fc7432c99f5e054323909249a31983
784
py
Python
vaccinate/core/migrations/0120_geography_fields.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
7
2021-06-28T17:33:47.000Z
2022-02-12T21:54:59.000Z
vaccinate/core/migrations/0120_geography_fields.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
104
2021-06-17T21:25:30.000Z
2022-03-28T14:21:57.000Z
vaccinate/core/migrations/0120_geography_fields.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
1
2021-06-25T17:52:23.000Z
2021-06-25T17:52:23.000Z
# Generated by Django 3.2.1 on 2021-05-06 22:30 import django.contrib.gis.db.models.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("core", "0119_populate_source_location_point"), ] operations = [ migrations.AlterField( model_...
27.034483
68
0.58801
656
0.836735
0
0
0
0
0
0
130
0.165816
f50f1a90c240661a8974cc7923b38f46dce70bae
29,856
py
Python
views.py
milos-korenciak/2018.ossconf.sk
f121dde4f313a207e39c2f2e187bdad046b86592
[ "MIT" ]
7
2017-07-16T05:59:07.000Z
2018-01-22T09:35:21.000Z
views.py
milos-korenciak/2018.ossconf.sk
f121dde4f313a207e39c2f2e187bdad046b86592
[ "MIT" ]
17
2017-07-31T20:35:24.000Z
2018-02-26T22:00:12.000Z
views.py
milos-korenciak/2018.ossconf.sk
f121dde4f313a207e39c2f2e187bdad046b86592
[ "MIT" ]
13
2017-08-01T17:03:40.000Z
2021-11-02T13:24:30.000Z
#!/usr/bin/python # -*- coding: utf8 -*- import os import re import textwrap import requests import unicodedata from datetime import datetime, timedelta from flask import Flask, g, request, render_template, abort, make_response from flask_babel import Babel, gettext from jinja2 import evalcontextfilter, Markup app = ...
36.81381
190
0.612775
0
0
0
0
8,469
0.283548
0
0
11,783
0.394502
f50f7d07d1b11d4dc8dcf82534a3b3e6a3a87158
2,891
py
Python
ietf/community/migrations/0002_auto_20141222_1749.py
ekr/ietfdb
8d936836b0b9ff31cda415b0a423e3f5b33ab695
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2021-11-20T03:40:40.000Z
2021-11-20T03:40:42.000Z
ietf/community/migrations/0002_auto_20141222_1749.py
ekr/ietfdb
8d936836b0b9ff31cda415b0a423e3f5b33ab695
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ietf/community/migrations/0002_auto_20141222_1749.py
ekr/ietfdb
8d936836b0b9ff31cda415b0a423e3f5b33ab695
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('group', '0001_initial'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('commun...
32.483146
88
0.570391
2,749
0.950882
0
0
0
0
0
0
607
0.209962
f510f358811538f9c09860ccdb42030579e71a1a
928
py
Python
scripts/fishvalidate.py
justinbois/fishactivity
6c6ac06c391b75b2725e2e2a61dd80afc34daf31
[ "MIT" ]
null
null
null
scripts/fishvalidate.py
justinbois/fishactivity
6c6ac06c391b75b2725e2e2a61dd80afc34daf31
[ "MIT" ]
null
null
null
scripts/fishvalidate.py
justinbois/fishactivity
6c6ac06c391b75b2725e2e2a61dd80afc34daf31
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import fishact if __name__ == '__main__': parser = argparse.ArgumentParser( description='Validate data files.') parser.add_argument('activity_fname', metavar='activity_file', type=str, help='Name of activity file.') parser.add_argument...
37.12
78
0.519397
0
0
0
0
0
0
0
0
420
0.452586
f513b5c28a4eaca8eb08a50fccfcd5204171dfdc
1,682
py
Python
scripts/rescale.py
danydoerr/spp_dcj
1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a
[ "MIT" ]
2
2021-08-24T16:03:30.000Z
2022-03-18T14:52:43.000Z
scripts/rescale.py
danydoerr/spp_dcj
1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a
[ "MIT" ]
null
null
null
scripts/rescale.py
danydoerr/spp_dcj
1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from sys import stdout,stderr,exit from optparse import OptionParser from newick_parser import parse_tree_iterator, Branch from tree_span import calculateSpan from copy import deepcopy def rescale_absolute(tree, max_length): span = calculateSpan(tree) s = max_length/float(span) retu...
29
75
0.633175
0
0
0
0
0
0
0
0
314
0.186683
f51915e704bb43425413f02d24086079a01a04be
743
py
Python
mytest/playsnake.py
mrzhuzhe/stable-baselines3
6c3bc5fa4c3faba951099e3ccb5c74b763134b38
[ "MIT" ]
null
null
null
mytest/playsnake.py
mrzhuzhe/stable-baselines3
6c3bc5fa4c3faba951099e3ccb5c74b763134b38
[ "MIT" ]
null
null
null
mytest/playsnake.py
mrzhuzhe/stable-baselines3
6c3bc5fa4c3faba951099e3ccb5c74b763134b38
[ "MIT" ]
null
null
null
from stable_baselines3 import PPO import os from setup_gym_env import SnakeEnv import time #models_dir = "./models/1644408901/" + "40000" #models_dir = "./models/1644462865/" + "120000" #models_dir = "./models/1644466638/" + "100000" models_dir = "./models/1644485414/" + "100000" env = SnakeEnv() env.reset() model ...
22.515152
50
0.641992
0
0
0
0
0
0
0
0
272
0.366083
f519a4dd8609848cb4fec6b2221b463e32b9ae3b
13,105
py
Python
yoda2h5.py
iamholger/yodf5
79ad8d77fd2b48e1b71403339e2502b42a5435c8
[ "MIT" ]
4
2020-04-22T11:00:13.000Z
2020-12-16T17:49:47.000Z
yoda2h5.py
iamholger/yodf5
79ad8d77fd2b48e1b71403339e2502b42a5435c8
[ "MIT" ]
4
2020-12-17T16:26:16.000Z
2020-12-17T16:30:34.000Z
yoda2h5.py
iamholger/yodf5
79ad8d77fd2b48e1b71403339e2502b42a5435c8
[ "MIT" ]
2
2020-05-06T17:30:05.000Z
2020-12-16T17:58:23.000Z
#!/usr/bin/env python3 import yoda, sys import h5py import numpy as np def chunkIt(seq, num): avg = len(seq) / float(num) out = [] last = 0.0 while last < len(seq): out.append(seq[int(last):int(last + avg)]) last += avg # Fix size, sometimes there is spillover # TODO: replac...
37.766571
184
0.546814
0
0
0
0
0
0
0
0
4,694
0.358184
f51c993aef58b3c9c160f8b68cd78fc8daf5ff42
1,703
py
Python
main.py
RichezA/UnRecurZipper
dffe16811e3d79fdc20e0aada0f2ffe9c77da9a1
[ "MIT" ]
null
null
null
main.py
RichezA/UnRecurZipper
dffe16811e3d79fdc20e0aada0f2ffe9c77da9a1
[ "MIT" ]
null
null
null
main.py
RichezA/UnRecurZipper
dffe16811e3d79fdc20e0aada0f2ffe9c77da9a1
[ "MIT" ]
null
null
null
import zipfile import os import glob import sys # Actual directory that we could find somewhere class Folder: def __init__(self, path): self.path = path print("Current working folder is: " + self.path) self.checkForZippedFile() self.checkForDirectories() def checkForZip...
47.305556
116
0.593658
1,499
0.880211
0
0
0
0
0
0
514
0.30182
f51f1a4cfc64468547a1bf70b97687f67b00823c
634
py
Python
dagger/dag_creator/airflow/utils/operator_factories.py
jorgetagle/dagger
dafcfb9df904e512f050aefdacf6581c571bac23
[ "MIT" ]
null
null
null
dagger/dag_creator/airflow/utils/operator_factories.py
jorgetagle/dagger
dafcfb9df904e512f050aefdacf6581c571bac23
[ "MIT" ]
null
null
null
dagger/dag_creator/airflow/utils/operator_factories.py
jorgetagle/dagger
dafcfb9df904e512f050aefdacf6581c571bac23
[ "MIT" ]
null
null
null
from functools import partial from airflow.operators.python_operator import ShortCircuitOperator def make_control_flow(is_dummy_operator_short_circuit, dag): control_flow = ShortCircuitOperator( task_id="dummy-control-flow", dag=dag, provide_context=True, python_callable=partial(e...
25.36
84
0.747634
0
0
0
0
0
0
0
0
35
0.055205
f51fe70db140c3154b176531ad8f28b9ef267b5a
1,974
py
Python
predict_CNN.py
slimtomatillo/toxic_waste_dump
4bc820f0b31f4420e789af11a9338c475c068889
[ "MIT" ]
2
2018-07-13T16:44:24.000Z
2019-10-14T21:31:02.000Z
predict_CNN.py
slimtomatillo/toxic_waste_dump
4bc820f0b31f4420e789af11a9338c475c068889
[ "MIT" ]
null
null
null
predict_CNN.py
slimtomatillo/toxic_waste_dump
4bc820f0b31f4420e789af11a9338c475c068889
[ "MIT" ]
null
null
null
# Imports import pandas as pd import pickle from keras.models import load_model from preprocess import preprocess from preprocess import prep_text #Logging import logging logging.getLogger().setLevel(logging.INFO) logging.info('Loading comments to classify...') # Enter comment to be classified below comment_to_class...
24.675
78
0.670719
0
0
0
0
0
0
0
0
847
0.429078
f5209853412f11170538a00e749d5b0ede34e2eb
797
py
Python
299. Bulls and Cows.py
fossabot/leetcode-2
335f1aa3ee785320515c3d3f03c2cb2df3bc13ba
[ "MIT" ]
2
2018-02-26T09:12:19.000Z
2019-06-07T13:38:10.000Z
299. Bulls and Cows.py
fossabot/leetcode-2
335f1aa3ee785320515c3d3f03c2cb2df3bc13ba
[ "MIT" ]
1
2018-12-24T07:03:34.000Z
2018-12-24T07:03:34.000Z
299. Bulls and Cows.py
fossabot/leetcode-2
335f1aa3ee785320515c3d3f03c2cb2df3bc13ba
[ "MIT" ]
2
2018-12-24T07:01:03.000Z
2019-06-07T13:38:07.000Z
class Solution(object): def getHint(self, secret, guess): """ :type secret: str :type guess: str :rtype: str """ dic = {} countA = 0 setA = set() for i in range(len(secret)): if secret[i] == guess[i]: countA += 1 ...
28.464286
46
0.385194
796
0.998745
0
0
0
0
0
0
92
0.115433
f523394a40a39dc77c57c643a75603c33eb11af0
176
py
Python
lib/models/backbones/efficientdet/__init__.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
245
2019-11-29T02:55:25.000Z
2022-03-30T07:30:18.000Z
lib/models/backbones/efficientdet/__init__.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
24
2019-11-29T10:05:00.000Z
2022-03-30T07:16:06.000Z
lib/models/backbones/efficientdet/__init__.py
FishLiuabc/centerpose
555d753cd82693476f91f78c53aa4147f5a83015
[ "MIT" ]
45
2019-11-29T05:12:02.000Z
2022-03-21T02:20:36.000Z
from .efficientdet import EfficientDet def get_efficientdet(num_layers, cfg): model = EfficientDet(intermediate_channels=cfg.MODEL.INTERMEDIATE_CHANNEL) return model
25.142857
78
0.8125
0
0
0
0
0
0
0
0
0
0
f528bf891d405b1631574286911aea9a15dea4b2
1,566
py
Python
codesmith/CloudFormation/CogCondPreAuthSettings/cog_cond_pre_auth_settings.py
codesmith-gmbh/forge
43c334d829a727b48f8e21e273017c51394010f9
[ "Apache-2.0" ]
null
null
null
codesmith/CloudFormation/CogCondPreAuthSettings/cog_cond_pre_auth_settings.py
codesmith-gmbh/forge
43c334d829a727b48f8e21e273017c51394010f9
[ "Apache-2.0" ]
null
null
null
codesmith/CloudFormation/CogCondPreAuthSettings/cog_cond_pre_auth_settings.py
codesmith-gmbh/forge
43c334d829a727b48f8e21e273017c51394010f9
[ "Apache-2.0" ]
null
null
null
import json import logging import boto3 from box import Box from crhelper import CfnResource from schema import Optional import codesmith.common.naming as naming from codesmith.common.cfn import resource_properties from codesmith.common.schema import encoded_bool, non_empty_string, tolerant_schema from codesmith.comm...
29.54717
99
0.751596
0
0
0
0
594
0.37931
0
0
133
0.08493
f528d3c7d1c051d306cd7f8c1738faafc34bc81c
125
py
Python
Mundo 1/Exercicios/Desafio005.py
yWolfBR/Python-CursoEmVideo
17bab8ad3c4293daf8377c5d49242942845b3577
[ "MIT" ]
null
null
null
Mundo 1/Exercicios/Desafio005.py
yWolfBR/Python-CursoEmVideo
17bab8ad3c4293daf8377c5d49242942845b3577
[ "MIT" ]
null
null
null
Mundo 1/Exercicios/Desafio005.py
yWolfBR/Python-CursoEmVideo
17bab8ad3c4293daf8377c5d49242942845b3577
[ "MIT" ]
null
null
null
n = int(input('Digite um número: ')) print('Seu número é {}. O antecessor é {} e seu sucessor é {}'.format(n, n - 1, n + 1))
41.666667
87
0.592
0
0
0
0
0
0
0
0
81
0.623077
f52b501702b28918819f4339d418e24bd36e3fba
1,506
py
Python
geeksforgeeks/Data Structures/check_if_subtree.py
codervikash/online-courses
a60efad23af65080a98e7dd038fb2c750237b781
[ "MIT" ]
null
null
null
geeksforgeeks/Data Structures/check_if_subtree.py
codervikash/online-courses
a60efad23af65080a98e7dd038fb2c750237b781
[ "MIT" ]
null
null
null
geeksforgeeks/Data Structures/check_if_subtree.py
codervikash/online-courses
a60efad23af65080a98e7dd038fb2c750237b781
[ "MIT" ]
null
null
null
# Given two binary trees, check if the first tree is subtree of the second one. # A subtree of a tree T is a tree S consisting of a node in T and all of its descendants in T. # The subtree corresponding to the root node is the entire tree; the subtree corresponding to any other node is called a proper subtree. class...
20.351351
136
0.632802
133
0.088313
0
0
0
0
0
0
689
0.457503
f52c3d4d080221bb0849b2d7854dea28cf442e0d
619
py
Python
papi_sdk/models/search/hotelpage/affiliate.py
stanislav-losev/papi-sdk-python
4a296745d626ef13c6d1170e9d3569cb1c37eb3c
[ "MIT" ]
1
2022-02-01T08:53:24.000Z
2022-02-01T08:53:24.000Z
papi_sdk/models/search/hotelpage/affiliate.py
stanislav-losev/papi-sdk-python
4a296745d626ef13c6d1170e9d3569cb1c37eb3c
[ "MIT" ]
2
2021-01-18T07:57:29.000Z
2021-06-23T11:04:14.000Z
papi_sdk/models/search/hotelpage/affiliate.py
stanislav-losev/papi-sdk-python
4a296745d626ef13c6d1170e9d3569cb1c37eb3c
[ "MIT" ]
3
2020-12-30T13:09:45.000Z
2020-12-30T13:42:33.000Z
from typing import List, Optional from papi_sdk.models.search.base_affiliate_response import ( BaseAffiliateSearchData, BaseAffiliateSearchResponse, BaseHotel, BaseRate, ) from papi_sdk.models.search.base_request import BaseAffiliateRequest class AffiliateHotelPageRequest(BaseAffiliateRequest): i...
20.633333
68
0.799677
346
0.558966
0
0
0
0
0
0
0
0
f52d16005d54fc06009e6a33b0d9fa26ef35fd47
2,093
py
Python
dl_tutorials/torch_neural_networks.py
learnerzhang/AnalyticsVidhya
697689a24a9d73785164512cab8ac4ee5494afe8
[ "Apache-2.0" ]
1
2018-07-04T09:14:26.000Z
2018-07-04T09:14:26.000Z
dl_tutorials/torch_neural_networks.py
learnerzhang/AnalyticsVidhya
697689a24a9d73785164512cab8ac4ee5494afe8
[ "Apache-2.0" ]
null
null
null
dl_tutorials/torch_neural_networks.py
learnerzhang/AnalyticsVidhya
697689a24a9d73785164512cab8ac4ee5494afe8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019-01-02 16:44 # @Author : zhangzhen # @Site : # @File : torch_neural_networks.py # @Software: PyCharm import torch import torch.nn as nn import torch.nn.functional as F class Net(nn.Module): def __init__(self): super(Net, self).__init_...
26.493671
77
0.592929
1,087
0.517373
0
0
0
0
0
0
493
0.23465
f52eac71ac3094d6c2f5d753f7dc5413e91d3ecd
422
py
Python
webhook.py
cadamswaite/RPI-Jekyll-Compiler
acf905b11f41c3bda286d4907a038b7888b1c8fa
[ "Unlicense" ]
null
null
null
webhook.py
cadamswaite/RPI-Jekyll-Compiler
acf905b11f41c3bda286d4907a038b7888b1c8fa
[ "Unlicense" ]
null
null
null
webhook.py
cadamswaite/RPI-Jekyll-Compiler
acf905b11f41c3bda286d4907a038b7888b1c8fa
[ "Unlicense" ]
null
null
null
from bottle import route, run, template gitdict = {'po2go':{'https://github.com/cadamswaite/po2go.git:master':'https://github.com/cadamswaite/po2go.git:gh-pages'}} # Handle http requests to the root address @route('/') def index(): return 'Go away.' @route('/build/<name>') def greet(name): if name in gitdict: r...
23.444444
123
0.684834
0
0
0
0
178
0.421801
0
0
219
0.518957
f52ec88be52c378180af93ce81749dca618e2061
2,577
py
Python
shldn/leonard.py
arrieta/shldn
8335aaeb1bfe91698bd9dfb83487393ede9225e6
[ "MIT" ]
null
null
null
shldn/leonard.py
arrieta/shldn
8335aaeb1bfe91698bd9dfb83487393ede9225e6
[ "MIT" ]
null
null
null
shldn/leonard.py
arrieta/shldn
8335aaeb1bfe91698bd9dfb83487393ede9225e6
[ "MIT" ]
null
null
null
""" Leonard always DRIVES Sheldon (this module is the __main__ driver for Sheldon) """ import argparse import sys import os try: from cooper import Sheldon except: from .cooper import Sheldon # Extensions for python source files EXTENSIONS = [".py", ".mpy"] def parse_commandline(): parser = argparse.Argu...
28.633333
89
0.592549
0
0
0
0
0
0
0
0
564
0.218859
f52eee40e1e0d598ea7f901674518fc574586952
705
py
Python
tests/002_finder/003_changeextension.py
Sam-prog-sudo/boussole
5d6ec94356f9a91ff4d6d23c1700d3512b67006a
[ "MIT" ]
13
2016-05-19T15:18:41.000Z
2022-03-22T15:37:32.000Z
tests/002_finder/003_changeextension.py
Sam-prog-sudo/boussole
5d6ec94356f9a91ff4d6d23c1700d3512b67006a
[ "MIT" ]
38
2016-04-07T00:30:58.000Z
2022-02-28T13:29:33.000Z
tests/002_finder/003_changeextension.py
Sam-prog-sudo/boussole
5d6ec94356f9a91ff4d6d23c1700d3512b67006a
[ "MIT" ]
3
2016-05-20T09:21:57.000Z
2020-10-12T10:56:49.000Z
# -*- coding: utf-8 -*- def test_001(settings, finder): result = finder.change_extension("foo.scss", 'css') assert result == "foo.css" def test_002(settings, finder): result = finder.change_extension("foo.backup.scss", 'css') assert result == "foo.backup.css" def test_003(settings, finder): re...
26.111111
72
0.670922
0
0
0
0
0
0
0
0
219
0.310638
f52efbe88e2653ae5d1fd37a74f972d83828b114
40,749
py
Python
Lib/site-packages/cherrypy/test/test_core.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
Lib/site-packages/cherrypy/test/test_core.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
Lib/site-packages/cherrypy/test/test_core.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
"""Basic tests for the CherryPy core: request handling.""" from cherrypy.test import test test.prefer_parent_path() import cherrypy from cherrypy import _cptools, tools from cherrypy.lib import http, static import types import os localDir = os.path.dirname(__file__) log_file = os.path.join(localDir, "test.log") log_...
38.370056
104
0.545289
38,996
0.956981
12,795
0.313995
0
0
0
0
15,359
0.376917
f52efca4ad0dbdcec53aee2fa61bc784274e7d40
1,036
py
Python
day4/solution1.py
zirne/aoc19
98feea895f0113ef60738723ca976dcbef0629b9
[ "MIT" ]
null
null
null
day4/solution1.py
zirne/aoc19
98feea895f0113ef60738723ca976dcbef0629b9
[ "MIT" ]
null
null
null
day4/solution1.py
zirne/aoc19
98feea895f0113ef60738723ca976dcbef0629b9
[ "MIT" ]
null
null
null
# Solution 1 def readInputFile(filename): f = open(filename, "r") inputString = f.read() f.close() return inputString input = readInputFile("input.txt").strip() print(input) lowest = input.split("-")[0] highest = input.split("-")[1] current = int(input.split("-")[0]) print(lowest) print(highest) def checkNever...
18.836364
70
0.621622
0
0
0
0
0
0
0
0
225
0.217181
f52fa19632597f93eba421103fbc7100653b7f9d
763
py
Python
e2e/Tests/Transactions/Verify.py
rikublock/Meros
7a3ae9c78af388eb523bc8a2c840018fc058ef44
[ "CC0-1.0" ]
null
null
null
e2e/Tests/Transactions/Verify.py
rikublock/Meros
7a3ae9c78af388eb523bc8a2c840018fc058ef44
[ "CC0-1.0" ]
null
null
null
e2e/Tests/Transactions/Verify.py
rikublock/Meros
7a3ae9c78af388eb523bc8a2c840018fc058ef44
[ "CC0-1.0" ]
1
2021-02-08T23:46:35.000Z
2021-02-08T23:46:35.000Z
#Transactions classes. from e2e.Classes.Transactions.Transaction import Transaction from e2e.Classes.Transactions.Transactions import Transactions #TestError Exception. from e2e.Tests.Errors import TestError #RPC class. from e2e.Meros.RPC import RPC #Sleep standard function. from time import sleep #Verify a Transac...
23.84375
80
0.756225
0
0
0
0
0
0
0
0
229
0.300131
f52fef7331b7922effcc0ce7dc2004ff0e5e1b57
149
py
Python
src/pygame_utils/sprite/gamecomponent.py
MarronEyes/pygame_utils
27a1f1328533d04c20ccb95208d44fda3be81a09
[ "MIT" ]
null
null
null
src/pygame_utils/sprite/gamecomponent.py
MarronEyes/pygame_utils
27a1f1328533d04c20ccb95208d44fda3be81a09
[ "MIT" ]
null
null
null
src/pygame_utils/sprite/gamecomponent.py
MarronEyes/pygame_utils
27a1f1328533d04c20ccb95208d44fda3be81a09
[ "MIT" ]
null
null
null
import pygame from graphics.component import Component class GameComponent(Component): def __init__(self) -> None: super().__init__()
16.555556
40
0.718121
91
0.610738
0
0
0
0
0
0
0
0
f5301087690900f18790595cf080153f91b40dd0
954
py
Python
motivation_quote/app.py
lukas-weiss/motivation-quote
90c73342a71f6a8f8b5339b5d080d19ac67083b7
[ "MIT" ]
null
null
null
motivation_quote/app.py
lukas-weiss/motivation-quote
90c73342a71f6a8f8b5339b5d080d19ac67083b7
[ "MIT" ]
null
null
null
motivation_quote/app.py
lukas-weiss/motivation-quote
90c73342a71f6a8f8b5339b5d080d19ac67083b7
[ "MIT" ]
null
null
null
import json import os.path import logging import csv from random import randint logger = logging.getLogger() logger.setLevel(logging.INFO) def get_quote(file): if os.path.exists(file): with open(file) as csvfile: quotes = list(csv.reader(csvfile, delimiter=';')) max_quotes = len(quo...
25.105263
61
0.603774
0
0
0
0
0
0
0
0
102
0.106918
f531e1bea64fba94ad609a7c42aeb9cf4d1498ca
3,142
py
Python
tools/extract_textline.py
bitcoder-17/scale-digits-recognition
b75c658ffdc830784ae4be9c007909e4c8f1d695
[ "MIT" ]
null
null
null
tools/extract_textline.py
bitcoder-17/scale-digits-recognition
b75c658ffdc830784ae4be9c007909e4c8f1d695
[ "MIT" ]
null
null
null
tools/extract_textline.py
bitcoder-17/scale-digits-recognition
b75c658ffdc830784ae4be9c007909e4c8f1d695
[ "MIT" ]
null
null
null
from pathlib import Path import cv2 import json import math import numpy as np from argparse import ArgumentParser def distance(p1, p2): return math.sqrt((p2[0] - p1[0])**2 + (p2[1] - p1[1])**2) def order_points(points): pts = {} for x1, y1 in points: count_x_larger = 0 count_x_smaller =...
33.073684
85
0.54965
0
0
0
0
0
0
0
0
248
0.078931
f532177c4078c1e01572de399b2bc77a18421da8
14,159
py
Python
blender/2.79/scripts/addons/io_coat3D/tex.py
uzairakbar/bpy2.79
3a3e0004ac6783c4e4b89d939e4432de99026a85
[ "MIT" ]
2
2019-11-27T09:05:42.000Z
2020-02-20T01:25:23.000Z
io_coat3D/tex.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
null
null
null
io_coat3D/tex.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
4
2020-02-19T20:02:26.000Z
2022-02-11T18:47:56.000Z
# ***** BEGIN GPL LICENSE BLOCK ***** # # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distribute...
42.139881
127
0.634296
0
0
0
0
0
0
0
0
1,381
0.097535
f5327046ce5fcde6d3a6fd1f71b52eace22cd4ab
3,613
py
Python
proxy_prometheus_alerts.py
mhagander/promnagios
12329b7abbbb76746784c4b706f4784c63bae194
[ "PostgreSQL" ]
1
2019-06-07T14:10:14.000Z
2019-06-07T14:10:14.000Z
proxy_prometheus_alerts.py
mhagander/promnagios
12329b7abbbb76746784c4b706f4784c63bae194
[ "PostgreSQL" ]
null
null
null
proxy_prometheus_alerts.py
mhagander/promnagios
12329b7abbbb76746784c4b706f4784c63bae194
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/env python3 # # Proxy alerts generated by Prometheus Alertmanager turning them into # nagios passive alert information. # # Copyright 2019-2020, PostgreSQL Infrastructure Team # Author: Magnus Hagander # import argparse import http.server import json import time import sys missed_alerts = 0 def send_nag...
30.361345
82
0.568779
1,677
0.464157
0
0
0
0
0
0
966
0.267368
f53445eedfca0ebec216d205d17da7023b06710f
172
py
Python
QuantLib/tsa/smooth/__init__.py
wanhanwan/Packages
14dfbd70603d45bb6c8c161c56b9ed9cf7c301d3
[ "MIT" ]
5
2018-06-29T16:56:10.000Z
2019-06-20T03:31:44.000Z
QuantLib/tsa/smooth/__init__.py
wanhanwan/Packages
14dfbd70603d45bb6c8c161c56b9ed9cf7c301d3
[ "MIT" ]
null
null
null
QuantLib/tsa/smooth/__init__.py
wanhanwan/Packages
14dfbd70603d45bb6c8c161c56b9ed9cf7c301d3
[ "MIT" ]
3
2018-06-25T06:37:17.000Z
2018-11-22T08:12:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # __init__.py # @Author : wanhanwan (wanshuai_shufe@163.com) # @Date : 2019/11/25 下午1:20:12 from .filter import llt_filter
24.571429
46
0.668605
0
0
0
0
0
0
0
0
140
0.795455
f53682f7365da61bd7d0f3f72b18779b18999529
173
py
Python
pred_learn/utils/various.py
EqThinker/deep-track
c72dc7b182c66c13fb6f5df38b6ed6e78f625a41
[ "Apache-2.0" ]
null
null
null
pred_learn/utils/various.py
EqThinker/deep-track
c72dc7b182c66c13fb6f5df38b6ed6e78f625a41
[ "Apache-2.0" ]
8
2020-09-25T23:51:58.000Z
2022-02-10T00:32:55.000Z
pred_learn/utils/various.py
EqThinker/deep-track
c72dc7b182c66c13fb6f5df38b6ed6e78f625a41
[ "Apache-2.0" ]
null
null
null
def get_n_params(model): pp=0 for p in list(model.parameters()): nn=1 for s in list(p.size()): nn = nn*s pp += nn return pp
17.3
38
0.479769
0
0
0
0
0
0
0
0
0
0
f536be230ab9f47d327f6fa5a8e54f230ab096d9
1,745
py
Python
chatServer/server.py
RobbeBryssinck/chatApplication
628ab6acb2b19d26d3e5c064cbea14747041f43e
[ "MIT" ]
null
null
null
chatServer/server.py
RobbeBryssinck/chatApplication
628ab6acb2b19d26d3e5c064cbea14747041f43e
[ "MIT" ]
null
null
null
chatServer/server.py
RobbeBryssinck/chatApplication
628ab6acb2b19d26d3e5c064cbea14747041f43e
[ "MIT" ]
null
null
null
import socket import sys import os import optparse from threading import * def createServer(ip, port): # create a TCP socket sck = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # bind the socket to the port server_address = (ip, port) print("starting up on {} port {}".format(*server_address)) sck.bind(ser...
19.606742
91
0.676218
0
0
0
0
0
0
0
0
450
0.25788
f537b763bb0939c0d65ba5d32dd7d3fcdadbcca3
1,502
py
Python
tests/test_utils_bytes.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
tests/test_utils_bytes.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
tests/test_utils_bytes.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: ascii -*- """ Byte utilities testing. :date: 2021 :author: Christian Wiche :contact: cwichel@gmail.com :license: The MIT License (MIT) """ import unittest from embutils.utils import bitmask, reverse_bits, reverse_bytes # -->> Definitions <<------------------ # -->> Tes...
23.107692
63
0.581891
1,062
0.707057
0
0
0
0
0
0
631
0.420107
f538ca85acdf301ac647a1ecf10d45b209f9fdd3
2,419
py
Python
events/migrations/0020_add_event_comments.py
alysivji/GetTogether
403d9945fff019701de41d081ad4452e771e1ce1
[ "BSD-2-Clause" ]
446
2018-01-21T09:22:41.000Z
2022-03-25T17:46:12.000Z
events/migrations/0020_add_event_comments.py
alysivji/GetTogether
403d9945fff019701de41d081ad4452e771e1ce1
[ "BSD-2-Clause" ]
272
2018-01-03T16:55:39.000Z
2022-03-11T23:12:30.000Z
events/migrations/0020_add_event_comments.py
alysivji/GetTogether
403d9945fff019701de41d081ad4452e771e1ce1
[ "BSD-2-Clause" ]
100
2018-01-27T02:04:15.000Z
2021-09-09T09:02:21.000Z
# Generated by Django 2.0 on 2018-03-24 02:55 import datetime import django.db.models.deletion from django.db import migrations, models import mptt.fields class Migration(migrations.Migration): dependencies = [("events", "0019_add_org_slug")] operations = [ migrations.CreateModel( nam...
32.689189
88
0.47871
2,258
0.933444
0
0
0
0
0
0
317
0.131046
f53bf8a6756951f510b486992b5a699a1e895570
13,529
py
Python
ant_algorithm.py
devancakra/Ant-Algorithm-Pencarian-Rute-Tercepat
d766c94ab862e2856412ee19cb883033b914bd3f
[ "MIT" ]
1
2021-11-08T12:53:16.000Z
2021-11-08T12:53:16.000Z
ant_algorithm.py
devancakra/Ant-Algorithm-Pencarian-Rute-Tercepat
d766c94ab862e2856412ee19cb883033b914bd3f
[ "MIT" ]
null
null
null
ant_algorithm.py
devancakra/Ant-Algorithm-Pencarian-Rute-Tercepat
d766c94ab862e2856412ee19cb883033b914bd3f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Ant_Algorithm.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1Zjt1SInhoaFEqSmsPjEfWQE7jhugAvZA # **ANT ALGORITHM BY KELOMPOK 9** 1. Heri Khariono - 18081010002 2. Devan Cakra Mudra Wijaya - 18081010013 3. Ika Nur Habib...
46.332192
168
0.663612
6,919
0.51142
0
0
0
0
0
0
4,040
0.298618
f53d0274845ff18a273019ee23bb400432511d7c
588
py
Python
utils/tool.py
yongleex/SBCC
40f8e67e446fc14fc82ea87f82ee841d62520c71
[ "MIT" ]
4
2021-09-04T04:02:57.000Z
2021-12-27T13:27:26.000Z
utils/tool.py
yongleex/SBCC
40f8e67e446fc14fc82ea87f82ee841d62520c71
[ "MIT" ]
1
2021-09-10T07:40:36.000Z
2022-01-02T06:23:12.000Z
utils/tool.py
yongleex/SBCC
40f8e67e446fc14fc82ea87f82ee841d62520c71
[ "MIT" ]
1
2021-09-10T07:36:29.000Z
2021-09-10T07:36:29.000Z
import numpy as np from scipy.ndimage import maximum_filter class AttrDict(dict): __setattr__ = dict.__setitem__ __getattr__ = dict.__getitem__ def signal2noise(r_map): """ Compute the signal-to-noise ratio of correlation plane. w*h*c""" r = r_map.copy() max_r = maximum_filter(r_map, (5,5,1)...
18.375
63
0.612245
91
0.154762
0
0
0
0
0
0
82
0.139456
f53f1078d0ccf6010a2d5acd1664c6d7881e41c8
8,584
py
Python
bjtunlp/train.py
bigbosskai/bjtunlp
58d8ca53fa1d99df2f47f10a0780619c4cdba22f
[ "MIT" ]
1
2020-12-16T07:18:00.000Z
2020-12-16T07:18:00.000Z
bjtunlp/train.py
bigbosskai/bjtunlp
58d8ca53fa1d99df2f47f10a0780619c4cdba22f
[ "MIT" ]
null
null
null
bjtunlp/train.py
bigbosskai/bjtunlp
58d8ca53fa1d99df2f47f10a0780619c4cdba22f
[ "MIT" ]
1
2022-03-12T16:41:32.000Z
2022-03-12T16:41:32.000Z
import os import time import argparse from tqdm import tqdm import torch from torch import optim from torch import nn from fastNLP import BucketSampler from fastNLP import logger from fastNLP import DataSetIter from fastNLP import Tester from fastNLP import cache_results from bjtunlp.models import BertParser from b...
48.224719
203
0.65028
0
0
0
0
548
0.063455
0
0
2,398
0.277675
f53f3f14419ce7e5f5fb052bfc8906e374ee8971
7,978
py
Python
archived/functions/sync_elasticache/redis/LR_sync_redis_model_reuse.py
DS3Lab/LambdaML
0afca7819e08632ba116fec8e102084e4040a47a
[ "Apache-2.0" ]
23
2021-05-17T09:24:24.000Z
2022-01-29T18:40:44.000Z
archived/functions/sync_elasticache/redis/LR_sync_redis_model_reuse.py
DS3Lab/LambdaML
0afca7819e08632ba116fec8e102084e4040a47a
[ "Apache-2.0" ]
2
2021-05-17T16:15:12.000Z
2021-07-20T09:11:22.000Z
archived/functions/sync_elasticache/redis/LR_sync_redis_model_reuse.py
DS3Lab/LambdaML
0afca7819e08632ba116fec8e102084e4040a47a
[ "Apache-2.0" ]
3
2021-05-17T09:31:53.000Z
2021-12-02T16:29:59.000Z
import time import torch from torch.autograd import Variable from torch.utils.data.sampler import SubsetRandomSampler from archived.elasticache import redis_init from archived.s3.get_object import get_object from archived.old_model import LogisticRegression from data_loader.libsvm_dataset import DenseDatas...
44.322222
120
0.587741
0
0
0
0
0
0
0
0
1,654
0.20732
f53f7ca7e55025431c0eddd3b58db5224cb4211d
177
py
Python
src/params/NeuronTypes.py
thatmariia/grid-ping
3c32e48226adddcffba605573daa80cca02b5a57
[ "BSD-4-Clause" ]
null
null
null
src/params/NeuronTypes.py
thatmariia/grid-ping
3c32e48226adddcffba605573daa80cca02b5a57
[ "BSD-4-Clause" ]
null
null
null
src/params/NeuronTypes.py
thatmariia/grid-ping
3c32e48226adddcffba605573daa80cca02b5a57
[ "BSD-4-Clause" ]
null
null
null
from enum import Enum class NeuronTypes(Enum): """ Enum class containing neuron types: excitatory and inhibitory. """ EX = "excitatory" IN = "inhibitory"
16.090909
66
0.649718
152
0.858757
0
0
0
0
0
0
102
0.576271
f5401cd673d6e1e3eddd77c34fed0869702ad889
2,346
py
Python
src/backend/common/manipulators/team_manipulator.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
src/backend/common/manipulators/team_manipulator.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
src/backend/common/manipulators/team_manipulator.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
from typing import List from backend.common.cache_clearing import get_affected_queries from backend.common.manipulators.manipulator_base import ManipulatorBase from backend.common.models.cached_model import TAffectedReferences from backend.common.models.team import Team class TeamManipulator(ManipulatorBase[Team]): ...
37.238095
101
0.656436
2,071
0.882779
0
0
813
0.346547
0
0
1,274
0.543052
f5405ca41fa935c1df325e78905e0a54820977fe
179
py
Python
dtf/packages/settings.py
WebPowerLabs/django-trainings
97f7a96c0fbeb85a001201c74713f7944cb77236
[ "BSD-3-Clause" ]
null
null
null
dtf/packages/settings.py
WebPowerLabs/django-trainings
97f7a96c0fbeb85a001201c74713f7944cb77236
[ "BSD-3-Clause" ]
null
null
null
dtf/packages/settings.py
WebPowerLabs/django-trainings
97f7a96c0fbeb85a001201c74713f7944cb77236
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings INFUSIONSOFT_COMPANY = getattr(settings, 'INFUSIONSOFT_COMPANY_ID', None) INFUSIONSOFT_API_KEY = getattr(settings, 'INFUSIONSOFT_API_KEY', None)
35.8
73
0.832402
0
0
0
0
0
0
0
0
47
0.26257
f5450958d50c031030e18504e081e98ce995e8e8
3,680
py
Python
measures/over_under_exposure_measure/over_under_exposure_measure.py
HensoldtOptronicsCV/ImageQualityAssessment
7bb3af2cd20a32415966304c8fa3acb77c54f85d
[ "MIT" ]
8
2020-06-12T12:49:19.000Z
2021-04-27T12:10:49.000Z
measures/over_under_exposure_measure/over_under_exposure_measure.py
HensoldtOptronicsCV/ImageQualityAssessment
7bb3af2cd20a32415966304c8fa3acb77c54f85d
[ "MIT" ]
null
null
null
measures/over_under_exposure_measure/over_under_exposure_measure.py
HensoldtOptronicsCV/ImageQualityAssessment
7bb3af2cd20a32415966304c8fa3acb77c54f85d
[ "MIT" ]
5
2020-04-18T11:30:47.000Z
2022-03-04T07:05:21.000Z
# MIT License # # Copyright (c) 2020 HENSOLDT # # 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, pub...
41.818182
137
0.741848
0
0
0
0
0
0
0
0
2,510
0.682065
f54590a9d9506eac6f07374f1bb10c88ce804b14
2,567
py
Python
tests/test_cascade.py
mathDR/jax-pilco
c6c75cd8d43ba894d8f1da2cf6b7c0eea5e43527
[ "BSD-3-Clause" ]
null
null
null
tests/test_cascade.py
mathDR/jax-pilco
c6c75cd8d43ba894d8f1da2cf6b7c0eea5e43527
[ "BSD-3-Clause" ]
null
null
null
tests/test_cascade.py
mathDR/jax-pilco
c6c75cd8d43ba894d8f1da2cf6b7c0eea5e43527
[ "BSD-3-Clause" ]
null
null
null
from pilco.models.pilco import PILCO import jax.numpy as jnp import numpy as np import objax import os import oct2py import logging oc = oct2py.Oct2Py(logger=oct2py.get_log()) oc.logger = oct2py.get_log("new_log") oc.logger.setLevel(logging.INFO) dir_path = os.path.dirname(os.path.realpath("__file__")) + "/tests/Matla...
27.602151
86
0.638878
0
0
0
0
0
0
0
0
424
0.165173
f545d16ab5e716cdb065a0e70787360e7d612aef
275
py
Python
server/services/main.py
Jordonkopp/Flask-Vue
db842f1a31f2ca4cf51ce1b2a927d6d2ad860c00
[ "MIT" ]
2
2019-02-27T16:55:01.000Z
2019-02-27T20:23:29.000Z
server/services/main.py
Jordonkopp/Flask-Vue
db842f1a31f2ca4cf51ce1b2a927d6d2ad860c00
[ "MIT" ]
5
2020-04-30T00:01:01.000Z
2021-10-05T19:42:15.000Z
server/services/main.py
Jordonkopp/Flask-Vue
db842f1a31f2ca4cf51ce1b2a927d6d2ad860c00
[ "MIT" ]
null
null
null
from flask import Blueprint, redirect, url_for from server.utils.core_utils import logger # Create Blueprint main = Blueprint("main", __name__) # redirect when you visit / @main.route("/") def index(): logger.info("Base redirect") return redirect(url_for('keys'))
21.153846
46
0.727273
0
0
0
0
99
0.36
0
0
75
0.272727
f5465045af39eda12ecdfeb4fa359c70d7f7cca7
528
py
Python
api/migrations/0003_group_post.py
KolesnikRV/api_final_yatube
23fdd8b6c2a55ff5c70c62b58ecd69ff1dd23e7d
[ "BSD-3-Clause" ]
null
null
null
api/migrations/0003_group_post.py
KolesnikRV/api_final_yatube
23fdd8b6c2a55ff5c70c62b58ecd69ff1dd23e7d
[ "BSD-3-Clause" ]
null
null
null
api/migrations/0003_group_post.py
KolesnikRV/api_final_yatube
23fdd8b6c2a55ff5c70c62b58ecd69ff1dd23e7d
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-07 06:43 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0002_auto_20210306_1136'), ] operations = [ migrations.AddField( model_name='group', ...
25.142857
132
0.63447
402
0.761364
0
0
0
0
0
0
107
0.202652
f546b5a71740ed44a893660c0c2c42d95a14bc63
111
py
Python
iflow/model/cflows/__init__.py
WeitaoZC/iflow
404ffdbeb27d9fae7d1350de6af84ed7bfdaad99
[ "MIT" ]
11
2020-11-01T06:03:57.000Z
2022-03-10T01:14:03.000Z
iflow/model/cflows/__init__.py
WeitaoZC/iflow
404ffdbeb27d9fae7d1350de6af84ed7bfdaad99
[ "MIT" ]
1
2022-03-14T21:32:51.000Z
2022-03-14T21:32:51.000Z
iflow/model/cflows/__init__.py
WeitaoZC/iflow
404ffdbeb27d9fae7d1350de6af84ed7bfdaad99
[ "MIT" ]
2
2021-02-03T02:41:14.000Z
2021-06-08T16:31:02.000Z
from .odefunc import (ODEnet, ODEfunc) from .cnf import CNF from .diffeq_layers import *
22.2
30
0.621622
0
0
0
0
0
0
0
0
0
0
f547d48b9bf65696e52de1543f4c4b442a9e0501
2,042
py
Python
python/general-python/create-replica-and-download/createReplicaAndDownload.py
claudeshyaka-esri/developer-support
016940d74f92a78f362900ab5329aa88c27d0a43
[ "Apache-2.0" ]
272
2015-02-11T16:26:39.000Z
2022-03-31T08:47:33.000Z
python/general-python/create-replica-and-download/createReplicaAndDownload.py
claudeshyaka-esri/developer-support
016940d74f92a78f362900ab5329aa88c27d0a43
[ "Apache-2.0" ]
254
2015-02-11T01:12:35.000Z
2021-04-22T22:14:20.000Z
python/general-python/create-replica-and-download/createReplicaAndDownload.py
claudeshyaka-esri/developer-support
016940d74f92a78f362900ab5329aa88c27d0a43
[ "Apache-2.0" ]
211
2015-02-10T00:09:07.000Z
2022-02-24T12:27:40.000Z
import urllib, urllib2, json, time, os username = "username" #CHANGE password = "password" #CHANGE replicaURL = "feature service url/FeatureServer/createReplica" #CHANGE replicaLayers = [0] ...
34.610169
85
0.642018
0
0
0
0
0
0
0
0
643
0.314887
f54a3cae489a26d054375f7cc639c9b189e844de
10,980
py
Python
tests/test_dsl.py
os-climate/declarative-trino-access-control
8a810fccaca0e089cd17d4a1c888da7bcb36063e
[ "Apache-2.0" ]
null
null
null
tests/test_dsl.py
os-climate/declarative-trino-access-control
8a810fccaca0e089cd17d4a1c888da7bcb36063e
[ "Apache-2.0" ]
4
2022-01-15T14:37:21.000Z
2022-03-26T12:42:24.000Z
tests/test_dsl.py
os-climate/osc-trino-acl-dsl
8a810fccaca0e089cd17d4a1c888da7bcb36063e
[ "Apache-2.0" ]
null
null
null
import re import textwrap import yaml from osc_trino_acl_dsl.dsl2rules import dsl_to_rules class Table(object): def __init__(self, catalog: str, schema: str, table: str): self.catalog: str = str(catalog) self.schema: str = str(schema) self.table: str = str(table) class User(object): ...
32.485207
105
0.543443
530
0.04827
0
0
0
0
0
0
4,730
0.430783
f54e716dfa472cc32b79479172fc0cb1532d563d
1,028
py
Python
setup.py
henryk/byro-cnss
77cc4d34a521879f9f225b473964b7384db306b1
[ "Apache-2.0" ]
null
null
null
setup.py
henryk/byro-cnss
77cc4d34a521879f9f225b473964b7384db306b1
[ "Apache-2.0" ]
null
null
null
setup.py
henryk/byro-cnss
77cc4d34a521879f9f225b473964b7384db306b1
[ "Apache-2.0" ]
null
null
null
import os from distutils.command.build import build from django.core import management from setuptools import find_packages, setup try: with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as f: long_description = f.read() except: long_description = '' class CustomBuild...
23.363636
92
0.696498
132
0.128155
0
0
0
0
0
0
307
0.298058
f54f18f6eb1da6e577537fa0c7b336cc4d1057b5
2,181
py
Python
utils/tensor_utils_test.py
zhuchen03/federated
6bbcdcb856759aa29daa9a510e7d5f34f6915010
[ "Apache-2.0" ]
2
2021-10-19T13:55:11.000Z
2021-11-11T11:26:05.000Z
utils/tensor_utils_test.py
zhuchen03/federated
6bbcdcb856759aa29daa9a510e7d5f34f6915010
[ "Apache-2.0" ]
2
2021-11-10T20:22:35.000Z
2022-02-10T04:44:40.000Z
utils/tensor_utils_test.py
zhuchen03/federated
6bbcdcb856759aa29daa9a510e7d5f34f6915010
[ "Apache-2.0" ]
1
2021-03-09T09:48:56.000Z
2021-03-09T09:48:56.000Z
# Copyright 2018, The TensorFlow Federated Authors. # # 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 o...
32.552239
79
0.64099
1,457
0.668042
0
0
0
0
0
0
708
0.324622
f54f50b36cac1b6f41d6778991e01f0570bbafab
3,426
py
Python
autonmap/__main__.py
zeziba/AUTONMAP
50a2ae5f0731bc919ccb8978c619d1432b447286
[ "Apache-2.0" ]
null
null
null
autonmap/__main__.py
zeziba/AUTONMAP
50a2ae5f0731bc919ccb8978c619d1432b447286
[ "Apache-2.0" ]
null
null
null
autonmap/__main__.py
zeziba/AUTONMAP
50a2ae5f0731bc919ccb8978c619d1432b447286
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import logging.handlers import sys from sys import argv, modules from os.path import join from autonmap import cron_scheduler from autonmap import launch_client from autonmap import launch_server from autonmap.server import server_config as sconfig """ This module allows autonmap to interact w...
35.6875
98
0.537069
266
0.077642
0
0
0
0
0
0
781
0.227963
f54ff4d5dcb3a333a55f6c56d21b89f6d29ae597
6,166
py
Python
src/logic_gradient.py
Einzberg/BattlesnakeFun
4276144c3ccfab66e7c9df4717681e305861f76a
[ "MIT" ]
null
null
null
src/logic_gradient.py
Einzberg/BattlesnakeFun
4276144c3ccfab66e7c9df4717681e305861f76a
[ "MIT" ]
null
null
null
src/logic_gradient.py
Einzberg/BattlesnakeFun
4276144c3ccfab66e7c9df4717681e305861f76a
[ "MIT" ]
null
null
null
# import random # from typing import List, Dict import numpy as np # import matplotlib.pyplot as plt def get_info() -> dict: """ This controls your Battlesnake appearance and author permissions. For customization options, see https://docs.battlesnake.com/references/personalization TIP: If you open you...
28.155251
105
0.509569
0
0
0
0
0
0
0
0
1,846
0.299384
f55005f6eda0c8aeadd07c4aee7c84c8198766c5
11
py
Python
src/__init__.py
Peefy/StatisticalLearningMethod.Python
7324d51b58932052bc518b9e82f64b76f0c39bf0
[ "Apache-2.0" ]
1
2018-10-05T08:20:50.000Z
2018-10-05T08:20:50.000Z
src/__init__.py
Peefy/StatisticalLearningMethod.Python
7324d51b58932052bc518b9e82f64b76f0c39bf0
[ "Apache-2.0" ]
null
null
null
src/__init__.py
Peefy/StatisticalLearningMethod.Python
7324d51b58932052bc518b9e82f64b76f0c39bf0
[ "Apache-2.0" ]
null
null
null
# pdf.244
3.666667
9
0.545455
0
0
0
0
0
0
0
0
9
0.818182
f5538c72ced0bc74b5e82bee2c3ce5f0a35952cd
11,836
py
Python
nuclear/help/help.py
igrek51/glue
6726ba977a21e58b354a5c97f68639f84184be7a
[ "MIT" ]
4
2019-07-04T20:41:06.000Z
2020-04-23T18:17:33.000Z
nuclear/help/help.py
igrek51/cliglue
6726ba977a21e58b354a5c97f68639f84184be7a
[ "MIT" ]
null
null
null
nuclear/help/help.py
igrek51/cliglue
6726ba977a21e58b354a5c97f68639f84184be7a
[ "MIT" ]
null
null
null
import os import sys from dataclasses import dataclass, field from typing import List, Set, Optional from nuclear.builder.rule import PrimaryOptionRule, ParameterRule, FlagRule, CliRule, SubcommandRule, \ PositionalArgumentRule, ManyArgumentsRule, DictionaryRule, ValueRule from nuclear.parser.context import RunCon...
35.22619
119
0.710037
182
0.015377
0
0
193
0.016306
0
0
667
0.056353
f553c00e89c0f5a71a1f1863c8dfb6394c78b550
1,997
py
Python
Apps/Engines/Nuke/NukeTools_1.01/Python/LookAt.py
geoffroygivry/CyclopsVFX-Unity
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
17
2017-06-27T04:14:42.000Z
2022-03-07T03:37:44.000Z
Apps/Engines/Nuke/NukeTools_1.01/Python/LookAt.py
geoffroygivry/Cyclops-VFX
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
2
2017-06-14T04:17:51.000Z
2018-08-23T20:12:44.000Z
Apps/Engines/Nuke/NukeTools_1.01/Python/LookAt.py
geoffroygivry/CyclopsVFX-Unity
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
2
2019-03-18T06:18:33.000Z
2019-08-14T21:07:53.000Z
#The MIT License (MIT) # #Copyright (c) 2015 Geoffroy Givry # #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, m...
46.44186
263
0.725588
0
0
0
0
0
0
0
0
1,487
0.744617
f554392a1fb675c44914e72f8067a655af6c342c
464
py
Python
graphql/main.py
py-in-the-sky/appengine-swapi
824d770cd11e5510b2300d1e248a9474e3fde8c2
[ "MIT" ]
null
null
null
graphql/main.py
py-in-the-sky/appengine-swapi
824d770cd11e5510b2300d1e248a9474e3fde8c2
[ "MIT" ]
null
null
null
graphql/main.py
py-in-the-sky/appengine-swapi
824d770cd11e5510b2300d1e248a9474e3fde8c2
[ "MIT" ]
null
null
null
""" `main` is the top level module where AppEngine gets access to your Flask application. """ from app import create_app from config import config from os import environ if environ['SERVER_SOFTWARE'].startswith('Development'): app_config = config['development'] else: app_config = config['production'] app ...
22.095238
60
0.752155
0
0
0
0
0
0
0
0
265
0.571121