hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
862c2efd9a8f7a17c0e7bbb926525ab0c9c4190e
2,377
py
Python
trackintel/model/places.py
schalaur/trackintel
4235bccd242e703a609356f9213bb3fe6d5def6e
[ "MIT" ]
null
null
null
trackintel/model/places.py
schalaur/trackintel
4235bccd242e703a609356f9213bb3fe6d5def6e
[ "MIT" ]
null
null
null
trackintel/model/places.py
schalaur/trackintel
4235bccd242e703a609356f9213bb3fe6d5def6e
[ "MIT" ]
null
null
null
import pandas as pd import trackintel as ti import trackintel.visualization.staypoints import trackintel.visualization.places @pd.api.extensions.register_dataframe_accessor("as_places") class PlacesAccessor(object): """A pandas accessor to treat (Geo)DataFrames as collections of places. This will define cert...
40.288136
100
0.66849
af3f26dc87d27a9079110ba130c13b81f2961d10
6,706
py
Python
buche/buche.py
breuleux/pybuche
3879ba2ef0467308dac850249930d72c76f8d18c
[ "MIT" ]
null
null
null
buche/buche.py
breuleux/pybuche
3879ba2ef0467308dac850249930d72c76f8d18c
[ "MIT" ]
null
null
null
buche/buche.py
breuleux/pybuche
3879ba2ef0467308dac850249930d72c76f8d18c
[ "MIT" ]
null
null
null
import asyncio import json import re from threading import Thread from uuid import uuid4 as uuid from hrepr import Tag from .event import EventDispatcher from .repr import id_registry class Encoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, Tag): return str(obj) els...
28.176471
74
0.548166
fc7bc5e68dd76802ba780e0543f4c8699da9a50b
1,294
py
Python
tests/repl/conftest.py
ameyuuno/bfpy
5b9043ee40991e01d7db713ffd7c224656509f80
[ "MIT" ]
null
null
null
tests/repl/conftest.py
ameyuuno/bfpy
5b9043ee40991e01d7db713ffd7c224656509f80
[ "MIT" ]
null
null
null
tests/repl/conftest.py
ameyuuno/bfpy
5b9043ee40991e01d7db713ffd7c224656509f80
[ "MIT" ]
null
null
null
import io import typing as t import pytest from _pytest.fixtures import SubRequest from bfpy.core.il.translator import TranslatorImpl from bfpy.core.interpreter.interpreter import InterpreterImpl from bfpy.core.interpreter.tape import FiniteTape from bfpy.core.lexer.lexer import LexerImpl from bfpy.core.machine.machi...
24.884615
67
0.727975
e91576847744449d61fae361d1426e6a1c6c8420
5,681
py
Python
feasible_joint_stiffness/feasible_joint_stiffness.py
mitkof6/musculoskeletal-stiffness
150a43a3d748bb0b630e77cde19ab65df5fb089c
[ "CC-BY-4.0" ]
4
2019-01-24T08:10:20.000Z
2021-04-04T18:55:02.000Z
feasible_joint_stiffness/feasible_joint_stiffness.py
mitkof6/musculoskeletal-stiffness
150a43a3d748bb0b630e77cde19ab65df5fb089c
[ "CC-BY-4.0" ]
null
null
null
feasible_joint_stiffness/feasible_joint_stiffness.py
mitkof6/musculoskeletal-stiffness
150a43a3d748bb0b630e77cde19ab65df5fb089c
[ "CC-BY-4.0" ]
null
null
null
import os import pickle import opensim import numpy as np import sympy as sp import matplotlib.pyplot as plt from tqdm import tqdm from util import readMotionFile, to_np_mat, to_np_array plt.rcParams['font.size'] = 13 ############################################################################### # calculations def ...
36.416667
84
0.610632
5d64f9ae488b97cd0cc33696a581ef63a31b5cc1
491
py
Python
pyopenproject/model/post.py
webu/pyopenproject
40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966
[ "MIT" ]
5
2021-02-25T15:54:28.000Z
2021-04-22T15:43:36.000Z
pyopenproject/model/post.py
webu/pyopenproject
40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966
[ "MIT" ]
7
2021-03-15T16:26:23.000Z
2022-03-16T13:45:18.000Z
pyopenproject/model/post.py
webu/pyopenproject
40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966
[ "MIT" ]
6
2021-06-18T18:59:11.000Z
2022-03-27T04:58:52.000Z
import json class Post: """ Class Post, represents a post in a board. Posts are also referred to as messages in the application """ def __init__(self, json_obj): """Constructor for class Post :param json_obj: The dict with the object data """ self.__dict__ = json_o...
21.347826
91
0.592668
a86f8ddf7996a377c7812f3f406e6649d5bcd0d8
22,401
py
Python
tools/convert_pkl_to_pb.py
earthling2304/Clustered-Object-Detection-in-Aerial-Image
492531564881ef6848a4e4111881058e78a02953
[ "Apache-2.0" ]
null
null
null
tools/convert_pkl_to_pb.py
earthling2304/Clustered-Object-Detection-in-Aerial-Image
492531564881ef6848a4e4111881058e78a02953
[ "Apache-2.0" ]
null
null
null
tools/convert_pkl_to_pb.py
earthling2304/Clustered-Object-Detection-in-Aerial-Image
492531564881ef6848a4e4111881058e78a02953
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2017-present, Facebook, 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 a...
32.894273
114
0.654658
06b21c7fb753aa72a837b1341697d02a89f690e4
773
py
Python
Adelphi Academic Calendar/skill/skill_env/Scripts/rst2html4.py
EnriqueGambra/Amazon-Alexa-Skill
198ed51bef555eee006041fef0bcbf5c955142d5
[ "MIT" ]
null
null
null
Adelphi Academic Calendar/skill/skill_env/Scripts/rst2html4.py
EnriqueGambra/Amazon-Alexa-Skill
198ed51bef555eee006041fef0bcbf5c955142d5
[ "MIT" ]
null
null
null
Adelphi Academic Calendar/skill/skill_env/Scripts/rst2html4.py
EnriqueGambra/Amazon-Alexa-Skill
198ed51bef555eee006041fef0bcbf5c955142d5
[ "MIT" ]
1
2019-10-11T17:15:20.000Z
2019-10-11T17:15:20.000Z
#!c:\users\owner\github~1\amazon~1\adelph~1\skill\skill_~1\scripts\python.exe # $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing (X)HTML. The out...
28.62963
78
0.745149
44a1f20627f31d0087a7802110ae3f0dfee21115
771
py
Python
lead/jobs/Job.py
derwebcoder/lead
f7db84e5c0465a9e2b4703215215b6f5f2712865
[ "Apache-2.0" ]
4
2017-05-12T11:28:35.000Z
2021-02-26T11:14:18.000Z
lead/jobs/Job.py
derwebcoder/lead
f7db84e5c0465a9e2b4703215215b6f5f2712865
[ "Apache-2.0" ]
1
2017-05-12T21:37:53.000Z
2017-05-16T20:51:08.000Z
lead/jobs/Job.py
derwebcoder/lead
f7db84e5c0465a9e2b4703215215b6f5f2712865
[ "Apache-2.0" ]
null
null
null
from lead.pipeline.Pipeline import Pipeline class Job: def __init__(self, name, function, description="<no description>", **kwargs): if name is not None: if ' ' in name: raise ValueError("A job can not contain a space: \"" + name + "\"") if not callable(function): ...
27.535714
87
0.595331
7378bdba964202c64f679e217acda95f419d0d0b
10,738
py
Python
qa/rpc-tests/maxuploadtarget.py
merge-swap/fxrate-wallet
39002210eca892a253a967ef1a01c9448d6ade30
[ "MIT" ]
null
null
null
qa/rpc-tests/maxuploadtarget.py
merge-swap/fxrate-wallet
39002210eca892a253a967ef1a01c9448d6ade30
[ "MIT" ]
1
2018-07-17T19:20:24.000Z
2018-07-17T19:20:24.000Z
qa/rpc-tests/maxuploadtarget.py
merge-swap/fxrate-wallet
39002210eca892a253a967ef1a01c9448d6ade30
[ "MIT" ]
2
2018-08-15T14:35:18.000Z
2019-01-25T13:14:42.000Z
#!/usr/bin/env python2 # # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * import time '''...
40.368421
140
0.654871
0a59a59825077a7969ca61c66e18919d1b1e0659
30,215
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/operations/_availability_sets_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/operations/_availability_sets_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/operations/_availability_sets_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 ...
40.941734
204
0.670627
1c7c1a8be479c974feb02744f8b3434fbc8064b3
4,932
py
Python
rllib/tests/test_placement_groups.py
clarng/ray
19672688b0cc73c77338a11c8c3274153547d5f3
[ "Apache-2.0" ]
1
2022-03-14T04:24:17.000Z
2022-03-14T04:24:17.000Z
rllib/tests/test_placement_groups.py
clarng/ray
19672688b0cc73c77338a11c8c3274153547d5f3
[ "Apache-2.0" ]
25
2022-01-29T23:46:07.000Z
2022-03-19T07:12:52.000Z
rllib/tests/test_placement_groups.py
clarng/ray
19672688b0cc73c77338a11c8c3274153547d5f3
[ "Apache-2.0" ]
null
null
null
import os import unittest import ray from ray import tune from ray.tune import Callback from ray.rllib.agents.pg import PGTrainer, DEFAULT_CONFIG from ray.tune.ray_trial_executor import RayTrialExecutor from ray.tune.trial import Trial from ray.tune.utils.placement_groups import PlacementGroupFactory from ray.util imp...
34.25
88
0.608678
27707e4e502ce33c1aa042ed063d3e5817b7f30b
8,233
py
Python
py2-ectoken/ectoken3.py
mauricioabreu/ectoken
23cb521a9cc18914d30dac54e2aefeccbb02e3a9
[ "Apache-2.0" ]
1
2020-07-12T23:22:36.000Z
2020-07-12T23:22:36.000Z
py2-ectoken/ectoken3.py
baby636/ectoken
23cb521a9cc18914d30dac54e2aefeccbb02e3a9
[ "Apache-2.0" ]
null
null
null
py2-ectoken/ectoken3.py
baby636/ectoken
23cb521a9cc18914d30dac54e2aefeccbb02e3a9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # /** # * Copyright (C) 2016 Verizon. 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 #...
38.293023
127
0.476861
57a8aae521ea949cd73f4ed31b579914c754e12c
565
py
Python
tests/test_pf_subsampling.py
rtmigo/vtcff_py
e26a5e55ea455b10995932dccd319c1f7fc28385
[ "MIT" ]
null
null
null
tests/test_pf_subsampling.py
rtmigo/vtcff_py
e26a5e55ea455b10995932dccd319c1f7fc28385
[ "MIT" ]
null
null
null
tests/test_pf_subsampling.py
rtmigo/vtcff_py
e26a5e55ea455b10995932dccd319c1f7fc28385
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: (c) 2021 Artёm IG <github.com/rtmigo> # SPDX-License-Identifier: MIT import unittest from vtcff._pf_15_pixfmt_subsampling import pixfmt_subsampling class TestGuessSubsampling(unittest.TestCase): def test(self): self.assertEqual(pixfmt_subsampling('yuva444p12be'), '444') ...
37.666667
67
0.741593
94122b816512339dfdd17657622f3f92b9170716
322
py
Python
Swapping of two numbers by functions using third variable.py
Ratheshprabakar/Python-Programs
fca9d4f0b5f5f5693b3d7e25c6d890f4973dc19e
[ "MIT" ]
2
2019-07-10T06:32:05.000Z
2019-11-13T07:52:53.000Z
Swapping of two numbers by functions using third variable.py
Ratheshprabakar/Python-Programs
fca9d4f0b5f5f5693b3d7e25c6d890f4973dc19e
[ "MIT" ]
null
null
null
Swapping of two numbers by functions using third variable.py
Ratheshprabakar/Python-Programs
fca9d4f0b5f5f5693b3d7e25c6d890f4973dc19e
[ "MIT" ]
1
2019-10-12T06:56:13.000Z
2019-10-12T06:56:13.000Z
#swapping of two numbers a=int(input("Enter the number for a")) b=int(input("Enter the number for b")) def before_swap(a,b): print("The value of a and b before swapping",a,b) def after_swap(a,b): c=a a=b b=c print("The value of a and b after swapping",a,b) before_swap(a,b) after_swap(a,b)...
24.769231
54
0.642857
422b7246154bf06c143ba376543c20be59c0012e
205
py
Python
len_change.py
tomohiro-iwa/WSeq2Seq
d2e1eacdd737458c801db3ad89bd1e78f81b00a5
[ "MIT" ]
null
null
null
len_change.py
tomohiro-iwa/WSeq2Seq
d2e1eacdd737458c801db3ad89bd1e78f81b00a5
[ "MIT" ]
1
2019-01-23T08:33:35.000Z
2019-01-23T08:33:35.000Z
len_change.py
tomohiro-iwa/WSeq2Seq
d2e1eacdd737458c801db3ad89bd1e78f81b00a5
[ "MIT" ]
null
null
null
import sys f = open(sys.argv[1]) num = int(sys.argv[2]) out = open("data/diff2.valid.txt","w") for line in f: line = line.replace("\n","") words = line.split(" ") out.write(" ".join(words[:num])+"\n")
20.5
38
0.595122
73219514d4b9ff62876b9f01f549386bc903ffcd
100,126
py
Python
atlassian/confluence.py
Caramba77/atlassian-python-api
fcf233433fe64d3c5da15b5b1b58ed7a1c017277
[ "Apache-2.0" ]
null
null
null
atlassian/confluence.py
Caramba77/atlassian-python-api
fcf233433fe64d3c5da15b5b1b58ed7a1c017277
[ "Apache-2.0" ]
null
null
null
atlassian/confluence.py
Caramba77/atlassian-python-api
fcf233433fe64d3c5da15b5b1b58ed7a1c017277
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import logging import os import time import json from requests import HTTPError from deprecated import deprecated from atlassian import utils from .errors import ( ApiError, ApiNotFoundError, ApiPermissionError, ApiValueError, ApiConflictError, ) from .rest_client import AtlassianRes...
36.865243
119
0.567645
c79a1e0848693582a73f280ade38b8929a1335b4
1,422
py
Python
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20200701/ListRolesRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20200701/ListRolesRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20200701/ListRolesRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.421053
74
0.767229
8cd70437f084e77c56d69ebaa0e65ec9a8b05ae9
4,497
py
Python
calico/felix/test/stub_ipsets.py
fasaxc/felix
b5d58c0e9bad5fd3bfa81fc6ff5633dd40265622
[ "Apache-2.0" ]
null
null
null
calico/felix/test/stub_ipsets.py
fasaxc/felix
b5d58c0e9bad5fd3bfa81fc6ff5633dd40265622
[ "Apache-2.0" ]
null
null
null
calico/felix/test/stub_ipsets.py
fasaxc/felix
b5d58c0e9bad5fd3bfa81fc6ff5633dd40265622
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014 Metaswitch Networks # # 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 applicab...
30.80137
80
0.60974
4de451686a224556a51c6f1c9e5f4f5c47f6fb2e
1,105
py
Python
arkiv-downloader/tests/conftest.py
arkivverket/mottak
241dc86b6a012f5ac07dd5242d97df3fadfb69d0
[ "Apache-2.0" ]
4
2021-03-05T15:39:24.000Z
2021-09-15T06:11:45.000Z
arkiv-downloader/tests/conftest.py
arkivverket/mottak
241dc86b6a012f5ac07dd5242d97df3fadfb69d0
[ "Apache-2.0" ]
631
2020-04-27T10:39:18.000Z
2022-03-31T14:51:38.000Z
arkiv-downloader/tests/conftest.py
arkivverket/mottak
241dc86b6a012f5ac07dd5242d97df3fadfb69d0
[ "Apache-2.0" ]
3
2020-02-20T15:48:03.000Z
2021-12-16T22:50:40.000Z
from uuid import UUID import pytest from arkiv_downloader.models.dto import ArkivkopiRequest, ArkivkopiStatus @pytest.fixture def teststr_json_string() -> str: return '{"arkivkopi_id": 1, ' \ '"storage_account": "storage_account_test", "container": "container_test", "sas_token": ' \ '"se=2...
32.5
102
0.704072
8bb44e47a456e00ce090ca2b654f17ae2fc51f5d
2,190
py
Python
laceworksdk/exceptions.py
kiddinn/python-sdk
23a33313f97337fddea155bcb19c8d5270fc8013
[ "MIT" ]
10
2021-03-20T18:12:16.000Z
2022-02-14T21:33:23.000Z
laceworksdk/exceptions.py
kiddinn/python-sdk
23a33313f97337fddea155bcb19c8d5270fc8013
[ "MIT" ]
10
2021-02-22T23:31:32.000Z
2022-03-25T14:11:27.000Z
laceworksdk/exceptions.py
kiddinn/python-sdk
23a33313f97337fddea155bcb19c8d5270fc8013
[ "MIT" ]
7
2021-06-18T18:17:12.000Z
2022-03-25T13:52:14.000Z
# -*- coding: utf-8 -*- """ Package exceptions. """ import logging import requests logger = logging.getLogger(__name__) class laceworksdkException(Exception): """ Base class for all lacework package exceptions. """ pass class ApiError(laceworksdkException): """ Errors returned in response...
30
79
0.59589
c21fe1ec0f73322f27a0e7c1b9b76c3954b075ae
2,197
py
Python
app_reservas/models/tipoRecursoAli.py
fedegallar/reservas
75fc06b9dedf53eca76b61ea0ccc914d5e084b2d
[ "MIT" ]
1
2018-11-10T14:57:54.000Z
2018-11-10T14:57:54.000Z
app_reservas/models/tipoRecursoAli.py
fedegallar/reservas
75fc06b9dedf53eca76b61ea0ccc914d5e084b2d
[ "MIT" ]
6
2020-06-05T17:11:56.000Z
2021-09-07T23:38:00.000Z
app_reservas/models/tipoRecursoAli.py
fedegallar/reservas
75fc06b9dedf53eca76b61ea0ccc914d5e084b2d
[ "MIT" ]
1
2019-04-16T20:00:05.000Z
2019-04-16T20:00:05.000Z
# coding=utf-8 from django.db import models class TipoRecursoAli(models.Model): # Atributos nombre = models.CharField( max_length=50, verbose_name='Nombre', help_text='Nombre del tipo de recurso, en singular.', ) nombre_plural = models.CharField( max_length=50, ...
36.016393
98
0.611743
c517ae05027df2ee597c8bdf09e7d902f3a47bff
2,342
py
Python
hkm/printmotor_client.py
andersinno/kuvaselaamo
aed553a0ba85e82055e0de025ba2d3e3e4f2c9e6
[ "MIT" ]
1
2017-05-07T10:46:24.000Z
2017-05-07T10:46:24.000Z
hkm/printmotor_client.py
City-of-Helsinki/kuvaselaamo
3fa9b69e3f5496620852d8b138129d0069339fcd
[ "MIT" ]
60
2016-10-18T11:18:48.000Z
2022-02-13T20:04:18.000Z
hkm/printmotor_client.py
andersinno/kuvaselaamo
aed553a0ba85e82055e0de025ba2d3e3e4f2c9e6
[ "MIT" ]
9
2017-04-18T13:26:26.000Z
2020-02-13T20:05:13.000Z
import logging import requests from django.conf import settings from requests.auth import HTTPBasicAuth LOG = logging.getLogger(__name__) class PrintmotorClient(object): API_ENDPOINT = settings.HKM_PRINTMOTOR_API_ENDPOINT USERNAME = settings.HKM_PRINTMOTOR_USERNAME PASSWORD = settings.HKM_PRINTMOTOR_PA...
31.648649
108
0.54526
43815bf85a8e0b769c0b56e894a919aa35d6e1c9
3,427
py
Python
main.py
ani2404/ee6761cloud
a48c738394b1fd82594462dc00c6d618f0035e26
[ "MIT" ]
null
null
null
main.py
ani2404/ee6761cloud
a48c738394b1fd82594462dc00c6d618f0035e26
[ "MIT" ]
null
null
null
main.py
ani2404/ee6761cloud
a48c738394b1fd82594462dc00c6d618f0035e26
[ "MIT" ]
null
null
null
import os import sys import argparse import scipy.misc import numpy as np from model import Model import tensorflow as tf flags = tf.app.flags flags.DEFINE_string("ps_hosts","","PS hosts") flags.DEFINE_string("worker_hosts","","Worker hosts") flags.DEFINE_string("job_name","","PS/Worker") flags.DEFINE_integer("task...
37.25
127
0.689524
d47d4950a3707bbeddcbae7d1b24d4264f5353df
22,487
py
Python
venv/lib/python3.7/site-packages/twilio/rest/proxy/v1/service/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
1,362
2015-01-04T10:25:18.000Z
2022-03-24T10:07:08.000Z
venv/lib/python3.7/site-packages/twilio/rest/proxy/v1/service/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
299
2015-01-30T09:52:39.000Z
2022-03-31T23:03:02.000Z
venv/lib/python3.7/site-packages/twilio/rest/proxy/v1/service/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
622
2015-01-03T04:43:09.000Z
2022-03-29T14:11:00.000Z
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base...
36.803601
148
0.650687
bb34233e39814da32de87edaa25e6edffe87c1a6
851,161
py
Python
chatBOT-Final/chat_app/venv/lib/python3.6/site-packages/pypinyin/pinyin_dict.py
ashokupd81/Django-Chatbot
0d199390b22b294830c1a68ad270c688517e7b11
[ "MIT" ]
5
2018-03-14T01:55:28.000Z
2019-11-23T18:08:29.000Z
chatBOT-Final/chat_app/venv/lib/python3.6/site-packages/pypinyin/pinyin_dict.py
ashokupd81/Django-Chatbot
0d199390b22b294830c1a68ad270c688517e7b11
[ "MIT" ]
1
2021-07-28T03:39:13.000Z
2021-07-29T14:57:09.000Z
chatBOT-Final/chat_app/venv/lib/python3.6/site-packages/pypinyin/pinyin_dict.py
ashokupd81/Django-Chatbot
0d199390b22b294830c1a68ad270c688517e7b11
[ "MIT" ]
3
2018-03-13T11:46:40.000Z
2019-05-23T08:41:19.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals # Warning: Auto-generated file, don't edit. pinyin_dict = { 0x3007: 'líng', 0x3400: 'qiū', 0x3401: 'tiàn', 0x3404: 'kuà', 0x3405: 'wǔ', 0x3406: 'yǐn', 0x340C: 'yí', 0x3416: 'xié', 0x341C: 'chóu', 0x3421: 'nuò', ...
20.537617
57
0.499716
0075f1ef73c4ff2995e700f738ecede608bf2ded
1,594
py
Python
pcraft/plugins/FakeNames.py
n0Hats/pCraft
b01b752924821d67555408b88753ccf5c7b37a3b
[ "MIT" ]
null
null
null
pcraft/plugins/FakeNames.py
n0Hats/pCraft
b01b752924821d67555408b88753ccf5c7b37a3b
[ "MIT" ]
null
null
null
pcraft/plugins/FakeNames.py
n0Hats/pCraft
b01b752924821d67555408b88753ccf5c7b37a3b
[ "MIT" ]
null
null
null
from pcraft.PluginsContext import PluginsContext from faker import Faker class PCraftPlugin(PluginsContext): name = "FakeNames" required = [] def help(self): helpstr=""" Create Fake Names ### Examples #### 1: Fake Names ``` newfake: _plugin: FakeNames _next: done ``` """ def __init_...
30.653846
124
0.581556
2c96b486d913fa62b39f54bcb899fc01add2647b
12,551
py
Python
mycroft/util/parse.py
theheartofraven/Blackcroft-core
7f4ffb2d4528303ab655d0403b6e2b2432fa166a
[ "Apache-2.0" ]
5
2019-08-15T13:22:05.000Z
2020-05-10T04:04:48.000Z
mycroft/util/parse.py
theheartofraven/Blackcroft-core
7f4ffb2d4528303ab655d0403b6e2b2432fa166a
[ "Apache-2.0" ]
8
2019-08-15T16:26:51.000Z
2021-09-08T01:05:04.000Z
mycroft/util/parse.py
theheartofraven/Blackcroft-core
7f4ffb2d4528303ab655d0403b6e2b2432fa166a
[ "Apache-2.0" ]
4
2018-06-09T11:58:56.000Z
2019-02-10T07:28:58.000Z
# -*- coding: utf-8 -*- # # Copyright 2017 Mycroft AI 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 ...
36.37971
79
0.653095
c5436dd21aca979c7994d2eb54358246c4f83b28
3,518
py
Python
calaccess_processed/models/filings/campaign/form460/schedules/d.py
dwillis/django-calaccess-processed-data
f228252df1b390967468b41d336839f1bd9ca192
[ "MIT" ]
1
2021-01-13T12:06:25.000Z
2021-01-13T12:06:25.000Z
calaccess_processed/models/filings/campaign/form460/schedules/d.py
anthonyjpesce/django-calaccess-processed-data
d99b461abb7b7f7973f90b49634c9262efcbe7bf
[ "MIT" ]
null
null
null
calaccess_processed/models/filings/campaign/form460/schedules/d.py
anthonyjpesce/django-calaccess-processed-data
d99b461abb7b7f7973f90b49634c9262efcbe7bf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Models for storing data from Campaign Disclosure Statements (Form 460). """ from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible from calaccess_processed.managers import ProcessedDataManager f...
30.591304
87
0.652644
0999aae444bbccc2464ae0f26608028480fc1c77
9,509
py
Python
pyemma/coordinates/data/util/reader_utils.py
trendelkampschroer/PyEMMA
ee5784d5c1c5bc070fe2e9e6ad4f24b36185dc20
[ "BSD-2-Clause" ]
null
null
null
pyemma/coordinates/data/util/reader_utils.py
trendelkampschroer/PyEMMA
ee5784d5c1c5bc070fe2e9e6ad4f24b36185dc20
[ "BSD-2-Clause" ]
null
null
null
pyemma/coordinates/data/util/reader_utils.py
trendelkampschroer/PyEMMA
ee5784d5c1c5bc070fe2e9e6ad4f24b36185dc20
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2015, 2014 Computational Molecular Biology Group, Free University # Berlin, 14195 Berlin, Germany. # 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...
41.889868
117
0.63992
ff97e121be28845b00fe412a0e9e315e29c4caec
119
py
Python
pibooth/config/__init__.py
thibault-78/pibooth
a5ec192adc4428a115770f65f8ca111f61cf2471
[ "MIT" ]
374
2020-04-12T12:36:34.000Z
2022-03-23T13:54:06.000Z
pibooth/config/__init__.py
thibault-78/pibooth
a5ec192adc4428a115770f65f8ca111f61cf2471
[ "MIT" ]
185
2020-04-07T09:58:36.000Z
2022-03-31T09:13:48.000Z
pibooth/config/__init__.py
thibault-78/pibooth
a5ec192adc4428a115770f65f8ca111f61cf2471
[ "MIT" ]
56
2020-04-17T09:21:28.000Z
2022-03-22T07:31:23.000Z
# -*- coding: utf-8 -*- from pibooth.config.parser import PiConfigParser from pibooth.config.menu import PiConfigMenu
23.8
48
0.773109
af21c31fafd8d3c5f82913b49bcf9c65909162cc
90
py
Python
HW8/smonets/Double_Char.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW8/smonets/Double_Char.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW8/smonets/Double_Char.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
6
2022-02-22T22:30:49.000Z
2022-03-28T12:51:19.000Z
def double_char(s): new_s = "" for i in s: new_s += i * 2 return new_s
18
22
0.5
2b40439f2e9cb97b456eb5d71403ef9bdfd9dcfa
8,555
py
Python
GAN/utils.py
kilianFatras/unbisad_minibatch_sinkhorn_GAN
cd21033e5bbf974283fcb1b88e586270e5a6ba7e
[ "MIT" ]
6
2021-03-15T12:14:27.000Z
2022-03-18T05:14:04.000Z
GAN/utils.py
kilianFatras/unbisad_minibatch_sinkhorn_GAN
cd21033e5bbf974283fcb1b88e586270e5a6ba7e
[ "MIT" ]
null
null
null
GAN/utils.py
kilianFatras/unbisad_minibatch_sinkhorn_GAN
cd21033e5bbf974283fcb1b88e586270e5a6ba7e
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import grad as torch_grad import torch.utils.data from torch.autograd import Variable import numpy as np import ot from torchvision.models.inception import inception_v3 from scipy.stats import entropy #%% Functions def entrop...
29.912587
99
0.609001
fcbbd669f5970095567fcdbc3c6c8e94e8d8d83d
994
py
Python
argminingdeeplearning/utils.py
ertogrul/ArgMining
2b7777ad6172723ece1cfe8df09c47c5c362ef5d
[ "MIT" ]
13
2018-01-26T13:20:53.000Z
2022-03-04T15:26:59.000Z
argminingdeeplearning/utils.py
ertogrul/ArgMining
2b7777ad6172723ece1cfe8df09c47c5c362ef5d
[ "MIT" ]
null
null
null
argminingdeeplearning/utils.py
ertogrul/ArgMining
2b7777ad6172723ece1cfe8df09c47c5c362ef5d
[ "MIT" ]
6
2018-04-11T15:27:42.000Z
2020-12-10T13:34:06.000Z
from pandas_confusion import ConfusionMatrix def write_prediction_file(path, test_unique_ids, Y_test_indices, y_prediction_classes): with open(path, 'w') as prediction_handler: prediction_handler.write('{}\t{}\t{}\n'.format("UniqueID", "Gold_Label", "Prediction")) for index, val in enumerate(test_...
52.315789
116
0.717304
4854c91289d11e4fc3a6747d0315f6a60770e7c4
8,181
py
Python
server/crawler.py
SNH48Live/KVM48
35baf962c43b87fef4fca09d552e68f2ae7aa539
[ "MIT" ]
11
2018-02-18T22:44:59.000Z
2020-02-13T01:16:47.000Z
server/crawler.py
SNH48Live/KVM48
35baf962c43b87fef4fca09d552e68f2ae7aa539
[ "MIT" ]
16
2018-02-24T07:25:44.000Z
2019-06-01T11:21:46.000Z
server/crawler.py
SNH48Live/KVM48
35baf962c43b87fef4fca09d552e68f2ae7aa539
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import datetime import functools import gzip import logging import multiprocessing.pool import pathlib import re import threading import time import urllib.parse import bs4 import peewee import requests from database import PerfVOD, init_database HERE = pathlib.Path(__file__)...
31.832685
82
0.623029
75dd9d444d44c1c6666909e906b56c320b96bac3
7,290
py
Python
test/functional/wallet_backup.py
MichaelHDesigns/BRS
f5163ab5d47cd2f90fcf623850843996ab9d62dd
[ "MIT" ]
15
2020-12-01T21:20:18.000Z
2022-02-13T08:20:58.000Z
test/functional/wallet_backup.py
MichaelHDesigns/DCG-Crypto
f5163ab5d47cd2f90fcf623850843996ab9d62dd
[ "MIT" ]
1
2020-12-01T23:41:13.000Z
2020-12-01T23:41:13.000Z
test/functional/wallet_backup.py
MichaelHDesigns/DCG-Crypto
f5163ab5d47cd2f90fcf623850843996ab9d62dd
[ "MIT" ]
8
2020-12-01T20:23:15.000Z
2022-03-28T18:23:19.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the wallet backup features. Test case is: 4 nodes. 1 2 and 3 send transactions between each other...
35.38835
96
0.645953
615b05227319797c2098f03ecae735dcbb5b735e
1,505
py
Python
kuroneko/cache.py
mgorny/kuroneko
34f8aa9064078ff7544dc90d2912bb17e2871492
[ "BSD-2-Clause" ]
6
2021-03-28T22:49:47.000Z
2021-06-07T18:22:32.000Z
kuroneko/cache.py
mgorny/kuroneko
34f8aa9064078ff7544dc90d2912bb17e2871492
[ "BSD-2-Clause" ]
null
null
null
kuroneko/cache.py
mgorny/kuroneko
34f8aa9064078ff7544dc90d2912bb17e2871492
[ "BSD-2-Clause" ]
null
null
null
# (c) 2021 Michał Górny # 2-clause BSD license """Caching URL getter.""" import datetime import email.utils import errno import io import os import time import typing import requests CACHE_EXPIRE = 600 def cached_get(url: str, cache_path: str, ) -> typing.IO: """Fetch specified ...
24.672131
78
0.569435
6bd83d70bdc19bc039937151b9afcb8da87268b0
57
py
Python
mg_hello.py
wellyfox/github-playground
f656d0e1b65c7b9cc68ed9607e525f33e4139a7e
[ "MIT" ]
null
null
null
mg_hello.py
wellyfox/github-playground
f656d0e1b65c7b9cc68ed9607e525f33e4139a7e
[ "MIT" ]
null
null
null
mg_hello.py
wellyfox/github-playground
f656d0e1b65c7b9cc68ed9607e525f33e4139a7e
[ "MIT" ]
null
null
null
print (hello) print (hello stash!!!) print (hello again)
14.25
22
0.701754
e92714f6e0fa13fffc669e77e860131f1526d268
2,000
py
Python
openbb_terminal/cryptocurrency/overview/blockchaincenter_model.py
tehcoderer/GamestonkTerminal
54a1b6f545a0016c576e9e00eef5c003d229dacf
[ "MIT" ]
255
2022-03-29T16:43:51.000Z
2022-03-31T23:57:08.000Z
openbb_terminal/cryptocurrency/overview/blockchaincenter_model.py
tehcoderer/GamestonkTerminal
54a1b6f545a0016c576e9e00eef5c003d229dacf
[ "MIT" ]
14
2022-03-29T14:20:33.000Z
2022-03-31T23:39:20.000Z
openbb_terminal/cryptocurrency/overview/blockchaincenter_model.py
tehcoderer/GamestonkTerminal
54a1b6f545a0016c576e9e00eef5c003d229dacf
[ "MIT" ]
24
2022-03-29T15:28:56.000Z
2022-03-31T23:54:15.000Z
"""Blockchain Center Model""" import json import logging from datetime import datetime import pandas as pd import requests from bs4 import BeautifulSoup from openbb_terminal.decorators import log_start_end from openbb_terminal.helper_funcs import get_user_agent logger = logging.getLogger(__name__) DAYS = [30, 90, 3...
29.850746
104
0.644
82ad30907f770fa7fbf5694a8e92b1864ac62956
1,247
py
Python
tests/router/test_route.py
valq7711/bottlefly
799dbf734852f780f2fb1d9cdfb5bbf456c35458
[ "MIT" ]
2
2021-10-04T20:52:43.000Z
2022-03-01T06:57:16.000Z
tests/router/test_route.py
valq7711/bottlefly
799dbf734852f780f2fb1d9cdfb5bbf456c35458
[ "MIT" ]
1
2021-11-09T05:55:42.000Z
2021-11-09T08:31:34.000Z
tests/router/test_route.py
valq7711/bottlefly
799dbf734852f780f2fb1d9cdfb5bbf456c35458
[ "MIT" ]
3
2021-10-05T05:22:12.000Z
2022-03-20T02:51:23.000Z
import pytest from ombott.router import Route rule_param_expected_url = [ ('/static/rule', [[], {}], 'static/rule'), ('/s', [[], {}], 's'), ('/{:re(to.)}', [('tok',), {}], 'tok'), ('/foo/{:re(to.)}', [('tok',), {}], 'foo/tok'), ('/foo/{:re(to.)}/bar{some}', [('tok',), dict(some = 'baz')], 'foo/tok...
41.566667
123
0.553328
b92966d9b1ff9cfdaf63c2a4703b173bf8dd469f
2,287
py
Python
dhost/builds/views.py
dhost-project/dhost
ca6a4a76a737174b24165e20edeb1d1019a9424b
[ "MIT" ]
null
null
null
dhost/builds/views.py
dhost-project/dhost
ca6a4a76a737174b24165e20edeb1d1019a9424b
[ "MIT" ]
67
2021-07-06T11:50:25.000Z
2021-10-14T13:45:51.000Z
dhost/builds/views.py
dhost-project/dhost
ca6a4a76a737174b24165e20edeb1d1019a9424b
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404 from rest_framework import viewsets from rest_framework.decorators import action from rest_framework.response import Response from dhost.dapps.views import DappViewMixin from .models import Build, BuildOptions, EnvVar from .serializers import ( BuildOptionsSerializer...
32.671429
77
0.737648
7e7f428427ad6152419c440126c77069cfa4456b
3,237
py
Python
src/alertas/alerta_ppfp.py
MinisterioPublicoRJ/Alertas
e8fc3558031bc95e952065d6aede40017511c9b9
[ "MIT" ]
2
2020-01-17T19:09:09.000Z
2020-04-29T14:23:42.000Z
src/alertas/alerta_ppfp.py
MinisterioPublicoRJ/Alertas
e8fc3558031bc95e952065d6aede40017511c9b9
[ "MIT" ]
4
2020-09-30T03:26:49.000Z
2021-09-09T20:26:32.000Z
src/alertas/alerta_ppfp.py
MinisterioPublicoRJ/Alertas
e8fc3558031bc95e952065d6aede40017511c9b9
[ "MIT" ]
null
null
null
#-*-coding:utf-8-*- from pyspark.sql.types import IntegerType, StringType, TimestampType from pyspark.sql.functions import * from base import spark from utils import uuidsha columns = [ col('docu_dk').alias('alrt_docu_dk'), col('docu_nr_mp').alias('alrt_docu_nr_mp'), col('docu_orgi_orga_dk_responsavel')....
42.592105
145
0.631449
2683caf212c87d67f5b6e973f5836448c088b3ad
661
py
Python
PubSub/__init__.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
4
2019-03-11T18:05:49.000Z
2021-05-22T21:09:09.000Z
PubSub/__init__.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
PubSub/__init__.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2019-03-18T18:53:36.000Z
2019-03-18T18:53:36.000Z
''' Python mapping for the PubSub framework. This module does not contain docstrings for the wrapped code, check Apple's documentation for details on how to use these functions and classes. ''' import sys import objc import Foundation from PubSub import _metadata sys.modules['PubSub'] = mod = objc.ObjCLazyModule('Pu...
26.44
75
0.708018
aad3b470ce204e71b92ec0b300ff63a2e49ea05f
954
py
Python
postgresqleu/confreg/migrations/0065_speaker_photo_bytea.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
11
2020-08-20T11:16:02.000Z
2022-03-12T23:25:04.000Z
postgresqleu/confreg/migrations/0065_speaker_photo_bytea.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
71
2019-11-18T10:11:22.000Z
2022-03-27T16:12:57.000Z
postgresqleu/confreg/migrations/0065_speaker_photo_bytea.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
18
2019-11-18T09:56:31.000Z
2022-01-08T03:16:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-10-29 22:53 from __future__ import unicode_literals from django.db import migrations import postgresqleu.util.fields class Migration(migrations.Migration): dependencies = [ ('confreg', '0064_retweet_and_media'), ] operations = [ ...
30.774194
185
0.650943
8f7b671a948f9923f00adb4ba9f7428d82d5a044
8,816
py
Python
homeassistant/components/sensibo/climate.py
FilHarr/core
c3a2eedf0beb0d1a66ff1a39705e715ded35e085
[ "Apache-2.0" ]
3
2021-11-22T22:37:43.000Z
2022-03-17T00:55:28.000Z
homeassistant/components/sensibo/climate.py
FilHarr/core
c3a2eedf0beb0d1a66ff1a39705e715ded35e085
[ "Apache-2.0" ]
null
null
null
homeassistant/components/sensibo/climate.py
FilHarr/core
c3a2eedf0beb0d1a66ff1a39705e715ded35e085
[ "Apache-2.0" ]
null
null
null
"""Support for Sensibo wifi-enabled home thermostats.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const import ( HVAC_MODE_COOL, HVAC_MODE_DRY, HVAC_MODE_FAN_ONLY, HVAC_MODE_HEAT, HV...
32.411765
86
0.661184
106ff9714d9655da3494d07313d0f13a2641154b
46,607
py
Python
bertopic/_bertopic.py
muluayele999/BERTopic
d81fb74cf48eed76d6297de47e40bd18a22e32d8
[ "MIT" ]
null
null
null
bertopic/_bertopic.py
muluayele999/BERTopic
d81fb74cf48eed76d6297de47e40bd18a22e32d8
[ "MIT" ]
null
null
null
bertopic/_bertopic.py
muluayele999/BERTopic
d81fb74cf48eed76d6297de47e40bd18a22e32d8
[ "MIT" ]
1
2021-02-18T08:43:32.000Z
2021-02-18T08:43:32.000Z
import warnings warnings.filterwarnings("ignore", category=FutureWarning) import re import joblib import numpy as np import pandas as pd from scipy.sparse.csr import csr_matrix from typing import List, Tuple, Dict, Union # Models import umap import hdbscan from sentence_transformers import SentenceTransformer from sk...
41.613393
120
0.612462
390424135fe59710fb180fcd90e72eb7a910b49c
27,814
py
Python
Tests/test_SearchIO_hmmer3_domtab.py
bneron/biopython
2c52e57661c8f6cdf4a191850b2f6871f8582af7
[ "PostgreSQL" ]
1
2020-05-26T22:51:14.000Z
2020-05-26T22:51:14.000Z
Tests/test_SearchIO_hmmer3_domtab.py
bneron/biopython
2c52e57661c8f6cdf4a191850b2f6871f8582af7
[ "PostgreSQL" ]
null
null
null
Tests/test_SearchIO_hmmer3_domtab.py
bneron/biopython
2c52e57661c8f6cdf4a191850b2f6871f8582af7
[ "PostgreSQL" ]
null
null
null
# Copyright 2012 by Wibowo Arindrarto. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Tests for SearchIO HmmerIO hmmer3-domtab parsers.""" import os import unittest from ...
42.659509
117
0.64881
102326e6e82b2527716aea8b09a8bd3443a2f706
5,439
py
Python
main.py
Zhao-Weng/ACERMod
24801567fc39f29c068c3f64af6b12096b822c71
[ "MIT" ]
null
null
null
main.py
Zhao-Weng/ACERMod
24801567fc39f29c068c3f64af6b12096b822c71
[ "MIT" ]
null
null
null
main.py
Zhao-Weng/ACERMod
24801567fc39f29c068c3f64af6b12096b822c71
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import os # import platform import gym import torch from torch import multiprocessing as mp import pdb from model import ActorCritic from optim import SharedRMSprop from train import train from test import test from utils import Counter STATE_SPACE = 22 * 5 + 1 ACTION_SPACE = ...
51.8
155
0.735062
40887e8977080a1222cb32d494b0f9433a0c2ad7
1,939
py
Python
dev/ansible-for-test-node/roles/jenkins-worker/files/util_scripts/kill_zinc_nailgun.py
akhalymon-cv/spark
76191b9151b6a7804f8894e53eef74106f98b787
[ "Apache-2.0" ]
35,083
2015-01-01T03:05:13.000Z
2022-03-31T21:57:40.000Z
dev/ansible-for-test-node/roles/jenkins-worker/files/util_scripts/kill_zinc_nailgun.py
akhalymon-cv/spark
76191b9151b6a7804f8894e53eef74106f98b787
[ "Apache-2.0" ]
32,117
2015-01-01T00:00:24.000Z
2022-03-31T23:54:58.000Z
dev/ansible-for-test-node/roles/jenkins-worker/files/util_scripts/kill_zinc_nailgun.py
akhalymon-cv/spark
76191b9151b6a7804f8894e53eef74106f98b787
[ "Apache-2.0" ]
29,687
2015-01-01T02:40:43.000Z
2022-03-31T16:49:33.000Z
#!/usr/bin/env python3 """Kill a Zinc process that is listening on a given port""" import argparse import os import re import signal import subprocess import sys def _parse_args(): zinc_port_var = "ZINC_PORT" zinc_port_option = "--zinc-port" parser = argparse.ArgumentParser() parser.add_argument(zinc_...
31.786885
98
0.628675
95adde4abcc594bdb99b6c8c45c29cde52204005
6,639
py
Python
go/billing/tests/test_forms.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/billing/tests/test_forms.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/billing/tests/test_forms.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
from decimal import Decimal, Context from django.forms.models import modelformset_factory from go.base.tests.helpers import GoDjangoTestCase, DjangoVumiApiHelper from go.billing import settings as app_settings from go.billing.forms import ( MessageCostForm, cost_rounded_to_zero, BaseCreditLoadFormSet, CreditL...
35.126984
76
0.606718
df173ee131b4ea22594e478f54d88701dac25871
1,716
py
Python
src/gameobject/components/spells.py
rubenwo/PythonGame
ce9c877906373de4a2abd619ab1bd90b7cf8f1f2
[ "MIT" ]
null
null
null
src/gameobject/components/spells.py
rubenwo/PythonGame
ce9c877906373de4a2abd619ab1bd90b7cf8f1f2
[ "MIT" ]
null
null
null
src/gameobject/components/spells.py
rubenwo/PythonGame
ce9c877906373de4a2abd619ab1bd90b7cf8f1f2
[ "MIT" ]
null
null
null
from typing import List import pygame import vector from gameobject.gameobject import DrawComponent, GameObject # Change width and height to radius class FireBallComponent(DrawComponent): def __init__(self, direction: vector.Vector2D, width: int, height: int, game_objects: List[GameObject], ori...
42.9
244
0.668998
82e5ce9de0e9a4455c8b0260a4c9b4e4d1c354ad
7,714
py
Python
docusign_click/models/document_data.py
docusign/docusign-click-python-client
acbdf93e2b54ab9ba6f21ca666ce36f91b921390
[ "MIT" ]
1
2021-11-14T17:11:53.000Z
2021-11-14T17:11:53.000Z
docusign_click/models/document_data.py
docusign/docusign-click-python-client
acbdf93e2b54ab9ba6f21ca666ce36f91b921390
[ "MIT" ]
null
null
null
docusign_click/models/document_data.py
docusign/docusign-click-python-client
acbdf93e2b54ab9ba6f21ca666ce36f91b921390
[ "MIT" ]
1
2021-11-14T17:11:43.000Z
2021-11-14T17:11:43.000Z
# coding: utf-8 """ DocuSign Click API DocuSign Click lets you capture consent to standard agreement terms with a single click: terms and conditions, terms of service, terms of use, privacy policies, and more. The Click API lets you include this customizable clickwrap solution in your DocuSign integrations. ...
33.107296
287
0.607078
bea86d364ce49444fc04d4576d0f38e213ce2463
1,487
py
Python
setup.py
sanskar1991/gcscontents
c8336046e5e664ea1982823ac990d0cc81dc0afb
[ "MIT" ]
null
null
null
setup.py
sanskar1991/gcscontents
c8336046e5e664ea1982823ac990d0cc81dc0afb
[ "MIT" ]
null
null
null
setup.py
sanskar1991/gcscontents
c8336046e5e664ea1982823ac990d0cc81dc0afb
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages setup_dir = os.path.abspath(os.path.dirname(__file__)) def read_file(filename): filepath = os.path.join(setup_dir, filename) with open(filepath) as file: return file.read() VERSION = '0.0.1' DESCRIPTION = 'A ContentsManager for managing Google C...
28.596154
96
0.62811
647dab916c83a186747d08ff21dc38a1e2ee3fcc
1,749
py
Python
typesafe_conductr_cli/conduct_info.py
huntc/conductr-cli
3f76962d31bcd7e01f1afd472b724f5419f65168
[ "Apache-2.0" ]
null
null
null
typesafe_conductr_cli/conduct_info.py
huntc/conductr-cli
3f76962d31bcd7e01f1afd472b724f5419f65168
[ "Apache-2.0" ]
null
null
null
typesafe_conductr_cli/conduct_info.py
huntc/conductr-cli
3f76962d31bcd7e01f1afd472b724f5419f65168
[ "Apache-2.0" ]
null
null
null
from typesafe_conductr_cli import bundle_utils, conduct_url, conduct_logging import json import requests @conduct_logging.handle_connection_error @conduct_logging.handle_http_error def info(args): """`conduct info` command""" url = conduct_url.url('bundles', args) response = requests.get(url) conduct...
39.75
227
0.657519
13110028ebc0d587f98188b3d65f473c66156829
206
py
Python
beaver/encrypters/__init__.py
Affirm/python-beaver
5da2eba14c8420141f16f2728e67c0704b56f2a5
[ "MIT" ]
null
null
null
beaver/encrypters/__init__.py
Affirm/python-beaver
5da2eba14c8420141f16f2728e67c0704b56f2a5
[ "MIT" ]
null
null
null
beaver/encrypters/__init__.py
Affirm/python-beaver
5da2eba14c8420141f16f2728e67c0704b56f2a5
[ "MIT" ]
1
2018-05-11T19:47:44.000Z
2018-05-11T19:47:44.000Z
from beaver.encrypters.base_encrypter import Encrypter from beaver.encrypters.kms_encrypter import KmsEncrypter ENCRYPTERS = { 'kms': KmsEncrypter, 'KMS': KmsEncrypter, 'default': Encrypter }
20.6
56
0.757282
e6bb0873add0c6bf2c4fbde211d5d0603d1dc621
4,053
py
Python
aiger_ptltl/ptltl.py
alopezz/py-aiger-past-ltl
148cbdca3d3b4f5f6a28e05b34f2d7d5c2a4a1fe
[ "MIT" ]
null
null
null
aiger_ptltl/ptltl.py
alopezz/py-aiger-past-ltl
148cbdca3d3b4f5f6a28e05b34f2d7d5c2a4a1fe
[ "MIT" ]
2
2018-10-24T20:35:33.000Z
2021-03-03T01:28:50.000Z
aiger_ptltl/ptltl.py
alopezz/py-aiger-past-ltl
148cbdca3d3b4f5f6a28e05b34f2d7d5c2a4a1fe
[ "MIT" ]
2
2021-01-05T23:07:23.000Z
2021-03-01T15:44:15.000Z
import aiger from parsimonious import Grammar, NodeVisitor PLTL_GRAMMAR = Grammar(u''' phi = since / or / and / implies / hist / past / vyest / yest / neg / true / false / AP or = "(" _ phi _ "|" _ phi _ ")" implies = "(" _ phi _ "->" _ phi _ ")" and = "(" _ phi _ "&" _ phi _ ")" hist = "H" _ phi past = "P" _ p...
25.33125
70
0.609425
da8923b302e79bd76a0f0dfa857d93f7159ab559
13,767
py
Python
datalabs/utils/readme.py
ExpressAI/DataLab
c3eddd4068f131d031c2486c60b650092bb0ae84
[ "Apache-2.0" ]
54
2022-01-26T06:58:58.000Z
2022-03-31T05:11:35.000Z
datalabs/utils/readme.py
ExpressAI/DataLab
c3eddd4068f131d031c2486c60b650092bb0ae84
[ "Apache-2.0" ]
81
2022-01-26T06:46:41.000Z
2022-03-24T05:05:31.000Z
datalabs/utils/readme.py
ExpressAI/DataLab
c3eddd4068f131d031c2486c60b650092bb0ae84
[ "Apache-2.0" ]
7
2022-02-06T09:28:31.000Z
2022-03-16T01:06:37.000Z
import logging from pathlib import Path from typing import Any, List, Tuple import yaml # loading package files: https://stackoverflow.com/a/20885799 try: import importlib.resources as pkg_resources except ImportError: # Try backported to PY<37 `importlib_resources`. import importlib_resources as pkg_reso...
39.334286
88
0.544563
0344089f892f015dcd948658f55b12ad67987a59
5,343
py
Python
sparse_operation_kit/unit_test/test_scripts/tf2/dense_models.py
x-y-z/HugeCTR
17bf942215df60827ece9dc015af5191ef9219b7
[ "Apache-2.0" ]
130
2021-10-11T11:55:28.000Z
2022-03-31T21:53:07.000Z
sparse_operation_kit/unit_test/test_scripts/tf2/dense_models.py
Teora/HugeCTR
c55a63401ad350669ccfcd374aefd7a5fc879ca2
[ "Apache-2.0" ]
72
2021-10-09T04:59:09.000Z
2022-03-31T11:27:54.000Z
sparse_operation_kit/unit_test/test_scripts/tf2/dense_models.py
Teora/HugeCTR
c55a63401ad350669ccfcd374aefd7a5fc879ca2
[ "Apache-2.0" ]
29
2021-11-03T22:35:01.000Z
2022-03-30T13:11:59.000Z
""" Copyright (c) 2021, NVIDIA CORPORATION. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
43.08871
128
0.622684
99ee80bdc18794c1aa39afe6188fdbfe5f3829c2
2,012
py
Python
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/ModifyPrimaryTrunksOfSkillGroupRequest.py
Explorer1092/aliyun-openapi-python-sdk
13d95bdceb7fd3bba807275a5a15b32d531a1a63
[ "Apache-2.0" ]
1
2020-12-05T03:03:46.000Z
2020-12-05T03:03:46.000Z
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/ModifyPrimaryTrunksOfSkillGroupRequest.py
Explorer1092/aliyun-openapi-python-sdk
13d95bdceb7fd3bba807275a5a15b32d531a1a63
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/ModifyPrimaryTrunksOfSkillGroupRequest.py
Explorer1092/aliyun-openapi-python-sdk
13d95bdceb7fd3bba807275a5a15b32d531a1a63
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.692308
98
0.773857
ea335668df1c7797e0191dc752ea53132da58640
484
py
Python
web/api_rest/mini_facebook/python_publications_service_api/app.py
CALlanoR/virtual_environments
90214851d6c3760e1a4afb48017bb7f91593e29e
[ "Apache-2.0" ]
null
null
null
web/api_rest/mini_facebook/python_publications_service_api/app.py
CALlanoR/virtual_environments
90214851d6c3760e1a4afb48017bb7f91593e29e
[ "Apache-2.0" ]
1
2022-03-02T14:54:47.000Z
2022-03-02T14:54:47.000Z
web/api_rest/mini_facebook/python_publications_service_api/app.py
CALlanoR/virtual_environments
90214851d6c3760e1a4afb48017bb7f91593e29e
[ "Apache-2.0" ]
1
2017-03-16T14:58:03.000Z
2017-03-16T14:58:03.000Z
from flask import Flask from flask_cors import CORS, cross_origin from flask_swagger_ui import get_swaggerui_blueprint app = Flask(__name__) CORS(app) ### swagger specific ### SWAGGER_URL = '/swagger' API_URL = '/static/swagger.json' SWAGGERUI_BLUEPRINT = get_swaggerui_blueprint( SWAGGER_URL, API_URL, con...
25.473684
59
0.731405
a1d1540846ef20c57225ecbc30eeea0aff712dcb
9,660
py
Python
doc/source/conf.py
flaviuvadan/cvxpy
380a056524322be0c16c6ca559956f552142d53d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
doc/source/conf.py
flaviuvadan/cvxpy
380a056524322be0c16c6ca559956f552142d53d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
doc/source/conf.py
flaviuvadan/cvxpy
380a056524322be0c16c6ca559956f552142d53d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # CVXPY documentation build configuration file, created by # sphinx-quickstart on Mon Jan 27 20:47:07 2014. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
32.2
124
0.708075
ea2e13a1246317bff561f0d74899c16f918b8cf6
21,273
py
Python
dfirtrack_api/tests/dfirtrack_main/system/test_system_api_views.py
cclauss/dfirtrack
2a307c5fe82e927b3c229a20a02bc0c7a5d66d9a
[ "Apache-2.0" ]
null
null
null
dfirtrack_api/tests/dfirtrack_main/system/test_system_api_views.py
cclauss/dfirtrack
2a307c5fe82e927b3c229a20a02bc0c7a5d66d9a
[ "Apache-2.0" ]
null
null
null
dfirtrack_api/tests/dfirtrack_main/system/test_system_api_views.py
cclauss/dfirtrack
2a307c5fe82e927b3c229a20a02bc0c7a5d66d9a
[ "Apache-2.0" ]
null
null
null
import urllib.parse from datetime import datetime from django.contrib.auth.models import User from django.test import TestCase from django.utils import timezone from dfirtrack_main.models import ( Analysisstatus, Case, Company, Contact, Dnsname, Domain, Ip, Location, Os, Osarch...
44.043478
126
0.660932
d510fdfa741ad11935f0aa58350ad02c9b8ac901
3,627
py
Python
src/sentry/models/apikey.py
percipient/sentry
84c6f75ab40e12677c81d9210c3fe8ad66d7a0c3
[ "BSD-3-Clause" ]
null
null
null
src/sentry/models/apikey.py
percipient/sentry
84c6f75ab40e12677c81d9210c3fe8ad66d7a0c3
[ "BSD-3-Clause" ]
8
2019-12-28T23:49:55.000Z
2022-03-02T04:34:18.000Z
src/sentry/models/apikey.py
percipient/sentry
84c6f75ab40e12677c81d9210c3fe8ad66d7a0c3
[ "BSD-3-Clause" ]
null
null
null
""" sentry.models.apikey ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2015 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function import six from bitfield import BitField from django.conf import settings from django.db im...
26.866667
84
0.615936
afd2367775f2cda64e33b85ccbe73d7d761f32d5
3,139
py
Python
mealsdb/mealster_api/mealster_api/settings.py
2achary/mealster
9cfafca36dfa19d125408ce304f95edf72798798
[ "MIT" ]
1
2017-11-06T15:01:55.000Z
2017-11-06T15:01:55.000Z
mealsdb/mealster_api/mealster_api/settings.py
2achary/mealster
9cfafca36dfa19d125408ce304f95edf72798798
[ "MIT" ]
1
2018-02-13T21:10:58.000Z
2018-02-14T01:55:46.000Z
mealsdb/mealster_api/mealster_api/settings.py
2achary/mealster
9cfafca36dfa19d125408ce304f95edf72798798
[ "MIT" ]
null
null
null
""" Django settings for mealster_api project. Generated by 'django-admin startproject' using Django 2.0.2. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import ...
25.520325
91
0.694807
1d9af139e6efb417f03f7c64838deccef3f7f55a
1,158
py
Python
2014/tools/destinations.py
slavahatnuke/united.worker
41bc23cc6a16a3faff113e3ab00f0ca5f1497cc6
[ "Apache-2.0" ]
1
2015-09-09T07:15:42.000Z
2015-09-09T07:15:42.000Z
2014/tools/destinations.py
slavahatnuke/united.worker
41bc23cc6a16a3faff113e3ab00f0ca5f1497cc6
[ "Apache-2.0" ]
null
null
null
2014/tools/destinations.py
slavahatnuke/united.worker
41bc23cc6a16a3faff113e3ab00f0ca5f1497cc6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from bs4 import BeautifulSoup from bs4.element import NavigableString import urllib2 import json URL = 'http://www.united.com/web/en-US/content/travel/destination/routes/served.aspx' def main(): """ Extracts the list of possible United destinations from their site. Outputs as a javascrip...
33.085714
85
0.624352
280426b3931040abe9552e08e25ce4093164f4c7
372
py
Python
pwbs/tests/test_0.py
paip-web/pwbs
21622712b6975ab68b7f5d7c1a944fa826ea87ba
[ "MIT" ]
2
2020-01-07T16:07:56.000Z
2020-02-15T05:57:58.000Z
pwbs/tests/test_0.py
paip-web/pwbs
21622712b6975ab68b7f5d7c1a944fa826ea87ba
[ "MIT" ]
3
2020-07-03T21:28:02.000Z
2021-06-25T15:29:18.000Z
pwbs/tests/test_0.py
paip-web/pwbs
21622712b6975ab68b7f5d7c1a944fa826ea87ba
[ "MIT" ]
1
2020-02-15T06:00:08.000Z
2020-02-15T06:00:08.000Z
# -*- coding: utf-8 -*- """PAiP Web Build System - Test NAME - PAiP Web Build System AUTHOR - Patryk Adamczyk <patrykadamczyk@paip.com.pl> LICENSE - MIT """ # Imports import pytest # Documentation """ Test 0 ================ Test for test """ # Test Function def test_0_0(): assert True @pytest.mark.xfail(rais...
13.777778
53
0.658602
48c17cb987d25a31aa021d369f4f26af6a8eb3e4
353
py
Python
2021Jr/p3_secret_instructions.py
xingexu/CCC
82da5117af1287f61c885c27eabb26cc7eb88910
[ "MIT" ]
null
null
null
2021Jr/p3_secret_instructions.py
xingexu/CCC
82da5117af1287f61c885c27eabb26cc7eb88910
[ "MIT" ]
null
null
null
2021Jr/p3_secret_instructions.py
xingexu/CCC
82da5117af1287f61c885c27eabb26cc7eb88910
[ "MIT" ]
null
null
null
previous_direction = "" while True: x = input() if x =='99999': break y=int(x[0])+int(x[1]) direction = "" if y==0: direction = previous_direction elif y%2==1: direction ="left" elif y%2==0: direction ="right" print(direction, x[2:]) ...
17.65
38
0.512748
9cc1385d97cc0733a15a129035f0634820b572a6
1,287
py
Python
afterglow_core/schemas/api/v1/source_extraction.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
2
2021-05-24T15:12:07.000Z
2022-02-17T19:58:16.000Z
afterglow_core/schemas/api/v1/source_extraction.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
1
2022-02-27T03:01:06.000Z
2022-02-27T03:01:06.000Z
afterglow_core/schemas/api/v1/source_extraction.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
2
2021-06-08T18:16:40.000Z
2021-07-09T14:19:49.000Z
""" Afterglow Core: source extraction schemas """ from datetime import datetime from marshmallow.fields import Integer, String from ... import AfterglowSchema, DateTime, Float __all__ = [ 'IAstrometrySchema', 'IFwhmSchema', 'ISourceIdSchema', 'ISourceMetaSchema', 'SourceExtractionDataSchema', ] class ISo...
22.982143
79
0.672106
c621904edb4165f0348c0433f1dce288a14f34b5
548
py
Python
plotly/validators/layout/template/data/_candlestick.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/layout/template/data/_candlestick.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/layout/template/data/_candlestick.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class CandlesticksValidator( _plotly_utils.basevalidators.CompoundArrayValidator ): def __init__( self, plotly_name='candlestick', parent_name='layout.template.data', **kwargs ): super(CandlesticksValidator, self).__init__( ...
24.909091
71
0.625912
1f0a1298767827ca01ab5afee36e0b88124f2994
1,073
py
Python
ulearn-me/01-Search-and-sort/02-bubble-search-range.py
IvanDemin3467/ulearn-me
d90d419687abf4ac736e5967267b6d077f54c2e4
[ "Unlicense" ]
null
null
null
ulearn-me/01-Search-and-sort/02-bubble-search-range.py
IvanDemin3467/ulearn-me
d90d419687abf4ac736e5967267b6d077f54c2e4
[ "Unlicense" ]
null
null
null
ulearn-me/01-Search-and-sort/02-bubble-search-range.py
IvanDemin3467/ulearn-me
d90d419687abf4ac736e5967267b6d077f54c2e4
[ "Unlicense" ]
null
null
null
""" INPUT public static void BubbleSortRange(int[] array, int left, int right) { for (int i = 0; i < array.Length; i++) for (int j = 0; j < array.Length - 1; j++) if (array[j] > array[j + 1]) { var t = array[j + 1]; array[j + 1] = array[j]; ...
26.170732
68
0.44548
559b35619d0a8d09fea49dc5e6f16f0de540bcca
141
py
Python
Screens/screen_helpers.py
MikeCase/workLog
8bc6ffe2f2519d8472f25147e4ccce750c5604f6
[ "MIT" ]
null
null
null
Screens/screen_helpers.py
MikeCase/workLog
8bc6ffe2f2519d8472f25147e4ccce750c5604f6
[ "MIT" ]
null
null
null
Screens/screen_helpers.py
MikeCase/workLog
8bc6ffe2f2519d8472f25147e4ccce750c5604f6
[ "MIT" ]
null
null
null
class ScreenHelpers: def __init__(self) -> None: pass def _to_upper(self, *args): args[0].set(args[0].get().upper())
23.5
42
0.58156
3ec8e21deff32ee36d54072acff02102ba0dccf0
3,722
py
Python
tools/accuracy_checker/openvino/tools/accuracy_checker/postprocessor/resize_prediction_boxes.py
kblaszczak-intel/open_model_zoo
e313674d35050d2a4721bbccd9bd4c404f1ba7f8
[ "Apache-2.0" ]
2,201
2018-10-15T14:37:19.000Z
2020-07-16T02:05:51.000Z
tools/accuracy_checker/openvino/tools/accuracy_checker/postprocessor/resize_prediction_boxes.py
kblaszczak-intel/open_model_zoo
e313674d35050d2a4721bbccd9bd4c404f1ba7f8
[ "Apache-2.0" ]
759
2018-10-18T07:43:55.000Z
2020-07-16T01:23:12.000Z
tools/accuracy_checker/openvino/tools/accuracy_checker/postprocessor/resize_prediction_boxes.py
kblaszczak-intel/open_model_zoo
e313674d35050d2a4721bbccd9bd4c404f1ba7f8
[ "Apache-2.0" ]
808
2018-10-16T14:03:49.000Z
2020-07-15T11:41:45.000Z
""" Copyright (c) 2018-2022 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
35.788462
112
0.604782
ef6f9d1b66ae67129ce726db4f11b067855c0d4c
8,338
py
Python
jni-build/jni/include/tensorflow/models/image/alexnet/alexnet_benchmark.py
rcelebi/android-elfali
4ea14a58a18356ef9e16aba2e7dae84c02afba12
[ "Apache-2.0" ]
680
2016-12-03T14:38:28.000Z
2022-02-16T04:06:45.000Z
tensorflow/models/image/alexnet/alexnet_benchmark.py
alainrk/tensorflow
314d9cd9b607460f8bfea80fc828b1521ca18443
[ "Apache-2.0" ]
38
2016-11-17T08:43:51.000Z
2019-11-12T12:27:04.000Z
tensorflow/models/image/alexnet/alexnet_benchmark.py
alainrk/tensorflow
314d9cd9b607460f8bfea80fc828b1521ca18443
[ "Apache-2.0" ]
250
2016-12-05T10:37:17.000Z
2022-03-18T21:26:55.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.181435
80
0.598105
7ee5018c40122212f08465d1db2a4ffebd435c90
4,771
py
Python
pytorch/pytorchcv/models/fdmobilenet.py
naviocean/imgclsmob
f2993d3ce73a2f7ddba05da3891defb08547d504
[ "MIT" ]
2,649
2018-08-03T14:18:00.000Z
2022-03-31T08:08:17.000Z
pytorch/pytorchcv/models/fdmobilenet.py
naviocean/imgclsmob
f2993d3ce73a2f7ddba05da3891defb08547d504
[ "MIT" ]
95
2018-08-13T01:46:03.000Z
2022-03-13T08:38:14.000Z
pytorch/pytorchcv/models/fdmobilenet.py
naviocean/imgclsmob
f2993d3ce73a2f7ddba05da3891defb08547d504
[ "MIT" ]
549
2018-08-06T08:09:22.000Z
2022-03-31T08:08:21.000Z
""" FD-MobileNet for ImageNet-1K, implemented in PyTorch. Original paper: 'FD-MobileNet: Improved MobileNet with A Fast Downsampling Strategy,' https://arxiv.org/abs/1802.03750. """ __all__ = ['fdmobilenet_w1', 'fdmobilenet_w3d4', 'fdmobilenet_wd2', 'fdmobilenet_wd4', 'get_fdmobilenet'] import os from .mo...
30.388535
115
0.641375
22098564654fa08b908cdbe6bb1d4870790304cb
1,385
py
Python
tests/parser/types/test_operator_resolver.py
kleinschmidt/formulaic
5b38c22215565e99b4dda9ce836b71b74846d7ff
[ "MIT" ]
1
2021-04-04T09:14:03.000Z
2021-04-04T09:14:03.000Z
tests/parser/types/test_operator_resolver.py
bashtage/formulaic
bd2ad61e1f06b5ef083a9d91804a47b69cf06ae1
[ "MIT" ]
null
null
null
tests/parser/types/test_operator_resolver.py
bashtage/formulaic
bd2ad61e1f06b5ef083a9d91804a47b69cf06ae1
[ "MIT" ]
null
null
null
import pytest from formulaic.errors import FormulaParsingError, FormulaSyntaxError from formulaic.parser.types import Operator, OperatorResolver, Token OPERATOR_PLUS = Operator("+", arity=2, precedence=100, fixity='infix') OPERATOR_UNARY_MINUS = Operator("-", arity=1, precedence=100, fixity='prefix') OPERATOR_COLON =...
31.477273
80
0.670758
778a54fde2384ab830891553fd918f1c26071142
2,136
py
Python
entertainment_center.py
leslitagordita/fav_movies
6a2d74f93819823d28854148a9d3bb33135eaf69
[ "BSD-Source-Code" ]
null
null
null
entertainment_center.py
leslitagordita/fav_movies
6a2d74f93819823d28854148a9d3bb33135eaf69
[ "BSD-Source-Code" ]
null
null
null
entertainment_center.py
leslitagordita/fav_movies
6a2d74f93819823d28854148a9d3bb33135eaf69
[ "BSD-Source-Code" ]
null
null
null
# !/usr/bin/env python # coding: utf8 import fresh_tomatoes import media def main(): # instances of class Movie irma_vep = media.Movie( "Irma Vep", "Washed-up French director René Vidal Jean-Pierre Léaud", "images/irma.jpg", "https://www.youtube.com/watch?v=UtY0OBL6Tgo") collection...
35.016393
77
0.65309
4b8660fa632ed513ac3797f08ea41591d7dce125
2,748
py
Python
src/pretix/presale/forms/checkout.py
awg24/pretix
b1d67a48601838bac0d4e498cbe8bdcd16013d60
[ "ECL-2.0", "Apache-2.0" ]
1
2021-06-23T07:44:59.000Z
2021-06-23T07:44:59.000Z
src/pretix/presale/forms/checkout.py
awg24/pretix
b1d67a48601838bac0d4e498cbe8bdcd16013d60
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/presale/forms/checkout.py
awg24/pretix
b1d67a48601838bac0d4e498cbe8bdcd16013d60
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from django import forms from django.utils.translation import ugettext_lazy as _ from pretix.base.models import Question class QuestionsForm(forms.Form): """ This form class is responsible for asking order-related questions. This includes the attendee name for admission tickets, if the corresponding sett...
37.643836
86
0.557132
c35f98f494a07b57282d5faff7301127e201d148
225
py
Python
test/benchmark/fib.py
CohenArthur/wren
f81cb5d23cbf3a6bb5b83511cf6a47dcf2f130e9
[ "MIT" ]
815
2015-01-02T01:51:50.000Z
2016-08-29T11:13:59.000Z
test/benchmark/fib.py
CohenArthur/wren
f81cb5d23cbf3a6bb5b83511cf6a47dcf2f130e9
[ "MIT" ]
191
2015-01-01T05:31:31.000Z
2016-08-24T00:48:27.000Z
test/benchmark/fib.py
CohenArthur/wren
f81cb5d23cbf3a6bb5b83511cf6a47dcf2f130e9
[ "MIT" ]
40
2015-01-20T08:30:30.000Z
2016-08-11T05:13:10.000Z
from __future__ import print_function import time def fib(n): if n < 2: return n return fib(n - 1) + fib(n - 2) start = time.clock() for i in range(0, 5): print(fib(28)) print("elapsed: " + str(time.clock() - start))
18.75
46
0.64
1b499a5fd4d42d13b0a58dc32872c3634805c0c9
496
py
Python
podcast/migrations/0005_episode_guid.py
richardcornish/django-applepodcast
50732acfbe1ca258e5afb44c117a6ac5fa0c1219
[ "BSD-3-Clause" ]
7
2017-11-18T13:02:13.000Z
2021-07-31T21:55:24.000Z
podcast/migrations/0005_episode_guid.py
dmitriydef/django-applepodcast
50732acfbe1ca258e5afb44c117a6ac5fa0c1219
[ "BSD-3-Clause" ]
24
2017-07-17T21:53:58.000Z
2018-02-16T07:13:39.000Z
podcast/migrations/0005_episode_guid.py
dmitriydef/django-applepodcast
50732acfbe1ca258e5afb44c117a6ac5fa0c1219
[ "BSD-3-Clause" ]
4
2017-09-21T12:43:54.000Z
2020-07-19T21:56:30.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-20 18:33 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('podcast', '0004_auto_20170917_0503'), ] operations = [ migrations.AddField(...
23.619048
98
0.629032
682908d843715e54ddc1cf7fc6293da5586a2184
2,828
py
Python
bot/bot.py
rvg77/cinema-bot
62aba8c3bf3da9cad980548968ccbd399b1e2abc
[ "MIT" ]
1
2021-02-10T02:22:36.000Z
2021-02-10T02:22:36.000Z
bot/bot.py
rvg77/cinema-bot
62aba8c3bf3da9cad980548968ccbd399b1e2abc
[ "MIT" ]
null
null
null
bot/bot.py
rvg77/cinema-bot
62aba8c3bf3da9cad980548968ccbd399b1e2abc
[ "MIT" ]
null
null
null
import aiohttp from aiogram import Bot, types from aiogram.dispatcher import Dispatcher from aiogram.utils import executor from aiogram.dispatcher import FSMContext from aiogram.dispatcher.filters.state import State, StatesGroup from aiogram.contrib.fsm_storage.memory import MemoryStorage import credentials import phra...
32.883721
104
0.747171
a2c0810cc8a316632cbb8e33a7b88d196971ee7a
172
py
Python
test_format_of_files/test_glob.py
xiandong79/market_trades_2_OHLC_bars
4811024a92dba25c11e2e78fb20e948b2887f1d3
[ "Apache-2.0" ]
null
null
null
test_format_of_files/test_glob.py
xiandong79/market_trades_2_OHLC_bars
4811024a92dba25c11e2e78fb20e948b2887f1d3
[ "Apache-2.0" ]
null
null
null
test_format_of_files/test_glob.py
xiandong79/market_trades_2_OHLC_bars
4811024a92dba25c11e2e78fb20e948b2887f1d3
[ "Apache-2.0" ]
null
null
null
import glob import os # test whether glob gives sorted files file_list = list(glob.glob('/home/ec2-user/data/raw/BITMEX-ETHUSD-TRADES.csv.201*')) print(sorted(file_list))
24.571429
84
0.767442
90cd88f11b5b43a2463deb090f0ef0bb24c4f691
531
py
Python
final/160401043/client/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
1
2021-05-04T21:46:08.000Z
2021-05-04T21:46:08.000Z
final/160401043/client/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
null
null
null
final/160401043/client/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
null
null
null
# HAZIRLAYAN # ERENAY TOSUN - 160401043 import socket import os host = input( "\nHedef Sunucu IP'sini giriniz: " ) port = 142 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.connect((host, port)) s.send( bytes( "gecikme_suresi", encoding='utf-8' ) ) register = s.recv( 128 ) ...
19.666667
97
0.568738
ac81ecaf9e526b38ac5e088885462352b5164830
45,437
py
Python
django/views/debug.py
dnozay/django
5dcdbe95c749d36072f527e120a8cb463199ae0d
[ "BSD-3-Clause" ]
1
2019-03-26T02:49:39.000Z
2019-03-26T02:49:39.000Z
django/views/debug.py
dnozay/django
5dcdbe95c749d36072f527e120a8cb463199ae0d
[ "BSD-3-Clause" ]
null
null
null
django/views/debug.py
dnozay/django
5dcdbe95c749d36072f527e120a8cb463199ae0d
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import datetime import os import re import sys import types from django.conf import settings from django.core.urlresolvers import resolve, Resolver404 from django.http import (HttpResponse, HttpResponseNotFound, HttpRequest, build_request_repr) from django.template import T...
37.769742
251
0.593965
53bf4d4772af0f25151badc371f4ab9e1ebbd85a
194
py
Python
gallery/admin.py
Tracymbone/personal_gallery
29740cbad346ce1406c8eb14ee77fdf7cc1ca90b
[ "MIT" ]
null
null
null
gallery/admin.py
Tracymbone/personal_gallery
29740cbad346ce1406c8eb14ee77fdf7cc1ca90b
[ "MIT" ]
null
null
null
gallery/admin.py
Tracymbone/personal_gallery
29740cbad346ce1406c8eb14ee77fdf7cc1ca90b
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Location,Category,Image # Register your models here. admin.site.register(Image) admin.site.register(Location) admin.site.register(Category)
24.25
43
0.819588
a30f4abdf4fda3c8814600055bf964267347568b
29,024
py
Python
tensorflow/python/kernel_tests/embedding_ops_test.py
bhbai/tensorflow
d4b5c606fc9fbd1a20b5b113b4bc831f31d889a3
[ "Apache-2.0" ]
65
2016-09-26T01:30:40.000Z
2021-08-11T17:00:41.000Z
tensorflow/python/kernel_tests/embedding_ops_test.py
bhbai/tensorflow
d4b5c606fc9fbd1a20b5b113b4bc831f31d889a3
[ "Apache-2.0" ]
5
2017-02-21T08:37:52.000Z
2017-03-29T05:46:05.000Z
tensorflow/python/kernel_tests/embedding_ops_test.py
bhbai/tensorflow
d4b5c606fc9fbd1a20b5b113b4bc831f31d889a3
[ "Apache-2.0" ]
10
2017-02-08T21:39:27.000Z
2018-10-04T17:34:54.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.922971
80
0.666035
a41eb3882d5ba503420ad1a9e378e7f04ab5ec41
17,338
py
Python
pymatgen/io/zeo.py
rousseab/pymatgen
ecfba4a576a21f31c222be8fd20ce2ddaa77495a
[ "MIT" ]
1
2015-05-18T14:31:20.000Z
2015-05-18T14:31:20.000Z
pymatgen/io/zeo.py
rousseab/pymatgen
ecfba4a576a21f31c222be8fd20ce2ddaa77495a
[ "MIT" ]
null
null
null
pymatgen/io/zeo.py
rousseab/pymatgen
ecfba4a576a21f31c222be8fd20ce2ddaa77495a
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import division, unicode_literals, print_function """ Module implementing classes and functions to use Zeo++. Zeo++ can be obtained from http://www.maciejharanczyk.info/Zeopp/ """ from six.moves import map __author__ = "Bharat Medasani" __copyright = "Copyright 2013, The Materials Pr...
36.501053
80
0.595743
4f5d448962295eb37716891ea460566a31306b04
846
py
Python
src/geotechnicalprofile/cli.py
bvdscheer/python-geotechnical-profile
3b75239b9f725a601296358a748cddaf91f8d161
[ "BSD-3-Clause" ]
6
2018-10-06T21:17:00.000Z
2021-11-08T13:10:15.000Z
src/geotechnicalprofile/cli.py
bvdscheer/python-geotechnical-profile
3b75239b9f725a601296358a748cddaf91f8d161
[ "BSD-3-Clause" ]
null
null
null
src/geotechnicalprofile/cli.py
bvdscheer/python-geotechnical-profile
3b75239b9f725a601296358a748cddaf91f8d161
[ "BSD-3-Clause" ]
3
2019-09-24T11:37:33.000Z
2021-07-11T20:21:46.000Z
""" Module that contains the command line app. Why does this file exist, and why not put this in __main__? You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - When you run `python -mgeotechnicalprofile` python will execute ``__main__....
26.4375
80
0.686761
3c2acb9f218f8f510722fd8efe1e4ea24b558275
486
py
Python
contests/ccpc20cc/a3.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
contests/ccpc20cc/a3.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
contests/ccpc20cc/a3.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # brute-force or 01 backpack! pl = [648,328,198,88,28, 6,1] rl = [388,198,128,58,28,18,8] def f(n): awards = [0] yuan = [n] for i in range(7): na = [] ny = [] for j in range(len(yuan)): if yuan[j]>=pl[i]: na.append(awards[j]+r...
21.130435
42
0.465021
47324ca3bf5976cb89417227a3a75b3ea2d265eb
6,332
py
Python
alipay/aop/api/domain/AlipayEcoMycarVehicleServicenotifySendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayEcoMycarVehicleServicenotifySendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayEcoMycarVehicleServicenotifySendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.VehicleToken import VehicleToken class AlipayEcoMycarVehicleServicenotifySendModel(object): def __init__(self): self._merchant_status_code = None self._mercha...
35.177778
101
0.638187
67ad413d5413a32e19e75d19cbdd48aeb79a6ad9
837
py
Python
Data/biomaker_fayre/1/get_ndvi.py
Biomaker/22_DIY_plant_multispectral_imager
8357d79cbefda663df5caa30368cfec47681c0a6
[ "MIT" ]
9
2020-03-19T11:02:48.000Z
2022-02-01T13:50:26.000Z
Data/biomaker_fayre/3/get_ndvi.py
BioMakers/22_DIY_plant_multispectral_imager
8357d79cbefda663df5caa30368cfec47681c0a6
[ "MIT" ]
null
null
null
Data/biomaker_fayre/3/get_ndvi.py
BioMakers/22_DIY_plant_multispectral_imager
8357d79cbefda663df5caa30368cfec47681c0a6
[ "MIT" ]
1
2021-09-22T08:14:50.000Z
2021-09-22T08:14:50.000Z
def get_ndvi(image1, image2, out_file): """ A function that takes an RGB image and a NIR image. Calculates NDVI Based on NIR being the average of the three channels in the NIR image """ from scipy import misc import numpy as np # Read in data im1 = misc.imread(image1) im2 = misc.imread(image2) ndvi_im =...
28.862069
80
0.663082
34d71e9b458e76cbbf02d268a679317ea41ea5de
2,985
py
Python
lambda/us-east-1_Numbers_Trivia/ask_sdk_model/interfaces/display/display_state.py
Techievena/Numbers_Trivia
e86daaf7e7bc2c80c703c8496daea6317e986204
[ "MIT" ]
1
2019-02-04T21:07:06.000Z
2019-02-04T21:07:06.000Z
lambda/us-east-1_Numbers_Trivia/ask_sdk_model/interfaces/display/display_state.py
Techievena/Numbers_Trivia
e86daaf7e7bc2c80c703c8496daea6317e986204
[ "MIT" ]
9
2020-03-24T16:32:57.000Z
2022-03-11T23:37:22.000Z
lambda/us-east-1_Numbers_Trivia/ask_sdk_model/interfaces/display/display_state.py
Techievena/Numbers_Trivia
e86daaf7e7bc2c80c703c8496daea6317e986204
[ "MIT" ]
null
null
null
# 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 in the "lice...
28.160377
96
0.560134
bf98b8165803b599b741783b806fa520411298ca
10,677
py
Python
experiments/scenario-pyramid/scenario-pyramid.py
zanderhavgaard/thesis-code
d9f193e622b8b98ec88c33006f8e0e1dbb3d17fc
[ "MIT" ]
null
null
null
experiments/scenario-pyramid/scenario-pyramid.py
zanderhavgaard/thesis-code
d9f193e622b8b98ec88c33006f8e0e1dbb3d17fc
[ "MIT" ]
2
2020-04-28T07:59:30.000Z
2020-05-17T15:36:04.000Z
experiments/scenario-pyramid/scenario-pyramid.py
zanderhavgaard/thesis-code
d9f193e622b8b98ec88c33006f8e0e1dbb3d17fc
[ "MIT" ]
null
null
null
import sys import json import time from datetime import datetime import traceback from benchmarker import Benchmarker from mysql_interface import SQL_Interface as database import function_lib as lib import threading as th from concurrent.futures import ThreadPoolExecutor, wait, as_completed from functools import reduc...
39.253676
143
0.597265
0a09d0bab4266fd734c5621769d5bf5cc47a07eb
760
py
Python
resource/translations/dump_qm_files.py
randalhsu/LotR-LCG
a0c889990230a30d576cab466c2353672ce80c81
[ "CNRI-Python" ]
null
null
null
resource/translations/dump_qm_files.py
randalhsu/LotR-LCG
a0c889990230a30d576cab466c2353672ce80c81
[ "CNRI-Python" ]
null
null
null
resource/translations/dump_qm_files.py
randalhsu/LotR-LCG
a0c889990230a30d576cab466c2353672ce80c81
[ "CNRI-Python" ]
null
null
null
'''run pylupdate4 to extract translation strings, then run lrelease to compile *.qm files.''' '''qt_*.qm files are from PyQt 4.9.1''' import glob import subprocess # dump all source file paths s = 'SOURCES += ../../Launcher.py ' sourceList = glob.glob('../../LotRLCG/*.py') for sourcePath in sourceList: sourcePath...
29.230769
93
0.669737
0ddd60a4586e03dfcc0176759093ebf76b8c834f
14,953
py
Python
torchvision/io/video.py
ain-soph/vision
e250db371c603cd91bb67bd63f6498eb81d6117a
[ "BSD-3-Clause" ]
2
2021-04-01T17:19:21.000Z
2021-04-01T18:04:08.000Z
torchvision/io/video.py
ain-soph/vision
e250db371c603cd91bb67bd63f6498eb81d6117a
[ "BSD-3-Clause" ]
null
null
null
torchvision/io/video.py
ain-soph/vision
e250db371c603cd91bb67bd63f6498eb81d6117a
[ "BSD-3-Clause" ]
1
2021-07-27T14:13:50.000Z
2021-07-27T14:13:50.000Z
import gc import math import os import re import warnings from fractions import Fraction from typing import Any, Dict, List, Optional, Tuple, Union import numpy as np import torch from . import _video_opt try: import av av.logging.set_level(av.logging.ERROR) if not hasattr(av.video.frame.VideoFrame, "p...
36.739558
117
0.621548
640bb8eea1eb4fa113d04223e129650f96df0de0
2,513
py
Python
nex/parsing/character_rules.py
eddiejessup/nex
d61005aacb3b87f8cf1a1e2080ca760d757d5751
[ "MIT" ]
null
null
null
nex/parsing/character_rules.py
eddiejessup/nex
d61005aacb3b87f8cf1a1e2080ca760d757d5751
[ "MIT" ]
null
null
null
nex/parsing/character_rules.py
eddiejessup/nex
d61005aacb3b87f8cf1a1e2080ca760d757d5751
[ "MIT" ]
null
null
null
from ..tokens import BuiltToken from . import utils as pu def add_character_rules(pg): @pg.production('one_optional_space : SPACE') @pg.production('one_optional_space : empty') def one_optional_space(p): return None @pg.production('character : MISC_CHAR_CAT_PAIR') @pg.production('charact...
39.888889
75
0.695583
a90ae1ce35b0edd5b689d1cc8b510c6694f9363f
4,249
py
Python
feature_generation/process_data.py
AxelGoetz/website-fingerprinting
17b1c8d485c48fee2d1f963eeba7a03ddf8e4fc6
[ "Apache-2.0" ]
26
2017-08-26T15:54:21.000Z
2022-03-03T03:38:07.000Z
feature_generation/process_data.py
henghengxiong/website-fingerprinting
17b1c8d485c48fee2d1f963eeba7a03ddf8e4fc6
[ "Apache-2.0" ]
null
null
null
feature_generation/process_data.py
henghengxiong/website-fingerprinting
17b1c8d485c48fee2d1f963eeba7a03ddf8e4fc6
[ "Apache-2.0" ]
9
2017-12-30T14:23:05.000Z
2022-01-25T11:33:01.000Z
""" Pulls all of the data in the ../data directory into memory """ from os import scandir, path from sys import stdout, exit from helpers import read_cell_file import numpy as np # CONSTANTS dirname, _ = path.split(path.abspath(__file__)) DATA_DIR = dirname + '/../data/cells' UNKNOWN_WEBPAGE = -1 def update_proges...
29.303448
92
0.624853
bc345faab78211ed828b706c2625e8d2c5704ebd
1,535
py
Python
detector/categorizer_api.py
vincealdrin/Tutu
05cf7e9cca8bb95c3bce782d6d899a3b0525bd10
[ "MIT" ]
4
2018-09-30T11:27:40.000Z
2019-06-28T14:53:03.000Z
detector/categorizer_api.py
vincealdrin/Tutu
05cf7e9cca8bb95c3bce782d6d899a3b0525bd10
[ "MIT" ]
15
2017-11-19T16:10:13.000Z
2022-03-08T22:49:23.000Z
detector/categorizer_api.py
vincealdrin/Tutu
05cf7e9cca8bb95c3bce782d6d899a3b0525bd10
[ "MIT" ]
5
2017-11-17T19:52:30.000Z
2021-08-10T08:57:14.000Z
import pickle from flask import Flask, request, jsonify clf = pickle.load(open('categorizer.pkl', 'rb')) app = Flask(__name__) a = """ University of the Philippines started its new era under new Kenyan head coach Godfrey Okumu with a 25-19, 25-13, 21-25, 16-25, 15-8 win over University of the East in the UAAP Season...
40.394737
245
0.742671
291fb3e6388685c6810bee66ae28ccb1e67a2b36
2,336
py
Python
grasshopper_model/app.py
Mluminance/model
412a64af7d685e468f8d174225ba597aa90967d6
[ "MIT" ]
null
null
null
grasshopper_model/app.py
Mluminance/model
412a64af7d685e468f8d174225ba597aa90967d6
[ "MIT" ]
null
null
null
grasshopper_model/app.py
Mluminance/model
412a64af7d685e468f8d174225ba597aa90967d6
[ "MIT" ]
1
2021-12-16T22:34:05.000Z
2021-12-16T22:34:05.000Z
from flask import Flask import ghhops_server as hs import os import numpy as np from tensorflow.keras.models import model_from_json from tensorflow.keras.layers import Activation, LeakyReLU from keras.utils.generic_utils import get_custom_objects get_custom_objects().update({'leaky-relu': Activation(LeakyReLU(alpha=0...
36.5
109
0.627568
c591d5a9eeccf658d992e6e21b8983b7e0ff9851
784
py
Python
sources/praline/common/pralinefile/validation/mandatory_fields_validator.py
dansandu/praline
f1e87c8048787480262b330e6cc6d92d473eb50c
[ "MIT" ]
null
null
null
sources/praline/common/pralinefile/validation/mandatory_fields_validator.py
dansandu/praline
f1e87c8048787480262b330e6cc6d92d473eb50c
[ "MIT" ]
null
null
null
sources/praline/common/pralinefile/validation/mandatory_fields_validator.py
dansandu/praline
f1e87c8048787480262b330e6cc6d92d473eb50c
[ "MIT" ]
null
null
null
from praline.common.constants import mandatory_fields from praline.common.pralinefile.validation.validator import PralinefileValidationError, validator from typing import Any, Dict @validator def validate_mandatory_fields(pralinefile: Dict[str, Any]): for mandatory_field in mandatory_fields: if mandatory_...
49
137
0.769133
459bfbdef307d4d94007c0a65a4c5fa9de426f65
33,036
py
Python
test/functional/rpc_fundrawtransaction.py
luckycoinblu/luckycoinoro
40524d4143ab67def698ccbd87ad6a3885d5720e
[ "MIT" ]
null
null
null
test/functional/rpc_fundrawtransaction.py
luckycoinblu/luckycoinoro
40524d4143ab67def698ccbd87ad6a3885d5720e
[ "MIT" ]
1
2022-01-27T01:34:48.000Z
2022-01-27T01:59:47.000Z
test/functional/rpc_fundrawtransaction.py
luckycoinblu/luckycoinoro
40524d4143ab67def698ccbd87ad6a3885d5720e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the fundrawtransaction RPC.""" from decimal import Decimal from test_framework.test_framework imp...
44.764228
214
0.575191
39e894cd8b24e0990fd59c9f01add7f34dd4c003
16,040
py
Python
facebook_business/test/integration_adaccount.py
MyrikLD/facebook-python-business-sdk
a53c8ba0e8f7d0b41b385c60089f6ba00fa5c814
[ "CNRI-Python" ]
576
2018-05-01T19:09:32.000Z
2022-03-31T11:45:11.000Z
facebook_business/test/integration_adaccount.py
MyrikLD/facebook-python-business-sdk
a53c8ba0e8f7d0b41b385c60089f6ba00fa5c814
[ "CNRI-Python" ]
217
2018-05-03T07:31:59.000Z
2022-03-29T14:19:52.000Z
facebook_business/test/integration_adaccount.py
MyrikLD/facebook-python-business-sdk
a53c8ba0e8f7d0b41b385c60089f6ba00fa5c814
[ "CNRI-Python" ]
323
2018-05-01T20:32:26.000Z
2022-03-29T07:05:12.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
41.554404
140
0.612032