hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
βŒ€
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
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
βŒ€
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
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
βŒ€
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
βŒ€
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
βŒ€
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
722c4c63b3fd5d59bca4f70da65c4babd7f2a270
2,814
py
Python
neptunecontrib/api/audio.py
piojanu/neptune-contrib
7793c325af1c225cbda972bc0f89fa45f8da6cf3
[ "MIT" ]
22
2020-02-23T21:25:34.000Z
2021-06-11T16:34:27.000Z
neptunecontrib/api/audio.py
piojanu/neptune-contrib
7793c325af1c225cbda972bc0f89fa45f8da6cf3
[ "MIT" ]
29
2020-02-11T11:10:22.000Z
2021-10-03T09:01:28.000Z
neptunecontrib/api/audio.py
piojanu/neptune-contrib
7793c325af1c225cbda972bc0f89fa45f8da6cf3
[ "MIT" ]
7
2020-05-10T06:59:53.000Z
2021-06-11T16:34:32.000Z
# # Copyright (c) 2020, Neptune Labs Sp. z o.o. # # 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 agr...
33.903614
120
0.662758
# # Copyright (c) 2020, Neptune Labs Sp. z o.o. # # 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 agr...
0
0
0
7f715fc74a87d6223c95472dd37b95a2fe0a7ed2
122
py
Python
example4/vehicles.py
python-spokane/getting-started-with-fastapi
b3ad03c03a391b3f569a6c881eb2d3035a9a1334
[ "MIT" ]
null
null
null
example4/vehicles.py
python-spokane/getting-started-with-fastapi
b3ad03c03a391b3f569a6c881eb2d3035a9a1334
[ "MIT" ]
null
null
null
example4/vehicles.py
python-spokane/getting-started-with-fastapi
b3ad03c03a391b3f569a6c881eb2d3035a9a1334
[ "MIT" ]
null
null
null
from pydantic import BaseModel
13.555556
30
0.680328
from pydantic import BaseModel class Vehicle(BaseModel): vehicle_id: int year: int make: str model: str
0
67
23
9d1b6d427be95ea45d7c26c3d929358589c3f356
52,569
py
Python
PUBGSearchbot.py
J-hoplin1/PUBG-player-search-bot
b3389cde41f4c3723b29885d355ac4491146934c
[ "MIT" ]
6
2020-06-09T06:45:17.000Z
2021-07-31T16:07:40.000Z
PUBGSearchbot.py
J-hoplin1/PUBG-player-search-bot
b3389cde41f4c3723b29885d355ac4491146934c
[ "MIT" ]
null
null
null
PUBGSearchbot.py
J-hoplin1/PUBG-player-search-bot
b3389cde41f4c3723b29885d355ac4491146934c
[ "MIT" ]
5
2020-05-23T01:27:43.000Z
2021-08-21T14:38:15.000Z
#This code and description is written by Hoplin #This code is written with API version 1.0.0(Rewirte-V) #No matter to use it as non-commercial. import discord import asyncio import os from discord.ext import commands import urllib from urllib.request import URLError from urllib.request import HTTPError from urllib.req...
65.793492
185
0.531739
#This code and description is written by Hoplin #This code is written with API version 1.0.0(Rewirte-V) #No matter to use it as non-commercial. import discord import asyncio import os from discord.ext import commands import urllib from urllib.request import URLError from urllib.request import HTTPError from urllib.req...
53,556
0
44
b8808619cc1183cfb2b684a8df56450fbbbcf6bc
1,913
py
Python
test_scripts/functional_tests/pool/close_pool_ledger_after_reopen_pool_test.py
hyperledger/indy-post-install-automation
a19cb3c66f0adea6bb4c1fc20e1509cc97bd3d5f
[ "Apache-2.0" ]
2
2021-08-23T15:20:22.000Z
2021-12-03T01:58:02.000Z
test_scripts/functional_tests/pool/close_pool_ledger_after_reopen_pool_test.py
hyperledger-archives/indy-post-install-automation
a19cb3c66f0adea6bb4c1fc20e1509cc97bd3d5f
[ "Apache-2.0" ]
1
2018-02-22T10:04:41.000Z
2018-02-22T10:04:41.000Z
test_scripts/functional_tests/pool/close_pool_ledger_after_reopen_pool_test.py
hyperledger/indy-post-install-automation
a19cb3c66f0adea6bb4c1fc20e1509cc97bd3d5f
[ "Apache-2.0" ]
7
2018-01-03T20:45:48.000Z
2019-08-12T11:02:31.000Z
""" Created on Dec 8, 2017 @author: nhan.nguyen Verify that user can close a reopened pool ledger. """ from indy import pool from utilities import utils from utilities import common, constant from test_scripts.functional_tests.pool.pool_test_base import PoolTestBase import pytest
37.509804
79
0.590695
""" Created on Dec 8, 2017 @author: nhan.nguyen Verify that user can close a reopened pool ledger. """ from indy import pool from utilities import utils from utilities import common, constant from test_scripts.functional_tests.pool.pool_test_base import PoolTestBase import pytest class TestCloseReopenedPoolLedgerCo...
1,521
85
23
5302279d5e263be1aa5efb48ba63ba98f8a24bf7
13,981
py
Python
KerasMps.py
KanHarI/MatrixPowerSeries
d08f8761d32212f895a3cd0467c9a964015bc88e
[ "MIT" ]
null
null
null
KerasMps.py
KanHarI/MatrixPowerSeries
d08f8761d32212f895a3cd0467c9a964015bc88e
[ "MIT" ]
null
null
null
KerasMps.py
KanHarI/MatrixPowerSeries
d08f8761d32212f895a3cd0467c9a964015bc88e
[ "MIT" ]
null
null
null
from keras.engine.topology import Layer from keras import backend as K import tensorflow as tf import numpy as np import random import math import ComplexTensor as ct # This layer represets a power series # a_0*I+a_1*X+a_2*X^2+...+a_n*X^n # Where X is a complex input matrix, and the coefficients a_n are complex. # T...
38.621547
118
0.609685
from keras.engine.topology import Layer from keras import backend as K import tensorflow as tf import numpy as np import random import math import ComplexTensor as ct def factorial_decaying_random_init(shape): # Decay by one over factorial, inspired by the taylor expansion of the exponent function res = np.z...
11,252
132
866
b0be46f19793dfd79ded724164d81438c56fa5b5
6,790
py
Python
model_sandbox/model_nn_controller_service/train.py
surfertas/amr_core
100ebaf149558611e1b406392ffd49e71dad9b69
[ "MIT" ]
4
2018-02-28T15:36:45.000Z
2020-12-07T19:17:03.000Z
model_sandbox/model_nn_controller_service/train.py
surfertas/amr_core
100ebaf149558611e1b406392ffd49e71dad9b69
[ "MIT" ]
2
2018-02-26T06:24:12.000Z
2018-04-01T06:53:10.000Z
model_sandbox/model_nn_controller_service/train.py
surfertas/amr_core
100ebaf149558611e1b406392ffd49e71dad9b69
[ "MIT" ]
1
2021-09-07T11:04:39.000Z
2021-09-07T11:04:39.000Z
# @author Tasuku Miura # @brief Training for controller to output steering and throttle commands given # an image taken from a monocular camera. (Assumes CUDA enabled) # python train.py --root-dir /home/ubuntu/ws/amr_core/model_sandbox/model_nn_controller_service/data # put images and pickle file in ./data # TODO: save...
35.736842
100
0.665832
# @author Tasuku Miura # @brief Training for controller to output steering and throttle commands given # an image taken from a monocular camera. (Assumes CUDA enabled) # python train.py --root-dir /home/ubuntu/ws/amr_core/model_sandbox/model_nn_controller_service/data # put images and pickle file in ./data # TODO: save...
4,196
0
69
a767d24f1a2a569232594f410ebb5cd20e83c0f1
202
py
Python
python_synth/exceptions.py
jtschoonhoven/python-synth
b77422461b0965ea845834f56f9711f8a9e90b26
[ "MIT" ]
null
null
null
python_synth/exceptions.py
jtschoonhoven/python-synth
b77422461b0965ea845834f56f9711f8a9e90b26
[ "MIT" ]
null
null
null
python_synth/exceptions.py
jtschoonhoven/python-synth
b77422461b0965ea845834f56f9711f8a9e90b26
[ "MIT" ]
null
null
null
class SynthError(Exception): """ Generic error raised by library. """ pass class SynthValidationError(SynthError): """ Raised on attribute validation failure. """ pass
15.538462
43
0.633663
class SynthError(Exception): """ Generic error raised by library. """ pass class SynthValidationError(SynthError): """ Raised on attribute validation failure. """ pass
0
0
0
90bc1b1cdc5c031399541ab62ec7874f6ce72ff0
434
py
Python
obsim/config/observing_bands.py
fjfaggingerauer/obsim
a5a9a48841fc13e822fbbfbbd0fb0fd0953cdd5a
[ "MIT" ]
null
null
null
obsim/config/observing_bands.py
fjfaggingerauer/obsim
a5a9a48841fc13e822fbbfbbd0fb0fd0953cdd5a
[ "MIT" ]
null
null
null
obsim/config/observing_bands.py
fjfaggingerauer/obsim
a5a9a48841fc13e822fbbfbbd0fb0fd0953cdd5a
[ "MIT" ]
null
null
null
__all__ = ['observing_bands'] import astropy.units as u observing_bands = { 'U' : (365*u.nm, 66*u.nm), 'B' : (445*u.nm, 94*u.nm), 'G' : (464*u.nm, 128*u.nm), 'V' : (551*u.nm, 88*u.nm), 'R' : (658*u.nm, 138*u.nm), 'I' : (806*u.nm, 149*u.nm), 'Y' : (1020*u.nm, 120*u.nm), 'J' : (1220*u.nm...
24.111111
32
0.467742
__all__ = ['observing_bands'] import astropy.units as u observing_bands = { 'U' : (365*u.nm, 66*u.nm), 'B' : (445*u.nm, 94*u.nm), 'G' : (464*u.nm, 128*u.nm), 'V' : (551*u.nm, 88*u.nm), 'R' : (658*u.nm, 138*u.nm), 'I' : (806*u.nm, 149*u.nm), 'Y' : (1020*u.nm, 120*u.nm), 'J' : (1220*u.nm...
0
0
0
b52ab56e96428cb2e4a00578d5eae43fd5a5677f
3,159
py
Python
Adventure-Project/Main.py
MatthewGraber/Portfolio
333237de1efd7de4465614e15c1285a23cab0be7
[ "MIT" ]
null
null
null
Adventure-Project/Main.py
MatthewGraber/Portfolio
333237de1efd7de4465614e15c1285a23cab0be7
[ "MIT" ]
null
null
null
Adventure-Project/Main.py
MatthewGraber/Portfolio
333237de1efd7de4465614e15c1285a23cab0be7
[ "MIT" ]
null
null
null
import GlobalVariables import Character, Enemies, Encounters import AdventureMap import Actions import gui import NPCs import tkinter import Conditions # Will change to initialize to 'None' after more testing and whatnot is done # GlobalVariables.PC = Character.Rogue() # GlobalVariables.Enemy = Enemies....
33.967742
145
0.716049
import GlobalVariables import Character, Enemies, Encounters import AdventureMap import Actions import gui import NPCs import tkinter import Conditions # Will change to initialize to 'None' after more testing and whatnot is done # GlobalVariables.PC = Character.Rogue() # GlobalVariables.Enemy = Enemies....
2,600
0
97
b8e65fdc7e4cc3f501a1c406a54c562cc11c3153
48
py
Python
racecar_gym/bullet/__init__.py
luigiberducci/racecar_gym
fd2ff7fb14e9319530786ef54a4a6864bf1f1c26
[ "MIT" ]
16
2020-11-27T02:55:24.000Z
2022-03-24T01:27:29.000Z
racecar_gym/bullet/__init__.py
luigiberducci/racecar_gym
fd2ff7fb14e9319530786ef54a4a6864bf1f1c26
[ "MIT" ]
5
2020-08-24T15:59:39.000Z
2020-10-20T19:45:46.000Z
racecar_gym/bullet/__init__.py
luigiberducci/racecar_gym
fd2ff7fb14e9319530786ef54a4a6864bf1f1c26
[ "MIT" ]
4
2020-10-08T16:14:19.000Z
2021-12-26T18:19:53.000Z
from .providers import load_world, load_vehicle
24
47
0.854167
from .providers import load_world, load_vehicle
0
0
0
868fb40951fb9bcc5e105ed27a289b96298fe4cb
2,171
py
Python
src/pysem/sense.py
lingpy/pysen
2b4cb66ed2d56f05a73ef4d4940cebf435e6e5a7
[ "MIT" ]
1
2020-08-17T06:52:04.000Z
2020-08-17T06:52:04.000Z
src/pysem/sense.py
lingpy/pysem
2b4cb66ed2d56f05a73ef4d4940cebf435e6e5a7
[ "MIT" ]
4
2021-06-02T18:31:23.000Z
2022-01-13T19:22:28.000Z
src/pysem/sense.py
lingpy/pysen
2b4cb66ed2d56f05a73ef4d4940cebf435e6e5a7
[ "MIT" ]
null
null
null
""" Sense manipulations following the framework of the STARLING package. """ # import networkx as nx from pysem.data import SENSE from collections import defaultdict
31.014286
79
0.436205
""" Sense manipulations following the framework of the STARLING package. """ # import networkx as nx from pysem.data import SENSE from collections import defaultdict class Sense(object): def __init__(self): """ Creates a sense graph upon initialization. """ G = {key: set() for key ...
0
1,981
23
dc0e21f2d63875c49aabacfc838f0045189a5fef
4,784
py
Python
src/pages/SetNames.py
linjorejoy/json-testcase-generator
872c5dd48e97746ee8f538c105611cb2395d7d22
[ "MIT" ]
1
2021-08-11T02:51:28.000Z
2021-08-11T02:51:28.000Z
src/pages/SetNames.py
linjorejoy/json-testcase-generator
872c5dd48e97746ee8f538c105611cb2395d7d22
[ "MIT" ]
null
null
null
src/pages/SetNames.py
linjorejoy/json-testcase-generator
872c5dd48e97746ee8f538c105611cb2395d7d22
[ "MIT" ]
null
null
null
from tkinter import Frame, Label from tkinter import StringVar from tkinter import N, Y, SW, SE from widgetclasses.MyLabelFrame import MyLabelFrame from widgetclasses.MyOptionMenu import MyOptionMenu from widgetclasses.MyButton import MyButton from widgetclasses.MyLabel import MyLabel from widgetclasses.DoubleScrolle...
29.530864
101
0.57337
from tkinter import Frame, Label from tkinter import StringVar from tkinter import N, Y, SW, SE from widgetclasses.MyLabelFrame import MyLabelFrame from widgetclasses.MyOptionMenu import MyOptionMenu from widgetclasses.MyButton import MyButton from widgetclasses.MyLabel import MyLabel from widgetclasses.DoubleScrolle...
4,005
1
197
db5b3178214c83b369a1908d539a0187d4dfdc54
120
py
Python
exercises/CursoemVideo/ex007.py
arthurguerra/cursoemvideo-python
37f45ec25f422673fa9bbeee682e098f14d8ceab
[ "MIT" ]
null
null
null
exercises/CursoemVideo/ex007.py
arthurguerra/cursoemvideo-python
37f45ec25f422673fa9bbeee682e098f14d8ceab
[ "MIT" ]
null
null
null
exercises/CursoemVideo/ex007.py
arthurguerra/cursoemvideo-python
37f45ec25f422673fa9bbeee682e098f14d8ceab
[ "MIT" ]
null
null
null
n1 = float(input('Nota 1: ')) n2 = float(input('Nota 2: ')) m = (n1 + n2)/2 print('A mΓ©dia do aluno Γ© {:.2f}'.format(m))
30
44
0.566667
n1 = float(input('Nota 1: ')) n2 = float(input('Nota 2: ')) m = (n1 + n2)/2 print('A mΓ©dia do aluno Γ© {:.2f}'.format(m))
0
0
0
6498d5fe8372397f7571e4984a1962dcb8798c9f
6,956
py
Python
test.py
yzyouzhang/AIR-ASVspoof
b26830d56d4baa6247a72955292ad9d2a336c6f6
[ "MIT" ]
40
2020-10-30T20:41:58.000Z
2022-03-14T05:36:47.000Z
test.py
AirLabUR/AIR-ASVspoof
b26830d56d4baa6247a72955292ad9d2a336c6f6
[ "MIT" ]
13
2020-11-01T16:58:12.000Z
2021-12-29T16:49:36.000Z
test.py
AirLabUR/AIR-ASVspoof
b26830d56d4baa6247a72955292ad9d2a336c6f6
[ "MIT" ]
18
2020-12-23T09:03:12.000Z
2022-03-30T10:20:33.000Z
import argparse import os import torch from torch.utils.data import DataLoader import torch.nn as nn import torch.nn.functional as F from dataset import ASVspoof2019 from evaluate_tDCF_asvspoof19 import compute_eer_and_tdcf from tqdm import tqdm import eval_metrics as em import numpy as np if __name__ == "__main__": ...
46.684564
133
0.636141
import argparse import os import torch from torch.utils.data import DataLoader import torch.nn as nn import torch.nn.functional as F from dataset import ASVspoof2019 from evaluate_tDCF_asvspoof19 import compute_eer_and_tdcf from tqdm import tqdm import eval_metrics as em import numpy as np def test_model(feat_model_pa...
5,779
0
69
308b220de68d603d9b2db4d133efa6beac43dfb6
2,578
py
Python
evaluation/utils.py
ETHmodlab/de_novo_design_RNN
622628317c2ee6545eea9643767216904a7d7415
[ "MIT" ]
6
2022-01-02T12:49:17.000Z
2022-02-27T17:10:48.000Z
evaluation/utils.py
molML/de_novo_design_RNN
e4e2dc1a791e0a7af92c8767cf6f12fb44f0f42c
[ "MIT" ]
null
null
null
evaluation/utils.py
molML/de_novo_design_RNN
e4e2dc1a791e0a7af92c8767cf6f12fb44f0f42c
[ "MIT" ]
3
2021-03-16T19:05:05.000Z
2021-11-11T07:24:42.000Z
# utilities to generate molecules with this repo. # v1. Dec 2020, F. Grisoni
40.920635
169
0.687742
# utilities to generate molecules with this repo. # v1. Dec 2020, F. Grisoni def make_config(model_type='BIMODAL', net_size=512, epochs=10, starting_point='random', fine_tuning='fine_tuning', n_sampling=1000, T_sampling=0.7,augmentation_level=1): # writes the configuration file for fine-tuning depending on user-de...
2,477
0
23
340c5b3222ddc720364f924508c5460c1a49982b
2,590
py
Python
event_chain/app/models/mobile.py
ArcBlock/event-chain
50a37c76ab094386fc66c985f4174f8dabc98ad5
[ "MIT" ]
null
null
null
event_chain/app/models/mobile.py
ArcBlock/event-chain
50a37c76ab094386fc66c985f4174f8dabc98ad5
[ "MIT" ]
null
null
null
event_chain/app/models/mobile.py
ArcBlock/event-chain
50a37c76ab094386fc66c985f4174f8dabc98ad5
[ "MIT" ]
null
null
null
import base64 import json import logging import base58 from forge_sdk import protos as forge_protos from forge_sdk import utils as forge_utils logger = logging.getLogger('model-mobile')
31.585366
78
0.584942
import base64 import json import logging import base58 from forge_sdk import protos as forge_protos from forge_sdk import utils as forge_utils logger = logging.getLogger('model-mobile') class WalletResponse: def __init__(self, response): self.response = response self.user_info = response.get('u...
2,189
0
211
3075f003af9b01017b421ee8ca69f17356c3e8a2
18,001
py
Python
lampy/semantic.py
pyccel/lampy
696f65218f251095054003e87f8c05324be02a29
[ "MIT" ]
1
2019-04-12T21:41:32.000Z
2019-04-12T21:41:32.000Z
lampy/semantic.py
pyccel/lampy
696f65218f251095054003e87f8c05324be02a29
[ "MIT" ]
null
null
null
lampy/semantic.py
pyccel/lampy
696f65218f251095054003e87f8c05324be02a29
[ "MIT" ]
null
null
null
# coding: utf-8 import os from os.path import join, dirname from sympy import Symbol, Lambda, Function, Dummy from sympy import Tuple, IndexedBase from sympy.core.function import AppliedUndef from sympy.core.function import UndefinedFunction from sympy import Integer, Float from sympy import sympify from sympy import...
30.355818
96
0.598745
# coding: utf-8 import os from os.path import join, dirname from sympy import Symbol, Lambda, Function, Dummy from sympy import Tuple, IndexedBase from sympy.core.function import AppliedUndef from sympy.core.function import UndefinedFunction from sympy import Integer, Float from sympy import sympify from sympy import...
15,264
1,003
44
556ae4f320a23cf3338b934cc7b8fefbdd18b58d
78
py
Python
djangosqs/apps/website/tests/test_py.py
codehutlabs/django_sqs
7ff113cec7017fef09a92f6797153fd9207df5fc
[ "MIT" ]
null
null
null
djangosqs/apps/website/tests/test_py.py
codehutlabs/django_sqs
7ff113cec7017fef09a92f6797153fd9207df5fc
[ "MIT" ]
9
2019-09-06T11:14:20.000Z
2021-12-13T20:12:17.000Z
djangosqs/apps/website/tests/test_py.py
codehutlabs/django_sqs
7ff113cec7017fef09a92f6797153fd9207df5fc
[ "MIT" ]
null
null
null
import pytest
11.142857
45
0.576923
import pytest def test_py(): assert 1 + 1 == 2, "1 + 1 should equal 2"
40
0
23
baa49fa64ab53b5b85149b7b0e2a33494d10098b
2,604
py
Python
process.py
ervbrian/GpxProcessor
4f15ea0548b6d601b4eaaa3d38888b20e9c9ae28
[ "MIT" ]
null
null
null
process.py
ervbrian/GpxProcessor
4f15ea0548b6d601b4eaaa3d38888b20e9c9ae28
[ "MIT" ]
null
null
null
process.py
ervbrian/GpxProcessor
4f15ea0548b6d601b4eaaa3d38888b20e9c9ae28
[ "MIT" ]
null
null
null
import argparse import os from multiprocessing.pool import ThreadPool from utils.backend import HikeDBClient, update_db from utils.combine_gpx import CombineGpx from utils.gpx_import import GpxImport from utils.plotting import plot_elevation, plot_coordinates, plot_heart_rate from utils.report import render_html GPX...
37.2
124
0.682028
import argparse import os from multiprocessing.pool import ThreadPool from utils.backend import HikeDBClient, update_db from utils.combine_gpx import CombineGpx from utils.gpx_import import GpxImport from utils.plotting import plot_elevation, plot_coordinates, plot_heart_rate from utils.report import render_html GPX...
2,187
0
46
eb5fe9d3e1d1c2e581c61e80ef61a5d0758ce9a1
375
py
Python
python/processing/__init__.py
rwightman/pytorch-nips2017-adversarial
1727494ea3bfcbc3b4754b35096e816e1269ff38
[ "Apache-2.0" ]
17
2018-02-05T15:09:01.000Z
2022-03-15T06:27:07.000Z
python/processing/__init__.py
rwightman/pytorch-nips2017-adversarial
1727494ea3bfcbc3b4754b35096e816e1269ff38
[ "Apache-2.0" ]
1
2019-03-03T05:30:38.000Z
2019-03-08T04:44:39.000Z
python/processing/__init__.py
rwightman/pytorch-nips2017-adversarial
1727494ea3bfcbc3b4754b35096e816e1269ff38
[ "Apache-2.0" ]
2
2019-07-26T07:17:09.000Z
2019-10-16T03:44:02.000Z
from .augmentation_factory import * from .blur import Blur, RandomBlur, RandomGaussianBlur from .mirror import Mirror, RandomMirror from .crop import RandomCrop, CentreCrop from .normalize import Normalize, NormalizeDpn, NormalizeLe, NormalizeTorchvision from .colour import RandomBrightnessContrast, RandomSaturation fr...
46.875
81
0.850667
from .augmentation_factory import * from .blur import Blur, RandomBlur, RandomGaussianBlur from .mirror import Mirror, RandomMirror from .crop import RandomCrop, CentreCrop from .normalize import Normalize, NormalizeDpn, NormalizeLe, NormalizeTorchvision from .colour import RandomBrightnessContrast, RandomSaturation fr...
0
0
0
ac31d083edca47c913001aa39d76107ee30d56cf
865
py
Python
tales/systems/system.py
MrTrustworthy/tales
4a03bf502ad47a9cd720ebbffa3dcc72005a84e7
[ "MIT" ]
null
null
null
tales/systems/system.py
MrTrustworthy/tales
4a03bf502ad47a9cd720ebbffa3dcc72005a84e7
[ "MIT" ]
null
null
null
tales/systems/system.py
MrTrustworthy/tales
4a03bf502ad47a9cd720ebbffa3dcc72005a84e7
[ "MIT" ]
null
null
null
from abc import abstractmethod from enum import Enum from typing import List, Type from tales.components import Component from tales.entities.entity import Entity from tales.world import World
27.903226
90
0.695954
from abc import abstractmethod from enum import Enum from typing import List, Type from tales.components import Component from tales.entities.entity import Entity from tales.world import World class SystemType(Enum): GAMEPLAY = "Gameplay" RENDERING = "Rendering" class System: COMPONENTS: List[Type[Comp...
388
235
46
2cc2d98d8fc65e515f91ef0809443ec0dc4e83f9
9,470
py
Python
src/ugentaggregates/tests/test_aggregates.py
UGentPortaal/django-ugentaggregates
7b7d1db1a4ae23f85be0dca2a020dc820a166cd7
[ "BSD-3-Clause" ]
null
null
null
src/ugentaggregates/tests/test_aggregates.py
UGentPortaal/django-ugentaggregates
7b7d1db1a4ae23f85be0dca2a020dc820a166cd7
[ "BSD-3-Clause" ]
null
null
null
src/ugentaggregates/tests/test_aggregates.py
UGentPortaal/django-ugentaggregates
7b7d1db1a4ae23f85be0dca2a020dc820a166cd7
[ "BSD-3-Clause" ]
null
null
null
import unittest class AggregateTestCase(unittest.TestCase): """Tests for class ``Aggregate``. """ @classmethod def setUpClass(cls): """Set up the class fixture. """ from ugentaggregates.aggregates import Aggregate cls.Aggregate = Aggregate def setUp(self): ...
34.064748
75
0.477614
import unittest class AggregateTestCase(unittest.TestCase): """Tests for class ``Aggregate``. """ @classmethod def setUpClass(cls): """Set up the class fixture. """ from ugentaggregates.aggregates import Aggregate cls.Aggregate = Aggregate def setUp(self): ...
0
0
0
469ec131a089da59dfea02fbcbd86bac2621a4f7
8,534
py
Python
pipe-cli/src/utilities/pipe_shell.py
madmongoose/cloud-pipeline
e4e85faeee895373480f3bfa389eae1bed0db6e8
[ "Apache-2.0" ]
null
null
null
pipe-cli/src/utilities/pipe_shell.py
madmongoose/cloud-pipeline
e4e85faeee895373480f3bfa389eae1bed0db6e8
[ "Apache-2.0" ]
null
null
null
pipe-cli/src/utilities/pipe_shell.py
madmongoose/cloud-pipeline
e4e85faeee895373480f3bfa389eae1bed0db6e8
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.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 required by appli...
35.707113
117
0.620342
# Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.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 required by appli...
6,890
0
183
e9faf4d2308d5743525c61401b5134006844edbd
171
py
Python
cgxsh_edit_config.py
ebob9/cgxsh
0682922bae4354d2e306147e314dd309da968059
[ "MIT" ]
null
null
null
cgxsh_edit_config.py
ebob9/cgxsh
0682922bae4354d2e306147e314dd309da968059
[ "MIT" ]
3
2020-02-10T00:01:18.000Z
2022-03-28T00:26:45.000Z
cgxsh_edit_config.py
ebob9/cgxsh
0682922bae4354d2e306147e314dd309da968059
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys from cgxsh_lib.file_crypto import edit_config_file if __name__ == '__main__': sys.exit(edit_config_file())
19
50
0.71345
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys from cgxsh_lib.file_crypto import edit_config_file if __name__ == '__main__': sys.exit(edit_config_file())
0
0
0
ce26d3a18a902cb650143b53d2f13fcece06ffe4
536
py
Python
node_manager/migrations/0005_auto_20190123_2041.py
Jennypies/catnet
8c715e1ad638c9843e116b3c3926163b7dde1618
[ "MIT" ]
null
null
null
node_manager/migrations/0005_auto_20190123_2041.py
Jennypies/catnet
8c715e1ad638c9843e116b3c3926163b7dde1618
[ "MIT" ]
null
null
null
node_manager/migrations/0005_auto_20190123_2041.py
Jennypies/catnet
8c715e1ad638c9843e116b3c3926163b7dde1618
[ "MIT" ]
null
null
null
# Generated by Django 2.1.4 on 2019-01-23 20:41 from django.conf import settings from django.db import migrations, models
23.304348
71
0.585821
# Generated by Django 2.1.4 on 2019-01-23 20:41 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('node_manager', '0004_auto_20190123_2035'), ] operations = [ migrations.DeleteModel( ...
0
382
25
6ec54a58a019798e86849181545ddb49465660f8
3,308
py
Python
transformer_2/models/transformer_config.py
mingruimingrui/Transformer2
2b44289ee7c7312d699f2261c1e4ebccce0f21e2
[ "MIT" ]
null
null
null
transformer_2/models/transformer_config.py
mingruimingrui/Transformer2
2b44289ee7c7312d699f2261c1e4ebccce0f21e2
[ "MIT" ]
1
2020-06-01T02:13:10.000Z
2020-06-01T02:13:10.000Z
transformer_2/models/transformer_config.py
mingruimingrui/Transformer2
2b44289ee7c7312d699f2261c1e4ebccce0f21e2
[ "MIT" ]
null
null
null
""" Configurables for Transformer """ from transformer_2.utils.config_system import ConfigSystem __all__ = ['make_config'] _C = ConfigSystem(validate_config_fn=validate_config) # --------------------------------------------------------------------------- # # Start of configs # -------------------------------------...
26.894309
79
0.713724
""" Configurables for Transformer """ from transformer_2.utils.config_system import ConfigSystem __all__ = ['make_config'] def validate_config(config): pass _C = ConfigSystem(validate_config_fn=validate_config) # --------------------------------------------------------------------------- # # Start of configs ...
16
0
23
c6ffbe15828fe37550081127ba99b2873f871df3
11,457
py
Python
auctions/views.py
Avinash-Murugappan/AuctionsApp
d05e4511d2422de0e543562e2726b537d5baa54f
[ "MIT" ]
null
null
null
auctions/views.py
Avinash-Murugappan/AuctionsApp
d05e4511d2422de0e543562e2726b537d5baa54f
[ "MIT" ]
null
null
null
auctions/views.py
Avinash-Murugappan/AuctionsApp
d05e4511d2422de0e543562e2726b537d5baa54f
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate, login, logout from django.db import IntegrityError from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render from django.urls import reverse from django.contrib.auth.decorators import login_required from django import forms from django.u...
43.896552
133
0.634808
from django.contrib.auth import authenticate, login, logout from django.db import IntegrityError from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render from django.urls import reverse from django.contrib.auth.decorators import login_required from django import forms from django.u...
10,187
0
337
760bd97489459ca7421ffb023b45e07766736779
55
py
Python
djdwod/login.py
17675647287/login
55d0a444e4ca0dc549b0dfaaa006b49c6f0bd953
[ "MIT" ]
null
null
null
djdwod/login.py
17675647287/login
55d0a444e4ca0dc549b0dfaaa006b49c6f0bd953
[ "MIT" ]
null
null
null
djdwod/login.py
17675647287/login
55d0a444e4ca0dc549b0dfaaa006b49c6f0bd953
[ "MIT" ]
null
null
null
number1 = 10 number2 = 20 number4 = 40 number3 = 30
6.875
12
0.654545
number1 = 10 number2 = 20 number4 = 40 number3 = 30
0
0
0
bdad247f70b5f8b5d83ff4db4cbd7118ca39ee87
2,603
py
Python
Section9-Build_the_Real_Robot/arduinobot_ws/src/arduinobot_controller/scripts/angles_converter.py
AntoBrandi/Arduino-Bot-Tutorial
56ef08e3e60c6523ac4d2d2c9816d86c73f42d3a
[ "MIT", "Unlicense" ]
6
2021-09-24T06:38:29.000Z
2022-02-25T20:00:31.000Z
arduinobot_ws/src/arduinobot_controller/scripts/angles_converter.py
surajbilung/Arduino-Bot
c12e6bfb07ff66b8ac28a616ba4f8c5d4951f091
[ "Unlicense", "MIT" ]
null
null
null
arduinobot_ws/src/arduinobot_controller/scripts/angles_converter.py
surajbilung/Arduino-Bot
c12e6bfb07ff66b8ac28a616ba4f8c5d4951f091
[ "Unlicense", "MIT" ]
3
2021-09-09T16:55:42.000Z
2022-03-16T06:58:24.000Z
#!/usr/bin/env python3 import rospy import math from arduinobot_controller.srv import AnglesConverter, AnglesConverterResponse """ arduinobot - angles_converter This script implements two services on the topics - radians_to_degrees - degrees_to_radians Both of them receives a request with the format: ...
40.671875
113
0.739531
#!/usr/bin/env python3 import rospy import math from arduinobot_controller.srv import AnglesConverter, AnglesConverterResponse """ arduinobot - angles_converter This script implements two services on the topics - radians_to_degrees - degrees_to_radians Both of them receives a request with the format: ...
1,076
0
46
6e78031705a76491b0ca78baedb4fa8dc8da32ca
8,494
py
Python
tests/python_optimizer.py
primitiv/primitiv-python
aebd0fbca84e1d7cb9c74a265d035a52c0bd745f
[ "Apache-2.0" ]
16
2017-11-30T00:49:54.000Z
2020-08-14T14:20:12.000Z
tests/python_optimizer.py
primitiv/primitiv-python
aebd0fbca84e1d7cb9c74a265d035a52c0bd745f
[ "Apache-2.0" ]
25
2017-11-30T14:50:44.000Z
2022-03-08T09:01:37.000Z
tests/python_optimizer.py
primitiv/primitiv-python
aebd0fbca84e1d7cb9c74a265d035a52c0bd745f
[ "Apache-2.0" ]
2
2017-12-01T01:02:12.000Z
2017-12-05T00:21:40.000Z
from primitiv import optimizers as O from primitiv import Optimizer, Parameter, Device, Graph, Shape from primitiv import initializers as I from primitiv import devices as D from primitiv import functions as F from primitiv import tensor_functions as tF import unittest import tempfile import numpy as np
38.089686
115
0.63068
from primitiv import optimizers as O from primitiv import Optimizer, Parameter, Device, Graph, Shape from primitiv import initializers as I from primitiv import devices as D from primitiv import functions as F from primitiv import tensor_functions as tF import unittest import tempfile import numpy as np class TestA...
7,408
393
380
6e300bfbb9e8b185db58281a283ea05bbc9c1a0b
630
py
Python
train.py
bckho/gym
54adba8c164814caa11a637b62bcc4d3c7ca4559
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
train.py
bckho/gym
54adba8c164814caa11a637b62bcc4d3c7ca4559
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
train.py
bckho/gym
54adba8c164814caa11a637b62bcc4d3c7ca4559
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
import gym from gym.envs.box2d import CarRacing from stable_baselines.common.policies import CnnPolicy from stable_baselines.common.vec_env import DummyVecEnv from stable_baselines import PPO2 if __name__ == '__main__': env = lambda : CarRacing( grayscale=1, show_info_panel=0, discretize_...
27.391304
80
0.703175
import gym from gym.envs.box2d import CarRacing from stable_baselines.common.policies import CnnPolicy from stable_baselines.common.vec_env import DummyVecEnv from stable_baselines import PPO2 if __name__ == '__main__': env = lambda : CarRacing( grayscale=1, show_info_panel=0, discretize_...
0
0
0
d9c5557a1963aee8082460a979d07dda2b360bc4
491
py
Python
dcms/content/permissions.py
yifei-fu/dcms
568b727a58dd080f0dafc028d7723f865d9b7303
[ "MIT" ]
1
2021-04-03T20:07:11.000Z
2021-04-03T20:07:11.000Z
dcms/content/permissions.py
yifei-fu/dcms
568b727a58dd080f0dafc028d7723f865d9b7303
[ "MIT" ]
null
null
null
dcms/content/permissions.py
yifei-fu/dcms
568b727a58dd080f0dafc028d7723f865d9b7303
[ "MIT" ]
null
null
null
from rest_framework import permissions from rest_framework.permissions import BasePermission
35.071429
100
0.708758
from rest_framework import permissions from rest_framework.permissions import BasePermission class IsAuthorOrAdminOtherwiseReadOnly(BasePermission): def has_object_permission(self, request, view, instance): if request.method in permissions.SAFE_METHODS: # read-only methods return True ...
313
34
50
81eea449c3dbc24f53d2564aa6a669ee95c4015d
2,209
py
Python
athena/transform/feats/write_wav.py
godjealous/athena
5b7bf48ae7477196f2773108f19cf6ae5605f6bd
[ "Apache-2.0" ]
119
2019-12-20T05:26:23.000Z
2022-03-22T06:10:45.000Z
athena/transform/feats/write_wav.py
leixiaoning/athena-2
826c3bda241afd388e156bbefcd6ca2e8d88afc9
[ "Apache-2.0" ]
14
2019-12-20T07:10:28.000Z
2022-02-20T01:14:35.000Z
athena/transform/feats/write_wav.py
leixiaoning/athena-2
826c3bda241afd388e156bbefcd6ca2e8d88afc9
[ "Apache-2.0" ]
44
2019-12-20T05:27:20.000Z
2022-03-14T10:04:16.000Z
# Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. # 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/LI...
32.485294
87
0.683115
# Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. # 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/LI...
41
0
25
ce2999e6ce3e5a354aab62b9e3dae21d351f884d
2,400
py
Python
zvm/zfilesystem.py
grayarea11235/zvm2
50afb650b730ab36918d3a4ac1b650d2d48e56bd
[ "BSD-3-Clause" ]
27
2016-01-02T09:00:54.000Z
2022-02-05T20:28:28.000Z
zvm/zfilesystem.py
grayarea11235/zvm2
50afb650b730ab36918d3a4ac1b650d2d48e56bd
[ "BSD-3-Clause" ]
3
2019-08-26T13:18:59.000Z
2021-04-11T15:58:07.000Z
zvm/zfilesystem.py
grayarea11235/zvm2
50afb650b730ab36918d3a4ac1b650d2d48e56bd
[ "BSD-3-Clause" ]
11
2016-06-19T08:59:40.000Z
2021-04-11T10:54:41.000Z
# # A template class representing the interactions that the end-user has # with the filesystem in a z-machine. # # Third-party programs are expected to subclass ZFilesystem and # override all the methods, then pass an instance of their class to be # driven by the main z-machine engine. # # For the license of this file,...
36.363636
70
0.735417
# # A template class representing the interactions that the end-user has # with the filesystem in a z-machine. # # Third-party programs are expected to subclass ZFilesystem and # override all the methods, then pass an instance of their class to be # driven by the main z-machine engine. # # For the license of this file,...
0
0
0
54e319f380ed51382d970fc04e3a476fb0fb80be
4,886
py
Python
app.py
adrisj7/scouter-app
aaaf3d7cb9ac7bcd9dae0c2f9766e0dc5197012b
[ "MIT" ]
null
null
null
app.py
adrisj7/scouter-app
aaaf3d7cb9ac7bcd9dae0c2f9766e0dc5197012b
[ "MIT" ]
null
null
null
app.py
adrisj7/scouter-app
aaaf3d7cb9ac7bcd9dae0c2f9766e0dc5197012b
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import os.path from functools import wraps from flask import Flask, g, render_template, redirect, request from flask_login import login_required, current_user, login_user, logout_user from flask_bcrypt import Bcrypt from util.database import * # 5000 seems a bit... basic. Feel free to ...
26.846154
77
0.647155
#!/usr/bin/python import sys import os.path from functools import wraps from flask import Flask, g, render_template, redirect, request from flask_login import login_required, current_user, login_user, logout_user from flask_bcrypt import Bcrypt from util.database import * # 5000 seems a bit... basic. Feel free to ...
2,851
0
265
98858423b4f12c4129ca397e47bff9c4c29c4c76
2,608
py
Python
mudparser/acl_entry.py
elmiomar/mudparser
7bae239fe2e7e82746ef88150f62673793872973
[ "MIT" ]
null
null
null
mudparser/acl_entry.py
elmiomar/mudparser
7bae239fe2e7e82746ef88150f62673793872973
[ "MIT" ]
null
null
null
mudparser/acl_entry.py
elmiomar/mudparser
7bae239fe2e7e82746ef88150f62673793872973
[ "MIT" ]
null
null
null
#!/usr/bin/env python from mudparser.matches import (IPv4Match, IPv6Match, TCPMatch, UDPMatch, EthMatch, MUDMatch) __all__ = ['AccessListEntry']
37.257143
92
0.522239
#!/usr/bin/env python from mudparser.matches import (IPv4Match, IPv6Match, TCPMatch, UDPMatch, EthMatch, MUDMatch) __all__ = ['AccessListEntry'] class AccessListEntry: def __init__(self, json_obj): self._json_obj = json_obj self.name = '' self.matches = {} self.actions = {} ...
2,300
1
157
4d9dd9a332f0dd6dac4ae2140de6807bf424df60
8,529
py
Python
tests/test_stow.py
harkabeeparolus/dploy
0545a22dc80c3eb8103c61306be2fa726fb6a0e8
[ "MIT" ]
null
null
null
tests/test_stow.py
harkabeeparolus/dploy
0545a22dc80c3eb8103c61306be2fa726fb6a0e8
[ "MIT" ]
null
null
null
tests/test_stow.py
harkabeeparolus/dploy
0545a22dc80c3eb8103c61306be2fa726fb6a0e8
[ "MIT" ]
null
null
null
""" Tests for the stow stub command """ # pylint: disable=missing-docstring # disable lint errors for function names longer that 30 characters # pylint: disable=invalid-name import os import pytest import dploy from dploy import error from tests import utils SUBCMD = "stow"
35.098765
87
0.709579
""" Tests for the stow stub command """ # pylint: disable=missing-docstring # disable lint errors for function names longer that 30 characters # pylint: disable=invalid-name import os import pytest import dploy from dploy import error from tests import utils SUBCMD = "stow" def test_stow_with_simple_senario(source_...
7,676
0
552
0ed9476799122925feec3ca93850df67c13e570a
360
py
Python
bindings/pydeck-carto/tests/test_layer.py
ehtick/deck.gl
ac59a28a6ff03000072f11c9a5520eb87f11944c
[ "MIT" ]
null
null
null
bindings/pydeck-carto/tests/test_layer.py
ehtick/deck.gl
ac59a28a6ff03000072f11c9a5520eb87f11944c
[ "MIT" ]
null
null
null
bindings/pydeck-carto/tests/test_layer.py
ehtick/deck.gl
ac59a28a6ff03000072f11c9a5520eb87f11944c
[ "MIT" ]
null
null
null
import pydeck as pdk from pydeck_carto import register_carto_layer
25.714286
63
0.652778
import pydeck as pdk from pydeck_carto import register_carto_layer def test_register_carto_layer(): assert pdk.settings.custom_libraries == [] register_carto_layer() assert pdk.settings.custom_libraries == [ { "libraryName": "CartoLayerLibrary", "resourceUri": "http://127.0...
269
0
23
556b56f576d5301f23ff64c2b9ada4f26a4824a3
2,487
py
Python
blendernc/nodes/outputs/BlenderNC_NT_preloader.py
StephanSiemen/blendernc
590c252dc3d6e1092bd713bbf9111ffe8ca04999
[ "MIT" ]
39
2020-06-15T15:58:43.000Z
2022-02-02T01:11:57.000Z
blendernc/nodes/outputs/BlenderNC_NT_preloader.py
netgodz/blendernc
09ed7c7791da46abb2c5fd3ee83286ef0bf82302
[ "MIT" ]
137
2020-06-19T15:29:06.000Z
2022-03-30T11:18:55.000Z
blendernc/nodes/outputs/BlenderNC_NT_preloader.py
netgodz/blendernc
09ed7c7791da46abb2c5fd3ee83286ef0bf82302
[ "MIT" ]
8
2020-06-17T09:33:12.000Z
2022-01-21T00:26:19.000Z
#!/usr/bin/env python3 # Imports import bpy class BlenderNC_NT_preloader(bpy.types.Node): # === Basics === # Description string """A datacube node""" # Optional identifier string. If not explicitly defined, # the python class name is used. bl_idname = "datacubePreloadNode" # Label for nice...
32.298701
77
0.60394
#!/usr/bin/env python3 # Imports import bpy class BlenderNC_NT_preloader(bpy.types.Node): # === Basics === # Description string """A datacube node""" # Optional identifier string. If not explicitly defined, # the python class name is used. bl_idname = "datacubePreloadNode" # Label for nice...
1,113
0
210
9affda41ae10365c43f3ff4b169d6d2f0e233bc0
1,480
py
Python
examples/echoss.py
RalphWalters/thredo
ea109c693036764dd192527f9b6bba18d3b18042
[ "MIT" ]
340
2018-07-23T18:21:56.000Z
2021-12-11T05:50:58.000Z
examples/echoss.py
RalphWalters/thredo
ea109c693036764dd192527f9b6bba18d3b18042
[ "MIT" ]
6
2018-07-31T11:52:56.000Z
2019-11-25T19:52:32.000Z
examples/echoss.py
RalphWalters/thredo
ea109c693036764dd192527f9b6bba18d3b18042
[ "MIT" ]
25
2018-07-27T06:09:05.000Z
2022-03-13T12:53:23.000Z
# Echo server implemented using socket server and # a ThredoMixIn class. This class replaces the normal # socket with one that can be cancelled. Also uses spawn() # internally to launch threads. from thredo.socket import * import thredo import socketserver import signal thredo.run(main)
29.6
66
0.660135
# Echo server implemented using socket server and # a ThredoMixIn class. This class replaces the normal # socket with one that can be cancelled. Also uses spawn() # internally to launch threads. from thredo.socket import * import thredo import socketserver import signal class EchoHandler(socketserver.BaseRequestH...
883
153
144
0f7b748e205f47f53854aa928e93bf09651b81f6
1,697
py
Python
backend/tutors/serializers.py
ProgrammingLanguageLeader/TutorsApp
f2d5968b5c29ce75f5f634d6076a6e66efc76801
[ "MIT" ]
3
2019-02-24T23:30:19.000Z
2019-03-27T20:06:53.000Z
backend/tutors/serializers.py
ProgrammingLanguageLeader/TutorsApp
f2d5968b5c29ce75f5f634d6076a6e66efc76801
[ "MIT" ]
1
2019-03-30T08:58:06.000Z
2019-03-30T08:58:06.000Z
backend/tutors/serializers.py
ProgrammingLanguageLeader/TutorsApp
f2d5968b5c29ce75f5f634d6076a6e66efc76801
[ "MIT" ]
1
2019-03-01T20:10:19.000Z
2019-03-01T20:10:19.000Z
from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers from tutors.models import StudentRequest, TutorStudents from users.models import User from users.serializers import UserSerializer
29.258621
72
0.655863
from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers from tutors.models import StudentRequest, TutorStudents from users.models import User from users.serializers import UserSerializer class StudentRequestSerializer(serializers.ModelSerializer): student = serializers.Hi...
848
548
69
ffef01f595ce788224a97b8b12c5b56d821de0de
125
py
Python
commons/math_utils.py
bertl4398/semaphore-demo-python-pants
bd6e44804f71542bbc89474c527cc61bbc5ba099
[ "MIT" ]
4
2021-05-21T13:43:08.000Z
2021-12-29T02:36:34.000Z
commons/math_utils.py
bertl4398/semaphore-demo-python-pants
bd6e44804f71542bbc89474c527cc61bbc5ba099
[ "MIT" ]
null
null
null
commons/math_utils.py
bertl4398/semaphore-demo-python-pants
bd6e44804f71542bbc89474c527cc61bbc5ba099
[ "MIT" ]
4
2021-06-25T02:32:49.000Z
2022-03-11T19:06:40.000Z
"""Shared math functions.""" def math_sum(num1, num2): """Returns the sum of two parameters.""" return num1 + num2
17.857143
44
0.64
"""Shared math functions.""" def math_sum(num1, num2): """Returns the sum of two parameters.""" return num1 + num2
0
0
0
2081c4db723b72973994b2f51131c2fbe6dd94e7
3,913
py
Python
training/training/report/pending_list_kvs/pending_list_kvs.py
vhrsramya/Training
0415109c66fae8a58e48bcad0ae8cd210e8a95bb
[ "MIT" ]
null
null
null
training/training/report/pending_list_kvs/pending_list_kvs.py
vhrsramya/Training
0415109c66fae8a58e48bcad0ae8cd210e8a95bb
[ "MIT" ]
null
null
null
training/training/report/pending_list_kvs/pending_list_kvs.py
vhrsramya/Training
0415109c66fae8a58e48bcad0ae8cd210e8a95bb
[ "MIT" ]
1
2020-02-14T12:56:53.000Z
2020-02-14T12:56:53.000Z
# Copyright (c) 2013, Minda Sai Pvt LTd and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ import math from calendar import monthrange from datetime import datetime,timedelta,date from dateutil.rrule import * # def get_con...
34.628319
232
0.576795
# Copyright (c) 2013, Minda Sai Pvt LTd and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ import math from calendar import monthrange from datetime import datetime,timedelta,date from dateutil.rrule import * def execute(filte...
3,065
0
146
127e78027d3a86dbedef35a4008738c8f31c259c
2,116
py
Python
tests/testDQN.py
1696012928/RoomAI
37be09590489ab5f7c85083173e83ea31c40b76c
[ "MIT" ]
1
2018-03-02T00:49:31.000Z
2018-03-02T00:49:31.000Z
tests/testDQN.py
1696012928/RoomAI
37be09590489ab5f7c85083173e83ea31c40b76c
[ "MIT" ]
null
null
null
tests/testDQN.py
1696012928/RoomAI
37be09590489ab5f7c85083173e83ea31c40b76c
[ "MIT" ]
null
null
null
import unittest from models.dqn.dqnalgorithm import DqnAlgorithm import random import roomai import roomai.sevenking from models.dqn.dqnalgorithm import DqnPlayer from models.dqn.sevenking import SevenKingModel_ThreePlayers import roomai.common
33.0625
147
0.664934
import unittest from models.dqn.dqnalgorithm import DqnAlgorithm import random import roomai import roomai.sevenking from models.dqn.dqnalgorithm import DqnPlayer from models.dqn.sevenking import SevenKingModel_ThreePlayers class ExamplePlayer(DqnPlayer): def terminal_info_feat(self): return [1] def ...
1,505
24
338
144dce5682a278cd2617daaba66905d0960fc317
3,425
py
Python
stanCode_Projects/my_drawing/my_drawing.py
LeeHsuanHsuan/MystanCodeProjects
229f75cdb8717637bea2d83e41e84776dbb9a7c8
[ "MIT" ]
1
2022-01-26T06:04:35.000Z
2022-01-26T06:04:35.000Z
stanCode_Projects/my_drawing/my_drawing.py
LeeHsuanHsuan/MystanCodeProjects
229f75cdb8717637bea2d83e41e84776dbb9a7c8
[ "MIT" ]
null
null
null
stanCode_Projects/my_drawing/my_drawing.py
LeeHsuanHsuan/MystanCodeProjects
229f75cdb8717637bea2d83e41e84776dbb9a7c8
[ "MIT" ]
null
null
null
""" File: my_drawing Name: LEE HSUAN HSUAN ---------------------- TODO: """ from campy.graphics.gobjects import GOval, GRect, GArc, GPolygon ,GLabel from campy.graphics.gwindow import GWindow def main(): """ Sometimes little things in daily life that bring us happiness. Hope everyone can enjoy every mome...
24.640288
72
0.635036
""" File: my_drawing Name: LEE HSUAN HSUAN ---------------------- TODO: """ from campy.graphics.gobjects import GOval, GRect, GArc, GPolygon ,GLabel from campy.graphics.gwindow import GWindow def main(): """ Sometimes little things in daily life that bring us happiness. Hope everyone can enjoy every mome...
0
0
0
1381e31bdb3f07d1c3f3d70d86b35a122964b40b
2,581
py
Python
source/scripts/char_to_bin.py
flamechain/ComputerSimulator
b345b6553d202c166acbe6f254371b8fcad2a574
[ "MIT" ]
1
2021-02-15T18:52:44.000Z
2021-02-15T18:52:44.000Z
source/scripts/char_to_bin.py
flamechain/ComputerSimulator
b345b6553d202c166acbe6f254371b8fcad2a574
[ "MIT" ]
null
null
null
source/scripts/char_to_bin.py
flamechain/ComputerSimulator
b345b6553d202c166acbe6f254371b8fcad2a574
[ "MIT" ]
null
null
null
symbol_table = { '00000000': 'A', '00000001': 'B', '00000010': 'C', '00000011': 'D', '00000100': 'E', '00000101': 'F', '00000110': 'G', '00000111': 'H', '00001000': 'I', '00001001': 'J', '00001010': 'K', '00001011': 'L', '00001100': 'M', '00001101': 'N', '0000...
21.155738
53
0.404882
symbol_table = { '00000000': 'A', '00000001': 'B', '00000010': 'C', '00000011': 'D', '00000100': 'E', '00000101': 'F', '00000110': 'G', '00000111': 'H', '00001000': 'I', '00001001': 'J', '00001010': 'K', '00001011': 'L', '00001100': 'M', '00001101': 'N', '0000...
502
0
23
25d87b22ed75cef3afaf9f4577526ead230181c3
10,346
py
Python
src/MAT/build/MAT_distutils.py
wake-forest-ctsi/mist-toolkit
857e91976fa3b75ef2cad08612fa79cf2f743615
[ "BSD-3-Clause" ]
2
2015-10-28T17:58:31.000Z
2021-10-12T10:34:39.000Z
scrubber/MIST_2_0_4/src/MAT/build/MAT_distutils.py
manaswini18/DmD
dd1e865ddb7b43c8478b2b5733385143b1980951
[ "Apache-2.0" ]
null
null
null
scrubber/MIST_2_0_4/src/MAT/build/MAT_distutils.py
manaswini18/DmD
dd1e865ddb7b43c8478b2b5733385143b1980951
[ "Apache-2.0" ]
9
2016-12-17T22:50:37.000Z
2020-09-26T01:08:06.000Z
# Copyright (C) 2010 The MITRE Corporation. See the toplevel # file LICENSE for license terms. # This file contains utilities which may be used either by # build_tarball.py, install.py, or any of the dist.py files in # the individual tasks. # THIS FILE DOES NOT RELY ON THE MAT PYTHON MODULE. import subprocess impor...
32.949045
100
0.556737
# Copyright (C) 2010 The MITRE Corporation. See the toplevel # file LICENSE for license terms. # This file contains utilities which may be used either by # build_tarball.py, install.py, or any of the dist.py files in # the individual tasks. # THIS FILE DOES NOT RELY ON THE MAT PYTHON MODULE. import subprocess def s...
8,762
5
416
4155b51b326b1c6008762de469a32741ddafff32
644
py
Python
fetch_spacex.py
mogubudu/api-lesson-4
1b700a6ddd7e04ed1d6a008758b95a90683ca18d
[ "MIT" ]
null
null
null
fetch_spacex.py
mogubudu/api-lesson-4
1b700a6ddd7e04ed1d6a008758b95a90683ca18d
[ "MIT" ]
null
null
null
fetch_spacex.py
mogubudu/api-lesson-4
1b700a6ddd7e04ed1d6a008758b95a90683ca18d
[ "MIT" ]
null
null
null
import os import requests from file_handler import download_image, get_filename if __name__ == "__main__": main()
24.769231
73
0.725155
import os import requests from file_handler import download_image, get_filename def fetch_spacex_last_launch(path_to_save='images/', index_of_launch=13): spacex_api_url = 'https://api.spacexdata.com/v4/launches/' os.makedirs(path_to_save, exist_ok=True) responce = requests.get(spacex_api_url) respon...
476
0
46
b2e1919b70d39ba432c1acf53fcbe5674e29eac5
472
py
Python
snippets/set_line_join.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
3
2018-03-19T07:57:10.000Z
2021-07-05T08:55:14.000Z
snippets/set_line_join.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
6
2020-03-24T15:40:18.000Z
2021-12-13T19:46:09.000Z
snippets/set_line_join.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
4
2018-03-29T21:59:55.000Z
2019-12-16T14:56:38.000Z
snippet_normalize (cr, width, height) cr.set_line_width (0.16) cr.move_to (0.3, 0.33) cr.rel_line_to (0.2, -0.2) cr.rel_line_to (0.2, 0.2) cr.set_line_join (cairo.LINE_JOIN_MITER) #/* default */ cr.stroke () cr.move_to (0.3, 0.63) cr.rel_line_to (0.2, -0.2) cr.rel_line_to (0.2, 0.2) cr.set_line_join (cairo.LINE_JOIN_B...
21.454545
55
0.697034
snippet_normalize (cr, width, height) cr.set_line_width (0.16) cr.move_to (0.3, 0.33) cr.rel_line_to (0.2, -0.2) cr.rel_line_to (0.2, 0.2) cr.set_line_join (cairo.LINE_JOIN_MITER) #/* default */ cr.stroke () cr.move_to (0.3, 0.63) cr.rel_line_to (0.2, -0.2) cr.rel_line_to (0.2, 0.2) cr.set_line_join (cairo.LINE_JOIN_B...
0
0
0
76a5c4d6bb95c79b539e7d45481182b236126beb
5,490
py
Python
item_engine/lin_lin_network/test.py
GabrielAmare/TextEngine
39ceb323a63af35e32c4be34ae35a77e811bc973
[ "MIT" ]
null
null
null
item_engine/lin_lin_network/test.py
GabrielAmare/TextEngine
39ceb323a63af35e32c4be34ae35a77e811bc973
[ "MIT" ]
null
null
null
item_engine/lin_lin_network/test.py
GabrielAmare/TextEngine
39ceb323a63af35e32c4be34ae35a77e811bc973
[ "MIT" ]
null
null
null
from typing import Tuple from item_engine.constants import * from item_engine.lin_lin_network import Model as LL_Model from item_engine.textbase import make_characters, Char, Token if __name__ == '__main__': calls_to = {} @memorize def function(token: Token, char) -> Tuple[ACTION, STATE]: """ ...
31.551724
106
0.501093
from typing import Tuple from item_engine.constants import * from item_engine.lin_lin_network import Model as LL_Model from item_engine.textbase import make_characters, Char, Token if __name__ == '__main__': calls_to = {} def memorize(function): cache = {} def wrapper(token, char): ...
394
0
27
5483f8927d2bbfc5ed8cdc8e4bd363e75303c372
13,978
py
Python
src/synth.py
viniciuspjardim/synth-test
754afce502b1788ad9900eb095ef090acf1b1f26
[ "Apache-2.0" ]
null
null
null
src/synth.py
viniciuspjardim/synth-test
754afce502b1788ad9900eb095ef090acf1b1f26
[ "Apache-2.0" ]
null
null
null
src/synth.py
viniciuspjardim/synth-test
754afce502b1788ad9900eb095ef090acf1b1f26
[ "Apache-2.0" ]
null
null
null
""" Author: VinΓ­cius Jardim Email: viniciuspjardim@gmail.com Date: 3/2016 """ import math import random import re import wave import matplotlib.pyplot as plt import numpy as np import pyaudio as pa from scipy.io.wavfile import write from scipy import signal from src.musics import * class Notes: """Musical notes...
28.584867
72
0.5093
""" Author: VinΓ­cius Jardim Email: viniciuspjardim@gmail.com Date: 3/2016 """ import math import random import re import wave import matplotlib.pyplot as plt import numpy as np import pyaudio as pa from scipy.io.wavfile import write from scipy import signal from src.musics import * class Notes: """Musical notes...
9,327
365
332
c4cc7cbeda8d27d81365c8e30a7d91223c604b47
710
py
Python
warpworks/model/base.py
storborg/warpworks
a41a0a5bab8b826157309f7d0bafbdcdff66505b
[ "MIT" ]
null
null
null
warpworks/model/base.py
storborg/warpworks
a41a0a5bab8b826157309f7d0bafbdcdff66505b
[ "MIT" ]
null
null
null
warpworks/model/base.py
storborg/warpworks
a41a0a5bab8b826157309f7d0bafbdcdff66505b
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function, unicode_literals) from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from zope.sqlalchemy import ZopeTransactionExtension __all__ = ['Base', 'Session'] Session = ...
22.1875
76
0.673239
from __future__ import (absolute_import, division, print_function, unicode_literals) from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from zope.sqlalchemy import ZopeTransactionExtension __all__ = ['Base', 'Session'] Session = ...
0
262
23
e1690ac57e028e29d21726a6aeb67218a5883687
1,105
py
Python
src/controlmanual/core/typings.py
ControlManual/ControlManual
3c4bae24dbf27059381b997e535ec05aab37a0c0
[ "MIT" ]
null
null
null
src/controlmanual/core/typings.py
ControlManual/ControlManual
3c4bae24dbf27059381b997e535ec05aab37a0c0
[ "MIT" ]
12
2021-12-27T23:52:55.000Z
2022-03-09T00:26:23.000Z
src/controlmanual/core/typings.py
ControlManual/ControlManual
3c4bae24dbf27059381b997e535ec05aab37a0c0
[ "MIT" ]
null
null
null
from typing import ( Protocol, Awaitable, TypeVar, Callable, Union, runtime_checkable, Dict, TypedDict, Generic, Type, TYPE_CHECKING, ) from typing_extensions import ParamSpec if TYPE_CHECKING: from .object import Object T = TypeVar("T", covariant=True...
19.732143
63
0.58733
from typing import ( Protocol, Awaitable, TypeVar, Callable, Union, runtime_checkable, Dict, TypedDict, Generic, Type, TYPE_CHECKING, ) from typing_extensions import ParamSpec if TYPE_CHECKING: from .object import Object T = TypeVar("T", covariant=True...
217
99
243
9f61c97ea77ba61d6d50535c2987c323c8c2b7e6
3,041
py
Python
nittymcpick/cls/linter.py
priv-kweihmann/nittymcpick
4ec0eeca0f888aa9c67a39ca11cc1fe5bb905477
[ "BSD-2-Clause" ]
1
2020-02-23T17:31:17.000Z
2020-02-23T17:31:17.000Z
nittymcpick/cls/linter.py
priv-kweihmann/nittymcpick
4ec0eeca0f888aa9c67a39ca11cc1fe5bb905477
[ "BSD-2-Clause" ]
7
2020-02-16T20:41:44.000Z
2021-10-05T18:08:00.000Z
nittymcpick/cls/linter.py
priv-kweihmann/nittymcpick
4ec0eeca0f888aa9c67a39ca11cc1fe5bb905477
[ "BSD-2-Clause" ]
null
null
null
import json import subprocess import re import sys from nittymcpick.cls.comment import Comment
37.54321
120
0.507399
import json import subprocess import re import sys from nittymcpick.cls.comment import Comment class Linter(): def __init__(self, _config, _appargs): self.__name = _config["linter"]["name"] self.__exec = _config["linter"]["path"] self.__args = _config["linter"]["args"] self.__app...
2,801
120
23
cbd9852948ed7e1b902fcc21a2a9dcfff85378db
1,635
py
Python
experimental/conversation_go_awry/feature_extraction/user_features/user_toxicity.py
CyberFlameGO/wikidetox
60ee914c8bb81bada0847a3676e0bf24a6e35221
[ "Apache-2.0" ]
66
2017-09-10T12:47:37.000Z
2022-03-18T01:33:10.000Z
experimental/conversation_go_awry/feature_extraction/user_features/user_toxicity.py
CyberFlameGO/wikidetox
60ee914c8bb81bada0847a3676e0bf24a6e35221
[ "Apache-2.0" ]
82
2017-09-12T13:01:59.000Z
2021-11-10T19:40:01.000Z
experimental/conversation_go_awry/feature_extraction/user_features/user_toxicity.py
CyberFlameGO/wikidetox
60ee914c8bb81bada0847a3676e0bf24a6e35221
[ "Apache-2.0" ]
20
2017-11-02T21:23:35.000Z
2022-03-09T01:30:58.000Z
""" Copyright 2017 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
34.0625
98
0.719266
""" Copyright 2017 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
0
0
0
71ffbec5cd20308b2d2dc18b8082641b84ae620e
2,970
py
Python
app/data.py
ASLive/webserver
af36d194a4e4a5880df9c046518e75a07abfea22
[ "MIT" ]
null
null
null
app/data.py
ASLive/webserver
af36d194a4e4a5880df9c046518e75a07abfea22
[ "MIT" ]
11
2018-11-07T21:05:00.000Z
2022-02-10T00:05:36.000Z
app/data.py
ASLive/webserver
af36d194a4e4a5880df9c046518e75a07abfea22
[ "MIT" ]
1
2019-06-18T03:32:55.000Z
2019-06-18T03:32:55.000Z
import os import numpy as np import math import scipy import pickle TRAIN_DATA_PATH = "/Users/evanradcliffe/Senior Design/webserver/app/asl-alphabet/asl_alphabet_train" split_arr = lambda arr: arr[int(len(arr)/7):] def read_hand3d(): """read data from files (run setup_asl.py to generate)""" images = pickle.l...
38.076923
100
0.63064
import os import numpy as np import math import scipy import pickle TRAIN_DATA_PATH = "/Users/evanradcliffe/Senior Design/webserver/app/asl-alphabet/asl_alphabet_train" split_arr = lambda arr: arr[int(len(arr)/7):] def load_data(): images, labels, class_names = read_data() (train_images, train_labels), (test...
671
0
69
2e9f3722170c3a07c50da57bbee3e541b84730ba
10,222
py
Python
riscvmodel/isa.py
mss10/riscv-python-model
b48786dd18f61a0a25cb0928bd592dc95f7fd80c
[ "MIT" ]
null
null
null
riscvmodel/isa.py
mss10/riscv-python-model
b48786dd18f61a0a25cb0928bd592dc95f7fd80c
[ "MIT" ]
null
null
null
riscvmodel/isa.py
mss10/riscv-python-model
b48786dd18f61a0a25cb0928bd592dc95f7fd80c
[ "MIT" ]
null
null
null
from .insn import * from .variant import RV64I,Extensions @isa("lui", 0x37) class InstructionLUI(InstructionUType): """ The Load Upper Immediate (LUI) instruction loads the given immediate (unsigned 20 bit) to the upper 20 bit of the destination register. The lower bits are set to zero in the destination ...
26.970976
110
0.654862
from .insn import * from .variant import RV64I,Extensions @isa("lui", 0x37) class InstructionLUI(InstructionUType): """ The Load Upper Immediate (LUI) instruction loads the given immediate (unsigned 20 bit) to the upper 20 bit of the destination register. The lower bits are set to zero in the destination ...
4,675
1,087
2,567
f51fd445fcb04f80f1d3a4a51fabc963c31f468c
3,937
py
Python
models/layers/spatial_attn.py
milesgray/ImageFunctions
35e4423b94149b0ba291eafb0cd98260a70d5f31
[ "Apache-2.0" ]
null
null
null
models/layers/spatial_attn.py
milesgray/ImageFunctions
35e4423b94149b0ba291eafb0cd98260a70d5f31
[ "Apache-2.0" ]
null
null
null
models/layers/spatial_attn.py
milesgray/ImageFunctions
35e4423b94149b0ba291eafb0cd98260a70d5f31
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor from .learnable import Scale, Balance from .softmax import SpatialSoftmax2d from .spectral import SpectralConv2d from ImageFunctions.utility.torch import get_valid_padding from .registry import register from . import create as ...
36.794393
94
0.557023
import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor from .learnable import Scale, Balance from .softmax import SpatialSoftmax2d from .spectral import SpectralConv2d from ImageFunctions.utility.torch import get_valid_padding from .registry import register from . import create as ...
3,249
54
198
f16eabb15db8c0d9c36d7fbebbb6e18c1ddd544c
1,478
py
Python
src/Modules/Utilities/coordinate_tools.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
1
2016-09-21T19:30:21.000Z
2016-09-21T19:30:21.000Z
src/Modules/Utilities/coordinate_tools.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
null
null
null
src/Modules/Utilities/coordinate_tools.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
1
2020-07-23T11:13:36.000Z
2020-07-23T11:13:36.000Z
""" -*- test-case-name: PyHouse/src/Modules/Utilities/coordinate_tools.py -*- @name: PyHouse/src/Modules/Utilities/coordinate_tools.py @author: D. Brian Kimmel @contact: d.briankimmel@gmail.com @copyright: 2016-2016 by D. Brian Kimmel @date: Created on Jun 21, 2016 @licencse: MIT License @summa...
28.423077
102
0.600135
""" -*- test-case-name: PyHouse/src/Modules/Utilities/coordinate_tools.py -*- @name: PyHouse/src/Modules/Utilities/coordinate_tools.py @author: D. Brian Kimmel @contact: d.briankimmel@gmail.com @copyright: 2016-2016 by D. Brian Kimmel @date: Created on Jun 21, 2016 @licencse: MIT License @summa...
0
0
0
96c27f0cde89e9aacc4e7df0046aaad96c168cea
91
py
Python
analyser/apps.py
gorkemyontem/SWE-573-2020
6a9ca57d294066fcc0db640f45d38d7341754a68
[ "MIT" ]
null
null
null
analyser/apps.py
gorkemyontem/SWE-573-2020
6a9ca57d294066fcc0db640f45d38d7341754a68
[ "MIT" ]
35
2020-11-02T17:06:35.000Z
2021-03-10T07:56:03.000Z
analyser/apps.py
ripoul/workshop-i2-back
64f1e4146edad1e8e079aefad92f1751266270cf
[ "MIT" ]
1
2021-02-02T14:38:27.000Z
2021-02-02T14:38:27.000Z
from django.apps import AppConfig
15.166667
33
0.758242
from django.apps import AppConfig class AnalyserConfig(AppConfig): name = 'analyser'
0
33
23
b0903548d1a84b3ec125464556f089e2b14802e0
118
py
Python
pyalgo/algocryption/compiled_functions/compiled_functions.py
gilad-dotan/pyalgo_pkg
132ff3c032c3fc0ae910201611e5d2cde387eb74
[ "MIT" ]
1
2021-04-01T08:59:30.000Z
2021-04-01T08:59:30.000Z
pyalgo/algocryption/compiled_functions/compiled_functions.py
gilad-dotan/pyalgo_pkg
132ff3c032c3fc0ae910201611e5d2cde387eb74
[ "MIT" ]
null
null
null
pyalgo/algocryption/compiled_functions/compiled_functions.py
gilad-dotan/pyalgo_pkg
132ff3c032c3fc0ae910201611e5d2cde387eb74
[ "MIT" ]
null
null
null
# the pre compiled functions would be written here # only the algocryption module can access these complied functions
39.333333
66
0.822034
# the pre compiled functions would be written here # only the algocryption module can access these complied functions
0
0
0
77a8b60002777297117b55b355863c7bb7ef4848
872
py
Python
api_server/enviroment/enviroment.py
RobertoRosa7/python
449f3908a38814ec7ec3b3ce1051b8abe70069d2
[ "MIT" ]
null
null
null
api_server/enviroment/enviroment.py
RobertoRosa7/python
449f3908a38814ec7ec3b3ce1051b8abe70069d2
[ "MIT" ]
2
2020-07-19T15:36:35.000Z
2022-02-02T20:30:16.000Z
api_server/enviroment/enviroment.py
RobertoRosa7/python
449f3908a38814ec7ec3b3ce1051b8abe70069d2
[ "MIT" ]
null
null
null
import os, sys sys.path.append(os.path.abspath(os.getcwd())) from pymongo import MongoClient API = 'http://localhost:4200' # frontend api PRIMEIROAPP_API_DEV = os.environ.get('PRIMEIROAPP_API_DEV') PRIMEIROAPP_API_PROD = os.environ.get('PRIMEIROAPP_API_PROD') conn = MongoClient(host=PRIMEIROAPP_API_DEV, port=27017...
43.6
285
0.792431
import os, sys sys.path.append(os.path.abspath(os.getcwd())) from pymongo import MongoClient API = 'http://localhost:4200' # frontend api PRIMEIROAPP_API_DEV = os.environ.get('PRIMEIROAPP_API_DEV') PRIMEIROAPP_API_PROD = os.environ.get('PRIMEIROAPP_API_PROD') conn = MongoClient(host=PRIMEIROAPP_API_DEV, port=27017...
0
0
0
044806f797125af3269ae09a8e5594ea984b2271
1,298
py
Python
analyzer/utils/nlp_factory.py
cut4cut/cul_trip
f56a0b1865c4b6b5cb79c073bb171a819b607c4e
[ "MIT" ]
null
null
null
analyzer/utils/nlp_factory.py
cut4cut/cul_trip
f56a0b1865c4b6b5cb79c073bb171a819b607c4e
[ "MIT" ]
null
null
null
analyzer/utils/nlp_factory.py
cut4cut/cul_trip
f56a0b1865c4b6b5cb79c073bb171a819b607c4e
[ "MIT" ]
null
null
null
import re import nltk import gensim import logging from pymystem3 import Mystem from string import punctuation from nltk.corpus import stopwords log = logging.getLogger(__name__)
25.45098
82
0.660247
import re import nltk import gensim import logging from pymystem3 import Mystem from string import punctuation from nltk.corpus import stopwords log = logging.getLogger(__name__) def clean_html(text: str) -> str: regexp = re.compile('<.*?>|[a-zA-Z]+|&|;') return re.sub(regexp, '', text) def preprocess_text...
1,043
0
69
442cb0c494deec67f842f872720e741951f3f855
867
py
Python
lib/googlecloudsdk/sql/tools/ssl_certs/__init__.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/sql/tools/ssl_certs/__init__.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/sql/tools/ssl_certs/__init__.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
1
2020-07-24T20:04:47.000Z
2020-07-24T20:04:47.000Z
# Copyright 2013 Google Inc. All Rights Reserved. """Provide commands for managing SSL certificates of Cloud SQL instances.""" from googlecloudsdk.calliope import base class SslCerts(base.Group): """Provide commands for managing SSL certificates of Cloud SQL instances. Provide commands for managing SSL certif...
27.967742
77
0.701269
# Copyright 2013 Google Inc. All Rights Reserved. """Provide commands for managing SSL certificates of Cloud SQL instances.""" from googlecloudsdk.calliope import base class SslCerts(base.Group): """Provide commands for managing SSL certificates of Cloud SQL instances. Provide commands for managing SSL certif...
0
0
0
447cd0fd1144a985b45bfcd0b776be5aeb960987
6,257
py
Python
pyglet-fixed/window/cocoa/pyglet_textview.py
briggsmatthew/Wallpaper-Downloader
d8a22e02f35a5436566d14c3bdc6dd65fcddd3eb
[ "MIT" ]
1
2016-11-16T17:22:48.000Z
2016-11-16T17:22:48.000Z
pyglet-fixed/window/cocoa/pyglet_textview.py
briggsmatthew/Wallpaper-Downloader
d8a22e02f35a5436566d14c3bdc6dd65fcddd3eb
[ "MIT" ]
1
2018-08-27T22:31:16.000Z
2018-08-27T22:31:16.000Z
pyglet-fixed/window/cocoa/pyglet_textview.py
briggsmatthew/Wallpaper-Downloader
d8a22e02f35a5436566d14c3bdc6dd65fcddd3eb
[ "MIT" ]
1
2019-09-06T03:05:35.000Z
2019-09-06T03:05:35.000Z
import unicodedata from pyglet.window import key from pyglet.libs.darwin.cocoapy import * NSArray = ObjCClass('NSArray') NSApplication = ObjCClass('NSApplication') # This custom NSTextView subclass is used for capturing all of the # on_text, on_text_motion, and on_text_motion_select events. PygletTextView = ObjCC...
39.352201
94
0.704171
import unicodedata from pyglet.window import key from pyglet.libs.darwin.cocoapy import * NSArray = ObjCClass('NSArray') NSApplication = ObjCClass('NSApplication') # This custom NSTextView subclass is used for capturing all of the # on_text, on_text_motion, and on_text_motion_select events. class PygletTextView_Imp...
3,895
1,997
22
0f397ddb2cd34001830ecfdfe2903018b622dff3
893
py
Python
server.py
cristoferz/oqem
cab5c8e9254331cb466d46d5749ca43466e8ca0e
[ "Apache-2.0" ]
null
null
null
server.py
cristoferz/oqem
cab5c8e9254331cb466d46d5749ca43466e8ca0e
[ "Apache-2.0" ]
null
null
null
server.py
cristoferz/oqem
cab5c8e9254331cb466d46d5749ca43466e8ca0e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from BaseHTTPServer import HTTPServer from threading import Thread from webserver.context import RequestHandler if __name__ == "__main__": from sys import argv if len(argv) == 2: run(port=int(argv[1])) else: run()
33.074074
114
0.711086
#!/usr/bin/env python from BaseHTTPServer import HTTPServer from threading import Thread from webserver.context import RequestHandler class ThreadedHTTPServer(HTTPServer): def process_request(self, request, client_address): thread = Thread(target=self.__new_request, args=(self.RequestHandlerClass, request,...
502
16
106
f3ff14eca52156dbabb07ee7961cf2e47065293b
18,466
py
Python
Assignment 3/tak.py
xjyssg/AI-assignment
d79f37352edb11c8eabd02dd36677302229dfadf
[ "MIT" ]
null
null
null
Assignment 3/tak.py
xjyssg/AI-assignment
d79f37352edb11c8eabd02dd36677302229dfadf
[ "MIT" ]
null
null
null
Assignment 3/tak.py
xjyssg/AI-assignment
d79f37352edb11c8eabd02dd36677302229dfadf
[ "MIT" ]
1
2018-10-07T20:27:57.000Z
2018-10-07T20:27:57.000Z
from state import State from mystack import Stack from myqueue import Queue """ Define the number of stones can capstones for each board size. """ STONES = { 3: (10,0), 4: (15,0), 5: (21,1), 6: (30,1), 8: (50,2) } """ Define constants representing flat stones, standing stones and cap stones. """ FLAT_STONE...
32.003466
176
0.59022
from state import State from mystack import Stack from myqueue import Queue """ Define the number of stones can capstones for each board size. """ STONES = { 3: (10,0), 4: (15,0), 5: (21,1), 6: (30,1), 8: (50,2) } """ Define constants representing flat stones, standing stones and cap stones. """ FLAT_STONE...
13,465
0
847
fc5060d2b2feab170585d068f44aadadbe851b21
2,968
py
Python
scheduler/tests/jobrequester_test.py
Yixiao99/deep-learning-containers
01f078adf5abfb92e802b326511981bdd4a8c85c
[ "Apache-2.0" ]
383
2020-05-19T18:09:10.000Z
2022-03-29T22:41:05.000Z
scheduler/tests/jobrequester_test.py
Yixiao99/deep-learning-containers
01f078adf5abfb92e802b326511981bdd4a8c85c
[ "Apache-2.0" ]
551
2020-05-27T17:25:50.000Z
2022-03-31T18:00:35.000Z
scheduler/tests/jobrequester_test.py
ashahba/deep-learning-containers
48c3948b3d11f4fe2aac6bb25e5d82230d777076
[ "Apache-2.0" ]
263
2020-05-19T18:17:12.000Z
2022-03-29T22:41:10.000Z
import concurrent.futures import logging import os import sys import boto3 import log_return from job_requester import JobRequester LOGGER = logging.getLogger(__name__) LOGGER.setLevel(logging.DEBUG) LOGGER.addHandler(logging.StreamHandler(sys.stdout)) TEST_IMAGE = "763104351884.dkr.ecr.us-west-2.amazonaws.com/t...
35.759036
120
0.722372
import concurrent.futures import logging import os import sys import boto3 import log_return from job_requester import JobRequester LOGGER = logging.getLogger(__name__) LOGGER.setLevel(logging.DEBUG) LOGGER.addHandler(logging.StreamHandler(sys.stdout)) TEST_IMAGE = "763104351884.dkr.ecr.us-west-2.amazonaws.com/t...
0
0
0
b961eff9eb243efa64122c274f8dd1040ded904d
347
py
Python
src/pdn/views.py
ricardogsilva/nexus-geonode
b3c1d428fe0c246bcc3195ebcbd54554b726dbe2
[ "BSD-2-Clause" ]
null
null
null
src/pdn/views.py
ricardogsilva/nexus-geonode
b3c1d428fe0c246bcc3195ebcbd54554b726dbe2
[ "BSD-2-Clause" ]
null
null
null
src/pdn/views.py
ricardogsilva/nexus-geonode
b3c1d428fe0c246bcc3195ebcbd54554b726dbe2
[ "BSD-2-Clause" ]
null
null
null
from django.shortcuts import render from django.views.generic import ListView from pdn.models import *
18.263158
41
0.746398
from django.shortcuts import render from django.views.generic import ListView from pdn.models import * class NewsPageView(ListView): model = News class ProjectsPageView(ListView): model = Project class AlertsPageView(ListView): model = Alert ordering = ['-gdacs_fromdate'] class ExpertsPageView(List...
0
150
92
0e533f4771e19bea8c54b52b140c1909cbaff6b9
1,846
py
Python
src/database/database.py
grigorjevas/Discogs-price-prediction
f1173cba9ed3aa48b1db508bc66d9f768118ec23
[ "MIT" ]
5
2021-08-22T12:41:16.000Z
2022-02-22T21:50:02.000Z
src/database/database.py
grigorjevas/Discogs-price-prediction
f1173cba9ed3aa48b1db508bc66d9f768118ec23
[ "MIT" ]
null
null
null
src/database/database.py
grigorjevas/Discogs-price-prediction
f1173cba9ed3aa48b1db508bc66d9f768118ec23
[ "MIT" ]
null
null
null
from dotenv import load_dotenv import os from psycopg2 import connect, OperationalError load_dotenv()
29.774194
116
0.604009
from dotenv import load_dotenv import os from psycopg2 import connect, OperationalError load_dotenv() class Database: def __init__(self): """ Database class. Available methods: * connect * execute_query * execute_query_and_fetch """ self...
0
1,720
23
853c982d62eb798a237e5159657a7222b848e688
4,817
py
Python
deploy/examples/migrationcontainer/migration.py
jakedt/dba-operator
5f4abcc490b05e5490fdbb704b0e20dbf0821e36
[ "Apache-2.0" ]
null
null
null
deploy/examples/migrationcontainer/migration.py
jakedt/dba-operator
5f4abcc490b05e5490fdbb704b0e20dbf0821e36
[ "Apache-2.0" ]
null
null
null
deploy/examples/migrationcontainer/migration.py
jakedt/dba-operator
5f4abcc490b05e5490fdbb704b0e20dbf0821e36
[ "Apache-2.0" ]
null
null
null
import os import sys import logging import time import argparse import re import pymysql.cursors import pymysql.err from prometheus_client import CollectorRegistry, Gauge, Counter, push_to_gateway FORMAT = '%(asctime)s [%(process)d] [%(levelname)s] [%(name)s] %(message)s' TABLE_DEF = """ CREATE TABLE `alembic_vers...
29.552147
82
0.653311
import os import sys import logging import time import argparse import re import pymysql.cursors import pymysql.err from prometheus_client import CollectorRegistry, Gauge, Counter, push_to_gateway FORMAT = '%(asctime)s [%(process)d] [%(levelname)s] [%(name)s] %(message)s' TABLE_DEF = """ CREATE TABLE `alembic_vers...
2,712
0
92
3ec6be15ac763ee168cf5cd5303e3d0bef0039b5
3,589
py
Python
minecraft_monitor/whitelist.py
iwcharlton/minecraft-monitor
fd4c10213bfab8c45a1c2884ef2f2fffd77b2e5b
[ "MIT" ]
null
null
null
minecraft_monitor/whitelist.py
iwcharlton/minecraft-monitor
fd4c10213bfab8c45a1c2884ef2f2fffd77b2e5b
[ "MIT" ]
null
null
null
minecraft_monitor/whitelist.py
iwcharlton/minecraft-monitor
fd4c10213bfab8c45a1c2884ef2f2fffd77b2e5b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import json import os ''' The whitelist object is for reading the standard minecraft whitelist.json, and also maintaining a blacklist.json. '''
31.761062
89
0.648091
#!/usr/bin/env python import json import os ''' The whitelist object is for reading the standard minecraft whitelist.json, and also maintaining a blacklist.json. ''' class Whitelist(): def __init__(self, location): self.location = location self.disk_whitelist = [] self.whitelist = None self.disk_blac...
3,146
-3
279
717590a396e6947a38a879746af39da4f3629398
776
py
Python
linda/builder_advanced/urls.py
cbotsikas/LindaWorkbench
b2bfa091fb4ec80ac35b3f68edf46780c1e9ffea
[ "MIT" ]
null
null
null
linda/builder_advanced/urls.py
cbotsikas/LindaWorkbench
b2bfa091fb4ec80ac35b3f68edf46780c1e9ffea
[ "MIT" ]
null
null
null
linda/builder_advanced/urls.py
cbotsikas/LindaWorkbench
b2bfa091fb4ec80ac35b3f68edf46780c1e9ffea
[ "MIT" ]
null
null
null
__author__ = 'dimitris' """ URLS for the Advanced Builder """ from django.conf.urls import patterns, include, url from builder_advanced import views urlpatterns = patterns('', # Basic pages url(r'^$', views.index, name='advanced-builder-index'), ...
33.73913
101
0.537371
__author__ = 'dimitris' """ URLS for the Advanced Builder """ from django.conf.urls import patterns, include, url from builder_advanced import views urlpatterns = patterns('', # Basic pages url(r'^$', views.index, name='advanced-builder-index'), ...
0
0
0
26c004179ee0e44bc1b547fb0fe2556ca35299be
1,332
py
Python
server/coffee_book/serializers.py
carter-harris/CoffeeBook
79e20ac6abbd3c1d1f156d4b8dffb47b1d548df7
[ "MIT" ]
null
null
null
server/coffee_book/serializers.py
carter-harris/CoffeeBook
79e20ac6abbd3c1d1f156d4b8dffb47b1d548df7
[ "MIT" ]
null
null
null
server/coffee_book/serializers.py
carter-harris/CoffeeBook
79e20ac6abbd3c1d1f156d4b8dffb47b1d548df7
[ "MIT" ]
null
null
null
from rest_framework import serializers from django.contrib.auth.models import User from coffee_book.models import User, Coffee, BrewMethod, Review, Region
39.176471
156
0.686937
from rest_framework import serializers from django.contrib.auth.models import User from coffee_book.models import User, Coffee, BrewMethod, Review, Region class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ('id', 'url', 'username', 'user_type', 'first_name', 'last_...
0
1,062
115
293dd3266bb0518f0b51ded116194d1d499836e0
691
py
Python
wintria/lib/swap_logo.py
codelucas/wintria.com
99c3f20d64e6ecf3d02cf0117233de349274a607
[ "MIT" ]
2
2017-10-04T20:53:09.000Z
2021-11-12T10:02:32.000Z
wintria/lib/swap_logo.py
codelucas/wintria.com
99c3f20d64e6ecf3d02cf0117233de349274a607
[ "MIT" ]
null
null
null
wintria/lib/swap_logo.py
codelucas/wintria.com
99c3f20d64e6ecf3d02cf0117233de349274a607
[ "MIT" ]
null
null
null
import sys import cStringIO import urllib2 from img_utils import prepare_image from PIL import Image from wintria.wintria.settings import PROJECT_ROOT thumbnail_size = 100, 100 dest_thumb_url = PROJECT_ROOT + 'wintria/wintria/logo_static/logo_thumbs/' dest_gen_url = PROJECT_ROOT + 'wintria/wintria/logo_static/logob...
24.678571
74
0.752533
import sys import cStringIO import urllib2 from img_utils import prepare_image from PIL import Image from wintria.wintria.settings import PROJECT_ROOT thumbnail_size = 100, 100 dest_thumb_url = PROJECT_ROOT + 'wintria/wintria/logo_static/logo_thumbs/' dest_gen_url = PROJECT_ROOT + 'wintria/wintria/logo_static/logob...
0
0
0
0a6332c3d5b912a3397508aa8754164b4481303c
47,973
py
Python
modules/s3db/po.py
Mkgdukoo/aidiq
840b97651d79352878d5a777067a915985617378
[ "MIT" ]
1
2018-06-06T12:11:25.000Z
2018-06-06T12:11:25.000Z
modules/s3db/po.py
Mkgdukoo/aidiq
840b97651d79352878d5a777067a915985617378
[ "MIT" ]
null
null
null
modules/s3db/po.py
Mkgdukoo/aidiq
840b97651d79352878d5a777067a915985617378
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Sahana Eden Population Outreach Models @copyright: 2015-2021 (c) Sahana Software Foundation @license: MIT 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 S...
42.007881
145
0.39147
# -*- coding: utf-8 -*- """ Sahana Eden Population Outreach Models @copyright: 2015-2021 (c) Sahana Software Foundation @license: MIT 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 S...
34,963
5,271
120
7a5e56c55559adf12d890e6b7072abf9a91e3aee
768
py
Python
backend/routers/cv/cv.py
izdwuut/ceevee
bf3803bea88fa90101f8055fcc8168f572338e2d
[ "MIT" ]
1
2021-05-12T19:56:49.000Z
2021-05-12T19:56:49.000Z
backend/routers/cv/cv.py
izdwuut/ceevee
bf3803bea88fa90101f8055fcc8168f572338e2d
[ "MIT" ]
1
2020-10-31T19:59:55.000Z
2020-10-31T20:05:57.000Z
backend/routers/cv/cv.py
resumik/resumik
bf3803bea88fa90101f8055fcc8168f572338e2d
[ "MIT" ]
1
2021-03-10T14:22:12.000Z
2021-03-10T14:22:12.000Z
from fastapi import APIRouter from pydantic import UUID4 from models.cv.cv import CVModel, CV_Pydantic from models.cv.details import DetailsModel cv_router = APIRouter() @cv_router.get("/{cv_id}") @cv_router.get("/") @cv_router.post("/{user_id}")
24
65
0.730469
from fastapi import APIRouter from pydantic import UUID4 from models.cv.cv import CVModel, CV_Pydantic from models.cv.details import DetailsModel cv_router = APIRouter() @cv_router.get("/{cv_id}") async def get_cv(cv_id: UUID4): cv = await CVModel.get(id=cv_id) return await CV_Pydantic.from_tortoise_orm(cv) ...
445
0
66
608579813c7b89e6b26401e5c791c78ea017e805
1,403
py
Python
src/dataFetchers/voltageDailyFetcher.py
dheerajgupta0001/wrldc_mis_monthly_files_load
a3a6bc950c54a3444248e1eb257814951a999b1d
[ "MIT" ]
null
null
null
src/dataFetchers/voltageDailyFetcher.py
dheerajgupta0001/wrldc_mis_monthly_files_load
a3a6bc950c54a3444248e1eb257814951a999b1d
[ "MIT" ]
null
null
null
src/dataFetchers/voltageDailyFetcher.py
dheerajgupta0001/wrldc_mis_monthly_files_load
a3a6bc950c54a3444248e1eb257814951a999b1d
[ "MIT" ]
null
null
null
from typing import Dict import pandas as pd import datetime as dt from src.typeDefs.freqVoltConfig import IFreqVoltConfig from src.typeDefs.voltRecord import IVoltDataRecord from typing import List
33.404762
127
0.622238
from typing import Dict import pandas as pd import datetime as dt from src.typeDefs.freqVoltConfig import IFreqVoltConfig from src.typeDefs.voltRecord import IVoltDataRecord from typing import List def getDailyVoltData(freqVoltConfigs: List[IFreqVoltConfig], targetFilePath: str) -> List[IVoltDataRecord]: voltReco...
1,181
0
23
4197f99e4c9e1a4eb00ae71ec0a2e57c570f6414
3,690
py
Python
ezodf2/whitespaces.py
iwschris/ezodf2
061c4aa3f26e9157ad46155d8ce92db7187b0574
[ "MIT" ]
4
2015-03-15T22:32:35.000Z
2019-12-23T12:13:13.000Z
ezodf2/whitespaces.py
iwschris/ezodf2
061c4aa3f26e9157ad46155d8ce92db7187b0574
[ "MIT" ]
3
2017-08-17T09:36:42.000Z
2021-12-13T19:43:28.000Z
ezodf2/whitespaces.py
iwschris/ezodf2
061c4aa3f26e9157ad46155d8ce92db7187b0574
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 # Purpose: whitespace processing # Created: 06.01.2011 # Copyright (C) 2011, Manfred Moitzi # License: MIT from __future__ import unicode_literals, print_function, division __author__ = "mozman <mozman@gmx.at>" from .compatibility import tostr from .xmlns import register_c...
25.102041
66
0.56206
#!/usr/bin/env python #coding:utf-8 # Purpose: whitespace processing # Created: 06.01.2011 # Copyright (C) 2011, Manfred Moitzi # License: MIT from __future__ import unicode_literals, print_function, division __author__ = "mozman <mozman@gmx.at>" from .compatibility import tostr from .xmlns import register_c...
2,177
867
162
7ec208231c80a6789a34bfeabdc98108c3394d56
963
py
Python
outlier.py
td236/Fisher-s-linear-discriminant
21a4c2a1f270f9ad579626caf6270b8ce0cd9d79
[ "MIT" ]
null
null
null
outlier.py
td236/Fisher-s-linear-discriminant
21a4c2a1f270f9ad579626caf6270b8ce0cd9d79
[ "MIT" ]
null
null
null
outlier.py
td236/Fisher-s-linear-discriminant
21a4c2a1f270f9ad579626caf6270b8ce0cd9d79
[ "MIT" ]
null
null
null
import pandas as pd df = pd.read_csv('data_banknote_authentication.txt') outliers(1.5, df) outliers(2.5, df) print() authentic = df[df['class'] == 0] # class 0 fake = df[df['class'] == 1] # class 1 outliers(1.5, authentic) outliers(2.0, authentic) outliers(2.5, authentic) print() outliers(1.5, fake) outliers(2....
24.692308
56
0.575286
import pandas as pd df = pd.read_csv('data_banknote_authentication.txt') def outliers(factor, df): print("factor: ", factor) for column in df: if column == "class": break columnSeriesObj = df[column] Q1 = columnSeriesObj.quantile(0.25) Q3 = columnSeriesObj.quantile(...
591
0
23
8c9a395b6211fec8cef609fff0203df6b43bd9ff
1,291
py
Python
uai-censor-sdk/api/create_async_video_job.py
ucloud/uai-saas-sdk
96935088daf924c247d6b86eab725e29a9d169f3
[ "Apache-2.0" ]
4
2020-02-25T18:25:51.000Z
2021-03-16T08:42:30.000Z
uai-censor-sdk/api/create_async_video_job.py
ucloud/uai-saas-sdk
96935088daf924c247d6b86eab725e29a9d169f3
[ "Apache-2.0" ]
null
null
null
uai-censor-sdk/api/create_async_video_job.py
ucloud/uai-saas-sdk
96935088daf924c247d6b86eab725e29a9d169f3
[ "Apache-2.0" ]
2
2019-04-22T09:36:46.000Z
2019-06-25T06:17:53.000Z
from api.base_datastream_api import UAICensorBaseDatastreamApi from api.utils import gen_async_video_censor_url
41.645161
106
0.629744
from api.base_datastream_api import UAICensorBaseDatastreamApi from api.utils import gen_async_video_censor_url class UAICensorCreateAsyncVideoJobApi(UAICensorBaseDatastreamApi): REQUEST_URL = gen_async_video_censor_url() def __init__(self, signature, public_key, resource_id, timestamp, scenes, url, interval...
982
174
23
67060ad8973e2b1b3ea5ebbdaf76a6e358959b84
2,481
py
Python
demo-004.py
XuekuanWang/sparse-001
b4d597d084dc2c876afe2c8ab63f7d25d1900fca
[ "Apache-2.0" ]
null
null
null
demo-004.py
XuekuanWang/sparse-001
b4d597d084dc2c876afe2c8ab63f7d25d1900fca
[ "Apache-2.0" ]
null
null
null
demo-004.py
XuekuanWang/sparse-001
b4d597d084dc2c876afe2c8ab63f7d25d1900fca
[ "Apache-2.0" ]
null
null
null
import math import numpy.linalg import numpy as np def shrink(X, tau): """ Apply the shrinkage operator the the elements of X. Returns V such that V[i,j] = max(abs(X[i,j]) - tau,0). """ V = np.copy(X).reshape(X.size) for i in range(V.size): V[i] = math.copysign(max(abs(V[i]) - tau, 0), ...
20.848739
88
0.526401
import math import numpy.linalg import numpy as np def shrink(X, tau): """ Apply the shrinkage operator the the elements of X. Returns V such that V[i,j] = max(abs(X[i,j]) - tau,0). """ V = np.copy(X).reshape(X.size) for i in range(V.size): V[i] = math.copysign(max(abs(V[i]) - tau, 0), ...
184
0
23
afd2de431b1d5fc7842a17d05064220c3e9fbaad
24
py
Python
starkit/fitkit/optimizers/__init__.py
dchu808/starkit
1940683ef231cee54be2c703d4a7611a3991d8b7
[ "BSD-3-Clause" ]
12
2018-05-15T14:59:27.000Z
2022-01-11T16:44:43.000Z
starkit/fitkit/optimizers/__init__.py
dchu808/starkit
1940683ef231cee54be2c703d4a7611a3991d8b7
[ "BSD-3-Clause" ]
27
2018-03-13T10:45:38.000Z
2020-08-03T20:47:31.000Z
starkit/fitkit/optimizers/__init__.py
dchu808/starkit
1940683ef231cee54be2c703d4a7611a3991d8b7
[ "BSD-3-Clause" ]
17
2018-03-13T10:06:53.000Z
2019-06-27T02:02:10.000Z
__author__ = 'wkerzend'
12
23
0.75
__author__ = 'wkerzend'
0
0
0
cd584731c47ab0375b79f468f280e5a2e5064fbd
20,131
py
Python
tests/test_cli_cache_connector.py
NERSC/pytokio
22244718cf82567c50620cbe0e635dfc990de36b
[ "BSD-3-Clause-LBNL" ]
22
2017-11-14T01:30:48.000Z
2022-01-01T21:51:00.000Z
tests/test_cli_cache_connector.py
glennklockwood/pytokio
22244718cf82567c50620cbe0e635dfc990de36b
[ "BSD-3-Clause-LBNL" ]
39
2017-12-20T01:42:19.000Z
2020-05-28T21:17:26.000Z
tests/test_cli_cache_connector.py
glennklockwood/pytokio
22244718cf82567c50620cbe0e635dfc990de36b
[ "BSD-3-Clause-LBNL" ]
5
2018-02-06T19:39:19.000Z
2019-07-10T01:20:26.000Z
#!/usr/bin/env python """ Test each connector's standalone CLI cache tool """ import os import json import sqlite3 try: import StringIO as io except ImportError: import io import datetime import pandas import nose try: import elasticsearch.exceptions _HAVE_ELASTICSEARCH = True except ImportError: ...
35.693262
144
0.584422
#!/usr/bin/env python """ Test each connector's standalone CLI cache tool """ import os import json import sqlite3 try: import StringIO as io except ImportError: import io import datetime import pandas import nose try: import elasticsearch.exceptions _HAVE_ELASTICSEARCH = True except ImportError: ...
124
0
44
92436b9b7c47ccddc497c1620da5fc07684e0c9f
2,133
py
Python
test.py
LaudateCorpus1/accimage
15ec9d4a95060ee54ab80fa3a7ae57a9ca7763ff
[ "BSD-2-Clause" ]
317
2017-01-21T07:04:53.000Z
2022-03-18T16:10:11.000Z
test.py
LaudateCorpus1/accimage
15ec9d4a95060ee54ab80fa3a7ae57a9ca7763ff
[ "BSD-2-Clause" ]
30
2017-03-15T11:35:29.000Z
2021-09-18T13:21:05.000Z
test.py
LaudateCorpus1/accimage
15ec9d4a95060ee54ab80fa3a7ae57a9ca7763ff
[ "BSD-2-Clause" ]
42
2017-04-25T14:42:42.000Z
2022-03-02T01:27:10.000Z
import accimage import numpy as np import imageio import os ACCIMAGE_SAVE = os.environ.get('ACCIMAGE_SAVE', '') if len(ACCIMAGE_SAVE) and ACCIMAGE_SAVE.lower() not in {'0', 'false', 'no'}: SAVE_IMAGES = True else: SAVE_IMAGES = False def image_to_np(image): """ Returns: np.ndarray: Image conve...
27
84
0.687764
import accimage import numpy as np import imageio import os ACCIMAGE_SAVE = os.environ.get('ACCIMAGE_SAVE', '') if len(ACCIMAGE_SAVE) and ACCIMAGE_SAVE.lower() not in {'0', 'false', 'no'}: SAVE_IMAGES = True else: SAVE_IMAGES = False def image_to_np(image): """ Returns: np.ndarray: Image conve...
1,431
0
138
f0b4ba278a3ddabe3ebfa7f3478caa2f80cc3931
524
py
Python
seqsearch/databases/nr.py
xapple/seqsearch
cf3a7691285d245829bc9c6d18354e01e631fc12
[ "MIT" ]
null
null
null
seqsearch/databases/nr.py
xapple/seqsearch
cf3a7691285d245829bc9c6d18354e01e631fc12
[ "MIT" ]
null
null
null
seqsearch/databases/nr.py
xapple/seqsearch
cf3a7691285d245829bc9c6d18354e01e631fc12
[ "MIT" ]
1
2015-01-21T14:38:46.000Z
2015-01-21T14:38:46.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Written by Lucas Sinclair. MIT Licensed. Contact at www.sinclair.bio """ # Built-in modules # # Internal modules # # First party modules # ############################################################################### class NonRedundant(object): """ The N...
20.96
79
0.574427
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Written by Lucas Sinclair. MIT Licensed. Contact at www.sinclair.bio """ # Built-in modules # # Internal modules # # First party modules # ############################################################################### class NonRedundant(object): """ The N...
0
0
0
5fa7fff36d6cb6d8b2047e3f41b22a2469bc10e3
3,121
py
Python
ops-implementations/sagemaker-service/swagger_server/test_mocked/test_info_controller.py
IBM/open-prediction-service-hub
8b7db98f46a81b731d0dddfde8e3fb6f91ebc71a
[ "Apache-2.0" ]
1
2021-09-14T18:40:33.000Z
2021-09-14T18:40:33.000Z
ops-implementations/sagemaker-service/swagger_server/test_mocked/test_info_controller.py
IBM/open-prediction-service-hub
8b7db98f46a81b731d0dddfde8e3fb6f91ebc71a
[ "Apache-2.0" ]
7
2021-04-23T13:41:39.000Z
2021-08-12T09:33:10.000Z
ops-implementations/sagemaker-service/swagger_server/test_mocked/test_info_controller.py
IBM/open-prediction-service-hub
8b7db98f46a81b731d0dddfde8e3fb6f91ebc71a
[ "Apache-2.0" ]
5
2020-12-10T14:27:23.000Z
2022-03-29T08:44:22.000Z
#!/usr/bin/env python3 # # Copyright 2020 IBM # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
35.873563
123
0.659084
#!/usr/bin/env python3 # # Copyright 2020 IBM # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
0
0
0
e4580e4272a104808d6bd411f21508ce0e61c3c9
111
py
Python
DjangoEcommerceApp/apps.py
abdullah1107/DjangoEcommarceAmazonClone
93b7d00e74e8e5ce202d0b7cbb70e7974ee47dba
[ "MIT" ]
null
null
null
DjangoEcommerceApp/apps.py
abdullah1107/DjangoEcommarceAmazonClone
93b7d00e74e8e5ce202d0b7cbb70e7974ee47dba
[ "MIT" ]
null
null
null
DjangoEcommerceApp/apps.py
abdullah1107/DjangoEcommarceAmazonClone
93b7d00e74e8e5ce202d0b7cbb70e7974ee47dba
[ "MIT" ]
null
null
null
from django.apps import AppConfig
18.5
42
0.801802
from django.apps import AppConfig class DjangoecommerceappConfig(AppConfig): name = 'DjangoEcommerceApp'
0
53
23
0dbf868fbe306d0bc0e56fc30248f9f7e2a22e93
4,694
py
Python
Competitive Programming/System Design/Operations on Tree.py
shreejitverma/GeeksforGeeks
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-18T05:14:28.000Z
2022-03-08T07:00:08.000Z
Competitive Programming/System Design/Operations on Tree.py
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
6
2022-01-13T04:31:04.000Z
2022-03-12T01:06:16.000Z
Competitive Programming/System Design/Operations on Tree.py
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-14T19:53:53.000Z
2022-02-18T05:14:30.000Z
'''https://leetcode.com/problems/operations-on-tree/ 1993. Operations on Tree Medium 152 34 Add to List Share You are given a tree with n nodes numbered from 0 to n - 1 in the form of a parent array parent where parent[i] is the parent of the ith node. The root of the tree is node 0, so parent[0] = -1 since it has ...
36.387597
318
0.619088
'''https://leetcode.com/problems/operations-on-tree/ 1993. Operations on Tree Medium 152 34 Add to List Share You are given a tree with n nodes numbered from 0 to n - 1 in the form of a parent array parent where parent[i] is the parent of the ith node. The root of the tree is node 0, so parent[0] = -1 since it has ...
0
1,438
23
5d5d2b839a17ba0b56b9d88bd34ce723f3e7d142
2,589
py
Python
vsts/vsts/build/v4_0/models/build_controller.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/build/v4_0/models/build_controller.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/build/v4_0/models/build_controller.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
43.881356
159
0.579761
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
440
0
27
d8de67bb1a6b4309fef7f7de4735e4ee01fb2e3e
3,020
py
Python
configs/_xm/cascade_x101_fpn.py
991166chun/TeaDisease
3cf6499617c01b3a22babcbf65e8241c9cac3c06
[ "Apache-2.0" ]
null
null
null
configs/_xm/cascade_x101_fpn.py
991166chun/TeaDisease
3cf6499617c01b3a22babcbf65e8241c9cac3c06
[ "Apache-2.0" ]
null
null
null
configs/_xm/cascade_x101_fpn.py
991166chun/TeaDisease
3cf6499617c01b3a22babcbf65e8241c9cac3c06
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/cascade_rcnn_r50_fpn.py', './my_voc.py', './my_runtime.py' ] model = dict( pretrained='open-mmlab://resnext101_32x4d', backbone=dict( type='ResNeXt', depth=101, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_...
33.932584
79
0.469868
_base_ = [ '../_base_/models/cascade_rcnn_r50_fpn.py', './my_voc.py', './my_runtime.py' ] model = dict( pretrained='open-mmlab://resnext101_32x4d', backbone=dict( type='ResNeXt', depth=101, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_...
0
0
0
a348e4213f1690758954dd2e169e3648444ed0d6
909
py
Python
setup.py
NamorNiradnug/SimpleParser
4b127902808007015b8c9b322b348215977e246f
[ "MIT" ]
1
2022-03-17T01:59:13.000Z
2022-03-17T01:59:13.000Z
setup.py
NamorNiradnug/SimpleParser
4b127902808007015b8c9b322b348215977e246f
[ "MIT" ]
null
null
null
setup.py
NamorNiradnug/SimpleParser
4b127902808007015b8c9b322b348215977e246f
[ "MIT" ]
null
null
null
import setuptools with open("README.md") as readme: long_description = readme.read() setuptools.setup( name="simpleparser", version="0.1.3", author="NamorNiradnug", author_email="roma57linux@gmail.com", packages=["simpleparser"], tests_require=["test.py"], description="Simple library w...
31.344828
85
0.672167
import setuptools with open("README.md") as readme: long_description = readme.read() setuptools.setup( name="simpleparser", version="0.1.3", author="NamorNiradnug", author_email="roma57linux@gmail.com", packages=["simpleparser"], tests_require=["test.py"], description="Simple library w...
0
0
0
d782cce0615c6d363effe44e194c6f8699d3af5e
1,099
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/stock_account/models/stock_config_settings.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/stock_account/models/stock_config_settings.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/stock_account/models/stock_config_settings.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models
45.791667
130
0.720655
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class StockConfigSettings(models.TransientModel): _inherit = 'stock.config.settings' group_stock_inventory_valuation = fields.Selection([ (0, "Periodic inventory va...
107
831
23
55cf2b629e08d27bc037771f3beff948390d1f01
3,609
py
Python
app/__init__.py
samanyougarg/sample-rest-api
0d394a289810bc3ced3420076b7cb0f2de7d5997
[ "MIT" ]
3
2019-07-31T14:10:29.000Z
2020-04-18T14:36:42.000Z
app/__init__.py
samanyougarg/sample-rest-api
0d394a289810bc3ced3420076b7cb0f2de7d5997
[ "MIT" ]
null
null
null
app/__init__.py
samanyougarg/sample-rest-api
0d394a289810bc3ced3420076b7cb0f2de7d5997
[ "MIT" ]
2
2019-07-28T12:06:13.000Z
2022-02-16T06:02:13.000Z
import os from flask import Flask from flask_mail import Mail from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_assets import Environment from flask_wtf import CsrfProtect from flask_compress import Compress from flask_rq import RQ from flask_oauthlib.provider import OAuth2Provider...
27.976744
80
0.689111
import os from flask import Flask from flask_mail import Mail from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_assets import Environment from flask_wtf import CsrfProtect from flask_compress import Compress from flask_rq import RQ from flask_oauthlib.provider import OAuth2Provider...
2,798
0
23
2011c7c7ff23822acfc226cef105dbe2a74083c7
3,596
py
Python
data_structures/heaps/array_based_binary_heap.py
vinta/fuck-coding-interviews
915ff55963430e81134a35f65f511e5684c52f11
[ "MIT" ]
590
2020-06-17T08:26:47.000Z
2022-03-30T18:47:32.000Z
data_structures/heaps/array_based_binary_heap.py
parvathirajan/fuck-coding-interviews
915ff55963430e81134a35f65f511e5684c52f11
[ "MIT" ]
12
2020-07-14T09:24:32.000Z
2020-11-02T03:43:47.000Z
data_structures/heaps/array_based_binary_heap.py
parvathirajan/fuck-coding-interviews
915ff55963430e81134a35f65f511e5684c52f11
[ "MIT" ]
75
2020-07-29T06:50:13.000Z
2022-03-13T16:14:57.000Z
# coding: utf-8 """ Binary Heap https://en.wikipedia.org/wiki/Binary_heap https://en.wikipedia.org/wiki/Heap_(data_structure) A binary heap is a special binary tree which satisfies following properties: - The tree is complete. - The parent's value is less than or equal to children's values. - The root's value would be...
32.990826
100
0.625973
# coding: utf-8 """ Binary Heap https://en.wikipedia.org/wiki/Binary_heap https://en.wikipedia.org/wiki/Heap_(data_structure) A binary heap is a special binary tree which satisfies following properties: - The tree is complete. - The parent's value is less than or equal to children's values. - The root's value would be...
2,395
6
369
6946d71191a319831b0c63a3b76fba6b80049742
2,277
py
Python
django_test_tools/generators/crud_generator.py
jayvdb/django-test-tools
a832cc6acf8e45c8d6b0cd5e3c424b95595c1855
[ "MIT" ]
9
2017-04-29T20:21:07.000Z
2021-11-16T07:00:01.000Z
django_test_tools/generators/crud_generator.py
jayvdb/django-test-tools
a832cc6acf8e45c8d6b0cd5e3c424b95595c1855
[ "MIT" ]
211
2017-11-21T00:23:03.000Z
2022-03-28T02:06:25.000Z
django_test_tools/generators/crud_generator.py
jayvdb/django-test-tools
a832cc6acf8e45c8d6b0cd5e3c424b95595c1855
[ "MIT" ]
4
2017-11-21T18:19:53.000Z
2021-05-24T06:34:16.000Z
from django.template.loader import render_to_string from jinja2 import Environment, PackageLoader, select_autoescape from ..templatetags.dtt_filters import to_snake_case
34.5
73
0.667984
from django.template.loader import render_to_string from jinja2 import Environment, PackageLoader, select_autoescape from ..templatetags.dtt_filters import to_snake_case class UrlGenerator(object): def __init__(self, model_name): self.model_name = model_name self.template = 'django_test_tools/ur...
1,780
38
285
6d0ba2881c02c55558b9a88c0cdc90ed083b7e54
3,640
py
Python
Easy_Image/pixabay.py
xjdeng/Easy_Facial_Recognition
f06c5013e0930c4d703845d7714f53871cef83e5
[ "MIT" ]
2
2018-05-24T17:04:47.000Z
2022-01-27T20:52:27.000Z
Easy_Image/pixabay.py
xjdeng/Easy_Facial_Recognition
f06c5013e0930c4d703845d7714f53871cef83e5
[ "MIT" ]
1
2020-03-29T16:42:10.000Z
2020-03-29T16:42:10.000Z
Easy_Image/pixabay.py
xjdeng/Easy_Facial_Recognition
f06c5013e0930c4d703845d7714f53871cef83e5
[ "MIT" ]
null
null
null
from path import Path as path import pixabay as python_pixabay import tempfile from sklearn.externals import joblib import os import time import warnings import json import requests import numpy as np import re cache_filename = "pixabay_cache.pkl" api_key = None cache_update_interval = 3600 cache_expiry = 24*3600 cac...
28.661417
88
0.646978
from path import Path as path import pixabay as python_pixabay import tempfile from sklearn.externals import joblib import os import time import warnings import json import requests import numpy as np import re cache_filename = "pixabay_cache.pkl" api_key = None cache_update_interval = 3600 cache_expiry = 24*3600 cac...
2,430
0
253
83e0e604f70f525d82c49328db5f84d43b7bd2f5
614
py
Python
pyskeleton/pyfile.py
wang502/pyskeleton
3044d61dd9e67f6443017ecfb7c3541f5f41b8d1
[ "MIT" ]
null
null
null
pyskeleton/pyfile.py
wang502/pyskeleton
3044d61dd9e67f6443017ecfb7c3541f5f41b8d1
[ "MIT" ]
1
2016-06-06T05:38:36.000Z
2016-06-06T05:38:36.000Z
pyskeleton/pyfile.py
wang502/pydeptree
3044d61dd9e67f6443017ecfb7c3541f5f41b8d1
[ "MIT" ]
null
null
null
""" pydeptree file.py -- contains functions to parses .py file -- extract function names, class names -- find what other functions a given function rely on @By Seth (Xiaohui) Wang @email: sethwang199418@gmail.com """ ''' class pyfile: def __init__(self, file_dir): self.file_dir = file_dir # find what ...
23.615385
63
0.656352
""" pydeptree file.py -- contains functions to parses .py file -- extract function names, class names -- find what other functions a given function rely on @By Seth (Xiaohui) Wang @email: sethwang199418@gmail.com """ ''' class pyfile: def __init__(self, file_dir): self.file_dir = file_dir # find what ...
0
0
0
95d56f805ed3455cd5bff3927e213970eb6b5bc7
11,659
py
Python
bot/reviewbot/tools/testing/testcases.py
reviewboard/ReviewBot
6c529706229da647cc8cdef27db75cebc0abf216
[ "MIT" ]
91
2015-04-30T21:00:40.000Z
2022-03-30T07:19:03.000Z
bot/reviewbot/tools/testing/testcases.py
reviewboard/ReviewBot
6c529706229da647cc8cdef27db75cebc0abf216
[ "MIT" ]
11
2015-01-08T13:48:21.000Z
2018-07-03T13:18:35.000Z
bot/reviewbot/tools/testing/testcases.py
reviewboard/ReviewBot
6c529706229da647cc8cdef27db75cebc0abf216
[ "MIT" ]
23
2015-04-03T17:17:00.000Z
2022-03-07T08:14:27.000Z
"""Base test case support for tools. Version Added: 3.0 """ from __future__ import unicode_literals import os import tempfile from copy import deepcopy from functools import wraps from unittest import SkipTest import kgb import six from reviewbot.config import config from reviewbot.repositories import GitRepos...
31.425876
79
0.564371
"""Base test case support for tools. Version Added: 3.0 """ from __future__ import unicode_literals import os import tempfile from copy import deepcopy from functools import wraps from unittest import SkipTest import kgb import six from reviewbot.config import config from reviewbot.repositories import GitRepos...
1,053
0
94
48263036a4ae9dffc08e7ebd8049a796b56e6de0
1,054
py
Python
code/yakindu/src-gen/cart/cart_statemachine_interfaces.py
samuelexferri/tvsw
ce61649546b23e86268143142a2d45375b06fcfe
[ "MIT" ]
null
null
null
code/yakindu/src-gen/cart/cart_statemachine_interfaces.py
samuelexferri/tvsw
ce61649546b23e86268143142a2d45375b06fcfe
[ "MIT" ]
9
2021-03-31T20:05:26.000Z
2021-10-04T12:27:50.000Z
code/yakindu/src-gen/cart/cart_statemachine_interfaces.py
samuelexferri/tvsw
ce61649546b23e86268143142a2d45375b06fcfe
[ "MIT" ]
null
null
null
"""Interfaces defined in the state chart model. The interfaces defined in the state chart model are represented as separate classes. """ class SCI_Interface: """Implementation of scope sci_interface. """
18.172414
63
0.710626
"""Interfaces defined in the state chart model. The interfaces defined in the state chart model are represented as separate classes. """ class SCI_Interface: """Implementation of scope sci_interface. """ def __init__(self): self.reset = None self.exit = None self.order = None self.selectgeneric = None ...
604
0
232