hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
383865bd1fbe5b07233eeb992298d73b70116201
3,814
py
Python
python/fink_broker/parser.py
JulienPeloton/fink-broker
5d6f33c6dadaea57c88dd0bba6c7eae5f6f4346f
[ "Apache-2.0" ]
null
null
null
python/fink_broker/parser.py
JulienPeloton/fink-broker
5d6f33c6dadaea57c88dd0bba6c7eae5f6f4346f
[ "Apache-2.0" ]
null
null
null
python/fink_broker/parser.py
JulienPeloton/fink-broker
5d6f33c6dadaea57c88dd0bba6c7eae5f6f4346f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 AstroLab Software # Author: Julien Peloton # # 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 applicabl...
39.319588
105
0.675406
38386882b1c727efa60c936502a4e1558bd5a9af
7,052
py
Python
storm_control/sc_hardware/thorlabs/APTcontroller.py
BoettigerLab/scopeTest
50c6601c952adf1d63c7f27b1aba8890e789c280
[ "MIT" ]
1
2021-03-17T20:25:59.000Z
2021-03-17T20:25:59.000Z
storm_control/sc_hardware/thorlabs/APTcontroller.py
BoettigerLab/scopeTest
50c6601c952adf1d63c7f27b1aba8890e789c280
[ "MIT" ]
null
null
null
storm_control/sc_hardware/thorlabs/APTcontroller.py
BoettigerLab/scopeTest
50c6601c952adf1d63c7f27b1aba8890e789c280
[ "MIT" ]
1
2021-03-17T21:24:35.000Z
2021-03-17T21:24:35.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """ Connect to a Thorlabs KDC101 controllers using pyAPT https://github.com/qpit/thorlabs_apt https://pypi.org/project/thorlabs-apt/#description https://github.com/qpit/thorlabs_apt/blob/master/thorlabs_apt/core.py Alistair Boettiger, September 2020 V1.1 Adapted from my PI E8...
32.497696
117
0.56764
38387e719294e23c2a6e3324bafe1a2d218a56f2
9,490
py
Python
lib/dataset/joints_dataset.py
CHUNYUWANG/imu-human-pose-pytorch
f4813336571789f46eabdfb520e7ed5b20ac04ea
[ "MIT" ]
72
2020-03-26T13:26:39.000Z
2022-03-16T08:45:34.000Z
lib/dataset/joints_dataset.py
zhezh/imu-human-pose-pytorch
f4813336571789f46eabdfb520e7ed5b20ac04ea
[ "MIT" ]
10
2020-04-05T07:17:49.000Z
2022-03-04T05:32:12.000Z
lib/dataset/joints_dataset.py
CHUNYUWANG/imu-human-pose-pytorch
f4813336571789f46eabdfb520e7ed5b20ac04ea
[ "MIT" ]
13
2020-04-12T20:33:38.000Z
2022-02-17T11:23:13.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. from __future__ import absolute_import from __future__ import division from __future__ import print_function import cv2 import copy import random import numpy as np import os.path as osp import torch from torch.utils.data import Dataset from u...
37.96
130
0.551633
3838d4f527d8c9570acef4f74bca934e26952b72
1,284
py
Python
swarm_tasks/Examples/full_tasks/area_cvg-1.py
rmvanarse/swarm_tasks
3335297ba8fcdbff756ae519002bcce919d54a84
[ "MIT" ]
6
2021-03-13T12:54:18.000Z
2022-01-29T12:12:28.000Z
swarm_tasks/Examples/full_tasks/area_cvg-1.py
rmvanarse/swarm_tasks
3335297ba8fcdbff756ae519002bcce919d54a84
[ "MIT" ]
null
null
null
swarm_tasks/Examples/full_tasks/area_cvg-1.py
rmvanarse/swarm_tasks
3335297ba8fcdbff756ae519002bcce919d54a84
[ "MIT" ]
2
2021-08-06T15:02:15.000Z
2022-02-08T12:11:30.000Z
print("Running area coverage example 1\nUsing source files for package imports\nPARAMETERS:\ Using default hardcoded weight_dicts (listed in swarm_tasks/logs)") import sys,os sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),'../../..'))) print(sys.path) import swarm_tasks #Set demo paramete...
23.777778
92
0.78972
3838f820efcfe8f15ddb84eeeda60c7a301b4486
9,424
py
Python
pure_eval/core.py
pwwang/pure_eval
4e515ca3ac6c1a11601ba49fdca5bcb85c5eaa8b
[ "MIT" ]
null
null
null
pure_eval/core.py
pwwang/pure_eval
4e515ca3ac6c1a11601ba49fdca5bcb85c5eaa8b
[ "MIT" ]
null
null
null
pure_eval/core.py
pwwang/pure_eval
4e515ca3ac6c1a11601ba49fdca5bcb85c5eaa8b
[ "MIT" ]
null
null
null
import ast import builtins from collections import ChainMap from contextlib import suppress from types import FrameType from typing import Any, Tuple, Iterable, List, Mapping, Dict, Union, Set from pure_eval.my_getattr_static import getattr_static from pure_eval.utils import CannotEval, is_any, of_type, safe_hash_key,...
35.428571
110
0.587436
38395a1883e581d1422f548a4cc7e8ab675158ee
40,230
py
Python
tests/st/ops/ascend/dynamic_shape/test_dynamic_all.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/st/ops/ascend/dynamic_shape/test_dynamic_all.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/st/ops/ascend/dynamic_shape/test_dynamic_all.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
import sys from collections.abc import Iterable from tests.common import boot from tests.common.test_run.ascend.batchmatmul_run import batchmatmul_execute from tests.common.test_run import reduce_sum_run def run_case(*args, **kwargs): if len(sys.argv) >= 3: case_name = sys.argv[2] if len(args) < 2:...
89.599109
187
0.596918
38395a21989e71a7414725de413b403bc13e0ac1
786
py
Python
toontown/dna/DNABattleCell.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/dna/DNABattleCell.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/dna/DNABattleCell.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from panda3d.core import LVector3f from toontown.dna.DNAUtil import * class DNABattleCell(object): __slots__ = ( 'width', 'height', 'pos') COMPONENT_CODE = 21 def __init__(self, width, height, pos): self.width = width self.height = height self.pos = pos def __del_...
21.833333
43
0.563613
383981298df4113f6f8f837f228cd9e345f9936b
8,109
py
Python
stash-space/python/store_space_usage.py
DHTC-Tools/logstash-confs
1382f40aa9c5c837012312d9ab01a314062d7b8b
[ "Apache-2.0" ]
8
2015-06-23T22:10:22.000Z
2017-05-15T14:55:46.000Z
stash-space/python/store_space_usage.py
DHTC-Tools/logstash-confs
1382f40aa9c5c837012312d9ab01a314062d7b8b
[ "Apache-2.0" ]
null
null
null
stash-space/python/store_space_usage.py
DHTC-Tools/logstash-confs
1382f40aa9c5c837012312d9ab01a314062d7b8b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2015 University of Chicago import argparse import datetime import grp import os import pwd import sys import elasticsearch import elasticsearch.helpers import pytz import xattr ES_NODES = ['uct2-es-head.mwt2.org:9200', 'uct2-es-door.mwt2.org:9200'] TZ_NAME = "US/Central" TIMEZONE =...
34.653846
87
0.585029
3839a19bde5f808ef2e865afe298215613ab5fea
2,323
py
Python
crawler/run.py
shadowgamefly/osf_analysis
e5f22b01220016d7058e76e411a79aff1e912f08
[ "MIT" ]
null
null
null
crawler/run.py
shadowgamefly/osf_analysis
e5f22b01220016d7058e76e411a79aff1e912f08
[ "MIT" ]
1
2017-10-31T18:33:31.000Z
2017-10-31T18:33:31.000Z
crawler/run.py
shadowgamefly/osf_analysis
e5f22b01220016d7058e76e411a79aff1e912f08
[ "MIT" ]
null
null
null
from util import * from crawler import * from parser import * import time # menu session crawled the menu page of each taxonomy and stored them into a queue of urls def menu_session(subject, dir): q, h, p = init(dir) while True: error = 0 try : source = crawl_menu(subject, p, dir) ...
35.19697
129
0.589324
3839b65ecaeec922aac369878b711f185e7ac304
11,170
py
Python
aim/sdk/run.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
null
null
null
aim/sdk/run.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
null
null
null
aim/sdk/run.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
null
null
null
import logging from time import time from collections import Counter from aim.sdk.errors import RepoIntegrityError from aim.sdk.trace import RunTraceCollection from aim.sdk.utils import generate_run_hash from aim.sdk.num_utils import convert_to_py_number from aim.sdk.types import AimObjectKey, AimObjectPath, AimObjec...
33.244048
94
0.613876
3839dc84d3bdc13b980b83d6a77a538fbec8ff67
3,932
py
Python
gwtarget/DESI_mainInjector/Main-Injector-master/python/modelRead.py
rknop/timedomain
d3e3c43dfbb9cadc150ea04024d9b4132cb9ca17
[ "MIT" ]
1
2021-06-18T05:25:27.000Z
2021-06-18T05:25:27.000Z
gwtarget/DESI_mainInjector/Main-Injector-master/python/modelRead.py
MatthewPortman/timedomain
b9c6c2e6804d7dde56311d9402769be545d505d0
[ "MIT" ]
null
null
null
gwtarget/DESI_mainInjector/Main-Injector-master/python/modelRead.py
MatthewPortman/timedomain
b9c6c2e6804d7dde56311d9402769be545d505d0
[ "MIT" ]
null
null
null
import numpy as np #=================================================================== # # neutron star tidal remnant models # # Example: # models = getModels() # time = 1.0 ;# days past Time Zero # models_at_t = modelsAtTimeT (models, time) # abs_mag = models_at_t[0] # # # tell me what the max absMag is...
32.495868
83
0.643693
3839de20231288641b64489da6ece1c26482ace8
10,377
py
Python
vnmrjpy/aloha/aloha_old.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
vnmrjpy/aloha/aloha_old.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
vnmrjpy/aloha/aloha_old.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
import numpy as np import vnmrjpy as vj import timeit import time import copy class Aloha(): """Aloha framework for Compressed Sensing ref: Jin et al.: A general framework for compresed sensing and parallel MRI using annihilation filter based low-rank matrix completion (2016) Process outline:...
44.346154
81
0.438566
383a01d22adfba6935e154dcc440be9307dc7d81
3,427
py
Python
python/examples/control_sim/simulation.py
Smart-Ag/xviz
71c4470fdcb5c497793eb53666da6a5feb6832f0
[ "Apache-2.0" ]
1
2021-06-03T04:02:49.000Z
2021-06-03T04:02:49.000Z
python/examples/control_sim/simulation.py
Smart-Ag/xviz
71c4470fdcb5c497793eb53666da6a5feb6832f0
[ "Apache-2.0" ]
null
null
null
python/examples/control_sim/simulation.py
Smart-Ag/xviz
71c4470fdcb5c497793eb53666da6a5feb6832f0
[ "Apache-2.0" ]
null
null
null
import sys import time from pathlib import Path import shapely.geometry as shgeo from control_sim.utils import set_next_waypoint, get_current_data sys.path.append(str(Path(__file__).resolve().parents[3] / 'SmartHP-v2')) from smarthp.gnc.guidance import Guidance, CTEGuidanceTask, SyncPIDTask from smarthp.gnc.navigati...
32.028037
87
0.636125
383a087296cd9625267233f2e7e14a751bedc8d6
762
py
Python
category_python_rest_api/profiles_api/permissions.py
Anshul-GH/upwork_projects
600c2ccf79e5ed5cf962f1ae05c59f18ad411f63
[ "MIT" ]
2
2020-07-23T19:32:58.000Z
2020-10-24T20:54:09.000Z
category_python_rest_api/profiles_api/permissions.py
Anshul-GH/upwork_projects
600c2ccf79e5ed5cf962f1ae05c59f18ad411f63
[ "MIT" ]
null
null
null
category_python_rest_api/profiles_api/permissions.py
Anshul-GH/upwork_projects
600c2ccf79e5ed5cf962f1ae05c59f18ad411f63
[ "MIT" ]
1
2021-07-11T14:41:04.000Z
2021-07-11T14:41:04.000Z
from rest_framework import permissions class UpdateOwnProfile(permissions.BasePermission): """Allow users to edit their own profile.""" def has_object_permission(self, request, view, obj): """Check the user is trying to edit their own profile.""" if request.method in permissions.SAFE_...
30.48
65
0.671916
383a0f88ba3f8fb767ab3714b4cecb36e01b4c65
1,898
py
Python
setup.py
Algue-Rythme/deel-lip
bfff5765159cd500730129aa282b849283942eed
[ "MIT" ]
null
null
null
setup.py
Algue-Rythme/deel-lip
bfff5765159cd500730129aa282b849283942eed
[ "MIT" ]
null
null
null
setup.py
Algue-Rythme/deel-lip
bfff5765159cd500730129aa282b849283942eed
[ "MIT" ]
null
null
null
# Copyright IRT Antoine de Saint Exupéry et Université Paul Sabatier Toulouse III - All # rights reserved. DEEL is a research program operated by IVADO, IRT Saint Exupéry, # CRIAQ and ANITI - https://www.deel.ai/ # ===================================================================================== import setuptools ...
32.169492
87
0.6196
383a2ee1512b092f06dfa86beffe23746ee3618a
181
py
Python
logger/__init__.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
3
2021-11-09T09:43:21.000Z
2021-12-16T18:15:43.000Z
logger/__init__.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
null
null
null
logger/__init__.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
2
2022-03-10T11:24:46.000Z
2022-03-25T06:39:17.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # created: 2014-12-02 from gcommon.logger.glogger import init_logger, init_stdio_logger __all__ = ['init_logger', 'init_stdio_logger']
20.111111
65
0.718232
383a3c9f43c92107208f5144aa905020ee1bd171
1,843
py
Python
setup.py
niraito/rptools
5c631c6cc4cd8cb497ccf573891235b36dfde65f
[ "MIT" ]
null
null
null
setup.py
niraito/rptools
5c631c6cc4cd8cb497ccf573891235b36dfde65f
[ "MIT" ]
null
null
null
setup.py
niraito/rptools
5c631c6cc4cd8cb497ccf573891235b36dfde65f
[ "MIT" ]
null
null
null
# coding: utf-8 from setuptools import ( setup, find_packages ) from re import search as re_search from os import path as os_path ## INFOS ## package = 'rptools' descr = 'Suite of tools that work on rpSBML data' url = 'https://github.com/brsynth/rptools' authors = 'Joan Hérisson, Melchio...
27.924242
61
0.503527
383a80a56964293eeef6a680120c90df88d0e278
462
py
Python
Leet Code/subarray_sum_equals_k.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
Leet Code/subarray_sum_equals_k.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
Leet Code/subarray_sum_equals_k.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
class Solution: def subarraySum(self, nums: List[int], k: int) -> int: prefix = dict() s = 0 count = 0 for i in nums: s += i if s == k: count += 1 if s - k in prefix: count += 1 if s not in prefix: ...
22
58
0.320346
383a92b2a9e36e3fd88ad7cbba0bae4b51cd03df
19,475
py
Python
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_07_02/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_07_02/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_07_02/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
47.732843
234
0.697458
383aa1b9babcbc4d6f22cfb909a7f8bb04bbd13b
4,370
py
Python
aggregator.py
andresmor-ms/synthetic-data-showcase
74216c200407a15cd91299c0639b4f4c43c3e1b7
[ "MIT" ]
34
2020-09-17T07:47:26.000Z
2022-03-26T01:46:26.000Z
aggregator.py
andresmor-ms/synthetic-data-showcase
74216c200407a15cd91299c0639b4f4c43c3e1b7
[ "MIT" ]
null
null
null
aggregator.py
andresmor-ms/synthetic-data-showcase
74216c200407a15cd91299c0639b4f4c43c3e1b7
[ "MIT" ]
14
2020-09-17T07:55:49.000Z
2022-01-21T13:58:11.000Z
import time import datetime import logging from os import path import util as util def aggregate(config): """Aggregates the sensitive microdata at sensitive_microdata_path. Produces the reportable_aggregates tsv file of aggregate counts rounded down to the closest resolution, the sensitive_aggregates tsv...
48.021978
147
0.696796
383ae55ed866a67e3243b05697959d719eaa16a6
912
py
Python
setup.py
CloudCIX/metrics_cloudcix
4ce4cac2c90e920e5f745bbcf33d54efd34b6b67
[ "Apache-2.0" ]
null
null
null
setup.py
CloudCIX/metrics_cloudcix
4ce4cac2c90e920e5f745bbcf33d54efd34b6b67
[ "Apache-2.0" ]
null
null
null
setup.py
CloudCIX/metrics_cloudcix
4ce4cac2c90e920e5f745bbcf33d54efd34b6b67
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import setup with open('README.md', 'r') as f: readme = f.read() with open('requirements.txt', 'r') as f: requires = f.read().split('\n') setup( name='cloudcix_metrics', version='1.0.0', description='Metrics library for CloudCIX', long_description=readme...
26.057143
61
0.628289
383b126f5bb6e993bfec32cf7340d51a81b14c9b
39,227
py
Python
Q/questionnaire/migrations/0001_initial.py
ES-DOC/esdoc-questionnaire
9301eda375c4046323265b37ba96d94c94bf8b11
[ "MIT" ]
null
null
null
Q/questionnaire/migrations/0001_initial.py
ES-DOC/esdoc-questionnaire
9301eda375c4046323265b37ba96d94c94bf8b11
[ "MIT" ]
477
2015-01-07T18:22:27.000Z
2017-07-17T15:05:48.000Z
Q/questionnaire/migrations/0001_initial.py
ES-DOC/esdoc-questionnaire
9301eda375c4046323265b37ba96d94c94bf8b11
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import Q.questionnaire.models.models_ontologies import Q.questionnaire.q_utils import Q.questionnaire.q_fields import Q.questionnaire.models.models_projects import django.db.models.deletion from django.conf import ...
73.734962
800
0.636092
383b13a1feeed1b7471065d9b4cff739a78af233
422
py
Python
setup.py
RMeli/scripts
77c3b782689f2912239551226de89132a0570dea
[ "MIT" ]
null
null
null
setup.py
RMeli/scripts
77c3b782689f2912239551226de89132a0570dea
[ "MIT" ]
1
2019-08-17T13:26:37.000Z
2019-08-17T13:26:37.000Z
setup.py
RMeli/scripts
77c3b782689f2912239551226de89132a0570dea
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as f: long_description = f.read() setuptools.setup( name="scripts", version="0.0", author="Rocco Meli", license="MIT", description="", long_description=long_description, long_description_content_type="text/markdown", # GitHub-flavored Mark...
23.444444
78
0.680095
383b2d45132351965cd33fffcc1b95b3ee902cda
13,115
py
Python
actions/utils.py
batra-mlp-lab/vln-sim2real-envs
9cec22b39b0f65a2ed51cbe0dc39c3105c996044
[ "BSD-3-Clause" ]
7
2020-11-10T04:36:09.000Z
2021-07-06T05:40:41.000Z
actions/utils.py
batra-mlp-lab/vln-sim2real-envs
9cec22b39b0f65a2ed51cbe0dc39c3105c996044
[ "BSD-3-Clause" ]
null
null
null
actions/utils.py
batra-mlp-lab/vln-sim2real-envs
9cec22b39b0f65a2ed51cbe0dc39c3105c996044
[ "BSD-3-Clause" ]
null
null
null
import sys import random import json import math import numpy as np import time from collections import defaultdict from itertools import zip_longest random.seed(1) DATA_DIR = "data/" SIM_DIR = "../Matterport3DSimulator/" EXAMPLE_DIR = "examples/" IMAGENET_FEATURES = ['../Matterport3DSimulator/img_features/ResNet-...
37.795389
129
0.627068
383b47c2a0e903444966aec6c67078ea9b51825c
953
py
Python
scatter_squares.py
thisisglee/Data-Visualizations
afe6a597e5c924c47ae6b59f346a08f73e07f73f
[ "MIT" ]
null
null
null
scatter_squares.py
thisisglee/Data-Visualizations
afe6a597e5c924c47ae6b59f346a08f73e07f73f
[ "MIT" ]
null
null
null
scatter_squares.py
thisisglee/Data-Visualizations
afe6a597e5c924c47ae6b59f346a08f73e07f73f
[ "MIT" ]
null
null
null
#to plot and style individual points import matplotlib.pyplot as plt x_values = list(range(1,1001)) y_values = [x**2 for x in x_values] plt.style.use('seaborn') fig, ax = plt.subplots() # s is to size the point #ax.scatter(x_values, y_values,c='red',s=10) #values closer to 0 produce darker color and closer ...
31.766667
80
0.717733
383b772b7fd9c6aa5f79bcb4c2ed630b65178898
149
py
Python
colosseumrl/envs/tictactoe/__init__.py
carletonz/colosseumrl
878f0459731511d716672aee8a5adafcb96cf0a7
[ "MIT" ]
8
2019-06-04T00:22:30.000Z
2022-02-14T15:27:17.000Z
colosseumrl/envs/tictactoe/__init__.py
carletonz/colosseumrl
878f0459731511d716672aee8a5adafcb96cf0a7
[ "MIT" ]
1
2019-07-23T03:32:59.000Z
2019-07-23T06:16:35.000Z
colosseumrl/envs/tictactoe/__init__.py
carletonz/colosseumrl
878f0459731511d716672aee8a5adafcb96cf0a7
[ "MIT" ]
3
2020-01-13T08:09:27.000Z
2021-11-14T01:30:25.000Z
from .tictactoe_2p_env import TicTacToe2PlayerEnv from .tictactoe_3p_env import TicTacToe3PlayerEnv from .tictactoe_4p_env import TicTacToe4PlayerEnv
49.666667
49
0.90604
383b8fdb435a452de8fd55cca00cd9b3fefc7c53
15,250
py
Python
statemachine.py
inventhouse/statemachine
03d6ae3cce738eb48f624cc7b62a4fb059cb40b2
[ "MIT" ]
1
2019-12-20T18:59:00.000Z
2019-12-20T18:59:00.000Z
statemachine.py
inventhouse/statemachine
03d6ae3cce738eb48f624cc7b62a4fb059cb40b2
[ "MIT" ]
null
null
null
statemachine.py
inventhouse/statemachine
03d6ae3cce738eb48f624cc7b62a4fb059cb40b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2019 Benjamin Holt -- MIT License """General-purpose state machine engine with extras and tracing.""" from collections import deque, namedtuple import re ##### ### State Machine Core ### # Note: For clarity, we will refer to the edges of a state diagram as "rules" and the _...
42.127072
612
0.623213
383b9ad8a3dc48efdae62ff72ca9c5808c9b886e
2,192
py
Python
wechat_django/models/ability.py
UltraVacuum/wechat-django
0ea243067f5bc5e69cab6c4585d5e46d9399a583
[ "MIT" ]
166
2019-02-23T10:19:33.000Z
2022-02-03T06:50:15.000Z
wechat_django/models/ability.py
UltraVacuum/wechat-django
0ea243067f5bc5e69cab6c4585d5e46d9399a583
[ "MIT" ]
19
2019-05-07T07:28:32.000Z
2021-06-02T06:56:03.000Z
wechat_django/models/ability.py
UltraVacuum/wechat-django
0ea243067f5bc5e69cab6c4585d5e46d9399a583
[ "MIT" ]
54
2019-02-27T07:55:57.000Z
2021-09-02T06:47:51.000Z
# -*- coding: utf-8 -*- """公众号能力""" from __future__ import unicode_literals from functools import wraps from ..constants import AppType def ability(func): @wraps(func) def decorated_func(self): return bool(func(self)) return property(decorated_func) def apptypes(*args, **kwargs): def dec...
22.833333
77
0.600821
383b9dc70a87c673b8c4beca1ae071c076dd1402
452
py
Python
CCBC_Library/ccbclib/migrations/0018_book_code_colour.py
comsaint/ccbc
594838d6356a7aaeea1cda759781716c58c18824
[ "MIT" ]
null
null
null
CCBC_Library/ccbclib/migrations/0018_book_code_colour.py
comsaint/ccbc
594838d6356a7aaeea1cda759781716c58c18824
[ "MIT" ]
null
null
null
CCBC_Library/ccbclib/migrations/0018_book_code_colour.py
comsaint/ccbc
594838d6356a7aaeea1cda759781716c58c18824
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('ccbclib', '0017_auto_20150408_2219'), ] operations = [ migrations.AddField( model_name='book', name=...
21.52381
64
0.608407
383ba0531dc7d96464d469aeeb8f7286586b6d58
11,055
py
Python
archive/Decathlon-meta-regression/utils.py
tueimage/meta-segmentation-msc-2018
d497e6ea99b89fdb54e11568452894f022269043
[ "MIT" ]
3
2019-07-16T12:31:38.000Z
2020-07-22T17:03:53.000Z
archive/Decathlon-meta-regression/utils.py
tueimage/meta-segmentation-msc-2018
d497e6ea99b89fdb54e11568452894f022269043
[ "MIT" ]
null
null
null
archive/Decathlon-meta-regression/utils.py
tueimage/meta-segmentation-msc-2018
d497e6ea99b89fdb54e11568452894f022269043
[ "MIT" ]
1
2020-12-10T12:56:06.000Z
2020-12-10T12:56:06.000Z
import tensorflow as tf from tqdm import tqdm import os import numpy as np import nibabel as nib import random import cv2 from matplotlib import pyplot as plt import keras.backend as K import scipy.misc import seaborn as sns from itertools import cycle from sklearn.manifold import TSNE import csv from scipy.stats impor...
42.519231
263
0.657711
383bc4f20d63f33aea45b0c7d1fc889ff92ca00f
1,453
py
Python
riptide_controllers/action/wait.py
tsender/riptide_software
e30489403310578fa475d1075cab98495d070a58
[ "BSD-2-Clause" ]
null
null
null
riptide_controllers/action/wait.py
tsender/riptide_software
e30489403310578fa475d1075cab98495d070a58
[ "BSD-2-Clause" ]
null
null
null
riptide_controllers/action/wait.py
tsender/riptide_software
e30489403310578fa475d1075cab98495d070a58
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python import rospy import actionlib from riptide_msgs.msg import DepthCommand, AttitudeCommand, LinearCommand, Imu, Object, Depth from std_msgs.msg import String, Int32, Float32, Float64 from darknet_ros_msgs.msg import BoundingBoxes import riptide_controllers.msg import time class WaitAction(object...
32.288889
101
0.603579
383bc8bd9e867dbb6228b3767071ee7873696da2
1,122
py
Python
mlib/input.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
1
2020-06-16T17:26:45.000Z
2020-06-16T17:26:45.000Z
mlib/input.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
null
null
null
mlib/input.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
null
null
null
import argparse def boolinput(q): from mlib.proj.struct import Project if Project.INPUT_FILE.exists: for line in Project.INPUT_FILE.readlines(): p = line.split('=')[0] if q.startswith(p): return bool(line.split('=')[1].strip()) a = '' while a.upper() not i...
31.166667
66
0.551693
383bca6f1dc48b4fc584822cdefc0dd88521fcc0
189
py
Python
django_productline/__init__.py
henzk/django-productline
24ff156924c1a8c07b99cbb8a1de0a42b8d81f60
[ "MIT" ]
5
2015-06-16T17:36:33.000Z
2017-10-17T19:22:59.000Z
django_productline/__init__.py
henzk/django-productline
24ff156924c1a8c07b99cbb8a1de0a42b8d81f60
[ "MIT" ]
8
2016-03-14T09:02:13.000Z
2017-11-16T16:00:31.000Z
django_productline/__init__.py
henzk/django-productline
24ff156924c1a8c07b99cbb8a1de0a42b8d81f60
[ "MIT" ]
17
2015-08-04T18:45:18.000Z
2017-11-16T14:52:46.000Z
from __future__ import unicode_literals from .utils import compare_version, zipdir, create_or_append_to_zip __version__ = '0.3' __author__ = 'Hendrik Speidel <hendrik@schnapptack.de>'
18.9
67
0.804233
383bcfbf650268ab986fe2596b0b04419e774407
920
py
Python
fractal_generators/fractal-fern.py
shyamvalsan/codeart
bd04723136ea78b83faa1357e0a5a47f7c3dd316
[ "MIT" ]
1
2022-03-12T02:44:16.000Z
2022-03-12T02:44:16.000Z
fractal_generators/fractal-fern.py
shyamvalsan/codeart
bd04723136ea78b83faa1357e0a5a47f7c3dd316
[ "MIT" ]
null
null
null
fractal_generators/fractal-fern.py
shyamvalsan/codeart
bd04723136ea78b83faa1357e0a5a47f7c3dd316
[ "MIT" ]
null
null
null
# Fern IFS fractal # FB - 201003217 from PIL import Image import random imgx = 512 imgy = 512 image = Image.new("L", (imgx, imgy)) # Fractint IFS definition of Fern mat=[[0.0,0.0,0.0,0.16,0.0,0.0,0.01], [0.85,0.04,-0.04,0.85,0.0,1.6,0.85], [0.2,-0.26,0.23,0.22,0.0,1.6,0.07], [-0.15,0.28,0.26,0.24,0.0,0.44...
21.395349
60
0.472826
383bd3973b96580fa2fba34c4c500c8fb3b6cc4f
2,744
py
Python
src/data_for_augmentation.py
antonmattsson/diabetic_retinopathy
6aaa0ab3631d1cb0075d3acf2778822d62d1b532
[ "MIT" ]
null
null
null
src/data_for_augmentation.py
antonmattsson/diabetic_retinopathy
6aaa0ab3631d1cb0075d3acf2778822d62d1b532
[ "MIT" ]
null
null
null
src/data_for_augmentation.py
antonmattsson/diabetic_retinopathy
6aaa0ab3631d1cb0075d3acf2778822d62d1b532
[ "MIT" ]
null
null
null
import numpy as np from skimage.io import imread, imsave from skimage import color, exposure from numpy.core.defchararray import add, replace def change_exposure(fname, label, folder): img = imread('../data/converted/'+ fname + '.jpeg') hsv = color.rgb2hsv(img) hsv[:, :, 2] = exposure.equalize_hist(hsv[:, ...
35.636364
95
0.681851
383bddef881e4fe026feeefd6e3e33773f51b588
2,554
py
Python
games/spiders/brood_mother.py
jrcowart/megaminer_spring2016
115f71dadde49e170af50b2f55127ba184cfb2cb
[ "MIT" ]
4
2016-07-25T01:06:05.000Z
2018-11-17T09:02:43.000Z
games/spiders/brood_mother.py
jrcowart/megaminer_spring2016
115f71dadde49e170af50b2f55127ba184cfb2cb
[ "MIT" ]
null
null
null
games/spiders/brood_mother.py
jrcowart/megaminer_spring2016
115f71dadde49e170af50b2f55127ba184cfb2cb
[ "MIT" ]
2
2018-11-17T09:02:43.000Z
2019-11-13T11:09:41.000Z
# Generated by Creer at 10:56PM on April 20, 2016 UTC, git hash: '087b1901032ab5bed5806b24830233eac5c2de55' # This is a simple class to represent the BroodMother object in the game. You can extend it by adding utility functions here in this file. from games.spiders.spider import Spider # <<-- Creer-Merge: imports -->...
35.472222
138
0.670713
383be5476fc09ff9441b26d144d8cc6fbe848416
5,624
py
Python
toontown/building/DistributedElevatorIntAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/building/DistributedElevatorIntAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/building/DistributedElevatorIntAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
import copy from otp.ai.AIBase import * from toontown.toonbase import ToontownGlobals from direct.distributed.ClockDelta import * from toontown.building.ElevatorConstants import * from toontown.building import DistributedElevatorAI from direct.fsm import ClassicFSM from direct.fsm import State from direct.task import T...
41.352941
164
0.674609
383bf8593cd4b0866906aea4b0f7a08a74313d0c
1,507
py
Python
tests/h/services/group_links_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
tests/h/services/group_links_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
tests/h/services/group_links_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import pytest from h.services.group_links import GroupLinksService from h.services.group_links import group_links_factory @pytest.mark.usefixtures("routes") class TestGroupLinks: def test_it_returns_activity_link_for_default_authority_group( ...
27.4
80
0.739881
383c3224745aa94bf2d32f5eafe70b7bb18551d8
2,065
py
Python
src/bin/hooks/audit_client.py
ddamerell53/ChemiRegV2
906fa4674bfda0088b86b3bcdde0e000510c79e0
[ "CC0-1.0" ]
null
null
null
src/bin/hooks/audit_client.py
ddamerell53/ChemiRegV2
906fa4674bfda0088b86b3bcdde0e000510c79e0
[ "CC0-1.0" ]
null
null
null
src/bin/hooks/audit_client.py
ddamerell53/ChemiRegV2
906fa4674bfda0088b86b3bcdde0e000510c79e0
[ "CC0-1.0" ]
null
null
null
from chemireg import ChemiReg from abc import ABC from abc import abstractmethod import ijson class AuditClient(ABC): def __init__(self, hostname, port, username, password, since_transaction_id, projects, no_records, field_constraint): self.since_transaction_id = since_transaction_id ...
29.5
196
0.587893
383c3c7cbb12d7d819f4835cace685f77c72ce46
3,227
py
Python
listen/events/kube/kube_pod_delete.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
listen/events/kube/kube_pod_delete.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
listen/events/kube/kube_pod_delete.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright (c) 2017-2020 Koren Lev (Cisco Systems), # # Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others # # # ...
45.450704
79
0.500155
383c9743b8415923c9326352216bc4d44b1ced6c
10,038
py
Python
vital/bindings/python/vital/algo/algorithm.py
dstoup/kwiver
a3a36317b446baf0feb6274235ab1ac6b4329ead
[ "BSD-3-Clause" ]
null
null
null
vital/bindings/python/vital/algo/algorithm.py
dstoup/kwiver
a3a36317b446baf0feb6274235ab1ac6b4329ead
[ "BSD-3-Clause" ]
null
null
null
vital/bindings/python/vital/algo/algorithm.py
dstoup/kwiver
a3a36317b446baf0feb6274235ab1ac6b4329ead
[ "BSD-3-Clause" ]
null
null
null
""" ckwg +31 Copyright 2015-2016 by Kitware, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and...
33.912162
87
0.633792
383cc0bb333dd2ade1df75c27cff0b429506c1a3
7,805
py
Python
Classify/train_with_img.py
yaoMYZ/ROP
08418e43deefeacfe32da86a2bcc8f94c0105c7c
[ "Apache-2.0" ]
null
null
null
Classify/train_with_img.py
yaoMYZ/ROP
08418e43deefeacfe32da86a2bcc8f94c0105c7c
[ "Apache-2.0" ]
null
null
null
Classify/train_with_img.py
yaoMYZ/ROP
08418e43deefeacfe32da86a2bcc8f94c0105c7c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import sys, os sys.path.append(os.path.dirname(sys.path[0])) import time from torch import optim import numpy as np from Model.Resnet import * from DealData.FileOperation import FileOperation from tensorboardX import SummaryWriter from sklearn.metrics import accuracy_score import torch.nn.functional a...
41.078947
117
0.627803
383cc27aad02120e139bd559f49dddb22f16565b
3,865
py
Python
kglib/kgcn_tensorflow/learn/metrics_test.py
graknlabs/research
ae3ee07106739efd10f0627058210038ab5956d3
[ "Apache-2.0" ]
13
2018-09-25T13:29:08.000Z
2018-12-10T11:04:38.000Z
kglib/kgcn_tensorflow/learn/metrics_test.py
graknlabs/research
ae3ee07106739efd10f0627058210038ab5956d3
[ "Apache-2.0" ]
23
2018-09-17T20:31:44.000Z
2018-12-14T11:21:52.000Z
kglib/kgcn_tensorflow/learn/metrics_test.py
graknlabs/research
ae3ee07106739efd10f0627058210038ab5956d3
[ "Apache-2.0" ]
1
2018-09-25T15:56:32.000Z
2018-09-25T15:56:32.000Z
# # Copyright (C) 2021 Vaticle # # 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, Versi...
34.508929
84
0.551876
383cfda0f1c7c7d5b4a6a87fe761c68ab021f7cb
5,409
py
Python
starthinker/task/google_api/run.py
danieldjewell/starthinker
3327d5874f01d7563603b8a82c1ecd6615b9768d
[ "Apache-2.0" ]
1
2020-12-04T17:13:35.000Z
2020-12-04T17:13:35.000Z
starthinker/task/google_api/run.py
hgrias/starthinker
b9ed33e23b4ffd72565a31ebb8a8041d346bfca2
[ "Apache-2.0" ]
null
null
null
starthinker/task/google_api/run.py
hgrias/starthinker
b9ed33e23b4ffd72565a31ebb8a8041d346bfca2
[ "Apache-2.0" ]
null
null
null
########################################################################### # # Copyright 2020 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 # # https://www.apache.org/l...
29.396739
83
0.630246
383d09a4dec60c38c5eba3decf256c6431521073
256
py
Python
terrascript/data/paultyng/gsuite.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/paultyng/gsuite.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/paultyng/gsuite.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/paultyng/gsuite.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:17:49 UTC) import terrascript class gsuite_sheets_spreadsheet_values(terrascript.Data): pass __all__ = [ "gsuite_sheets_spreadsheet_values", ]
19.692308
73
0.78125
383d220049332ec871bef595dde0b042a384d4b6
3,186
py
Python
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/tests/test_highlight.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
null
null
null
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/tests/test_highlight.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
7
2020-06-06T01:06:19.000Z
2022-02-10T11:15:14.000Z
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/tests/test_highlight.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
1
2020-11-04T03:21:24.000Z
2020-11-04T03:21:24.000Z
""" Test highlight backend. """ from __future__ import absolute_import import unittest from django.core.management import call_command from nine.versions import DJANGO_GTE_1_10 import pytest from rest_framework import status import factories from .base import BaseRestFrameworkTestCase if DJANGO_GTE_1_10: f...
30.342857
78
0.665411
383d494c1021834acf2742ad9ff1432ecf9b115e
694
py
Python
alipay/aop/api/response/AlipayOpenApidefaultparamQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenApidefaultparamQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenApidefaultparamQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayOpenApidefaultparamQueryResponse(AlipayResponse): def __init__(self): super(AlipayOpenApidefaultparamQueryResponse, self).__init__() self._param = None @pr...
26.692308
111
0.706052
383d5326904c17047154a145fbe14a3ea2d46fff
4,871
py
Python
permabots/models/telegram_api.py
jlmadurga/permabots
f1bfb3081ed0da2a4cb4b0537e625ccfbab58ee1
[ "BSD-3-Clause" ]
81
2016-05-18T02:34:10.000Z
2021-08-28T17:25:13.000Z
permabots/models/telegram_api.py
jlmadurga/permabots
f1bfb3081ed0da2a4cb4b0537e625ccfbab58ee1
[ "BSD-3-Clause" ]
15
2016-05-27T08:51:46.000Z
2021-03-19T21:42:21.000Z
permabots/models/telegram_api.py
jlmadurga/permabots
f1bfb3081ed0da2a4cb4b0537e625ccfbab58ee1
[ "BSD-3-Clause" ]
34
2016-05-29T14:37:01.000Z
2022-03-24T17:16:53.000Z
# -*- coding: utf-8 -*- from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from django.forms.models import model_to_dict from permabots.models.base import PermabotsModel @python_2_unicode_compatible class User(models.Model...
40.256198
123
0.659823
383d5fb41f304f588cc094e47a6ace6d041a4def
25,270
py
Python
tensorflow_probability/python/internal/hypothesis_testlib.py
renatoviolin/probability
557351a2b79e4bd5a9025e791c81b612ab17bf38
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/internal/hypothesis_testlib.py
renatoviolin/probability
557351a2b79e4bd5a9025e791c81b612ab17bf38
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/internal/hypothesis_testlib.py
renatoviolin/probability
557351a2b79e4bd5a9025e791c81b612ab17bf38
[ "Apache-2.0" ]
1
2020-05-27T19:42:06.000Z
2020-05-27T19:42:06.000Z
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
37.716418
80
0.719786
383d68a0b33ecb4330bc0ba652d1fec680aa57ed
12,091
py
Python
python/PythonFCST/mesh/PhaseGenerator.py
jeremyjiezhou/Learn-PyTorch
7e4404609bacd2ec796f6ca3ea118e8e34ab4a22
[ "MIT" ]
24
2016-10-04T20:49:55.000Z
2022-03-12T19:07:10.000Z
python/PythonFCST/mesh/PhaseGenerator.py
jeremyjiezhou/Learn-PyTorch
7e4404609bacd2ec796f6ca3ea118e8e34ab4a22
[ "MIT" ]
null
null
null
python/PythonFCST/mesh/PhaseGenerator.py
jeremyjiezhou/Learn-PyTorch
7e4404609bacd2ec796f6ca3ea118e8e34ab4a22
[ "MIT" ]
9
2016-12-11T22:15:03.000Z
2020-11-21T13:51:05.000Z
# -*- coding: utf-8 -*- r""" ************************************************************************* :mod:`PythonFCST.mesh.GridGenerator`: GridGenerator for VTK Meshes ************************************************************************* .. module:: PythonFCST.mesh.GridGenerator """ import numpy as np try: ...
33.217033
114
0.551815
383d68ffea7f2ebffc5dd09098d58525769699ca
3,038
py
Python
tests/test_fuel_cell_chp.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
5
2019-10-15T15:56:35.000Z
2021-02-04T10:11:31.000Z
tests/test_fuel_cell_chp.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
121
2020-01-06T14:32:30.000Z
2021-09-23T11:26:11.000Z
tests/test_fuel_cell_chp.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2019-10-21T08:36:05.000Z
2021-03-26T10:37:17.000Z
from smooth.components.component_fuel_cell_chp import FuelCellChp from smooth.framework.simulation_parameters import SimulationParameters import oemof.solph as solph # todo: figure out how to do tests for get_el_energy_by_h2 and get_th_energy_by_h2 # todo: test constraints/flows are equal into each component class T...
43.4
96
0.655036
383d75e6232067162cbd355859aaf94fed95d18f
4,721
py
Python
figure_3/model_I/sobolev_alignment/taylor_feature_attribution.py
saroudant/sobolev_alignment_manuscript
2b4d7ce4bbdac3a32ad8c02b950b4d1c91cda193
[ "MIT" ]
null
null
null
figure_3/model_I/sobolev_alignment/taylor_feature_attribution.py
saroudant/sobolev_alignment_manuscript
2b4d7ce4bbdac3a32ad8c02b950b4d1c91cda193
[ "MIT" ]
null
null
null
figure_3/model_I/sobolev_alignment/taylor_feature_attribution.py
saroudant/sobolev_alignment_manuscript
2b4d7ce4bbdac3a32ad8c02b950b4d1c91cda193
[ "MIT" ]
null
null
null
""" This script performs the feature attribution by Taylor expansion, specifically: - Loading Sobolev Alignment with VAE trained. - Sample artificial data form the VAE distribution. - Train KRR on these artificial data and align the latent factors. - Using the trained KRR, compute the values of the projection on Hilber...
35.231343
125
0.677611
383db00dd837db00e6252df2f7b57e88999f75ab
35,289
py
Python
test/unit/test_disco_deploy.py
Angakkuq/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
null
null
null
test/unit/test_disco_deploy.py
Angakkuq/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
4
2016-03-22T17:04:04.000Z
2016-03-23T18:03:45.000Z
test/unit/test_disco_deploy.py
Angakkuit/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
null
null
null
""" Tests of disco_bake """ from __future__ import print_function import random from unittest import TestCase import boto.ec2.instance from mock import MagicMock, create_autospec, call from disco_aws_automation import DiscoDeploy, DiscoAWS, DiscoAutoscale, DiscoBake from disco_aws_automation.exceptions import Timeout...
53.549317
108
0.672901
383db8f4995f69293023f1bbbb90ccc176888fe4
3,779
py
Python
main.py
CruzHacks2019/cruzhacks-backend
82a5630fe498bffceec52b38a236d1d341c51cc3
[ "MIT" ]
1
2020-06-24T15:10:53.000Z
2020-06-24T15:10:53.000Z
main.py
CruzHacks2019/cruzhacks-backend
82a5630fe498bffceec52b38a236d1d341c51cc3
[ "MIT" ]
null
null
null
main.py
CruzHacks2019/cruzhacks-backend
82a5630fe498bffceec52b38a236d1d341c51cc3
[ "MIT" ]
null
null
null
from flask import Flask, render_template, jsonify, request from flask_bootstrap import Bootstrap from flask_cors import CORS import base64 from hashlib import md5 from APIClient import * import firebase_admin from firebase_admin import credentials, db import time import json from threading import Thread cred = credent...
30.97541
106
0.663668
383e183822e54879bf09a64b0aa59d8bcf905a30
1,237
py
Python
qiskit/aqua/algorithms/minimum_eigen_solvers/__init__.py
Unathi-Skosana/qiskit-aqua
e13f66eda6d8b819a6f132319a2bac819941f6b1
[ "Apache-2.0" ]
2
2020-06-29T16:08:12.000Z
2020-08-07T22:42:13.000Z
qiskit/aqua/algorithms/minimum_eigen_solvers/__init__.py
Unathi-Skosana/qiskit-aqua
e13f66eda6d8b819a6f132319a2bac819941f6b1
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/algorithms/minimum_eigen_solvers/__init__.py
Unathi-Skosana/qiskit-aqua
e13f66eda6d8b819a6f132319a2bac819941f6b1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2020. # # 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.0. # # Any modif...
28.767442
78
0.737268
383e4d3ceea2d1d723e6da5d727f20050f3d6c69
696
py
Python
faker_biology/taxonomy/taxonomy_data.py
richarda23/faker-biology
6cc4e8008b44fa5235697d59f4e6be38881678ce
[ "Apache-2.0" ]
7
2022-02-20T12:55:19.000Z
2022-03-12T17:54:32.000Z
faker_biology/taxonomy/taxonomy_data.py
richarda23/faker-biology
6cc4e8008b44fa5235697d59f4e6be38881678ce
[ "Apache-2.0" ]
null
null
null
faker_biology/taxonomy/taxonomy_data.py
richarda23/faker-biology
6cc4e8008b44fa5235697d59f4e6be38881678ce
[ "Apache-2.0" ]
null
null
null
from collections import namedtuple ## these 2 lists should be equal length MODEL_ORGANISMS_ENGLISH = [ "Fly", "Mouse", "Nematode", "Rat", "Xenopus", "Fission yeast", "Budding Yeast", "Zebrafish", ] MODEL_ORGANISMS_LATIN = [ "Drosophila melanogaster", "Mus musculus", "Caeno...
19.333333
67
0.683908
383e6f70f60eda3eb6da56727f59f95b14dbecaa
2,475
py
Python
sdks/python/appcenter_sdk/models/v2MissingSymbolCrashGroupStatusEnum.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/v2MissingSymbolCrashGroupStatusEnum.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/v2MissingSymbolCrashGroupStatusEnum.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class v2MissingSymbo...
27.5
92
0.564444
383f06cbf789d72e87a99945c14f76a2437a6d9a
8,398
py
Python
LUP_rank.py
touqir14/LUP-rank-computer
e790f0a2954ec57190d4314a9cec48c309e7ff8b
[ "MIT" ]
5
2020-07-18T10:59:03.000Z
2021-12-06T13:30:56.000Z
LUP_rank.py
touqir14/LUP-rank-computer
e790f0a2954ec57190d4314a9cec48c309e7ff8b
[ "MIT" ]
null
null
null
LUP_rank.py
touqir14/LUP-rank-computer
e790f0a2954ec57190d4314a9cec48c309e7ff8b
[ "MIT" ]
null
null
null
import numpy as np from scipy.linalg import lu from LUP_cythons import * from numpy.core import finfo def sort_rows_fast(u, threshold, remove_zero_columns_rows=True, adder=0): """ Sorts rows of input matrix u such that for any two rows i,j of the sorted matrix, if i>j then the pivot column index of row i ...
27.266234
114
0.628959
383f2d8e64047b39e805b183643c3096b54da7fe
507
py
Python
cnn2d/skp/etl/overlay_face_xray.py
jphdotam/DFDC
b08c31781406e303394642c2af1ab59222115683
[ "MIT" ]
48
2020-06-12T15:46:14.000Z
2022-03-19T16:02:05.000Z
cnn2d/skp/etl/overlay_face_xray.py
jphdotam/DFDC
b08c31781406e303394642c2af1ab59222115683
[ "MIT" ]
2
2020-11-11T10:40:49.000Z
2020-11-16T02:07:23.000Z
cnn2d/skp/etl/overlay_face_xray.py
jphdotam/DFDC
b08c31781406e303394642c2af1ab59222115683
[ "MIT" ]
17
2020-06-13T12:25:42.000Z
2021-11-22T14:49:26.000Z
import cv2 import glob import os, os.path as osp import numpy as np MASKDIR = 'diffs2/mimgs/' FAKEDIR = 'diffs2/fakes/' COMBDIR = 'diffs2/overlay/' if not osp.exists(COMBDIR): os.makedirs(COMBDIR) masks = np.sort(glob.glob(osp.join(MASKDIR, '*'))) for m in masks: ma = cv2.imread(m) if np.sum(ma) == 0: ...
22.043478
71
0.650888
383f74f504a1fc00988edfa4d02d9123eaa3cc93
8,909
py
Python
hotsos/core/host_helpers/systemd.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
6
2021-10-01T19:46:14.000Z
2022-03-31T17:05:08.000Z
hotsos/core/host_helpers/systemd.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
111
2021-10-01T18:18:17.000Z
2022-03-29T12:23:20.000Z
hotsos/core/host_helpers/systemd.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
10
2021-09-29T14:47:54.000Z
2022-03-18T14:52:16.000Z
from datetime import datetime import os import glob import re from hotsos.core.log import log from hotsos.core.config import HotSOSConfig from hotsos.core.host_helpers import CLIHelper from hotsos.core.utils import sorted_dict SVC_EXPR_TEMPLATES = { "absolute": r".+\S+bin/({})(?:\s+.+|$)", "snap": r".+\S+\d+...
34.800781
79
0.526322
383f7c21a1be068e98cd4dbf9b07cfae673ca724
3,621
py
Python
weibo_processor.py
Peter-Chou/ganbert
527665f99815f2ef94767d21649b2e064a534e52
[ "Apache-2.0" ]
null
null
null
weibo_processor.py
Peter-Chou/ganbert
527665f99815f2ef94767d21649b2e064a534e52
[ "Apache-2.0" ]
null
null
null
weibo_processor.py
Peter-Chou/ganbert
527665f99815f2ef94767d21649b2e064a534e52
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import csv import os import tokenization class InputExample(object): """A single training/test example for simple sequence classification.""" def __init__(self, guid, text_a, text_b=None, label=None): """Constructs a InputExample. Args: guid: Unique id for the example. ...
31.763158
80
0.67937
383f8a7bf44fd6e96db68f7158ffffd850a88d97
1,819
py
Python
delfin/api/validation/__init__.py
noelmcloughlin/delfin
6dfa9bdb86d850410c82201f6fa621b4e5ea2917
[ "Apache-2.0" ]
19
2020-07-28T00:13:43.000Z
2022-02-15T16:44:21.000Z
delfin/api/validation/__init__.py
noelmcloughlin/delfin
6dfa9bdb86d850410c82201f6fa621b4e5ea2917
[ "Apache-2.0" ]
581
2020-06-22T15:20:58.000Z
2022-03-31T04:06:14.000Z
delfin/api/validation/__init__.py
noelmcloughlin/delfin
6dfa9bdb86d850410c82201f6fa621b4e5ea2917
[ "Apache-2.0" ]
153
2021-03-10T09:32:08.000Z
2022-02-22T01:32:32.000Z
# Copyright 2020 The SODA Authors. # Copyright (C) 2017 NTT DATA # 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 # # ...
30.316667
79
0.743266
383fb1ffe6a737f607584fa5396af301c9500181
5,696
py
Python
crypto_portfolio.py
rcsmit/newagebullshitgenerator
04a0cb8f464b37aa786564f43c38efd95b6ef9de
[ "MIT" ]
null
null
null
crypto_portfolio.py
rcsmit/newagebullshitgenerator
04a0cb8f464b37aa786564f43c38efd95b6ef9de
[ "MIT" ]
null
null
null
crypto_portfolio.py
rcsmit/newagebullshitgenerator
04a0cb8f464b37aa786564f43c38efd95b6ef9de
[ "MIT" ]
null
null
null
import yfinance as yf import pandas as pd import numpy as np import plotly.graph_objects as go import streamlit as st import datetime as dt # from scipy import stats # import datetime as dt def get_data(choice, interval): """Retreat the data from Yahoo Finance """ data = yf.download(tickers=(choice), ...
32
156
0.571103
383fb294db6b82b23c06107233bb4875d97412bb
573
py
Python
tests/integration/multi_table/test_multi_table.py
ZhuofanXie/SDMetrics
a89fa4177b9ff2aa1ee6dfaef0b908581109fe55
[ "MIT" ]
1
2021-03-12T06:13:11.000Z
2021-03-12T06:13:11.000Z
tests/integration/multi_table/test_multi_table.py
ZhuofanXie/SDMetrics
a89fa4177b9ff2aa1ee6dfaef0b908581109fe55
[ "MIT" ]
null
null
null
tests/integration/multi_table/test_multi_table.py
ZhuofanXie/SDMetrics
a89fa4177b9ff2aa1ee6dfaef0b908581109fe55
[ "MIT" ]
null
null
null
import pandas as pd from sdmetrics import compute_metrics from sdmetrics.demos import load_multi_table_demo from sdmetrics.multi_table.base import MultiTableMetric def test_compute_all(): real_data, synthetic_data, metadata = load_multi_table_demo() output = compute_metrics( MultiTableMetric.get_sub...
24.913043
73
0.74171
383fb2a35d695c6c6bc12d66feb3b6ba90357952
7,074
py
Python
armi/cli/database.py
bsculac/armi
22399244a88e67fc09996981081f7d5aab7032b4
[ "Apache-2.0" ]
null
null
null
armi/cli/database.py
bsculac/armi
22399244a88e67fc09996981081f7d5aab7032b4
[ "Apache-2.0" ]
null
null
null
armi/cli/database.py
bsculac/armi
22399244a88e67fc09996981081f7d5aab7032b4
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 TerraPower, 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 writi...
32.30137
90
0.580294
383fe4069fa86bc09eabea76886f000acdabfb6c
879
py
Python
setup.py
prlz77/haven-ai
982f2aaed04b5f85159715604fe46868f0f784c5
[ "Apache-2.0" ]
null
null
null
setup.py
prlz77/haven-ai
982f2aaed04b5f85159715604fe46868f0f784c5
[ "Apache-2.0" ]
null
null
null
setup.py
prlz77/haven-ai
982f2aaed04b5f85159715604fe46868f0f784c5
[ "Apache-2.0" ]
null
null
null
from setuptools import setup import setuptools setup(name='haven-ai', version='0.4.3', description='Manage large-scale experiments', url='https://github.com/haven-ai/haven-ai', maintainer='Issam Laradji', maintainer_email='issam.laradji@gmail.com', license='MIT', scripts=['./s...
26.636364
51
0.530148
383fee4c883a71f2fee23a0fbaf77f5c4c95e9a6
1,899
py
Python
common/crypto_rsa.py
pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
11
2020-01-15T14:25:48.000Z
2021-11-25T04:21:18.000Z
common/crypto_rsa.py
Pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
8
2021-02-04T16:41:57.000Z
2022-03-29T21:57:15.000Z
common/crypto_rsa.py
pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
null
null
null
from crypto_common import * # Home-made debugging switch. TODO: use a proper logger. debug = False # Pow implementation for correct modulus handling def pow3(x, y, z): ans = 1 while y: if y & 1: ans = (ans * x) % z y >>= 1 if not y: break x = (x * x) %...
28.772727
80
0.569247
3840141bb33cec2e3f14fad0245f58655d4afe84
1,686
py
Python
src/edgeutils.py
flindeberg/internet-tools
1dbbe67ae7a41d0afa54c05013f69c20f2fa6ce9
[ "MIT" ]
2
2021-07-29T12:29:17.000Z
2022-02-25T04:45:12.000Z
src/edgeutils.py
flindeberg/internet-tools
1dbbe67ae7a41d0afa54c05013f69c20f2fa6ce9
[ "MIT" ]
6
2019-06-14T07:26:58.000Z
2020-04-16T20:27:08.000Z
src/edgeutils.py
flindeberg/internet-tools
1dbbe67ae7a41d0afa54c05013f69c20f2fa6ce9
[ "MIT" ]
1
2020-09-21T16:48:35.000Z
2020-09-21T16:48:35.000Z
from enum import Enum from dataclasses import dataclass class TraceType(Enum): full = 0 # a full and complete trace fullbutend = 1 # all missing hosts are at the end fullbutmid = 2 # all missing hosts are in the middle missing = 3 # some other form @classmethod def getTraceStatus(cls, tra...
29.068966
87
0.589561
38404499e6aac1333d1160307718a6e6cc1569d3
418
py
Python
generator/tests/py_generator_test.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
generator/tests/py_generator_test.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
generator/tests/py_generator_test.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from pathlib import Path from cidoc_crm_types_generator.ecrm_owl import EcrmOwl from cidoc_crm_types_generator.py_generator import PyGenerator def test_generate(ecrm_owl: EcrmOwl, tmpdir): PyGenerator(output_dir_path=Path(tmpdir)).generate(ecrm_owl=ecrm_owl) import sys sys.path.append(str(tmpdir)) im...
29.857143
73
0.811005
3840cce6ffb6fc32c17a284e58c6fa17528adfc9
5,383
py
Python
source/data_loader.py
Elzawawy/DeftEval
88d4e7531059cfc87d62119c31308f72ab5f4dc0
[ "MIT" ]
7
2020-04-06T16:11:56.000Z
2021-12-09T10:07:21.000Z
source/data_loader.py
Elzawawy/DeftEval
88d4e7531059cfc87d62119c31308f72ab5f4dc0
[ "MIT" ]
null
null
null
source/data_loader.py
Elzawawy/DeftEval
88d4e7531059cfc87d62119c31308f72ab5f4dc0
[ "MIT" ]
null
null
null
import pandas as pd import os import spacy from spacy.lang.en import English from pathlib import Path from . import task1_converter class DeftCorpusLoader(object): """""" def __init__(self, deft_corpus_path): super().__init__() self.corpus_path = deft_corpus_path self._default_train_ou...
49.842593
118
0.63942
3840dbb564e734c38c83fe800d16716f218de62c
4,434
py
Python
test/agent_test.py
foxty/node_monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
3
2018-01-09T05:58:21.000Z
2021-07-15T13:18:10.000Z
test/agent_test.py
foxty/node_monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
14
2018-01-17T06:19:48.000Z
2022-02-12T02:29:14.000Z
test/agent_test.py
foxty/node-monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Created on 2017-12-22 @author: foxty """ import os, sys import unittest import json from mock import MagicMock from common import Msg, is_linux, is_sunos, is_win, OSType from agent import AgentConfig, NodeCollector, is_metric_valid basepath = os.path.dirname(sys.path[0])...
29.56
79
0.607352
3840de678a4744c45c30b6ce1c3fa62297bc0851
434
py
Python
datareturn/migrations/0008_siteconfig_invite_email_postscript.py
PersonalGenomesOrg/datareturn
bf570635579cd7562696e10fd5e1d0a67d568f41
[ "MIT" ]
null
null
null
datareturn/migrations/0008_siteconfig_invite_email_postscript.py
PersonalGenomesOrg/datareturn
bf570635579cd7562696e10fd5e1d0a67d568f41
[ "MIT" ]
null
null
null
datareturn/migrations/0008_siteconfig_invite_email_postscript.py
PersonalGenomesOrg/datareturn
bf570635579cd7562696e10fd5e1d0a67d568f41
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('datareturn', '0007_auto_20151216_1514'), ] operations = [ migrations.AddField( model_name='siteconfig', ...
21.7
60
0.62212
3840ee4b37a4520564030399eb6ab214fbdf29a7
2,456
py
Python
custom_components/ble_monitor/ble_parser/bparasite.py
avidit/home-assistant-config
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
383
2019-11-25T17:13:04.000Z
2020-11-12T08:47:35.000Z
custom_components/ble_monitor/ble_parser/bparasite.py
scrambledleek/ha_hacs_ble_monitor
abafc7a34312e695667325dbe97c309f20dd1527
[ "MIT" ]
142
2019-11-25T21:29:27.000Z
2020-11-12T16:58:01.000Z
custom_components/ble_monitor/ble_parser/bparasite.py
scrambledleek/ha_hacs_ble_monitor
abafc7a34312e695667325dbe97c309f20dd1527
[ "MIT" ]
65
2019-11-26T11:53:44.000Z
2020-11-11T16:37:52.000Z
"""Parser for BParasite BLE advertisements""" import logging from struct import unpack from .helpers import ( to_mac, to_unformatted_mac, ) _LOGGER = logging.getLogger(__name__) def parse_bparasite(self, data, source_mac, rssi): """Check for adstruc length""" msg_length = len(data) if msg_length...
31.487179
99
0.564332
384108889d06de426f13999d070e2d5046f90f5b
14,338
py
Python
trackeval/metrics/hota.py
mchagneux/TrackEval
1c39da57343525306af523b9ab4557b7ed7480f4
[ "MIT" ]
null
null
null
trackeval/metrics/hota.py
mchagneux/TrackEval
1c39da57343525306af523b9ab4557b7ed7480f4
[ "MIT" ]
null
null
null
trackeval/metrics/hota.py
mchagneux/TrackEval
1c39da57343525306af523b9ab4557b7ed7480f4
[ "MIT" ]
null
null
null
import os import numpy as np from scipy.optimize import linear_sum_assignment from ._base_metric import _BaseMetric from .. import _timing import pickle import matplotlib.pyplot as plt # plt.ion() class HOTA(_BaseMetric): """Class which implements the HOTA metrics. See: https://link.springer.com/article/10.100...
52.713235
177
0.605524
384114d8048f6cd345b4a2afddd2cfbd1e36fd2b
551
py
Python
experiments_dikower/controllers/madrl/MADDPG.py
prokhn/onti-2019-bigdata
b9296141958f544177388be94072efce7bdc7814
[ "MIT" ]
207
2017-10-27T02:14:58.000Z
2020-05-13T06:07:51.000Z
MADDPG.py
EcustBoy/pytorch-DRL
44b8f082ffb054c6dabead8971b66a7be4c1f9ff
[ "MIT" ]
6
2017-11-05T18:50:52.000Z
2019-03-21T11:49:34.000Z
MADDPG.py
EcustBoy/pytorch-DRL
44b8f082ffb054c6dabead8971b66a7be4c1f9ff
[ "MIT" ]
46
2017-10-28T04:20:54.000Z
2020-03-14T13:42:15.000Z
import torch as th import torch.nn as nn from torch.optim import Adam, RMSprop import numpy as np from copy import deepcopy from common.Memory import ReplayMemory from common.Model import ActorNetwork, CriticNetwork from common.utils import to_tensor_var class MADDPG(object): """ An multi-agent learned wit...
22.04
95
0.709619
38411bb0081d62e7a1d02a82e0635506fbb55f77
3,173
py
Python
sdk/anomalydetector/azure-ai-anomalydetector/azure/ai/anomalydetector/models/_anomaly_detector_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/anomalydetector/azure-ai-anomalydetector/azure/ai/anomalydetector/models/_anomaly_detector_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/anomalydetector/azure-ai-anomalydetector/azure/ai/anomalydetector/models/_anomaly_detector_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
33.755319
100
0.676332
384123abeb9a9083c0614fc93a5f13219562481c
2,288
py
Python
tests/e2e/workloads/jenkins/test_jenkins_pod_respin.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/e2e/workloads/jenkins/test_jenkins_pod_respin.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/e2e/workloads/jenkins/test_jenkins_pod_respin.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
import logging import pytest from ocs_ci.framework.testlib import E2ETest, workloads from ocs_ci.ocs.jenkins import Jenkins from ocs_ci.ocs.constants import STATUS_COMPLETED from ocs_ci.helpers import disruption_helpers log = logging.getLogger(__name__) @pytest.fixture(scope="function") def jenkins(request): j...
27.238095
84
0.660402
38412807e06113bd60c2e2f91a302527634366c0
9,307
py
Python
appengine/findit/waterfall/test/build_util_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/waterfall/test/build_util_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/waterfall/test/build_util_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 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. import datetime import json import mock from go.chromium.org.luci.buildbucket.proto import common_pb2 from go.chromium.org.luci.buildbucket.proto.build_pb2 ...
39.604255
80
0.708499
38412bda66d2e33f0cfcabc0593e949b6bbc2e0e
8,903
py
Python
djaludir/core/sql.py
carthagecollege/django-djaludir
126735000efb69d7184aec9591a96667070f1870
[ "BSD-3-Clause" ]
null
null
null
djaludir/core/sql.py
carthagecollege/django-djaludir
126735000efb69d7184aec9591a96667070f1870
[ "BSD-3-Clause" ]
2
2020-06-05T19:30:19.000Z
2021-06-10T20:54:38.000Z
djaludir/core/sql.py
carthagecollege/django-djaludir
126735000efb69d7184aec9591a96667070f1870
[ "BSD-3-Clause" ]
null
null
null
# for some reason alt_name does not work here so we use aname SEARCH = ''' SELECT alum.cl_yr AS class_year, TRIM(NVL(ids.firstname,"")) AS fname, TRIM(NVL(aname_rec.line1,"")) AS aname, maiden.lastname AS maiden_name, ids.lastname, ids.id, NVL( TRIM(aaEmail.line1) || ...
29
77
0.474671
3841316b5a972bd9e60bd810956a0ffe8adfc3f1
6,178
py
Python
src/siliqua/config.py
Matoking/siliqua
b943822631ab18dde85e95d1731ebd7ffd7ef14a
[ "CC0-1.0" ]
8
2019-10-31T19:16:08.000Z
2021-12-04T00:09:24.000Z
src/siliqua/config.py
Matoking/siliqua
b943822631ab18dde85e95d1731ebd7ffd7ef14a
[ "CC0-1.0" ]
null
null
null
src/siliqua/config.py
Matoking/siliqua
b943822631ab18dde85e95d1731ebd7ffd7ef14a
[ "CC0-1.0" ]
1
2019-11-01T19:27:48.000Z
2019-11-01T19:27:48.000Z
import os import toml from appdirs import AppDirs __all__ = ( "get_appdirs", "get_default_config_dir", "get_default_config_path", "get_config", "create_config_files" ) def get_appdirs(): dirs = AppDirs("Siliqua", "Matoking") return dirs def get_default_config_dir(): """ Get the default co...
26.289362
76
0.59032
3841409f7cb0f045ff64c2aff79da5e72e445524
1,051
py
Python
util/esc.py
sammdot/circa
2cd16a727460c3aa002e65cc91834ee7a27a91c3
[ "BSD-3-Clause" ]
1
2016-10-21T06:22:01.000Z
2016-10-21T06:22:01.000Z
util/esc.py
sammdot/circa
2cd16a727460c3aa002e65cc91834ee7a27a91c3
[ "BSD-3-Clause" ]
7
2015-12-22T19:37:00.000Z
2016-01-11T05:24:25.000Z
util/esc.py
sammdot/circa
2cd16a727460c3aa002e65cc91834ee7a27a91c3
[ "BSD-3-Clause" ]
null
null
null
import re def unescape(text): """Unescape function based on http://stackoverflow.com/a/15528611.""" regex = re.compile(b'\\\\(\\\\|[0-7]{1,3}|x.[0-9a-f]?|[\'"abfnrt]|.|$)') def replace(m): b = m.group(1) if len(b) == 0: raise ValueError("Invalid character escape: '\\'.") ...
31.848485
82
0.458611
384155ca66471ac953e8e723cfe4b96ef75d93db
688
py
Python
JDjangoDemo/blog/migrations/0005_auto_20201028_1557.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
3
2020-12-28T05:09:02.000Z
2021-06-23T10:02:03.000Z
JDjangoDemo/blog/migrations/0005_auto_20201028_1557.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
JDjangoDemo/blog/migrations/0005_auto_20201028_1557.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-10-28 15:57 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('blog', '0004_auto_20201027_2246'), ] operations = [ migrations.AddField( model_name='notice', ...
26.461538
106
0.614826
3841844b936ec222fb7be76097d2c8b8dd210e3e
12,525
py
Python
macOS/Xcode/Maestral/Maestral/app_packages/desktop_notifier/main.py
productinfo/maestral-cocoa
d1626c68ace1939bd53cda53c53cbb43c9fb7a8e
[ "MIT" ]
22
2021-01-27T21:26:17.000Z
2021-12-07T00:22:16.000Z
macOS/Xcode/Maestral/Maestral/app_packages/desktop_notifier/main.py
productinfo/maestral-cocoa
d1626c68ace1939bd53cda53c53cbb43c9fb7a8e
[ "MIT" ]
6
2021-01-22T16:52:26.000Z
2021-10-16T20:09:54.000Z
macOS/Xcode/Maestral/Maestral/app_packages/desktop_notifier/main.py
productinfo/maestral-cocoa
d1626c68ace1939bd53cda53c53cbb43c9fb7a8e
[ "MIT" ]
2
2021-02-12T12:38:32.000Z
2021-07-13T18:01:13.000Z
# -*- coding: utf-8 -*- """ This module handles desktop notifications and supports multiple backends, depending on the platform. """ # system imports import platform from threading import RLock import logging import asyncio from pathlib import Path from typing import ( Type, Union, Optional, Callable, ...
34.035326
88
0.639122
38419e642f3825c97eb5a85e24289bd60b0c1bc2
886
py
Python
tests/testutils/repo/zip.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/testutils/repo/zip.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/testutils/repo/zip.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
import os import zipfile from buildstream.utils import sha256sum from buildstream.testing import Repo class Zip(Repo): def create(self, directory): archive = os.path.join(self.repo, "file.zip") old_dir = os.getcwd() os.chdir(directory) with zipfile.ZipFile(archive, "w") as zipfp...
26.058824
93
0.560948
3841e4d605caaa6e8e4dc7521b9ec09e6205f6a5
7,044
py
Python
hw4/cs285/infrastructure/utils.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
91
2020-06-13T16:26:42.000Z
2022-03-31T02:49:30.000Z
hw4/cs285/infrastructure/utils.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
6
2020-07-26T15:44:36.000Z
2022-02-10T02:15:10.000Z
hw4/cs285/infrastructure/utils.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
16
2020-08-04T01:17:45.000Z
2022-02-24T04:51:41.000Z
import numpy as np import time import copy ############################################ ############################################ def calculate_mean_prediction_error(env, action_sequence, models, data_statistics): # Use only one of the models in the ensemble for this calculation model = models[0] # o...
35.575758
120
0.619108
3841e5dedf18498128150d322e835b8855b482b3
2,577
py
Python
archive/nexus-api-v2/Database/Association.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/Database/Association.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/Database/Association.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
1
2022-01-03T05:33:15.000Z
2022-01-03T05:33:15.000Z
#!/usr/bin/env python3 # -*- Coding: UTF-8 -*- # # -*- System: Linux -*- # # -*- Usage: *.py -*- # # Owner: Jacob B. Sanders # Source: code.cloud-technology.io # License: BSD 2-Clause License """ ... """ # ============================================================================= # Standard Library # ===...
27.126316
79
0.468762
38420b9057af818c276a0c56a2a50e976a6e75f3
5,179
py
Python
2019/Python/Day_3/crossed_wires.py
airstandley/AdventofCode
86b7e289d67ba3ea31a78f4a4005253098f47254
[ "MIT" ]
null
null
null
2019/Python/Day_3/crossed_wires.py
airstandley/AdventofCode
86b7e289d67ba3ea31a78f4a4005253098f47254
[ "MIT" ]
null
null
null
2019/Python/Day_3/crossed_wires.py
airstandley/AdventofCode
86b7e289d67ba3ea31a78f4a4005253098f47254
[ "MIT" ]
null
null
null
import os from matplotlib import pyplot MAX_DISTANCE = 999999999999999 class Point: def __init__(self, x=0, y=0): self.x = x self.y = y def __repr__(self): return "Point({},{})".format(self.x, self.y) def __hash__(self): return hash((self.x, self.y)) def __eq__(self...
34.298013
116
0.652056
38421ba34d74fe519ec89e2a06eef31ad5f1f054
4,866
py
Python
obsplan/tests/test_time.py
zachariahmilby/keck-aurora-observation-planning
9f37e4f7782a3c3a2eb388bb0fac8fcb05ca1882
[ "MIT" ]
null
null
null
obsplan/tests/test_time.py
zachariahmilby/keck-aurora-observation-planning
9f37e4f7782a3c3a2eb388bb0fac8fcb05ca1882
[ "MIT" ]
null
null
null
obsplan/tests/test_time.py
zachariahmilby/keck-aurora-observation-planning
9f37e4f7782a3c3a2eb388bb0fac8fcb05ca1882
[ "MIT" ]
null
null
null
import datetime import pytest import pytz from obsplan.time import _convert_string_to_datetime, \ _convert_datetime_to_string, _convert_ephemeris_date_to_string, \ _convert_to_california_time, _calculate_duration class TestConvertStringToDatetime: @pytest.fixture def good_date_string(self): ...
31.803922
79
0.707768
38423ab9572df235615a996d8734a6b7686f824b
2,589
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/virtual_machine_scale_set_storage_profile.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/virtual_machine_scale_set_storage_profile.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/virtual_machine_scale_set_storage_profile.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
51.78
161
0.696794
3842a0999f623e511bb895a1711d172277190116
8,641
py
Python
hypothesisEngine/representation/tree.py
pavandonthireddy/Project_V4
6dea85b6b2ac9b05056b1f8a859361427d642fed
[ "Apache-2.0" ]
null
null
null
hypothesisEngine/representation/tree.py
pavandonthireddy/Project_V4
6dea85b6b2ac9b05056b1f8a859361427d642fed
[ "Apache-2.0" ]
null
null
null
hypothesisEngine/representation/tree.py
pavandonthireddy/Project_V4
6dea85b6b2ac9b05056b1f8a859361427d642fed
[ "Apache-2.0" ]
null
null
null
from hypothesisEngine.algorithm.parameters import params class Tree: def __init__(self, expr, parent): """ Initialise an instance of the tree class. :param expr: A non-terminal from the params['BNF_GRAMMAR']. :param parent: The parent of the current node. None if node is ...
34.019685
79
0.544497
3842a982fe103ce5a2c670e80f659941a8313e2b
31,797
py
Python
larch/wxxas/xasnorm_panel.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
larch/wxxas/xasnorm_panel.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
larch/wxxas/xasnorm_panel.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ XANES Normalization panel """ import os import time import wx import numpy as np from functools import partial from lmfit.printfuncs import gformat from larch.math import index_of from larch.xray import guess_edge, atomic_number from larch.xafs.xafsutils import guess_energy_units from larch....
40.046599
95
0.556845
3842c4c079cf433ef0ca481e40ca5f1fdeadb7d5
250
py
Python
manage.py
sonus21/MiniTwitter
b62c0c540c1726fc7e6197b33514d7af15f1b58e
[ "BSD-2-Clause" ]
null
null
null
manage.py
sonus21/MiniTwitter
b62c0c540c1726fc7e6197b33514d7af15f1b58e
[ "BSD-2-Clause" ]
null
null
null
manage.py
sonus21/MiniTwitter
b62c0c540c1726fc7e6197b33514d7af15f1b58e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Twitter.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
22.727273
71
0.772
3842e4480d2972473b4316b4c622c305cb1f5e59
1,247
py
Python
src/apps/profiles/admin.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
src/apps/profiles/admin.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
48
2017-04-21T17:35:23.000Z
2020-08-29T04:19:35.000Z
src/apps/profiles/admin.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
# coding: utf-8 # app: us.nspaces.ccc.profiles # módulo: apps.profile.admin # descripción: Admin area # autor: Javier Sanchez Toledano # fecha: miércoles, 9 de agosto de 2017 from django.contrib import admin from django.contrib.auth.models import User from django.contrib.auth.admin import Use...
28.340909
81
0.692863
3842fd0609585a86f5572b9cc444b76f5436059b
2,003
py
Python
venv/Lib/site-packages/pyrogram/raw/functions/account/get_contact_sign_up_notification.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/functions/account/get_contact_sign_up_notification.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/account/get_contact_sign_up_notification.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
29.895522
103
0.632052
38431108cbbe558ffa2e52eb05f127744b7f9f30
4,975
py
Python
6.3_Reduce_RF.py
sdat2/Yellowstone2
4008145b7372f5f5901de584656ceea44e73934a
[ "MIT" ]
null
null
null
6.3_Reduce_RF.py
sdat2/Yellowstone2
4008145b7372f5f5901de584656ceea44e73934a
[ "MIT" ]
null
null
null
6.3_Reduce_RF.py
sdat2/Yellowstone2
4008145b7372f5f5901de584656ceea44e73934a
[ "MIT" ]
null
null
null
#Begin 6_auto_select_receiver_functions.py a program written by Sanne Cottaar (sc845@cam.ac.uk) file_name = '6_auto_select_receiver_functions.py' ##### AUTOMATED QUALITY CONTROL SCRIPT FOR RF ANALYSIS################# # Given large quantity of data in box, this must be used instead of manual quality control. # This sc...
46.064815
137
0.612462
3843207a84210e8b44eb3c6c918036aad30325d0
37,079
py
Python
sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/aio/operations/_databases_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/aio/operations/_databases_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/aio/operations/_databases_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 ...
45.776543
329
0.6734
384320ef3de2f22df6c857b0e210854d61143fb3
88,068
py
Python
libcudnn.py
hannes-brt/cudnn-python-wrappers
55aab1242924c2fd43db150cf2ccc2a3df958dd5
[ "MIT" ]
126
2015-01-02T22:04:07.000Z
2022-01-02T13:20:01.000Z
libcudnn.py
hannes-brt/cudnn-python-wrappers
55aab1242924c2fd43db150cf2ccc2a3df958dd5
[ "MIT" ]
9
2015-01-12T10:32:27.000Z
2017-05-26T17:29:03.000Z
libcudnn.py
hannes-brt/cudnn-python-wrappers
55aab1242924c2fd43db150cf2ccc2a3df958dd5
[ "MIT" ]
22
2015-01-21T09:27:53.000Z
2022-03-25T13:46:37.000Z
""" Python interface to the NVIDIA cuDNN library """ import sys import ctypes import ctypes.util if sys.platform in ('linux2', 'linux'): _libcudnn_libname_list = ['libcudnn.so', 'libcudnn.so.6', 'libcudnn.so.6.0.21'] elif sys.platform == 'darwin': _libcudnn_libname_list = ['libcudnn.dylib', 'libcudnn.6.dylib'...
45.372488
141
0.589215
384321edbaf71b57c347b6b0162c6c8e34967885
109,626
py
Python
impacket/dot11.py
kanzure/impacket
88c7536ca24bc8f47718764f76cc38cdc8cf1879
[ "Apache-1.1" ]
null
null
null
impacket/dot11.py
kanzure/impacket
88c7536ca24bc8f47718764f76cc38cdc8cf1879
[ "Apache-1.1" ]
null
null
null
impacket/dot11.py
kanzure/impacket
88c7536ca24bc8f47718764f76cc38cdc8cf1879
[ "Apache-1.1" ]
4
2015-02-25T20:08:18.000Z
2021-07-06T12:31:29.000Z
# Copyright (c) 2003-2012 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # $Id$ # # Description: # IEEE 802.11 Network packet codecs. # # Author: # Gustavo Moreira import ar...
35.990151
112
0.597039
38432dd28b5ac64312ec0cba0f6e9400b43649f5
619
py
Python
Chapter10/ch10/hostres/util.py
clperez/Learn-Python-Programming-Second-Edition
e43fc293726c510e16475d7fb5551d5cbb5ee303
[ "MIT" ]
55
2018-07-04T10:12:15.000Z
2022-03-03T19:51:54.000Z
Chapter10/ch10/hostres/util.py
clperez/Learn-Python-Programming-Second-Edition
e43fc293726c510e16475d7fb5551d5cbb5ee303
[ "MIT" ]
6
2020-03-24T16:37:46.000Z
2021-06-10T21:04:36.000Z
Chapter10/ch10/hostres/util.py
clperez/Learn-Python-Programming-Second-Edition
e43fc293726c510e16475d7fb5551d5cbb5ee303
[ "MIT" ]
32
2018-07-10T05:56:31.000Z
2021-09-04T23:19:42.000Z
import socket from multiprocessing import Process, Queue def resolve(hostname, timeout=5): exitcode, ip = resolve_host(hostname, timeout) if exitcode == 0: return ip else: return hostname def resolve_host(hostname, timeout): queue = Queue() proc = Process(target=gethostbyname, ...
18.757576
64
0.646204
38432f9fa219c8e1e957d3d15acf41872c7392ca
1,070
py
Python
src/Pix2Pix/Imports.py
m-ali-awan/AI-Art
6969e0a64bdf6a70aa741c29806fc148de93595c
[ "MIT" ]
297
2019-03-27T21:02:07.000Z
2022-03-31T18:01:11.000Z
src/Pix2Pix/Imports.py
wx0122/AI-Art
6969e0a64bdf6a70aa741c29806fc148de93595c
[ "MIT" ]
7
2019-12-01T01:33:04.000Z
2022-03-29T22:18:27.000Z
src/Pix2Pix/Imports.py
wx0122/AI-Art
6969e0a64bdf6a70aa741c29806fc148de93595c
[ "MIT" ]
61
2019-05-21T03:02:00.000Z
2022-03-28T06:48:38.000Z
import numpy as np import os, wget, zipfile, shutil import warnings, itertools, functools from collections import OrderedDict from argparse import ArgumentParser from skimage import io as io, transform as tfm import matplotlib as mpl, matplotlib.pyplot as plt mpl.rcParams["figure.figsize"] = (8, 4) mpl.rcParams["axe...
32.424242
86
0.82243