hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7466e603bb5978e7bf69966675862cf25f2d246c
9,046
py
Python
boiler/testing/testcase.py
projectshift/shift-boiler
5f1d236b97fc814ba72897fa8bc76c7518bd1919
[ "MIT" ]
19
2016-08-06T20:06:21.000Z
2020-10-22T08:31:49.000Z
boiler/testing/testcase.py
projectshift/shift-boiler
5f1d236b97fc814ba72897fa8bc76c7518bd1919
[ "MIT" ]
104
2016-07-31T19:45:00.000Z
2021-09-15T08:13:36.000Z
boiler/testing/testcase.py
projectshift/shift-boiler
5f1d236b97fc814ba72897fa8bc76c7518bd1919
[ "MIT" ]
1
2017-12-30T09:07:38.000Z
2017-12-30T09:07:38.000Z
import os, unittest, json from contextlib import contextmanager from flask import current_app from werkzeug.http import parse_cookie def patch_config(self): """ Patch config An extension to blinker namespace that provides a context manager for testing, which allows to temporarily disconnect all receiv...
33.014599
81
0.591201
7466fc9d0997508e6d862eb3b23925a03869b3dc
650
py
Python
fingerExercises/fingerExercises-02/02.4-finger.fourth-power.py
sodaPhix/MITx-6.00.1x
8629e227d250cf6c2d5ca56944668b5796ce78cf
[ "MIT" ]
1
2019-10-06T22:58:39.000Z
2019-10-06T22:58:39.000Z
fingerExercises/fingerExercises-02/02.4-finger.fourth-power.py
sodaPhix/MITx-6.00.1x
8629e227d250cf6c2d5ca56944668b5796ce78cf
[ "MIT" ]
null
null
null
fingerExercises/fingerExercises-02/02.4-finger.fourth-power.py
sodaPhix/MITx-6.00.1x
8629e227d250cf6c2d5ca56944668b5796ce78cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Oct 7 01:52:53 2019 @author: sodatab MITx: 6.00.1x """ """ 02.4-Finger Fourth Power ------------------------- Write a Python function, fourthPower, that takes in one number and returns that value raised to the fourth power. You should use the square...
24.074074
182
0.669231
746730ba803e181606f8c95011ce46d382036811
1,806
py
Python
spectral_parser/training/rule.py
GavinPHR/Spectral-Parser
4d1f071f29ac158e67f32a105aa6483c6479fae8
[ "MIT" ]
4
2021-03-18T10:03:14.000Z
2021-05-05T21:37:59.000Z
spectral_parser/training/rule.py
GavinPHR/Spectral-Parser
4d1f071f29ac158e67f32a105aa6483c6479fae8
[ "MIT" ]
null
null
null
spectral_parser/training/rule.py
GavinPHR/Spectral-Parser
4d1f071f29ac158e67f32a105aa6483c6479fae8
[ "MIT" ]
1
2021-03-18T10:03:18.000Z
2021-03-18T10:03:18.000Z
""" Encapsulate rules in a single 64-bit integer. See section 3.2.2 in my dissertation. """ import config __author__ = 'Haoran Peng' __email__ = 'gavinsweden@gmail.com' __license__ = 'MIT' def hash_forward(a, b, c): """ 20 bits for each position, should be more than enough for any grammar """ return ...
22.296296
73
0.557586
74675d2240b9fa8b4316c3cfadf35d3d2b2fa02a
5,425
py
Python
problems/catvsdog.py
marianosimone/interviewed
adb58d8ca9cd300d621cce04ce5d9338885c4c63
[ "Unlicense" ]
4
2019-04-26T14:58:33.000Z
2022-02-15T20:12:02.000Z
problems/catvsdog.py
marianosimone/interviewed
adb58d8ca9cd300d621cce04ce5d9338885c4c63
[ "Unlicense" ]
null
null
null
problems/catvsdog.py
marianosimone/interviewed
adb58d8ca9cd300d621cce04ce5d9338885c4c63
[ "Unlicense" ]
2
2016-06-15T23:52:39.000Z
2021-07-30T11:35:46.000Z
# coding=utf-8 # Problem: Cats vs Dogs # # Description: # # The latest reality show has hit the TV: "Cat vs. Dog". # In this show, a bunch of cats and dogs compete for the very prestigious Best Pet Ever title. # In each episode, the cats and dogs get to show themselves off, # after which the viewers vote on which pets...
36.904762
139
0.665806
74676d10278032cb6b3397e1903716a1fde1c1e9
3,297
py
Python
neuro-cli/src/neuro_cli/formatters/bucket_credentials.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
11
2020-10-11T15:38:11.000Z
2021-11-09T11:29:50.000Z
neuro-cli/src/neuro_cli/formatters/bucket_credentials.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
611
2020-09-30T21:27:52.000Z
2022-01-10T10:44:44.000Z
neuro-cli/src/neuro_cli/formatters/bucket_credentials.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
1
2020-10-05T15:10:24.000Z
2020-10-05T15:10:24.000Z
import abc import operator from typing import Awaitable, Callable, Sequence from rich import box from rich.console import RenderableType, RenderGroup from rich.styled import Styled from rich.table import Table from rich.text import Text from neuro_sdk import Bucket, PersistentBucketCredentials class BaseBucketCrede...
35.074468
88
0.664544
7467bd98661504b4dba09ee4ff47c237e57d9861
4,999
py
Python
tests/test_etalon_validation.py
mrupgini/upgini
b99ffe2791e7b4b52ac1fd825666fda8c7e5e2ad
[ "BSD-3-Clause" ]
null
null
null
tests/test_etalon_validation.py
mrupgini/upgini
b99ffe2791e7b4b52ac1fd825666fda8c7e5e2ad
[ "BSD-3-Clause" ]
null
null
null
tests/test_etalon_validation.py
mrupgini/upgini
b99ffe2791e7b4b52ac1fd825666fda8c7e5e2ad
[ "BSD-3-Clause" ]
null
null
null
import ipaddress from datetime import date, datetime import pandas as pd import pytest from upgini import Dataset, FileColumnMeaningType def test_etalon_validation(etalon: Dataset): Dataset.MIN_ROWS_COUNT = 3 etalon.validate() assert "is_valid" in etalon.columns count = len(etalon) valid_count =...
29.063953
89
0.610122
7467d3a9ef9d7a9de52a7ff6f9d5f7167d6c90d5
2,691
py
Python
allocation/sats/brute_force.py
gabrielpereiram10/allocation
24bc33ca4b3377ebb02f9c4d2f6a878aa46bac14
[ "MIT" ]
null
null
null
allocation/sats/brute_force.py
gabrielpereiram10/allocation
24bc33ca4b3377ebb02f9c4d2f6a878aa46bac14
[ "MIT" ]
null
null
null
allocation/sats/brute_force.py
gabrielpereiram10/allocation
24bc33ca4b3377ebb02f9c4d2f6a878aa46bac14
[ "MIT" ]
null
null
null
from typing import Union, Set from allocation.protocols.sat import SAT from allocation.protocols.types import Interpretation from allocation.entities.formula import Formula, Atom, Not, And from allocation.utils.propositional_logic.functions import atoms from allocation.utils.propositional_logic.semantics import truth...
37.375
106
0.651059
7467ea53f5d1160fe0816448ba037c00cb2220ac
2,779
py
Python
finance_data_scraper/androrithm.py
Nostrademous/Finance-Data-Scraper-API
8e407a7db2cd6089dc19d87492fd7076e0a1f352
[ "MIT" ]
1
2017-09-22T23:38:29.000Z
2017-09-22T23:38:29.000Z
finance_data_scraper/androrithm.py
Nostrademous/Finance-Data-Scraper-API
8e407a7db2cd6089dc19d87492fd7076e0a1f352
[ "MIT" ]
2
2021-06-23T01:32:08.000Z
2021-06-23T01:32:56.000Z
finance_data_scraper/androrithm.py
Nostrademous/Finance-Data-Scraper-API
8e407a7db2cd6089dc19d87492fd7076e0a1f352
[ "MIT" ]
1
2017-10-07T08:38:41.000Z
2017-10-07T08:38:41.000Z
import threading import queue import time import json from datetime import datetime from requests import get from scrapers import finviz, stocktwits, zacks global exitFlag, eod_data, workQueue, queueLock class myThread (threading.Thread): def __init__(self, threadID, name, q): threading.Thread.__init__(self...
25.495413
104
0.600936
746801010563482f4ee465e622160c6938a10756
4,038
py
Python
maddpg/multiagent/scenarios/simple_spread.py
hogansung/deep-reinforcement-learning
5170ca42bdfdb16cc5c2b86c61bee304015a6254
[ "MIT" ]
null
null
null
maddpg/multiagent/scenarios/simple_spread.py
hogansung/deep-reinforcement-learning
5170ca42bdfdb16cc5c2b86c61bee304015a6254
[ "MIT" ]
null
null
null
maddpg/multiagent/scenarios/simple_spread.py
hogansung/deep-reinforcement-learning
5170ca42bdfdb16cc5c2b86c61bee304015a6254
[ "MIT" ]
null
null
null
import numpy as np from multiagent.core import World, Agent, Landmark from multiagent.scenario import BaseScenario class Scenario(BaseScenario): def make_world(self): world = World() # set any world properties first world.dim_c = 2 num_agents = 3 num_landmarks = 3 ...
36.709091
104
0.568103
74680746f126abdfb61653c233e9bfdeb66a5870
11,652
py
Python
demos/robot/comparison_local_robot.py
birfan/openface
3328af0111700717f1cb60b034b12c6c9c4e0c6c
[ "Apache-2.0" ]
null
null
null
demos/robot/comparison_local_robot.py
birfan/openface
3328af0111700717f1cb60b034b12c6c9c4e0c6c
[ "Apache-2.0" ]
null
null
null
demos/robot/comparison_local_robot.py
birfan/openface
3328af0111700717f1cb60b034b12c6c9c4e0c6c
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python """ /******************************************************************************* * Copyright (c) 2016-present, Bahar Irfan. All rights reserved. * * * * This code is the local version for comparison...
43.804511
177
0.608479
74680eca3da4f1075b4bfe0b737e16099f07bd07
3,264
py
Python
samples/PorterStemmerAnalyzer.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
samples/PorterStemmerAnalyzer.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
samples/PorterStemmerAnalyzer.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
# ==================================================================== # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
41.846154
99
0.688725
74682981999f78446c10c0c70f08b87e5d23090c
127
py
Python
CrySPY/gen_struc/random/__init__.py
ruoitrau86/CrySPY
84cc0c663a6ecc73ff89d0d2893424ecf3faae50
[ "MIT" ]
null
null
null
CrySPY/gen_struc/random/__init__.py
ruoitrau86/CrySPY
84cc0c663a6ecc73ff89d0d2893424ecf3faae50
[ "MIT" ]
null
null
null
CrySPY/gen_struc/random/__init__.py
ruoitrau86/CrySPY
84cc0c663a6ecc73ff89d0d2893424ecf3faae50
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ---------- directory from . import with_spg, wo_spg # ---------- file from . import gen_cell, rndgen
21.166667
30
0.559055
74686e875a0bc7399c293a49a492d29c9724abc8
15,111
py
Python
savu/plugins/filters/denoising/ccpi_denoising_cpu_3D_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/plugins/filters/denoising/ccpi_denoising_cpu_3D_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/plugins/filters/denoising/ccpi_denoising_cpu_3D_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
from savu.plugins.plugin_tools import PluginTools class CcpiDenoisingCpu3dTools(PluginTools): """Wrapper for CCPi-Regularisation Toolkit (CPU) for efficient 2D/3D denoising. """ def define_parameters(self): """ method: visibility: advanced dtype: str o...
34.898383
133
0.498048
7468a5351c073e97518c11ee1c4f7677c7eba9a2
17,516
py
Python
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/aio/operations/_api_policy_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/aio/operations/_api_policy_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/aio/operations/_api_policy_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 ...
45.614583
214
0.680178
7468d4c615b72cf1cce8c9812ccdd197defff7ce
1,287
py
Python
backend/backend/sql/user_key.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
2
2022-03-17T04:50:20.000Z
2022-03-17T04:51:31.000Z
backend/backend/sql/user_key.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
backend/backend/sql/user_key.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING from common.sql.datetime import DateTime from common.sql.protobuf import Protobuf from common.sql.protobuf_enum import ProtobufEnum from common.sql.uuid import UUID from common.utils.datetime import get_current_datetime from common.utils.uuid import generate_uuid4 from protobufs.webaut...
40.21875
87
0.798757
74694de3cc8366e2ac5f491b32cd4d429f941a96
721
py
Python
qcdb/intf_gamess/plant.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
qcdb/intf_gamess/plant.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
qcdb/intf_gamess/plant.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
def gamess_list(): """Return an array of gamess methods with energies. Appended to procedures['energy']. """ val = [] val.append('gamess') val.append('gms-gamess') val.append('gms-makefp') val.append('gms-efp') val.append('gms-scf') val.append...
24.862069
68
0.538141
74697b54dff0abbb1792175d519be3cae79b30ea
237
py
Python
graphic_templates/state_grid_map/graphic_config.py
cerealcommas/mashgraphics
ac17781736e64cf7b9b2601fd10e8772ebc7b306
[ "MIT" ]
null
null
null
graphic_templates/state_grid_map/graphic_config.py
cerealcommas/mashgraphics
ac17781736e64cf7b9b2601fd10e8772ebc7b306
[ "MIT" ]
null
null
null
graphic_templates/state_grid_map/graphic_config.py
cerealcommas/mashgraphics
ac17781736e64cf7b9b2601fd10e8772ebc7b306
[ "MIT" ]
null
null
null
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '1ziElH1MyApA1ftqurhZcTq8vkWOJmO4G92_KfhrOFfo' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300
23.7
77
0.805907
74698f52ad09dc55b60af9ea03f2cbe64665fbc3
6,877
py
Python
tests/integration/modules/pip.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
tests/integration/modules/pip.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
tests/integration/modules/pip.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` :copyright: © 2012-2013 by the SaltStack Team, see AUTHORS for more details :license: Apache 2.0, see LICENSE for more details. tests.integration.modules.pip ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ''' # Import python libs ...
33.383495
79
0.58194
7469bd89e8542b3e53e5a187f08ca39469ee0f14
2,226
py
Python
libs/applibs/compendium/c16transportation.py
olom70/kutpMD
2502ce151a0170504b7aa9581d081c755848f060
[ "MIT" ]
null
null
null
libs/applibs/compendium/c16transportation.py
olom70/kutpMD
2502ce151a0170504b7aa9581d081c755848f060
[ "MIT" ]
4
2021-06-08T21:33:38.000Z
2022-03-12T00:29:28.000Z
libs/applibs/compendium/c16transportation.py
olom70/kutpMD
2502ce151a0170504b7aa9581d081c755848f060
[ "MIT" ]
null
null
null
import os import sys import libs.applibs.compendium.abstractcompendium as abstractcompendium class Transportation(abstractcompendium.Compendium): def __init__(self): super().__init__() self.metValue = {16010 : 2.5 ,16015 : 1.3 ,16016 : 1.3 ,16020 : 1.8 ...
40.472727
194
0.59434
7469e21c5fdeb7f98f3bc218472655154225aac9
1,183
py
Python
supriya/ugens/LocalIn.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/LocalIn.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/LocalIn.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya import utils from supriya.enums import CalculationRate from supriya.synthdefs import MultiOutUGen class LocalIn(MultiOutUGen): """ A SynthDef-local bus input. :: >>> supriya.ugens.LocalIn.ar(channel_count=2) UGenArray({2}) """ ### CLASS VARIABLE...
25.170213
79
0.67033
7469ea062974a8222ba6e53def8b4719c1a5c484
4,359
py
Python
experiments/sasha/pybullet_testing/vae.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/sasha/pybullet_testing/vae.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/sasha/pybullet_testing/vae.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from rlkit.launchers.contextual.rig.rig_launcher import ( rig_experiment, process_args ) from rlkit.launchers.launcher_util import run_experiment from rlkit.launchers.arglauncher import run_variants from rlkit.torch.vae.conv_vae import imsize48_default_architecture_with_more...
33.530769
121
0.596238
746a06383e3090eb344580e827f8f7cb979e7d9b
832
py
Python
nicos_virt_mlz/reseda/setups/special/watchdog.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_virt_mlz/reseda/setups/special/watchdog.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_virt_mlz/reseda/setups/special/watchdog.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'setup for the NICOS watchdog' group = 'special' watchlist = [ dict(condition = 'LogSpace_value < .5', message = 'Disk space for the log files becomes too low.', type = 'critical', gracetime = 30, ), dict( condition = '(sixfold_value == "closed" or nl5_value...
26.83871
75
0.570913
746a07116ecbc95bdf8e81c8aacf54468ccd1978
29,095
py
Python
geoopt/manifolds/base.py
tao-harald/geoopt
d6fea4d44f146877c5a430e9fd6ba0fb7e821b92
[ "Apache-2.0" ]
438
2019-03-05T11:24:03.000Z
2022-03-31T14:46:42.000Z
geoopt/manifolds/base.py
tao-harald/geoopt
d6fea4d44f146877c5a430e9fd6ba0fb7e821b92
[ "Apache-2.0" ]
98
2019-03-07T21:38:24.000Z
2022-03-25T10:48:45.000Z
geoopt/manifolds/base.py
tao-harald/geoopt
d6fea4d44f146877c5a430e9fd6ba0fb7e821b92
[ "Apache-2.0" ]
58
2019-04-13T04:52:16.000Z
2022-03-14T09:26:00.000Z
import abc import torch.nn import itertools from typing import Optional, Tuple, Union __all__ = ["Manifold", "ScalingInfo"] class ScalingInfo(object): """ Scaling info for each argument that requires rescaling. .. code:: python scaled_value = value * scaling ** power if power != 0 else value ...
30.529906
117
0.558996
746a11830bbd850500df91f637e4d49680bdff67
2,869
py
Python
eth/exceptions.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
5
2018-09-28T20:01:42.000Z
2022-02-22T19:54:46.000Z
eth/exceptions.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
null
null
null
eth/exceptions.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
2
2018-12-09T15:58:11.000Z
2020-09-29T07:10:21.000Z
class PyEVMError(Exception): """ Base class for all py-evm errors. """ pass class VMNotFound(PyEVMError): """ Raised when no VM is available for the provided block number. """ pass class StateRootNotFound(PyEVMError): """ Raised when the requested state root is not present in...
18.158228
82
0.654583
746a1e68261db3ecd1451a3ea4e38cd23c480eb1
46,777
py
Python
SCRAPE/Lib/site-packages/IPython/core/tests/test_completer.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
2
2022-02-26T11:19:40.000Z
2022-03-28T08:23:25.000Z
SCRAPE/Lib/site-packages/IPython/core/tests/test_completer.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
SCRAPE/Lib/site-packages/IPython/core/tests/test_completer.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1
2022-03-28T09:19:34.000Z
2022-03-28T09:19:34.000Z
# encoding: utf-8 """Tests for the IPython tab-completion machinery.""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. import os import pytest import sys import textwrap import unittest from contextlib import contextmanager from traitlets.config.loader import Co...
36.659091
122
0.570387
746a2a45c3911572a76d82704e422a17f29ee2fb
1,359
py
Python
superset/dataframe.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
11
2018-01-16T16:52:12.000Z
2020-06-12T12:17:03.000Z
superset/dataframe.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
108
2019-06-10T05:48:22.000Z
2021-07-26T04:20:03.000Z
superset/dataframe.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
4
2018-01-31T00:11:50.000Z
2019-12-26T04:11:52.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.75
65
0.711553
746a985092a12c1cde0d4e078a51e93f6827b7cc
1,619
py
Python
bootcamp/wiki/plugins/images/migrations/0001_initial.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
bootcamp/wiki/plugins/images/migrations/0001_initial.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
bootcamp/wiki/plugins/images/migrations/0001_initial.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import wiki.plugins.images.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wiki', '0001_initial'), ] operations = [ migrations.CreateModel( name='Image',...
38.547619
201
0.591106
746a9b6f7932b242df2ef3e23a521031e5be1d43
50
py
Python
spikeforest/widgets/__init__.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
spikeforest/widgets/__init__.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
spikeforest/widgets/__init__.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
from .batchmonitorwidget import BatchMonitorWidget
50
50
0.92
746ad4ac5314f66ef2a9e7ae656ef6ce8d241515
2,196
py
Python
src/cfiddle/Toolchain/Clang.py
NVSL/fiddle
5edffa92caa0894057a449ad5accb23af748e657
[ "MIT" ]
2
2022-01-22T06:12:52.000Z
2022-01-24T07:29:44.000Z
src/cfiddle/Toolchain/Clang.py
NVSL/cfiddle
5edffa92caa0894057a449ad5accb23af748e657
[ "MIT" ]
null
null
null
src/cfiddle/Toolchain/Clang.py
NVSL/cfiddle
5edffa92caa0894057a449ad5accb23af748e657
[ "MIT" ]
null
null
null
import re import collections import copy from ..util import invoke_process from .Toolchain import Toolchain from .Registry import TheToolchainRegistry from .Exceptions import * class LinuxToolchain(Toolchain): def get_asm_function_bookends(self, function): return self._asm_function_bookends(function) ...
34.857143
122
0.637523
746b008b4c0e94db8582289aa36257e22a433e39
488
py
Python
demos/ext.py
eukreign/python-v8
f20d7bef766a2ae3573cc536e7d03e07afe9b173
[ "Apache-2.0" ]
2
2018-02-12T22:34:09.000Z
2019-01-03T05:18:00.000Z
demos/ext.py
eukreign/python-v8
f20d7bef766a2ae3573cc536e7d03e07afe9b173
[ "Apache-2.0" ]
null
null
null
demos/ext.py
eukreign/python-v8
f20d7bef766a2ae3573cc536e7d03e07afe9b173
[ "Apache-2.0" ]
3
2019-02-13T08:00:06.000Z
2020-05-17T22:40:20.000Z
#!/usr/bin/env python from PyV8 import * firstSrc = "function hello(s) { return 'hello ' + s; }" firstPy = JSExtension("hello/javascript", firstSrc, register=False) firstPy.register() secondSrc = "native function title(s);" secondPy = JSExtension("title/python", secondSrc, lambda secondfunc: lambda name: "M...
32.533333
113
0.70082
746b0adc0b3757e32e1b1386c5451158579eeca4
3,304
py
Python
easee/site.py
Hellowlol/easee
0f88fa0ff972807094f28ef52ff0c336832d9207
[ "MIT" ]
null
null
null
easee/site.py
Hellowlol/easee
0f88fa0ff972807094f28ef52ff0c336832d9207
[ "MIT" ]
null
null
null
easee/site.py
Hellowlol/easee
0f88fa0ff972807094f28ef52ff0c336832d9207
[ "MIT" ]
null
null
null
import logging from typing import Any, Dict, List from .utils import BaseDict from .charger import Charger _LOGGER = logging.getLogger(__name__) class Circuit(BaseDict): def __init__(self, data: Dict[str, Any], site: Any, easee: Any): super().__init__(data) self.id: int = data["id"] self...
37.123596
110
0.621368
746b0b58181d1f586a5252107ae19b2def62ac7b
48,656
py
Python
ImplantHandler.py
rolen/PoshC2_Python
8e40bdf7d73671950a68f04a8180a652db734ec0
[ "BSD-3-Clause" ]
null
null
null
ImplantHandler.py
rolen/PoshC2_Python
8e40bdf7d73671950a68f04a8180a652db734ec0
[ "BSD-3-Clause" ]
null
null
null
ImplantHandler.py
rolen/PoshC2_Python
8e40bdf7d73671950a68f04a8180a652db734ec0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import os, time, readline, base64, re, traceback, glob, sys, argparse, shlex, signal import datetime from datetime import datetime, timedelta from sqlite3 import Error from Help import * from AutoLoads import * from DB import * from Colours import * from Config import * from HTML import * from TabCo...
41.198984
551
0.616635
746b0cf4e31ca077d20683e69ea184019ba57c9f
1,797
py
Python
PREP_CAOM/obsolete/add_unique_xml.py
spacetelescope/MAST_HLSP
48c1df2e6bef3e03f6eefe9f52808b345e1587b4
[ "MIT" ]
1
2017-10-16T15:30:08.000Z
2017-10-16T15:30:08.000Z
PREP_CAOM/obsolete/add_unique_xml.py
spacetelescope/MAST_HLSP
48c1df2e6bef3e03f6eefe9f52808b345e1587b4
[ "MIT" ]
18
2018-05-11T16:07:48.000Z
2018-11-19T19:45:40.000Z
PREP_CAOM/obsolete/add_unique_xml.py
spacetelescope/MAST_HLSP
48c1df2e6bef3e03f6eefe9f52808b345e1587b4
[ "MIT" ]
1
2017-10-03T19:38:59.000Z
2017-10-03T19:38:59.000Z
from CAOMxml import * import util.add_xml_entries as axe import logging def add_unique_xml(unique_parameters, tree): """ Add CAOM parameters that are unique to this HLSP and not contained in headers. :param tree: The xml tree object that these subelements will be added to. :type tree: _ElementTr...
30.457627
78
0.687813
746b1fa2e3fdc237f12849d87001b1b9061a9ea6
425
py
Python
zerver/migrations/0024_realm_allow_message_editing.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2017-07-27T19:49:12.000Z
2017-07-27T19:49:12.000Z
zerver/migrations/0024_realm_allow_message_editing.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
9
2021-02-08T20:22:39.000Z
2022-02-11T03:40:19.000Z
zerver/migrations/0024_realm_allow_message_editing.py
tobby2002/zulip
66e7c455759f9368bae16b9a604cf63f8e3524cd
[ "Apache-2.0" ]
1
2021-06-10T15:12:52.000Z
2021-06-10T15:12:52.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('zerver', '0023_userprofile_default_language'), ] operations = [ migrations.AddField( model_name='realm', ...
21.25
56
0.625882
746b31570212eb5d4a3bd767b0f670435d15d632
150
py
Python
tests/integration/test_examples.py
emamarela/small-text
0df5ad0d42511dd306ab367de7c6c01dab58f653
[ "MIT" ]
218
2021-05-26T16:38:53.000Z
2022-03-30T09:48:54.000Z
tests/integration/test_examples.py
emamarela/small-text
0df5ad0d42511dd306ab367de7c6c01dab58f653
[ "MIT" ]
9
2021-10-16T23:23:02.000Z
2022-02-22T15:23:11.000Z
tests/integration/test_examples.py
emamarela/small-text
0df5ad0d42511dd306ab367de7c6c01dab58f653
[ "MIT" ]
21
2021-06-24T11:19:44.000Z
2022-03-12T16:29:53.000Z
from examplecode.binary_classification import main as binary_classification_main def test_binary_classification(): binary_classification_main()
25
80
0.86
746b38966aff4cdaf1ed195b18fbf224ceeebe58
2,927
py
Python
hardware/viewpi.py
callumfrance/he-gong
c4b01a85f242b13e05522bcdf7ef7d86f8090ea5
[ "MIT" ]
null
null
null
hardware/viewpi.py
callumfrance/he-gong
c4b01a85f242b13e05522bcdf7ef7d86f8090ea5
[ "MIT" ]
null
null
null
hardware/viewpi.py
callumfrance/he-gong
c4b01a85f242b13e05522bcdf7ef7d86f8090ea5
[ "MIT" ]
null
null
null
import gpiozero class ViewPi: STATES = {'idle', 'active', 'reset'} # Time in seconds a component ignores changes in state after an inital change BOUNCE_TIME = 0.05 def __init__(self, contactSwitch=[2,3], ledVolume=4, potVolume=17, motorDirection=[18,...
34.845238
97
0.568159
746b3d66de082d59e8c1e316c51e2a9ab7670e6d
2,910
py
Python
tensorflow/python/data/util/convert.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/data/util/convert.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/data/util/convert.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.000Z
# Copyright 2017 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.863014
80
0.67457
746b3f122c0b22b78ef9683037086fb198f77f01
1,255
py
Python
official/vision/image_classification/pruning/mnist/mnist_pruning_config.py
arayabrain/models
ceaa23c0ebecdb445d14f002cc66a39c50ac92e3
[ "Apache-2.0" ]
null
null
null
official/vision/image_classification/pruning/mnist/mnist_pruning_config.py
arayabrain/models
ceaa23c0ebecdb445d14f002cc66a39c50ac92e3
[ "Apache-2.0" ]
3
2020-08-12T06:16:40.000Z
2020-08-17T05:44:26.000Z
official/vision/image_classification/pruning/mnist/mnist_pruning_config.py
arayabrain/models
ceaa23c0ebecdb445d14f002cc66a39c50ac92e3
[ "Apache-2.0" ]
1
2020-08-04T01:56:03.000Z
2020-08-04T01:56:03.000Z
"""Configuration definitions for MNIST pruning.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from typing import List, Optional import dataclasses from official.vision.image_classification.pruning import pruning_base_configs @dataclasses.dataclass c...
33.026316
78
0.764143
746b4146aca02a862ad0fba10b052a0c9660a2d8
2,051
py
Python
dear_petition/petition/migrations/0019_auto_20200407_1720.py
robert-w-gries/dear-petition
35244afc8e967b41ae5265ae31fd13b26e4e835a
[ "MIT" ]
4
2020-04-01T14:42:45.000Z
2021-12-12T21:11:11.000Z
dear_petition/petition/migrations/0019_auto_20200407_1720.py
robert-w-gries/dear-petition
35244afc8e967b41ae5265ae31fd13b26e4e835a
[ "MIT" ]
142
2019-08-12T19:08:34.000Z
2022-03-29T23:05:35.000Z
dear_petition/petition/migrations/0019_auto_20200407_1720.py
robert-w-gries/dear-petition
35244afc8e967b41ae5265ae31fd13b26e4e835a
[ "MIT" ]
8
2020-02-04T20:37:00.000Z
2021-03-28T13:28:32.000Z
# Generated by Django 2.2.10 on 2020-04-07 16:49 from django.db import migrations from ..constants import ( SUPERIOR_COURT, DISTRICT_COURT, NOT_AVAILABLE, ) from ..utils import make_datetime_aware, dt_obj_to_date def update_existing_ciprs_records(apps, schema_editor): CIPRSRecord = apps.get_model("...
31.075758
87
0.67333
746b9399d5b7f9197bbc1d14c1c2ec53a0bc4245
3,967
py
Python
alipay/aop/api/request/AlipayBusinessItemTicketSyncRequest.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/request/AlipayBusinessItemTicketSyncRequest.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/request/AlipayBusinessItemTicketSyncRequest.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.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayBusinessItemTicketSyncModel import AlipayBusinessItemTicketSyncModel class AlipayBusinessItemTicketSyncRequest(object): d...
27.358621
148
0.644316
746bac03311ec824b36480abc385429d1b55f82c
8,366
py
Python
alipay/aop/api/domain/AlipayCommerceLogisticsOrderInstantdeliveryCreateModel.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/AlipayCommerceLogisticsOrderInstantdeliveryCreateModel.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/AlipayCommerceLogisticsOrderInstantdeliveryCreateModel.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.ConsumerNotifyIstd import ConsumerNotifyIstd from alipay.aop.api.domain.GoodsDetailIstd import GoodsDetailIstd from alipay.aop.api.domain.GoodsInfoIstd import GoodsInfoIstd from ali...
35.151261
83
0.615945
746c1c49020593bd31fe1845b9ebfc6fb49722b0
227
py
Python
polls/urls.py
harikvpy/crud
1e79e7e02eeaa3503579a3273dfeb5de6bf71afa
[ "BSD-3-Clause" ]
3
2017-07-13T13:29:36.000Z
2018-03-05T16:56:59.000Z
polls/urls.py
harikvpy/crud
1e79e7e02eeaa3503579a3273dfeb5de6bf71afa
[ "BSD-3-Clause" ]
2
2016-08-05T01:38:42.000Z
2017-09-20T07:08:48.000Z
polls/urls.py
harikvpy/crud
1e79e7e02eeaa3503579a3273dfeb5de6bf71afa
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from .views import * urlpatterns = [ url(r'^authors/$', AuthorCRUDView.as_view(), name='authors'), url(r'^questions/$', QuestionCRUDView.as_view(), name='questions') ]
25.222222
74
0.638767
746c242e6b04928f9a7c15f738a1555a5b310058
13,376
py
Python
func_tests/tests/registrationtests/registration_data.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
func_tests/tests/registrationtests/registration_data.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
func_tests/tests/registrationtests/registration_data.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 #Registration Page Test Data ##Variables from framework.utils.common_utils import by_css, by_xpath ORGANIZATION_NAME = 'organization_name' ORGANIZATION_SECTOR = 'organization_sector' ORGANIZATION_ADDRESS = 'organization_address' ORGANIZATION_CITY = 'organization_city' ORGA...
62.798122
629
0.510691
746c4336692b299cf1283aef90f578dce0cd1d1b
405
py
Python
fibonacciSequence.py
trishahanlon/algorithms-review
4e08938526020204d0a7f47982b46c05b0973636
[ "Apache-2.0" ]
null
null
null
fibonacciSequence.py
trishahanlon/algorithms-review
4e08938526020204d0a7f47982b46c05b0973636
[ "Apache-2.0" ]
null
null
null
fibonacciSequence.py
trishahanlon/algorithms-review
4e08938526020204d0a7f47982b46c05b0973636
[ "Apache-2.0" ]
null
null
null
# a fibonacci sequence is the integer sequence of 0, 1, 1, 2, 3, 5, 8 # the first to terms are 0 and 1. # all the other terms are obtained by adding the preceeding two terms # nth term = (n-1) + (n-2) number_of_terms = 7 counter = 0 first = 0 second = 1 temp = 0 while counter < number_of_terms: print(first) t...
21.315789
69
0.659259
746c6258a0845cb7add600ff6b0452489c6cd2d0
2,892
py
Python
lib/io/kaldi/nnet3_reader_test.py
beld/kaldi-tflite
5674da672dd621a42c22e578103975e032c6f079
[ "Apache-2.0" ]
1
2021-12-21T09:58:56.000Z
2021-12-21T09:58:56.000Z
lib/io/kaldi/nnet3_reader_test.py
beld/kaldi-tflite
5674da672dd621a42c22e578103975e032c6f079
[ "Apache-2.0" ]
null
null
null
lib/io/kaldi/nnet3_reader_test.py
beld/kaldi-tflite
5674da672dd621a42c22e578103975e032c6f079
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (2021-) Shahruk Hossain <shahruk10@gmail.com> # # 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...
36.607595
109
0.599239
746c6f45a8d8434561cdd725f0aa3315b453e527
2,283
py
Python
workflows/models/output.py
xflows/clowdflows-backend
9fae3a27d16035147bebac6efcd7617aec35e0f3
[ "MIT" ]
4
2017-12-13T10:59:42.000Z
2019-11-03T17:26:19.000Z
workflows/models/output.py
xflows/clowdflows-backend
9fae3a27d16035147bebac6efcd7617aec35e0f3
[ "MIT" ]
21
2017-04-05T08:03:54.000Z
2022-03-11T23:16:03.000Z
workflows/models/output.py
xflows/clowdflows-backend
9fae3a27d16035147bebac6efcd7617aec35e0f3
[ "MIT" ]
null
null
null
from django.db import models from picklefield import PickledObjectField from workflows.models import Input, AbstractOutput class Output(models.Model): name = models.CharField(max_length=200) short_name = models.CharField(max_length=5) description = models.TextField(blank=True) variable = models.CharF...
36.822581
115
0.650022
746c7d80a9be8210b684d6b51d28e913d83dfa42
816
py
Python
management/pycom_functions/communicate_with_server/close_connection/MQTT_raw.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
2
2021-04-03T13:19:32.000Z
2022-01-03T00:38:55.000Z
management/pycom_functions/communicate_with_server/close_connection/MQTT_raw.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
management/pycom_functions/communicate_with_server/close_connection/MQTT_raw.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
"""This function takes care that correct messages are sent to server""" def communicate_with_server(data_with_ts, header_ts): try: data_string = format_data(header_ts, data_with_ts) client = MQTTClient(str(SENSOR_ID), BROKER_URL, user=USER, password=KEY, port=BROKER_PORT) client.connect() ...
35.478261
98
0.605392
746c8f58a558d0e6518ace97280ac30860c7bc35
7,469
py
Python
torchtext/experimental/datasets/raw/text_classification.py
dongreenberg/text
77c732ab816a41f52259e72430aa837910cc6948
[ "BSD-3-Clause" ]
null
null
null
torchtext/experimental/datasets/raw/text_classification.py
dongreenberg/text
77c732ab816a41f52259e72430aa837910cc6948
[ "BSD-3-Clause" ]
null
null
null
torchtext/experimental/datasets/raw/text_classification.py
dongreenberg/text
77c732ab816a41f52259e72430aa837910cc6948
[ "BSD-3-Clause" ]
null
null
null
import io from torchtext.utils import download_from_url, extract_archive, unicode_csv_reader from torchtext.experimental.datasets.raw.common import RawTextIterableDataset URLS = { 'AG_NEWS': {'train': 'https://raw.githubusercontent.com/mhjabreel/CharCnn_Keras/master/data/ag_news_csv/train.csv', 't...
30.736626
112
0.687642
746cb3b414d0e5be83aaa4cef38b918793f21316
8,432
py
Python
pulser-core/pulser/register/register3d.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
pulser-core/pulser/register/register3d.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
pulser-core/pulser/register/register3d.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pulser Development Team # # 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 i...
34.987552
78
0.567362
746cbbb03774f0bafe0455bc129ce5f1792f2d8b
1,058
py
Python
attic/2019/contributions-2019/open/mudaliar-yptu/PWAF/testcases/dropdown_page_test.py
Agriad/devops-course
380aa43fa69efd71992933f013fb11a96ce16a74
[ "MIT" ]
null
null
null
attic/2019/contributions-2019/open/mudaliar-yptu/PWAF/testcases/dropdown_page_test.py
Agriad/devops-course
380aa43fa69efd71992933f013fb11a96ce16a74
[ "MIT" ]
51
2021-04-08T11:39:59.000Z
2021-05-07T12:01:27.000Z
attic/2019/contributions-2019/open/mudaliar-yptu/PWAF/testcases/dropdown_page_test.py
Agriad/devops-course
380aa43fa69efd71992933f013fb11a96ce16a74
[ "MIT" ]
null
null
null
""" @author: Anuj Kumar @email: cdac.anuj@gmail.com """ from pages.welcome_page import WelcomePage from utility.drivermanager import DriverManagerFirefox, DriverManagerChrome from nose.plugins.attrib import attr @attr(group=['kth']) class DropdownPageTestFirefox(DriverManagerFirefox): def test_dropdown_page(self):...
37.785714
103
0.767486
746cd66b039523a755b41521a400dd2d63ab9775
508
py
Python
core/db/models/target.py
DobroAlex/laolab-nmap-test
d4421fea4b1e3de580b9ad6b1c5952675ca8d68f
[ "Unlicense" ]
null
null
null
core/db/models/target.py
DobroAlex/laolab-nmap-test
d4421fea4b1e3de580b9ad6b1c5952675ca8d68f
[ "Unlicense" ]
null
null
null
core/db/models/target.py
DobroAlex/laolab-nmap-test
d4421fea4b1e3de580b9ad6b1c5952675ca8d68f
[ "Unlicense" ]
null
null
null
import sqlalchemy as sa from sqlalchemy import orm from core.db.models import Base class ScanTarget(Base): __tablename__ = 'scan_target' id = sa.Column(sa.BIGINT, primary_key=True) target = sa.Column(sa.TEXT, nullable=False, unique=False) run_reports = orm.relationship( "RunReport", ...
22.086957
61
0.65748
746cdf1e7b0e9e61fe71ac9abcfe2bcd21af6c07
2,806
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/file_task_step.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/file_task_step.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/file_task_step.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
41.264706
101
0.650036
746d4786cc5299416945c8e85dbfa58cf7696ba6
2,188
py
Python
wargame/designpatterns/strategies_pythonic.py
jeantardelli/wargameRepo
1e11ae40281f7eafa65ea6e40e045304b20e3824
[ "MIT" ]
1
2020-12-01T20:30:27.000Z
2020-12-01T20:30:27.000Z
wargame/designpatterns/strategies_pythonic.py
jeantardelli/wargameRepo
1e11ae40281f7eafa65ea6e40e045304b20e3824
[ "MIT" ]
null
null
null
wargame/designpatterns/strategies_pythonic.py
jeantardelli/wargameRepo
1e11ae40281f7eafa65ea6e40e045304b20e3824
[ "MIT" ]
null
null
null
"""strategies_pythonic Example to show one way of implementing different design pattern strategies in Python. The example shows how to use Python's first class functions to implement strategy pattern, a simple refactory. This module is compatible with Python 3.6.x RUNNING THE PROGRAM: Assuming you have python in you...
34.730159
85
0.716636
746d7557997784dddf697dddf982281cf26b8719
250
py
Python
fantasy-football-api/fantasy-football-api/fantasy_football_api/controllers/__init__.py
mcappleman/fantasy-football-api
b9673bcde4bfc1159175d2d55a71a0437909cab4
[ "MIT" ]
null
null
null
fantasy-football-api/fantasy-football-api/fantasy_football_api/controllers/__init__.py
mcappleman/fantasy-football-api
b9673bcde4bfc1159175d2d55a71a0437909cab4
[ "MIT" ]
null
null
null
fantasy-football-api/fantasy-football-api/fantasy_football_api/controllers/__init__.py
mcappleman/fantasy-football-api
b9673bcde4bfc1159175d2d55a71a0437909cab4
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy from flask import jsonify, request_finished class BaseController(object): """Base Controller to be extended by every other controller""" def __init__(self, *args): super().__init(self, *args)
27.777778
66
0.74
746da8df1ce957e86bc2e730b5709a699adbf612
6,537
py
Python
tensorflow/python/ops/linalg/linear_operator_full_matrix.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/ops/linalg/linear_operator_full_matrix.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/ops/linalg/linear_operator_full_matrix.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
36
2017-07-27T21:12:40.000Z
2022-02-03T16:45:56.000Z
# Copyright 2016 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.527174
99
0.668043
746db3263f256c4f11d1b2f230262a86a81480be
43
py
Python
torch_rl/models/__init__.py
JimmyMVP/plain_rl
4780f05fffb62533a339197b49de487cdc9d9954
[ "MIT" ]
10
2018-03-18T21:27:59.000Z
2020-08-13T20:15:05.000Z
torch_rl/models/__init__.py
JimmyMVP/plain_rl
4780f05fffb62533a339197b49de487cdc9d9954
[ "MIT" ]
1
2018-03-19T09:51:04.000Z
2018-03-19T10:11:02.000Z
torch_rl/models/__init__.py
JimmyMVP/plain_rl
4780f05fffb62533a339197b49de487cdc9d9954
[ "MIT" ]
3
2018-03-10T09:17:10.000Z
2019-12-17T20:19:56.000Z
from .gaussian import * from .core import *
21.5
23
0.744186
746dccf9ae38427c3fe04b5a4e267a5847580205
27
py
Python
networks/__init__.py
Lorna-Liu/ultrasound_vsumm_RL
469214c6c9ef7fb8ecdeb29b831307b5be877d5a
[ "MIT" ]
17
2020-09-12T03:28:42.000Z
2021-11-15T12:10:31.000Z
networks/__init__.py
Lorna-Liu/ultrasound_vsumm_RL
469214c6c9ef7fb8ecdeb29b831307b5be877d5a
[ "MIT" ]
3
2020-10-16T08:52:05.000Z
2022-03-22T02:59:55.000Z
networks/__init__.py
Lorna-Liu/ultrasound_vsumm_RL
469214c6c9ef7fb8ecdeb29b831307b5be877d5a
[ "MIT" ]
1
2021-06-02T11:41:12.000Z
2021-06-02T11:41:12.000Z
from networks.DSN import *
13.5
26
0.777778
746de7d4aafcbd368d856d42e141682c8dca80d7
1,375
py
Python
scripts/create_pim_data.py
acutesoftware/rawdata
9218077a7086fe8a78a4dc508c80a9fae772de13
[ "MIT" ]
10
2015-06-04T13:05:56.000Z
2020-01-22T23:58:10.000Z
scripts/create_pim_data.py
acutesoftware/rawdata
9218077a7086fe8a78a4dc508c80a9fae772de13
[ "MIT" ]
5
2015-06-17T03:57:12.000Z
2016-06-09T13:37:35.000Z
scripts/create_pim_data.py
acutesoftware/rawdata
9218077a7086fe8a78a4dc508c80a9fae772de13
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # create_pim_data.py import os import sys root_fldr = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'rawdata')) sys.path.insert(1, root_fldr) import generate op_fldr = generate.dat_fldr + os.sep words = generate.get_list_words() places = generate.get_list_places() # Dairy custom_...
39.285714
129
0.703273
746e047a84567793029506507914d5ebe5b52803
4,775
py
Python
imgconvert.py
eyalabraham/rpi-gps-nav
f622583a9fc38f38d48c3f17f2cdae8301e5cd65
[ "MIT" ]
10
2018-07-27T21:46:06.000Z
2022-03-12T08:12:54.000Z
imgconvert.py
eyalabraham/rpi-gps-nav
f622583a9fc38f38d48c3f17f2cdae8301e5cd65
[ "MIT" ]
2
2018-07-22T13:44:35.000Z
2019-10-14T17:01:05.000Z
imgconvert.py
eyalabraham/rpi-gps-nav
f622583a9fc38f38d48c3f17f2cdae8301e5cd65
[ "MIT" ]
null
null
null
#!/usr/bin/python ##################################################################### # # imgconvert.py # # Accept an image file in any format acceptable by OpenCV, and # convert the file into a raw binary image format containing RGB565 # color format per pixel. # Generate and XML description for the image fi...
31.833333
112
0.543037
746e0b2cafc4b9b8341b80546acb42abe1478e47
1,322
py
Python
tasty_alpha/io/feed.py
jzajpt/tasty_alpha
2f4969bc5b29a4d4ea19d8e11cc37ecbcff782c3
[ "MIT" ]
1
2020-10-19T08:07:26.000Z
2020-10-19T08:07:26.000Z
tasty_alpha/io/feed.py
jzajpt/tasty_alpha
2f4969bc5b29a4d4ea19d8e11cc37ecbcff782c3
[ "MIT" ]
null
null
null
tasty_alpha/io/feed.py
jzajpt/tasty_alpha
2f4969bc5b29a4d4ea19d8e11cc37ecbcff782c3
[ "MIT" ]
1
2022-02-13T07:58:03.000Z
2022-02-13T07:58:03.000Z
from aiopubsub import Hub, Publisher, Subscriber from cryptofeed.callback import TradeCallback from cryptofeed import FeedHandler from cryptofeed.exchanges import Bitmex, Coinbase, Bitfinex, Poloniex, Bitstamp, Kraken, Binance from cryptofeed.defines import TRADES from cryptofeed.feed import Feed from loguru import log...
41.3125
128
0.674735
746e174008ca1532238579aa551e7e32a216920b
3,996
py
Python
discord.py-async/discord/errors.py
SporadicToast/yukino-bot
80e1be96341d628490738e5c9a3a7b91043ed441
[ "MIT" ]
1
2021-04-28T21:35:01.000Z
2021-04-28T21:35:01.000Z
discord.py-async/discord/errors.py
SporadicToast/yukino-bot
80e1be96341d628490738e5c9a3a7b91043ed441
[ "MIT" ]
null
null
null
discord.py-async/discord/errors.py
SporadicToast/yukino-bot
80e1be96341d628490738e5c9a3a7b91043ed441
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-2016 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
32.754098
96
0.708208
746e709fc7d26239128df221cae1179f649a2a61
22,117
py
Python
dflab/limepy.py
mgieles/dflab
96e02f7fccb66e5abbc9387f79a964391e9b9841
[ "BSD-3-Clause" ]
null
null
null
dflab/limepy.py
mgieles/dflab
96e02f7fccb66e5abbc9387f79a964391e9b9841
[ "BSD-3-Clause" ]
null
null
null
dflab/limepy.py
mgieles/dflab
96e02f7fccb66e5abbc9387f79a964391e9b9841
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division, absolute_import import numpy from numpy import exp, sqrt, pi, sin from scipy.interpolate import PiecewisePolynomial, interp1d from scipy.special import gamma, gammainc, dawsn, hyp1f1 from scipy.integrate import ode, quad, simps from math import factorial # ...
37.10906
114
0.512637
746e74352856ee114922e5085d2a5aab5dd956bc
2,212
py
Python
tests/test_prices.py
aguinane/qld-tariffs
91f52fafd548e9005c9b778d71ecaf411569e411
[ "MIT" ]
1
2017-05-15T19:56:39.000Z
2017-05-15T19:56:39.000Z
tests/test_prices.py
aguinane/qld-tariffs
91f52fafd548e9005c9b778d71ecaf411569e411
[ "MIT" ]
3
2017-06-14T10:01:13.000Z
2020-09-25T19:13:12.000Z
tests/test_prices.py
aguinane/qld-tariffs
91f52fafd548e9005c9b778d71ecaf411569e411
[ "MIT" ]
null
null
null
""" Test Suite """ import pytest import os import sys sys.path.insert(0, os.path.abspath( os.path.join(os.path.dirname(__file__), '..'))) from qldtariffs import calculate_charge from qldtariffs import electricity_charges_general from qldtariffs import electricity_charges_tou from qldtariffs import electricity_char...
42.538462
91
0.73915
746e769b767529cab6cf930fa298c10873a29531
6,111
py
Python
run_predictions.py
tree1111/caltech-ee148-spring2020-hw01
6d58ede3c60e8fe8c8785ca26014fd25ab8ac482
[ "MIT" ]
null
null
null
run_predictions.py
tree1111/caltech-ee148-spring2020-hw01
6d58ede3c60e8fe8c8785ca26014fd25ab8ac482
[ "MIT" ]
null
null
null
run_predictions.py
tree1111/caltech-ee148-spring2020-hw01
6d58ede3c60e8fe8c8785ca26014fd25ab8ac482
[ "MIT" ]
null
null
null
import os import numpy as np import json from PIL import Image def normalization(I): ''' This function normalize picture in windows ''' I_norm = I.astype(float) * 2/ 255 - 1 I_norm = I_norm / np.sqrt(np.sum(I_norm * I_norm)) return I_norm def smaller(I, k): ''' This function reduce the...
32.333333
102
0.563738
746e94dd21dd39bfba4f83928c4484af72cd04b8
2,966
py
Python
alipay/aop/api/domain/KoubeiMarketingTessssssssssstQueryModel.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/KoubeiMarketingTessssssssssstQueryModel.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/KoubeiMarketingTessssssssssstQueryModel.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.SpiInputObject import SpiInputObject from alipay.aop.api.domain.AccessParams import AccessParams class KoubeiMarketingTessssssssssstQueryModel(object): def __init__(self): ...
27.211009
65
0.559002
746eb69a82638f8f8c2cbceb6b9bdf6c611c6d53
4,420
py
Python
tests/test_rule.py
colindean/peru
e9ba6e0024ea08105a8d027f958899cca39aeb9a
[ "MIT" ]
525
2015-01-02T17:58:15.000Z
2022-03-29T20:17:55.000Z
tests/test_rule.py
colindean/peru
e9ba6e0024ea08105a8d027f958899cca39aeb9a
[ "MIT" ]
168
2015-01-01T11:19:45.000Z
2022-03-19T19:56:39.000Z
tests/test_rule.py
colindean/peru
e9ba6e0024ea08105a8d027f958899cca39aeb9a
[ "MIT" ]
42
2015-02-25T08:00:31.000Z
2022-03-01T05:53:20.000Z
import os from peru import cache from peru import rule import shared from shared import COLON class RuleTest(shared.PeruTest): @shared.make_synchronous async def setUp(self): self.cache_dir = shared.create_dir() self.cache = await cache.Cache(self.cache_dir) # Include a leading colon...
39.81982
79
0.564027
746ebc28fa41d7fa783d495e026241d12605259f
42,379
py
Python
dataloader_bk.py
tiahflorens/ict2019
47d35da2d834d1b11ba33a01465da8b10ac66f0c
[ "Apache-2.0" ]
null
null
null
dataloader_bk.py
tiahflorens/ict2019
47d35da2d834d1b11ba33a01465da8b10ac66f0c
[ "Apache-2.0" ]
5
2021-03-19T03:28:49.000Z
2022-03-11T23:59:03.000Z
dataloader_bk.py
tiahflorens/ict2019
47d35da2d834d1b11ba33a01465da8b10ac66f0c
[ "Apache-2.0" ]
null
null
null
import os import sys import time from multiprocessing import Queue as pQueue from threading import Thread import cv2 import numpy as np import torch import torch.multiprocessing as mp import torch.utils.data as data import torchvision.transforms as transforms from PIL import Image from torch.autograd import Variable ...
40.017941
124
0.493452
746edaf791ee1182f451d2cb04b17b6a1eada9e4
1,728
py
Python
plugins/houdini/publish/extract_arnold_standin.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
plugins/houdini/publish/extract_arnold_standin.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
plugins/houdini/publish/extract_arnold_standin.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import os import pyblish.api class ExtractArnoldStandIn(pyblish.api.InstancePlugin): order = pyblish.api.ExtractorOrder + 0.1 label = "Extract Arnold Stand-In" hosts = ["houdini"] families = [ "reveries.standin", ] def process(self, instance): from reveries.houdini import lib...
29.288136
75
0.596065
746f15700d2ba7956ddd47c36cadc7e4c5df1a25
12,608
py
Python
df_config/guesses/misc.py
d9pouces/df_conf
b905e8efea80633c3b95c22c19c0d13604a71a5b
[ "CECILL-B" ]
null
null
null
df_config/guesses/misc.py
d9pouces/df_conf
b905e8efea80633c3b95c22c19c0d13604a71a5b
[ "CECILL-B" ]
null
null
null
df_config/guesses/misc.py
d9pouces/df_conf
b905e8efea80633c3b95c22c19c0d13604a71a5b
[ "CECILL-B" ]
null
null
null
# ############################################################################## # This file is part of df_config # # # # Copyright (C) 2020 Matthieu Gallet <github@19pouces.net> ...
30.977887
116
0.620638
746f2ead7100e9d928a34244ff30c9a7a1edfe28
3,806
py
Python
scripts/python/ingest/Minnesota/get_ameritrak_images.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2020-06-03T15:59:50.000Z
2020-12-21T11:11:57.000Z
scripts/python/ingest/Minnesota/get_ameritrak_images.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
null
null
null
scripts/python/ingest/Minnesota/get_ameritrak_images.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2019-10-02T06:47:23.000Z
2020-02-02T18:32:23.000Z
#!/usr/bin/env python """""" # ============================================================================== # # # # (c) Copyright, 2013 University Corporation for Atmospheric Research (UCAR). # # All rights reserved. ...
37.683168
139
0.557278
746f5c9cb158efdb2094d029f10b337a3f23b206
12,784
py
Python
JDjango/frames/sqliteFrame/sqliteFrame.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
3
2020-12-28T05:09:02.000Z
2021-06-23T10:02:03.000Z
JDjango/frames/sqliteFrame/sqliteFrame.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
JDjango/frames/sqliteFrame/sqliteFrame.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
from .common import * LEN_COL = 26 # 列数 class SQLiteManageFrame(wx.Frame): def __init__(self, parent): wx.Frame.__init__(self, parent, id = wx.ID_ANY, title = CON_SQLITE3_TITLE, pos = wx.DefaultPosition, size = wx.Size(1200,720), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL) self._init_UI() self._init_m...
35.217631
177
0.723248
746f7c48990e393c2970ecb902e61dfd8e76b9a5
24,520
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2022_02_01/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2022_02_01/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2022_02_01/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
36.87218
165
0.634421
746f80b1db8bd54cb61396f8f2a79e11469fcaca
1,242
py
Python
Wrapper/ks2d-ebev-time.py
ahmadryan/TurbAn
b8866d103a2ca2f5fbad73bcd4416f19299f22b2
[ "BSD-2-Clause-Patent" ]
null
null
null
Wrapper/ks2d-ebev-time.py
ahmadryan/TurbAn
b8866d103a2ca2f5fbad73bcd4416f19299f22b2
[ "BSD-2-Clause-Patent" ]
null
null
null
Wrapper/ks2d-ebev-time.py
ahmadryan/TurbAn
b8866d103a2ca2f5fbad73bcd4416f19299f22b2
[ "BSD-2-Clause-Patent" ]
10
2019-03-22T15:30:12.000Z
2021-02-10T02:55:50.000Z
#!/usr/bin/env python import AnalysisFunctions as af import numpy as np from subs import create_object,ask_for_steps,imss import matplotlib.pyplot as plt rc=create_object() rc.vars2load(['bx','by','bz','jix','jiy','jiz','ni']) rcd=rc.__dict__ bs,fs,step=ask_for_steps(rc.numslices) nt=(fs-bs)/step cut=input(" What par...
32.684211
92
0.658615
746f8db6ee922df9db520532a5ba053de22c5859
2,111
py
Python
hrl_dynamic_mpc/src/darci_left_coriolis.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
1
2017-07-13T14:58:35.000Z
2017-07-13T14:58:35.000Z
hrl_dynamic_mpc/src/darci_left_coriolis.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
null
null
null
hrl_dynamic_mpc/src/darci_left_coriolis.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
2
2017-03-08T14:44:22.000Z
2019-07-15T23:46:35.000Z
# # # Copyright (c) 2013, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, ...
43.081633
166
0.740407
746f8f1fc66fde9138eef8866ecd6463b20a7a2d
716
py
Python
test_functions.py
lsj2319/learning
42809000df87a7f135401724aa3face4f8b060c7
[ "CC0-1.0" ]
1
2020-10-24T20:49:04.000Z
2020-10-24T20:49:04.000Z
test_functions.py
lsj2319/learning
42809000df87a7f135401724aa3face4f8b060c7
[ "CC0-1.0" ]
null
null
null
test_functions.py
lsj2319/learning
42809000df87a7f135401724aa3face4f8b060c7
[ "CC0-1.0" ]
null
null
null
# test_functions.py # testing functions / added a docstring for greet #def greet(name): # """Return string Hello and a person name assigned to variable name""" # print(f"Hello, {name}!") #greet("Dave") #### a set of temperature conversion functions #### def convert_cel_to_far(C): F = C * 9/5 + 32 return...
27.538462
74
0.684358
746f9147a9f08f302fdaf4b444dc15c286268693
5,745
py
Python
master/rabbitvcs-master/rabbitvcs-master/rabbitvcs/ui/editconflicts.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/rabbitvcs-master/rabbitvcs-master/rabbitvcs/ui/editconflicts.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/rabbitvcs-master/rabbitvcs-master/rabbitvcs/ui/editconflicts.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
from __future__ import absolute_import # # This is an extension to the Nautilus file manager to allow better # integration with the Subversion source control system. # # Copyright (C) 2006-2008 by Jason Field <jason@jasonfield.com> # Copyright (C) 2007-2008 by Bruce van der Kooij <brucevdkooij@gmail.com> # Copyright ...
33.208092
127
0.619147
746faf9a52a9bc0d1cf8941f84c1529f8f740541
102
py
Python
util/data/gen/frida-agent.dll.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
util/data/gen/frida-agent.dll.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
util/data/gen/frida-agent.dll.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
symbols = [] exports = [{'type': 'function', 'name': 'frida_agent_main', 'address': '0x7ffaa3346a28'}]
51
89
0.656863
746fb3d16cc15fb1edeb0c3624aac72023a06e17
4,644
py
Python
cbar/cbar.py
chirtz/i3stuff
9a8dac7330333d0ba1c6d4f5e4aa456fd015fbba
[ "MIT" ]
1
2017-05-02T13:33:38.000Z
2017-05-02T13:33:38.000Z
cbar/cbar.py
chirtz/i3stuff
9a8dac7330333d0ba1c6d4f5e4aa456fd015fbba
[ "MIT" ]
null
null
null
cbar/cbar.py
chirtz/i3stuff
9a8dac7330333d0ba1c6d4f5e4aa456fd015fbba
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ The main class and start script for the CBar """ from tkinter import * import threading import configparser import os from enum import Enum class ConnectionType(Enum): """ We currently distinguish whether we get our workspace/desktop information through I3-IPC or XLib """ ...
32.93617
112
0.61391
74703528ae07e519c0b084afab0fb75818b1d226
1,888
py
Python
examples/moco/simple/debug_distributed.py
wangck20/GeDML
1f76ac2094d7b88be7fd4eb6145e5586e547b9ca
[ "MIT" ]
null
null
null
examples/moco/simple/debug_distributed.py
wangck20/GeDML
1f76ac2094d7b88be7fd4eb6145e5586e547b9ca
[ "MIT" ]
null
null
null
examples/moco/simple/debug_distributed.py
wangck20/GeDML
1f76ac2094d7b88be7fd4eb6145e5586e547b9ca
[ "MIT" ]
null
null
null
import sys import logging import yaml import os from os.path import join as opj workspace = os.environ["WORKSPACE"] sys.path.append( opj(workspace, 'code/GeDML/src') ) logging.getLogger().setLevel(logging.INFO) os.environ["CUDA_VISIBLE_DEVICES"] = "0, 1, 2, 3" os.environ["MASTER_ADDR"] = "localhost" os.environ["MAS...
27.764706
88
0.702331
74704014786189d6ec6c723aa9eed03be60315ee
1,935
py
Python
puppet/zulip/files/postgresql/pg_backup_and_purge.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2017-07-27T19:49:12.000Z
2017-07-27T19:49:12.000Z
puppet/zulip/files/postgresql/pg_backup_and_purge.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
9
2021-02-08T20:20:54.000Z
2022-03-11T23:22:25.000Z
puppet/zulip/files/postgresql/pg_backup_and_purge.py
tobby2002/zulip
66e7c455759f9368bae16b9a604cf63f8e3524cd
[ "Apache-2.0" ]
1
2021-04-09T05:50:23.000Z
2021-04-09T05:50:23.000Z
#!/usr/bin/env python from __future__ import print_function import sys import glob import subprocess import sys import logging import dateutil.parser import pytz from datetime import datetime, timedelta if False: from typing import List logging.basicConfig(format="%(asctime)s %(levelname)s: %(message)s") logger = lo...
30.714286
77
0.650646
74704f3aa323096521321b480e14a05f60beaf3d
1,855
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/tests/perfstress_tests/perf_dmac_build_model_requests.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/formrecognizer/azure-ai-formrecognizer/tests/perfstress_tests/perf_dmac_build_model_requests.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/formrecognizer/azure-ai-formrecognizer/tests/perfstress_tests/perf_dmac_build_model_requests.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import os from azure_devtools.perfstress_tests import PerfStressTest from azure.core.credentials import AzureKeyCredential from azure.ai.formrecognizer i...
44.166667
151
0.741779
74704fac0ba221fa8f5735eed63c718f8ac00ead
2,403
py
Python
protos/gen/python/protos/public/uac/Workspace_pb2_grpc.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
null
null
null
protos/gen/python/protos/public/uac/Workspace_pb2_grpc.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
null
null
null
protos/gen/python/protos/public/uac/Workspace_pb2_grpc.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from ..uac import Workspace_pb2 as uac_dot_Workspace__pb2 class WorkspaceServiceStub(object): # missing associated documentation comment in .proto file pass def __init__(self, channel): """Constructor. Args: chann...
37.546875
87
0.766958
74705fd38780648e7042618498f753652176b126
859
py
Python
mmdet/models/detectors/faster_rcnn_kai.py
WangCK0809/mmdetection-wck
00fb5bd75d36780c6e258c30591e76bd553b4a04
[ "Apache-2.0" ]
3
2020-06-16T01:23:37.000Z
2021-06-29T00:11:02.000Z
mmdet/models/detectors/faster_rcnn_kai.py
WangCK0809/mmdetection-wck
00fb5bd75d36780c6e258c30591e76bd553b4a04
[ "Apache-2.0" ]
null
null
null
mmdet/models/detectors/faster_rcnn_kai.py
WangCK0809/mmdetection-wck
00fb5bd75d36780c6e258c30591e76bd553b4a04
[ "Apache-2.0" ]
1
2021-06-29T00:06:43.000Z
2021-06-29T00:06:43.000Z
from .two_stage_kai import TwoStageDetectorKai from ..registry import DETECTORS """ Author: WangCK Date: 2019.12.10 Description: This file defines class FasterRCNNKai inherited from class TwoStageDetectorKai. """ @DETECTORS.register_module class FasterRCNNKai(TwoStageDetectorKai): def __init__(self, ...
26.84375
92
0.593714
747060c86899d6152746fc52e2191eb1b0bdcf53
896
py
Python
var/spack/repos/builtin/packages/py-vector-quantize-pytorch/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/py-vector-quantize-pytorch/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/py-vector-quantize-pytorch/package.py
joequant/spack
e028ee0d5903045e1cdeb57550cbff61f2ffb2fa
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyVectorQuantizePytorch(PythonPackage): """A vector quantization library originally transc...
38.956522
95
0.731027
7470628cf27fa1357ffe84cc4820f91a110d1431
11,618
py
Python
pywt/_dwt.py
micha2718l/pywt
48e600641172e31e9fac734d218e58bec9f253ef
[ "MIT" ]
null
null
null
pywt/_dwt.py
micha2718l/pywt
48e600641172e31e9fac734d218e58bec9f253ef
[ "MIT" ]
null
null
null
pywt/_dwt.py
micha2718l/pywt
48e600641172e31e9fac734d218e58bec9f253ef
[ "MIT" ]
1
2018-11-29T21:30:49.000Z
2018-11-29T21:30:49.000Z
from numbers import Number import numpy as np from ._c99_config import _have_c99_complex from ._extensions._pywt import Wavelet, Modes, _check_dtype, wavelist from ._extensions._dwt import (dwt_single, dwt_axis, idwt_single, idwt_axis, upcoef as _upcoef, downcoef as _downcoef, ...
30.413613
81
0.603116
747075c258fb7ef2d91f26cbabe03beef5e02198
2,889
py
Python
Web/Applications/FileBrowser/server/vtk_web_filebrowser.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
1
2021-10-13T01:57:14.000Z
2021-10-13T01:57:14.000Z
Web/Applications/FileBrowser/server/vtk_web_filebrowser.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
null
null
null
Web/Applications/FileBrowser/server/vtk_web_filebrowser.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
5
2015-10-09T04:12:29.000Z
2021-12-15T16:57:11.000Z
r""" This module is a VTK Web server application. The following command line illustrate how to use it:: $ vtkpython .../vtk_web_filebrowser.py --data-dir /.../server_directory_to_share Any VTK Web executable script come with a set of standard arguments that can be overriden if need be:: ...
33.593023
97
0.622361
7470796508dbb996d80d74018dc5ad915f958315
5,045
py
Python
orders/app/models.py
ehsangolshani/test
b2a7e8d5134e1d849694d041aa5c873be2fb5975
[ "MIT" ]
188
2015-01-01T08:54:26.000Z
2022-03-25T17:50:07.000Z
orders/app/models.py
ehsangolshani/test
b2a7e8d5134e1d849694d041aa5c873be2fb5975
[ "MIT" ]
8
2015-10-28T06:33:01.000Z
2020-05-02T14:38:45.000Z
orders/app/models.py
ehsangolshani/test
b2a7e8d5134e1d849694d041aa5c873be2fb5975
[ "MIT" ]
117
2015-01-11T23:49:04.000Z
2022-03-01T16:20:57.000Z
from datetime import datetime from dateutil import parser as datetime_parser from dateutil.tz import tzutc from werkzeug.security import generate_password_hash, check_password_hash from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from flask import url_for, current_app from . import db from .except...
33.85906
79
0.606938
74709d42d7c9ed8acae90e9cec1e6ade060b4a4f
2,931
py
Python
python-midonetclient/src/midonetclient/pool.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
python-midonetclient/src/midonetclient/pool.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
python-midonetclient/src/midonetclient/pool.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
1
2018-10-25T05:52:05.000Z
2018-10-25T05:52:05.000Z
# Copyright (c) 2014 Midokura Europe SARL, 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 appli...
34.081395
77
0.658478
7470c08a21f1b14385a6b86f284ed5d7b9a71c17
981
py
Python
src/gui_tool/gui/bb_context.py
AutoDash/AutoDash
3924795a04159f80ea3b65b2172747babd15f35f
[ "Apache-2.0" ]
3
2020-02-12T01:24:46.000Z
2020-02-13T00:50:46.000Z
src/gui_tool/gui/bb_context.py
AutoDash/AutoDash
3924795a04159f80ea3b65b2172747babd15f35f
[ "Apache-2.0" ]
32
2020-02-20T10:20:56.000Z
2022-02-10T01:42:46.000Z
src/gui_tool/gui/bb_context.py
AutoDash/AutoDash
3924795a04159f80ea3b65b2172747babd15f35f
[ "Apache-2.0" ]
1
2020-02-22T02:47:19.000Z
2020-02-22T02:47:19.000Z
from .context import GUIContext from typing import List from ...data.BBFields import BBFields class BBContext(GUIContext): def __init__(self, file_loc: str, bbox_fields: BBFields, start_index=None, end_index=None, enum_tags=None,...
29.727273
73
0.59633
7470d3c5b07efc1aa6ec447908911c6e6087609d
3,442
py
Python
taskbackend/tasklogger.py
eark-project/access_dipcreator
b1f9034d309dfdb676cbba92c9c4722bf576aba2
[ "MIT" ]
4
2019-12-19T17:17:42.000Z
2021-12-11T23:12:45.000Z
taskbackend/tasklogger.py
eark-project/access_dipcreator
b1f9034d309dfdb676cbba92c9c4722bf576aba2
[ "MIT" ]
32
2020-03-19T15:56:05.000Z
2021-12-23T12:46:06.000Z
taskbackend/tasklogger.py
eark-project/access_dipcreator
b1f9034d309dfdb676cbba92c9c4722bf576aba2
[ "MIT" ]
null
null
null
import os import unittest from eatb.utils import randomutils from eatb.utils.datetime import ts_date from config.configuration import root_dir class TaskLogger(object): """ Task logger class to organise the handling of log messages in a task. It allows to decide if a message is only written to a file or...
31.290909
100
0.601685
7470daf7e9f9fb7d84e9184c0fa3bfd26db628a6
14,558
py
Python
processing_provider/Doc_DescriptiveTable.py
LEOXINGU/lftools
f6ceac276c2872c7bf098f6363b44a07a6e523d8
[ "MIT" ]
19
2021-03-14T11:37:00.000Z
2022-03-31T13:29:57.000Z
processing_provider/Doc_DescriptiveTable.py
LEOXINGU/lftools
f6ceac276c2872c7bf098f6363b44a07a6e523d8
[ "MIT" ]
4
2021-04-06T03:57:43.000Z
2022-03-28T22:57:07.000Z
processing_provider/Doc_DescriptiveTable.py
LEOXINGU/lftools
f6ceac276c2872c7bf098f6363b44a07a6e523d8
[ "MIT" ]
3
2022-02-12T16:14:17.000Z
2022-03-28T22:18:04.000Z
# -*- coding: utf-8 -*- """ *************************************************************************** Doc_DescriptiveTable.py --------------------- Date : Jul 10 Copyright : (C) 2020 by Leandro França Email : geoleandro.franca@gmail.com ******************...
41.240793
219
0.533246
7470e78645241f3f0b240d415b76330f8f3e8c4f
1,446
py
Python
setup.py
simanto604newscred/django-axes
6560160f4ca3612e7d7f15bfd5158ae2bd009442
[ "MIT" ]
null
null
null
setup.py
simanto604newscred/django-axes
6560160f4ca3612e7d7f15bfd5158ae2bd009442
[ "MIT" ]
null
null
null
setup.py
simanto604newscred/django-axes
6560160f4ca3612e7d7f15bfd5158ae2bd009442
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup, find_packages VERSION = '1.6.1' setup( name='django-axes', version=VERSION, description="Keep track of failed login attempts in Django-powered sites.", long_description=( open("README.rst").read() + '\n' + ...
32.863636
79
0.61964
74711db9df0622499503eb218160e09c0a089f98
4,653
py
Python
olive/core/managers/drivers.py
liuyenting/olive-core
b532b29e29fe9f167369f66b8d922f5f644f9309
[ "Apache-2.0" ]
null
null
null
olive/core/managers/drivers.py
liuyenting/olive-core
b532b29e29fe9f167369f66b8d922f5f644f9309
[ "Apache-2.0" ]
null
null
null
olive/core/managers/drivers.py
liuyenting/olive-core
b532b29e29fe9f167369f66b8d922f5f644f9309
[ "Apache-2.0" ]
null
null
null
import importlib import itertools import logging from typing import List, Optional, Tuple import olive.drivers # preload from olive.devices.base import Device, DeviceType from olive.drivers.base import Driver from olive.drivers.error import InitializeError, ShutdownError from olive.utils import Singleton, en...
33
89
0.58242
747177c9d2352b74d6e934b6aa03fcbcb80a555c
2,304
py
Python
strippairing/StripCombinations.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
6
2020-01-29T07:24:14.000Z
2022-03-16T10:05:25.000Z
strippairing/StripCombinations.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
6
2020-07-03T00:31:10.000Z
2021-09-10T07:45:01.000Z
strippairing/StripCombinations.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
5
2019-02-27T22:56:49.000Z
2019-08-24T19:01:41.000Z
# Return a list of a possible strip combinations (vector indices) # # Assume we have 3 x and 2 y strips # Then we have to create the following combinations # # 0 - 0 0 - 0 0 - 1 # 1 - 0 1 - 1 1 - 0 # 2 - 1 2 - 0 2 - 0 # # 0 - 0 0 - 1 0 - 1 # 1 - 1 1 - 1 1 - 0 # 2 - 1 2 - 0 2 - ...
19.2
86
0.618924
74717b56cb64934972d6794f2e021c8fbd4cba3c
1,635
py
Python
src/pykeen/datasets/biokg.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
src/pykeen/datasets/biokg.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
src/pykeen/datasets/biokg.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """The `BioKG <https://github.com/dsi-bdi/biokg/>`_ dataset. Get a summary with ``python -m pykeen.datasets.biokg``. """ import click from docdata import parse_docdata from more_click import verbose_option from .base import ZipSingleDataset from ..typing import TorchRandomHint __all__ = [ ...
23.028169
102
0.631804
747180ad8b2cea62c7640ff6031ac1cd8ecb4f93
104
py
Python
abc/077/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/077/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/077/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
N = int(input()) for i in range(1, 100000): if i * i > N: print((i - 1) ** 2) exit()
20.8
27
0.423077
74718fcc41dd279f37cdbc58f4b279296273a4bd
4,237
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/bno08x_more_reports.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/bno08x_more_reports.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/bno08x_more_reports.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2020 Bryan Siepert, written for Adafruit Industries # # SPDX-License-Identifier: MIT import time import board import busio import adafruit_bno08x from adafruit_bno08x.i2c import BNO08X_I2C i2c = busio.I2C(board.SCL, board.SDA, frequency=800000) bno = BNO08X_I2C(i2c) bno.enable_feature(adafru...
31.385185
88
0.67123
7471a7e77165bf1d231bfa22c741111804eb2f76
1,536
py
Python
ee/clickhouse/queries/sessions/util.py
thinhnguyenuit/posthog
4758e66790485587d29a617174158d07341342f8
[ "MIT" ]
null
null
null
ee/clickhouse/queries/sessions/util.py
thinhnguyenuit/posthog
4758e66790485587d29a617174158d07341342f8
[ "MIT" ]
null
null
null
ee/clickhouse/queries/sessions/util.py
thinhnguyenuit/posthog
4758e66790485587d29a617174158d07341342f8
[ "MIT" ]
1
2021-09-08T19:45:03.000Z
2021-09-08T19:45:03.000Z
from typing import Any, Dict, List, Tuple from ee.clickhouse.models.action import format_action_filter from posthog.constants import TREND_FILTER_TYPE_ACTIONS from posthog.models import Action, Entity, Filter, Team def event_entity_to_query(entity: Entity, team: Team, prepend="event_entity") -> Tuple[str, Dict]: ...
39.384615
114
0.689453
7471aa21c620d03fac34d371c5cf45e1392e8f57
2,457
py
Python
unused_tests/transparent_test.py
sparkie3/MF_run_counter
e4b672fcdefbccf7bf82493c1f69a264e0bca54e
[ "MIT" ]
43
2020-10-04T12:00:09.000Z
2022-03-01T15:05:15.000Z
unused_tests/transparent_test.py
sparkie3/MF_run_counter
e4b672fcdefbccf7bf82493c1f69a264e0bca54e
[ "MIT" ]
7
2020-10-02T15:16:07.000Z
2022-01-14T02:36:52.000Z
unused_tests/transparent_test.py
oskros/MF_counter_releases
8a94fa8ad388d16eb516dd462e7dd716a7e80729
[ "MIT" ]
12
2020-09-30T22:58:41.000Z
2022-02-09T02:52:57.000Z
import tkinter as tk import time import win32gui, win32con from utils import tk_dynamic as tkd class TranspTest: def __init__(self): self.root = tk.Tk() self.transp_color = "black" self.fg = "gray30" self.title = 'transparent test' self.root.title(self.title) self.r...
39.629032
154
0.643875
7471cea4d9d3126607d4fa55c7640c16c72a0a1d
627
py
Python
callisto/web/webdriver_logs.py
isabella232/callisto
182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f
[ "MIT" ]
84
2020-02-18T14:58:35.000Z
2022-03-04T22:34:46.000Z
callisto/web/webdriver_logs.py
wrike/callisto
182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f
[ "MIT" ]
6
2020-07-13T19:31:07.000Z
2022-03-30T15:35:23.000Z
callisto/web/webdriver_logs.py
isabella232/callisto
182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f
[ "MIT" ]
9
2021-03-08T10:17:29.000Z
2022-03-04T12:21:53.000Z
from __future__ import annotations import aiohttp.web as web from ..libs.domains import consts from ..libs.use_cases.webdriver_logs import WebdriverLogsUseCase from . import get_pod_name async def webdriver_logs_handler(request: web.Request) -> web.WebSocketResponse: uc: WebdriverLogsUseCase = request.app[const...
26.125
80
0.720893