hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
acffd6761384a301287008fa357d0255432a4326
1,187
py
Python
Mini-xtreme-2021/Answers/q8.py
bimalka98/Data-Structures-and-Algorithms
7d358a816561551a5b04af8de378141becda42bd
[ "MIT" ]
1
2021-03-21T07:54:08.000Z
2021-03-21T07:54:08.000Z
Mini-xtreme-2021/Answers/q8.py
bimalka98/Data-Structures-and-Algorithms
7d358a816561551a5b04af8de378141becda42bd
[ "MIT" ]
null
null
null
Mini-xtreme-2021/Answers/q8.py
bimalka98/Data-Structures-and-Algorithms
7d358a816561551a5b04af8de378141becda42bd
[ "MIT" ]
null
null
null
def findServerCount(timeLst): servers = [] for i in range(len(timeLst)-1): found = False for serverIndex in range(len(servers)): if(servers[serverIndex] <= timeLst[i][:4]): servers[serverIndex] = getFreeTime(timeLst[i][-4:]) found = True ...
26.377778
67
0.566976
acffd70c595a52abee301c689c5e7e98ae59e70d
6,125
py
Python
pypy/translator/jvm/builtin.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
pypy/translator/jvm/builtin.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
null
null
null
pypy/translator/jvm/builtin.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
from pypy.translator.jvm import typesystem as jvmtype from pypy.translator.jvm import generator as jvmgen from pypy.rpython.ootypesystem import ootype from pypy.translator.jvm.typesystem import \ jInt, jVoid, jStringBuilder, jString, jPyPy, jChar, jArrayList, jObject, \ jBool, jHashMap, jPyPyDictItemsIterator...
36.676647
79
0.666776
acffd799786e676432b6bb96821da3c5941eb7fb
7,036
py
Python
talon_one/models/new_audience.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2021-03-05T06:41:26.000Z
2021-03-05T06:41:26.000Z
talon_one/models/new_audience.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2021-09-07T08:56:58.000Z
2021-09-07T08:56:58.000Z
talon_one/models/new_audience.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2019-05-21T10:27:54.000Z
2019-05-21T10:27:54.000Z
# coding: utf-8 """ Talon.One API The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. #...
36.268041
647
0.622797
acffd84d1925e928e54858599dc37372336576d7
37,138
py
Python
tensorflow_probability/python/experimental/nn/util/convolution_util.py
chrism0dwk/probability
ab260f15cae94c6802c2f2769fb448ad213b79cd
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/experimental/nn/util/convolution_util.py
chrism0dwk/probability
ab260f15cae94c6802c2f2769fb448ad213b79cd
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/experimental/nn/util/convolution_util.py
chrism0dwk/probability
ab260f15cae94c6802c2f2769fb448ad213b79cd
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # Copyright 2020 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 ...
38.725756
81
0.610965
acffd8a40a92ddd54e3de4ee66052b5631ea3069
3,182
py
Python
test/test_amici_objective.py
beimbusch/pyPESTO
8275751eba87efedd6ad1e6923a94d7de0603ddd
[ "BSD-3-Clause" ]
null
null
null
test/test_amici_objective.py
beimbusch/pyPESTO
8275751eba87efedd6ad1e6923a94d7de0603ddd
[ "BSD-3-Clause" ]
null
null
null
test/test_amici_objective.py
beimbusch/pyPESTO
8275751eba87efedd6ad1e6923a94d7de0603ddd
[ "BSD-3-Clause" ]
null
null
null
""" This is for testing the pypesto.Objective. """ from pypesto.objective.amici_util import add_sim_grad_to_opt_grad import petab import pypesto import pypesto.optimize import pypesto.objective.constants import pytest import numpy as np from test.petab_util import folder_base ATOL = 1e-1 RTOL = 1e-0 def test_add_s...
30.596154
79
0.682904
acffd97a7992260dcb85243a39d116e5f52f55c9
611
py
Python
023. Enumerating k-mers Lexicographically/Main.py
SyouTono242/Rosalind
d0f339789b5373d7ce98d401d5168536f1d2e18c
[ "Apache-2.0" ]
null
null
null
023. Enumerating k-mers Lexicographically/Main.py
SyouTono242/Rosalind
d0f339789b5373d7ce98d401d5168536f1d2e18c
[ "Apache-2.0" ]
null
null
null
023. Enumerating k-mers Lexicographically/Main.py
SyouTono242/Rosalind
d0f339789b5373d7ce98d401d5168536f1d2e18c
[ "Apache-2.0" ]
null
null
null
# Given: A collection of at most 10 symbols defining an ordered alphabet, and a positive integer n (n≤10). # # Return: All strings of length n that can be formed from the alphabet, ordered lexicographically (use the standard # order of symbols in the English alphabet). Alphabet = "A B C D E F" n = 3 def alpha...
30.55
115
0.674304
acffd9ac70f12ad3b1d79f74be98a2a18d1cd04d
388
py
Python
backend/apps/cabins/migrations/0009_auto_20210327_1240.py
hovedstyret/indok-web
598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159
[ "MIT" ]
3
2021-11-18T09:29:14.000Z
2022-01-13T20:12:11.000Z
backend/apps/cabins/migrations/0009_auto_20210327_1240.py
rubberdok/indok-web
598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159
[ "MIT" ]
277
2022-01-17T18:16:44.000Z
2022-03-31T19:44:04.000Z
backend/apps/cabins/migrations/0009_auto_20210327_1240.py
hovedstyret/indok-web
598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2021-03-27 11:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("cabins", "0008_auto_20210322_2011"), ] operations = [ migrations.AlterField( model_name="cabin", name="max_guests", ...
20.421053
50
0.600515
acffdbab9ed0a5b01827507983e5f50d80f93575
1,166
py
Python
common/urls.py
cs4p/opal
8c01814a66e03a4481d3fc06375d097866485bc6
[ "CC0-1.0" ]
null
null
null
common/urls.py
cs4p/opal
8c01814a66e03a4481d3fc06375d097866485bc6
[ "CC0-1.0" ]
1
2022-01-05T19:41:20.000Z
2022-01-05T19:41:20.000Z
common/urls.py
cs4p/opal
8c01814a66e03a4481d3fc06375d097866485bc6
[ "CC0-1.0" ]
null
null
null
"""opal URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
41.642857
84
0.65952
acffdbeb42cf2390e0fd3a0b9fbcd6932524df42
10,472
py
Python
metrics/cortx_people.py
vaibhavparatwar/cortx-1
1e8c0251c0c83444eacc79d560f5ff7a7f1cde72
[ "Apache-2.0" ]
1
2021-03-12T07:14:19.000Z
2021-03-12T07:14:19.000Z
metrics/cortx_people.py
vaibhavparatwar/cortx-1
1e8c0251c0c83444eacc79d560f5ff7a7f1cde72
[ "Apache-2.0" ]
1
2021-03-22T12:37:01.000Z
2021-03-22T12:37:01.000Z
metrics/cortx_people.py
vaibhavparatwar/cortx-1
1e8c0251c0c83444eacc79d560f5ff7a7f1cde72
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 from cortx_community import get_logins,CortxCommunity,get_teams,SlackCommunity,CortxActivity import argparse import json import os import re import sys import time from github import Github def Debug(msg): print(msg) def person_match(person,string): match = False try: if string in ...
37.003534
157
0.673224
acffdc3ecb183799729adbd7c3aa6f78e2a55781
6,654
py
Python
openrobot_cli/api/__init__.py
MaskDuck/OpenRobot-CLI
aecc1182b61e03f5fc21496e0cb303b2dbc039f9
[ "MIT" ]
null
null
null
openrobot_cli/api/__init__.py
MaskDuck/OpenRobot-CLI
aecc1182b61e03f5fc21496e0cb303b2dbc039f9
[ "MIT" ]
null
null
null
openrobot_cli/api/__init__.py
MaskDuck/OpenRobot-CLI
aecc1182b61e03f5fc21496e0cb303b2dbc039f9
[ "MIT" ]
null
null
null
import os import json import click from ..utils import blue_text from openrobot.api_wrapper import SyncClient def get_token(): try: dir = os.path.expanduser("~/.openrobot") with open(f'{dir}/api/cridentials.json', 'r') as f: cridentials = json.load(f) token = cridentials...
31.239437
305
0.616171
acffdcd49dfef04711d3d32c6be72fe399402934
4,780
py
Python
venv/Lib/site-packages/pandas/tests/series/methods/test_describe.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/tests/series/methods/test_describe.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/tests/series/methods/test_describe.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
1
2021-04-26T22:41:56.000Z
2021-04-26T22:41:56.000Z
import numpy as np from pandas import Period, Series, Timedelta, Timestamp, date_range import pandas._testing as tm class TestSeriesDescribe: def test_describe(self): s = Series([0, 1, 2, 3, 4], name="int_data") result = s.describe() expected = Series( [5, 2, s.std(...
33.900709
89
0.471967
acffdd34d800e4ec72b78e4084e4c4d51dc289cc
2,782
py
Python
models/disputable_voting.py
pkretzschmar/commons-config-backend
a5abf9294e0b2fbb8f5d5bf5d3db2b1c55ebbc91
[ "MIT" ]
null
null
null
models/disputable_voting.py
pkretzschmar/commons-config-backend
a5abf9294e0b2fbb8f5d5bf5d3db2b1c55ebbc91
[ "MIT" ]
null
null
null
models/disputable_voting.py
pkretzschmar/commons-config-backend
a5abf9294e0b2fbb8f5d5bf5d3db2b1c55ebbc91
[ "MIT" ]
null
null
null
import pandas as pd class DisputableVotingModel: def __init__(self, support_required=None, minimum_quorum=None, vote_duration=None, delegated_voting_period=None, quiet_ending_period=None, quiet_ending_extension=N...
44.870968
108
0.645219
acffddcd33f33dbf358c8b101d2ed810592a0084
14,380
py
Python
DVSTool/drawevent.py
YU-Zhiyang/WEVI
0282dc6de58722fc3ed3829a004800b035685b3a
[ "MIT" ]
14
2021-08-10T06:58:07.000Z
2022-02-25T23:03:10.000Z
DVSTool/drawevent.py
YU-Zhiyang/WEVI
0282dc6de58722fc3ed3829a004800b035685b3a
[ "MIT" ]
4
2021-10-30T13:01:52.000Z
2022-03-22T04:59:46.000Z
DVSTool/drawevent.py
YU-Zhiyang/WEVI
0282dc6de58722fc3ed3829a004800b035685b3a
[ "MIT" ]
null
null
null
import cv2 import sys import os sys.path.append('../') from lib import fileTool as FT from lib.pwcNet.pwcNet import PWCDCNet from lib.forwardWarpTorch.forwardWarp import forwadWarp import torch from pathlib import Path from DVSTool20.DVSBase import ESIMReader import numpy as np import pickle from tqdm import tqdm fro...
35.682382
117
0.507441
acffde5e4bbab6a2d2240ec0d221d67211e8d444
744
py
Python
Python/Programming Fundamentals/Exams/61. The Isle Of Man Race.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
Python/Programming Fundamentals/Exams/61. The Isle Of Man Race.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
Python/Programming Fundamentals/Exams/61. The Isle Of Man Race.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
import re pattern = r'(#|\$|%|\*|&)([a-zA-Z]+)\1=(\d+)!!(.+)' is_found = False while not is_found: message = input() matches = re.fullmatch(pattern, message) if not matches: print('Nothing found!') continue full_message = matches[0] name_racer = matches[2] length...
24
63
0.58871
acffdefcc1836d8629769dadcf9e87c63d6fd70d
1,478
py
Python
bitshares/aio/instance.py
silverchen0402/python-bitshares
aafbcf5cd09e7bca99dd156fd60b9df8ba508630
[ "MIT" ]
102
2018-04-08T23:05:00.000Z
2022-03-31T10:10:03.000Z
bitshares/aio/instance.py
silverchen0402/python-bitshares
aafbcf5cd09e7bca99dd156fd60b9df8ba508630
[ "MIT" ]
246
2018-04-03T12:35:49.000Z
2022-02-28T10:44:28.000Z
bitshares/aio/instance.py
silverchen0402/python-bitshares
aafbcf5cd09e7bca99dd156fd60b9df8ba508630
[ "MIT" ]
128
2018-04-14T01:39:12.000Z
2022-03-25T08:56:51.000Z
# -*- coding: utf-8 -*- from graphenecommon.aio.instance import AbstractBlockchainInstanceProvider class SharedInstance: """This class merely offers a singelton for the Blockchain Instance.""" instance = None config = {} class BlockchainInstance(AbstractBlockchainInstanceProvider): """This is a cla...
28.980392
85
0.742896
acffdfcb271ed94f995cf9abb83ff15cc345f941
29,412
py
Python
noiseplanet/utils/hexgrid.py
jks-liu/noiseplanet
907b2bb9a93df48a266ad01c7cad0d8ef2367e78
[ "Apache-2.0" ]
27
2020-06-13T21:00:53.000Z
2022-03-29T03:22:06.000Z
noiseplanet/utils/hexgrid.py
voodooed/noiseplanet
fca79ef3b81826a5286d566ebf3bf9340df13201
[ "Apache-2.0" ]
12
2020-12-24T08:14:00.000Z
2022-02-06T18:01:51.000Z
noiseplanet/utils/hexgrid.py
voodooed/noiseplanet
fca79ef3b81826a5286d566ebf3bf9340df13201
[ "Apache-2.0" ]
9
2020-08-28T16:06:54.000Z
2022-01-26T01:05:02.000Z
# -*- coding: utf-8 -*- # Created on Tue Dec 18 16:49:20 2019 # @author: arthurd """ HexGrid Module. Generate Hexagonal grid. Cartesian-Hexagonal coordinates interaction. """ import numpy as np import math import matplotlib.pyplot as plt from pyproj import Proj, Transformer def hexbin_grid(bbox, side_length=1, ...
34.724911
129
0.578063
acffe1b0efd181f4154863da9b44bdd1dd2f823a
7,841
py
Python
profile_depths/time_structure_pred.py
psturmfels/tape
0b72f1c24177991b8b031158364176500d4184a8
[ "BSD-3-Clause" ]
null
null
null
profile_depths/time_structure_pred.py
psturmfels/tape
0b72f1c24177991b8b031158364176500d4184a8
[ "BSD-3-Clause" ]
null
null
null
profile_depths/time_structure_pred.py
psturmfels/tape
0b72f1c24177991b8b031158364176500d4184a8
[ "BSD-3-Clause" ]
null
null
null
import torch import argparse import os import time import sys import numpy as np import pandas as pd from netsurfp2 import parse_fasta, preprocess, model, convert_npz sys.path[0] = '/export/home/tape' from tape import utils from tape.registry import registry from tape.training import ForwardRunner, run_eval_epoch def...
39.60101
132
0.614973
acffe250b317bb18182722b7fba3bdbfc7037d8a
2,815
py
Python
2020/day11.py
mbmackenzie/advent-of-code
66ef2723b67c84b9c03e05281106fb2811da17a1
[ "MIT" ]
null
null
null
2020/day11.py
mbmackenzie/advent-of-code
66ef2723b67c84b9c03e05281106fb2811da17a1
[ "MIT" ]
null
null
null
2020/day11.py
mbmackenzie/advent-of-code
66ef2723b67c84b9c03e05281106fb2811da17a1
[ "MIT" ]
null
null
null
"""Day 11""" from typing import Any from aoc import Solution Grid = list[str] def get_num_occupied(x: int, y: int, grid: Grid, acceptable: str) -> int: """Get the number of empty and occupied seats amongh neighbors""" directions = [ (1, 0), (0, 1), (-1, 0), (0, -1), ...
27.067308
82
0.566607
acffe2b9900889813fed218edea271abc1c1e911
5,423
py
Python
lulu/extractors/tumblr.py
fakegit/Lulu
940c9344df8aab6044ec603f8e78d145b0f9bad7
[ "MIT" ]
922
2018-01-17T09:22:26.000Z
2022-03-28T04:10:45.000Z
lulu/extractors/tumblr.py
fakegit/Lulu
940c9344df8aab6044ec603f8e78d145b0f9bad7
[ "MIT" ]
83
2018-01-16T08:33:55.000Z
2021-06-25T06:18:24.000Z
lulu/extractors/tumblr.py
fakegit/Lulu
940c9344df8aab6044ec603f8e78d145b0f9bad7
[ "MIT" ]
156
2018-02-03T06:24:14.000Z
2022-01-05T05:39:14.000Z
#!/usr/bin/env python import re from urllib import parse from html import unescape from lulu.extractors.vine import vine_download from lulu.extractors.vimeo import vimeo_download from lulu.extractors.universal import universal_download from lulu.extractors.dailymotion import dailymotion_download from lulu.common imp...
34.762821
79
0.495851
acffe2da3c10ae54d03b91406cc380fa926fc5e5
250
py
Python
toxsign/users/apps.py
mboudet/toxsign_v2
6ceb4f599241648dfb2e5f48ee33cf5b0b31258b
[ "MIT" ]
2
2019-07-01T08:24:26.000Z
2020-07-02T08:03:35.000Z
toxsign/users/apps.py
mboudet/toxsign_v2
6ceb4f599241648dfb2e5f48ee33cf5b0b31258b
[ "MIT" ]
20
2019-07-01T15:06:53.000Z
2020-12-08T13:14:10.000Z
toxsign/users/apps.py
mboudet/toxsign_v2
6ceb4f599241648dfb2e5f48ee33cf5b0b31258b
[ "MIT" ]
2
2019-07-01T09:37:39.000Z
2019-07-09T09:24:03.000Z
from django.apps import AppConfig class UsersAppConfig(AppConfig): name = "toxsign.users" verbose_name = "Users" def ready(self): try: import users.signals # noqa F401 except ImportError: pass
17.857143
45
0.608
acffe3947db19167a6c05c9d31bbb78a0437d23a
22,538
py
Python
pymatgen/transformations/site_transformations.py
Chessmag/pymatgen
61a4bb7a1792e1ea2379abd45b3c40efb816fd64
[ "MIT" ]
1
2021-10-18T01:26:50.000Z
2021-10-18T01:26:50.000Z
pymatgen/transformations/site_transformations.py
Chessmag/pymatgen
61a4bb7a1792e1ea2379abd45b3c40efb816fd64
[ "MIT" ]
null
null
null
pymatgen/transformations/site_transformations.py
Chessmag/pymatgen
61a4bb7a1792e1ea2379abd45b3c40efb816fd64
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module defines site transformations which transforms a structure into another structure. Site transformations differ from standard transformations in that they operate in a site-specific manner. All tr...
37.752094
102
0.601828
acffe5c2abcbc41850972592777f4324638b83b8
2,245
py
Python
app/ubmrcnn/start_ubmrcnn_worker.py
LArbys/ublarcvserver
02381c937f49a2eab2f754017ab431c3f6fa70d7
[ "Apache-2.0" ]
2
2020-07-09T19:34:03.000Z
2021-06-21T23:09:23.000Z
app/ubmrcnn/start_ubmrcnn_worker.py
LArbys/ublarcvserver
02381c937f49a2eab2f754017ab431c3f6fa70d7
[ "Apache-2.0" ]
null
null
null
app/ubmrcnn/start_ubmrcnn_worker.py
LArbys/ublarcvserver
02381c937f49a2eab2f754017ab431c3f6fa70d7
[ "Apache-2.0" ]
null
null
null
import os,sys,logging from multiprocessing import Process from UBMRCNNWorker import UBMRCNNWorker from ublarcvserver import start_broker """ Start the broker and worker. Run one client. Useful for tests. """ def start_ubmrcnn_worker(broker_address,plane,weight_file, device_id, ...
29.933333
78
0.570156
acffe65fb4d038f2dd4349e609bfbcf75bd044dd
8,095
py
Python
mmpose/datasets/datasets/top_down/topdown_onehand10k_dataset.py
filipkro/mmpose
b4b6eda3fe3c2470ab0e44936f4bf7f82db6d3e4
[ "Apache-2.0" ]
1
2020-09-22T03:39:47.000Z
2020-09-22T03:39:47.000Z
mmpose/datasets/datasets/top_down/topdown_onehand10k_dataset.py
filipkro/mmpose
b4b6eda3fe3c2470ab0e44936f4bf7f82db6d3e4
[ "Apache-2.0" ]
null
null
null
mmpose/datasets/datasets/top_down/topdown_onehand10k_dataset.py
filipkro/mmpose
b4b6eda3fe3c2470ab0e44936f4bf7f82db6d3e4
[ "Apache-2.0" ]
1
2021-07-13T03:42:27.000Z
2021-07-13T03:42:27.000Z
import copy as cp import os import os.path as osp from collections import OrderedDict import json_tricks as json import numpy as np from mmpose.core.evaluation.top_down_eval import (keypoint_auc, keypoint_epe, keypoint_pck_accuracy) from mmpose.datasets.builder import...
32.641129
77
0.542434
acffe6b015a6a2c9fcc4095952707fdbfc767a71
14,619
py
Python
facedancer/backends/greathost.py
hugmyndakassi/Facedancer
e688fe61dc34087db333432394e1f90e52ac3794
[ "BSD-3-Clause" ]
345
2019-03-12T23:36:36.000Z
2022-02-02T00:26:27.000Z
facedancer/backends/greathost.py
hugmyndakassi/Facedancer
e688fe61dc34087db333432394e1f90e52ac3794
[ "BSD-3-Clause" ]
35
2019-03-24T19:06:41.000Z
2021-12-28T07:38:49.000Z
facedancer/backends/greathost.py
hugmyndakassi/Facedancer
e688fe61dc34087db333432394e1f90e52ac3794
[ "BSD-3-Clause" ]
59
2019-04-18T14:22:47.000Z
2022-01-18T14:34:50.000Z
# GreatDancerHostApp.py # # Host support for GreatFET-base devices import sys import time import codecs import struct import logging from ..core import * class GreatDancerHostApp(FacedancerUSBHost): """ Class that represents a GreatFET-based USB host. """ app_name = "GreatDancer Host" PORT_STAT...
34.724466
131
0.643956
acffe813d764271fcaef8b717ecd671986397dad
6,062
py
Python
test/integration/ggrc_basic_permissions/test_assignable.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
null
null
null
test/integration/ggrc_basic_permissions/test_assignable.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
12
2015-01-08T14:50:19.000Z
2017-11-29T19:37:53.000Z
test/integration/ggrc_basic_permissions/test_assignable.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
1
2015-01-08T13:25:09.000Z
2015-01-08T13:25:09.000Z
# Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: anze@reciprocitylabs.com # Maintained By: anze@reciprocitylabs.com """ Test Assignable RBAC """ from ggrc.models import all_models from integratio...
37.652174
79
0.679974
acffe8140862e2345ec7dec2801da427615ba100
438
py
Python
EcoApp/EcoApp/cor/migrations/0018_auto_20200524_0331.py
palonsovazquez/EcoAppApi
a47c593c782f881858e2519d4a52c09a0a8b2cef
[ "Apache-2.0" ]
null
null
null
EcoApp/EcoApp/cor/migrations/0018_auto_20200524_0331.py
palonsovazquez/EcoAppApi
a47c593c782f881858e2519d4a52c09a0a8b2cef
[ "Apache-2.0" ]
null
null
null
EcoApp/EcoApp/cor/migrations/0018_auto_20200524_0331.py
palonsovazquez/EcoAppApi
a47c593c782f881858e2519d4a52c09a0a8b2cef
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-24 01:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cor', '0017_auto_20200524_0318'), ] operations = [ migrations.AlterField( model_name='component', name='code', ...
23.052632
105
0.625571
acffeb5af8e178fd0607e676ee7ff1cb9011b04d
1,648
py
Python
tools/gitmirror_conf_generate.py
saripurigopi/fgci-ansible
25eb4e95346b38f4ca31bf4911c90a1bedf901ee
[ "MIT" ]
null
null
null
tools/gitmirror_conf_generate.py
saripurigopi/fgci-ansible
25eb4e95346b38f4ca31bf4911c90a1bedf901ee
[ "MIT" ]
null
null
null
tools/gitmirror_conf_generate.py
saripurigopi/fgci-ansible
25eb4e95346b38f4ca31bf4911c90a1bedf901ee
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Parse requirements.yaml and generate a git-mirror config file and a # requirements.yml that uses the mirror instead of pulling directly. import yaml import urlparse import sys import time def getreq(fname): with open(fname) as f: m = yaml.safe_load(f) return m def genreq(...
35.06383
111
0.564927
acffee77b8ecae144f5b041277cef10d831238c2
13,924
py
Python
log_casp_inh/model_587.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_casp_inh/model_587.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_casp_inh/model_587.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('C6A', ['C8pro']) Monomer('BaxA', ['BaxM', 'BaxA_1', 'BaxA_2', 'SmacM']) Monomer('Ligand', ['Receptor']) Monomer('C6pro', ['C3A']) Monome...
85.423313
598
0.808532
acffeea74f00a14a8e25da1d2d2d31fec2cfd5b5
8,821
py
Python
telegraph/api.py
AbirHasan2005/telegraph
428002dce04db57cd96fd406e8917c896ed45673
[ "MIT" ]
1
2021-12-05T19:14:54.000Z
2021-12-05T19:14:54.000Z
telegraph/api.py
AbirHasan2005/telegraph
428002dce04db57cd96fd406e8917c896ed45673
[ "MIT" ]
null
null
null
telegraph/api.py
AbirHasan2005/telegraph
428002dce04db57cd96fd406e8917c896ed45673
[ "MIT" ]
2
2021-10-17T13:12:02.000Z
2021-12-30T04:07:26.000Z
# -*- coding: utf-8 -*- import json import requests from .exceptions import TelegraphException from .utils import html_to_nodes, nodes_to_html class TelegraphApi(object): """ Telegraph API Client :param access_token: access_token :type access_token: str """ __slots__ = ('access_token', 'sessio...
34.189922
80
0.609455
acfff26fffea32659a99f47bf9837fee19b1aa79
203
py
Python
coroutine/async_asyncio.py
kaitolucifer/asgi-demo
3d5a1ab834d01c04dfbed4f99f61e78f1896606c
[ "WTFPL" ]
null
null
null
coroutine/async_asyncio.py
kaitolucifer/asgi-demo
3d5a1ab834d01c04dfbed4f99f61e78f1896606c
[ "WTFPL" ]
null
null
null
coroutine/async_asyncio.py
kaitolucifer/asgi-demo
3d5a1ab834d01c04dfbed4f99f61e78f1896606c
[ "WTFPL" ]
null
null
null
import asyncio async def test1(): print(1) await coro2 print('test1 done') async def test2(): print(2) await asyncio.sleep(0) coro1 = test1() coro2 = test2() asyncio.run(coro1)
11.277778
26
0.630542
acfff61dc968fc4de71821450008e48edd4d36ee
305
py
Python
2017/02/mexico-nafta-baseline-20170223/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2017/02/mexico-nafta-baseline-20170223/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2017/02/mexico-nafta-baseline-20170223/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '1OH1cqs_v4b3FYYgccNRYpyDtRZ6kjAJAlqRpPrssJew' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
21.785714
77
0.819672
acfff687c8c25baebd00873d9fc161b7d17926d6
944
py
Python
ask-sdk-core/ask_sdk_core/dispatch_components/__init__.py
koshyviv/alexa-skills-kit-sdk-for-python
1ceace2b745f53d32a8fea8eeb18ec9f381cda1c
[ "Apache-2.0" ]
1
2020-06-13T14:14:26.000Z
2020-06-13T14:14:26.000Z
ask-sdk-core/ask_sdk_core/dispatch_components/__init__.py
koshyviv/alexa-skills-kit-sdk-for-python
1ceace2b745f53d32a8fea8eeb18ec9f381cda1c
[ "Apache-2.0" ]
null
null
null
ask-sdk-core/ask_sdk_core/dispatch_components/__init__.py
koshyviv/alexa-skills-kit-sdk-for-python
1ceace2b745f53d32a8fea8eeb18ec9f381cda1c
[ "Apache-2.0" ]
2
2019-11-22T14:52:47.000Z
2021-06-18T13:46:15.000Z
# -*- coding: utf-8 -*- # # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights # Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or i...
33.714286
67
0.76589
acfff6a4dd028d5768425cc05f332187a1bd48ef
11,518
py
Python
sphinx/transforms/__init__.py
sephalon/sphinx
c892fe98f7a311dc51340f8d98e63d9790b7f820
[ "BSD-2-Clause" ]
null
null
null
sphinx/transforms/__init__.py
sephalon/sphinx
c892fe98f7a311dc51340f8d98e63d9790b7f820
[ "BSD-2-Clause" ]
4
2021-03-04T17:18:36.000Z
2021-07-14T19:08:18.000Z
sphinx/transforms/__init__.py
sephalon/sphinx
c892fe98f7a311dc51340f8d98e63d9790b7f820
[ "BSD-2-Clause" ]
2
2021-03-02T10:07:11.000Z
2021-10-12T23:41:07.000Z
# -*- coding: utf-8 -*- """ sphinx.transforms ~~~~~~~~~~~~~~~~~ Docutils transforms used by Sphinx when reading documents. :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from docutils import nodes from docutils.transforms import Transf...
32.814815
95
0.604358
acfff6ed42020c227b8a281356a2f31968b023cb
2,795
py
Python
detection/metrics/analyzer/clustering.py
ml-in-programming/kotlin-code-anomaly
8a999beafc6222feb715a9bb9ef9fd670d414856
[ "Apache-2.0" ]
4
2018-04-20T07:36:13.000Z
2019-02-03T10:33:39.000Z
detection/metrics/analyzer/clustering.py
JetBrains-Research/kotlin-code-anomaly
8a999beafc6222feb715a9bb9ef9fd670d414856
[ "Apache-2.0" ]
null
null
null
detection/metrics/analyzer/clustering.py
JetBrains-Research/kotlin-code-anomaly
8a999beafc6222feb715a9bb9ef9fd670d414856
[ "Apache-2.0" ]
null
null
null
import csv import os import time import matplotlib.pyplot as plt import numpy as np import pandas # noinspection PyUnresolvedReferences from mpl_toolkits.mplot3d import Axes3D from sklearn.cluster import KMeans from sklearn.decomposition import PCA from sklearn.preprocessing import scale is_drawing = False out_dir =...
32.126437
115
0.667263
acfff70415af30cae85e1c57a35e5e80e6b039a1
2,077
py
Python
package/spack-gotcha/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
1
2018-07-17T07:45:09.000Z
2018-07-17T07:45:09.000Z
package/spack-gotcha/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
package/spack-gotcha/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
42.387755
78
0.653828
acfff73dc627541d9216fce53073b06c90d63c9a
2,715
py
Python
src/sqlfluff/rules/L025.py
tinder-albertyue/sqlfluff
992bd8d02465c9a57f29d58d5c328e8f548f6cc9
[ "MIT" ]
null
null
null
src/sqlfluff/rules/L025.py
tinder-albertyue/sqlfluff
992bd8d02465c9a57f29d58d5c328e8f548f6cc9
[ "MIT" ]
null
null
null
src/sqlfluff/rules/L025.py
tinder-albertyue/sqlfluff
992bd8d02465c9a57f29d58d5c328e8f548f6cc9
[ "MIT" ]
null
null
null
"""Implementation of Rule L025.""" from sqlfluff.core.rules.base import LintFix, LintResult from sqlfluff.core.rules.doc_decorators import document_fix_compatible from sqlfluff.core.rules.functional import Segments import sqlfluff.core.rules.functional.segment_predicates as sp from sqlfluff.rules.L020 import Rule_L020...
30.852273
91
0.552855
acfff8c95c57f7028f8280e9e5dbb257887c567a
517
py
Python
test/test_load_signatures.py
x-way/tell-me-your-secrets
e59749f87e146a4cc4912b9505deefcce10a72a4
[ "MIT" ]
31
2019-11-27T09:14:55.000Z
2022-02-15T12:39:43.000Z
test/test_load_signatures.py
x-way/tell-me-your-secrets
e59749f87e146a4cc4912b9505deefcce10a72a4
[ "MIT" ]
27
2020-06-18T13:20:42.000Z
2021-09-15T08:13:51.000Z
test/test_load_signatures.py
x-way/tell-me-your-secrets
e59749f87e146a4cc4912b9505deefcce10a72a4
[ "MIT" ]
12
2019-12-12T08:53:29.000Z
2022-02-15T12:39:53.000Z
import unittest import yaml from tell_me_your_secrets.__main__ import SignatureRecognizer from tell_me_your_secrets.defaults import DEFAULT_CONFIG_PATH class SignatureLoadTest(unittest.TestCase): def test_load_default_config(self): """ Test to ensure default config is valid. """ with open(DEFAU...
30.411765
86
0.729207
acfff95bfa85860a52b8e9609be7ef72302bbc39
3,490
py
Python
myfuc/.ipynb_checkpoints/KAMOME_NET-checkpoint.py
kamomehz/waveletCodingCNN
50c7db9d986039ded38999b7e4f4265e2250fb90
[ "MIT" ]
null
null
null
myfuc/.ipynb_checkpoints/KAMOME_NET-checkpoint.py
kamomehz/waveletCodingCNN
50c7db9d986039ded38999b7e4f4265e2250fb90
[ "MIT" ]
null
null
null
myfuc/.ipynb_checkpoints/KAMOME_NET-checkpoint.py
kamomehz/waveletCodingCNN
50c7db9d986039ded38999b7e4f4265e2250fb90
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torchvision.transforms as transforms from torch.utils.data import DataLoader, Dataset, TensorDataset import numpy as np from matplotlib import pyplot as plt import struct class RMSELoss(nn.Module): def __ini...
27.698413
63
0.544413
acfff9bb73eb82f00d2815212752940eace32a55
22,055
py
Python
map_matching/road_routing.py
ilaripih/map-matching
37e901aa48075bf6d09a2f152a7a267bb5fcdc26
[ "BSD-3-Clause" ]
null
null
null
map_matching/road_routing.py
ilaripih/map-matching
37e901aa48075bf6d09a2f152a7a267bb5fcdc26
[ "BSD-3-Clause" ]
null
null
null
map_matching/road_routing.py
ilaripih/map-matching
37e901aa48075bf6d09a2f152a7a267bb5fcdc26
[ "BSD-3-Clause" ]
1
2020-08-13T12:39:40.000Z
2020-08-13T12:39:40.000Z
import collections import itertools from .shortest_path import * from .utils import Edge try: from itertools import ( izip as zip, imap as map, ifilter as filter) except ImportError: pass # A hashable object used by road network routing. Its attributes # edge_id and location must be ...
40.994424
121
0.606756
acfff9cdc0c8718f09bb64bb02401075174e3400
26,509
py
Python
src/VarDACAE/fluidity/vtktools.py
scheng1992/Data_Assimilation
b4d43895229205ee2cd16b15ee20beccb33b71d6
[ "MIT" ]
1
2021-11-25T12:46:48.000Z
2021-11-25T12:46:48.000Z
src/VarDACAE/fluidity/vtktools.py
bugsuse/Data_Assimilation
2965ccf78951df11f8686282cd6814bae18afde5
[ "MIT" ]
null
null
null
src/VarDACAE/fluidity/vtktools.py
bugsuse/Data_Assimilation
2965ccf78951df11f8686282cd6814bae18afde5
[ "MIT" ]
2
2021-03-02T13:29:34.000Z
2022-03-12T11:01:08.000Z
#!/usr/bin/env python """This file is taken from the Fluidity master branch at the following location: https://github.com/FluidityProject/multifluids/blob/master/python/vtktools.py The file has been edited for python2 -> python3 It was easier to import just this file than to have fluidity as a dependency for this pro...
33.302764
125
0.666151
acfffa34492bc826a8a3470e4db7baac64516d7a
56,384
py
Python
keystone/cmd/cli.py
lostmap/keystone
9a9022600e01ea09131cf194ffa5c1757ffeb24f
[ "Apache-2.0" ]
null
null
null
keystone/cmd/cli.py
lostmap/keystone
9a9022600e01ea09131cf194ffa5c1757ffeb24f
[ "Apache-2.0" ]
null
null
null
keystone/cmd/cli.py
lostmap/keystone
9a9022600e01ea09131cf194ffa5c1757ffeb24f
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # # 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...
40.857971
79
0.602139
acfffa4c7f480c3f1e90e86e4085f4f5a59c041d
1,181
py
Python
framework/codejam/analyse/language.py
neizod/coding-analysis
cc086bcf204e570032d11b12a46ac819cfe93f2b
[ "MIT" ]
1
2015-05-22T05:01:53.000Z
2015-05-22T05:01:53.000Z
framework/codejam/analyse/language.py
neizod/coding-analysis
cc086bcf204e570032d11b12a46ac819cfe93f2b
[ "MIT" ]
null
null
null
framework/codejam/analyse/language.py
neizod/coding-analysis
cc086bcf204e570032d11b12a46ac819cfe93f2b
[ "MIT" ]
null
null
null
import os import json from framework._utils import AnalyserHook class CodeJamAnalyseLanguage(AnalyserHook): ''' This method will analyse language used in each subbmited code. ''' @staticmethod def analyse(data): for row in data: if len(row['languages']) != 1: continue...
33.742857
74
0.593565
acfffae2676dcb53658f13001da9575a437e490a
1,018
py
Python
backend/question/apps.py
beehyv/workforcehealthtracker
ab0f921938e1ee50158c9d2c72a66c534d435eee
[ "Apache-2.0" ]
2
2020-05-10T05:20:04.000Z
2020-05-21T15:29:55.000Z
backend/question/apps.py
beehyv/workforcehealthtracker
ab0f921938e1ee50158c9d2c72a66c534d435eee
[ "Apache-2.0" ]
null
null
null
backend/question/apps.py
beehyv/workforcehealthtracker
ab0f921938e1ee50158c9d2c72a66c534d435eee
[ "Apache-2.0" ]
2
2020-05-13T18:21:37.000Z
2020-05-21T15:29:58.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"); y...
39.153846
91
0.747544
acfffbc73eb4e760558634e1e2c9186d33c43ade
1,169
py
Python
src/gunicorn_cfg.py
devsetgo/pynote_2
e5a086a06ed19774f569eb59486d1d0960e78c06
[ "MIT" ]
null
null
null
src/gunicorn_cfg.py
devsetgo/pynote_2
e5a086a06ed19774f569eb59486d1d0960e78c06
[ "MIT" ]
47
2021-04-10T14:47:38.000Z
2022-03-05T02:40:59.000Z
src/gunicorn_cfg.py
devsetgo/pynote_2
e5a086a06ed19774f569eb59486d1d0960e78c06
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Configuration of Gunicorn to serve application utilizing Uvicorn gunicorn config reference: https://github.com/benoitc/gunicorn/blob/master/examples/example_config.py """ from settings import LOGURU_LOGGING_LEVEL # ip and port to bind bind = "0.0.0.0:5000" # max number of pending connecti...
31.594595
109
0.740804
acfffc0e0c93e6a34ea84f33e871b90641c4ba0b
230
py
Python
Python/Tests/TestData/DebuggerProject/SteppingTestBug1315.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
404
2019-05-07T02:21:57.000Z
2022-03-31T17:03:04.000Z
Python/Tests/TestData/DebuggerProject/SteppingTestBug1315.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
1,672
2019-05-06T21:09:38.000Z
2022-03-31T23:16:04.000Z
Python/Tests/TestData/DebuggerProject/SteppingTestBug1315.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
186
2019-05-13T03:17:37.000Z
2022-03-31T16:24:05.000Z
try: import _thread except ImportError: import thread as _thread l = _thread.allocate_lock() l.acquire() def my_thread(): print('100') print('200') l.release() _thread.start_new_thread(my_thread, ()) l.acquire()
16.428571
39
0.691304
acfffc31c1c29fd9298dfa09e4da1ac1935ed570
7,837
py
Python
terminusdb_client/woql_utils.py
polyneme/terminusdb-client-python
720024e33465f830709691507b4fbd5b3597e29f
[ "Apache-2.0" ]
null
null
null
terminusdb_client/woql_utils.py
polyneme/terminusdb-client-python
720024e33465f830709691507b4fbd5b3597e29f
[ "Apache-2.0" ]
null
null
null
terminusdb_client/woql_utils.py
polyneme/terminusdb-client-python
720024e33465f830709691507b4fbd5b3597e29f
[ "Apache-2.0" ]
null
null
null
import json import urllib.parse from datetime import datetime from .errors import DatabaseError STANDARD_URLS = { "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", "rdfs": "http://www.w3.org/2000/01/rdf-schema#", "xsd": "http://www.w3.org/2001/XMLSchema#", "xdd": "http://terminusdb.com/schema/xdd#...
22.915205
83
0.565012
acfffd3554ae4d63894755cf9c49ba40cd481b5e
117
py
Python
blueprints/video_discovery/scripts/kb/transform/constants.py
lfiedlerc/mindmeld-blueprints
4b5e1445ec75da25090bda8432c4a3a9d431a7f0
[ "Apache-2.0" ]
12
2019-05-14T11:07:31.000Z
2021-08-27T23:10:32.000Z
blueprints/video_discovery/scripts/kb/transform/constants.py
lfiedlerc/mindmeld-blueprints
4b5e1445ec75da25090bda8432c4a3a9d431a7f0
[ "Apache-2.0" ]
8
2019-07-03T20:13:54.000Z
2020-12-09T23:14:08.000Z
blueprints/video_discovery/scripts/kb/transform/constants.py
lfiedlerc/mindmeld-blueprints
4b5e1445ec75da25090bda8432c4a3a9d431a7f0
[ "Apache-2.0" ]
13
2019-06-27T22:51:45.000Z
2021-12-07T22:09:26.000Z
POSTER_IMG_URL = 'http://image.tmdb.org/t/p/w185/' TYPE_MOVIE = 'movie' TYPE_TV = 'tv-show' TYPE_EPISODE = 'episode'
23.4
50
0.709402
acfffd5f560bd0680dd67478d9fcc6e23b2e5b62
95
py
Python
terrascript/logentries/d.py
GarnerCorp/python-terrascript
ec6c2d9114dcd3cb955dd46069f8ba487e320a8c
[ "BSD-2-Clause" ]
null
null
null
terrascript/logentries/d.py
GarnerCorp/python-terrascript
ec6c2d9114dcd3cb955dd46069f8ba487e320a8c
[ "BSD-2-Clause" ]
null
null
null
terrascript/logentries/d.py
GarnerCorp/python-terrascript
ec6c2d9114dcd3cb955dd46069f8ba487e320a8c
[ "BSD-2-Clause" ]
1
2018-11-15T16:23:05.000Z
2018-11-15T16:23:05.000Z
from terrascript import _data class logentries_logset(_data): pass logset = logentries_logset
19
36
0.842105
acfffd7f5db9541e6c630a552301915d12b76dc8
1,281
py
Python
tests/test_scripts/12_iozone_throughput.py
stanik137/xtreemfs
e548deba8be2631ab0d2e47a1652941729cf70de
[ "BSD-3-Clause" ]
4
2016-04-26T03:43:54.000Z
2016-11-17T08:09:04.000Z
tests/test_scripts/12_iozone_throughput.py
stanik137/xtreemfs
e548deba8be2631ab0d2e47a1652941729cf70de
[ "BSD-3-Clause" ]
17
2015-01-05T21:06:22.000Z
2015-12-07T20:45:44.000Z
tests/test_scripts/12_iozone_throughput.py
stanik137/xtreemfs
e548deba8be2631ab0d2e47a1652941729cf70de
[ "BSD-3-Clause" ]
3
2016-04-26T03:43:55.000Z
2020-11-06T11:02:08.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2009-2011 by Bjoern Kolbeck, Minor Gordon, Zuse Institute Berlin # Licensed under the BSD License, see LICENSE file for details. import unittest, subprocess, sys, os class iozoneThroughputTest(unittest.TestCase): def __init__( self, stdout=sys.stdout, ...
32.846154
92
0.616706
acfffd844c028bb436d2fb621e38a1931ece9745
83,187
py
Python
tests/unit/gapic/datastore_v1/test_datastore.py
LaudateCorpus1/python-datastore
b1f955b8d410392174092cb8131673a10ccc33ec
[ "Apache-2.0" ]
50
2020-03-07T16:55:45.000Z
2022-03-25T12:10:12.000Z
tests/unit/gapic/datastore_v1/test_datastore.py
LaudateCorpus1/python-datastore
b1f955b8d410392174092cb8131673a10ccc33ec
[ "Apache-2.0" ]
161
2020-02-07T00:46:20.000Z
2022-03-16T20:02:16.000Z
tests/unit/gapic/datastore_v1/test_datastore.py
LaudateCorpus1/python-datastore
b1f955b8d410392174092cb8131673a10ccc33ec
[ "Apache-2.0" ]
28
2020-02-07T00:55:36.000Z
2022-03-03T06:07:03.000Z
# -*- coding: utf-8 -*- # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
37.421053
107
0.671259
acfffdd94655cd764ae34e693bc3423439bca767
12,211
py
Python
src/parsetab.py
ccverak/sc
f8224474d993e1fed8648a1c77b46dae76e87b1c
[ "MIT" ]
null
null
null
src/parsetab.py
ccverak/sc
f8224474d993e1fed8648a1c77b46dae76e87b1c
[ "MIT" ]
null
null
null
src/parsetab.py
ccverak/sc
f8224474d993e1fed8648a1c77b46dae76e87b1c
[ "MIT" ]
null
null
null
# parsetab.py # This file is automatically generated. Do not edit. _lr_method = 'LALR' _lr_signature = '\x8e\n\xbb\x058\x13\xef\xb1E\xe7\xd3\x16\xeb\x1f\x15U' _lr_action_items = {'REAL':([1,13,24,25,31,38,39,42,48,49,50,51,52,53,54,55,56,57,58,59,61,64,94,],[20,20,20,20,-26,20,20,20,20,20,20,20,20,20,20,20,20,20,20...
156.551282
4,956
0.624601
acfffebaad2938771d01dd305f621ae0a07da168
1,173
py
Python
pybiotools4p/softwares/fasta/gffread.py
btrspg/pybiotools4p
b12bdea26570fc52fa8823f0a2cfeed8491ac4c1
[ "Apache-2.0" ]
null
null
null
pybiotools4p/softwares/fasta/gffread.py
btrspg/pybiotools4p
b12bdea26570fc52fa8823f0a2cfeed8491ac4c1
[ "Apache-2.0" ]
null
null
null
pybiotools4p/softwares/fasta/gffread.py
btrspg/pybiotools4p
b12bdea26570fc52fa8823f0a2cfeed8491ac4c1
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 11_gffread.ipynb (unless otherwise specified). __all__ = ['Gffread'] # Cell from ..base import Base,modify_cmd # Cell class Gffread(Base): def __init__(self, software, fd): super(Gffread, self).__init__(software) self._default = fd def cmd_versio...
22.557692
90
0.537937
acffff045cd59ca3aa1ac5136002a4eca0990cc3
6,351
py
Python
tests/test_shutdown.py
pentschev/ucx-py
d701a3facd85ef2deece619a4f707fdebee36e3c
[ "BSD-3-Clause" ]
76
2019-06-08T04:03:39.000Z
2022-01-07T20:34:23.000Z
tests/test_shutdown.py
rapidsai/ucx-py
e28d770aa0b47c0e63c2e7e61649f1b355560e8a
[ "BSD-3-Clause" ]
644
2019-06-04T23:06:02.000Z
2022-02-24T11:17:45.000Z
tests/test_shutdown.py
pentschev/ucx-py
d701a3facd85ef2deece619a4f707fdebee36e3c
[ "BSD-3-Clause" ]
32
2019-08-14T09:22:02.000Z
2022-01-21T20:17:50.000Z
import asyncio import sys import numpy as np import pytest import ucp def _skip_if_not_supported(message_type): if message_type == "am" and not ucp._libs.ucx_api.is_am_supported(): pytest.skip("AM only supported in UCX >= 1.11") async def _shutdown_send(ep, message_type): msg = np.arange(10 ** 6) ...
31.440594
88
0.675169
acffff5e82faf89367ecafaebc0f3167a77f21cb
742
py
Python
send.py
svenseeberg/ml-text-classification
e20191a923e43707b32aad5c73162512723441af
[ "MIT" ]
1
2018-07-20T08:45:19.000Z
2018-07-20T08:45:19.000Z
send.py
svenseeberg/ml-text-classification
e20191a923e43707b32aad5c73162512723441af
[ "MIT" ]
null
null
null
send.py
svenseeberg/ml-text-classification
e20191a923e43707b32aad5c73162512723441af
[ "MIT" ]
1
2018-07-20T08:45:24.000Z
2018-07-20T08:45:24.000Z
#!/usr/bin/env python3 import requests import sys import json with open('training.json') as f: data = json.load(f) if(len(sys.argv) == 1 or sys.argv[1] == "add"): x = 0 y = len(data) for item in data: r = requests.post('http://localhost:8082/add/', json=item) x = x + 1 print(st...
29.68
67
0.603774
acffff5ef1f370e741b58401b2ff3a658d861783
9,251
py
Python
set1/challenge6.py
8u1a/my_matasano_crypto_challenges
0da1f7fc9445449d5d02867b659325ef5fe62c7d
[ "Unlicense" ]
null
null
null
set1/challenge6.py
8u1a/my_matasano_crypto_challenges
0da1f7fc9445449d5d02867b659325ef5fe62c7d
[ "Unlicense" ]
null
null
null
set1/challenge6.py
8u1a/my_matasano_crypto_challenges
0da1f7fc9445449d5d02867b659325ef5fe62c7d
[ "Unlicense" ]
null
null
null
__author__ = 'christianbuia' import binascii import sys import base64 def hamming_distance_two_hexstrings(hexstring1, hexstring2): distance = 0 if len(hexstring1) != len(hexstring2): sys.stderr.write("unexpected: length of compared strings don't match. exiting.\n") return False bytes1 =...
37.605691
137
0.736893
acffffc9567db7842132db486253a7f33e9a5137
6,347
py
Python
475.py
AiiDeHua/CISC475-19S
f9905ed92381c776b6337c9d71ab75dc99dc197a
[ "MIT" ]
null
null
null
475.py
AiiDeHua/CISC475-19S
f9905ed92381c776b6337c9d71ab75dc99dc197a
[ "MIT" ]
null
null
null
475.py
AiiDeHua/CISC475-19S
f9905ed92381c776b6337c9d71ab75dc99dc197a
[ "MIT" ]
null
null
null
# coding = utf-8 import bibtexparser as bp from bibtexparser.bparser import BibTexParser from bibtexparser.customization import convert_to_unicode import os, shutil import jieba import jieba.posseg as pseg from gensim import corpora, models, similarities #-------------------------global variable-----------------------...
27.960352
124
0.5902
4a000045be0c48718029a2f63eccc8eb583f0070
32
py
Python
libgcv/model/ho_relation/__init__.py
bhaveshbaranda/Human-Object-Relation-Network
8f358fa14fe14c7c02758359dce2a5c625be87c1
[ "MIT" ]
2
2020-09-18T12:16:39.000Z
2021-07-08T01:41:33.000Z
libgcv/model/ho_relation/__init__.py
bhaveshbaranda/Human-Object-Relation-Network
8f358fa14fe14c7c02758359dce2a5c625be87c1
[ "MIT" ]
2
2020-09-18T12:16:34.000Z
2021-07-15T05:33:26.000Z
libgcv/model/ho_relation/__init__.py
bhaveshbaranda/Human-Object-Relation-Network
8f358fa14fe14c7c02758359dce2a5c625be87c1
[ "MIT" ]
6
2020-09-17T05:57:54.000Z
2021-07-15T05:34:01.000Z
from .ho_relation_net import *
10.666667
30
0.78125
4a0000b1479967cf71ea91df3c68bbd86baec81d
8,571
py
Python
tests/db/test_quotes_basic.py
pgoslatara/soda-sql
79dc8ad1c79ac8fe3f75955ecc8424ee0aef95f3
[ "Apache-2.0" ]
1
2022-02-25T01:31:12.000Z
2022-02-25T01:31:12.000Z
tests/db/test_quotes_basic.py
pgoslatara/soda-sql
79dc8ad1c79ac8fe3f75955ecc8424ee0aef95f3
[ "Apache-2.0" ]
null
null
null
tests/db/test_quotes_basic.py
pgoslatara/soda-sql
79dc8ad1c79ac8fe3f75955ecc8424ee0aef95f3
[ "Apache-2.0" ]
null
null
null
import json import os from unittest import TestCase import boto3 import psycopg2 import pyathena from google.cloud import bigquery from google.cloud.bigquery import dbapi from google.oauth2.service_account import Credentials from snowflake import connector from sodasql.common.logging_helper import LoggingHelper from s...
34.841463
119
0.54101
4a0000ec843c1930098a0cdd86fbdccb3b14d690
2,162
py
Python
ssseg/cfgs/encnet/cfgs_cityscapes_resnet101os8.py
skydengyao/sssegmentation
606b05983fa967bb3c98d1120f44dfc516532dad
[ "MIT" ]
1
2021-05-28T06:42:37.000Z
2021-05-28T06:42:37.000Z
ssseg/cfgs/encnet/cfgs_cityscapes_resnet101os8.py
skydengyao/sssegmentation
606b05983fa967bb3c98d1120f44dfc516532dad
[ "MIT" ]
null
null
null
ssseg/cfgs/encnet/cfgs_cityscapes_resnet101os8.py
skydengyao/sssegmentation
606b05983fa967bb3c98d1120f44dfc516532dad
[ "MIT" ]
null
null
null
'''define the config file for cityscapes and resnet101os8''' from .base_cfg import * # modify dataset config DATASET_CFG = DATASET_CFG.copy() DATASET_CFG['train'].update( { 'type': 'cityscapes', 'rootdir': 'data/CityScapes', 'aug_opts': [('Resize', {'output_size': (2048, 1024), 'keep_ratio...
31.794118
110
0.597132
4a000161b20e74b0839f877b0ce4a24038f2ebc1
21,412
py
Python
hoomd/md/angle.py
PetersResearchGroup/PCND
584768cc683a6df0152ead69b567d05b781aab2b
[ "BSD-3-Clause" ]
null
null
null
hoomd/md/angle.py
PetersResearchGroup/PCND
584768cc683a6df0152ead69b567d05b781aab2b
[ "BSD-3-Clause" ]
null
null
null
hoomd/md/angle.py
PetersResearchGroup/PCND
584768cc683a6df0152ead69b567d05b781aab2b
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009-2017 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. R""" Angle potentials. Angles add forces between specified triplets of particles and are typically used to model chemical angles between two bonds. By themselves...
37.433566
147
0.632683
4a0001ebb75b96bd209e4ef34bea2e63c0d34420
1,046
py
Python
avalon/vendor/qtawesome/__init__.py
bumpybox/core
5a24640484f19e48dc12682dae979adc6d41dc0b
[ "MIT" ]
168
2017-06-23T15:50:43.000Z
2022-02-27T10:48:45.000Z
avalon/vendor/qtawesome/__init__.py
bumpybox/core
5a24640484f19e48dc12682dae979adc6d41dc0b
[ "MIT" ]
1,019
2021-04-26T06:22:56.000Z
2022-03-31T16:30:43.000Z
avalon/vendor/qtawesome/__init__.py
bumpybox/core
5a24640484f19e48dc12682dae979adc6d41dc0b
[ "MIT" ]
42
2017-06-23T15:27:26.000Z
2021-09-29T17:28:18.000Z
""" qtawesome - use font-awesome in PyQt / PySide applications This is a port to Python of the C++ QtAwesome library by Rick Blommers """ from .iconic_font import IconicFont, set_global_defaults from .animation import Pulse, Spin from ._version import version_info, __version__ _resource = {'iconic': None, } def _in...
26.15
113
0.678776
4a000255c50f5139a42dd9bf5c0549d332a3dd14
3,647
py
Python
cw/generate_cython_pyi.py
aarondewindt/cw
6be9770da0f0fc34ea47d7ab83e6929c4823e98a
[ "MIT" ]
1
2021-10-06T07:20:43.000Z
2021-10-06T07:20:43.000Z
cw/generate_cython_pyi.py
aarondewindt/cw
6be9770da0f0fc34ea47d7ab83e6929c4823e98a
[ "MIT" ]
3
2019-02-18T13:49:39.000Z
2020-12-28T04:13:27.000Z
cw/generate_cython_pyi.py
aarondewindt/cw
6be9770da0f0fc34ea47d7ab83e6929c4823e98a
[ "MIT" ]
null
null
null
import re from io import StringIO from cw.cli_base import CLIBase import argparse from pathlib import Path pattern = r'(?:cdef class )(.+)(?::)|((?: def )[\s\S]+?(?::))(?:(\s*"""[\s\S]*?""")|\s*\n)|( @[\s\S]*?\n)' """ Regular expression matching class, functions and decorators. """ func_pattern = r"(?: def\...
37.214286
134
0.574445
4a0003c2c6c0f59cd9603e695939c138aca6bd15
472
py
Python
oasispackage/probes/project1/yes.py
jose-caballero/oasis-server
a8368287748288264903af562156bdd572f7fe30
[ "Apache-2.0" ]
null
null
null
oasispackage/probes/project1/yes.py
jose-caballero/oasis-server
a8368287748288264903af562156bdd572f7fe30
[ "Apache-2.0" ]
null
null
null
oasispackage/probes/project1/yes.py
jose-caballero/oasis-server
a8368287748288264903af562156bdd572f7fe30
[ "Apache-2.0" ]
1
2019-09-18T18:51:11.000Z
2019-09-18T18:51:11.000Z
#!/usr/bin/env python from oasispackage.interfaces import BaseProbe import sys class yes(BaseProbe): """ Fake probe, just for testing purpopses. Always return 0 """ def __init__(self, options): super(yes, self).__init__(options) def run(self): ##self.log.debug('calling prob...
17.481481
72
0.614407
4a0003ee334c4a4f31cc030b2fcd0e30b923af4e
2,116
py
Python
plugins/SentimentAnalysis/__init__.py
ecumene/Automata
f34a329d161111ee42caaf5fd2bca8d3a202ed39
[ "MIT" ]
11
2019-07-11T12:53:45.000Z
2022-01-19T21:11:38.000Z
plugins/SentimentAnalysis/__init__.py
ecumene/Automata
f34a329d161111ee42caaf5fd2bca8d3a202ed39
[ "MIT" ]
36
2019-10-03T18:48:15.000Z
2022-02-01T16:01:07.000Z
plugins/SentimentAnalysis/__init__.py
ecumene/Automata
f34a329d161111ee42caaf5fd2bca8d3a202ed39
[ "MIT" ]
21
2019-12-09T03:42:34.000Z
2022-01-30T22:48:58.000Z
from nltk.sentiment import SentimentIntensityAnalyzer import nltk from nextcord.ext import commands from Plugin import AutomataPlugin nltk.downloader.download('vader_lexicon') class SentimentAnalysis(AutomataPlugin): """NLTK Sentiment Analyzer""" sia = SentimentIntensityAnalyzer() @commands.command() ...
36.482759
100
0.660208
4a00049f767654e24f7b022fa406517593bdfe06
33,241
py
Python
nova/virt/hyperv/vmops.py
nicholaskuechler/nova
ff412c3888b234eb123161cc4e6d0d0d69c0004e
[ "Apache-2.0" ]
null
null
null
nova/virt/hyperv/vmops.py
nicholaskuechler/nova
ff412c3888b234eb123161cc4e6d0d0d69c0004e
[ "Apache-2.0" ]
5
2016-07-11T20:59:47.000Z
2020-07-28T09:56:35.000Z
nova/virt/hyperv/vmops.py
nicholaskuechler/nova
ff412c3888b234eb123161cc4e6d0d0d69c0004e
[ "Apache-2.0" ]
3
2018-01-29T00:44:44.000Z
2020-07-24T01:19:20.000Z
# Copyright (c) 2010 Cloud.com, Inc # Copyright 2012 Cloudbase Solutions Srl # 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/...
42.891613
79
0.597906
4a0004a02f74917a340a2e22e272209ed795a26a
542
py
Python
setup.py
m-rivera/mootler
d723de7535a6dccc7fb59887d7e07cfba67c74f0
[ "MIT" ]
1
2021-04-12T12:42:29.000Z
2021-04-12T12:42:29.000Z
setup.py
m-rivera/mootler
d723de7535a6dccc7fb59887d7e07cfba67c74f0
[ "MIT" ]
null
null
null
setup.py
m-rivera/mootler
d723de7535a6dccc7fb59887d7e07cfba67c74f0
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, Extension setup(name='mootler', version='0.2.1', description='Utility to analyse Moodle data and plot it', author='Miguel Rivera', author_email='miguel.rivera@ucl.ac.uk', license='MIT', packages=['mootler', 'mootler.src'...
25.809524
63
0.583026
4a00067e12056a3f8222c138e49faaa768565fb6
5,949
py
Python
tests/integration/modules/test_mac_softwareupdate.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2021-08-14T13:48:38.000Z
2021-08-14T13:48:38.000Z
tests/integration/modules/test_mac_softwareupdate.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
3
2015-03-31T14:44:05.000Z
2015-06-18T19:02:24.000Z
tests/integration/modules/test_mac_softwareupdate.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:24.000Z
2020-01-02T09:03:24.000Z
# -*- coding: utf-8 -*- ''' integration tests for mac_softwareupdate ''' # Import Python libs from __future__ import absolute_import # Import Salt Testing libs from tests.support.unit import skipIf from tests.support.case import ModuleCase from tests.support.helpers import destructiveTest, skip_if_not_root # Import ...
32.867403
100
0.646663
4a00071ead632cbed3e8790794fdc02cf748efec
3,408
py
Python
setup.py
Lewiscowles1986/bearlib
30f9b8ba4b7a8db4cd2f4c6e07966ae51d0a00dd
[ "CC0-1.0" ]
null
null
null
setup.py
Lewiscowles1986/bearlib
30f9b8ba4b7a8db4cd2f4c6e07966ae51d0a00dd
[ "CC0-1.0" ]
null
null
null
setup.py
Lewiscowles1986/bearlib
30f9b8ba4b7a8db4cd2f4c6e07966ae51d0a00dd
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import os import sys import re import codecs from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand cwd = os.path.abspath(os.path.dirname(__file__)) class PyTest(TestComm...
39.627907
90
0.598592
4a0007378b8ac7a4e0e0659d192f8c0eaf09cd62
231
py
Python
saleor/core/utils/filters.py
EitanRosenzvaig/mio
5e11b29ccb1724cae6b49ceef7350dcbc986083c
[ "BSD-3-Clause" ]
null
null
null
saleor/core/utils/filters.py
EitanRosenzvaig/mio
5e11b29ccb1724cae6b49ceef7350dcbc986083c
[ "BSD-3-Clause" ]
1
2018-07-30T16:59:12.000Z
2018-07-30T16:59:12.000Z
saleor/core/utils/filters.py
EitanRosenzvaig/esmio
5e11b29ccb1724cae6b49ceef7350dcbc986083c
[ "BSD-3-Clause" ]
null
null
null
def get_now_sorted_by(filter_set, default_sort='price'): sort_by = filter_set.form.cleaned_data.get('sort_by') if sort_by: sort_by = sort_by[0].strip('-') else: sort_by = default_sort return sort_by
28.875
57
0.670996
4a00074d81341fb97e1759d35e83ccd46ed2e2f0
4,661
py
Python
app.py
madut97/challenge2
5735ede255b7584bbe450d46ec6d990f4d0f2462
[ "MIT" ]
null
null
null
app.py
madut97/challenge2
5735ede255b7584bbe450d46ec6d990f4d0f2462
[ "MIT" ]
null
null
null
app.py
madut97/challenge2
5735ede255b7584bbe450d46ec6d990f4d0f2462
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Loan Qualifier Application. This is a command line application to match applicants with qualifying loans. Example: $ python app.py """ from re import L import sys import fire import questionary from pathlib import Path from qualifier.utils.fileio import load_csv from q...
33.775362
106
0.700279
4a00075f5c98631242e4675311acb10097d06976
478
py
Python
tests/test_perf_daemon_caller.py
RedisLabsModules/redisbench-admin
d8573d3414e5e846411d2875555deca5c8a7d0f1
[ "Apache-2.0" ]
5
2021-08-03T12:38:30.000Z
2022-03-23T07:35:38.000Z
tests/test_perf_daemon_caller.py
RedisLabsModules/redisbench-admin
d8573d3414e5e846411d2875555deca5c8a7d0f1
[ "Apache-2.0" ]
91
2021-03-17T12:05:35.000Z
2022-03-29T22:20:00.000Z
tests/test_perf_daemon_caller.py
RedisLabsModules/redisbench-admin
d8573d3414e5e846411d2875555deca5c8a7d0f1
[ "Apache-2.0" ]
2
2021-06-07T14:06:58.000Z
2021-07-27T10:37:15.000Z
# BSD 3-Clause License # # Copyright (c) 2021., Redis Labs Modules # All rights reserved. # from time import sleep from redisbench_admin.profilers.perf_daemon_caller import PerfDaemonRemoteCaller def test_perf_daemon_remote_caller(): # remote_perf = PerfDaemonRemoteCaller("localhost:5000") # result = remo...
25.157895
80
0.730126
4a0007d8088d6bb3d8c0899b3492750389b1c6fc
1,422
py
Python
misc/compile_shader.py
xzfn/toy
5d4f6e631c662634a059a4a178174032b01cc81a
[ "MIT" ]
null
null
null
misc/compile_shader.py
xzfn/toy
5d4f6e631c662634a059a4a178174032b01cc81a
[ "MIT" ]
null
null
null
misc/compile_shader.py
xzfn/toy
5d4f6e631c662634a059a4a178174032b01cc81a
[ "MIT" ]
null
null
null
import os import glob import traceback import sys sys.path.insert(0, '../script') import shadercompiler GLSLC_EXECUTABLE = 'glslc' INPUT_FOLDER = '../shader' OUTPUT_FOLDER = '../../toy_generated/shader' def glob_endswith(folder, end): return glob.glob(os.path.join(folder, '*' + end)) def compile_folder(folder,...
29.625
69
0.769339
4a00086b287261d72302f0b9b63a6fa52eaa3281
1,750
py
Python
config/urls.py
ADpDinamo/site
d7313cd6c151a381ccc803b81768673587cb8d45
[ "Apache-2.0" ]
null
null
null
config/urls.py
ADpDinamo/site
d7313cd6c151a381ccc803b81768673587cb8d45
[ "Apache-2.0" ]
8
2021-03-19T10:14:39.000Z
2022-03-12T00:24:41.000Z
config/urls.py
ADpDinamo/site
d7313cd6c151a381ccc803b81768673587cb8d45
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from django.urls import include, path from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views from adpd.users.views import HomePageView, CustomSignupView # from adpd.co...
31.25
85
0.648
4a00096190c5fb40e25d5c53f1acb574343cba9b
143,311
py
Python
zerver/tests/test_signup.py
GrugLife/zulip
853a1938f8607bd48cb6d298cdb5026d7a6602ff
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_signup.py
GrugLife/zulip
853a1938f8607bd48cb6d298cdb5026d7a6602ff
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_signup.py
GrugLife/zulip
853a1938f8607bd48cb6d298cdb5026d7a6602ff
[ "Apache-2.0" ]
1
2019-01-31T16:20:47.000Z
2019-01-31T16:20:47.000Z
# -*- coding: utf-8 -*- import datetime from email.utils import parseaddr import re import django_otp from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site from django.http import HttpResponse, HttpRequest from django.test import TestCa...
45.466688
118
0.63859
4a000aca15bba2d79d6d237224414cb6e0376deb
1,377
py
Python
test/test_limit_greater_than_allowed.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
5
2021-05-17T04:45:03.000Z
2022-03-23T12:51:46.000Z
test/test_limit_greater_than_allowed.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
null
null
null
test/test_limit_greater_than_allowed.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
2
2021-06-02T07:32:26.000Z
2022-02-12T02:36:23.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
35.307692
484
0.764706
4a000b8e52df1eced1b39146dd91133024a39afd
157
py
Python
emmett_mongorest/__init__.py
gi0baro/emmett-mongorest
814658b3d8051ad649f1bc7cffb32354b3b7a97c
[ "BSD-3-Clause" ]
null
null
null
emmett_mongorest/__init__.py
gi0baro/emmett-mongorest
814658b3d8051ad649f1bc7cffb32354b3b7a97c
[ "BSD-3-Clause" ]
3
2020-12-27T12:29:12.000Z
2022-02-27T10:34:33.000Z
emmett_mongorest/__init__.py
gi0baro/emmett-mongorest
814658b3d8051ad649f1bc7cffb32354b3b7a97c
[ "BSD-3-Clause" ]
null
null
null
from .ext import MongoREST from .helpers import MongoQuery from .rest import MongoRESTModule from .parsers import Parser from .serializers import Serializer
26.166667
35
0.840764
4a000c01a81be730834d786cc0da40df3bd50747
1,399
py
Python
scheduler_task/study_apscheduler/examples/executors/simple.py
2581676612/python
b309564a05838b23044bb8112fd4ef71307266b6
[ "MIT" ]
112
2017-09-19T17:38:38.000Z
2020-05-27T18:00:27.000Z
scheduler_task/study_apscheduler/examples/executors/simple.py
tomoncle/Python-notes
ce675486290c3d1c7c2e4890b57e3d0c8a1228cc
[ "MIT" ]
null
null
null
scheduler_task/study_apscheduler/examples/executors/simple.py
tomoncle/Python-notes
ce675486290c3d1c7c2e4890b57e3d0c8a1228cc
[ "MIT" ]
56
2017-09-20T01:24:12.000Z
2020-04-16T06:19:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 17-7-22 上午10:29 # @Author : Tom.Lee # @CopyRight : 2016-2017 # @File : t.py # @Product : PyCharm import datetime from apscheduler.executors.pool import ThreadPoolExecutor, ProcessPoolExecutor from apscheduler.schedulers.b...
22.564516
78
0.639743
4a000c5b4f08feab87791776c26e0626a10f6558
4,125
py
Python
tests/conftest.py
koelemay/dvc
b9b8c46fde7cdf7d9544dd83705d95beb601792a
[ "Apache-2.0" ]
1
2021-06-18T19:36:13.000Z
2021-06-18T19:36:13.000Z
tests/conftest.py
koelemay/dvc
b9b8c46fde7cdf7d9544dd83705d95beb601792a
[ "Apache-2.0" ]
82
2021-05-04T02:40:05.000Z
2022-03-31T03:14:04.000Z
tests/conftest.py
koelemay/dvc
b9b8c46fde7cdf7d9544dd83705d95beb601792a
[ "Apache-2.0" ]
null
null
null
import os from contextlib import suppress import pytest from .dir_helpers import * # noqa, pylint: disable=wildcard-import from .remotes import * # noqa, pylint: disable=wildcard-import # Prevent updater and analytics from running their processes os.environ["DVC_TEST"] = "true" # Ensure progress output even when n...
27.871622
78
0.65503
4a000cbc4b9b26a70f7860191cca4dda71776548
674
py
Python
base.py
kolorowestudio/critic
db3b4909e15835be2009395b1541dea896d249c9
[ "Apache-2.0", "MIT" ]
null
null
null
base.py
kolorowestudio/critic
db3b4909e15835be2009395b1541dea896d249c9
[ "Apache-2.0", "MIT" ]
null
null
null
base.py
kolorowestudio/critic
db3b4909e15835be2009395b1541dea896d249c9
[ "Apache-2.0", "MIT" ]
null
null
null
# -*- mode: python; encoding: utf-8 -*- # # Copyright 2012 Jens Lindström, Opera Software ASA # # 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...
35.473684
80
0.746291
4a000cbfdc4c69bc74ddf59aeaa75dceabc42226
2,228
py
Python
commandopt/__init__.py
jaegerbobomb/commandopt
7009e545bf7c5eb9a842798d07bff1e4075ac507
[ "MIT" ]
null
null
null
commandopt/__init__.py
jaegerbobomb/commandopt
7009e545bf7c5eb9a842798d07bff1e4075ac507
[ "MIT" ]
null
null
null
commandopt/__init__.py
jaegerbobomb/commandopt
7009e545bf7c5eb9a842798d07bff1e4075ac507
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from collections import namedtuple import functools from itertools import chain, combinations from commandopt.exceptions import NoCommandFoundError __version__ = "0.2.0" CommandsOpts = namedtuple("CommandsOpts", ["opts", "f"]) def commandopt(mandopts, opts=None): """Decorator to registe...
30.944444
81
0.64228
4a000e56e2b8d1f669730f67df72d435cc65232f
438
py
Python
machine learning training/ML/overview.py
TrisNol/Fashion-Product-Classification
760c08efe62b925a1205df45a92e91d72144151f
[ "MIT" ]
null
null
null
machine learning training/ML/overview.py
TrisNol/Fashion-Product-Classification
760c08efe62b925a1205df45a92e91d72144151f
[ "MIT" ]
null
null
null
machine learning training/ML/overview.py
TrisNol/Fashion-Product-Classification
760c08efe62b925a1205df45a92e91d72144151f
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt data = pd.read_csv("./assets/styles.csv", error_bad_lines=False) # multiple lines with errors # print(data.head) # for column in data.columns: # print("Unique Values for " + column) # print(data[column].unique()) names = data['gender'].unique() values = da...
23.052632
93
0.712329
4a000ebc913fbd48a189b89133cf64ed7392db8a
2,090
py
Python
examples/adspygoogle/dfp/v201311/creative_service/get_creatives_by_statement.py
cherry-wb/googleads-python-lib
24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04
[ "Apache-2.0" ]
null
null
null
examples/adspygoogle/dfp/v201311/creative_service/get_creatives_by_statement.py
cherry-wb/googleads-python-lib
24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04
[ "Apache-2.0" ]
null
null
null
examples/adspygoogle/dfp/v201311/creative_service/get_creatives_by_statement.py
cherry-wb/googleads-python-lib
24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04
[ "Apache-2.0" ]
2
2020-04-02T19:00:31.000Z
2020-08-06T03:28:38.000Z
#!/usr/bin/python # # Copyright 2013 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 b...
32.65625
80
0.697608
4a0010515b643a40d9d4a54ad452f6972c3174db
3,056
py
Python
experiments/evaluation/utils.py
malteos/aspect-document-embeddings
0836ea54a9192dbc2b01bb212c7521668bb398af
[ "MIT" ]
2
2022-03-21T18:31:57.000Z
2022-03-21T23:45:33.000Z
experiments/evaluation/utils.py
malteos/aspect-document-embeddings
0836ea54a9192dbc2b01bb212c7521668bb398af
[ "MIT" ]
null
null
null
experiments/evaluation/utils.py
malteos/aspect-document-embeddings
0836ea54a9192dbc2b01bb212c7521668bb398af
[ "MIT" ]
null
null
null
from typing import List, Union, Set import numpy as np import pandas as pd def get_reciprocal_rank(retrieved_docs: List, relevant_docs: Union[Set, List]) -> float: """ The mean reciprocal rank is a statistic measure for evaluating any process that produces a list of possible responses to a sample of queri...
33.955556
122
0.690772
4a00114dcd688db575b5a5e1e0ff253053363e71
807
py
Python
test/test_cms_page_list_response.py
kinow-io/kaemo-python-sdk
610fce09e3a9e631babf09195b0492959d9e4d56
[ "Apache-2.0" ]
1
2017-05-03T12:48:22.000Z
2017-05-03T12:48:22.000Z
test/test_cms_page_list_response.py
kinow-io/kaemo-python-sdk
610fce09e3a9e631babf09195b0492959d9e4d56
[ "Apache-2.0" ]
null
null
null
test/test_cms_page_list_response.py
kinow-io/kaemo-python-sdk
610fce09e3a9e631babf09195b0492959d9e4d56
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Server API Reference for Server API (REST/Json) OpenAPI spec version: 2.0.9 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys import unittest import kinow_client from kinow_client.rest import A...
18.767442
80
0.70632
4a00117891cc05f94a9614802e3254fd8533a408
609
py
Python
src/Two Sum.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
src/Two Sum.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
src/Two Sum.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
class Solution: # @return a tuple, (index1, index2) def twoSum(self, num, target): num = list(enumerate(num)) num.sort(cmp=Solution.compare) h = 0 t = len(num) - 1 while h < t: s = num[h][1] + num[t][1] if s < target: ...
26.478261
50
0.380952
4a00118d039032ced6f3cf3b2fb6745722d6d66d
1,656
py
Python
wandb_hparams_search.py
yiftachn/Survival-Analysis
2fbdaa8bd2c52a54b10143929f35539492fb76a8
[ "MIT" ]
null
null
null
wandb_hparams_search.py
yiftachn/Survival-Analysis
2fbdaa8bd2c52a54b10143929f35539492fb76a8
[ "MIT" ]
null
null
null
wandb_hparams_search.py
yiftachn/Survival-Analysis
2fbdaa8bd2c52a54b10143929f35539492fb76a8
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.model_selection import cross_val_score from sksurv.ensemble import RandomSurvivalForest from sksurv.linear_model import CoxnetSurvivalAnalysis, CoxPHSurvivalAnalysis from sksurv.metrics import as_integrated_brier_score_scorer import wandb from config import SEED from etl.data_loading i...
26.709677
105
0.740338
4a001197cb37e9e63c3fa340572647dc6cd8aa53
2,381
py
Python
app/config/settings/test.py
nickmoreton/nhsx-website
2397d1308376c02b75323d30e6bc916af0daac9d
[ "MIT" ]
null
null
null
app/config/settings/test.py
nickmoreton/nhsx-website
2397d1308376c02b75323d30e6bc916af0daac9d
[ "MIT" ]
null
null
null
app/config/settings/test.py
nickmoreton/nhsx-website
2397d1308376c02b75323d30e6bc916af0daac9d
[ "MIT" ]
null
null
null
import os import logging from .base import * # NOQA DEBUG = True BASE_URL = "http://0.0.0.0:5000" COLLECTFAST_ENABLED = False CACHEOPS_ENABLED = False WAGTAIL_CACHE = False ASSETS_DEBUG = True ASSETS_AUTO_BUILD = True STATIC_URL = "/static/" MEDIA_URL = "/media/" ALLOWED_HOSTS = ["*"] # Use in-memory SQLite for...
28.686747
82
0.677446
4a0011b02d01378a106da414abc422864e3efcfa
2,731
py
Python
internal/twirptest/no_package_name/no_package_name_pb2_twirp.py
thinkdata-works/twirp
28b19adf69788dbb62094d19c1b06d7284683988
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
internal/twirptest/no_package_name/no_package_name_pb2_twirp.py
thinkdata-works/twirp
28b19adf69788dbb62094d19c1b06d7284683988
[ "ECL-2.0", "Apache-2.0" ]
5
2019-10-01T15:19:32.000Z
2020-05-28T14:48:55.000Z
internal/twirptest/no_package_name/no_package_name_pb2_twirp.py
thinkdata-works/twirp
28b19adf69788dbb62094d19c1b06d7284683988
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Code generated by protoc-gen-twirp_python v5.8.0, DO NOT EDIT. # source: no_package_name.proto try: import httplib from urllib2 import Request, HTTPError, urlopen except ImportError: import http.client as httplib from urllib.request import Request, urlopen from urllib.error import HTTPError impor...
31.755814
79
0.616258
4a0012392366395230a2d062191612812326d123
464
py
Python
_examples/fontbutton.py
airon90/python-gtk3-tutorial
db3940bef1834756c309f1bcb2f8e2bb9731763b
[ "CC0-1.0" ]
11
2020-02-22T04:14:06.000Z
2022-02-27T12:21:39.000Z
_examples/fontbutton.py
airon90/python-gtk3-tutorial
db3940bef1834756c309f1bcb2f8e2bb9731763b
[ "CC0-1.0" ]
null
null
null
_examples/fontbutton.py
airon90/python-gtk3-tutorial
db3940bef1834756c309f1bcb2f8e2bb9731763b
[ "CC0-1.0" ]
4
2019-08-19T22:55:38.000Z
2021-06-20T03:31:18.000Z
#!/usr/bin/env python3 import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk def font_changed(fontbutton): print("Font selected: %s" % fontbutton.get_font_name()) window = Gtk.Window() window.set_title("FontButton") window.set_default_size(150, -1) window.connect("destroy", Gtk.main_quit) fon...
21.090909
59
0.752155
4a00126fd7dd6cb7295c083a6ebbddc5f977826a
1,249
py
Python
open_alchemy/facades/models.py
MihailMiller/OpenAlchemy
55b751c58ca50706ebc46262f50addb7dec34278
[ "Apache-2.0" ]
40
2019-11-05T06:50:35.000Z
2022-03-09T01:34:57.000Z
open_alchemy/facades/models.py
MihailMiller/OpenAlchemy
55b751c58ca50706ebc46262f50addb7dec34278
[ "Apache-2.0" ]
178
2019-11-03T04:10:38.000Z
2022-03-31T00:07:17.000Z
open_alchemy/facades/models.py
MihailMiller/OpenAlchemy
55b751c58ca50706ebc46262f50addb7dec34278
[ "Apache-2.0" ]
17
2019-11-04T07:22:46.000Z
2022-03-23T05:29:49.000Z
"""Functions for interacting with the OpenAlchemy models.""" import typing import open_alchemy from open_alchemy import types def get_base() -> typing.Any: """ Get the models.Base used as the declarative base for models. Returns: The models.Base. """ # pylint: disable=no-member ret...
20.145161
68
0.630104
4a001305b29600b4772418a66d3c675dd8e381d7
8,426
py
Python
Lib/test/test_kqueue.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
1
2018-06-21T18:21:24.000Z
2018-06-21T18:21:24.000Z
Lib/test/test_kqueue.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
Lib/test/test_kqueue.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
""" Tests dla kqueue wrapper. """ zaimportuj errno zaimportuj os zaimportuj select zaimportuj socket zaimportuj sys zaimportuj time zaimportuj unittest jeżeli nie hasattr(select, "kqueue"): podnieś unittest.SkipTest("test works only on BSD") klasa TestKQueue(unittest.TestCase): def test_create_queue(self): ...
34.962656
96
0.589841
4a00139672c5b37b9abb155af6fb478fcf19803b
7,488
py
Python
src/workflow/background.py
xilopaint/alfred-urban-dictionary
5d1f797583e524c404d570aebd9c10ec66e9c1d6
[ "MIT" ]
53
2018-08-29T08:42:18.000Z
2022-02-24T00:33:59.000Z
src/workflow/background.py
xilopaint/alfred-urban-dictionary
5d1f797583e524c404d570aebd9c10ec66e9c1d6
[ "MIT" ]
6
2018-08-28T22:49:54.000Z
2021-11-21T16:02:40.000Z
src/workflow/background.py
xilopaint/alfred-urban-dictionary
5d1f797583e524c404d570aebd9c10ec66e9c1d6
[ "MIT" ]
5
2018-08-28T22:46:27.000Z
2021-11-10T14:54:38.000Z
#!/usr/bin/env python3 """This module provides an API to run commands in background processes. Combine with the :ref:`caching API <caching-data>` to work from cached data while you fetch fresh data in the background. See :ref:`the User Manual <background-processes>` for more information and examples. """ import os ...
26.181818
80
0.61445
4a00161d13b774508d1d13a4433a7c820c3d923e
7,405
py
Python
code/Tiramisu_calibration.py
uncbiag/LTS
1b0d45f9aac9454a12d75e8308f2a2ad07275438
[ "Apache-2.0" ]
14
2021-09-29T06:03:05.000Z
2022-03-29T14:36:10.000Z
code/Tiramisu_calibration.py
uncbiag/LTS
1b0d45f9aac9454a12d75e8308f2a2ad07275438
[ "Apache-2.0" ]
null
null
null
code/Tiramisu_calibration.py
uncbiag/LTS
1b0d45f9aac9454a12d75e8308f2a2ad07275438
[ "Apache-2.0" ]
5
2021-08-17T03:15:04.000Z
2022-03-18T08:47:01.000Z
import torch import torchvision from PIL import Image from torchvision import transforms import numpy as np import glob from Tiramisu_calibration_Dataset import * from torch.utils.data import DataLoader from calibration_models import * from torch import nn, optim import os from tensorboardX import SummaryWriter import ...
48.084416
145
0.635922
4a00171038b545b9f576921aa2f541d2968e72e9
1,975
py
Python
server/website/script/controller_simulator/upload_data.py
newopscn/ottertune
1d57ad99019b669dfbfd099bae031037c66e822d
[ "Apache-2.0" ]
null
null
null
server/website/script/controller_simulator/upload_data.py
newopscn/ottertune
1d57ad99019b669dfbfd099bae031037c66e822d
[ "Apache-2.0" ]
null
null
null
server/website/script/controller_simulator/upload_data.py
newopscn/ottertune
1d57ad99019b669dfbfd099bae031037c66e822d
[ "Apache-2.0" ]
null
null
null
# # OtterTune - upload_data.py # # Copyright (c) 2017-18, Carnegie Mellon University Database Group # ''' Created on Nov 30, 2017 @author: dvanaken ''' import argparse import glob import logging import os import urllib2 from poster.encode import multipart_encode from poster.streaminghttp import register_openers reg...
30.384615
90
0.619747
4a0017624bb82332fb59429c6d12fe1d3b639185
1,172
py
Python
maskrcnn_benchmark/solver/build.py
sadicLiu/mask_rcnn_code
a8878f81f6bbfa63b5a4b7ca2bfb80673e4febfd
[ "MIT" ]
1
2019-03-27T07:58:58.000Z
2019-03-27T07:58:58.000Z
maskrcnn_benchmark/solver/build.py
sadicLiu/mask_rcnn_code
a8878f81f6bbfa63b5a4b7ca2bfb80673e4febfd
[ "MIT" ]
1
2019-03-20T08:46:45.000Z
2019-03-20T13:43:47.000Z
maskrcnn_benchmark/solver/build.py
sadicLiu/mask_rcnn_code
a8878f81f6bbfa63b5a4b7ca2bfb80673e4febfd
[ "MIT" ]
null
null
null
import torch from .lr_scheduler import WarmupMultiStepLR def make_optimizer(cfg, model): params = [] for key, value in model.named_parameters(): if not value.requires_grad: # pre-trained model参数不更新 continue lr = cfg.SOLVER.BASE_LR # 0.0025 weight_decay = cfg....
32.555556
91
0.653584
4a00177db6e5eeadd9043c16463ad28fc3dedb2f
16,856
py
Python
anchore_engine/services/policy_engine/engine/feeds/client.py
signed8bit/anchore-engine
ef8a2d2155f7c053179ff890826eae3fc5ae0ab8
[ "Apache-2.0" ]
null
null
null
anchore_engine/services/policy_engine/engine/feeds/client.py
signed8bit/anchore-engine
ef8a2d2155f7c053179ff890826eae3fc5ae0ab8
[ "Apache-2.0" ]
null
null
null
anchore_engine/services/policy_engine/engine/feeds/client.py
signed8bit/anchore-engine
ef8a2d2155f7c053179ff890826eae3fc5ae0ab8
[ "Apache-2.0" ]
null
null
null
import abc import copy import requests import requests.exceptions import json import datetime import typing from io import BytesIO import ijson from anchore_engine.configuration import localconfig from anchore_engine.subsys import logger from anchore_engine.utils import ensure_str, ensure_bytes, AnchoreException fro...
33.246548
254
0.531324
4a00177fd1c6af5806d144d3ab0399564e71b96c
4,039
py
Python
tests/data/test_waveform_generator.py
AndreFCruz/scikit-multiflow
c4dbbb70d4ed839d95a18ca799f073ac9ff9ba49
[ "BSD-3-Clause" ]
null
null
null
tests/data/test_waveform_generator.py
AndreFCruz/scikit-multiflow
c4dbbb70d4ed839d95a18ca799f073ac9ff9ba49
[ "BSD-3-Clause" ]
null
null
null
tests/data/test_waveform_generator.py
AndreFCruz/scikit-multiflow
c4dbbb70d4ed839d95a18ca799f073ac9ff9ba49
[ "BSD-3-Clause" ]
null
null
null
import os import numpy as np from skmultiflow.data.waveform_generator import WaveformGenerator def test_waveform_generator(test_path): stream = WaveformGenerator(random_state=23, has_noise=False) stream.prepare_for_use() assert stream.n_remaining_samples() == -1 expected_names = ['att_num_0', 'att_n...
33.380165
93
0.644466
4a001925b0775f2a56cc554989ce6ac20c150c79
1,148
py
Python
cloudcafe/compute/extensions/volumes_boot_api/composites.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
cloudcafe/compute/extensions/volumes_boot_api/composites.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
cloudcafe/compute/extensions/volumes_boot_api/composites.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
1
2020-04-13T17:44:28.000Z
2020-04-13T17:44:28.000Z
""" Copyright 2014 Rackspace 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 dist...
35.875
72
0.787456
4a0019a30889f3f8050876acafa5dc9a6d3631ed
10,928
py
Python
pybind/slxos/v16r_1_00b/interface/ethernet/interface_eth_isis_conf/intf_isis/interface_isis/interface_metric/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/interface/ethernet/interface_eth_isis_conf/intf_isis/interface_isis/interface_metric/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/interface/ethernet/interface_eth_isis_conf/intf_isis/interface_isis/interface_metric/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
67.042945
646
0.721083
4a001a3479facf98b14b33047bd675f1a288c417
6,034
py
Python
paasta_tools/oom_logger.py
sofyat/paasta
6765ed992ec224bf78741ffcd615a6a6c6ffb780
[ "Apache-2.0" ]
null
null
null
paasta_tools/oom_logger.py
sofyat/paasta
6765ed992ec224bf78741ffcd615a6a6c6ffb780
[ "Apache-2.0" ]
null
null
null
paasta_tools/oom_logger.py
sofyat/paasta
6765ed992ec224bf78741ffcd615a6a6c6ffb780
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2015-2017 Yelp Inc. # # 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 ...
29.724138
100
0.62761