hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
f302d1207e3d19d117a4ba482f9a70b75a5a7ec7
2,512
py
Python
setup.py
jamesgleave/JG_Mask_RCNN_Blueprint
26edc2f931970a37ac2494991e26b8ff082b9dae
[ "MIT" ]
1
2019-07-10T19:04:02.000Z
2019-07-10T19:04:02.000Z
setup.py
jamesgleave/JG_Mask_RCNN_Blueprint
26edc2f931970a37ac2494991e26b8ff082b9dae
[ "MIT" ]
null
null
null
setup.py
jamesgleave/JG_Mask_RCNN_Blueprint
26edc2f931970a37ac2494991e26b8ff082b9dae
[ "MIT" ]
null
null
null
""" The build/compilations setup pip install -r requirements.txt python setup.py install """ import pip import logging import pkg_resources try: from setuptools import setup except ImportError: from distutils.core import setup def _parse_requirements(file_path): pip_ver = pkg_resources.get_distribution('...
36.405797
103
0.677548
590f9f91062879dcb6199642d5527fff94de93d8
2,853
py
Python
controller.py
sbustars/STARS
46a7475fa5d8afe9851581a17ad803b063525fbf
[ "MIT" ]
9
2020-11-05T21:26:09.000Z
2022-03-04T15:24:40.000Z
controller.py
sbustars/STARS
46a7475fa5d8afe9851581a17ad803b063525fbf
[ "MIT" ]
7
2020-11-06T15:59:40.000Z
2021-08-31T16:36:43.000Z
controller.py
sbustars/STARS
46a7475fa5d8afe9851581a17ad803b063525fbf
[ "MIT" ]
1
2021-07-13T21:55:02.000Z
2021-07-13T21:55:02.000Z
from threading import Lock, Event from interpreter.debugger import Debug from interpreter.interpreter import Interpreter import settings ''' https://github.com/sbustars/STARS Copyright 2020 Kevin McDonnell, Jihu Mun, and Ian Peitzsch Developed by Kevin McDonnell (ktm@cs.stonybrook.edu), Jihu Mun (jihu1011@gmail.com)...
38.554054
460
0.711532
47091755fb6c463386dcdcd04708aa79a7e0996b
4,159
py
Python
_py2tmp/ir0_optimization/_optimization_execution.py
google/tmppy
faf67af1213ee709f28cc5f492ec4903c51d4104
[ "Apache-2.0" ]
27
2017-10-02T01:17:35.000Z
2021-10-16T23:31:46.000Z
_py2tmp/ir0_optimization/_optimization_execution.py
google/tmppy
faf67af1213ee709f28cc5f492ec4903c51d4104
[ "Apache-2.0" ]
51
2017-10-01T09:38:22.000Z
2018-10-13T16:39:39.000Z
_py2tmp/ir0_optimization/_optimization_execution.py
google/tmppy
faf67af1213ee709f28cc5f492ec4903c51d4104
[ "Apache-2.0" ]
9
2017-11-04T13:12:27.000Z
2021-10-16T23:31:38.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
45.703297
110
0.63044
0e959c6e8ecedae40842f2226b4eb93c2586a023
20,064
py
Python
src/iemws/services/cow.py
akrherz/iem-web-services
e1e232b020d7b59eacd562b866e045044cbc4e46
[ "Apache-2.0" ]
null
null
null
src/iemws/services/cow.py
akrherz/iem-web-services
e1e232b020d7b59eacd562b866e045044cbc4e46
[ "Apache-2.0" ]
87
2018-03-20T12:57:59.000Z
2022-03-30T18:54:36.000Z
src/iemws/services/cow.py
akrherz/iem-web-services
e1e232b020d7b59eacd562b866e045044cbc4e46
[ "Apache-2.0" ]
null
null
null
"""IEM Cow (NWS Storm Based Warning Verification) API See [IEM Cow](https://mesonet.agron.iastate.edu/cow/) webpage for the user frontend to this API and for more discussion about what this does. While this service only emits JSON, the JSON response embeds to GeoJSON objects providing the storm reports and warnings. ...
35.637655
79
0.515152
827731909f540ff076d023fd065bbd91b7f2a8c8
126
py
Python
nmoo/plotting/__init__.py
altaris/noisy-moo
86fd5972c8bf9216357cca3abaa0268ff04b1cc0
[ "MIT" ]
1
2022-03-17T09:03:17.000Z
2022-03-17T09:03:17.000Z
nmoo/plotting/__init__.py
altaris/noisy-moo
86fd5972c8bf9216357cca3abaa0268ff04b1cc0
[ "MIT" ]
5
2021-09-13T02:08:12.000Z
2021-10-12T03:41:15.000Z
nmoo/plotting/__init__.py
altaris/noisy-moo
86fd5972c8bf9216357cca3abaa0268ff04b1cc0
[ "MIT" ]
null
null
null
""" Plotting """ from .delta_f import generate_delta_F_plots from .performance_indicators import plot_performance_indicators
18
63
0.84127
3682a56d52627e187957410613a6f36b5bb40380
2,880
py
Python
tests/test_wavenet_2.py
stankevich-mipt/pytorch-wavenet
202641b242e1948df05658683aad6348f41c8f7f
[ "MIT" ]
858
2017-04-20T13:18:15.000Z
2022-03-23T21:07:51.000Z
tests/test_wavenet_2.py
niyingqiu/pytorch-wavenet
26ba28989edcf8688f6216057aafda07601ff07e
[ "MIT" ]
41
2017-06-22T02:26:39.000Z
2022-03-27T23:29:37.000Z
tests/test_wavenet_2.py
niyingqiu/pytorch-wavenet
26ba28989edcf8688f6216057aafda07601ff07e
[ "MIT" ]
225
2017-06-21T06:32:03.000Z
2022-03-27T23:28:00.000Z
import time from wavenet_model import WaveNetModel from wavenet_training import * from torch.autograd import Variable import torch import numpy as np model = WaveNetModel(layers=7, blocks=2, dilation_channels=4, residual_channels=4, sk...
35.121951
98
0.573611
535fb8ad0fb626a9763778835615b0079802d66b
2,895
py
Python
region_proposal_network/loss.py
fredfung007/snlt
5ce66f9f79808d39341dd3dfbab6a2c78e1c0425
[ "Apache-2.0" ]
8
2021-04-08T12:48:13.000Z
2022-03-30T03:28:03.000Z
region_proposal_network/loss.py
fredfung007/snlt
5ce66f9f79808d39341dd3dfbab6a2c78e1c0425
[ "Apache-2.0" ]
11
2021-05-21T08:56:16.000Z
2022-03-15T01:58:21.000Z
region_proposal_network/loss.py
fredfung007/snlt
5ce66f9f79808d39341dd3dfbab6a2c78e1c0425
[ "Apache-2.0" ]
3
2021-06-21T17:14:41.000Z
2021-11-30T12:34:34.000Z
# COPYRIGHT 2021. Fred Fung. Boston University. import torch def get_cls_loss(pred, label, select): if len(select.size()) == 0 or select.size() == torch.Size([0]): return torch.tensor(0., requires_grad=False) pred = torch.index_select(pred, 0, select) label = torch.index_select(label, 0, select) ...
39.121622
118
0.641105
d30eaa5806502d6cdf5c803c035d967dc9a6fad9
11,508
py
Python
my_pybullet_envs/inmoov_hand.py
jyf588/pytorch-rl-bullet
3ac1835d01e658b2078126895ffa0eb11304abb4
[ "MIT" ]
null
null
null
my_pybullet_envs/inmoov_hand.py
jyf588/pytorch-rl-bullet
3ac1835d01e658b2078126895ffa0eb11304abb4
[ "MIT" ]
null
null
null
my_pybullet_envs/inmoov_hand.py
jyf588/pytorch-rl-bullet
3ac1835d01e658b2078126895ffa0eb11304abb4
[ "MIT" ]
null
null
null
import pybullet as p import time import gym, gym.utils.seeding import numpy as np import math import os import inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) # TODO: mass good or not? # TODO: render class InmoovHand: def __init__(self, base_init_po...
41.695652
128
0.595846
ea1b9010b7ef57cdf4fa6cdff02eff0315522a70
7,430
py
Python
accelbyte_py_sdk/api/iam/operations/third_party_credential/delete_third_party_login_platform_credential_v3.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/iam/operations/third_party_credential/delete_third_party_login_platform_credential_v3.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/iam/operations/third_party_credential/delete_third_party_login_platform_credential_v3.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
# Auto-generated at 2021-09-27T17:01:25.033996+08:00 # from: Justice Iam Service (4.1.0) # Copyright (c) 2018 - 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # pylint: disable=duplicate-code # pylint: ...
29.72
155
0.63284
1d8208138ae29283edf6aa19be2702e84c749447
19,970
py
Python
syft/serde/msgpack/serde.py
Prtfw/PySyft
82eede90acf09f26de389237524897e2b142f9ff
[ "Apache-2.0" ]
null
null
null
syft/serde/msgpack/serde.py
Prtfw/PySyft
82eede90acf09f26de389237524897e2b142f9ff
[ "Apache-2.0" ]
null
null
null
syft/serde/msgpack/serde.py
Prtfw/PySyft
82eede90acf09f26de389237524897e2b142f9ff
[ "Apache-2.0" ]
null
null
null
""" This file exists to provide one common place for all msgpack serialization to occur. As msgpack only supports basic types and binary formats every type must be first be converted to one of these types. Thus, we've split our functionality into three steps. When converting from a PySyft object (or collection of objec...
42.042105
115
0.743165
cb29ed3138880ac06db6f930645029ba7c690240
1,708
py
Python
ortools/algorithms/samples/simple_knapsack_program.py
sreesubbash/or-tools
701496e45d54fa9938afeedec43089314d93ec11
[ "Apache-2.0" ]
1
2021-03-30T21:10:27.000Z
2021-03-30T21:10:27.000Z
ortools/algorithms/samples/simple_knapsack_program.py
sreesubbash/or-tools
701496e45d54fa9938afeedec43089314d93ec11
[ "Apache-2.0" ]
null
null
null
ortools/algorithms/samples/simple_knapsack_program.py
sreesubbash/or-tools
701496e45d54fa9938afeedec43089314d93ec11
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2018 Google LLC # 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...
29.964912
78
0.679742
ec69e07cb196cebe6fe64b2390c4fcdb0376ced1
5,602
py
Python
eve_module/user_auth/text.py
alentoghostflame/StupidEveAppraisalBot
a78adb206efd3a4dc41cbbfb45ee0b8b61aea248
[ "MIT" ]
1
2021-12-12T02:50:20.000Z
2021-12-12T02:50:20.000Z
eve_module/user_auth/text.py
alentoghostflame/StupidEveAppraisalBot
a78adb206efd3a4dc41cbbfb45ee0b8b61aea248
[ "MIT" ]
17
2020-02-07T23:40:36.000Z
2020-12-22T16:38:44.000Z
eve_module/user_auth/text.py
alentoghostflame/StupidEveAppraisalBot
a78adb206efd3a4dc41cbbfb45ee0b8b61aea248
[ "MIT" ]
null
null
null
EVE_AUTH_CONTROL_BRIEF = "EVE authorization manager." EVE_AUTH_CONTROL_COMMAND_NOT_FOUND = "Command not found, do `auth` to list all the commands." EVE_AUTH_CONTROL_MISSING_ARG_1 = "`auth list|create|delete|select|info|update|token`" EVE_AUTH_CONTROL_HELP_DESCRIPTION = "Manages the level of authorization the bot has f...
86.184615
120
0.605677
2199f5f861efd8b173c92f5480f1161bb36b4e6e
214
py
Python
src/api/api.py
mariadb-developers/places-app-python
ead39db0a269a098ae4e0d700d05e3e87688ec89
[ "MIT" ]
8
2020-08-19T00:12:59.000Z
2021-09-17T21:06:06.000Z
src/api/api.py
mariadb-developers/places-app-python
ead39db0a269a098ae4e0d700d05e3e87688ec89
[ "MIT" ]
170
2022-01-09T07:56:20.000Z
2022-03-02T12:03:11.000Z
api/python/api.py
isabella232/dev-example-places
c75ebf8b50f1b0c9f852266b80d9951a9b3955cb
[ "MIT" ]
8
2020-05-17T08:36:39.000Z
2022-02-01T08:26:32.000Z
import flask from locations import locations app = flask.Flask(__name__) app.config["DEBUG"] = True app.register_blueprint(locations) @app.route("/api/version") def version(): return "1.0" app.run(port=8080)
17.833333
33
0.738318
37808bcf8d751d300a99371cbfeaa29134c60fd2
2,391
py
Python
tests/unit/core/test_platform_detection.py
tony/scout_apm_python
f477b09b1ef6e644980130d4d44954f27570ada2
[ "MIT" ]
60
2018-04-15T04:09:39.000Z
2022-03-29T12:10:40.000Z
tests/unit/core/test_platform_detection.py
tony/scout_apm_python
f477b09b1ef6e644980130d4d44954f27570ada2
[ "MIT" ]
326
2018-03-28T16:09:13.000Z
2022-03-03T13:50:23.000Z
tests/unit/core/test_platform_detection.py
tony/scout_apm_python
f477b09b1ef6e644980130d4d44954f27570ada2
[ "MIT" ]
25
2018-05-30T17:59:46.000Z
2022-02-24T19:40:02.000Z
# coding=utf-8 from __future__ import absolute_import, division, print_function, unicode_literals import pytest from scout_apm.compat import string_type from scout_apm.core import platform_detection from tests.compat import mock def test_get_triple(): triple = platform_detection.get_triple() assert isinsta...
27.482759
82
0.646173
e18cb93c701594169e1d8e2f935343cdbbf7b7c2
7,189
py
Python
CodeToComputeAveragedHoldoutPerformances/main.py
fab464654/AnalisiDatiScienzeBiomediche_project
5c385667d14d5ea3b9cf9afcfa068841f3e3580c
[ "MIT" ]
null
null
null
CodeToComputeAveragedHoldoutPerformances/main.py
fab464654/AnalisiDatiScienzeBiomediche_project
5c385667d14d5ea3b9cf9afcfa068841f3e3580c
[ "MIT" ]
null
null
null
CodeToComputeAveragedHoldoutPerformances/main.py
fab464654/AnalisiDatiScienzeBiomediche_project
5c385667d14d5ea3b9cf9afcfa068841f3e3580c
[ "MIT" ]
null
null
null
#Import Python libraries import pandas as pd import numpy as np from matplotlib import pyplot as plt from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler, MinMaxScaler import seaborn as sns #Import my scripts from randomForest import my_random_forest, visuali...
47.609272
180
0.601474
9fea1c06e9b514bffec79d3239c50683a8948054
1,547
py
Python
src/app/views/api/urls.py
deadlock-delegate/arkdelegates
8a5262f51b519ba3bc10094756c8866fc550df65
[ "MIT" ]
2
2018-05-22T13:47:09.000Z
2018-05-23T12:45:05.000Z
src/app/views/api/urls.py
deadlock-delegate/arkdelegates
8a5262f51b519ba3bc10094756c8866fc550df65
[ "MIT" ]
21
2018-05-08T12:56:46.000Z
2020-06-05T18:59:38.000Z
src/app/views/api/urls.py
deadlock-delegate/arkdelegates
8a5262f51b519ba3bc10094756c8866fc550df65
[ "MIT" ]
4
2018-05-04T15:00:59.000Z
2019-02-13T02:39:07.000Z
from django.urls import path, re_path from knox import views as knox_views from app.views.api.auth import ClaimDelegate, LoginView from app.views.api.contributions import Contributions from app.views.api.delegates import Delegates from app.views.api.news import News urlpatterns = [ path("delegates/", Delegates.a...
36.833333
100
0.659987
2a5828b642ee9f08f20f6972202bf13d65d637bd
2,343
py
Python
python/orgdown.py
BaseCase/orgdown
eb4d610d8c1b2b2abb58bd96d18cc22723ae8a91
[ "MIT" ]
3
2015-03-08T02:41:12.000Z
2021-04-27T18:37:14.000Z
python/orgdown.py
BaseCase/orgdown
eb4d610d8c1b2b2abb58bd96d18cc22723ae8a91
[ "MIT" ]
3
2015-03-16T23:51:42.000Z
2015-03-26T19:37:08.000Z
python/orgdown.py
BaseCase/orgdown
eb4d610d8c1b2b2abb58bd96d18cc22723ae8a91
[ "MIT" ]
null
null
null
import vim def jump_to_next_heading(): current_row = vim.current.window.cursor[0] next_row_with_heading = _find_next_heading_row(current_row) if next_row_with_heading > -1: vim.current.window.cursor = (next_row_with_heading, 0) def jump_to_previous_heading(): current_row = vim.current.window...
30.038462
81
0.677764
13f05221e32a409af9da418e8aacc5c7c27fe96c
2,697
py
Python
focal_loss_with_smoothing.py
Kageshimasu/focal-loss-with-smoothing
23492cf2b6575a945f68f95179ef5d6288c63a76
[ "MIT" ]
3
2021-03-11T07:55:15.000Z
2021-03-25T02:54:46.000Z
focal_loss_with_smoothing.py
Kageshimasu/focal-loss-with-smoothing
23492cf2b6575a945f68f95179ef5d6288c63a76
[ "MIT" ]
null
null
null
focal_loss_with_smoothing.py
Kageshimasu/focal-loss-with-smoothing
23492cf2b6575a945f68f95179ef5d6288c63a76
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- encoding: utf-8 -*- import torch import torch.nn as nn import torch.nn.functional as F class FocalLossWithSmoothing(nn.Module): def __init__( self, num_classes: int, gamma: int = 1, lb_smooth: float = 0.1, size_average: bool = Tr...
34.139241
92
0.577679
ceaf7bafa098354055b996c0cacacc6c831469f7
717
py
Python
IOPool/Input/test/preMerge2_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
IOPool/Input/test/preMerge2_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
IOPool/Input/test/preMerge2_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("TESTOUTPUT") process.load("FWCore.Framework.test.cmsExceptionsFatal_cff") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) ) process.Thing = cms.EDProducer("ThingProducer") process.OtherThing = cms.EDProducer("OtherThingProduce...
24.724138
60
0.737796
40e1cf35c61b3e7ccbce5af2e0a9cfc485e4b8c6
292
py
Python
image_enhance/equ-hist.py
BluceMengyu/Multithreaded-face-recognition-infrared-temperature-measurement-alarm-system-based-on-python
b4f9a17a4c6e913614161fdf548e69a406c8295a
[ "MIT" ]
3
2020-11-13T07:04:13.000Z
2021-03-14T10:53:53.000Z
image_enhance/equ-hist.py
BluceMengyu/Multithreaded-face-recognition-infrared-temperature-measurement-alarm-system-based-on-python
b4f9a17a4c6e913614161fdf548e69a406c8295a
[ "MIT" ]
null
null
null
image_enhance/equ-hist.py
BluceMengyu/Multithreaded-face-recognition-infrared-temperature-measurement-alarm-system-based-on-python
b4f9a17a4c6e913614161fdf548e69a406c8295a
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import cv2 import numpy as np from matplotlib import pyplot as plt def main(): img = cv2.imread("4.jpg",0) eq = cv2.equalizeHist(img) cv2.imshow("Histogram Equalization", np.hstack([img, eq])) cv2.waitKey(0) if __name__ == '__main__': main()
16.222222
62
0.633562
6d00c9f28efac5ce81a4d0349e5ab027674b8930
5,980
py
Python
sector.py
maytim/historic-top-gainers-and-losers
6446e67013197bf078185b7579ae50a465d63ad2
[ "MIT" ]
null
null
null
sector.py
maytim/historic-top-gainers-and-losers
6446e67013197bf078185b7579ae50a465d63ad2
[ "MIT" ]
null
null
null
sector.py
maytim/historic-top-gainers-and-losers
6446e67013197bf078185b7579ae50a465d63ad2
[ "MIT" ]
null
null
null
# imports import time import json import requests from decimal import * from datetime import date, datetime, timedelta from heapq import nsmallest, nlargest from timeit import default_timer from functools import wraps # wrapper function to report elapsed time of functions def elapsed_time(function): @wraps(functio...
41.818182
116
0.611371
e9ac22d9296c11c1a97be98d43bdfea01b851d9a
27,429
py
Python
ginga/gtkw/Widgets.py
eteq/ginga
4a9b9bc05c8bb212a3fb90e077ca20c6bee1ffd9
[ "BSD-3-Clause" ]
null
null
null
ginga/gtkw/Widgets.py
eteq/ginga
4a9b9bc05c8bb212a3fb90e077ca20c6bee1ffd9
[ "BSD-3-Clause" ]
null
null
null
ginga/gtkw/Widgets.py
eteq/ginga
4a9b9bc05c8bb212a3fb90e077ca20c6bee1ffd9
[ "BSD-3-Clause" ]
null
null
null
# # Widgets.py -- wrapped Gtk widgets and convenience functions # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # from ginga.gtkw import GtkHelp, gtksel, GtkMain import g...
26.76
90
0.598673
9825770f6b9d32d0471ec0e3af449e86c5cce470
8,822
py
Python
clusterSimilarSSIDSets.py
rc1035/directed-probe-matching
c724096672e778202d9e8ed197cdf7395ea1d211
[ "MIT" ]
10
2017-08-16T12:16:52.000Z
2022-02-26T05:09:39.000Z
clusterSimilarSSIDSets.py
d15c0/directed-probe-matching
c724096672e778202d9e8ed197cdf7395ea1d211
[ "MIT" ]
1
2019-07-10T12:00:00.000Z
2019-07-10T12:00:00.000Z
clusterSimilarSSIDSets.py
d15c0/directed-probe-matching
c724096672e778202d9e8ed197cdf7395ea1d211
[ "MIT" ]
4
2017-11-30T11:01:06.000Z
2019-11-03T23:39:40.000Z
#!/usr/bin/env python3.6 """ Cluster together probes belonging to tokens that share similar SSID sets. An optimal clustering is such that every token in a cluster belongs to the same MAC address. AND every token has been clustered. """ __author__ = "Richard Cosgrove" __license__ = "MIT" from collections import defau...
41.41784
127
0.701428
941dd05ed686635b96c8007ea098060bcc9f7cc0
3,464
py
Python
tests/test_williams_percent_r.py
dibyajyotidash/https-github.com-kylejusticemagnuson-pyti
08532970f9d2b163f1223599e3ac80f6c51533e4
[ "MIT" ]
635
2017-04-04T20:24:47.000Z
2022-03-28T16:00:23.000Z
tests/test_williams_percent_r.py
dibyajyotidash/https-github.com-kylejusticemagnuson-pyti
08532970f9d2b163f1223599e3ac80f6c51533e4
[ "MIT" ]
24
2017-10-22T15:01:54.000Z
2021-01-30T19:51:00.000Z
tests/test_williams_percent_r.py
dibyajyotidash/https-github.com-kylejusticemagnuson-pyti
08532970f9d2b163f1223599e3ac80f6c51533e4
[ "MIT" ]
183
2017-07-01T16:06:39.000Z
2022-03-07T23:29:11.000Z
from __future__ import absolute_import import unittest import numpy as np from tests.sample_data import SampleData from pyti import williams_percent_r class TestWilliamsPercentR(unittest.TestCase): def setUp(self): """Create data to use for testing.""" self.data = SampleData().get_sample_close_da...
57.733333
78
0.720554
82b962fb943bba5f6f7a4f97a974b3ffb8e871e4
4,583
py
Python
tensortrade/instruments/quantity.py
cihilt/tensortrade
47b8f2f043d3cc430838aac02a915ab42dcc7b64
[ "Apache-2.0" ]
7
2020-09-28T23:36:40.000Z
2022-02-22T02:00:32.000Z
tensortrade/instruments/quantity.py
cihilt/tensortrade
47b8f2f043d3cc430838aac02a915ab42dcc7b64
[ "Apache-2.0" ]
4
2020-11-13T18:48:52.000Z
2022-02-10T01:29:47.000Z
tensortrade/instruments/quantity.py
cihilt/tensortrade
47b8f2f043d3cc430838aac02a915ab42dcc7b64
[ "Apache-2.0" ]
3
2020-11-23T17:31:59.000Z
2021-04-08T10:55:03.000Z
import operator import warnings from typing import Union from numbers import Number from tensortrade.base.exceptions import InvalidNegativeQuantity, IncompatibleInstrumentOperation, \ InvalidNonNumericQuantity, QuantityOpPathMismatch class Quantity: """An size of a financial instrument for use in trading.""...
33.210145
99
0.642156
9aa9e5d154f39154c46c1ffab0783b630e9d65b8
2,198
py
Python
K_Mathematical_Modeling/Section 4/solutionQuestion2.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
7
2019-07-03T07:41:55.000Z
2022-02-06T20:25:37.000Z
K_Mathematical_Modeling/Section 4/solutionQuestion2.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
9
2019-03-14T15:15:09.000Z
2019-08-01T14:18:21.000Z
K_Mathematical_Modeling/Section 4/solutionQuestion2.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
11
2019-03-12T10:43:11.000Z
2021-10-05T12:15:00.000Z
from IPython.display import display, Latex print("If the rate of mRNA production reaches a plateau, we have reached a steady state where k_elong*Pe (the rate of mRNA production) does not depend on time anymore. ") print(" Using the steady state solution of the model, we can see that the two variables Y that we measur...
244.222222
826
0.784349
dd3ac601c8505493aa40f0ccb0aa018f71581644
1,804
py
Python
setup.py
yadage/packtivity
e7020f549bb0933afc1f63c399ee0926d113c23c
[ "MIT" ]
1
2021-08-23T03:45:20.000Z
2021-08-23T03:45:20.000Z
setup.py
lukasheinrich/packtivity
e7020f549bb0933afc1f63c399ee0926d113c23c
[ "MIT" ]
12
2019-07-23T09:13:53.000Z
2022-02-03T05:47:36.000Z
setup.py
lukasheinrich/packtivity
e7020f549bb0933afc1f63c399ee0926d113c23c
[ "MIT" ]
2
2020-03-24T10:45:28.000Z
2020-05-30T05:49:34.000Z
import os from setuptools import setup, find_packages deps = [ "requests[security]", "jsonschema", "jsonref", "pyyaml", "click", "glob2", "jsonpointer", "jsonpath-rw", "jq", "yadage-schemas", "mock", "checksumdir", ] if not "READTHEDOCS" in os.environ: deps += ["jq"...
29.57377
85
0.60255
674e20c95d17c717bd0c30e5dae92507482c8608
4,978
py
Python
tests/test_ants.py
BlueBrain/atlas-annotation
118af9b95518a19b64a9d8008aabed557eb0f646
[ "Apache-2.0" ]
null
null
null
tests/test_ants.py
BlueBrain/atlas-annotation
118af9b95518a19b64a9d8008aabed557eb0f646
[ "Apache-2.0" ]
8
2021-11-02T17:23:22.000Z
2022-03-02T12:29:26.000Z
tests/test_ants.py
BlueBrain/atlas-annotation
118af9b95518a19b64a9d8008aabed557eb0f646
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Blue Brain Project, EPFL # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
36.874074
85
0.675372
e5dd5684990fe6db3c1d73c5eee7e9926e8e9351
3,655
py
Python
python/util/evaluate.py
debajyotidatta/multiNLI_mod
d94e30ddd628a2df65859424ebec7d212d3227b5
[ "Apache-2.0" ]
null
null
null
python/util/evaluate.py
debajyotidatta/multiNLI_mod
d94e30ddd628a2df65859424ebec7d212d3227b5
[ "Apache-2.0" ]
null
null
null
python/util/evaluate.py
debajyotidatta/multiNLI_mod
d94e30ddd628a2df65859424ebec7d212d3227b5
[ "Apache-2.0" ]
1
2018-09-06T14:00:47.000Z
2018-09-06T14:00:47.000Z
import csv import sys def evaluate_classifier(classifier, eval_set, batch_size): """ Function to get accuracy and cost of the model, evaluated on a chosen dataset. classifier: the model's classfier, it should return genres, logit values, and cost for a given minibatch of the evaluation dataset eval_s...
35.144231
180
0.65554
e5e98173f71b8a669bf070e2eacecc08563ae35c
3,100
py
Python
authors/apps/authentication/tests_/test_model.py
MuhweziDeo/Ah-backend-xmen
60c830977fa39a7eea9ab978a9ba0c3beb0c4d88
[ "BSD-3-Clause" ]
4
2019-01-07T09:15:17.000Z
2020-11-09T09:58:54.000Z
authors/apps/authentication/tests_/test_model.py
MuhweziDeo/Ah-backend-xmen
60c830977fa39a7eea9ab978a9ba0c3beb0c4d88
[ "BSD-3-Clause" ]
34
2019-01-07T15:30:14.000Z
2019-03-06T08:23:34.000Z
authors/apps/authentication/tests_/test_model.py
MuhweziDeo/Ah-backend-xmen
60c830977fa39a7eea9ab978a9ba0c3beb0c4d88
[ "BSD-3-Clause" ]
10
2018-12-18T14:43:52.000Z
2020-02-07T08:27:50.000Z
from authors.apps.authentication.models import User, UserManager from django.test import TestCase class TestModel(TestCase): def test_create_super_user_with_no_password_fail(self): """ Test raise error if a superuser is created without a password Returns: A message that passw...
32.978723
101
0.617097
16f0a10b8a8615461fff4d7b5193b1442c7c8151
1,186
py
Python
Wizard.py
Pokesi/RandomX-mining-presets
c401593adf6bedd9bd019dea728c1887ed39bfc3
[ "Unlicense" ]
1
2021-05-11T08:38:41.000Z
2021-05-11T08:38:41.000Z
Wizard.py
Pokesi/RandomX-mining-presets
c401593adf6bedd9bd019dea728c1887ed39bfc3
[ "Unlicense" ]
null
null
null
Wizard.py
Pokesi/RandomX-mining-presets
c401593adf6bedd9bd019dea728c1887ed39bfc3
[ "Unlicense" ]
null
null
null
import sys, string, os def separator(): printf("=========================================") separator() printf(" ==> RandomX Mining Presets Wizard <== ") separator() printf(" /===========\ /==\") printf(" | [-----] | | |") printf(" | | | | | | ...
45.615385
84
0.273187
c383baa0146e15e9d6a93e4aab102f02371848a0
1,454
py
Python
docs/components/gallery.py
elben10/dash-data-table
d452d18c9bd43698d2b1fa0f12cd5adb43c7671c
[ "Apache-2.0" ]
null
null
null
docs/components/gallery.py
elben10/dash-data-table
d452d18c9bd43698d2b1fa0f12cd5adb43c7671c
[ "Apache-2.0" ]
11
2021-02-09T09:53:23.000Z
2021-02-25T10:26:31.000Z
docs/components/gallery.py
elben10/dash-data-table
d452d18c9bd43698d2b1fa0f12cd5adb43c7671c
[ "Apache-2.0" ]
null
null
null
import dash_core_components as dcc import dash_html_components as html DEFAULT_IMAGE = "https://images.unsplash.com/photo-1555861496-0666c8981751?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=2550&q=80" def gallery(items): return html.Div([gallery_item(item) for item i...
36.35
175
0.466988
cdb8205e724212277bca2df471ee19f189888c3a
624
py
Python
build/lib/SortingAlgos/MergeSort.py
Geeky-star/SortingAlgorithms
ff79a3a7879154b4ffe0ec83a3640c5ed31799be
[ "MIT" ]
null
null
null
build/lib/SortingAlgos/MergeSort.py
Geeky-star/SortingAlgorithms
ff79a3a7879154b4ffe0ec83a3640c5ed31799be
[ "MIT" ]
null
null
null
build/lib/SortingAlgos/MergeSort.py
Geeky-star/SortingAlgorithms
ff79a3a7879154b4ffe0ec83a3640c5ed31799be
[ "MIT" ]
null
null
null
def MergeSort(a): if len(a)>1: mid=len(a)//2 l=a[:mid] r=a[mid:] MergeSort(l) MergeSort(r) i=j=k=0 while i<len(l) and j<len(r): if l[i]<r[j]: a[k] = l[i] i+=1 ...
17.333333
36
0.235577
9ca1c5ede4ed8f8b8d9eff2b5abdd52c616996d5
2,801
py
Python
tempest/api/volume/test_volumes_clone.py
cityofships/tempest
59aa6811a3664d88b8939603b8e974644fbe21fa
[ "Apache-2.0" ]
254
2015-01-05T19:22:52.000Z
2022-03-29T08:14:54.000Z
tempest/api/volume/test_volumes_clone.py
cityofships/tempest
59aa6811a3664d88b8939603b8e974644fbe21fa
[ "Apache-2.0" ]
13
2015-03-02T15:53:04.000Z
2022-02-16T02:28:14.000Z
tempest/api/volume/test_volumes_clone.py
cityofships/tempest
59aa6811a3664d88b8939603b8e974644fbe21fa
[ "Apache-2.0" ]
367
2015-01-07T15:05:39.000Z
2022-03-04T09:50:35.000Z
# Copyright 2016 OpenStack Foundation # 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 requ...
38.369863
78
0.688683
03bcb3fc8af01843b6c87e94c846c74d46e62f65
1,160
py
Python
FaceRecognizer/utils/httpreq.py
r4tylmz/yolo-dlib-face-recognition
a7b63d3d9735215c31a441d39c925f119e5662d0
[ "MIT" ]
3
2021-06-28T19:00:55.000Z
2022-01-14T19:49:58.000Z
FaceRecognizer/utils/httpreq.py
r4tylmz/yolo-dlib-face-recognition
a7b63d3d9735215c31a441d39c925f119e5662d0
[ "MIT" ]
2
2022-03-10T17:46:07.000Z
2022-03-11T17:50:02.000Z
FaceRecognizer/utils/httpreq.py
r4tylmz/yolo-dlib-face-recognition
a7b63d3d9735215c31a441d39c925f119e5662d0
[ "MIT" ]
null
null
null
import requests from constants import constants import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def get_staff_credentials_by_id(id) -> str: response = requests.get(f'{constants.BASEURL}/Staff/{id}', verify=False).json() formatted_fullname = f"{response['name']}_{response['las...
50.434783
101
0.700862
1c7feff5bff8e7604025a01ea5c0efdc499fee4f
26,220
py
Python
tools/analysis/base.py
GiacobboNicola/PeTar
ed40946abbe346e2b0e72ae836add7e38bf851c1
[ "MIT" ]
null
null
null
tools/analysis/base.py
GiacobboNicola/PeTar
ed40946abbe346e2b0e72ae836add7e38bf851c1
[ "MIT" ]
null
null
null
tools/analysis/base.py
GiacobboNicola/PeTar
ed40946abbe346e2b0e72ae836add7e38bf851c1
[ "MIT" ]
null
null
null
# base class and functions import numpy as np class DictNpArrayMix: """ The basic class of data structure The member functions are initialized by provided keys in initial function Member functions can be accessed by using the stype of either Dictonary or numpy.ndarray """ def __init__(self,...
48.021978
360
0.544966
882761e93b9325efca3dd198a5edcd315841e87f
480
py
Python
claudius_dev/constant.py
zmoitier/accoster
648b9edf7e73848eacb60af0885be4d30fdbbafc
[ "MIT" ]
null
null
null
claudius_dev/constant.py
zmoitier/accoster
648b9edf7e73848eacb60af0885be4d30fdbbafc
[ "MIT" ]
5
2020-12-04T21:17:00.000Z
2020-12-06T19:54:36.000Z
claudius_dev/constant.py
zmoitier/accoster
648b9edf7e73848eacb60af0885be4d30fdbbafc
[ "MIT" ]
1
2020-11-18T17:24:52.000Z
2020-11-18T17:24:52.000Z
""" Constant class """ from dataclasses import dataclass from typing import Union import numpy as np @dataclass(frozen=True) class Constant: """ Dataclass to describe the constant function _ ↦ value. Attributes ---------- value : Union[int, float, complex] Scalar value """ value...
18.461538
58
0.627083
caf7109a216b415b4600a19f6e38c0eecc9526de
505
py
Python
stackimpact/utils.py
timgates42/stackimpact-python
4d0a415b790c89e7bee1d70216f948b7fec11540
[ "BSD-3-Clause" ]
742
2017-06-26T13:16:34.000Z
2022-02-06T11:05:31.000Z
stackimpact/utils.py
gaecom/stackimpact-python
4d0a415b790c89e7bee1d70216f948b7fec11540
[ "BSD-3-Clause" ]
7
2017-06-28T06:01:04.000Z
2021-05-18T20:06:53.000Z
stackimpact/utils.py
gaecom/stackimpact-python
4d0a415b790c89e7bee1d70216f948b7fec11540
[ "BSD-3-Clause" ]
30
2017-06-27T15:26:04.000Z
2021-05-16T11:08:53.000Z
import time import uuid import base64 import hashlib def millis(): return int(round(time.time() * 1000)) def timestamp(): return int(time.time()) def base64_encode(s): return base64.b64encode(s.encode('utf-8')).decode('utf-8') def base64_decode(b): return base64.b64decode(b).decode('utf-8') ...
14.852941
62
0.681188
28a6e8b53e3208b8fd03a53a0baf57c9ca7e7fa7
1,937
py
Python
docs/conf.py
Nasko29/progimage-python
4ae6de092e1f60b5612b43eb8c36f82e0d466c67
[ "MIT" ]
null
null
null
docs/conf.py
Nasko29/progimage-python
4ae6de092e1f60b5612b43eb8c36f82e0d466c67
[ "MIT" ]
5
2021-03-18T23:34:32.000Z
2022-03-11T23:44:11.000Z
docs/conf.py
Nasko29/progimage-python
4ae6de092e1f60b5612b43eb8c36f82e0d466c67
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or module...
32.830508
79
0.661332
cbe9fd394bb868044dc5245f6b049c44aeda5a38
133
py
Python
example_in.py
roberhag/variables-to-argparse
7097679b14c5ec2eeca19e8ca9ecfa1c8dd27117
[ "Unlicense" ]
1
2022-03-24T11:40:25.000Z
2022-03-24T11:40:25.000Z
example_in.py
roberhag/variables-to-argparse
7097679b14c5ec2eeca19e8ca9ecfa1c8dd27117
[ "Unlicense" ]
null
null
null
example_in.py
roberhag/variables-to-argparse
7097679b14c5ec2eeca19e8ca9ecfa1c8dd27117
[ "Unlicense" ]
null
null
null
# Here follows example input: fs = 48000 # Sample rate (Hz) base_freq = 100. # Base frequency (Hz) bpm = 120 # Beats per minute
19
39
0.669173
9a5dd921fdab0f95903b7c7022138b979b51c0db
1,243
py
Python
test/proj4/proj-regression-EPSG-3857-3.py
dvuckovic/magics-test
bd8baf97b0db986f6adf63700d3cf77bbcbad2f2
[ "Apache-2.0" ]
7
2019-03-19T09:32:41.000Z
2022-02-07T13:20:33.000Z
test/proj4/proj-regression-EPSG-3857-3.py
dvuckovic/magics-test
bd8baf97b0db986f6adf63700d3cf77bbcbad2f2
[ "Apache-2.0" ]
2
2021-03-30T05:37:20.000Z
2021-08-17T13:58:04.000Z
test/proj4/proj-regression-EPSG-3857-3.py
dvuckovic/magics-test
bd8baf97b0db986f6adf63700d3cf77bbcbad2f2
[ "Apache-2.0" ]
5
2019-03-19T10:43:46.000Z
2021-09-09T14:28:39.000Z
from Magics.macro import * import os def plot_area(epsg, llx, lly, urx, ury): img = os.path.basename(__file__).split('.')[0] title = "Projection {} : [{:.2f}, {:.2f}, {:.2f}, {:.2f}]".format(epsg, llx, lly, urx, ury) #Setting output png = output( output_formats = ['png'], output_name ...
28.906977
103
0.630732
9e92ce4b916b56b0fb1c6abc1e465c285c345d56
667
py
Python
event_manager/log.py
cj-lin/event-manager
568368bd3500453b0dbd68017f63560b31ddd6d1
[ "MIT" ]
null
null
null
event_manager/log.py
cj-lin/event-manager
568368bd3500453b0dbd68017f63560b31ddd6d1
[ "MIT" ]
null
null
null
event_manager/log.py
cj-lin/event-manager
568368bd3500453b0dbd68017f63560b31ddd6d1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Filename: log Author: CJ Lin """ import logging import logging.handlers import pathlib def get_logger(prefix: pathlib.Path, is_debug: bool) -> logging.Logger: if prefix: prefix.parent.mkdir(parents=True, exist_ok=True) handler = logging.handlers....
23.821429
84
0.685157
df96ec3ef7fb0efae6f3cc025b0221a2740b09ef
362
py
Python
tests/logging_tests/logconfig.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/logging_tests/logconfig.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/logging_tests/logconfig.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
import logging from django.conf import settings from django.core.mail.backends.base import BaseEmailBackend class MyHandler(logging.Handler): def __init__(self): logging.Handler.__init__(self) self.config = settings.LOGGING class MyEmailBackend(BaseEmailBackend): def send_messa...
22.625
60
0.718232
5766458373dbcd1ec987f984b8e29c6312728b76
2,692
py
Python
tests/test_meteo.py
SalishSeaCast/SOG-Bloomcast-Ensemble
4c5ff082bc82fa1bc4a371c6b8859ccdd411f3a7
[ "Apache-2.0" ]
1
2020-02-10T21:43:43.000Z
2020-02-10T21:43:43.000Z
tests/test_meteo.py
SalishSeaCast/SOG-Bloomcast-Ensemble
4c5ff082bc82fa1bc4a371c6b8859ccdd411f3a7
[ "Apache-2.0" ]
5
2020-02-08T21:37:54.000Z
2020-02-08T21:37:56.000Z
tests/test_meteo.py
SalishSeaCast/SOG-Bloomcast-Ensemble
4c5ff082bc82fa1bc4a371c6b8859ccdd411f3a7
[ "Apache-2.0" ]
null
null
null
# Copyright 2011-2021 Doug Latornell and The University of British Columbia # 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 ...
37.388889
77
0.664933
810e51566d90f3df8abd2bb3c21ccb5c183080e2
32
py
Python
test_files/uctable_Zl.py
garrettluu/js-adler32
b40011c6f76bb2a0b78126fc8412ff380c905dcd
[ "Apache-2.0" ]
224
2015-01-07T06:06:33.000Z
2022-03-29T08:52:49.000Z
test_files/uctable_Zl.py
stof/js-adler32
b7700fd5fa4c1ecfb4e67d20ed0248154940fcdb
[ "Apache-2.0" ]
18
2015-05-06T22:30:17.000Z
2022-03-30T18:15:51.000Z
test_files/uctable_Zl.py
stof/js-adler32
b7700fd5fa4c1ecfb4e67d20ed0248154940fcdb
[ "Apache-2.0" ]
38
2015-01-28T03:34:17.000Z
2022-02-10T03:28:14.000Z
uctable = [ [ 226, 128, 168 ] ]
16
31
0.5
1b67811354ce0dbeadcc53f2bf0286cbcf400e12
74,574
py
Python
src/Lib/_pyio.py
martinphellwig/brython_wf
e169afc1e048cba0c12118b4cd6f109df6fe67c9
[ "BSD-3-Clause" ]
3
2017-04-04T06:18:16.000Z
2020-01-17T02:03:39.000Z
src/Lib/_pyio.py
martinphellwig/brython_wf
e169afc1e048cba0c12118b4cd6f109df6fe67c9
[ "BSD-3-Clause" ]
1
2019-07-08T05:28:59.000Z
2021-01-14T10:44:49.000Z
src/Lib/_pyio.py
martinphellwig/brython_wf
e169afc1e048cba0c12118b4cd6f109df6fe67c9
[ "BSD-3-Clause" ]
8
2017-06-27T05:38:52.000Z
2021-06-19T16:00:03.000Z
""" Python implementation of the io module. """ import os import abc import codecs import errno # Import _thread instead of threading to reduce startup cost try: from _thread import allocate_lock as Lock except ImportError: from _dummy_thread import allocate_lock as Lock import io from io impor...
35.835656
82
0.573699
d5ec597b99c2fdb2ea74d0bc9dd923f775b7a675
102
py
Python
aploader/exceptions.py
WPMedia/politico-civic-ap-loader
a9642aaa88db9fd1afb070babafcfcb489466099
[ "MIT" ]
1
2019-09-22T20:08:04.000Z
2019-09-22T20:08:04.000Z
aploader/exceptions.py
The-Politico/politico-civic-ap-loader
4afeebb62da4b8f22da63711e7176bf4527bccfb
[ "MIT" ]
5
2019-01-28T17:00:46.000Z
2021-05-09T19:28:43.000Z
aploader/exceptions.py
WPMedia/politico-civic-ap-loader
a9642aaa88db9fd1afb070babafcfcb489466099
[ "MIT" ]
1
2019-01-28T15:10:00.000Z
2019-01-28T15:10:00.000Z
class AploaderConfigError(Exception): """Raised when required config is not present.""" pass
20.4
53
0.715686
02a9ee204201f58ea58181026e1466f1a89cddaa
3,529
py
Python
textattack/loggers/visdom_logger.py
yuchenlin/TextAttack
69c64016546effa1b3b197dfbdb92477614c36ca
[ "MIT" ]
1
2020-06-03T16:08:00.000Z
2020-06-03T16:08:00.000Z
textattack/loggers/visdom_logger.py
SatoshiRobatoFujimoto/TextAttack
a809a9bddddff9f41750949e26edde26c8af6cfa
[ "MIT" ]
null
null
null
textattack/loggers/visdom_logger.py
SatoshiRobatoFujimoto/TextAttack
a809a9bddddff9f41750949e26edde26c8af6cfa
[ "MIT" ]
null
null
null
import socket from visdom import Visdom from textattack.shared.utils import html_table_from_rows from .logger import Logger def port_is_open(port_num, hostname='127.0.0.1'): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) result = sock.connect_ex((hostname, port_num)) sock.close() if result == 0: ret...
34.598039
100
0.561916
da61a3f0662510a4a43b12acdb6790f8ddda7498
93,483
py
Python
qa/rpc-tests/p2p-segwit.py
frkl/creativechain-core
b25ef5931488f3b514361d36851f5aee4a01248d
[ "MIT" ]
34
2017-01-29T01:29:29.000Z
2021-08-16T00:13:29.000Z
qa/rpc-tests/p2p-segwit.py
frkl/creativechain-core
b25ef5931488f3b514361d36851f5aee4a01248d
[ "MIT" ]
6
2017-03-02T17:57:31.000Z
2017-08-24T14:26:27.000Z
qa/rpc-tests/p2p-segwit.py
frkl/creativechain-core
b25ef5931488f3b514361d36851f5aee4a01248d
[ "MIT" ]
14
2017-03-02T17:40:49.000Z
2019-03-01T02:18:48.000Z
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework from test...
45.645996
143
0.658098
0aab2534255940cc68d1d8468cf59b5dd0662508
2,134
py
Python
examples/factoranalysis/latent_factor_from_tfa.py
osaaso3/brainiak
153552c9b65e8354fa45985454f96978e0a92579
[ "Apache-2.0" ]
235
2017-10-31T22:58:14.000Z
2022-03-23T06:16:57.000Z
examples/factoranalysis/latent_factor_from_tfa.py
osaaso3/brainiak
153552c9b65e8354fa45985454f96978e0a92579
[ "Apache-2.0" ]
205
2017-10-24T16:55:16.000Z
2022-03-31T22:56:14.000Z
examples/factoranalysis/latent_factor_from_tfa.py
osaaso3/brainiak
153552c9b65e8354fa45985454f96978e0a92579
[ "Apache-2.0" ]
104
2017-11-01T20:04:07.000Z
2022-03-25T18:55:34.000Z
# Copyright 2016 Intel Corporation # # 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...
30.927536
82
0.730084
0948cee11197bad52aa7f361913a803fa216b709
14,555
py
Python
vendor-local/lib/python/celery/app/base.py
Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c
f80e7c0cff97a1e9b301aa04015db983c7645778
[ "BSD-3-Clause" ]
4
2015-05-08T16:58:53.000Z
2019-09-06T05:30:59.000Z
vendor-local/lib/python/celery/app/base.py
Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c
f80e7c0cff97a1e9b301aa04015db983c7645778
[ "BSD-3-Clause" ]
2
2019-02-17T17:44:53.000Z
2019-03-28T03:54:39.000Z
vendor-local/lib/python/celery/app/base.py
Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c
f80e7c0cff97a1e9b301aa04015db983c7645778
[ "BSD-3-Clause" ]
7
2015-05-21T15:38:29.000Z
2019-10-28T23:39:06.000Z
# -*- coding: utf-8 -*- """ celery.app.base ~~~~~~~~~~~~~~~ Application Base Class. :copyright: (c) 2009 - 2012 by Ask Solem. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from __future__ import with_statement import os import warnings import platform as...
37.035623
79
0.607351
543aba2a0e70ee1770cd7d9db950cdcf50ee5e4c
37,603
py
Python
homeassistant/core.py
joshluster/Home-Assistant
36b9c0a9462d28d8fd9aa81d5cf5fed45a38005a
[ "Apache-2.0" ]
null
null
null
homeassistant/core.py
joshluster/Home-Assistant
36b9c0a9462d28d8fd9aa81d5cf5fed45a38005a
[ "Apache-2.0" ]
null
null
null
homeassistant/core.py
joshluster/Home-Assistant
36b9c0a9462d28d8fd9aa81d5cf5fed45a38005a
[ "Apache-2.0" ]
1
2021-03-13T18:15:31.000Z
2021-03-13T18:15:31.000Z
""" Core components of Home Assistant. Home Assistant is a Home Automation framework for observing the state of entities and react to changes. """ # pylint: disable=unused-import, too-many-lines import asyncio from concurrent.futures import ThreadPoolExecutor import enum import logging import os import pathlib import ...
33.159612
79
0.618913
0c9e64104536d339140dcc74277977b26b3bedcf
2,298
py
Python
mex/benchmark.py
coblo/mex
d000a5e648d75d752abc3d6f5d099b9377a33c48
[ "BSD-3-Clause" ]
5
2018-08-06T07:09:51.000Z
2020-02-22T05:21:10.000Z
mex/benchmark.py
coblo/mex
d000a5e648d75d752abc3d6f5d099b9377a33c48
[ "BSD-3-Clause" ]
15
2018-03-23T15:40:05.000Z
2021-06-10T17:27:00.000Z
mex/benchmark.py
coblo/mex
d000a5e648d75d752abc3d6f5d099b9377a33c48
[ "BSD-3-Clause" ]
4
2019-06-13T21:43:09.000Z
2021-04-03T05:09:11.000Z
# -*- coding: utf-8 -*- """ Benchmarks to get a feeling for the bootlenecks. Testnet rpc scan results at node height 59354: RPC listblocks: 7.382926345811435 RPC listblocks verbose: 27.969617406454475 RPC full getblock scan verbose=1: 135.90371246640606 RPC full getblock scan verbose=4: 180.16512355423876 RPC full ge...
30.64
76
0.702785
2c6b59357665f5ea962921e6065e5731ac290c55
10,977
py
Python
alien4cloud-cloudify3-provider/src/test/resources/outputs/blueprints/openstack/network/plugins/custom_wf_plugin/plugin/workflows.py
alien4cloud/alien4cloud-cloudify4-provider
97faee855255eb0c3ce25bb3075c29acd11a63c5
[ "Apache-2.0" ]
null
null
null
alien4cloud-cloudify3-provider/src/test/resources/outputs/blueprints/openstack/network/plugins/custom_wf_plugin/plugin/workflows.py
alien4cloud/alien4cloud-cloudify4-provider
97faee855255eb0c3ce25bb3075c29acd11a63c5
[ "Apache-2.0" ]
3
2015-12-04T15:27:22.000Z
2016-04-08T11:32:43.000Z
alien4cloud-cloudify3-provider/src/test/resources/outputs/blueprints/openstack/network/plugins/custom_wf_plugin/plugin/workflows.py
alien4cloud/alien4cloud-cloudify4-provider
97faee855255eb0c3ce25bb3075c29acd11a63c5
[ "Apache-2.0" ]
16
2015-01-29T10:05:09.000Z
2019-06-24T19:23:54.000Z
from cloudify.decorators import workflow from cloudify.workflows import ctx from cloudify.workflows import tasks as workflow_tasks from utils import set_state_task from utils import operation_task from utils import link_tasks from utils import CustomContext from utils import generate_native_node_workflows from utils im...
45.17284
127
0.69099
9944c05aefebc33a7c9ae5921b67e517e76845bc
544
py
Python
LeetCode/0014-longest-common-prefix.py
tushar-1728/Coding
2df9da02cf3e5d4af5b47faf02a07ba54b3297cb
[ "MIT" ]
null
null
null
LeetCode/0014-longest-common-prefix.py
tushar-1728/Coding
2df9da02cf3e5d4af5b47faf02a07ba54b3297cb
[ "MIT" ]
null
null
null
LeetCode/0014-longest-common-prefix.py
tushar-1728/Coding
2df9da02cf3e5d4af5b47faf02a07ba54b3297cb
[ "MIT" ]
null
null
null
class Solution: def longestCommonPrefix(self, strs): if(len(strs) > 0): strs.sort(key=len) size = len(strs) temp = strs[0] i = 1 j = len(temp) while(i < size and j >= 0): if(strs[i].startswith(temp)): ...
25.904762
53
0.398897
26235b152907696952946087c1ae1097bbc82b22
17,555
py
Python
virtualenv/Lib/site-packages/pyrr/matrix44.py
HotShot0901/PI
7e6fd0f68b4222e09ea825f27709ec5b1e51e928
[ "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "bzip2-1.0.6", "BSD-3-Clause" ]
1
2020-04-15T02:43:16.000Z
2020-04-15T02:43:16.000Z
virtualenv/Lib/site-packages/pyrr/matrix44.py
HotShot0901/PI
7e6fd0f68b4222e09ea825f27709ec5b1e51e928
[ "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "bzip2-1.0.6", "BSD-3-Clause" ]
null
null
null
virtualenv/Lib/site-packages/pyrr/matrix44.py
HotShot0901/PI
7e6fd0f68b4222e09ea825f27709ec5b1e51e928
[ "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "bzip2-1.0.6", "BSD-3-Clause" ]
1
2018-06-07T22:31:11.000Z
2018-06-07T22:31:11.000Z
# -*- coding: utf-8 -*- """4x4 Matrix which supports rotation, translation, scale and skew. Matrices are laid out in row-major format and can be loaded directly into OpenGL. To convert to column-major format, transpose the array using the numpy.array.T method. """ from __future__ import absolute_import, division, prin...
33.889961
108
0.66078
a500d12162f40cac6c4c3576030cd5f518b9a14e
238
py
Python
fastreid/modeling/heads/__init__.py
asvk/fast-reid
cf246e9bee5b5e5d154de98ba0395b7a5d0d0ab7
[ "Apache-2.0" ]
null
null
null
fastreid/modeling/heads/__init__.py
asvk/fast-reid
cf246e9bee5b5e5d154de98ba0395b7a5d0d0ab7
[ "Apache-2.0" ]
null
null
null
fastreid/modeling/heads/__init__.py
asvk/fast-reid
cf246e9bee5b5e5d154de98ba0395b7a5d0d0ab7
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """ @author: liaoxingyu @contact: sherlockliao01@gmail.com """ from .build import REID_HEADS_REGISTRY, build_reid_heads # import all the meta_arch, so they will be registered from .embedding_head import EmbeddingHead
21.636364
56
0.785714
dd05e2022f066666e40a6304b653b76faef676ae
10,256
py
Python
App/dist/coffeegrindsize.app/Contents/Resources/lib/python3.7/pandas/core/dtypes/inference.py
tanerqy/coffeegrindsize
57f6c48213afda2704478b3fc2d0749332ca9d0e
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
Library/lib/python3.7/site-packages/pandas-0.24.2-py3.7-macosx-10.9-x86_64.egg/pandas/core/dtypes/inference.py
gengyong/Carnets
8930a14f69360d4db115a85ff9e0f6efa80fa2e7
[ "BSD-3-Clause" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
venv/Lib/site-packages/pandas/core/dtypes/inference.py
jaykang-heo/poseAnalysis
34cfac4a889e2c973651c1c07740ea0908542d68
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
""" basic inference routines """ from numbers import Number import re import numpy as np from pandas._libs import lib from pandas.compat import ( PY2, Set, re_type, string_and_binary_types, string_types, text_type) from pandas import compat is_bool = lib.is_bool is_integer = lib.is_integer is_float = lib.is_...
20.512
79
0.584048
62914e3218ac8f59773b390383f98ca583616438
2,891
py
Python
ros_atlas/model_processors/HandGestureProcessor.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
1
2021-09-21T23:23:59.000Z
2021-09-21T23:23:59.000Z
ros_atlas/model_processors/HandGestureProcessor.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
8
2021-07-05T21:41:53.000Z
2022-02-15T19:46:13.000Z
ros_atlas/model_processors/HandGestureProcessor.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
4
2021-06-11T22:47:04.000Z
2021-07-29T19:57:13.000Z
""" 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 distributed under the License ...
30.755319
123
0.639225
9d0a53d7b60f2bd54ba2aa318443b9a52d52fb3d
12,247
py
Python
myuw/test/api/test_instructor_schedule.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
18
2015-02-04T01:09:11.000Z
2021-11-25T03:10:39.000Z
myuw/test/api/test_instructor_schedule.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
2,323
2015-01-15T19:45:10.000Z
2022-03-21T19:57:06.000Z
myuw/test/api/test_instructor_schedule.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
9
2015-01-15T19:29:26.000Z
2022-02-11T04:51:23.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 import json from django.test.utils import override_settings from myuw.test.api import require_url, MyuwApiTest from restclients_core.exceptions import DataFailureException from myuw.views.api.instructor_schedule import InstScheCurQu...
42.821678
77
0.651343
5e6e3d43a4f8d16aae99fc996c8561a9435e282d
3,726
py
Python
tests/test_type_utils.py
benbariteau/environment_tools
b65ff4df5b61ab9ee6e2cb4d922fd2b99d17a9d0
[ "Apache-2.0" ]
13
2016-03-29T22:00:32.000Z
2021-11-08T10:25:55.000Z
tests/test_type_utils.py
benbariteau/environment_tools
b65ff4df5b61ab9ee6e2cb4d922fd2b99d17a9d0
[ "Apache-2.0" ]
8
2015-11-24T22:12:42.000Z
2021-05-25T00:06:55.000Z
tests/test_type_utils.py
benbariteau/environment_tools
b65ff4df5b61ab9ee6e2cb4d922fd2b99d17a9d0
[ "Apache-2.0" ]
5
2016-10-24T03:40:37.000Z
2021-08-10T21:42:56.000Z
# -*- coding: utf-8 -*- import mock import six from environment_tools.config import _convert_mapping_to_graph import environment_tools.type_utils from environment_tools.type_utils import available_location_types from environment_tools.type_utils import convert_location_type from environment_tools.type_utils import com...
38.020408
77
0.608964
4752ea445c74d7d0ab778915db2c14bd34f2fc46
8,730
py
Python
Stress/SIGI_Fase_1_HSM/MpiConclusiones.py
VictorAdad/sigi-api-adad
412511b04b420a82cf6ae5338e401b181faae022
[ "CC0-1.0" ]
null
null
null
Stress/SIGI_Fase_1_HSM/MpiConclusiones.py
VictorAdad/sigi-api-adad
412511b04b420a82cf6ae5338e401b181faae022
[ "CC0-1.0" ]
null
null
null
Stress/SIGI_Fase_1_HSM/MpiConclusiones.py
VictorAdad/sigi-api-adad
412511b04b420a82cf6ae5338e401b181faae022
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf8 -*- import sys from locust import HttpLocust, TaskSet, task from requests_toolbelt import MultipartEncoder from random import randrange import json import requests import variables import time import datetime import evotilities #lanza las peticiones para la sesión de conclusiones del caso def conclu...
47.189189
163
0.690607
5855181aa02077e87530ec5d154c8f5efdb1a0f7
2,416
py
Python
get_artists.py
zyingzhou/hello-world
f328a292cf99f4b4d8b74125e21c43d14dd435e9
[ "MIT" ]
261
2018-10-10T11:43:50.000Z
2022-03-19T03:29:51.000Z
get_artists.py
zyingzhou/wangyiyun_music
f328a292cf99f4b4d8b74125e21c43d14dd435e9
[ "MIT" ]
5
2018-11-11T06:05:39.000Z
2021-07-18T08:55:44.000Z
get_artists.py
zyingzhou/wangyiyun_music
f328a292cf99f4b4d8b74125e21c43d14dd435e9
[ "MIT" ]
143
2018-10-10T05:27:47.000Z
2021-12-21T10:22:19.000Z
# May 26 2018 Author: Zhiying Zhou import requests from bs4 import BeautifulSoup import csv # 构造函数获取歌手信息 def get_artists(url): headers={'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'Accept-Encoding': 'gzip, deflate', 'Accept-Language'...
53.688889
132
0.622103
20cab473124ea2d2aa6208a7db18c441fdc50f7a
316
py
Python
app/models/__init__.py
Detry322/map-creator
e0bf44ba0a99e03b30bb911735f85614d7d9db66
[ "MIT" ]
1
2022-02-18T08:19:28.000Z
2022-02-18T08:19:28.000Z
app/models/__init__.py
Detry322/map-creator
e0bf44ba0a99e03b30bb911735f85614d7d9db66
[ "MIT" ]
null
null
null
app/models/__init__.py
Detry322/map-creator
e0bf44ba0a99e03b30bb911735f85614d7d9db66
[ "MIT" ]
null
null
null
from app.models.basic_dcgan import BasicDCGAN from app.models.better_dcgan import BetterDCGAN from app.models.best_dcgan import BestDCGAN from app.models.autoencoder import Autoencoder all_models = { 'BasicDCGAN': BasicDCGAN, 'Autoencoder': Autoencoder, 'BetterDCGAN': BetterDCGAN, 'BestDCGAN': BestDCGAN }
26.333333
47
0.800633
63fd40a0915f166543431e61aeedb70bb4672fd6
4,495
py
Python
Python/kraken/ui/DataTypeWidgets/Image2DWidgetImpl.py
FabricExile/Kraken
d8c1f5189cb191945e2c18a1369c458d05305afc
[ "BSD-3-Clause" ]
7
2017-12-04T16:57:42.000Z
2021-09-07T07:02:38.000Z
Python/kraken/ui/DataTypeWidgets/Image2DWidgetImpl.py
xtvjxk123456/Kraken
d8c1f5189cb191945e2c18a1369c458d05305afc
[ "BSD-3-Clause" ]
null
null
null
Python/kraken/ui/DataTypeWidgets/Image2DWidgetImpl.py
xtvjxk123456/Kraken
d8c1f5189cb191945e2c18a1369c458d05305afc
[ "BSD-3-Clause" ]
6
2017-11-14T06:50:48.000Z
2021-08-21T22:47:29.000Z
import json from PySide import QtCore, QtGui from parameter import Parameter from AttributeWidgetImpl import AttributeWidget class Image2DWidget(AttributeWidget): def __init__(self, attribute, parentWidget=None, addNotificationListener = True): super(Image2DWidget, self).__init__(attribute, parentWidget=...
42.40566
156
0.680089
e21bd991ba97cf662693c939ed307aa6166efee6
403
py
Python
30-Days-of-Code/30-dictionaries-and-maps.py
lakshika1064/Hackerrank_Solutions-Python
50ca205c5a3a9a4f294dcda077c390209eb57ecc
[ "MIT" ]
1
2020-08-18T08:14:41.000Z
2020-08-18T08:14:41.000Z
30-Days-of-Code/30-dictionaries-and-maps.py
lakshika1064/Hackerrank_Solutions-Python
50ca205c5a3a9a4f294dcda077c390209eb57ecc
[ "MIT" ]
null
null
null
30-Days-of-Code/30-dictionaries-and-maps.py
lakshika1064/Hackerrank_Solutions-Python
50ca205c5a3a9a4f294dcda077c390209eb57ecc
[ "MIT" ]
null
null
null
# Enter your code here. Read input from STDIN. Print output to STDOUT n=int(input()) dic={} for i in range(0,n): name,phone = list(map(str , input().split())) dic[name]=phone while(True): try: a=input() if a in dic: print(a+"="+dic[a]) else: ...
23.705882
69
0.486352
5e422df2ab5ec345690974255d6c34b95cc8eefe
2,535
py
Python
stockhelper/getData.py
morning-dews/FDCA
1459f5c5d23d07c66b70bdd598944f5415e0f3ae
[ "MIT" ]
null
null
null
stockhelper/getData.py
morning-dews/FDCA
1459f5c5d23d07c66b70bdd598944f5415e0f3ae
[ "MIT" ]
null
null
null
stockhelper/getData.py
morning-dews/FDCA
1459f5c5d23d07c66b70bdd598944f5415e0f3ae
[ "MIT" ]
null
null
null
import urllib.request as urllib import json import time import chardet class getStockValue(): def __init__(self) -> None: self.url = 'http://money.finance.sina.com.cn/quotes' + \ '_service/api/json_v2.php/CN_MarketData.getKLineData?symbol=' self.url_realtime = 'http://hq.sinajs.cn/lis...
32.088608
79
0.53925
ac214c784ffaa406a1df90be11be64d85b49bb9a
68,237
py
Python
clients/python/girder_client/__init__.py
fepegar/girder
32cc38ac0aefe22b2b54a3c6f94d876b99bf0546
[ "Apache-2.0" ]
395
2015-01-12T19:20:13.000Z
2022-03-30T05:40:40.000Z
clients/python/girder_client/__init__.py
fepegar/girder
32cc38ac0aefe22b2b54a3c6f94d876b99bf0546
[ "Apache-2.0" ]
2,388
2015-01-01T20:09:19.000Z
2022-03-29T16:49:14.000Z
clients/python/girder_client/__init__.py
fepegar/girder
32cc38ac0aefe22b2b54a3c6f94d876b99bf0546
[ "Apache-2.0" ]
177
2015-01-04T14:47:00.000Z
2022-03-25T09:01:51.000Z
# -*- coding: utf-8 -*- from pkg_resources import DistributionNotFound, get_distribution try: __version__ = get_distribution(__name__).version except DistributionNotFound: # package is not installed __version__ = None __license__ = 'Apache 2.0' import diskcache import getpass import glob import io import...
40.139412
100
0.593593
df77c2bd2a2e55782729350d45ba0800710283a5
15,492
py
Python
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/sol/calculators/calc_modulator.py
SiliconLabs/gecko_sdk
310814a9016b60a8012d50c62cc168a783ac102b
[ "Zlib" ]
69
2021-12-16T01:34:09.000Z
2022-03-31T08:27:39.000Z
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/sol/calculators/calc_modulator.py
SiliconLabs/gecko_sdk
310814a9016b60a8012d50c62cc168a783ac102b
[ "Zlib" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/sol/calculators/calc_modulator.py
SiliconLabs/gecko_sdk
310814a9016b60a8012d50c62cc168a783ac102b
[ "Zlib" ]
21
2021-12-20T09:05:45.000Z
2022-03-28T02:52:28.000Z
from pyradioconfig.parts.ocelot.calculators.calc_modulator import CALC_Modulator_Ocelot from pycalcmodel.core.variable import ModelVariableFormat, CreateModelVariableEnum from pyradioconfig.calculator_model_framework.Utils.LogMgr import LogMgr from math import ceil,log2 from enum import Enum class Calc_Modulator_Sol(C...
43.273743
161
0.64472
d48280fe293e628fb3992f59c0a57072ecd0ab71
521
py
Python
learnHTTP/error.py
ClariNerd617/personalProjects
926b02c9998f9d17233f91d38a7250240c1b80dc
[ "CC0-1.0" ]
null
null
null
learnHTTP/error.py
ClariNerd617/personalProjects
926b02c9998f9d17233f91d38a7250240c1b80dc
[ "CC0-1.0" ]
null
null
null
learnHTTP/error.py
ClariNerd617/personalProjects
926b02c9998f9d17233f91d38a7250240c1b80dc
[ "CC0-1.0" ]
null
null
null
import requests from requests.exceptions import HTTPError for url in ['https://api.github.com', 'https://api.github.com/invalid']: print(url) # for testing try: response = requests.get(url) # if response was successful, no exception will be raised response.raise_for_st...
32.5625
72
0.637236
1abae18b1318f68270dd725a2fb1b40f309b33ab
17,887
py
Python
src/simulation/dynamics/sphericalPendulum/_UnitTest/test_sphericalPendulum.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
null
null
null
src/simulation/dynamics/sphericalPendulum/_UnitTest/test_sphericalPendulum.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
1
2019-03-13T20:52:22.000Z
2019-03-13T20:52:22.000Z
src/simulation/dynamics/sphericalPendulum/_UnitTest/test_sphericalPendulum.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
null
null
null
''' ''' ''' ISC License Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all c...
50.960114
253
0.685917
64d3d5b6d684df94b8d9a991950eef0f2df25e2a
77,976
py
Python
pandas/tests/arithmetic/test_timedelta64.py
cgangwar11/pandas
972f491cb7fdcc3c1c2cb9f05644128f13457f87
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-09-05T07:09:39.000Z
2020-09-05T07:09:39.000Z
pandas/tests/arithmetic/test_timedelta64.py
cgangwar11/pandas
972f491cb7fdcc3c1c2cb9f05644128f13457f87
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/arithmetic/test_timedelta64.py
cgangwar11/pandas
972f491cb7fdcc3c1c2cb9f05644128f13457f87
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-01-13T02:05:10.000Z
2020-01-13T02:05:10.000Z
# Arithmetic tests for DataFrame/Series/Index/Array classes that should # behave identically. from datetime import datetime, timedelta import numpy as np import pytest from pandas.errors import OutOfBoundsDatetime, PerformanceWarning import pandas as pd from pandas import ( DataFrame, DatetimeIndex, NaT,...
36.454418
88
0.603327
9e4331cfa67eb9493fba31e3637cd13ef0864de5
56,038
py
Python
tests/function/test_record.py
vaenow/aliyun-datahub-sdk-python
bcb82ad2f558ab34c3b767ad52c667b62c10e37e
[ "Apache-2.0" ]
1
2021-07-07T08:15:19.000Z
2021-07-07T08:15:19.000Z
tests/function/test_record.py
vaenow/aliyun-datahub-sdk-python
bcb82ad2f558ab34c3b767ad52c667b62c10e37e
[ "Apache-2.0" ]
null
null
null
tests/function/test_record.py
vaenow/aliyun-datahub-sdk-python
bcb82ad2f558ab34c3b767ad52c667b62c10e37e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License...
44.228887
120
0.596149
b2637ce1eed7c44545f6b7758b9fc75c79aff502
1,085
py
Python
saleor/discount/__init__.py
TysonRV/saleor
83d3ca5ae163fa853ab311d0ebcdbc22f4788166
[ "BSD-3-Clause" ]
9
2021-08-08T22:42:18.000Z
2021-11-23T06:50:14.000Z
saleor/discount/__init__.py
TysonRV/saleor
83d3ca5ae163fa853ab311d0ebcdbc22f4788166
[ "BSD-3-Clause" ]
86
2018-03-08T14:19:19.000Z
2018-05-12T14:55:16.000Z
saleor/discount/__init__.py
TysonRV/saleor
83d3ca5ae163fa853ab311d0ebcdbc22f4788166
[ "BSD-3-Clause" ]
2
2018-01-25T06:09:07.000Z
2018-01-25T20:55:34.000Z
from django.conf import settings from django.utils.translation import pgettext_lazy class DiscountValueType: FIXED = 'fixed' PERCENTAGE = 'percentage' CHOICES = [ (FIXED, pgettext_lazy( 'Discount type', settings.DEFAULT_CURRENCY)), (PERCENTAGE, pgettext_lazy('Discount type', '...
28.552632
73
0.637788
18454d09c083e3df8dea1da759072ada3f80ca4c
534
py
Python
devListener.py
math2001/kpymap
3f4aa8f3e82dbe936ad3446a3cf1e83a9a152208
[ "MIT" ]
1
2017-07-31T11:53:44.000Z
2017-07-31T11:53:44.000Z
devListener.py
math2001/kpymap
3f4aa8f3e82dbe936ad3446a3cf1e83a9a152208
[ "MIT" ]
17
2017-07-28T08:54:01.000Z
2017-08-04T05:54:57.000Z
devListener.py
math2001/kpymap
3f4aa8f3e82dbe936ad3446a3cf1e83a9a152208
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- import sublime import sublime_plugin import os.path class MLPDevListener(sublime_plugin.EventListener): def on_post_save(self, view): if not (os.path.dirname(__file__) in view.file_name() and view.file_name().endswith('.py')): return sublime.run_c...
29.666667
67
0.565543
1f8ba0e881146b7cccb996677cec3d4996867cf2
1,639
py
Python
test/pyaz/vmss/encryption/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
null
null
null
test/pyaz/vmss/encryption/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
9
2021-09-24T16:37:24.000Z
2021-12-24T00:39:19.000Z
test/pyaz/vmss/encryption/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
null
null
null
import json, subprocess from ... pyaz_utils import get_cli_name, get_params def enable(resource_group, name, disk_encryption_keyvault, key_encryption_keyvault=None, key_encryption_key=None, key_encryption_algorithm=None, volume_type=None, force=None): params = get_params(locals()) command = "az vmss encryp...
35.630435
175
0.680293
9ef1f3aa8cd3f3dc5c1ad18cc8d5ebb857eb78b0
6,704
py
Python
servers/forms.py
devopsconsulting/webvirtmgr
cc35978cae4a1a53b93056df946896ae992fe176
[ "Apache-2.0" ]
1
2015-08-27T17:11:29.000Z
2015-08-27T17:11:29.000Z
servers/forms.py
devopsconsulting/webvirtmgr
cc35978cae4a1a53b93056df946896ae992fe176
[ "Apache-2.0" ]
null
null
null
servers/forms.py
devopsconsulting/webvirtmgr
cc35978cae4a1a53b93056df946896ae992fe176
[ "Apache-2.0" ]
1
2021-07-18T14:09:37.000Z
2021-07-18T14:09:37.000Z
import re from django import forms from django.utils.translation import ugettext_lazy as _ from servers.models import Compute class ComputeAddTcpForm(forms.Form): name = forms.CharField(error_messages={'required': _('No hostname has been entered')}, max_length=20) hostname = forms...
44.993289
117
0.615752
b8c26797532a5bb510d494cf8712a7d45d50ac25
3,853
py
Python
sdk/python/pulumi_aws/ec2/ami_launch_permission.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ec2/ami_launch_permission.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ec2/ami_launch_permission.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class AmiLau...
39.721649
134
0.660005
92c2d044eff1791afb63c82621f20beaa2482f46
51,569
py
Python
intelprot/aardvark/aardvark_py.py
shuang4intel/intelprot
b89f26f3d586d0ea91dc5156ccf1cefc50e329f9
[ "Intel", "Apache-2.0" ]
1
2022-01-20T01:58:12.000Z
2022-01-20T01:58:12.000Z
intelprot/aardvark/aardvark_py.py
shuang4intel/intelprot
b89f26f3d586d0ea91dc5156ccf1cefc50e329f9
[ "Intel", "Apache-2.0" ]
null
null
null
intelprot/aardvark/aardvark_py.py
shuang4intel/intelprot
b89f26f3d586d0ea91dc5156ccf1cefc50e329f9
[ "Intel", "Apache-2.0" ]
null
null
null
#========================================================================== # Aardvark Interface Library #-------------------------------------------------------------------------- # Copyright (c) 2002-2020 Total Phase, Inc. # All rights reserved. # www.totalphase.com # # Redistribution and use in source and bin...
41.587903
196
0.684656
a1e1820d5bf5fe5771af05fabe5d2ae71d63b110
1,963
py
Python
tools/perf/core/tbmv3/run_tbmv3_metric.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/core/tbmv3/run_tbmv3_metric.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/core/tbmv3/run_tbmv3_metric.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2021-01-05T23:43:46.000Z
2021-01-07T23:36:34.000Z
#!/usr/bin/env vpython # Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import print_function import argparse import json import os import sys # TODO(crbug.com/1012687): Adding tools/perf ...
32.716667
77
0.679063
1a4bd3f29af7565c6ef504fb9d0385081f6f618f
2,369
py
Python
Quantum Phase Estimation/Mutation Testing/QPE Mutation Testing/Remove_mutant_3.py
Lilgabz/Quantum-Algorithm-Implementations
2bb5df522d76e94b300275dfefff2869ff31bc2c
[ "MIT" ]
1
2022-03-20T17:20:09.000Z
2022-03-20T17:20:09.000Z
Quantum Phase Estimation/Mutation Testing/QPE Mutation Testing/Remove_mutant_3.py
Lilgabz/Quantum-Algorithm-Implementations
2bb5df522d76e94b300275dfefff2869ff31bc2c
[ "MIT" ]
null
null
null
Quantum Phase Estimation/Mutation Testing/QPE Mutation Testing/Remove_mutant_3.py
Lilgabz/Quantum-Algorithm-Implementations
2bb5df522d76e94b300275dfefff2869ff31bc2c
[ "MIT" ]
2
2021-12-30T22:23:20.000Z
2022-03-20T17:20:22.000Z
import warnings from qiskit import QuantumRegister, ClassicalRegister from qiskit import QuantumCircuit, Aer, transpile, assemble from qiskit.tools.monitor import job_monitor from qiskit.circuit.library import QFT from qiskit.visualization import plot_histogram, plot_bloch_multivector warnings.filterwarnings("ignore",...
32.452055
144
0.642043
8f810052c5176fa58b6f589a2421e9cfd1bfe1a3
26,954
py
Python
heat/engine/clients/os/nova.py
maestro-hybrid-cloud/heat
91a4bb3170bd81b1c67a896706851e55709c9b5a
[ "Apache-2.0" ]
null
null
null
heat/engine/clients/os/nova.py
maestro-hybrid-cloud/heat
91a4bb3170bd81b1c67a896706851e55709c9b5a
[ "Apache-2.0" ]
null
null
null
heat/engine/clients/os/nova.py
maestro-hybrid-cloud/heat
91a4bb3170bd81b1c67a896706851e55709c9b5a
[ "Apache-2.0" ]
null
null
null
# # 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 # ...
38.17847
79
0.568487
aefc58ee85ce3ea427bb677c84c2f10c0a814f12
904
py
Python
Example/Voltage_curve_with_electric_system_control.py
sourabh1994/pyInstrument
a80786acb8218aba03368cffc475b4fc1bd5f459
[ "Unlicense" ]
2
2022-01-25T04:30:24.000Z
2022-02-23T11:24:40.000Z
Example/Voltage_curve_with_electric_system_control.py
sourabh1994/pyInstrument
a80786acb8218aba03368cffc475b4fc1bd5f459
[ "Unlicense" ]
null
null
null
Example/Voltage_curve_with_electric_system_control.py
sourabh1994/pyInstrument
a80786acb8218aba03368cffc475b4fc1bd5f459
[ "Unlicense" ]
3
2020-05-21T09:21:31.000Z
2021-01-17T08:32:49.000Z
""" n """ import pyvisa as visa from pyinstrument import PSupply # instrument address PSN5744USB = "USB0::2391::38151::US15J0384P::0::INSTR" PSN5744Eth = "TCPIP0::169.254.57.0::inst0::INSTR" PSTektronix = "USB0::1689::913::081001126668003045::0::INSTR" rm = visa.ResourceManager() rm.list_resources() PS = rm.open_re...
21.023256
96
0.693584
8ec1d2148c0d22eb208e1814e09f60a8628cc87e
2,070
py
Python
lims/shared/serializers.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
12
2017-03-01T10:39:36.000Z
2022-01-04T06:17:19.000Z
lims/shared/serializers.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
29
2017-04-25T14:05:08.000Z
2021-06-21T14:41:53.000Z
lims/shared/serializers.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
4
2017-10-11T16:22:53.000Z
2021-02-23T15:45:21.000Z
from django.contrib.auth.models import User from rest_framework import serializers from .models import Organism, Trigger, TriggerSet, TriggerAlert, TriggerAlertStatus, \ TriggerSubscription class OrganismSerializer(serializers.ModelSerializer): class Meta: model = Organism fields = '__all__'...
30.895522
91
0.734783
c64209d45a9768b8509899a710b7545077267823
12,241
py
Python
graph4nlp/pytorch/test/kg_completion/main.py
IBM/graph4nlp
a9bf20b23fa1ec368d9bd40cc8c557f86a9f8297
[ "Apache-2.0" ]
18
2020-09-09T03:33:29.000Z
2021-07-22T11:17:16.000Z
graph4nlp/pytorch/test/kg_completion/main.py
IBM/graph4nlp
a9bf20b23fa1ec368d9bd40cc8c557f86a9f8297
[ "Apache-2.0" ]
null
null
null
graph4nlp/pytorch/test/kg_completion/main.py
IBM/graph4nlp
a9bf20b23fa1ec368d9bd40cc8c557f86a9f8297
[ "Apache-2.0" ]
1
2021-02-19T19:46:03.000Z
2021-02-19T19:46:03.000Z
import json import torch import pickle import numpy as np import argparse import sys import os import math from os.path import join import torch.backends.cudnn as cudnn from evaluation import ranking_and_hits from models import SACN, ConvTransE, ConvE, DistMult, Complex, TransE from models_graph4nlp import DistMultGN...
42.950877
178
0.673474
bcd6e62be707fd6a308b29343786314467134eae
4,256
py
Python
games/ttt.py
Prie-st/Aoi
1fec6fe487d4d1dab0bb125ebaa91051e3e8f866
[ "MIT" ]
null
null
null
games/ttt.py
Prie-st/Aoi
1fec6fe487d4d1dab0bb125ebaa91051e3e8f866
[ "MIT" ]
null
null
null
games/ttt.py
Prie-st/Aoi
1fec6fe487d4d1dab0bb125ebaa91051e3e8f866
[ "MIT" ]
null
null
null
import asyncio import random from typing import Tuple import aoi import discord from libs.conversions import discord_number_emojis from .base import Game class TicTacToe(Game): def __init__(self, ctx: aoi.AoiContext): super().__init__(ctx) async def play(self): # noqa C901 board = [[0] * 3 ...
33.511811
108
0.400376
32298fcd57d5baf271310f72bab2e0820b13b179
3,390
py
Python
tests/python/unittest/test_gluon_data.py
Najah-lshanableh/Deep_learning
4b8235bdacd319843dda7b331f207808e4a90a93
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_gluon_data.py
Najah-lshanableh/Deep_learning
4b8235bdacd319843dda7b331f207808e4a90a93
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_gluon_data.py
Najah-lshanableh/Deep_learning
4b8235bdacd319843dda7b331f207808e4a90a93
[ "Apache-2.0" ]
1
2018-11-30T21:34:24.000Z
2018-11-30T21:34:24.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
39.418605
103
0.69469
dd7443f07e3506a1b8085024ac2ac98edbbb8ff3
18,103
py
Python
src/_pytest/pathlib.py
Vlad-Radz/pytest
1a4e8991bdac9855c9ed1a025989579283d03065
[ "MIT" ]
null
null
null
src/_pytest/pathlib.py
Vlad-Radz/pytest
1a4e8991bdac9855c9ed1a025989579283d03065
[ "MIT" ]
null
null
null
src/_pytest/pathlib.py
Vlad-Radz/pytest
1a4e8991bdac9855c9ed1a025989579283d03065
[ "MIT" ]
1
2020-12-10T06:21:35.000Z
2020-12-10T06:21:35.000Z
import atexit import contextlib import fnmatch import importlib.util import itertools import os import shutil import sys import uuid import warnings from enum import Enum from functools import partial from os.path import expanduser from os.path import expandvars from os.path import isabs from os.path import sep from po...
32.676895
118
0.649064
0c858904780399b5116c4f28f2c60aa305f361c1
2,402
py
Python
cartomancy/brains/environments/go_fish.py
joedaws/card-player
6e44bcc7c3e416fbd002c1d0216cf75e213a74c1
[ "MIT" ]
null
null
null
cartomancy/brains/environments/go_fish.py
joedaws/card-player
6e44bcc7c3e416fbd002c1d0216cf75e213a74c1
[ "MIT" ]
null
null
null
cartomancy/brains/environments/go_fish.py
joedaws/card-player
6e44bcc7c3e416fbd002c1d0216cf75e213a74c1
[ "MIT" ]
null
null
null
import gym from gym import spaces from gym.utils import seeding class GoFishEnv(gym.Env): """Go Fish environments implementation. Action Space: Each players may ask for one of the ranks from one of the players. Therefore, the action spaces is a tuple with the number of players and a d...
32.90411
79
0.59159
036b8f7924798437fa8140889df31bfe8ee74225
497
py
Python
purses/model.py
pgdr/purses
1e6073c3639d73f1405149c39448d39d4d29432f
[ "Apache-2.0" ]
null
null
null
purses/model.py
pgdr/purses
1e6073c3639d73f1405149c39448d39d4d29432f
[ "Apache-2.0" ]
4
2018-06-21T09:52:42.000Z
2018-06-23T08:00:18.000Z
purses/model.py
pgdr/purses
1e6073c3639d73f1405149c39448d39d4d29432f
[ "Apache-2.0" ]
1
2018-06-20T19:14:49.000Z
2018-06-20T19:14:49.000Z
class Model(object): def __init__(self, df, fname="Purses"): self.df = df self.fname = fname self.show_index = True @property def columns(self): if self.show_index: return [""] + list(self.df.columns) return list(self.df.columns) def row(self, r): ...
24.85
61
0.559356
33a87e381b38fc9d861fb1c6711b93a8673bd98a
23,429
py
Python
polo/sql.py
lesburg/polo
d746a353fe14f56da1697e57d90351f0aec03ee2
[ "MIT" ]
1
2020-05-09T01:42:32.000Z
2020-05-09T01:42:32.000Z
polo/sql.py
lesburg/polo
d746a353fe14f56da1697e57d90351f0aec03ee2
[ "MIT" ]
null
null
null
polo/sql.py
lesburg/polo
d746a353fe14f56da1697e57d90351f0aec03ee2
[ "MIT" ]
4
2020-05-11T19:45:25.000Z
2022-03-18T09:51:09.000Z
""" sql.py ================== This file contains most of the hand-crafted SQL queries used by various methods in the API. """ sql_tree_user_node = """ SELECT id FROM TreeNode WHERE name = ? AND ParentID = 3 """ sql_tree = """ SELECT t.ParentID as parent_id, t.id, p.id as plate_id, ...
43.226937
148
0.524564
44bb75e33eb528db7e8707076619f026cf5ecb82
772
py
Python
setup.py
nschneid/DepEdit
8840bd843ba6ccc308483bb05de92f60ecdce06c
[ "Apache-2.0" ]
1
2021-05-13T18:16:20.000Z
2021-05-13T18:16:20.000Z
setup.py
nschneid/DepEdit
8840bd843ba6ccc308483bb05de92f60ecdce06c
[ "Apache-2.0" ]
null
null
null
setup.py
nschneid/DepEdit
8840bd843ba6ccc308483bb05de92f60ecdce06c
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup setup( name = 'depedit', packages = ['depedit'], version = '2.0.0', description = 'A simple configurable tool for manipulating dependency trees', author = 'Amir Zeldes', author_email = 'amir.zeldes@georgetown.edu', url = 'https://github.com/amir-zeldes/depedit', licens...
40.631579
117
0.686528
3fea3f9b4c9767d0f85e899263a675d9b22b9f38
691
py
Python
pythonUtils/ExploreDA/Statistics/cat_statistics.py
tgquintela/pythonUtils
6f2e5ba3be67a48d3cd5cf72dcabfae04cfa7afe
[ "MIT" ]
1
2015-07-21T05:15:11.000Z
2015-07-21T05:15:11.000Z
pythonUtils/ExploreDA/Statistics/cat_statistics.py
tgquintela/pythonUtils
6f2e5ba3be67a48d3cd5cf72dcabfae04cfa7afe
[ "MIT" ]
null
null
null
pythonUtils/ExploreDA/Statistics/cat_statistics.py
tgquintela/pythonUtils
6f2e5ba3be67a48d3cd5cf72dcabfae04cfa7afe
[ "MIT" ]
null
null
null
""" Categorical variable statistics ------------------------------- Module which groups all the functions needed to compute the statistics and the description of the categorical variables. """ ## Categorical count def cat_count(df, variable): """The catagory counts. Parameters ---------- df: pd.Dat...
21.59375
78
0.628075
062767db1c1672c95ffa361a4993646db617faa4
3,169
py
Python
test/vanilla/legacy/Expected/AcceptanceTests/Report/report/_auto_rest_report_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/legacy/Expected/AcceptanceTests/Report/report/_auto_rest_report_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/legacy/Expected/AcceptanceTests/Report/report/_auto_rest_report_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.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 ...
36.848837
99
0.649732
be42a1d3452a9f00e1774ee46a2af222343872cd
635
py
Python
Python/Logic_2/close_far.py
RCoon/CodingBat
c5004c03e668c62751dc7f13154c79e25ea34339
[ "MIT" ]
1
2015-11-06T02:26:50.000Z
2015-11-06T02:26:50.000Z
Python/Logic_2/close_far.py
RCoon/CodingBat
c5004c03e668c62751dc7f13154c79e25ea34339
[ "MIT" ]
null
null
null
Python/Logic_2/close_far.py
RCoon/CodingBat
c5004c03e668c62751dc7f13154c79e25ea34339
[ "MIT" ]
null
null
null
# Given three ints, a b c, return True if one of b or c is "close" (differing # from a by at most 1), while the other is "far", differing from both other # values by 2 or more. Note: abs(num) computes the absolute value of a number. # close_far(1, 2, 10) --> True # close_far(1, 2, 3) --> False # close_far(4, 1, 3) --...
31.75
79
0.623622
68ddcbddd5c9dac3329e011e8d640f05e61b478a
16,869
py
Python
tests/test_anyio.py
lagerdata/asks
44dc355db729384f03c332fdfbc5ab7cf2af0b71
[ "MIT" ]
null
null
null
tests/test_anyio.py
lagerdata/asks
44dc355db729384f03c332fdfbc5ab7cf2af0b71
[ "MIT" ]
null
null
null
tests/test_anyio.py
lagerdata/asks
44dc355db729384f03c332fdfbc5ab7cf2af0b71
[ "MIT" ]
null
null
null
# pylint: disable=wrong-import-position import ssl from os import path from functools import partial from pathlib import Path import pytest from anyio import create_task_group, aopen import curio from overly import ( Server, ssl_socket_wrapper, default_ssl_cert, send_200, send_303, send_400,...
27.882645
87
0.668267
158b12cf09633b7b84df201608b2b0f1bfb658d7
2,669
py
Python
main.py
hacker1383/dow
376bd6ca6ae03ec88aba27dc4e83330b52d4aab1
[ "MIT" ]
null
null
null
main.py
hacker1383/dow
376bd6ca6ae03ec88aba27dc4e83330b52d4aab1
[ "MIT" ]
null
null
null
main.py
hacker1383/dow
376bd6ca6ae03ec88aba27dc4e83330b52d4aab1
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import telebot import re from urllib import urlretrieve as dw import sys import os #import color reload(sys) sys.setdefaultencoding("utf-8") bot = telebot.TeleBot('266344988:AAHcpmC8kCgQuKjYzett08jdRaDJePIXDwM') admin = 119296662 botusername = 'DOWNLOADERROBOT' @bot.message_h...
39.25
108
0.499438
b30cd28cd2787611334e8b459c45978f4477d29d
3,294
py
Python
Load_Database.py
dl-stuff/dl-datamine
aae37710d2525aaa2b83f809e908be67f074c2d2
[ "MIT" ]
3
2020-04-29T12:35:33.000Z
2022-03-22T20:08:22.000Z
Load_Database.py
dl-stuff/dl-datamine
aae37710d2525aaa2b83f809e908be67f074c2d2
[ "MIT" ]
1
2020-10-23T00:08:35.000Z
2020-10-29T04:10:35.000Z
Load_Database.py
dl-stuff/dl-datamine
aae37710d2525aaa2b83f809e908be67f074c2d2
[ "MIT" ]
4
2020-04-05T15:09:08.000Z
2020-10-21T15:08:34.000Z
import os import argparse from time import monotonic import json from loader.AssetExtractor import Extractor from loader.Database import DBManager from loader.Master import load_master, load_json from loader.Actions import load_actions from loader.Motion import load_motions from loader.Aiscript import load_aiscript f...
33.612245
104
0.664845
a828bba1626a76ff9ad65be4147aebccf2d10e8d
1,152
py
Python
macros_ffn/01_cube_process_tiffstacks.py
jeffkinnison/HappyNeuron
66ad1c3dc8fc89b518fe74e8318c5ba6d79b8f0a
[ "BSD-Source-Code" ]
2
2020-01-31T12:21:57.000Z
2021-09-16T09:20:10.000Z
macros_ffn/01_cube_process_tiffstacks.py
jeffkinnison/HappyNeuron
66ad1c3dc8fc89b518fe74e8318c5ba6d79b8f0a
[ "BSD-Source-Code" ]
null
null
null
macros_ffn/01_cube_process_tiffstacks.py
jeffkinnison/HappyNeuron
66ad1c3dc8fc89b518fe74e8318c5ba6d79b8f0a
[ "BSD-Source-Code" ]
1
2021-09-16T09:33:12.000Z
2021-09-16T09:33:12.000Z
import os import glob import dxchange import numpy as np import h5py print ("Working Dir") print (os.getcwd()) cube = dxchange.read_tiff_stack('cube02/z01.tif',np.arange(1,50)) #raw data 8bit, change "256" to # of sections labels = dxchange.read_tiff_stack('labels02/l01.tif',np.arange(1,50)) #label "ground truth" ui...
22.153846
111
0.688368
ee228df6ab55d3d0b7da649aaaed0424561ee4c3
660
py
Python
check_in_solution.py
k15siyuen/astr-119-hw-1
ace1a3036fa47c91623ed093d5a4f4d6a3dc2d51
[ "MIT" ]
null
null
null
check_in_solution.py
k15siyuen/astr-119-hw-1
ace1a3036fa47c91623ed093d5a4f4d6a3dc2d51
[ "MIT" ]
1
2018-10-09T17:31:38.000Z
2018-10-18T16:48:08.000Z
check_in_solution.py
k15siyuen/astr-119-hw-1
ace1a3036fa47c91623ed093d5a4f4d6a3dc2d51
[ "MIT" ]
1
2018-10-18T01:55:19.000Z
2018-10-18T01:55:19.000Z
#include the Numpy Library import numpy as np #define the main() function def main(): i = 0 #declare i, initialize to 0 x = 119.0 #declare a float x which can be any number depending on precision of computer for i in range(120): #loop i from 0 to 119 inclusive if((1%2)==0): #if i is even x += 3 #add 3 to ...
26.4
88
0.64697