hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
02b7a353f4235e6cd31840307b143e00b9620e1e
1,000
py
Python
day-08/part-1/loic.py
lypnol/adventofcode-2017
03ced3df3eb80e5c7965c4120e3932919067cb15
[ "MIT" ]
16
2017-12-02T11:56:25.000Z
2018-02-10T15:09:23.000Z
day-08/part-1/loic.py
lypnol/adventofcode-2017
03ced3df3eb80e5c7965c4120e3932919067cb15
[ "MIT" ]
19
2017-12-01T07:54:22.000Z
2017-12-19T17:41:02.000Z
day-08/part-1/loic.py
lypnol/adventofcode-2017
03ced3df3eb80e5c7965c4120e3932919067cb15
[ "MIT" ]
4
2017-12-04T23:58:12.000Z
2018-02-01T08:53:16.000Z
from submission import Submission class LoicSubmission(Submission): memory = {} def run(self, s): self.memory = {} for line in s.split("\n"): data = line.split() check = False if data[5] == "<": if self.get(data[4]) < int(data[6]): check = True elif data[5] == ">": if self.get(data[4]...
22.222222
60
0.547
5b1a707e0c287ca71e75c769c45ca48964217df7
1,763
py
Python
examples/mplot3d/trisurf3d_demo2.py
jbbrokaw/matplotlib
86ec1b6fc5628bfb2d09797c58d7eed0ca8c2427
[ "MIT", "BSD-3-Clause" ]
1
2019-04-15T09:40:53.000Z
2019-04-15T09:40:53.000Z
examples/mplot3d/trisurf3d_demo2.py
jbbrokaw/matplotlib
86ec1b6fc5628bfb2d09797c58d7eed0ca8c2427
[ "MIT", "BSD-3-Clause" ]
2
2021-05-10T17:57:41.000Z
2021-07-26T16:23:09.000Z
examples/mplot3d/trisurf3d_demo2.py
jbbrokaw/matplotlib
86ec1b6fc5628bfb2d09797c58d7eed0ca8c2427
[ "MIT", "BSD-3-Clause" ]
1
2015-12-21T07:24:54.000Z
2015-12-21T07:24:54.000Z
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import matplotlib.tri as mtri # u, v are parameterisation variables u = (np.linspace(0, 2.0 * np.pi, endpoint=True, num=50) * np.ones((10, 1))).flatten() v = np.repeat(np.linspace(-0.5, 0.5, endpoint=True, num=10), repeats=50).f...
31.482143
85
0.694271
0e3aafa402b8f2563b909edd421444aaa0fcb88a
17,064
py
Python
mars/tensor/linalg/lu.py
smartguo/mars
5fdd6e2d520fcdc3b7441379e0abaf0e07c6212a
[ "Apache-2.0" ]
2
2019-03-29T04:11:10.000Z
2020-07-08T10:19:54.000Z
mars/tensor/linalg/lu.py
smartguo/mars
5fdd6e2d520fcdc3b7441379e0abaf0e07c6212a
[ "Apache-2.0" ]
null
null
null
mars/tensor/linalg/lu.py
smartguo/mars
5fdd6e2d520fcdc3b7441379e0abaf0e07c6212a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
47.798319
116
0.51676
0cb25c58ec30c5b52da2fb852613697fe56a5dcb
7,335
py
Python
pyspedas/mms/examples/tutorials/mms_data_6march19.py
amanotk/pyspedas
ba38f9a318fe96911a0fb3d6fce53e8b1a534ff4
[ "MIT" ]
null
null
null
pyspedas/mms/examples/tutorials/mms_data_6march19.py
amanotk/pyspedas
ba38f9a318fe96911a0fb3d6fce53e8b1a534ff4
[ "MIT" ]
null
null
null
pyspedas/mms/examples/tutorials/mms_data_6march19.py
amanotk/pyspedas
ba38f9a318fe96911a0fb3d6fce53e8b1a534ff4
[ "MIT" ]
null
null
null
''' MMS Data in Python with pySPEDAS Eric Grimes - egrimes@igpp.ucla.edu *** Disclaimer: all of this is beta; please submit bug reports! *** *** Load times can be slow for some MMS data - should be fixed soon! *** Tentative agenda: - Introduction - Loading MMS Data in Python - Plotting MMS Data in Python - Analysis T...
32.312775
147
0.670757
579758b9b1052c48161f183deca23dc374128b73
15,608
py
Python
emd/search_emd.py
AGiannoutsos/Latent_vs_Original_Space_Image_Classification
f2971b2b06d837ef85016ee8faf1715c660ca161
[ "MIT" ]
1
2021-02-21T07:33:47.000Z
2021-02-21T07:33:47.000Z
emd/search_emd.py
AGiannoutsos/Latent_vs_Original_Space_Image_Classification
f2971b2b06d837ef85016ee8faf1715c660ca161
[ "MIT" ]
null
null
null
emd/search_emd.py
AGiannoutsos/Latent_vs_Original_Space_Image_Classification
f2971b2b06d837ef85016ee8faf1715c660ca161
[ "MIT" ]
1
2022-02-04T12:55:31.000Z
2022-02-04T12:55:31.000Z
import numpy as np import os import sys import struct import json from array import array as pyarray import matplotlib.pyplot as plt import time # Define class with colors for UI improvement class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKCYAN = '\033[96m' OKGREEN = '\033[92m' WARNING = '...
38.633663
244
0.622309
61463267f1317039eb12ac04585156f60268db75
664
py
Python
vegan/base.py
vaitekunas/vegan
5a027ed2c5fc5fbcaf8e14a303a05e057e9a970f
[ "MIT" ]
null
null
null
vegan/base.py
vaitekunas/vegan
5a027ed2c5fc5fbcaf8e14a303a05e057e9a970f
[ "MIT" ]
null
null
null
vegan/base.py
vaitekunas/vegan
5a027ed2c5fc5fbcaf8e14a303a05e057e9a970f
[ "MIT" ]
null
null
null
"""Base class that implements some functionality that most vegan classes need.""" from vegan.progress import Progress from vegan import utils class Base(object): """Implements the logging facility update.""" """Base logging facility.""" _log = None """Base progress facility.""" _progress = None...
25.538462
81
0.628012
7ace7c79cbb25ef02699a3723bccfe52c1278e63
444
py
Python
ams/ticket/migrations/0002_auto_20190116_2258.py
magnuspedro/ams
72ef810d14d9a4724e781489d081140be6674d60
[ "MIT" ]
null
null
null
ams/ticket/migrations/0002_auto_20190116_2258.py
magnuspedro/ams
72ef810d14d9a4724e781489d081140be6674d60
[ "MIT" ]
null
null
null
ams/ticket/migrations/0002_auto_20190116_2258.py
magnuspedro/ams
72ef810d14d9a4724e781489d081140be6674d60
[ "MIT" ]
null
null
null
# Generated by Django 2.1.4 on 2019-01-16 22:58 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('ticket', '0001_initial'), ] operations = [ migrations.AlterField( model_name='ticket', name='code', ...
22.2
110
0.619369
8f35f3c50ea8f49fb28f6de1e018c9b8963b43f1
12,290
py
Python
python/ray/autoscaler/_private/kuberay/node_provider.py
orcahmlee/ray
298742d7241681ee1f307ec0dd3cd7e9713a3c7d
[ "Apache-2.0" ]
null
null
null
python/ray/autoscaler/_private/kuberay/node_provider.py
orcahmlee/ray
298742d7241681ee1f307ec0dd3cd7e9713a3c7d
[ "Apache-2.0" ]
41
2021-09-21T01:13:48.000Z
2022-03-19T07:12:22.000Z
python/ray/autoscaler/_private/kuberay/node_provider.py
LaudateCorpus1/ray
20cf2edfef7103c269358a49a48c2159315ee132
[ "Apache-2.0" ]
1
2019-09-24T16:24:49.000Z
2019-09-24T16:24:49.000Z
import json import logging import requests from typing import Any, Dict, List, Tuple from ray.autoscaler._private.constants import ( DISABLE_NODE_UPDATERS_KEY, DISABLE_LAUNCH_CONFIG_CHECK_KEY, FOREGROUND_NODE_LAUNCH_KEY, ) from ray.autoscaler.node_provider import NodeProvider from ray.autoscaler.tags impor...
37.355623
88
0.626444
ea8c6a21b8687d2d6100b558dfacbc632d26e356
2,583
py
Python
sympy/diffgeom/tests/test_hyperbolic_space.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
8,323
2015-01-02T15:51:43.000Z
2022-03-31T13:13:19.000Z
sympy/diffgeom/tests/test_hyperbolic_space.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
15,102
2015-01-01T01:33:17.000Z
2022-03-31T22:53:13.000Z
sympy/diffgeom/tests/test_hyperbolic_space.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
4,490
2015-01-01T17:48:07.000Z
2022-03-31T17:24:05.000Z
r''' unit test describing the hyperbolic half-plane with the Poincare metric. This is a basic model of hyperbolic geometry on the (positive) half-space {(x,y) \in R^2 | y > 0} with the Riemannian metric ds^2 = (dx^2 + dy^2)/y^2 It has constant negative scalar curvature = -2 https://en.wikipedia.org/wiki/Poincare_h...
28.076087
85
0.550523
21ecaa910746effed02a527d938b35d55d5494f9
1,493
py
Python
VG.py
kmi-robots/spatial-KB
c7c917dae5cf5d29a91c3433aa3ccee32101f18a
[ "Apache-2.0" ]
null
null
null
VG.py
kmi-robots/spatial-KB
c7c917dae5cf5d29a91c3433aa3ccee32101f18a
[ "Apache-2.0" ]
null
null
null
VG.py
kmi-robots/spatial-KB
c7c917dae5cf5d29a91c3433aa3ccee32101f18a
[ "Apache-2.0" ]
null
null
null
"""Visual Genome processing methods""" import json from collections import OrderedDict,Counter def load_rel_bank(KBobj): with open(KBobj.path_to_VGrel) as ind: raw_data = json.load(ind) return raw_data def update_VG_stats(stats_dict,pred,sub_syn, obj_syn): stats_dict = add_relation_counts(stats...
40.351351
100
0.686537
352f800ac7f7c22284c7b44feba8fd6e1ee15c6f
10,327
py
Python
utils.py
NguyenThanhAI/BigGAN-Tensorflow
f6f033009f4c1796966898b6a50f055676d1a1c1
[ "MIT" ]
null
null
null
utils.py
NguyenThanhAI/BigGAN-Tensorflow
f6f033009f4c1796966898b6a50f055676d1a1c1
[ "MIT" ]
null
null
null
utils.py
NguyenThanhAI/BigGAN-Tensorflow
f6f033009f4c1796966898b6a50f055676d1a1c1
[ "MIT" ]
null
null
null
import scipy.misc import numpy as np import os from glob import glob import tensorflow as tf import tensorflow.contrib.slim as slim from keras.datasets import cifar10, mnist class ImageData: def __init__(self, load_size, channels, custom_dataset): self.load_size = load_size self.channels = channe...
36.75089
125
0.607824
644d4dc97b545a1c4db152c38caea0b94a11ea98
6,250
py
Python
landlab/components/overland_flow/generate_overland_flow_kinwave.py
clebouteiller/landlab
e6f47db76ea0814c4c5a24e695bbafb74c722ff7
[ "MIT" ]
1
2022-01-07T02:36:07.000Z
2022-01-07T02:36:07.000Z
landlab/components/overland_flow/generate_overland_flow_kinwave.py
clebouteiller/landlab
e6f47db76ea0814c4c5a24e695bbafb74c722ff7
[ "MIT" ]
1
2021-11-11T21:23:46.000Z
2021-11-11T21:23:46.000Z
landlab/components/overland_flow/generate_overland_flow_kinwave.py
clebouteiller/landlab
e6f47db76ea0814c4c5a24e695bbafb74c722ff7
[ "MIT" ]
2
2019-08-19T08:58:10.000Z
2022-01-07T02:36:01.000Z
# -*- coding: utf-8 -*- """Landlab component for overland flow using the kinematic-wave approximation. Created on Fri May 27 14:26:13 2016 @author: gtucker """ import numpy as np from landlab import Component class KinwaveOverlandFlowModel(Component): """Calculate water flow over topography. Landlab com...
30.788177
88
0.58272
f56eb631baf139d1c40630ec7187042c0acf8976
10,266
py
Python
python_modules/dagster/dagster_tests/cli_tests/command_tests/test_schedule_commands.py
emilyhawkins-drizly/dagster
bfb90e8b0b442f657e5256082d3116aefa8c330b
[ "Apache-2.0" ]
1
2021-07-03T09:05:58.000Z
2021-07-03T09:05:58.000Z
python_modules/dagster/dagster_tests/cli_tests/command_tests/test_schedule_commands.py
emilyhawkins-drizly/dagster
bfb90e8b0b442f657e5256082d3116aefa8c330b
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/cli_tests/command_tests/test_schedule_commands.py
emilyhawkins-drizly/dagster
bfb90e8b0b442f657e5256082d3116aefa8c330b
[ "Apache-2.0" ]
null
null
null
import re import click import mock import pytest from click.testing import CliRunner from dagster.cli.schedule import ( check_repo_and_scheduler, schedule_list_command, schedule_logs_command, schedule_restart_command, schedule_start_command, schedule_stop_command, schedule_up_command, s...
36.664286
99
0.635301
d786ed7c4890f77528f3f4e6ad0221678f72655f
5,595
py
Python
TeradataVantageFunctionsPlugin/python-lib/inputtableinfo.py
Teradata/vantage-dss-plugin-mle-functions
de226b0a5431439d264557e289d571edca579d31
[ "MIT" ]
1
2019-11-13T01:28:46.000Z
2019-11-13T01:28:46.000Z
TeradataVantageFunctionsPlugin/python-lib/inputtableinfo.py
Teradata/vantage-dss-plugin-mle-functions
de226b0a5431439d264557e289d571edca579d31
[ "MIT" ]
1
2019-10-08T23:28:10.000Z
2019-10-08T23:28:10.000Z
TeradataVantageFunctionsPlugin/python-lib/inputtableinfo.py
Teradata/vantage-dss-plugin-mle-functions
de226b0a5431439d264557e289d571edca579d31
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Copyright © 2019 by Teradata. 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, p...
46.239669
168
0.687399
5c77fcb56d7888534ff0a4765795a1ae9a164106
962
py
Python
DjangoBookWebApp/views.py
tsteternlieb/BookRecHeroku
389e25639f031e93d04e02340394c71dbe68b156
[ "MIT" ]
null
null
null
DjangoBookWebApp/views.py
tsteternlieb/BookRecHeroku
389e25639f031e93d04e02340394c71dbe68b156
[ "MIT" ]
null
null
null
DjangoBookWebApp/views.py
tsteternlieb/BookRecHeroku
389e25639f031e93d04e02340394c71dbe68b156
[ "MIT" ]
null
null
null
from django.shortcuts import render from DjangoBookWebApp.book_search_model import FinalWrapper model = FinalWrapper() # our home page view def home(request): return render(request, 'index.html') # custom method for generating predictions def getPredictions(pclass): #model = pickle.load(open("titanic_surv...
28.294118
96
0.652807
c0e835b5b80a18891f5c0fb0f2af5671d958103f
1,590
py
Python
VirusServer/vyterm/vythug/kernel.py
Vyterm/VytHug
22b4c6708a23898d41fc49d604c54790b4f8c965
[ "MIT" ]
null
null
null
VirusServer/vyterm/vythug/kernel.py
Vyterm/VytHug
22b4c6708a23898d41fc49d604c54790b4f8c965
[ "MIT" ]
null
null
null
VirusServer/vyterm/vythug/kernel.py
Vyterm/VytHug
22b4c6708a23898d41fc49d604c54790b4f8c965
[ "MIT" ]
null
null
null
from abc import abstractmethod from enum import Enum from vyterm.sqladapter import SqlAdapter from vyterm.utils import singleton, get_instance from vyterm.cryptography import md5str class OpCommand(Enum): Kernel = 0 Virus = 1 class KernelCommand(Enum): Version = 0 class VirusCommand(Enum): Check =...
23.731343
99
0.642767
57738c519f4f0130b4e13f231cc3471d1e18be37
1,178
py
Python
runtests.py
jpleger/django-analystnotes
2e2905a1a86ef8069f9381f33d95b645f2e37f77
[ "BSD-3-Clause" ]
null
null
null
runtests.py
jpleger/django-analystnotes
2e2905a1a86ef8069f9381f33d95b645f2e37f77
[ "BSD-3-Clause" ]
1
2021-03-19T22:04:03.000Z
2021-03-19T22:04:03.000Z
runtests.py
jpleger/django-analystnotes
2e2905a1a86ef8069f9381f33d95b645f2e37f77
[ "BSD-3-Clause" ]
null
null
null
import sys try: from django.conf import settings settings.configure( DEBUG=True, USE_TZ=True, DATABASES={ "default": { "ENGINE": "django.db.backends.sqlite3", } }, ROOT_URLCONF="analystnotes.urls", INSTALLED_APPS=[ ...
21.035714
85
0.578947
564626efcde7f1496268eee26093e7a2f5272b66
7,675
py
Python
stubs.min/System/Windows/Forms/__init___parts/TrackBarRenderer.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/System/Windows/Forms/__init___parts/TrackBarRenderer.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/System/Windows/Forms/__init___parts/TrackBarRenderer.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class TrackBarRenderer(object): """ Provides methods used to render a track bar control with visual styles. This class cannot be inherited. """ @staticmethod def DrawBottomPointingThumb(g,bounds,state): """ DrawBottomPointingThumb(g: Graphics,bounds: Rectangle,state: TrackBarThumbState) Draws a downwar...
39.358974
113
0.722345
a54c214ad8c6c89ce9fe6e932ad366bda6265c70
1,655
py
Python
data-generation/openml-datasets/cp-to-hdfs.py
VIDA-NYU/prida
cb2af13704506abc73d10f5c346ea21f70dd6e65
[ "BSD-3-Clause" ]
1
2021-06-12T02:03:54.000Z
2021-06-12T02:03:54.000Z
data-generation/openml-datasets/cp-to-hdfs.py
VIDA-NYU/prida
cb2af13704506abc73d10f5c346ea21f70dd6e65
[ "BSD-3-Clause" ]
null
null
null
data-generation/openml-datasets/cp-to-hdfs.py
VIDA-NYU/prida
cb2af13704506abc73d10f5c346ea21f70dd6e65
[ "BSD-3-Clause" ]
null
null
null
import os import subprocess import sys if __name__ == '__main__': original_data_dir = sys.argv[1] hdfs_data_dir = sys.argv[2] if hdfs_data_dir.endswith('/'): hdfs_data_dir = hdfs_data_dir[:-1] if hdfs_data_dir.strip() == '': sys.exit(0) # Making sure HDFS dir is empty subproc...
38.488372
115
0.636858
ee84ab255439f4134ea4836d8988738c823d5280
683
py
Python
src/Data Generation/preprocess_embeddings.py
AlexJonesNLP/XLAnalysis5K
6cda1ad9d3f8133943cf736a554a646c865ebb4b
[ "MIT" ]
null
null
null
src/Data Generation/preprocess_embeddings.py
AlexJonesNLP/XLAnalysis5K
6cda1ad9d3f8133943cf736a554a646c865ebb4b
[ "MIT" ]
null
null
null
src/Data Generation/preprocess_embeddings.py
AlexJonesNLP/XLAnalysis5K
6cda1ad9d3f8133943cf736a554a646c865ebb4b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np from sklearn.preprocessing import normalize from typing import List def preprocess_embeddings(vecs: np.ndarray) -> np.ndarray: ''' Preprocess embeddings before performing isomorphism computations Procedure consists of normalization, mean-centering, and re-normali...
29.695652
77
0.696925
4b6dbee952b0430b330a8b4e06255284b31f39d0
882
py
Python
tests/mocks/test_tables.py
keboola/sapi-python-client
276bcebfc0224f89d8ec5e9dd0b94cc15a6596b9
[ "MIT" ]
3
2017-07-13T13:17:37.000Z
2017-11-08T19:01:29.000Z
tests/mocks/test_tables.py
keboola/sapi-python-client
276bcebfc0224f89d8ec5e9dd0b94cc15a6596b9
[ "MIT" ]
45
2017-07-13T07:49:51.000Z
2021-08-19T15:43:39.000Z
tests/mocks/test_tables.py
keboola/sapi-python-client
276bcebfc0224f89d8ec5e9dd0b94cc15a6596b9
[ "MIT" ]
5
2017-07-14T05:50:49.000Z
2021-12-28T17:01:29.000Z
""" Test basic functionality of the Tables endpoint """ import unittest import responses from kbcstorage.tables import Tables from .table_responses import list_response class TestTablesEndpointWithMocks(unittest.TestCase): """ Test the methods of a Tables endpoint instance with mock HTTP responses """ ...
24.5
75
0.622449
8296bfbc47a8391b9a7b4f5fb4c37dbb9b4667dc
899
py
Python
setup.py
riquedev/SSLProxies24Feed
93ab23a6794ae7f40002eb464a9c443afe44db86
[ "MIT" ]
null
null
null
setup.py
riquedev/SSLProxies24Feed
93ab23a6794ae7f40002eb464a9c443afe44db86
[ "MIT" ]
1
2017-09-15T13:27:09.000Z
2017-09-15T14:43:28.000Z
setup.py
riquedev/SSLProxies24Feed
93ab23a6794ae7f40002eb464a9c443afe44db86
[ "MIT" ]
null
null
null
from os import path from setuptools import setup here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README'), encoding='utf-8') as f: long_description = f.read() package_name = "SSLProxies24" package_version = "1.3.6" setup( name=package_name, version=package_version, packages=[pa...
33.296296
88
0.708565
9fe451e52c5429aeca2687e0d5531cd43507b9ce
20,525
py
Python
qiskit/aqua/utils/run_circuits.py
Nick-Singstock/qiskit-aqua
8c2bc57b78dec447faec3adbc966471a3206c2ef
[ "Apache-2.0" ]
1
2020-11-06T01:09:28.000Z
2020-11-06T01:09:28.000Z
qiskit/aqua/utils/run_circuits.py
Nick-Singstock/qiskit-aqua
8c2bc57b78dec447faec3adbc966471a3206c2ef
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/utils/run_circuits.py
Nick-Singstock/qiskit-aqua
8c2bc57b78dec447faec3adbc966471a3206c2ef
[ "Apache-2.0" ]
1
2020-11-06T01:09:43.000Z
2020-11-06T01:09:43.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM Corp. 2017 and later. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2....
47.955607
131
0.6
e4e87102f270697c64c5c88748f883e182bab83b
41,803
py
Python
Lib/woffTools/__init__.py
typesupply/woffTools
964fe6363ede77bc5faec52d82766286c926c94d
[ "MIT" ]
32
2015-02-15T04:39:02.000Z
2021-12-04T15:05:57.000Z
Lib/woffTools/__init__.py
typesupply/woffTools
964fe6363ede77bc5faec52d82766286c926c94d
[ "MIT" ]
7
2015-06-24T22:58:51.000Z
2018-08-20T21:36:29.000Z
Lib/woffTools/__init__.py
typesupply/woffTools
964fe6363ede77bc5faec52d82766286c926c94d
[ "MIT" ]
11
2015-01-29T22:11:34.000Z
2022-01-21T07:31:45.000Z
from __future__ import print_function from fontTools.misc.py23 import * """ This implements the WOFF specification dated September 16, 2009. The main object is the WOFFFont. It is a subclass for the FontTools TTFont object, so it has very similar functionality. The WOFFReader and WOFFWriter are also available for use ...
35.366328
133
0.608641
c04f8c4263173b47a2ca5eb3e250aff1011fa486
382
py
Python
posts/migrations/0009_auto_20201104_1432.py
Joe-Sin7h/melodiam
756996464a79a1e2066004d2bcc05c10fbbf3e8e
[ "MIT" ]
null
null
null
posts/migrations/0009_auto_20201104_1432.py
Joe-Sin7h/melodiam
756996464a79a1e2066004d2bcc05c10fbbf3e8e
[ "MIT" ]
null
null
null
posts/migrations/0009_auto_20201104_1432.py
Joe-Sin7h/melodiam
756996464a79a1e2066004d2bcc05c10fbbf3e8e
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-11-04 09:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posts', '0008_auto_20201104_1400'), ] operations = [ migrations.AlterField( model_name='post', name='artist', ...
20.105263
50
0.594241
8fc0c2a59058c1956092751787638acb32f22e04
22,615
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_05_01/aio/operations/_express_route_gateways_operations.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_05_01/aio/operations/_express_route_gateways_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_05_01/aio/operations/_express_route_gateways_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
50.934685
209
0.688658
42c5e4369a055840e1498be787b1f36246967cb9
19,329
py
Python
tools/pylora/loraopts.py
ricaun/basicmac
69e55e953b652ef26e52819ab77559e4a81baf70
[ "BSD-3-Clause" ]
80
2019-04-30T23:21:12.000Z
2021-08-30T11:01:34.000Z
tools/pylora/loraopts.py
ricaun/basicmac
69e55e953b652ef26e52819ab77559e4a81baf70
[ "BSD-3-Clause" ]
33
2020-04-15T23:09:26.000Z
2022-02-11T20:50:41.000Z
tools/pylora/loraopts.py
ricaun/basicmac
69e55e953b652ef26e52819ab77559e4a81baf70
[ "BSD-3-Clause" ]
42
2019-04-30T17:45:30.000Z
2021-09-23T01:08:28.000Z
# Copyright (C) 2016-2019 Semtech (International) AG. All rights reserved. # # This file is subject to the terms and conditions defined in file 'LICENSE', # which is part of this source code package. from typing import Callable,Dict,List,Tuple,Union import re class BF(): """Bitfield - might also cover entire byte...
30.827751
108
0.450929
06d6a1b7f238dddd5f65520e3f34d19454275011
1,864
py
Python
data/src/generate_translation_sheet.py
Shinjjanggu/majsoul-plus-korean
f2efaeb2e98ea18978f1e3e686380078f8186f57
[ "MIT" ]
19
2020-06-22T01:24:41.000Z
2022-03-28T08:25:26.000Z
data/src/generate_translation_sheet.py
saltymocha1/MajakPlusKorean
5aea3d5715424fa2912a6e8524b3c26459e413e4
[ "MIT" ]
4
2020-08-26T04:06:01.000Z
2022-03-20T03:23:51.000Z
data/src/generate_translation_sheet.py
saltymocha1/MajakPlusKorean
5aea3d5715424fa2912a6e8524b3c26459e413e4
[ "MIT" ]
44
2022-03-15T12:29:36.000Z
2022-03-31T11:36:37.000Z
#! /usr/bin/python import csv from pathlib import Path import os lang = os.getenv('MAJSOUL_LANG', 'jp') def main(translation_path, temp_path): translate_sheet_rows = [] csv_dir_path = Path(temp_path) / 'csv' for csv_path in sorted(csv_dir_path.glob('*.csv')): with open(csv_path, 'r', encoding='utf...
35.169811
104
0.531116
e36c849acba04767f265609b39da54dbae94f7ea
7,081
py
Python
discovery-infra/test_infra/helper_classes/nodes.py
RazRegev/assisted-test-infra
7a9a0eecba0dc3bf149618e3a57dd6d588673dc1
[ "Apache-2.0" ]
null
null
null
discovery-infra/test_infra/helper_classes/nodes.py
RazRegev/assisted-test-infra
7a9a0eecba0dc3bf149618e3a57dd6d588673dc1
[ "Apache-2.0" ]
null
null
null
discovery-infra/test_infra/helper_classes/nodes.py
RazRegev/assisted-test-infra
7a9a0eecba0dc3bf149618e3a57dd6d588673dc1
[ "Apache-2.0" ]
null
null
null
import json import logging import random from typing import Dict, Iterator, List from munch import Munch from test_infra import utils from test_infra.controllers.node_controllers.node import Node from test_infra.controllers.node_controllers.node_controller import NodeController from test_infra.tools.concurrently impor...
38.483696
120
0.669115
8f25a61c58b41b256533304c38d95c1d2b9fd52e
257
py
Python
movies/urls.py
rngallen/beyond_basics
2cfb7d97699a733251e68357a70eada3d0278680
[ "MIT" ]
null
null
null
movies/urls.py
rngallen/beyond_basics
2cfb7d97699a733251e68357a70eada3d0278680
[ "MIT" ]
null
null
null
movies/urls.py
rngallen/beyond_basics
2cfb7d97699a733251e68357a70eada3d0278680
[ "MIT" ]
null
null
null
from django.urls import path from .views import AddMovieFormView, MovieSelectFormView app_name = "movies" urlpatterns = [ path("", MovieSelectFormView.as_view(), name="select_movie"), path("add/", AddMovieFormView.as_view(), name="add_movies"), ]
25.7
65
0.735409
fc057e33a1e31c774608a55e79d11f275ce5a779
8,488
py
Python
pogom/pgoapi/protos/POGOProtos/Data/Battle/BattleAction_pb2.py
tier4fusion/pogom-updated
31c4db3dfc85b19abb39c2e43f5efa530c65159e
[ "MIT" ]
463
2016-07-17T12:30:48.000Z
2021-12-25T11:25:12.000Z
pogom/pgoapi/protos/POGOProtos/Data/Battle/BattleAction_pb2.py
tier4fusion/pogom-updated
31c4db3dfc85b19abb39c2e43f5efa530c65159e
[ "MIT" ]
103
2016-07-17T15:22:07.000Z
2021-06-14T08:52:02.000Z
pogom/pgoapi/protos/POGOProtos/Data/Battle/BattleAction_pb2.py
tier4fusion/pogom-updated
31c4db3dfc85b19abb39c2e43f5efa530c65159e
[ "MIT" ]
226
2016-07-17T15:44:26.000Z
2021-10-03T02:26:32.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: POGOProtos/Data/Battle/BattleAction.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf...
52.395062
1,092
0.776626
ae9a589a7aa493a39f4f2089db765b26406a71d4
3,681
py
Python
LPBv2/LPBv2/controller/actions/combat.py
DorskFR/LeaguePyBot
637aa1ba39f6b4dfea58b66e982589a8850b26f8
[ "MIT" ]
45
2020-11-28T04:45:45.000Z
2022-03-31T05:53:37.000Z
LPBv2/LPBv2/controller/actions/combat.py
DorskFR/LeaguePyBot
637aa1ba39f6b4dfea58b66e982589a8850b26f8
[ "MIT" ]
13
2021-01-15T00:50:10.000Z
2022-02-02T15:16:49.000Z
LPBv2/LPBv2/controller/actions/combat.py
DorskFR/LeaguePyBot
637aa1ba39f6b4dfea58b66e982589a8850b26f8
[ "MIT" ]
14
2020-12-21T10:03:31.000Z
2021-11-22T04:03:03.000Z
from . import Action from ...common import safest_position, average_position, debug_coro from ...logger import get_logger, Colors import asyncio logger = get_logger("LPBv2.Combat") class Combat(Action): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.offset_x = 50 ...
37.561224
84
0.657973
078e2b26be9788dfae1f960c596a422acf126a7c
1,193
py
Python
services/director-v2/tests/unit/test_models_comp_runs.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
25
2018-04-13T12:44:12.000Z
2022-03-12T15:01:17.000Z
services/director-v2/tests/unit/test_models_comp_runs.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
2,553
2018-01-18T17:11:55.000Z
2022-03-31T16:26:40.000Z
services/director-v2/tests/unit/test_models_comp_runs.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
20
2018-01-18T19:45:33.000Z
2022-03-29T07:08:47.000Z
# pylint:disable=unused-variable # pylint:disable=unused-argument # pylint:disable=redefined-outer-name from pprint import pformat from typing import Any, Dict, Type import pytest from models_library.projects_state import RunningState from pydantic.main import BaseModel from simcore_service_director_v2.models.domains...
30.589744
77
0.738474
bb6e45e259b14861c393f279e7ac415320b9bba7
1,337
py
Python
cosypose/evaluation/meters/base.py
ompugao/cosypose
4e471c16f19d5ee632668cd52eaa57b562f287d6
[ "MIT" ]
202
2020-08-19T19:28:03.000Z
2022-03-29T07:10:47.000Z
cosypose/evaluation/meters/base.py
ompugao/cosypose
4e471c16f19d5ee632668cd52eaa57b562f287d6
[ "MIT" ]
66
2020-08-24T09:28:05.000Z
2022-03-31T07:11:06.000Z
cosypose/evaluation/meters/base.py
ompugao/cosypose
4e471c16f19d5ee632668cd52eaa57b562f287d6
[ "MIT" ]
66
2020-08-19T19:28:05.000Z
2022-03-18T20:47:55.000Z
from pathlib import Path import torch from collections import defaultdict from cosypose.utils.distributed import get_world_size, get_rank class Meter: def __init__(self): self.reset() def reset(self): self.datas = defaultdict(list) def add(self, pred_data, gt_data): raise NotImp...
29.065217
72
0.601346
94546353c4af068ecbe37f4741683f1760124d5a
330
py
Python
wsgi.py
scott2b/S3Thing
32be7447afd9d350fef94cacedc659e05e146fdf
[ "MIT" ]
null
null
null
wsgi.py
scott2b/S3Thing
32be7447afd9d350fef94cacedc659e05e146fdf
[ "MIT" ]
null
null
null
wsgi.py
scott2b/S3Thing
32be7447afd9d350fef94cacedc659e05e146fdf
[ "MIT" ]
null
null
null
""" WSGI config for juxtapose project. """ import os, sys sys.stdout = sys.stderr from app import app as application if os.environ.get('FLASK_DEBUG', '').lower() == 'true': from werkzeug.debug import DebuggedApplication application.config['DEBUG'] = True application = DebuggedApplication(application, eva...
23.571429
63
0.727273
7f296e33fce490eb18f5f77e3877f18e9ea4c237
15,093
py
Python
src/pycropml/transpiler/antlr_py/grammars/Python3Visitor.py
brichet/PyCrop2ML
7177996f72a8d95fdbabb772a16f1fd87b1d033e
[ "MIT" ]
5
2020-06-21T18:58:04.000Z
2022-01-29T21:32:28.000Z
src/pycropml/transpiler/antlr_py/grammars/Python3Visitor.py
brichet/PyCrop2ML
7177996f72a8d95fdbabb772a16f1fd87b1d033e
[ "MIT" ]
27
2018-12-04T15:35:44.000Z
2022-03-11T08:25:03.000Z
src/pycropml/transpiler/antlr_py/grammars/Python3Visitor.py
brichet/PyCrop2ML
7177996f72a8d95fdbabb772a16f1fd87b1d033e
[ "MIT" ]
7
2019-04-20T02:25:22.000Z
2021-11-04T07:52:35.000Z
# Generated from Documents\THESE\pycropml_pheno\src\pycropml\antlr_grammarV4\python\python3-py\Python3.g4 by ANTLR 4.8 from antlr4 import * if __name__ is not None and "." in __name__: from .Python3Parser import Python3Parser else: from Python3Parser import Python3Parser # This class defines a complete generic...
34.069977
118
0.749487
55c6111a0db462f587c01311a47ec561be0aadbc
3,448
py
Python
python/ray/tests/test_pydantic_serialization.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
21,382
2016-09-26T23:12:52.000Z
2022-03-31T21:47:45.000Z
python/ray/tests/test_pydantic_serialization.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
19,689
2016-09-17T08:21:25.000Z
2022-03-31T23:59:30.000Z
python/ray/tests/test_pydantic_serialization.py
gramhagen/ray
c18caa4db36d466718bdbcb2229aa0b2dc03da1f
[ "Apache-2.0" ]
4,114
2016-09-23T18:54:01.000Z
2022-03-31T15:07:32.000Z
from dataclasses import dataclass from typing import Any, Dict, List, Optional import pytest from fastapi import FastAPI from pydantic import BaseModel import ray @pytest.fixture(scope="session") def start_ray(): ray.init(ignore_reinit_error=True) def test_serialize_cls(start_ray): class User(BaseModel): ...
18.637838
67
0.637761
914126560c2e5822c71fc5b2c7e30452b586109a
963
py
Python
mcr_analyser/analyser.py
mknopp/mcr-analyser
50b106ede4a29c59851e0f5c11d42aaed5804b77
[ "MIT" ]
null
null
null
mcr_analyser/analyser.py
mknopp/mcr-analyser
50b106ede4a29c59851e0f5c11d42aaed5804b77
[ "MIT" ]
null
null
null
mcr_analyser/analyser.py
mknopp/mcr-analyser
50b106ede4a29c59851e0f5c11d42aaed5804b77
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # MCR-Analyser # # Copyright (C) 2021 Martin Knopp, Technical University of Munich # # This program is free software, see the LICENSE file in the root of this # repository for details import sys from qtpy import QtCore, QtWidgets from mcr_analyser.i18n import setup_getext from mcr_analyser....
22.395349
73
0.685358
d02f63c0ed246030f1a7297f7a3f30e8d09fecfb
427
py
Python
earthquake_visualizer/models.py
ivanjedovnicki/dza
0e2df613f5e12eef65b9094312b40af96c11cab2
[ "MIT" ]
null
null
null
earthquake_visualizer/models.py
ivanjedovnicki/dza
0e2df613f5e12eef65b9094312b40af96c11cab2
[ "MIT" ]
null
null
null
earthquake_visualizer/models.py
ivanjedovnicki/dza
0e2df613f5e12eef65b9094312b40af96c11cab2
[ "MIT" ]
null
null
null
from django.db import models class EarthQuakeFeed(models.Model): title = models.CharField(max_length=50) latitude = models.DecimalField(max_digits=4, decimal_places=2) longitude = models.DecimalField(max_digits=4, decimal_places=2) magnitude = models.DecimalField(max_digits=2, decimal_places=1) ti...
32.846154
67
0.725995
e56a2d207d1b8d8eb1f9e164905f72cd807ac053
371
py
Python
api/__init__.py
joseangel-sc/conducto
6b873defc9327d6f8b51a826dd7a7ef6c3e41396
[ "Apache-2.0" ]
null
null
null
api/__init__.py
joseangel-sc/conducto
6b873defc9327d6f8b51a826dd7a7ef6c3e41396
[ "Apache-2.0" ]
null
null
null
api/__init__.py
joseangel-sc/conducto
6b873defc9327d6f8b51a826dd7a7ef6c3e41396
[ "Apache-2.0" ]
null
null
null
from .config import Config, dirconfig_write, dirconfig_select from .auth import Auth, AsyncAuth from .dir import Dir, AsyncDir from .pipeline import Pipeline, AsyncPipeline from .manager import Manager, AsyncManager from .secrets import Secrets, AsyncSecrets from .misc import connect_to_pipeline from .api_utils import ...
41.222222
73
0.843666
13aad375b28f21aeb3d887abf8b7f7855494244a
1,439
py
Python
app.py
plorry/pairmaker
e64f4209abdd57968ae35e8269663aefbaf478b5
[ "MIT" ]
null
null
null
app.py
plorry/pairmaker
e64f4209abdd57968ae35e8269663aefbaf478b5
[ "MIT" ]
null
null
null
app.py
plorry/pairmaker
e64f4209abdd57968ae35e8269663aefbaf478b5
[ "MIT" ]
null
null
null
import pairmaker import db_conn from flask import Flask, abort, g, jsonify, request app = Flask(__name__) @app.route('/call', methods=['POST']) def call(): # Slack Webhook will just send a generic message body, # so we need to parse that and turn it into the # desired command + arguments r ...
29.367347
90
0.57262
2e654d4608a577c822f1b95deef3df7cbf4fd2f6
13,663
py
Python
mne/io/fieldtrip/tests/test_fieldtrip.py
enricovara/mne-python
f6f2aa7a97c3ae7ae5276202805d2f45de7b64cc
[ "BSD-3-Clause" ]
1
2021-02-16T13:33:13.000Z
2021-02-16T13:33:13.000Z
mne/io/fieldtrip/tests/test_fieldtrip.py
enricovara/mne-python
f6f2aa7a97c3ae7ae5276202805d2f45de7b64cc
[ "BSD-3-Clause" ]
12
2020-07-23T15:41:38.000Z
2021-02-24T09:38:41.000Z
mne/io/fieldtrip/tests/test_fieldtrip.py
enricovara/mne-python
f6f2aa7a97c3ae7ae5276202805d2f45de7b64cc
[ "BSD-3-Clause" ]
1
2021-04-01T15:56:39.000Z
2021-04-01T15:56:39.000Z
# -*- coding: UTF-8 -*- # Authors: Thomas Hartmann <thomas.hartmann@th-ht.de> # Dirk Gütlin <dirk.guetlin@stud.sbg.ac.at> # # License: BSD (3-clause) import mne import os.path import pytest import copy import itertools import numpy as np from mne.datasets import testing from mne.io.fieldtrip.utils import NOIN...
41.40303
79
0.653956
fca632a21877871c3f6b9c1edf204158b79cdb16
3,190
py
Python
yearn/outputs/postgres/utils.py
pmdaly/yearn-exporter
d1e7697f8bf12cdb1126ea86fa350a26aea23cf8
[ "MIT" ]
1
2022-03-29T01:04:27.000Z
2022-03-29T01:04:27.000Z
yearn/outputs/postgres/utils.py
pmdaly/yearn-exporter
d1e7697f8bf12cdb1126ea86fa350a26aea23cf8
[ "MIT" ]
null
null
null
yearn/outputs/postgres/utils.py
pmdaly/yearn-exporter
d1e7697f8bf12cdb1126ea86fa350a26aea23cf8
[ "MIT" ]
1
2022-03-24T20:54:50.000Z
2022-03-24T20:54:50.000Z
import logging from brownie import ZERO_ADDRESS, chain, convert from pony.orm import db_session, select from yearn.entities import Address, Token, UserTx, db from yearn.multicall2 import fetch_multicall from yearn.utils import contract, is_contract logger = logging.getLogger(__name__) @db_session def cache_address(a...
43.69863
130
0.652038
58a382241c1531e4f333c21244d2b8af0ea24428
4,027
py
Python
test/test_testing.py
dimitern/cibuildwheel
630653b786790c3dbfbadb22eb2eaa9cd53d9e08
[ "BSD-2-Clause" ]
1
2019-11-26T16:42:43.000Z
2019-11-26T16:42:43.000Z
test/test_testing.py
dimitern/cibuildwheel
630653b786790c3dbfbadb22eb2eaa9cd53d9e08
[ "BSD-2-Clause" ]
null
null
null
test/test_testing.py
dimitern/cibuildwheel
630653b786790c3dbfbadb22eb2eaa9cd53d9e08
[ "BSD-2-Clause" ]
null
null
null
import os import subprocess import textwrap import pytest from . import utils from . import test_projects project_with_a_test = test_projects.new_c_project( setup_cfg_add=textwrap.dedent(r''' [options.extras_require] test = nose ''') ) project_with_a_test.files['test/spam_test.py'] = r''' im...
33.008197
81
0.667494
5292955ec98d8c58dc944ee0a39511738b74c512
7,243
py
Python
tests/end2end/test_user_pattern.py
zhmcclient/python-zhmcclient
7d200afb0343a02535c52dc8b6ba0d224010075c
[ "Apache-2.0" ]
30
2016-08-24T10:02:19.000Z
2021-11-25T10:44:26.000Z
tests/end2end/test_user_pattern.py
zhmcclient/python-zhmcclient
7d200afb0343a02535c52dc8b6ba0d224010075c
[ "Apache-2.0" ]
883
2016-08-23T12:32:12.000Z
2022-03-28T13:18:24.000Z
tests/end2end/test_user_pattern.py
zhmcclient/python-zhmcclient
7d200afb0343a02535c52dc8b6ba0d224010075c
[ "Apache-2.0" ]
25
2017-06-23T18:10:51.000Z
2022-03-28T02:53:29.000Z
# Copyright 2021 IBM Corp. 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 applicable law or agre...
36.396985
104
0.64407
58c486bcc354daacb722aba2cb241ccfc2f0f9ac
1,251
py
Python
terrascript/boundary/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/boundary/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/boundary/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/boundary/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class boundary_account(terrascript.Resource): pass class boundary_account_oidc(terrascript.Resource)...
16.038462
79
0.785771
d40cb93550fc1859b0c95536efae827fad2471ce
29,566
py
Python
cvxpy/tests/test_expressions.py
quantopian/cvxpy
7deee4d172470aa8f629dab7fead50467afa75ff
[ "Apache-2.0" ]
5
2017-08-31T01:37:00.000Z
2022-03-24T04:23:09.000Z
cvxpy/tests/test_expressions.py
quantopian/cvxpy
7deee4d172470aa8f629dab7fead50467afa75ff
[ "Apache-2.0" ]
null
null
null
cvxpy/tests/test_expressions.py
quantopian/cvxpy
7deee4d172470aa8f629dab7fead50467afa75ff
[ "Apache-2.0" ]
6
2017-02-09T19:37:07.000Z
2021-01-07T00:17:54.000Z
""" Copyright 2017 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
35.664656
93
0.565717
a97f602879339c59c87cd941ee62aafc7a6d28af
3,067
py
Python
tests/pymcell4_positive/1300_wall_hit_callback/model.py
mcellteam/mcell-tests
34d2d967b75d56edbae999bf0090641850f4f4fe
[ "MIT" ]
1
2021-08-13T20:40:54.000Z
2021-08-13T20:40:54.000Z
tests/pymcell4_positive/1300_wall_hit_callback/model.py
mcellteam/mcell_tests
34d2d967b75d56edbae999bf0090641850f4f4fe
[ "MIT" ]
null
null
null
tests/pymcell4_positive/1300_wall_hit_callback/model.py
mcellteam/mcell_tests
34d2d967b75d56edbae999bf0090641850f4f4fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import os MCELL_PATH = os.environ.get('MCELL_PATH', '') if MCELL_PATH: sys.path.append(os.path.join(MCELL_PATH, 'lib')) else: print("Error: variable MCELL_PATH that is used to find the mcell library was not set.") sys.exit(1) import mcell as m from parameters import * ...
24.536
91
0.69775
cf94941f042e10124107902ab2e12bca9f262fa6
780
py
Python
wave/synth/wave/wave/base/domain/param.py
jedhsu/wave
a05d8f4b0a96722bdc2f5a514646c7a44681982b
[ "Apache-2.0" ]
null
null
null
wave/synth/wave/wave/base/domain/param.py
jedhsu/wave
a05d8f4b0a96722bdc2f5a514646c7a44681982b
[ "Apache-2.0" ]
null
null
null
wave/synth/wave/wave/base/domain/param.py
jedhsu/wave
a05d8f4b0a96722bdc2f5a514646c7a44681982b
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from typing import Generic, TypeVar from .bounds import Bounds __all__ = ["DomainParameters"] T = TypeVar("T") @dataclass class _DomainParameters(Generic[T]): type: T bounds: Bounds[T] npoints: int class _Validate_(_DomainParameters, Generic[T]): @staticmethod ...
20.526316
69
0.657692
21266e614097f8cd56839d6664d3f803ae792ecc
1,429
py
Python
resources/mycroft_websocket_template.py
FruityWelsh/mycroft_websocket_pylib
ed90327b469b5a742014c35b6fcd9b28eb8143de
[ "Apache-2.0" ]
1
2020-08-30T23:57:02.000Z
2020-08-30T23:57:02.000Z
resources/mycroft_websocket_template.py
FruityWelsh/mycroft_websocket_pylib
ed90327b469b5a742014c35b6fcd9b28eb8143de
[ "Apache-2.0" ]
null
null
null
resources/mycroft_websocket_template.py
FruityWelsh/mycroft_websocket_pylib
ed90327b469b5a742014c35b6fcd9b28eb8143de
[ "Apache-2.0" ]
null
null
null
#!/bin/env python import json from websocket import create_connection # type: ignore import logging class connect(): def __init__(self, mycroft_addr, mycroft_port, LOGLEVEL=logging.WARN): logging.basicConfig(level=LOGLEVEL) self.url = f"ws://{mycroft_addr}:{mycroft_port}/core" logging.deb...
32.477273
74
0.622813
6141d3fae084c8befd2abca150c9c8d8e8bb0ed7
1,423
py
Python
configs/config.py
jackchua/nga-ui
da48c6ba97fe88386970bd780bceee4221ea1e9f
[ "MIT" ]
1
2021-01-20T19:14:27.000Z
2021-01-20T19:14:27.000Z
configs/config.py
jackchua/nga-ui
da48c6ba97fe88386970bd780bceee4221ea1e9f
[ "MIT" ]
null
null
null
configs/config.py
jackchua/nga-ui
da48c6ba97fe88386970bd780bceee4221ea1e9f
[ "MIT" ]
1
2021-08-16T10:35:35.000Z
2021-08-16T10:35:35.000Z
import os import json # require that a creds.json file has been created / downloaded from a secure # key store upon deployment curr_dir = os.path.dirname(os.path.realpath(__file__)) with open(os.path.join(curr_dir, 'creds.json')) as f: creds = json.loads(f.read()) class Config(object): # test on a local sqlli...
29.645833
76
0.635278
a4b0f10d965c42d0758f2bae9b31b81bb86c543b
3,937
py
Python
model/keypoint_detector.py
netjerikhet/ai-human-emotions
40117813f275b6830581a0e23d9efff40197b668
[ "Apache-2.0" ]
null
null
null
model/keypoint_detector.py
netjerikhet/ai-human-emotions
40117813f275b6830581a0e23d9efff40197b668
[ "Apache-2.0" ]
null
null
null
model/keypoint_detector.py
netjerikhet/ai-human-emotions
40117813f275b6830581a0e23d9efff40197b668
[ "Apache-2.0" ]
1
2022-03-16T16:30:49.000Z
2022-03-16T16:30:49.000Z
from torch import nn import torch import torch.nn.functional as F from model.util import Hourglass, make_coordinate_grid, AntiAliasInterpolation2d class KPDetector(nn.Module): """ Detecting the keypoints. Return keypoint positions and jacobian near each point """ def __init__(self, block_expansion, nu...
41.882979
113
0.641605
02d593bb96ff651235229aaef49162d5a42447dc
969
py
Python
modules/exploitation/setoolkit.py
TheRealJoeyCo/ptf
dd1985696ba8d33be46645efd9d086ac48bd42cf
[ "FTL" ]
5
2019-03-14T10:17:22.000Z
2019-10-23T14:04:12.000Z
modules/exploitation/setoolkit.py
yeyintminthuhtut/ptf
53d90661b9e1c372fb6965fb22c63033103d0c13
[ "FTL" ]
null
null
null
modules/exploitation/setoolkit.py
yeyintminthuhtut/ptf
53d90661b9e1c372fb6965fb22c63033103d0c13
[ "FTL" ]
14
2019-03-14T10:34:02.000Z
2021-10-31T17:34:13.000Z
#!/usr/bin/env python ##################################### # Installation module for SET ##################################### # AUTHOR OF MODULE NAME AUTHOR="David Kennedy (ReL1K)" # DESCRIPTION OF THE MODULE DESCRIPTION="This module will install/update the Social-Engineer Toolkit (SET)" # INSTALL TYPE GIT, SVN, F...
29.363636
111
0.724458
f43dbd121b5d5a323a02730dc7dd3b53155a9532
5,950
py
Python
src/extract_old_site/modules/data_downloads.py
aychen99/Excavating-Occaneechi-Town
6e864ca69ff1881554eb4c88aebed236bafbeaf4
[ "MIT" ]
1
2020-10-01T01:07:11.000Z
2020-10-01T01:07:11.000Z
src/extract_old_site/modules/data_downloads.py
aychen99/Excavating-Occaneechi-Town
6e864ca69ff1881554eb4c88aebed236bafbeaf4
[ "MIT" ]
null
null
null
src/extract_old_site/modules/data_downloads.py
aychen99/Excavating-Occaneechi-Town
6e864ca69ff1881554eb4c88aebed236bafbeaf4
[ "MIT" ]
null
null
null
from . import standard_text_chapter from bs4 import BeautifulSoup from pathlib import Path import os def process_tab_html_contents( html_strings, current_tab_page_name, current_dir_path, dig_parent_dir_path, readfile, current_body_page_name ): """Turn the raw html_strings from reading a tab.html f...
41.901408
116
0.624538
ed36d1dc9bf59ebac75a0bc575979252ce4c6144
390
py
Python
Day 10/Solution2.py
joll05/AdventOfCode2020
d2d93395cec72095d749a07743b70e7fd6f41297
[ "MIT" ]
null
null
null
Day 10/Solution2.py
joll05/AdventOfCode2020
d2d93395cec72095d749a07743b70e7fd6f41297
[ "MIT" ]
null
null
null
Day 10/Solution2.py
joll05/AdventOfCode2020
d2d93395cec72095d749a07743b70e7fd6f41297
[ "MIT" ]
null
null
null
f=open("input.txt") Input=sorted(map(int, f.read().split("\n"))) Input = [0] + Input f.close() print(Input) combinationCounts = [1] + [0] * (len(Input) - 1) for i, value in enumerate(Input): for j, adapterValue in enumerate(Input[i+1:], start=i+1): if(adapterValue > value + 3): break c...
24.375
61
0.628205
fffe104fa44f45d19c2f7c7c9b27d397beb7cbe4
6,666
py
Python
swav/vissl/extra_scripts/convert_caffe2_to_torchvision_resnet.py
lhoestq/DeDLOC
36f5a6d043c3d727f9d098a35fba94aa351a5cd4
[ "Apache-2.0" ]
null
null
null
swav/vissl/extra_scripts/convert_caffe2_to_torchvision_resnet.py
lhoestq/DeDLOC
36f5a6d043c3d727f9d098a35fba94aa351a5cd4
[ "Apache-2.0" ]
null
null
null
swav/vissl/extra_scripts/convert_caffe2_to_torchvision_resnet.py
lhoestq/DeDLOC
36f5a6d043c3d727f9d098a35fba94aa351a5cd4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ Convert the ResNet-50 models from ICCV'19 paper https://arxiv.org/abs/1905.01235 to PyTorch TorchVision compatible models. We can directly use these models for benchmarking. Code credits: https://github.com/facebookresearch/fair_self_supervisi...
36.228261
128
0.648215
184f6ce7473af946aae8267acae8069384374145
2,199
py
Python
opendatatools/common/date_util.py
solider245/OpenData
031aa29b7b6b26a903f378e3da10520fd3a1b7ab
[ "Apache-2.0" ]
1,179
2018-05-28T07:14:41.000Z
2022-03-27T16:03:51.000Z
opendatatools/common/date_util.py
taoyeah/OpenData
031aa29b7b6b26a903f378e3da10520fd3a1b7ab
[ "Apache-2.0" ]
42
2018-07-05T02:44:56.000Z
2022-03-29T12:12:30.000Z
opendatatools/common/date_util.py
taoyeah/OpenData
031aa29b7b6b26a903f378e3da10520fd3a1b7ab
[ "Apache-2.0" ]
297
2018-05-28T07:39:38.000Z
2022-03-28T02:35:59.000Z
#-*- coding:utf-8 -*- import datetime import calendar lastday_map = {} def get_current_day(format = "%Y-%m-%d"): curr_date = datetime.datetime.now() return datetime.datetime.strftime(curr_date, format) def date_convert(date, format, target_format): return datetime.datetime.strftime(datetime.datetime.str...
29.32
94
0.686676
e517ca3f62f459291db019e296a796186eaf7830
882
py
Python
weatbag/tiles/n1w2.py
takluyver/weatbag
0b231aada9b01491d44ad487a4aacdaca71cc633
[ "MIT" ]
6
2015-07-18T08:25:41.000Z
2019-10-29T21:27:13.000Z
weatbag/tiles/n1w2.py
takluyver/weatbag
0b231aada9b01491d44ad487a4aacdaca71cc633
[ "MIT" ]
3
2015-02-21T01:03:41.000Z
2019-10-30T13:38:51.000Z
weatbag/tiles/n1w2.py
takluyver/weatbag
0b231aada9b01491d44ad487a4aacdaca71cc633
[ "MIT" ]
8
2015-02-20T19:19:20.000Z
2019-10-29T21:27:25.000Z
class Tile: map_word = "Island beach" def describe(self): print("The beach is really quiet and you can hear and see the seagulls " "on the sea.\n") def action(self, player, do): print("What is this gibberish?") def leave(self, player, direction): if direction...
33.923077
80
0.539683
08684b014918b11df3a5020e00477e2372ab08a1
1,506
py
Python
prepare.py
gtadam/prepare-kubernetes-deployment-action
171c77e921dd3fd6750aa0956552c288a29711c8
[ "MIT" ]
null
null
null
prepare.py
gtadam/prepare-kubernetes-deployment-action
171c77e921dd3fd6750aa0956552c288a29711c8
[ "MIT" ]
null
null
null
prepare.py
gtadam/prepare-kubernetes-deployment-action
171c77e921dd3fd6750aa0956552c288a29711c8
[ "MIT" ]
null
null
null
import argparse import yaml import json parser = argparse.ArgumentParser( description="Preparation of values file to deploy a kubernetes service." ) parser.add_argument( "--service-name", dest="service_name", help="The name of the service to deploy" ) parser.add_argument( "--service-replica-count...
25.1
197
0.698539
88e82b4b91f54045c0a921fb0947ceca1916cc88
6,396
py
Python
flsim/servers/tests/test_aggregator.py
JohnlNguyen/FLSim
a5ed7c0b84499cd9dbc5fe95f8bcb4ba8ab5a5cb
[ "BSD-3-Clause" ]
79
2021-12-09T18:05:09.000Z
2022-03-23T20:43:46.000Z
flsim/servers/tests/test_aggregator.py
JohnlNguyen/FLSim
a5ed7c0b84499cd9dbc5fe95f8bcb4ba8ab5a5cb
[ "BSD-3-Clause" ]
11
2021-12-30T17:54:04.000Z
2022-03-23T17:23:00.000Z
flsim/servers/tests/test_aggregator.py
JohnlNguyen/FLSim
a5ed7c0b84499cd9dbc5fe95f8bcb4ba8ab5a5cb
[ "BSD-3-Clause" ]
9
2021-12-09T19:55:22.000Z
2022-03-15T00:02:08.000Z
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. from tempfile import mkstemp import pytest import torch.distributed as dist import tor...
30.457143
84
0.628831
1a940ce412411cb8216a95f805badec01ed25398
2,525
py
Python
python/attacks/selective_universal.py
rwightman/pytorch-nips2017-adversarial
1727494ea3bfcbc3b4754b35096e816e1269ff38
[ "Apache-2.0" ]
17
2018-02-05T15:09:01.000Z
2022-03-15T06:27:07.000Z
python/attacks/selective_universal.py
rwightman/pytorch-nips2017-adversarial
1727494ea3bfcbc3b4754b35096e816e1269ff38
[ "Apache-2.0" ]
1
2019-03-03T05:30:38.000Z
2019-03-08T04:44:39.000Z
python/attacks/selective_universal.py
rwightman/pytorch-nips2017-adversarial
1727494ea3bfcbc3b4754b35096e816e1269ff38
[ "Apache-2.0" ]
2
2019-07-26T07:17:09.000Z
2019-10-16T03:44:02.000Z
import os import numpy as np from scipy.misc import imsave import torch import torch.autograd as autograd import torch.utils.data as data import torchvision.transforms as transforms from processing import Mirror class SelectiveUniversal(object): def __init__(self, target_ensemble, ...
37.132353
107
0.610297
b4f22c9519bfa112160224a733f6c5905b7afd5b
555
py
Python
reservoirpy/wellproductivitypy/pi/__init__.py
scuervo91/reservoirpy
a4db620baf3ff66a85c7f61b1919713a8642e6fc
[ "MIT" ]
16
2020-05-07T01:57:04.000Z
2021-11-27T12:45:59.000Z
reservoirpy/wellproductivitypy/pi/__init__.py
scuervo91/reservoirpy
a4db620baf3ff66a85c7f61b1919713a8642e6fc
[ "MIT" ]
null
null
null
reservoirpy/wellproductivitypy/pi/__init__.py
scuervo91/reservoirpy
a4db620baf3ff66a85c7f61b1919713a8642e6fc
[ "MIT" ]
5
2020-05-12T07:28:24.000Z
2021-12-10T21:24:59.000Z
from .inflow import OilInflow, oil_inflow_curve, oil_j, gas_inflow_curve, gas_j, GasInflow from .outflow import (gas_pressure_profile, gas_outflow_curve, gas_pressure_profile_correlation, potential_energy_change,kinetic_energy_change,frictional_pressure_drop, one_phase_pressure_profile,flow_regime_plot,hb_corre...
69.375
96
0.87027
56d6e6bf4e849c83038cd523bf4f7ddc922b8d8a
13,675
py
Python
shaptools/shapcli.py
Simranpal/shaptools
1951d234b51114379befab11c99c92dfa179a83f
[ "Apache-2.0" ]
10
2019-03-21T09:27:19.000Z
2022-03-30T13:46:30.000Z
shaptools/shapcli.py
Simranpal/shaptools
1951d234b51114379befab11c99c92dfa179a83f
[ "Apache-2.0" ]
22
2019-02-22T14:50:25.000Z
2022-02-02T16:39:32.000Z
shaptools/shapcli.py
Simranpal/shaptools
1951d234b51114379befab11c99c92dfa179a83f
[ "Apache-2.0" ]
10
2019-03-12T15:55:07.000Z
2021-06-23T11:45:23.000Z
""" Code to expose some useful methods using the command line :author: xarbulu :organization: SUSE LLC :contact: xarbulu@suse.com :since: 2019-07-11 """ import logging import argparse import json from shaptools import hana PROG = 'shapcli' LOGGING_FORMAT = '%(message)s' class DecodedFormatter(logging.Formatter):...
36.760753
96
0.665448
ca8199d0086f2ce0e285fa8990b905b20d5dcb3c
5,487
py
Python
oauthlib/openid/connect/core/endpoints/pre_configured.py
mgorny/oauthlib
b71636e85f845b79b5a56de6480fcba9d1415720
[ "BSD-3-Clause" ]
null
null
null
oauthlib/openid/connect/core/endpoints/pre_configured.py
mgorny/oauthlib
b71636e85f845b79b5a56de6480fcba9d1415720
[ "BSD-3-Clause" ]
null
null
null
oauthlib/openid/connect/core/endpoints/pre_configured.py
mgorny/oauthlib
b71636e85f845b79b5a56de6480fcba9d1415720
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ oauthlib.openid.connect.core.endpoints.pre_configured ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module is an implementation of various endpoints needed for providing OpenID Connect servers. """ from oauthlib.oauth2.rfc6749.endpoints import ( AuthorizationEndpoint, I...
50.805556
154
0.63696
88e45ca30ef86616bf1596a563d7dd615cdb9d24
918
py
Python
backend/app/literature/routers/resource_descriptor_router.py
alliance-genome/agr_literature_service
2278316422d5c3ab65e21bb97d91e861e48853c5
[ "MIT" ]
null
null
null
backend/app/literature/routers/resource_descriptor_router.py
alliance-genome/agr_literature_service
2278316422d5c3ab65e21bb97d91e861e48853c5
[ "MIT" ]
39
2021-10-18T17:02:49.000Z
2022-03-28T20:56:24.000Z
backend/app/literature/routers/resource_descriptor_router.py
alliance-genome/agr_literature_service
2278316422d5c3ab65e21bb97d91e861e48853c5
[ "MIT" ]
1
2021-10-21T00:11:18.000Z
2021-10-21T00:11:18.000Z
from sqlalchemy.orm import Session from fastapi import APIRouter from fastapi import Depends from fastapi import status from fastapi import Security from fastapi_okta import OktaUser from literature import database from literature.user import set_global_user_id from literature.crud import resource_descriptor_crud ...
22.390244
52
0.761438
6f8a6c51e0d29192cead5166f87d67b9d0fe1042
1,779
py
Python
facebook_business/adobjects/adcreativetextdata.py
MyrikLD/facebook-python-business-sdk
a53c8ba0e8f7d0b41b385c60089f6ba00fa5c814
[ "CNRI-Python" ]
576
2018-05-01T19:09:32.000Z
2022-03-31T11:45:11.000Z
facebook_business/adobjects/adcreativetextdata.py
MyrikLD/facebook-python-business-sdk
a53c8ba0e8f7d0b41b385c60089f6ba00fa5c814
[ "CNRI-Python" ]
217
2018-05-03T07:31:59.000Z
2022-03-29T14:19:52.000Z
facebook_business/adobjects/adcreativetextdata.py
MyrikLD/facebook-python-business-sdk
a53c8ba0e8f7d0b41b385c60089f6ba00fa5c814
[ "CNRI-Python" ]
323
2018-05-01T20:32:26.000Z
2022-03-29T07:05:12.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
34.211538
79
0.7448
62c4d5e6f1bf88ff98a5b0f49ca9138fbb551d3d
843
py
Python
setup.py
jbirky/vplanet_inference
35d69a84aa6d9011d5ff5b26da9d977d69b510bf
[ "MIT" ]
null
null
null
setup.py
jbirky/vplanet_inference
35d69a84aa6d9011d5ff5b26da9d977d69b510bf
[ "MIT" ]
null
null
null
setup.py
jbirky/vplanet_inference
35d69a84aa6d9011d5ff5b26da9d977d69b510bf
[ "MIT" ]
null
null
null
from setuptools import setup setup(name="vplanet_inference", version="0.0.1", description="Python tools for statistical inference with VPLanet", author="Jessica Birky", author_email="jbirky@uw.edu", license = "MIT", url="https://github.com/jbirky/vplanet_inference", packages=[...
35.125
72
0.399763
1e27d8297d34beaf228f689d12f435090da0eef9
155
py
Python
setup.py
Subaru-PFS/ics_hxActor
3fae5388e535635c52e168b8a7aef0bd70b60012
[ "MIT" ]
null
null
null
setup.py
Subaru-PFS/ics_hxActor
3fae5388e535635c52e168b8a7aef0bd70b60012
[ "MIT" ]
null
null
null
setup.py
Subaru-PFS/ics_hxActor
3fae5388e535635c52e168b8a7aef0bd70b60012
[ "MIT" ]
null
null
null
import distutils from distutils.core import setup, Extension import sdss3tools import os sdss3tools.setup( description = "Toy SDSS-3 actor.", )
14.090909
43
0.741935
c3b3c989daa45930d37cbc2617139303bc45d6ba
1,418
py
Python
tests/test_level3/test_not.py
cclauss/soupsieve
1468596369d97c9afd74784933852ddbf04ee2b0
[ "MIT" ]
null
null
null
tests/test_level3/test_not.py
cclauss/soupsieve
1468596369d97c9afd74784933852ddbf04ee2b0
[ "MIT" ]
null
null
null
tests/test_level3/test_not.py
cclauss/soupsieve
1468596369d97c9afd74784933852ddbf04ee2b0
[ "MIT" ]
null
null
null
"""Test not selectors.""" from .. import util from bs4 import BeautifulSoup as BS class TestNot(util.TestCase): """Test not selectors.""" MARKUP = """ <div> <p id="0">Some text <span id="1"> in a paragraph</span>.</p> <a id="2" href="http://google.com">Link</a> <span id="3">Direct child</span...
24.448276
69
0.476728
4152b63b7f76ac0438df46a8ef3eb677648f3220
1,243
py
Python
python_modules/libraries/dagster-postgres/dagster_postgres/schedule_storage/alembic/versions/c63a27054f08_add_snapshots_to_run_storage.py
JPeer264/dagster-fork
32cc87a36134be7c442fa85d6867eb1d3301aea0
[ "Apache-2.0" ]
3
2020-09-09T04:10:23.000Z
2021-11-08T02:10:42.000Z
python_modules/libraries/dagster-postgres/dagster_postgres/schedule_storage/alembic/versions/c63a27054f08_add_snapshots_to_run_storage.py
JPeer264/dagster-fork
32cc87a36134be7c442fa85d6867eb1d3301aea0
[ "Apache-2.0" ]
2
2021-05-11T13:36:27.000Z
2021-09-03T01:53:11.000Z
python_modules/libraries/dagster-postgres/dagster_postgres/schedule_storage/alembic/versions/c63a27054f08_add_snapshots_to_run_storage.py
JPeer264/dagster-fork
32cc87a36134be7c442fa85d6867eb1d3301aea0
[ "Apache-2.0" ]
null
null
null
"""add snapshots to run storage Revision ID: c63a27054f08 Revises: 1ebdd7a9686f Create Date: 2020-04-09 05:57:20.639458 """ import sqlalchemy as sa from alembic import op from dagster.core.storage.migration.utils import has_column, has_table # alembic magic breaks pylint # pylint: disable=no-member # revision iden...
27.021739
94
0.66613
97a3fe90927f9306ceba21f7aa005a77f2e990d2
760
py
Python
trigger1D.py
NCBI-Hackathons/Cells2Image
96fa7e4b3df63b6fecc415412693040bb59ba8d1
[ "MIT" ]
null
null
null
trigger1D.py
NCBI-Hackathons/Cells2Image
96fa7e4b3df63b6fecc415412693040bb59ba8d1
[ "MIT" ]
1
2018-03-21T15:16:40.000Z
2018-03-21T17:59:01.000Z
trigger1D.py
NCBI-Hackathons/Cells2Image
96fa7e4b3df63b6fecc415412693040bb59ba8d1
[ "MIT" ]
3
2018-03-19T16:22:42.000Z
2018-03-20T16:45:27.000Z
from scipy.stats import zscore import numpy as np def gradient_trigger(input_series, threshold=-2.5): # function takes a 1D input series and outputs the gradients, z scores of the gradients # and the frame when the z score threshold is first crossed gradients = np.gradient(input_series) # set gradien...
28.148148
91
0.675
1f9bcccb6f467a865e224db1defcd314f7a9515b
1,406
py
Python
test/test_shopping_cart.py
jsoles7/shopping-cart
d68251a5fa8122e281c4d2240c9d91316c8acc48
[ "MIT" ]
1
2020-02-16T22:31:20.000Z
2020-02-16T22:31:20.000Z
test/test_shopping_cart.py
jsoles7/shopping-cart
d68251a5fa8122e281c4d2240c9d91316c8acc48
[ "MIT" ]
null
null
null
test/test_shopping_cart.py
jsoles7/shopping-cart
d68251a5fa8122e281c4d2240c9d91316c8acc48
[ "MIT" ]
null
null
null
# shopping-cart/test/my_test.py import pytest from shopping_cart import to_usd, find_product def test_to_usd(): #Should apply correct formatting assert to_usd(7.25) == "$7.25" #Should display two decimal places assert to_usd(8.5) == "$8.50" #Should round to two places assert to_usd(3.444444...
37
132
0.650071
a2630ec7f28b03fec914207bc887458ff34058e9
1,504
py
Python
src/Workstation/Important/Path Planning and Motion/astarsearch.py
khansaadbinhasan/Low-Cost-Autonomous-Vehicle-for-Inventory-Movement-in-Warehouses
3c24390a49a76f893675e606ca24fccdbcce43e2
[ "MIT" ]
null
null
null
src/Workstation/Important/Path Planning and Motion/astarsearch.py
khansaadbinhasan/Low-Cost-Autonomous-Vehicle-for-Inventory-Movement-in-Warehouses
3c24390a49a76f893675e606ca24fccdbcce43e2
[ "MIT" ]
null
null
null
src/Workstation/Important/Path Planning and Motion/astarsearch.py
khansaadbinhasan/Low-Cost-Autonomous-Vehicle-for-Inventory-Movement-in-Warehouses
3c24390a49a76f893675e606ca24fccdbcce43e2
[ "MIT" ]
1
2021-06-17T16:28:48.000Z
2021-06-17T16:28:48.000Z
def astar(m,startp,endp,x,y): w,h = x,y sx,sy = startp #Start Point ex,ey = endp #End Point #[parent node, x, y, g, f] node = [None,sx,sy,0,abs(ex-sx)+abs(ey-sy)] closeList = [node] createdList = {} createdList[sy*w+sx] = node k=0 while(closeList): node = closeList.pop...
34.181818
73
0.400266
d4ca1209faa9939d9288d21b3d75c21952108e26
2,143
py
Python
serial_device.py
s-fifteen-instruments/Digital_Pattern_Generator_DPG1
e8113154ba150a5d19e26171c9204cf22d55760d
[ "MIT" ]
null
null
null
serial_device.py
s-fifteen-instruments/Digital_Pattern_Generator_DPG1
e8113154ba150a5d19e26171c9204cf22d55760d
[ "MIT" ]
null
null
null
serial_device.py
s-fifteen-instruments/Digital_Pattern_Generator_DPG1
e8113154ba150a5d19e26171c9204cf22d55760d
[ "MIT" ]
null
null
null
from __future__ import print_function # Needed for compatibility with Py2 """ Author: Alessandro Cere Modified by: Chin Chean Lim, 03/06/2019 Created: 2017.10.16 Description: General serial device """ import serial import time from serial import SerialException class SerialDevice(serial.Serial): """ The us...
31.057971
149
0.633224
f24ec90c076769a271375a22ab3cf535308f7374
505
py
Python
2017_to_2018.py
ProtD/iwik
cf173c393542988d5b84e12615c53c9853d57358
[ "MIT" ]
null
null
null
2017_to_2018.py
ProtD/iwik
cf173c393542988d5b84e12615c53c9853d57358
[ "MIT" ]
null
null
null
2017_to_2018.py
ProtD/iwik
cf173c393542988d5b84e12615c53c9853d57358
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys input = open(sys.argv[1], 'r') start_city = input.readline().rstrip() cities = set() for i, l in enumerate(input): [f, t, d, p] = l.rstrip().split(' ') cities.add(f) input.close() print("{} {}".format(len(cities), start_city)) for i, city in enumerate(cities): print(i) ...
21.956522
50
0.584158
0c46809a38d2bce4ecd3dc3e4364c6f147e36dc6
2,326
py
Python
Python/Creating_Charts_with_Broken_Axes/broken_axes.py
PeriscopeData/analytics-toolbox
83effdee380c33e5eecea29528acf5375fd496fb
[ "MIT" ]
2
2019-09-27T22:19:09.000Z
2019-12-02T23:12:18.000Z
Python/Creating_Charts_with_Broken_Axes/broken_axes.py
PeriscopeData/analytics-toolbox
83effdee380c33e5eecea29528acf5375fd496fb
[ "MIT" ]
1
2019-10-03T17:46:23.000Z
2019-10-03T17:46:23.000Z
Python/Creating_Charts_with_Broken_Axes/broken_axes.py
PeriscopeData/analytics-toolbox
83effdee380c33e5eecea29528acf5375fd496fb
[ "MIT" ]
2
2021-07-17T18:23:50.000Z
2022-03-03T04:53:03.000Z
# Code help from https://stackoverflow.com/questions/32185411/break-in-x-axis-of-matplotlib?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa import pandas as pd import matplotlib.pylab as plt import numpy as np z=np.array(df) x= z[:,0] y = z[:,1] # 1. create two subplots f,(ax,ax2) = plt.subplo...
33.228571
164
0.687016
9a39930de7c8fb76bf05db8bc2ba6a2895ae7466
2,184
py
Python
examples/com.netease.cloudmusic-pytest/test_discover_music.py
100440175/facebook-wda
d335b5506c210e15a220d6734510f9c40d11261d
[ "MIT" ]
null
null
null
examples/com.netease.cloudmusic-pytest/test_discover_music.py
100440175/facebook-wda
d335b5506c210e15a220d6734510f9c40d11261d
[ "MIT" ]
null
null
null
examples/com.netease.cloudmusic-pytest/test_discover_music.py
100440175/facebook-wda
d335b5506c210e15a220d6734510f9c40d11261d
[ "MIT" ]
null
null
null
# coding: utf-8 # # 网易云音乐测试示例 # import os import time import pytest import wda bundle_id = 'com.netease.cloudmusic' c = wda.Client() s = None USERNAME = os.getenv('USERNAME') PASSWORD = os.getenv('PASSWORD') def account_logout(s): s(nameMatches=u'帐[ ]*号', type='Button').tap() # not support \s, wired s(nam...
23.483871
99
0.626374
a3c73a455c57f1799c2358a095293d6394032729
4,228
py
Python
Non-React Stuff/alexa/lambda/skill_env/ask_sdk_model/interfaces/amazonpay/model/request/price.py
ReciPull/reciprogram
b8c7e4610f95c5beafad3c9880fc5beceec523e7
[ "MIT" ]
1
2019-09-16T19:13:13.000Z
2019-09-16T19:13:13.000Z
Non-React Stuff/alexa/lambda/skill_env/ask_sdk_model/interfaces/amazonpay/model/request/price.py
ReciPull/reciprogram
b8c7e4610f95c5beafad3c9880fc5beceec523e7
[ "MIT" ]
5
2021-03-09T03:30:14.000Z
2022-02-26T10:42:17.000Z
alexa/reciPullLambda/ask_sdk_model/interfaces/amazonpay/model/request/price.py
ReciPull/recipull.github.io
e6b800af02658bb7948297c4ddc1b7af6d978839
[ "MIT" ]
null
null
null
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
33.555556
103
0.604541
7ff98c79eb934327b1dc58cadce664e252ae999f
327
py
Python
libraries/urx_python/urx_scripts/urx_modified/urx/__init__.py
giacomotomasi/tennisball_demo
f71cd552e64fe21533abe47b986db6999947c3a9
[ "Apache-2.0" ]
1
2021-08-04T16:18:22.000Z
2021-08-04T16:18:22.000Z
urx/__init__.py
EmilRyberg/P5BinPicking
4a4c302b8aa0ea8e3d361ef62ef3742d8b716352
[ "MIT" ]
null
null
null
urx/__init__.py
EmilRyberg/P5BinPicking
4a4c302b8aa0ea8e3d361ef62ef3742d8b716352
[ "MIT" ]
1
2021-08-03T03:41:41.000Z
2021-08-03T03:41:41.000Z
""" Python library to control an UR robot through its TCP/IP interface """ from urx.urrobot import RobotException, URRobot # noqa __version__ = "0.11.0" try: from urx.robot import Robot except ImportError as ex: print("Exception while importing math3d base robot, disabling use of matrices", ex) Robot = U...
25.153846
87
0.737003
7962bc11f0e4d3c6881cbad5af5c8b3e3c2a80cc
344
py
Python
chainercv/functions/__init__.py
beam2d/chainercv
55d34c07cbbd03642b71d375db579433859bd00e
[ "MIT" ]
1,600
2017-06-01T15:37:52.000Z
2022-03-09T08:39:09.000Z
chainercv/functions/__init__.py
beam2d/chainercv
55d34c07cbbd03642b71d375db579433859bd00e
[ "MIT" ]
547
2017-06-01T06:43:16.000Z
2021-05-28T17:14:05.000Z
chainercv/functions/__init__.py
beam2d/chainercv
55d34c07cbbd03642b71d375db579433859bd00e
[ "MIT" ]
376
2017-06-02T01:29:10.000Z
2022-03-13T11:19:59.000Z
from chainercv.functions.ps_roi_average_align_2d import ps_roi_average_align_2d # NOQA from chainercv.functions.ps_roi_average_pooling_2d import ps_roi_average_pooling_2d # NOQA from chainercv.functions.ps_roi_max_align_2d import ps_roi_max_align_2d # NOQA from chainercv.functions.ps_roi_max_pooling_2d import ps_roi...
68.8
91
0.883721
cfadd1cb503534912f2d4665bfbaf39c1f89a061
916
py
Python
mdde/core/mdde/registry/container/registry_response_helper.py
akharitonov/mdde
b0443f3c9c3ca948e9dda213572926087c214d8d
[ "MIT" ]
1
2021-05-17T11:17:51.000Z
2021-05-17T11:17:51.000Z
mdde/core/mdde/registry/container/registry_response_helper.py
akharitonov/mdde
b0443f3c9c3ca948e9dda213572926087c214d8d
[ "MIT" ]
4
2020-05-30T12:23:04.000Z
2021-12-25T12:59:14.000Z
mdde/core/mdde/registry/container/registry_response_helper.py
akharitonov/mdde
b0443f3c9c3ca948e9dda213572926087c214d8d
[ "MIT" ]
null
null
null
# from mdde.registry.exceptions import RegistryResponseError from mdde.registry.container import RegistryResponse class RegistryResponseHelper: """ Functions commonly used when working with the objects returned from the registry. """ @staticmethod def raise_on_error(response: RegistryResponse): ...
39.826087
97
0.66048
067fa74d288ee0e102c14354a5b9282e8dd579b0
525
py
Python
pagetools/menus/migrations/0004_auto_20160911_1305.py
theithec/pagetools
f5fba7213864555275bddcc1882122f3be843f19
[ "MIT" ]
null
null
null
pagetools/menus/migrations/0004_auto_20160911_1305.py
theithec/pagetools
f5fba7213864555275bddcc1882122f3be843f19
[ "MIT" ]
14
2020-02-23T12:15:49.000Z
2022-02-13T14:07:27.000Z
pagetools/menus/migrations/0004_auto_20160911_1305.py
theithec/django-pagetools
8fb73285acee8c8162329fc2895a3816fcb40165
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-09-11 13:05 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("menus", "0003_auto_20160908_1553"), ] operations = [ migrations.AlterModelOptions( ...
22.826087
62
0.590476
c147f271a6c5a39144d6ccc9855a2753f684f981
8,425
py
Python
app.py
AmruthaR8/Damage-car-Detection
98cc842d21eced2d6d3353bb72c1c9bf49fb22a1
[ "MIT" ]
null
null
null
app.py
AmruthaR8/Damage-car-Detection
98cc842d21eced2d6d3353bb72c1c9bf49fb22a1
[ "MIT" ]
null
null
null
app.py
AmruthaR8/Damage-car-Detection
98cc842d21eced2d6d3353bb72c1c9bf49fb22a1
[ "MIT" ]
null
null
null
import os import sys import uvicorn as uvicorn from flask import Flask, render_template, request from object_detector_detection_api_lite import * import flask from werkzeug.utils import secure_filename import tensorflow as tf from PIL import Image import PIL import numpy as np app = Flask(__name__) app.config['UPLOA...
31.792453
220
0.667537
9d46f6e30ec83e60ebe6ab53b37612d24386f7a9
2,547
py
Python
test/grab_charset.py
gonchik/grab
d007afb7aeab63036d494f3b2704be96ea570810
[ "MIT" ]
null
null
null
test/grab_charset.py
gonchik/grab
d007afb7aeab63036d494f3b2704be96ea570810
[ "MIT" ]
null
null
null
test/grab_charset.py
gonchik/grab
d007afb7aeab63036d494f3b2704be96ea570810
[ "MIT" ]
null
null
null
# coding: utf-8 """ This test fails in py3.3 environment because `grab.response.body` contains <str>, but it should contains <bytes> """ import six from test.util import build_grab from test.util import BaseGrabTestCase class GrabCharsetDetectionTestCase(BaseGrabTestCase): def setUp(self): self.server.re...
33.96
76
0.610915
c7b0fdfa5f68259385511d321c140b692755db3d
6,305
py
Python
main.py
heng2j/RL-Trade
5e488945d21dafc2d20dfc47d99e2662129c637b
[ "MIT" ]
null
null
null
main.py
heng2j/RL-Trade
5e488945d21dafc2d20dfc47d99e2662129c637b
[ "MIT" ]
null
null
null
main.py
heng2j/RL-Trade
5e488945d21dafc2d20dfc47d99e2662129c637b
[ "MIT" ]
null
null
null
# Reference Code # https://gist.github.com/arsalanaf/d10e0c9e2422dba94c91e478831acb12 # https://github.com/Stable-Baselines-Team/stable-baselines-tf2 # https://github.com/notadamking/Stock-Trading-Visualization import gym import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import IPython.di...
28.400901
174
0.628707
63c2e1a43e9e8d4c3a628dd98a48f2de0ddb52a5
1,372
py
Python
lib/galaxy/util/monitors.py
mmiladi/galaxy
7857b152cd10d9490ac2433ff2905ca1a47ee32c
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/util/monitors.py
mmiladi/galaxy
7857b152cd10d9490ac2433ff2905ca1a47ee32c
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/util/monitors.py
mmiladi/galaxy
7857b152cd10d9490ac2433ff2905ca1a47ee32c
[ "CC-BY-3.0" ]
null
null
null
from __future__ import absolute_import import logging import threading from .sleeper import Sleeper log = logging.getLogger(__name__) DEFAULT_MONITOR_THREAD_JOIN_TIMEOUT = 5 class Monitors: def _init_monitor_thread(self, name, target_name=None, target=None, start=False, config=None): self.monitor_joi...
30.488889
117
0.687318
00f55e52352d63179dca10207ae28e7bae0b9463
313
py
Python
src/movement/hayHay.py
Quanta-Robotics/Robot-Blueberry
7b7e77e09ac5e9ec5afd947e0db1ecc8773e56da
[ "MIT" ]
25
2021-06-08T07:09:30.000Z
2021-12-30T06:28:35.000Z
src/movement/hayHay.py
ICT-CoU/Robot-Blueberry
d19fd1be037df9d67de64df57a87006d74cd6c43
[ "MIT" ]
2
2021-05-23T12:54:51.000Z
2021-06-07T17:47:56.000Z
src/movement/hayHay.py
ICT-CoU/Robot-Blueberry
d19fd1be037df9d67de64df57a87006d74cd6c43
[ "MIT" ]
14
2021-06-08T13:02:28.000Z
2021-12-30T20:07:18.000Z
from expression import * say("hay hay ") takePosition() changeDegree([6,10,4,2,5,9,3,1],[80,10,0,100,70,180,180,90],0.05,0) changeDegree([8,7],[140,60]) time.sleep(1) changeDegree([8,7],[0,180]) changeDegree([4,2,6,10,3,1,5,9],[180,130,Initial[6],Initial[10],0,50,Initial[5],Initial[9]],0.05,0) takePosition()
24.076923
99
0.670927
514bfb714cea3509a1068f1d71e20f60d2ff8149
93,023
py
Python
code/tmp_rtrip/email/_header_value_parser.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
24
2018-01-23T05:28:40.000Z
2021-04-13T20:52:59.000Z
code/tmp_rtrip/email/_header_value_parser.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
17
2017-12-21T18:32:31.000Z
2018-12-18T17:09:50.000Z
code/tmp_rtrip/email/_header_value_parser.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
null
null
null
"""Header value parser implementing various email-related RFC parsing rules. The parsing methods defined in this module implement various email related parsing rules. Principal among them is RFC 5322, which is the followon to RFC 2822 and primarily a clarification of the former. It also implements RFC 2047 encoded w...
33.65521
113
0.595444
5a41d4a81d09aa759ee41e10f44e8ee66880d35b
166
py
Python
python/testData/inspections/AddCallSuperConflictingTupleParam_after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/AddCallSuperConflictingTupleParam_after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/inspections/AddCallSuperConflictingTupleParam_after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class A: def __init__(self, (a, (b, c)), (d, e)): pass class B(A): def __init__(self, (a, b), c, e, d): A.__init__(self, (a, (b, c)), (d, e))
23.714286
45
0.451807
0d1b5b34def9efc7a76694484299ff467a28c3d6
2,259
py
Python
apps/categories/tests/test_models.py
ar0ne/mptt-demo
1c1a6c70f1844e1070fe17ff1fb267cae142a97e
[ "MIT" ]
null
null
null
apps/categories/tests/test_models.py
ar0ne/mptt-demo
1c1a6c70f1844e1070fe17ff1fb267cae142a97e
[ "MIT" ]
null
null
null
apps/categories/tests/test_models.py
ar0ne/mptt-demo
1c1a6c70f1844e1070fe17ff1fb267cae142a97e
[ "MIT" ]
null
null
null
""" Unit tests for Models """ from apps.categories.models import Category from apps.categories.tests.conftest import BaseTestCase class TestCategoryModel(BaseTestCase): def test_get_parents(self): self.assertEqual([], list(self.root.get_parents())) self.assertEqual([self.root], list(self.cat1.get...
40.339286
84
0.671979
cf429d32e89d1c97594daca64cfd4b4e1eb792d2
1,809
py
Python
src/tblink_rpc/__main__.py
tblink-rpc/pytblink-rpc
fb3a4d658942107a5882280f082c91d2e3396a35
[ "Apache-2.0" ]
2
2022-03-30T11:57:57.000Z
2022-03-30T12:31:36.000Z
src/tblink_rpc/__main__.py
fvutils/pytblink
7e62355927f8d9558c0b3f95e9eaaa509468131b
[ "Apache-2.0" ]
null
null
null
src/tblink_rpc/__main__.py
fvutils/pytblink
7e62355927f8d9558c0b3f95e9eaaa509468131b
[ "Apache-2.0" ]
null
null
null
''' Created on Jul 8, 2020 @author: ballance ''' import argparse import os import sys tblink_dir = os.path.dirname(os.path.abspath(__file__)) hvl_dir = os.path.join(tblink_dir, "hvl") def files(args): sv_dpi_files = [ os.path.join(hvl_dir, "tblink.sv") ] files = None if args.language...
22.898734
68
0.578773
d58da54af84a877eedd48b43933b6421be32e806
3,379
py
Python
tensorflow_datasets/core/features/text_feature_test.py
rsepassi/datasets
299f482da52aebe910e91053dbb06a36355f4cde
[ "Apache-2.0" ]
1
2020-12-07T14:55:44.000Z
2020-12-07T14:55:44.000Z
tensorflow_datasets/core/features/text_feature_test.py
rsepassi/datasets
299f482da52aebe910e91053dbb06a36355f4cde
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/core/features/text_feature_test.py
rsepassi/datasets
299f482da52aebe910e91053dbb06a36355f4cde
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The TensorFlow Datasets 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 appl...
32.490385
77
0.622078
80b68c18ed9d7192b52c5713c0659d4ebc3a46c9
518
py
Python
apps/wallposts/urlsapi.py
gannetson/sportschooldeopenlucht
0c78e5a95b22a963244112e478119ba60c572141
[ "BSD-3-Clause" ]
1
2019-01-19T06:58:39.000Z
2019-01-19T06:58:39.000Z
apps/wallposts/urlsapi.py
gannetson/sportschooldeopenlucht
0c78e5a95b22a963244112e478119ba60c572141
[ "BSD-3-Clause" ]
null
null
null
apps/wallposts/urlsapi.py
gannetson/sportschooldeopenlucht
0c78e5a95b22a963244112e478119ba60c572141
[ "BSD-3-Clause" ]
null
null
null
from apps.wallposts.views import WallPostDetail from django.conf.urls import patterns, url from surlex.dj import surl from .views import ReactionList, ReactionDetail, WallPostList urlpatterns = patterns('', url(r'^$', WallPostList.as_view(), name='wallpost-list'), surl(r'^<pk:#>$', WallPostDetail.as_view(), na...
43.166667
91
0.723938
9dba93c8973cd68021f6b36ee4bb72c596baf41a
2,332
py
Python
Forward_search.py
alvcorcas/PDDL
4b3ff61c7e2793a6f3e78835e5617a2b283fa95e
[ "MIT" ]
null
null
null
Forward_search.py
alvcorcas/PDDL
4b3ff61c7e2793a6f3e78835e5617a2b283fa95e
[ "MIT" ]
null
null
null
Forward_search.py
alvcorcas/PDDL
4b3ff61c7e2793a6f3e78835e5617a2b283fa95e
[ "MIT" ]
null
null
null
import Heuristics as heur no_path = 'There is no path from initial state to target' def forward_search_prego(initial_state, target, actions): return forward_search_prego_aux([], [], initial_state, target, actions) def forward_search_prego_aux(path, visiteds, current, target, actions): if current.satisfy(ta...
32.388889
98
0.680103
cd384fc521f3a87e755b898c1c263ff78b695d40
3,981
py
Python
tests/test_sensfsp_solver.py
voduchuy/pypacmensl
59b845f4a6891a5c7105696053655437fa181356
[ "MIT" ]
null
null
null
tests/test_sensfsp_solver.py
voduchuy/pypacmensl
59b845f4a6891a5c7105696053655437fa181356
[ "MIT" ]
null
null
null
tests/test_sensfsp_solver.py
voduchuy/pypacmensl
59b845f4a6891a5c7105696053655437fa181356
[ "MIT" ]
null
null
null
import unittest import mpi4py.MPI as mpi import numpy as np import pypacmensl.sensitivity.multi_sinks as sensfsp def tcoeff(t, out): out[0] = 1 out[1] = 1 out[2] = 1 out[3] = 1 def dtcoeff(parameter, t, out): if parameter == 0: out[0] = 1.0 elif parameter == 1: out[1] = 1.0 ...
33.453782
70
0.521728
c49942940c083c70545f111763e934873f5cdbdb
7,711
py
Python
tabular/src/autogluon/tabular/models/knn/knn_model.py
gaozhihan/autogluon
77a04ef19bcaa2a81738e51884c1018aa9e4ff65
[ "Apache-2.0" ]
null
null
null
tabular/src/autogluon/tabular/models/knn/knn_model.py
gaozhihan/autogluon
77a04ef19bcaa2a81738e51884c1018aa9e4ff65
[ "Apache-2.0" ]
null
null
null
tabular/src/autogluon/tabular/models/knn/knn_model.py
gaozhihan/autogluon
77a04ef19bcaa2a81738e51884c1018aa9e4ff65
[ "Apache-2.0" ]
null
null
null
import logging import numpy as np import math import psutil import time from sklearn.neighbors import KNeighborsClassifier, KNeighborsRegressor from autogluon.core.constants import REGRESSION from autogluon.core.utils.exceptions import NotEnoughMemoryError from autogluon.core.features.types import R_CATEGORY, R_OBJEC...
44.831395
237
0.663338
b4567f3759d2dbbbd2c7692dd6fae7f9db9d74b6
1,216
py
Python
uwasp/middleware.py
tjhall13/uwasp
a574b70b20e41e7fc4c4fdcf81689eafbdcea83f
[ "Apache-2.0" ]
null
null
null
uwasp/middleware.py
tjhall13/uwasp
a574b70b20e41e7fc4c4fdcf81689eafbdcea83f
[ "Apache-2.0" ]
null
null
null
uwasp/middleware.py
tjhall13/uwasp
a574b70b20e41e7fc4c4fdcf81689eafbdcea83f
[ "Apache-2.0" ]
null
null
null
from .websocket import WebSocket from .handlers import ThreadHandler class WebSocketMiddleware(object): def __init__(self, application, handler_class=ThreadHandler, servers=[]): self.application = application self.handler_class = handler_class self.server_classes = dict(servers) def __...
39.225806
77
0.616776
6a26e004d717f6bcd26e64c96748239dd5d1a71a
633
py
Python
article/migrations/0012_works_work_category.py
skylifewww/artdelo
55d235a59d8a3abdf0f904336c1c75a2be903699
[ "MIT" ]
null
null
null
article/migrations/0012_works_work_category.py
skylifewww/artdelo
55d235a59d8a3abdf0f904336c1c75a2be903699
[ "MIT" ]
null
null
null
article/migrations/0012_works_work_category.py
skylifewww/artdelo
55d235a59d8a3abdf0f904336c1c75a2be903699
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-07-06 17:30 from __future__ import unicode_literals from django.db import migrations import django.db.models.deletion import mptt.fields class Migration(migrations.Migration): dependencies = [ ('article', '0011_auto_20160702_0203'), ] ...
27.521739
185
0.671406
9e9f05eff29b8a5e628cdeb48e90759c5b02c565
1,948
py
Python
data/image_folder.py
a11isonliu/contrastive-unpaired-translation
67651ed9877cae121d9398f46094ce8dbc678802
[ "BSD-3-Clause" ]
null
null
null
data/image_folder.py
a11isonliu/contrastive-unpaired-translation
67651ed9877cae121d9398f46094ce8dbc678802
[ "BSD-3-Clause" ]
null
null
null
data/image_folder.py
a11isonliu/contrastive-unpaired-translation
67651ed9877cae121d9398f46094ce8dbc678802
[ "BSD-3-Clause" ]
null
null
null
"""A modified image folder class We modify the official PyTorch image folder (https://github.com/pytorch/vision/blob/master/torchvision/datasets/folder.py) so that this class can load images from both current directory and its subdirectories. """ import torch.utils.data as data from PIL import Image import os import...
29.074627
122
0.617556
5182f60faa3c9ba570c75cbe0ab80678700f7921
1,321
py
Python
dyndnsc/detector/socket_ip.py
infothrill/python-dyndnsc
7ee6c55b3cca751d7bd7155ac935d4ad13189684
[ "MIT" ]
35
2015-02-13T02:54:49.000Z
2022-03-16T17:03:07.000Z
dyndnsc/detector/socket_ip.py
infothrill/python-dyndnsc
7ee6c55b3cca751d7bd7155ac935d4ad13189684
[ "MIT" ]
121
2015-02-04T15:48:08.000Z
2022-03-27T17:25:58.000Z
dyndnsc/detector/socket_ip.py
infothrill/python-dyndnsc
7ee6c55b3cca751d7bd7155ac935d4ad13189684
[ "MIT" ]
9
2015-04-30T15:48:06.000Z
2018-07-05T12:50:25.000Z
# -*- coding: utf-8 -*- """Module containing logic for socket based detectors.""" import logging from .base import IPDetector, AF_INET6 from ..common.detect_ip import detect_ip, IPV4, IPV6_PUBLIC, GetIpException LOG = logging.getLogger(__name__) class IPDetector_Socket(IPDetector): """Detect IPs used by the s...
29.355556
79
0.635882