hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
797392a6a36a69117a1e8e2f9c9e14b215822acb
38,744
py
Python
python/mxnet/gluon/nn/basic_layers.py
zw-shen/incubator-mxnet
ce1330690124630a8b095336ce3b1fb675d9547a
[ "Apache-2.0" ]
null
null
null
python/mxnet/gluon/nn/basic_layers.py
zw-shen/incubator-mxnet
ce1330690124630a8b095336ce3b1fb675d9547a
[ "Apache-2.0" ]
null
null
null
python/mxnet/gluon/nn/basic_layers.py
zw-shen/incubator-mxnet
ce1330690124630a8b095336ce3b1fb675d9547a
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
41.260916
109
0.59857
797392b420070b13db589c6256f26e7ec49aede8
1,348
py
Python
data/external/repositories_2to3/166417/Restaurant-Revenue-Prediction-master/Ari/needs_work/GridSearch.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/166417/Restaurant-Revenue-Prediction-master/Ari/needs_work/GridSearch.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/166417/Restaurant-Revenue-Prediction-master/Ari/needs_work/GridSearch.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
# Grid Search for Algorithm Tuning import numpy as np import pandas as pd from sklearn import datasets from sklearn.linear_model import Ridge from sklearn.grid_search import GridSearchCV ### Plotting function ### from matplotlib import pyplot as plt from sklearn.metrics import r2_score def plot_r2(y...
25.433962
87
0.654303
797392ff6b7a417467ef7612fb8ff77cf8fd7798
4,885
py
Python
serpent/machine_learning/reinforcement_learning/ddqn.py
m1ndgames/SerpentAI
e32efa9acc8bf0dbe3b54f1524b8fc59f3ec66bd
[ "MIT" ]
1
2020-07-11T18:28:26.000Z
2020-07-11T18:28:26.000Z
serpent/machine_learning/reinforcement_learning/ddqn.py
meongithub/SerpentAI
3bdb7926a0ce9d081e52a821d44ed0e86d70b6b8
[ "MIT" ]
2
2021-08-25T15:08:20.000Z
2022-02-09T23:51:01.000Z
serpent/machine_learning/reinforcement_learning/ddqn.py
PiterPentester/SerpentAI
614bafd3c2df3ee6736309d46a7b92325f9a2d15
[ "MIT" ]
1
2021-09-05T21:15:22.000Z
2021-09-05T21:15:22.000Z
from serpent.machine_learning.reinforcement_learning.dqn import DQN import numpy as np from keras.optimizers import Adam import random class DDQN(DQN): def __init__( self, input_shape=None, input_mapping=None, replay_memory_size=10000, batch_size=32, action_spac...
33.689655
108
0.628454
79739429786b8da938239a15ec3ac84a3c8bcc41
9,437
py
Python
xiami.py
CetaceanNation/xiamidl
3bfe99e72737b4802febb452911351421a08f090
[ "MIT" ]
null
null
null
xiami.py
CetaceanNation/xiamidl
3bfe99e72737b4802febb452911351421a08f090
[ "MIT" ]
null
null
null
xiami.py
CetaceanNation/xiamidl
3bfe99e72737b4802febb452911351421a08f090
[ "MIT" ]
1
2021-01-16T04:11:55.000Z
2021-01-16T04:11:55.000Z
import re import time import json import requests from datetime import datetime from hashlib import md5 from misc import * from downloader import Downloader ALBUM_PAGE_RESULTS = 30 SEARCH_RESULTS = 8 RELEASE_TYPE = { 'EP、单曲': 'ep,single', '精选集': 'compilation', '录音室专辑': 'album', '原声带、影视音乐': 'soundtrack'...
49.668421
156
0.604323
797394ae20f9453ada3f840f929e2cfac2033035
6,050
py
Python
src/python/grpcio_tests/tests/testing/_time_test.py
txl0591/grpc
8b732dc466fb8a567c1bca9dbb84554d29087395
[ "Apache-2.0" ]
117
2017-10-02T21:34:35.000Z
2022-03-02T01:49:03.000Z
src/python/grpcio_tests/tests/testing/_time_test.py
txl0591/grpc
8b732dc466fb8a567c1bca9dbb84554d29087395
[ "Apache-2.0" ]
4
2017-10-03T22:45:30.000Z
2018-09-27T07:31:00.000Z
src/python/grpcio_tests/tests/testing/_time_test.py
txl0591/grpc
8b732dc466fb8a567c1bca9dbb84554d29087395
[ "Apache-2.0" ]
24
2017-10-31T12:14:15.000Z
2021-12-11T10:07:46.000Z
# Copyright 2017 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
36.445783
78
0.695041
797394bf634349fa30a8cbafb0215cfdf1cd00ec
847
py
Python
src/main.py
MarinkoBa/Hate-Speech-Classification
72f6bbe93b823daefa138df4f81a3a4df5b34c4c
[ "MIT" ]
null
null
null
src/main.py
MarinkoBa/Hate-Speech-Classification
72f6bbe93b823daefa138df4f81a3a4df5b34c4c
[ "MIT" ]
null
null
null
src/main.py
MarinkoBa/Hate-Speech-Classification
72f6bbe93b823daefa138df4f81a3a4df5b34c4c
[ "MIT" ]
1
2020-12-14T13:56:50.000Z
2020-12-14T13:56:50.000Z
import os from src.utils import pipeline if __name__ == "__main__": # loads and concatenates the different datasets df_dataset = pipeline.load_labeled_dataset() # evaluate classifier and parameters during experiment-phase param, x_data, y_data = pipeline.run_experiment(df_dataset, preprocessing='prepr...
49.823529
115
0.701299
7973952da4d316b6438bd88e75589d76d4dce9d7
717
py
Python
Exercicios/Exercicio083.py
RicardoMart922/estudo_Python
cb595c2a5e5aee568b6afa71b3ed9dd9cb7eef72
[ "MIT" ]
null
null
null
Exercicios/Exercicio083.py
RicardoMart922/estudo_Python
cb595c2a5e5aee568b6afa71b3ed9dd9cb7eef72
[ "MIT" ]
null
null
null
Exercicios/Exercicio083.py
RicardoMart922/estudo_Python
cb595c2a5e5aee568b6afa71b3ed9dd9cb7eef72
[ "MIT" ]
null
null
null
# Crie um programa que vai ler vários números e colocar em uma lista. Depois disso, # crie duas listas extras que vão conter apenas os valores pares e os valores ímpares # digitados, respectivamente. Ao final, mostre o conteúdo das três listas geradas. lista = list() listaPar = list() listaImpar = list() while True: ...
34.142857
85
0.680614
7973956848a51d5f1662d7f4e3db52f70bb43743
11,253
py
Python
homeassistant/components/flux_led/light.py
m2hofi94/home-assistant
288ae8b1e7cdbbdcb6d055eaea09445cc3dc4064
[ "Apache-2.0" ]
3
2020-05-18T10:18:16.000Z
2020-12-08T11:27:55.000Z
homeassistant/components/flux_led/light.py
m2hofi94/home-assistant
288ae8b1e7cdbbdcb6d055eaea09445cc3dc4064
[ "Apache-2.0" ]
3
2021-02-08T20:54:46.000Z
2021-09-08T02:30:04.000Z
homeassistant/components/flux_led/light.py
m2hofi94/home-assistant
288ae8b1e7cdbbdcb6d055eaea09445cc3dc4064
[ "Apache-2.0" ]
6
2020-04-10T06:21:11.000Z
2021-07-01T08:53:38.000Z
"""Support for Flux lights.""" import logging import socket import random from flux_led import BulbScanner, WifiLedBulb import voluptuous as vol from homeassistant.const import CONF_DEVICES, CONF_NAME, CONF_PROTOCOL, ATTR_MODE from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_HS_COLOR, AT...
29.928191
87
0.634942
797395732976136f031c89c57bb41ebc046f5ab0
6,680
py
Python
pygitscrum/git_wip.py
thib1984/pygitscrum
4f5f726e5b3c95f93da33c21da51953657bd0349
[ "MIT" ]
2
2021-04-23T11:10:32.000Z
2021-04-23T11:10:41.000Z
pygitscrum/git_wip.py
thib1984/pygitscrum
4f5f726e5b3c95f93da33c21da51953657bd0349
[ "MIT" ]
2
2021-11-23T09:26:50.000Z
2021-11-23T09:27:02.000Z
pygitscrum/git_wip.py
thib1984/pygitscrum
4f5f726e5b3c95f93da33c21da51953657bd0349
[ "MIT" ]
null
null
null
""" --wip scripts """ from pygitscrum.git import git_output from pygitscrum.scan import ( absolute_path_without_git, print_repo_if_first, update_dict, ) from pygitscrum.args import compute_args from pygitscrum.print import ( print_resume_map, print_debug, print_y, print_g, ) def git_wip(fi...
34.791667
83
0.49491
79739624cf57d1861eec351ea967fd7fdc5b141b
220
py
Python
profiles/urls.py
S0Imyr/projet13
5d5a914261d8cc787f4a25f6245b3af380a5573a
[ "MIT" ]
1
2021-09-03T10:36:58.000Z
2021-09-03T10:36:58.000Z
profiles/urls.py
S0Imyr/projet13
5d5a914261d8cc787f4a25f6245b3af380a5573a
[ "MIT" ]
null
null
null
profiles/urls.py
S0Imyr/projet13
5d5a914261d8cc787f4a25f6245b3af380a5573a
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'profiles' urlpatterns = [ path('profiles/', views.profiles_index, name='index'), path('profiles/<str:username>/', views.profile, name='profile'), ]
20
68
0.690909
797396741ee859695ebbffbec5bbf9a3c418d7fd
1,879
py
Python
hazel/config.py
shunfan/hazel
19744799482aa435569bb9c139e0778d04f7a3f1
[ "MIT" ]
null
null
null
hazel/config.py
shunfan/hazel
19744799482aa435569bb9c139e0778d04f7a3f1
[ "MIT" ]
null
null
null
hazel/config.py
shunfan/hazel
19744799482aa435569bb9c139e0778d04f7a3f1
[ "MIT" ]
null
null
null
# coding=utf-8 import os import yaml import shutil import urllib2 from clint.textui import puts, indent, colored from hazel.load import load_base from hazel.utils import get_path, safe_mkdir, safe_copy, force_mkdir, g g.hazel_path = os.path.abspath(os.path.dirname(__file__)) def default_mkdir(): load_base() ...
31.316667
131
0.685471
797398c1d5ff77f2278831693060852feec5c48f
137
py
Python
setup.py
bio2bel/excape
dd3cfa446dd47135e754da41d52caf700fddbe0e
[ "MIT" ]
null
null
null
setup.py
bio2bel/excape
dd3cfa446dd47135e754da41d52caf700fddbe0e
[ "MIT" ]
12
2018-09-02T16:38:56.000Z
2019-03-06T12:46:00.000Z
setup.py
bio2bel/excape
dd3cfa446dd47135e754da41d52caf700fddbe0e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Setup module for Bio2BEL ExCAPE-DB.""" import setuptools if __name__ == '__main__': setuptools.setup()
15.222222
41
0.642336
79739976d3d29b4053a2d61968773025642ad967
55,882
py
Python
Lib/dataclasses.py
pxeger/cpython
959580bd9ff8824590e8b24895bc2276f3f10b35
[ "0BSD" ]
5,926
2015-01-01T07:45:08.000Z
2022-03-31T12:34:38.000Z
Lib/dataclasses.py
pxeger/cpython
959580bd9ff8824590e8b24895bc2276f3f10b35
[ "0BSD" ]
1,728
2015-01-01T01:09:12.000Z
2022-03-30T23:25:22.000Z
Lib/dataclasses.py
pxeger/cpython
959580bd9ff8824590e8b24895bc2276f3f10b35
[ "0BSD" ]
574
2015-01-02T01:36:10.000Z
2022-03-26T10:18:48.000Z
import re import sys import copy import types import inspect import keyword import builtins import functools import abc import _thread from types import FunctionType, GenericAlias __all__ = ['dataclass', 'field', 'Field', 'FrozenInstanceError', 'InitVar', 'KW_ONL...
38.592541
94
0.591228
797399fb13d7a41806b18629b9656add3fb332aa
830
py
Python
scripts/zinzya.py
haruyama8940/mypkg
37070b6bb34defc145fecddf6f75d85f55fe3174
[ "BSD-3-Clause" ]
null
null
null
scripts/zinzya.py
haruyama8940/mypkg
37070b6bb34defc145fecddf6f75d85f55fe3174
[ "BSD-3-Clause" ]
null
null
null
scripts/zinzya.py
haruyama8940/mypkg
37070b6bb34defc145fecddf6f75d85f55fe3174
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import rospy import random from std_msgs.msg import Int32 from std_msgs.msg import String n=0 k='' def luck(x): global k if x==1: k='DAIKICHI' if x==2: k='TYUKICHI' if x==3: k='SYOUKITCHI' if x==4: k='KYO' if x==5: k='DAIKYOU' def c...
19.761905
54
0.539759
79739a1ba6182b62deaa9effdd546601aea59c00
4,791
py
Python
src/test-dynelf.py
r3p3r/Gallopsled-pwntools-regression
0615065300f036a73a1574fa4fb3eea9c5b8a49c
[ "MIT" ]
7
2015-01-08T19:44:39.000Z
2021-11-17T17:54:46.000Z
src/test-dynelf.py
r3p3r/Gallopsled-pwntools-regression
0615065300f036a73a1574fa4fb3eea9c5b8a49c
[ "MIT" ]
2
2015-03-16T18:54:06.000Z
2015-03-17T20:09:22.000Z
src/test-dynelf.py
r3p3r/Gallopsled-pwntools-regression
0615065300f036a73a1574fa4fb3eea9c5b8a49c
[ "MIT" ]
14
2015-01-08T19:44:39.000Z
2021-11-17T17:54:50.000Z
from pwn import * import traceback, unittest, time class demo: def ptrsize(self): log.debug('ptrsize()') self.send(p8(0)) return u32(self.recvn(4)) def write(self, where, bytes): log.debug('write(%#x,%r)' % (where,bytes)) self.send(p8(1)) self.send(pack(where))...
27.534483
70
0.563139
79739a95e7de8d0230977c5bc8d42fc4928eb2a5
18,363
py
Python
data/dataloader.py
clovaai/c3_sinet
636245fd90cd88e5f851b340befee8d48865e965
[ "MIT" ]
43
2019-12-30T06:20:51.000Z
2022-01-07T03:30:29.000Z
data/dataloader.py
hwany-j/c3_sinet
b92911b4bcd8edf003da1537b2ab8e0b3169af56
[ "MIT" ]
2
2020-06-09T19:25:44.000Z
2021-01-17T12:04:41.000Z
data/dataloader.py
hwany-j/c3_sinet
b92911b4bcd8edf003da1537b2ab8e0b3169af56
[ "MIT" ]
16
2019-12-30T06:21:04.000Z
2021-11-24T03:56:30.000Z
import os import data.CVTransforms as cvTransforms import data.PILTransform as pilTransforms from torch.utils import data from torchvision import datasets import torchvision.transforms as transforms import data.DataSet as myDataLoader import torch import data.loadData as ld import pickle def cityPIL_Doublerandscalecro...
39.575431
121
0.656047
79739b093135360b774e562a2c95d5ad72534d2f
667
py
Python
env/Lib/site-packages/plotly/validators/layout/mapbox/domain/_y.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
packages/python/plotly/plotly/validators/layout/mapbox/domain/_y.py
jiangrongbo/plotly.py
df19fc702b309586cc24e25373b87e8bdbb3ff60
[ "MIT" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
packages/python/plotly/plotly/validators/layout/mapbox/domain/_y.py
jiangrongbo/plotly.py
df19fc702b309586cc24e25373b87e8bdbb3ff60
[ "MIT" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): def __init__(self, plotly_name="y", parent_name="layout.mapbox.domain", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
35.105263
86
0.521739
79739b09cdb99b623ac0cd385ec1e27655dbf1f2
8,103
py
Python
plugins/extract/align/fan.py
aaman123/faceswap
a5825c3457b062c1824ef3f8b02e4f3fa4c2217f
[ "MIT" ]
2
2021-11-11T08:29:01.000Z
2021-11-11T08:34:50.000Z
plugins/extract/align/fan.py
aaman123/faceswap
a5825c3457b062c1824ef3f8b02e4f3fa4c2217f
[ "MIT" ]
null
null
null
plugins/extract/align/fan.py
aaman123/faceswap
a5825c3457b062c1824ef3f8b02e4f3fa4c2217f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Facial landmarks extractor for faceswap.py Code adapted and modified from: https://github.com/1adrianb/face-alignment """ import cv2 import numpy as np from lib.model.session import KSession from ._base import Aligner, logger class Align(Aligner): """ Perform transformation to ...
51.28481
99
0.632729
79739c2e889adb5d4774ceb679abd7385d18575c
2,263
py
Python
SimpleCV/examples/detection/FeatureDetection.py
M93Pragya/SimpleCV
6c4d61b6d1d9d856b471910107cad0838954d2b2
[ "BSD-3-Clause" ]
1,686
2015-01-02T08:47:08.000Z
2022-03-26T11:55:35.000Z
SimpleCV/examples/detection/FeatureDetection.py
Tester2009/SimpleCV
7372a0c58eead9c3228315d65ae1903e4b8eb3f1
[ "BSD-3-Clause" ]
64
2015-01-05T11:23:11.000Z
2021-12-17T18:29:10.000Z
SimpleCV/examples/detection/FeatureDetection.py
Tester2009/SimpleCV
7372a0c58eead9c3228315d65ae1903e4b8eb3f1
[ "BSD-3-Clause" ]
599
2015-01-10T17:37:08.000Z
2022-03-28T05:31:51.000Z
#!/usr/bin/python ''' This program is used to find keypoint features in an image. You need to click the upper left hand corner of what you want to train, then click the right lower corner of what you want to train. This will give you a template. For instance if you wanted to train a face to recognize in the image yo...
30.173333
83
0.61688
79739c6b1266d5dc1e25c7729b548aaa6eb4def1
46,838
py
Python
lib/googlecloudsdk/third_party/apis/dns/v1alpha2/dns_v1alpha2_client.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/googlecloudsdk/third_party/apis/dns/v1alpha2/dns_v1alpha2_client.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/dns/v1alpha2/dns_v1alpha2_client.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
"""Generated client library for dns version v1alpha2.""" # NOTE: This file is autogenerated and should not be edited by hand. from __future__ import absolute_import from apitools.base.py import base_api from googlecloudsdk.third_party.apis.dns.v1alpha2 import dns_v1alpha2_messages as messages class DnsV1alpha2(base...
39.293624
239
0.688565
79739d3650db9fca9fdb9031ddc35813c57235b2
1,288
py
Python
heat_pump_adoption_modelling/getters/location_data.py
nestauk/heat_pump_adoption_modelling
ab30b045e09597c22aeb565ca7caa23ba6e48ffb
[ "MIT" ]
1
2021-11-03T18:11:40.000Z
2021-11-03T18:11:40.000Z
heat_pump_adoption_modelling/getters/location_data.py
nestauk/heat_pump_adoption_modelling
ab30b045e09597c22aeb565ca7caa23ba6e48ffb
[ "MIT" ]
36
2021-08-24T08:06:00.000Z
2022-02-03T12:19:22.000Z
heat_pump_adoption_modelling/getters/location_data.py
nestauk/heat_pump_adoption_modelling
ab30b045e09597c22aeb565ca7caa23ba6e48ffb
[ "MIT" ]
null
null
null
# File: getters/location_data.py """Loading location data, e.g. postcodes with coordinates.""" # --------------------------------------------------------------------------------- import pandas as pd from heat_pump_adoption_modelling import get_yaml_config, Path, PROJECT_DIR # ----------------------------------------...
27.404255
83
0.595497
79739d89154ac1c48c3f230a68c46235074b2a02
41,430
py
Python
electrum_vestx/commands.py
anonymouszar/electrum-vestx
ca1dd0fc9ca8fc547d9def1934018b1a4acd7ecb
[ "MIT" ]
1
2021-04-30T10:50:54.000Z
2021-04-30T10:50:54.000Z
electrum_vestx/commands.py
anonymouszar/electrum-vestx
ca1dd0fc9ca8fc547d9def1934018b1a4acd7ecb
[ "MIT" ]
2
2021-06-01T23:47:48.000Z
2021-11-15T17:48:49.000Z
electrum_vestx/commands.py
anonymouszar/electrum-vestx
ca1dd0fc9ca8fc547d9def1934018b1a4acd7ecb
[ "MIT" ]
2
2019-07-04T02:49:33.000Z
2021-11-24T09:27:47.000Z
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2011 thomasv@gitorious # # 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 witho...
41.513026
178
0.62812
79739d8ff654882c9d1233defa1a46e17430eb97
1,982
py
Python
cyberpunk/transformations/slice.py
jonaylor89/cyberpunk
f78de8a7c8edbaded15699eaa5eb6d8d1245e0b1
[ "MIT" ]
5
2022-02-24T15:22:49.000Z
2022-03-02T13:16:45.000Z
cyberpunk/transformations/slice.py
jonaylor89/cyberpunk
f78de8a7c8edbaded15699eaa5eb6d8d1245e0b1
[ "MIT" ]
22
2022-02-18T16:48:34.000Z
2022-03-30T21:42:46.000Z
cyberpunk/transformations/slice.py
jonaylor89/cyberpunk
f78de8a7c8edbaded15699eaa5eb6d8d1245e0b1
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Optional from pydub import AudioSegment from cyberpunk.exceptions import ( TransformationInputParseException, TransformationProcessException, ) from cyberpunk.transformations import TransformationInput @dataclass class SliceInput: start: Optional[int...
25.088608
107
0.581736
79739ea9c690b22cf989c519cbf6327d7ecaf845
19,408
py
Python
pyroSAR/snap/S1_SLC/S1_HA_proc_FUN.py
jmarkloew/pyroSAR
446b46795165b3601618192dfc7d258320ffd67b
[ "MIT" ]
null
null
null
pyroSAR/snap/S1_SLC/S1_HA_proc_FUN.py
jmarkloew/pyroSAR
446b46795165b3601618192dfc7d258320ffd67b
[ "MIT" ]
null
null
null
pyroSAR/snap/S1_SLC/S1_HA_proc_FUN.py
jmarkloew/pyroSAR
446b46795165b3601618192dfc7d258320ffd67b
[ "MIT" ]
null
null
null
##necessary libraries import pyroSAR from pyroSAR.snap.auxil import parse_recipe, parse_node, gpt, execute import os import shutil import glob import datetime def S1_HA_proc(infiles, out_dir=None, tmpdir=None, t_res=20, t_crs=4326, out_format="GeoTIFF", gpt_paras=None, IWs=["IW1", "IW2", "IW3"], decomp...
46.541966
246
0.566777
79739f204d724a1826389aa2bcbe4e6f534d2ac5
6,843
py
Python
tests/unit/blocks/test_block_pytest.py
windies21/loopchain
6e96c8a7e006747af04187155678f2fae59e1389
[ "Apache-2.0" ]
105
2018-04-03T05:29:08.000Z
2022-01-28T17:33:20.000Z
testcase/unittest/blocks/test_block_pytest.py
laurenceyoon/loopchain
e87032779be4715c135c2c91d2757d9c63bf4e31
[ "Apache-2.0" ]
135
2018-09-04T07:11:02.000Z
2021-12-15T06:25:47.000Z
testcase/unittest/blocks/test_block_pytest.py
laurenceyoon/loopchain
e87032779be4715c135c2c91d2757d9c63bf4e31
[ "Apache-2.0" ]
46
2018-05-07T09:12:07.000Z
2022-02-23T09:58:37.000Z
import os import pytest from loopchain.blockchain.blocks.v0_1a.block import BlockHeader as BlockHeader_v0_1a from loopchain.blockchain.blocks.v0_3.block import BlockHeader as BlockHeader_v0_3 from loopchain.blockchain.blocks.v0_4.block import BlockHeader as BlockHeader_v0_4 from loopchain.blockchain.blocks.block impo...
47.520833
100
0.62005
79739f2196d2f4429d4c678a2b0bfc9ed4ea4024
5,073
py
Python
deep-learning-for-image-processing-master/pytorch_object_detection/train_coco_dataset/backbone/feature_pyramid_network.py
zpwithme/zzzzpppp
0f5df647f1e9d6cb8c01b3fc7df25ee543714af3
[ "MIT" ]
null
null
null
deep-learning-for-image-processing-master/pytorch_object_detection/train_coco_dataset/backbone/feature_pyramid_network.py
zpwithme/zzzzpppp
0f5df647f1e9d6cb8c01b3fc7df25ee543714af3
[ "MIT" ]
null
null
null
deep-learning-for-image-processing-master/pytorch_object_detection/train_coco_dataset/backbone/feature_pyramid_network.py
zpwithme/zzzzpppp
0f5df647f1e9d6cb8c01b3fc7df25ee543714af3
[ "MIT" ]
2
2021-06-26T16:53:38.000Z
2021-08-29T22:16:20.000Z
from collections import OrderedDict import torch.nn as nn import torch from torch import Tensor import torch.nn.functional as F from torch.jit.annotations import Tuple, List, Dict class FeaturePyramidNetwork(nn.Module): """ Module that adds a FPN from on top of a set of feature maps. This is based on `"...
37.577778
89
0.623497
79739fcd9a766966502cb8a2d95d7fee21e0d69a
1,501
py
Python
src/cowrie/output/rethinkdblog.py
GreyNoise-Intelligence/cowrie
d2a9b30f5fd23428baf32e2de1d24e944cf8cde7
[ "BSD-3-Clause" ]
null
null
null
src/cowrie/output/rethinkdblog.py
GreyNoise-Intelligence/cowrie
d2a9b30f5fd23428baf32e2de1d24e944cf8cde7
[ "BSD-3-Clause" ]
null
null
null
src/cowrie/output/rethinkdblog.py
GreyNoise-Intelligence/cowrie
d2a9b30f5fd23428baf32e2de1d24e944cf8cde7
[ "BSD-3-Clause" ]
null
null
null
import time from datetime import datetime import rethinkdb as r import cowrie.core.output from cowrie.core.config import CowrieConfig def iso8601_to_timestamp(value): return time.mktime(datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%fZ").timetuple()) RETHINK_DB_SEGMENT = "output_rethinkdblog" class Output(cow...
31.270833
85
0.655563
7973a03d2a1067cbb08419cd985d8b082ea4785b
4,598
py
Python
tempest/api/identity/admin/v2/test_services.py
gamado/ds_tempest_rm_me_please
3f5d149b3a32e713c60c59a054035ac2e5c73c28
[ "Apache-2.0" ]
null
null
null
tempest/api/identity/admin/v2/test_services.py
gamado/ds_tempest_rm_me_please
3f5d149b3a32e713c60c59a054035ac2e5c73c28
[ "Apache-2.0" ]
null
null
null
tempest/api/identity/admin/v2/test_services.py
gamado/ds_tempest_rm_me_please
3f5d149b3a32e713c60c59a054035ac2e5c73c28
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
43.790476
78
0.671596
7973a19814041f6b854d20adc6d93e3696283618
597
py
Python
kobert/__init__.py
SeongJunKang/pytorch-bert-crf-ner
2affbd1674517e662e2be93a41102ceedbb9ff1f
[ "Apache-2.0" ]
353
2019-11-01T18:23:27.000Z
2022-03-29T06:07:35.000Z
kobert/__init__.py
SeongJunKang/pytorch-bert-crf-ner
2affbd1674517e662e2be93a41102ceedbb9ff1f
[ "Apache-2.0" ]
33
2020-02-12T10:37:26.000Z
2020-02-17T02:44:37.000Z
kobert/__init__.py
SeongJunKang/pytorch-bert-crf-ner
2affbd1674517e662e2be93a41102ceedbb9ff1f
[ "Apache-2.0" ]
95
2019-11-01T20:40:07.000Z
2022-03-10T11:48:53.000Z
# coding=utf-8 # Copyright 2019 SK T-Brain Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
42.642857
74
0.760469
7973a20e22fac2f33e1401eba3440c88df66cad3
813
py
Python
src/kyoto_reader/scripts/docsplit.py
kevin3314/kyoto-reader
ee8f94376df6d1abcafbbd253265f4ff79c4444e
[ "MIT" ]
11
2019-11-20T06:21:43.000Z
2022-01-07T09:21:24.000Z
src/kyoto_reader/scripts/docsplit.py
kevin3314/kyoto-reader
ee8f94376df6d1abcafbbd253265f4ff79c4444e
[ "MIT" ]
10
2020-02-17T08:17:15.000Z
2022-03-29T01:49:17.000Z
src/kyoto_reader/scripts/docsplit.py
kevin3314/kyoto-reader
ee8f94376df6d1abcafbbd253265f4ff79c4444e
[ "MIT" ]
3
2020-06-30T04:28:53.000Z
2021-02-01T14:23:33.000Z
import argparse from typing import Dict from pathlib import Path from kyoto_reader import KyotoReader def main(): parser = argparse.ArgumentParser() parser.add_argument('--input-dir', '-i', default=None, type=str, help='path to input knp directory') parser.add_argument('--output-d...
29.035714
69
0.623616
7973a27663707537be96e669098dd22ff5bfea3d
5,067
py
Python
lte/gateway/python/magma/enodebd/devices/device_utils.py
nstng/magma
dec2691450f4bdd9e25d1e2eb0a38dc893dfeb7f
[ "BSD-3-Clause" ]
539
2019-02-25T05:03:10.000Z
2020-07-24T11:13:15.000Z
lte/gateway/python/magma/enodebd/devices/device_utils.py
nstng/magma
dec2691450f4bdd9e25d1e2eb0a38dc893dfeb7f
[ "BSD-3-Clause" ]
1,729
2019-02-25T16:02:33.000Z
2020-07-24T23:40:07.000Z
lte/gateway/python/magma/enodebd/devices/device_utils.py
nstng/magma
dec2691450f4bdd9e25d1e2eb0a38dc893dfeb7f
[ "BSD-3-Clause" ]
210
2019-02-25T13:34:53.000Z
2020-07-23T20:16:18.000Z
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
35.433566
85
0.670811
7973a2774be82413316518b58c2438d2adfb9c9f
714
py
Python
scrapy_splash/cache.py
wunde005/scrapy-splash
71bb56d167282611688e9bcf78ea9a42211fd6c9
[ "BSD-3-Clause" ]
3
2020-05-16T01:54:47.000Z
2021-04-27T01:37:08.000Z
scrapy_splash/cache.py
wunde005/scrapy-splash
71bb56d167282611688e9bcf78ea9a42211fd6c9
[ "BSD-3-Clause" ]
7
2020-05-11T01:45:45.000Z
2022-03-02T14:58:30.000Z
scrapy_splash/cache.py
wunde005/scrapy-splash
71bb56d167282611688e9bcf78ea9a42211fd6c9
[ "BSD-3-Clause" ]
1
2020-07-19T04:31:01.000Z
2020-07-19T04:31:01.000Z
# -*- coding: utf-8 -*- """ To handle "splash" Request meta key correctly when HTTP cache is enabled Scrapy needs a custom caching backed. See https://github.com/scrapy/scrapy/issues/900 for more info. """ from __future__ import absolute_import import os try: from scrapy.extensions.httpcache import FilesystemCach...
29.75
72
0.767507
7973a3e2bae8643de5fc70d8986ea79b55864fd6
16,180
py
Python
test/integration/plugins/nuagevsp/test_nuage_password_reset.py
serbaut/cloudstack
9513053f4256375e892df27d0c26644d1fe41725
[ "Apache-2.0" ]
null
null
null
test/integration/plugins/nuagevsp/test_nuage_password_reset.py
serbaut/cloudstack
9513053f4256375e892df27d0c26644d1fe41725
[ "Apache-2.0" ]
null
null
null
test/integration/plugins/nuagevsp/test_nuage_password_reset.py
serbaut/cloudstack
9513053f4256375e892df27d0c26644d1fe41725
[ "Apache-2.0" ]
1
2018-03-26T17:53:33.000Z
2018-03-26T17:53:33.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
46.628242
79
0.58152
7973a74578f90a5f5c2fec4b2ef05e2866cae932
777
py
Python
src/main/resources/scripts/plot.py
denysvitali/tsp-cup-2019
7ba5eac927067d385a5ac18c117a603ab76c5249
[ "MIT" ]
2
2021-03-30T22:55:31.000Z
2022-01-26T09:28:56.000Z
src/main/resources/scripts/plot.py
denysvitali/tsp-cup-2019
7ba5eac927067d385a5ac18c117a603ab76c5249
[ "MIT" ]
null
null
null
src/main/resources/scripts/plot.py
denysvitali/tsp-cup-2019
7ba5eac927067d385a5ac18c117a603ab76c5249
[ "MIT" ]
null
null
null
import sys import numpy as np import pylab as pl from matplotlib import collections as mc from matplotlib.pyplot import cm def plotFile(path): file = open(path, 'r').read() blocks = file.split('\n\n') lines = list() for block in blocks: sub = block.split('\n') if len(sub) == 1 and s...
21.583333
47
0.53668
7973a7be798b9855d43acd39f92f8f8f379d2005
512
py
Python
tron/Hub/Reply/Decoders/ReplyDecoder.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
tron/Hub/Reply/Decoders/ReplyDecoder.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
tron/Hub/Reply/Decoders/ReplyDecoder.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
__all__ = ['ReplyDecoder'] from tron import Misc class ReplyDecoder(Misc.Object): """ Base class for decoders for incoming replies. """ def __init__(self, **argv): Misc.Object.__init__(self, **argv) self.name = argv.get('name', 'unnamed') self.nubID = None def setNub(self,...
20.48
83
0.605469
7973a7d7f8d4896a3a4a6c3298790ac943789305
28,520
py
Python
pirates/minigame/CannonDefenseGlobals.py
ksmit799/POTCO-PS
520d38935ae8df4b452c733a82c94dddac01e275
[ "Apache-2.0" ]
8
2017-01-24T04:33:29.000Z
2020-11-01T08:36:24.000Z
pirates/minigame/CannonDefenseGlobals.py
ksmit799/Pirates-Online-Remake
520d38935ae8df4b452c733a82c94dddac01e275
[ "Apache-2.0" ]
1
2017-03-02T18:05:17.000Z
2017-03-14T06:47:10.000Z
pirates/minigame/CannonDefenseGlobals.py
ksmit799/Pirates-Online-Remake
520d38935ae8df4b452c733a82c94dddac01e275
[ "Apache-2.0" ]
11
2017-03-02T18:46:07.000Z
2020-11-01T08:36:26.000Z
# File: C (Python 2.4) from pirates.uberdog.UberDogGlobals import InventoryType from pirates.piratesbase import PiratesGlobals from pirates.ship import ShipGlobals from pirates.inventory import ItemGlobals from pirates.uberdog.UberDogGlobals import InventoryType DAZED_ENABLED = True PLAYER_AFK_TIMEOUT = 300 GAME_OVER_...
30.084388
64
0.490919
7973a7e0a7ce48513a601649a536814ab5a4d34a
89
py
Python
cargotracker/cargo/admin.py
MandelaK/CargoTracker
60d034681da66771412fc73402d690a9fcaa5920
[ "MIT" ]
null
null
null
cargotracker/cargo/admin.py
MandelaK/CargoTracker
60d034681da66771412fc73402d690a9fcaa5920
[ "MIT" ]
3
2020-06-06T00:42:25.000Z
2022-02-10T13:33:21.000Z
cargotracker/cargo/admin.py
MandelaK/CargoTracker
60d034681da66771412fc73402d690a9fcaa5920
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Cargo admin.site.register(Cargo)
12.714286
32
0.797753
7973a9ae8c03f19b501075a3472144ad148135f9
6,558
py
Python
models/embed.py
macul99/Informer2020
7e1e3979ea912879e16194e3bf93062458f2cb9e
[ "Apache-2.0" ]
null
null
null
models/embed.py
macul99/Informer2020
7e1e3979ea912879e16194e3bf93062458f2cb9e
[ "Apache-2.0" ]
null
null
null
models/embed.py
macul99/Informer2020
7e1e3979ea912879e16194e3bf93062458f2cb9e
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn #import torch.nn.functional as F import math class PositionalEmbedding(nn.Module): ''' Encode position index to d_model dimension feature ''' def __init__(self, d_model, max_len=5000): super(PositionalEmbedding, self).__init__() # buffer placeholder ...
36.232044
202
0.604148
7973a9b1c72997d28c3d1ae0144ea5faec973f39
1,084
py
Python
guests/migrations/0005_auto_20180927_0658.py
AntJLopez/django_wedding
6dadca4f89e417b77613af691ecef751480d987e
[ "MIT" ]
null
null
null
guests/migrations/0005_auto_20180927_0658.py
AntJLopez/django_wedding
6dadca4f89e417b77613af691ecef751480d987e
[ "MIT" ]
9
2020-02-11T23:04:26.000Z
2022-03-11T23:28:02.000Z
guests/migrations/0005_auto_20180927_0658.py
AntJLopez/django_wedding
6dadca4f89e417b77613af691ecef751480d987e
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-09-27 10:58 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('payments', '0002_auto_20180925_0336'), ('guests', '0004_auto_20180927_0327'), ] operations = [ ...
30.971429
135
0.579336
7973a9e18a5f6a900736b973696fbcc38b3c8e08
1,669
py
Python
social_core/tests/backends/test_globus.py
shnaqawi/social-core
402e15bd2854ade0b8f0d19663966473f0e1c6ff
[ "BSD-3-Clause" ]
2
2018-11-26T02:51:56.000Z
2018-12-06T02:58:58.000Z
social_core/tests/backends/test_globus.py
shnaqawi/social-core
402e15bd2854ade0b8f0d19663966473f0e1c6ff
[ "BSD-3-Clause" ]
10
2019-12-26T17:31:31.000Z
2022-03-21T22:17:33.000Z
social_core/tests/backends/test_globus.py
shnaqawi/social-core
402e15bd2854ade0b8f0d19663966473f0e1c6ff
[ "BSD-3-Clause" ]
1
2018-09-30T17:49:03.000Z
2018-09-30T17:49:03.000Z
import unittest2 from .oauth import OAuth1Test, OAuth2Test from .open_id_connect import OpenIdConnectTestMixin, NO_JWKEST @unittest2.skipIf(NO_JWKEST, 'No Jwkest installed') class GlobusOpenIdConnectTest(OpenIdConnectTestMixin, OAuth2Test): backend_path = \ 'social_core.backends.globus.GlobusOpenIdConnec...
32.096154
84
0.515279
7973a9ee2d7ff0f3f18a312d1ed8370f3e0f27f4
1,062
py
Python
bevm/block.py
sorawit/bevm
850b2d64fc12dae92d9cdaf8b4c48b90cc0d05d6
[ "MIT" ]
1
2021-09-15T10:16:46.000Z
2021-09-15T10:16:46.000Z
bevm/block.py
sorawit/bevm
850b2d64fc12dae92d9cdaf8b4c48b90cc0d05d6
[ "MIT" ]
null
null
null
bevm/block.py
sorawit/bevm
850b2d64fc12dae92d9cdaf8b4c48b90cc0d05d6
[ "MIT" ]
null
null
null
from dataclasses import dataclass from rlp import encode, decode from rlp.sedes import big_endian_int from eth.constants import BLANK_ROOT_HASH from bevm.hashable import Hashable @dataclass class Block(Hashable): timestamp: int prev_block_hash: bytes action_hash: bytes min_gas_price: int state_roo...
27.230769
92
0.652542
7973ab2036533c5aa0a8c1a39050cbc9b08a8441
1,361
py
Python
app/core/tests/test_models.py
Gal94/recipe-app-api
332218ff1cba565926a083b2c4c6ada94e51d357
[ "MIT" ]
1
2020-12-06T14:47:34.000Z
2020-12-06T14:47:34.000Z
app/core/tests/test_models.py
Gal94/recipe-app-api
332218ff1cba565926a083b2c4c6ada94e51d357
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
Gal94/recipe-app-api
332218ff1cba565926a083b2c4c6ada94e51d357
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model class ModelTests(TestCase): def test_create_user_with_email_successful(self): """Test creating a new user with email is successful""" email = 'test@gmail.com' password = 'Testpass123' # Create the user...
32.404762
69
0.653196
7973ad173b46c6f8f7eefdaf814c9585ccbff42b
462
py
Python
example.py
natterbr21/wordleGamePython
453f5efdbfc3443a5e42a9bdd43873540ad5277a
[ "MIT" ]
null
null
null
example.py
natterbr21/wordleGamePython
453f5efdbfc3443a5e42a9bdd43873540ad5277a
[ "MIT" ]
null
null
null
example.py
natterbr21/wordleGamePython
453f5efdbfc3443a5e42a9bdd43873540ad5277a
[ "MIT" ]
null
null
null
from wordleGame import Game # creates new game object for wordle game number 122 newGame = Game(122) # print correct answer for given game number print(newGame.getAnswer()) # prints comet # submitting guess of the word and printing the result # 0 is equivalent to a grey square, 1 is a yellow square, and 2 is a green...
27.176471
81
0.768398
7973ae110b4d2de8f2c32c2d284aa353501d0327
56,910
py
Python
vedadet/datasets/pipelines/transforms.py
huangwenwenlili/vedadet
1d66e07538792799c2f12c6b1d381e2c1374d623
[ "Apache-2.0" ]
2
2021-12-07T08:28:39.000Z
2022-01-17T09:22:01.000Z
vedadet/datasets/pipelines/transforms.py
huangwenwenlili/vedadet
1d66e07538792799c2f12c6b1d381e2c1374d623
[ "Apache-2.0" ]
1
2021-11-15T09:09:10.000Z
2021-12-08T09:02:56.000Z
vedadet/datasets/pipelines/transforms.py
huangwenwenlili/vedadet
1d66e07538792799c2f12c6b1d381e2c1374d623
[ "Apache-2.0" ]
1
2021-03-16T05:37:15.000Z
2021-03-16T05:37:15.000Z
# adapted from https://github.com/open-mmlab/mmcv or # https://github.com/open-mmlab/mmdetection import inspect import numpy as np from numpy import random import vedacore.image as image from vedacore.misc import is_list_of, is_str, registry from vedadet.misc.bbox import bbox_overlaps try: from imagecorruptions i...
38.041444
79
0.560112
7973aebb45b246873a54d6fa17c6ad283f6063a5
5,906
py
Python
dash/html/Slot.py
sthagen/plotly-dash
4a9412efe5229809016eee9a5f1c50f882720c4c
[ "MIT" ]
null
null
null
dash/html/Slot.py
sthagen/plotly-dash
4a9412efe5229809016eee9a5f1c50f882720c4c
[ "MIT" ]
null
null
null
dash/html/Slot.py
sthagen/plotly-dash
4a9412efe5229809016eee9a5f1c50f882720c4c
[ "MIT" ]
null
null
null
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class Slot(Component): """A Slot component. Slot is a wrapper for the <slot> HTML5 element. For detailed attribute info see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot ...
31.752688
84
0.596173
7973af570a09dd468b66e102ab8532d45cc7f69e
403
py
Python
assets/HTB_CTF_2021/logger_decrypt.py
NapongiZero/blog
b84750464e910bdca79559306e0ed9106cf1958a
[ "CC0-1.0" ]
null
null
null
assets/HTB_CTF_2021/logger_decrypt.py
NapongiZero/blog
b84750464e910bdca79559306e0ed9106cf1958a
[ "CC0-1.0" ]
null
null
null
assets/HTB_CTF_2021/logger_decrypt.py
NapongiZero/blog
b84750464e910bdca79559306e0ed9106cf1958a
[ "CC0-1.0" ]
1
2021-06-25T16:40:47.000Z
2021-06-25T16:40:47.000Z
from Crypto.Cipher import AES import base64, os key = 'w0MrV1vBmZi1Z17v' iv = 'Kh54H8JTmOYq5mre' cipher = AES.new(key.encode('utf-8'), AES.MODE_CFB, iv.encode('utf-8')) with open('anvzdgfuw1l.txt', 'r') as f: enc_txt = f.readlines() try: for line in enc_txt: pt = cipher.decrypt(base64.b64decode(li...
25.1875
71
0.652605
7973af5d66a835d2e9772a8eee2ae8203be0f458
5,581
py
Python
torchreid/datasets/mars.py
yyyjoe/deep-person-reid
82380612ca87928c772ea8059da5cb8c6bb06e0c
[ "MIT" ]
244
2019-08-03T16:56:42.000Z
2020-08-08T00:57:21.000Z
torchreid/datasets/mars.py
yyyjoe/deep-person-reid
82380612ca87928c772ea8059da5cb8c6bb06e0c
[ "MIT" ]
31
2019-08-09T09:13:22.000Z
2020-08-11T07:27:47.000Z
torchreid/datasets/mars.py
yyyjoe/deep-person-reid
82380612ca87928c772ea8059da5cb8c6bb06e0c
[ "MIT" ]
44
2019-08-09T00:55:48.000Z
2020-07-27T03:52:13.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import glob import re import sys import urllib import tarfile import zipfile import os.path as osp from scipy.io import loadmat import numpy as np import h5py from scipy.misc import imsave from .base...
43.263566
125
0.668339
7973af6327edc63251bf003937e58a53d2876fb2
1,106
py
Python
agent/indy_catalyst_agent/messaging/connections/messages/connection_request.py
mikelodder7/indy-catalyst
5e80d8d6764144303b7ef1851aee32291bcb2d98
[ "Apache-2.0" ]
null
null
null
agent/indy_catalyst_agent/messaging/connections/messages/connection_request.py
mikelodder7/indy-catalyst
5e80d8d6764144303b7ef1851aee32291bcb2d98
[ "Apache-2.0" ]
null
null
null
agent/indy_catalyst_agent/messaging/connections/messages/connection_request.py
mikelodder7/indy-catalyst
5e80d8d6764144303b7ef1851aee32291bcb2d98
[ "Apache-2.0" ]
null
null
null
""" Represents a connection request message. """ from marshmallow import fields from ...agent_message import AgentMessage, AgentMessageSchema from ..message_types import CONNECTION_REQUEST from ....models.connection_detail import ConnectionDetail, ConnectionDetailSchema HANDLER_CLASS = ( "indy_catalyst_agent.mes...
24.577778
81
0.702532
7973aface00a6c0ea46e85f25b623fe504154318
1,578
py
Python
tensorpack/utils/serialize.py
zhengknight/tensorpack
726747313fb2f189dd195d32087897b16a23be0a
[ "Apache-2.0" ]
1
2019-05-07T15:23:33.000Z
2019-05-07T15:23:33.000Z
tensorpack/utils/serialize.py
zhengknight/tensorpack
726747313fb2f189dd195d32087897b16a23be0a
[ "Apache-2.0" ]
null
null
null
tensorpack/utils/serialize.py
zhengknight/tensorpack
726747313fb2f189dd195d32087897b16a23be0a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # File: serialize.py import os from .develop import create_dummy_func __all__ = ['loads', 'dumps'] def dumps_msgpack(obj): """ Serialize an object. Returns: Implementation-dependent bytes-like object """ return msgpack.dumps(obj, use_bin_type=True) def loads_msg...
22.542857
92
0.66033
7973afcecb931eddddca0f458cdb684fd19b66b4
1,381
py
Python
tests/test_watchmedo.py
LeastAuthority/watchdog
e4297f0f7149763f6e93536746e3c87f9d1fa699
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_watchmedo.py
LeastAuthority/watchdog
e4297f0f7149763f6e93536746e3c87f9d1fa699
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_watchmedo.py
LeastAuthority/watchdog
e4297f0f7149763f6e93536746e3c87f9d1fa699
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from watchdog import watchmedo import pytest from yaml.constructor import ConstructorError from yaml.scanner import ScannerError import os def test_load_config_valid(tmpdir): """Verifies the load of a valid yaml file""" yaml_file = os.path.join...
30.688889
80
0.680666
7973b008392b4f4dc3867afe7c1b92ff6764252c
4,418
py
Python
tests/test_statistics.py
LukichevaPolina/dpnp
5f5a679905d237ac7be1cc9ad1075877a9f77e39
[ "BSD-2-Clause" ]
37
2020-09-08T00:38:52.000Z
2022-03-18T01:44:10.000Z
tests/test_statistics.py
LukichevaPolina/dpnp
5f5a679905d237ac7be1cc9ad1075877a9f77e39
[ "BSD-2-Clause" ]
432
2020-09-07T09:48:41.000Z
2022-03-25T17:50:55.000Z
tests/test_statistics.py
LukichevaPolina/dpnp
5f5a679905d237ac7be1cc9ad1075877a9f77e39
[ "BSD-2-Clause" ]
17
2020-09-07T10:00:34.000Z
2022-03-25T13:53:43.000Z
import pytest import dpnp import numpy @pytest.mark.parametrize("type", [numpy.float64, numpy.float32, numpy.int64, numpy.int32], ids=['float64', 'float32', 'int64', 'int32']) @pytest.mark.parametrize("size", [2, 4, 8, 16, 3, 9, 27, 81]) def...
38.754386
82
0.390222
7973b27601237d2519584ccb9307f3a842176879
105,467
py
Python
pandas/tests/test_panel.py
mapehe/pandas
8ddc0fd801d794fcd7735816790dff66d1c678e2
[ "BSD-3-Clause" ]
3
2018-08-21T14:13:25.000Z
2022-02-28T01:36:26.000Z
venv/Lib/site-packages/pandas/tests/test_panel.py
feitianyiren/Spider
832d81fa55c0413fac441a05cef25a508ff0c308
[ "Unlicense" ]
1
2019-08-17T13:20:28.000Z
2019-08-17T13:20:28.000Z
venv/Lib/site-packages/pandas/tests/test_panel.py
feitianyiren/Spider
832d81fa55c0413fac441a05cef25a508ff0c308
[ "Unlicense" ]
1
2020-06-18T15:56:53.000Z
2020-06-18T15:56:53.000Z
# -*- coding: utf-8 -*- # pylint: disable=W0612,E1101 from warnings import catch_warnings from datetime import datetime import operator import pytest import numpy as np from pandas.core.dtypes.common import is_float_dtype from pandas import (Series, DataFrame, Index, date_range, isna, notna, pivo...
38.774632
102
0.507277
7973b32b4792b477f742d5617de93d674d2b1465
2,743
py
Python
filesystem_listener/operations.py
joaovitor123jv/rontext
0e4d2bb9df879a0331037af9bf49e39e5a6b4e24
[ "MIT" ]
1
2022-02-21T03:54:44.000Z
2022-02-21T03:54:44.000Z
filesystem_listener/operations.py
joaovitor123jv/rontext
0e4d2bb9df879a0331037af9bf49e39e5a6b4e24
[ "MIT" ]
null
null
null
filesystem_listener/operations.py
joaovitor123jv/rontext
0e4d2bb9df879a0331037af9bf49e39e5a6b4e24
[ "MIT" ]
null
null
null
import subprocess import settings import time_parser import time import database import helpers import os def isProjectRelated(path): return ( path.startswith( os.environ['HOME'] + "/Documentos/UFG-CDC/PFC/PFC2/Sistema" ) or path.startswith( os.environ['HOME'] + "/.ctxt_search-") ) def...
29.815217
106
0.663143
7973b38898880fdfc15055e06e371b36983b568b
703
py
Python
Euler 44.py
Babnik21/Euler
e73f27ca477c58940a8212b17cd86fce9684e15b
[ "MIT" ]
null
null
null
Euler 44.py
Babnik21/Euler
e73f27ca477c58940a8212b17cd86fce9684e15b
[ "MIT" ]
null
null
null
Euler 44.py
Babnik21/Euler
e73f27ca477c58940a8212b17cd86fce9684e15b
[ "MIT" ]
null
null
null
def nta_penta(n): return n*( 3 * n - 1)//2 def pente_do(n, od = 1): sez = [] for i in range(od, n + 1): sez.append(nta_penta(i)) return sez def dodaj_pento(sez, n): return sez + [nta_penta(n)] seznam = pente_do(500) i = 501 razlike = [] nadaljuj = True resitev = [] while nadaljuj: s...
15.282609
41
0.519203
7973b41ffda5aa99fe4aa8c67c6a44d1a2522c53
3,425
py
Python
src/lib/utils.py
peanutstars/PiWeb
f20d79ce8d0e737d9328f4d2b9a2bed3581be7d2
[ "Apache-2.0" ]
null
null
null
src/lib/utils.py
peanutstars/PiWeb
f20d79ce8d0e737d9328f4d2b9a2bed3581be7d2
[ "Apache-2.0" ]
null
null
null
src/lib/utils.py
peanutstars/PiWeb
f20d79ce8d0e737d9328f4d2b9a2bed3581be7d2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import datetime import json import time class Stamp: # FORM = '%Y-%m-%d %H:%M:%S.%f' FORM = '%Y-%m-%d %H:%M:%S' TZ_FORM = '%Y-%m-%d %H:%M:%S %Z%z' FILE_FORM = '%Y%m%d-%H%M%S' @classmethod def now(cls, form=FORM): return dat...
33.910891
95
0.560876
7973b447931ff36799c957d9fd25a0a7f715f251
2,964
py
Python
Sensor/PM/SDS011/sds011.py
tabspacekr/HomeAssistant
23606fe631743648497f2c14e2f2badcd477c139
[ "Apache-2.0" ]
1
2021-04-11T04:24:53.000Z
2021-04-11T04:24:53.000Z
Sensor/PM/SDS011/sds011.py
tabspacekr/HomeAssistant
23606fe631743648497f2c14e2f2badcd477c139
[ "Apache-2.0" ]
null
null
null
Sensor/PM/SDS011/sds011.py
tabspacekr/HomeAssistant
23606fe631743648497f2c14e2f2badcd477c139
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python -u # coding=utf-8 # "DATASHEET": http://cl.ly/ekot # original code by https://gist.github.com/kadamski/92653913a53baf9dd1a8 from __future__ import print_function import serial, struct, sys, time, subprocess DEBUG = 0 CMD_MODE = 2 CMD_QUERY_DATA = 4 CMD_DEVICE_ID = 5 CMD_SLEEP = 6 CMD_FIRMWARE = 7 CMD...
25.773913
136
0.610661
7973b63e552d29c0682114e862cf805ba0d47c83
2,167
py
Python
pset1/ps1c.py
MarcoDSilva/MIT6001x-Introduction-to-Computer-Science-and-Programming-in-Python
7a62970e4f06c24e0d34c2ee5ad2c2377e9cdce8
[ "MIT" ]
null
null
null
pset1/ps1c.py
MarcoDSilva/MIT6001x-Introduction-to-Computer-Science-and-Programming-in-Python
7a62970e4f06c24e0d34c2ee5ad2c2377e9cdce8
[ "MIT" ]
null
null
null
pset1/ps1c.py
MarcoDSilva/MIT6001x-Introduction-to-Computer-Science-and-Programming-in-Python
7a62970e4f06c24e0d34c2ee5ad2c2377e9cdce8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed May 20 13:37:04 2020 Pset1 , exercise 3 for MIT 6.0001s @author: MarcoSilva """ """ You have graduated from MIT and now have a great job! You move to the San Francisco Bay Area and decide that you want to start saving to buy a house.  As housing prices are very high in the B...
26.426829
102
0.652976
7973b72748c2701db1dc77ef0d8723e3bb2f19ff
870
py
Python
Payload_Types/poseidon/mythic/agent_functions/jobkill.py
xorrior/Mythic
ea348b66e1d96e88e0e7fbabff182945cbdf12b6
[ "BSD-3-Clause" ]
2
2021-01-28T19:35:46.000Z
2021-04-08T12:01:48.000Z
Payload_Types/poseidon/mythic/agent_functions/jobkill.py
xorrior/Mythic
ea348b66e1d96e88e0e7fbabff182945cbdf12b6
[ "BSD-3-Clause" ]
null
null
null
Payload_Types/poseidon/mythic/agent_functions/jobkill.py
xorrior/Mythic
ea348b66e1d96e88e0e7fbabff182945cbdf12b6
[ "BSD-3-Clause" ]
2
2021-06-23T18:59:18.000Z
2021-08-20T00:06:49.000Z
from CommandBase import * import json class JobKillArguments(TaskArguments): def __init__(self, command_line): super().__init__(command_line) self.args = {} async def parse_arguments(self): pass class JobKillCommand(CommandBase): cmd = "jobkill" needs_admin = False help_...
24.857143
88
0.682759
7973b738cbc44db69db67ee7b5fc7d7fe78bd303
721
py
Python
question2.py
scottynate05/Python-Basics
b97d71a091974c98134e3bcdb5abf603dd9610ae
[ "MIT" ]
null
null
null
question2.py
scottynate05/Python-Basics
b97d71a091974c98134e3bcdb5abf603dd9610ae
[ "MIT" ]
null
null
null
question2.py
scottynate05/Python-Basics
b97d71a091974c98134e3bcdb5abf603dd9610ae
[ "MIT" ]
null
null
null
# Create a function that returns True if the given string has any of the following: # Only letters and no numbers. # Only numbers and no letters. # If a string has both numbers and letters or contains characters that don't fit into any category, return False. # Examples: # csAlphanumericRestriction("Bold") ➞ True # ...
28.84
113
0.740638
7973b7b1d173d97097c81ac0ad8a47ad12f34ec6
21,142
py
Python
IBSNview.py
vsjoen/IBSNtools
99fc9425eb9b89ee95027265567985bdae969165
[ "MIT" ]
null
null
null
IBSNview.py
vsjoen/IBSNtools
99fc9425eb9b89ee95027265567985bdae969165
[ "MIT" ]
null
null
null
IBSNview.py
vsjoen/IBSNtools
99fc9425eb9b89ee95027265567985bdae969165
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter import ttk from tkinter import * from tkinter import filedialog as fd from tkinter.messagebox import showinfo from PIL import ImageTk, Image, ExifTags from PIL.ExifTags import TAGS from pathlib import Path import glob, os, sys import ntpath import math import re import fnmatch import p...
32.526154
409
0.583294
7973b88b828c009f6d173ef124dbf7f70493e1d3
38,602
py
Python
openpype/tools/workfiles/app.py
2-REC-forks/OpenPype
d9bdf007b81d8e461eba3f5a8045b5a2f81476e2
[ "MIT" ]
null
null
null
openpype/tools/workfiles/app.py
2-REC-forks/OpenPype
d9bdf007b81d8e461eba3f5a8045b5a2f81476e2
[ "MIT" ]
4
2022-02-04T07:55:06.000Z
2022-02-23T14:36:30.000Z
openpype/tools/workfiles/app.py
BigRoy/OpenPype
dd0e3657b4e66740f55feddb2693acfd14e2c9ef
[ "MIT" ]
null
null
null
import sys import os import copy import getpass import shutil import logging import datetime import Qt from Qt import QtWidgets, QtCore from avalon import io, api, pipeline from openpype import style from openpype.tools.utils.lib import ( schedule, qt_app_context ) from openpype.tools.utils import Placeholder...
33.077978
79
0.622144
7973b8a612485852f147a1213fc326141b6b1e7e
1,266
py
Python
dataset/images2/simple_classification.py
gtesei/fast-furious
b974e6b71be92ad8892864794af57631291ebac1
[ "MIT" ]
19
2015-06-24T00:04:11.000Z
2021-02-28T16:55:44.000Z
dataset/images2/simple_classification.py
gtesei/fast-furious
b974e6b71be92ad8892864794af57631291ebac1
[ "MIT" ]
null
null
null
dataset/images2/simple_classification.py
gtesei/fast-furious
b974e6b71be92ad8892864794af57631291ebac1
[ "MIT" ]
4
2016-10-11T17:36:44.000Z
2019-08-16T10:03:04.000Z
import mahotas as mh from sklearn import cross_validation from sklearn.linear_model.logistic import LogisticRegression import numpy as np from glob import glob from edginess import edginess_sobel #basedir = 'simple-dataset' basedir = 'simple-dataset/' def features_for(im): im = mh.imread(im,as_grey=True).astype(...
30.142857
131
0.729858
7973b9370aa368228a145acdd9511e42de46b2ed
85
py
Python
hknweb/shortlinks/admin.py
yuji3w/hknweb
0df5369da28f46dc9016da97652cb6b8e2b7f3e6
[ "MIT" ]
1
2021-02-11T23:09:14.000Z
2021-02-11T23:09:14.000Z
hknweb/shortlinks/admin.py
yuji3w/hknweb
0df5369da28f46dc9016da97652cb6b8e2b7f3e6
[ "MIT" ]
null
null
null
hknweb/shortlinks/admin.py
yuji3w/hknweb
0df5369da28f46dc9016da97652cb6b8e2b7f3e6
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Link admin.site.register(Link)
17
32
0.811765
7973b9a73799d12d1f8ddd6a0abdb21e76120eb2
5,017
py
Python
a10_octavia/a10_config.py
richuc/a10-octavia
dddb3e4695c38cbb72ecf7f99a8e746869590ae2
[ "Apache-2.0" ]
null
null
null
a10_octavia/a10_config.py
richuc/a10-octavia
dddb3e4695c38cbb72ecf7f99a8e746869590ae2
[ "Apache-2.0" ]
null
null
null
a10_octavia/a10_config.py
richuc/a10-octavia
dddb3e4695c38cbb72ecf7f99a8e746869590ae2
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, A10 Networks # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
33.898649
96
0.628264
7973b9f14d64e754b61d3f6bf2b955521d57dda0
19,214
py
Python
catkin_tools/verbs/catkin_build/cli.py
betwo/catkin_tools
b7cac345be0fd0f6efafafda25f3e3660d69c9d1
[ "Apache-2.0" ]
null
null
null
catkin_tools/verbs/catkin_build/cli.py
betwo/catkin_tools
b7cac345be0fd0f6efafafda25f3e3660d69c9d1
[ "Apache-2.0" ]
null
null
null
catkin_tools/verbs/catkin_build/cli.py
betwo/catkin_tools
b7cac345be0fd0f6efafafda25f3e3660d69c9d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Open Source Robotics Foundation, 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...
44.170115
118
0.691475
7973ba51a0d0c9f93604e6793dc0918600f0e830
137
py
Python
python/helpers/tests/generator3_tests/data/FileSystemUtil/copy_skeleton_origin_stamp_updated/src/foo/bar/baz.py
tgodzik/intellij-community
f5ef4191fc30b69db945633951fb160c1cfb7b6f
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/helpers/tests/generator3_tests/data/FileSystemUtil/copy_skeleton_origin_stamp_updated/src/foo/bar/baz.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2022-02-19T09:45:05.000Z
2022-02-27T20:32:55.000Z
python/helpers/tests/generator3_tests/data/FileSystemUtil/copy_skeleton_origin_stamp_updated/src/foo/bar/baz.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
# encoding: utf-8 # module baz # from old/binary/foo/bar/baz.so # by generator 1000.0 # no doc # no imports # no functions # no classes
13.7
32
0.693431
7973ba728d032ed9eb6d41d796ae4be0d77855e5
2,126
py
Python
src/oci/nosql/models/work_request_collection.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/nosql/models/work_request_collection.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/nosql/models/work_request_collection.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
29.943662
245
0.661336
7973baef6195d5e8864179b28b4fc35e210e6b00
553
py
Python
example/TestModule/run.py
4USE/davloshara
7e88b344b2b3ab8a2ff82a6aa84a7058fb0d6624
[ "MIT" ]
null
null
null
example/TestModule/run.py
4USE/davloshara
7e88b344b2b3ab8a2ff82a6aa84a7058fb0d6624
[ "MIT" ]
null
null
null
example/TestModule/run.py
4USE/davloshara
7e88b344b2b3ab8a2ff82a6aa84a7058fb0d6624
[ "MIT" ]
null
null
null
from vk_api.longpoll import Event, VkEventType from configs import store from utils import Base class Main(Base): __flags__ = { VkEventType.MESSAGE_NEW: True, VkEventType.MESSAGE_FLAGS_SET: False, VkEventType.MESSAGE_EDIT: False } def __init__(self, event: Event): self.di...
20.481481
58
0.650995
7973baef95b16523701b793171fc3e7619d2976c
7,586
py
Python
mnist/mnist_relabel_active.py
cyber-meow/Noisy_active_query
309c41f45c53311c32e2eeec9b179807237abce1
[ "MIT" ]
2
2018-12-17T06:46:33.000Z
2019-05-09T06:45:30.000Z
mnist/mnist_relabel_active.py
cyber-meow/Noisy_active_query
309c41f45c53311c32e2eeec9b179807237abce1
[ "MIT" ]
null
null
null
mnist/mnist_relabel_active.py
cyber-meow/Noisy_active_query
309c41f45c53311c32e2eeec9b179807237abce1
[ "MIT" ]
1
2019-02-27T13:39:16.000Z
2019-02-27T13:39:16.000Z
import torch import torch.utils.data as data import torchvision import torchvision.transforms as transforms import argparse # import matplotlib.pyplot as plt import numpy as np from copy import deepcopy from collections import OrderedDict import dataset import settings from active_query import RandomQuery, Disagreeme...
30.223108
75
0.674005
7973bb40e93d70df58f4d16a5a16380e2ff1a061
582
py
Python
sites/us/apps/checkout/forms.py
gabalese/django-oscar
9a043dbbba976d08c9c874dae962563a19875ef1
[ "BSD-3-Clause" ]
2
2015-12-11T00:19:15.000Z
2021-11-14T19:44:42.000Z
sites/us/apps/checkout/forms.py
gabalese/django-oscar
9a043dbbba976d08c9c874dae962563a19875ef1
[ "BSD-3-Clause" ]
1
2021-12-13T20:48:46.000Z
2021-12-13T20:48:46.000Z
sites/us/apps/checkout/forms.py
gabalese/django-oscar
9a043dbbba976d08c9c874dae962563a19875ef1
[ "BSD-3-Clause" ]
2
2018-12-27T09:42:38.000Z
2018-12-27T10:21:07.000Z
from django.utils.translation import ugettext_lazy as _ from localflavor.us import forms as us_forms from oscar.apps.checkout import forms as checkout_forms class ShippingAddressForm(checkout_forms.ShippingAddressForm): state = us_forms.USStateField(label="State", widget=us_forms.USStateSelect) def __init__...
38.8
79
0.731959
7973bd1a882e9d4b9877284a7b46ddc70f0c6bf3
1,483
py
Python
tests/test_ogcapi_features_pygeoapi.py
vjf/OWSLib
9a3768c3cae21cb9a30dc4437259dfaa8dde1118
[ "BSD-3-Clause" ]
null
null
null
tests/test_ogcapi_features_pygeoapi.py
vjf/OWSLib
9a3768c3cae21cb9a30dc4437259dfaa8dde1118
[ "BSD-3-Clause" ]
null
null
null
tests/test_ogcapi_features_pygeoapi.py
vjf/OWSLib
9a3768c3cae21cb9a30dc4437259dfaa8dde1118
[ "BSD-3-Clause" ]
null
null
null
from tests.utils import service_ok import pytest from owslib.ogcapi.features import Features SERVICE_URL = 'https://demo.pygeoapi.io/master' @pytest.mark.online @pytest.mark.skipif(not service_ok(SERVICE_URL), reason='service is unreachable') def test_ogcapi_features_pygeoapi(): w = Feature...
29.66
71
0.687795
7973bdf9d5311c691260306c8bfa28840ce4b13f
592
py
Python
zorg_emic/adaptors.py
zorg-framework/zorg-emic
34d49897131cf7773b2b0f46e1e0a796911144e3
[ "MIT" ]
3
2016-03-25T15:40:11.000Z
2017-04-22T03:05:16.000Z
zorg_emic/adaptors.py
zorg-framework/zorg-emic
34d49897131cf7773b2b0f46e1e0a796911144e3
[ "MIT" ]
null
null
null
zorg_emic/adaptors.py
zorg-framework/zorg-emic
34d49897131cf7773b2b0f46e1e0a796911144e3
[ "MIT" ]
null
null
null
from zorg.adaptor import Adaptor import serial class Serial(Adaptor): def __init__(self, options): super(Serial, self).__init__(options) self.port = options.get("port", "/dev/ttyAMA0") self.baudrate = options.get("baudrate", 9600) self.serial = serial.Serial(self.port, baudrate=s...
22.769231
70
0.640203
7973beda9d55d8f99869fc7b3c0e481cf3cc9748
3,231
py
Python
paas-ce/paas/esb/components/bk/apisv2/cc/get_host_base_info.py
canway-bk/bk-PaaS
7a6fe1ef38a7e4e2bd11a6c2efa871a967ac2a3c
[ "Apache-2.0" ]
767
2019-03-25T06:35:43.000Z
2022-03-30T08:57:51.000Z
paas-ce/paas/esb/components/bk/apisv2/cc/get_host_base_info.py
canway-bk/bk-PaaS
7a6fe1ef38a7e4e2bd11a6c2efa871a967ac2a3c
[ "Apache-2.0" ]
194
2019-03-29T07:16:41.000Z
2022-03-30T06:17:49.000Z
paas-ce/paas/esb/components/bk/apisv2/cc/get_host_base_info.py
canway-bk/bk-PaaS
7a6fe1ef38a7e4e2bd11a6c2efa871a967ac2a3c
[ "Apache-2.0" ]
381
2019-03-25T07:19:54.000Z
2022-03-29T03:22:42.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
31.368932
305
0.544104
7973bf050cc69bdb6bfa297dcb994bd3ca6b20b8
2,877
py
Python
Chains.py
htetmyet/keyword-extraction
e9b34bd035cdc4576eb9c7b1101a1a9dfb2a003b
[ "MIT" ]
4
2016-12-25T14:49:31.000Z
2020-03-25T04:31:40.000Z
Chains.py
htetmyet/keyword-extraction
e9b34bd035cdc4576eb9c7b1101a1a9dfb2a003b
[ "MIT" ]
1
2018-12-19T02:51:21.000Z
2018-12-19T02:51:21.000Z
Chains.py
htetmyet/keyword-extraction
e9b34bd035cdc4576eb9c7b1101a1a9dfb2a003b
[ "MIT" ]
null
null
null
import nltk from nltk.corpus import wordnet as wn from nltk.corpus import wordnet_ic threshold = 0.6 #treshold for wup jcnTreshold = 0.09 #jcn pathTeshold = 0.1 #path brown_ic = wordnet_ic.ic('ic-brown.dat') #load the brown corpus lexical_chains = [] #empty list to hold all the chains dictionary = {} #empty dictionar...
32.693182
112
0.57838
7973bf8779e04274dfef2bcab0183e9c4a51514a
3,057
py
Python
wikitablestosql/multistreamfilehandling.py
eddyydde/wikitablestosql
4d5aaa2bf0495a1dbf033e7c512a143a67a2c0fd
[ "MIT" ]
null
null
null
wikitablestosql/multistreamfilehandling.py
eddyydde/wikitablestosql
4d5aaa2bf0495a1dbf033e7c512a143a67a2c0fd
[ "MIT" ]
null
null
null
wikitablestosql/multistreamfilehandling.py
eddyydde/wikitablestosql
4d5aaa2bf0495a1dbf033e7c512a143a67a2c0fd
[ "MIT" ]
1
2021-02-04T13:21:27.000Z
2021-02-04T13:21:27.000Z
import os import csv import bz2 def prepare_parts_using_index(data_directory, file, index, done=0): """ Prepare parts by cutting multistream file according to index. Prepare decompression directory. :param data_directory: path as string :param file: filename as string :param ind...
40.223684
109
0.649657
7973bfd6b0a80e8f8eb1bcc0cc8826ab25274ec2
3,794
py
Python
lib/spack/spack/util/log_parse.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-10T13:47:48.000Z
2019-04-17T13:05:17.000Z
lib/spack/spack/util/log_parse.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
17
2019-03-21T15:54:00.000Z
2022-03-29T19:34:28.000Z
lib/spack/spack/util/log_parse.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-04-07T18:27:09.000Z
2022-03-31T22:52:38.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from __future__ import print_function import sys from six import StringIO from ctest_log_parser import CTestLogParser, B...
31.098361
73
0.636795
7973c0027652b328700f0787881e49c4b0cee092
3,509
py
Python
bindings/python/ensmallen/datasets/string/grosmanniaclavigerakw1407.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/grosmanniaclavigerakw1407.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/grosmanniaclavigerakw1407.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Grosmannia clavigera kw1407. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--pr...
33.419048
223
0.680251
7973c0a1e9d76ea88fa29f3495411987b63ef1fc
15,130
py
Python
tests/test_pipeline.py
NCRAR/psiaudio
fdb7629238ef7de62a511b5ab17458d46767db69
[ "MIT" ]
null
null
null
tests/test_pipeline.py
NCRAR/psiaudio
fdb7629238ef7de62a511b5ab17458d46767db69
[ "MIT" ]
null
null
null
tests/test_pipeline.py
NCRAR/psiaudio
fdb7629238ef7de62a511b5ab17458d46767db69
[ "MIT" ]
null
null
null
import pytest from collections import deque from functools import partial import numpy as np from scipy import signal from psiaudio import pipeline from psiaudio.pipeline import normalize_index from psiaudio import util @pytest.fixture def data1d(fs): md = {'foo': 'bar'} data = np.random.uniform(size=10000...
31.65272
109
0.609451
7973c1341f39a17007468ceaf232ac932f23bd71
7,958
py
Python
MIDI/MIDI_Conversion.py
hmattinson/ExcelMusic
400bdc2f51a3b211f8d9d60ddb227654596a53c9
[ "MIT" ]
null
null
null
MIDI/MIDI_Conversion.py
hmattinson/ExcelMusic
400bdc2f51a3b211f8d9d60ddb227654596a53c9
[ "MIT" ]
null
null
null
MIDI/MIDI_Conversion.py
hmattinson/ExcelMusic
400bdc2f51a3b211f8d9d60ddb227654596a53c9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # MIDI to CSV Converter # In[657]: import mido import csv import os # In[178]: def cprint(s,b): if b: print(s) # In[273]: def get_active_notes(mid): active_notes = {} tracks = mid.tracks num_tracks = len(tracks) all_notes = num_tracks * [No...
32.481633
131
0.563709
7973c1e1dd49152efb26060acaa66d5a783fb964
12,655
py
Python
templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/tokenization_{{cookiecutter.lowercase_modelname}}.py
JadeMaveric/transformers
fb2b89840bf2ab9f74702bf83af8ddf92b61efb3
[ "Apache-2.0" ]
34
2021-07-05T02:44:31.000Z
2022-03-28T14:39:57.000Z
templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/tokenization_{{cookiecutter.lowercase_modelname}}.py
JadeMaveric/transformers
fb2b89840bf2ab9f74702bf83af8ddf92b61efb3
[ "Apache-2.0" ]
3
2021-07-22T15:49:44.000Z
2022-03-19T08:46:27.000Z
templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/tokenization_{{cookiecutter.lowercase_modelname}}.py
JadeMaveric/transformers
fb2b89840bf2ab9f74702bf83af8ddf92b61efb3
[ "Apache-2.0" ]
6
2021-07-05T02:44:32.000Z
2022-02-14T10:10:13.000Z
# coding=utf-8 # Copyright {{cookiecutter.authors}} and The HuggingFace Inc. team. 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/...
37.330383
145
0.659028
7973c281b45641823380dbd673f650a4f196571f
35,939
py
Python
fhirclient/models/nutritionorder_tests.py
NematiLab/Streaming-Sepsis-Prediction-System-for-Intensive-Care-Units
fb5ad260fb8d264d85aea9e6c895d1700eea4d11
[ "Apache-2.0" ]
2
2019-05-16T16:41:22.000Z
2021-04-22T22:06:49.000Z
fhirclient/models/nutritionorder_tests.py
NematiLab/Streaming-Sepsis-Prediction-System-for-Intensive-Care-Units
fb5ad260fb8d264d85aea9e6c895d1700eea4d11
[ "Apache-2.0" ]
null
null
null
fhirclient/models/nutritionorder_tests.py
NematiLab/Streaming-Sepsis-Prediction-System-for-Intensive-Care-Units
fb5ad260fb8d264d85aea9e6c895d1700eea4d11
[ "Apache-2.0" ]
3
2019-03-26T01:39:18.000Z
2020-02-02T19:06:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 1.0.2.7202 on 2016-06-23. # 2016, SMART Health IT. import os import io import unittest import json from . import nutritionorder from .fhirdate import FHIRDate class NutritionOrderTests(unittest.TestCase): def instantiate_from(self, filename...
72.60404
170
0.718161
7973c2a4c707ba2badc6c3d03ba6772511311d8b
1,556
py
Python
pysnobal/core/snow.py
scotthavens/pysnobal
9cff1e6cb2f1da4240132af4e1d2f5740092d2ef
[ "CC0-1.0" ]
1
2022-01-26T16:47:44.000Z
2022-01-26T16:47:44.000Z
pysnobal/core/snow.py
scotthavens/pysnobal
9cff1e6cb2f1da4240132af4e1d2f5740092d2ef
[ "CC0-1.0" ]
null
null
null
pysnobal/core/snow.py
scotthavens/pysnobal
9cff1e6cb2f1da4240132af4e1d2f5740092d2ef
[ "CC0-1.0" ]
1
2022-02-08T22:31:27.000Z
2022-02-08T22:31:27.000Z
from pysnobal.core.constants import RHO_ICE, RHO_W0, FREEZE from pysnobal.core.functions import lh_fus, cp_ice def h2o_left(d, rhos, sat): """water retained by snow at given saturation (see SNO_SAT) Args: d (float or array): total depth of snow [m] rhos (float or array): density of snow [kg/m...
23.938462
74
0.612468
7973c5b216d4b5fb8f217472b103ab41bf7c8309
620
py
Python
terra/pytorch.py
seyuboglu/terra
7d5f8d8cdfbf819b52fb997b5b9746746d86b295
[ "Apache-2.0" ]
1
2022-03-15T00:13:58.000Z
2022-03-15T00:13:58.000Z
terra/pytorch.py
seyuboglu/terra
7d5f8d8cdfbf819b52fb997b5b9746746d86b295
[ "Apache-2.0" ]
2
2021-09-16T05:00:30.000Z
2021-11-19T21:37:09.000Z
terra/pytorch.py
seyuboglu/terra
7d5f8d8cdfbf819b52fb997b5b9746746d86b295
[ "Apache-2.0" ]
null
null
null
import torch from terra.io import reader, writer @writer(torch.Tensor) def write_tensor(out, path): torch.save(out, path) return path @reader(torch.Tensor) def read_tensor(path): return torch.load(path) class TerraModule: def __terra_write__(self, path): torch.save({"state_dict": self.sta...
22.142857
82
0.664516
7973c5fd7367dec168768a9bdee72bb50d70ea54
681
py
Python
.history/award/models_20201129151550.py
Nyash-Mauro/awwards
aa8200a4d2a26a9d022f0ebda280379c1b3761c3
[ "MIT" ]
null
null
null
.history/award/models_20201129151550.py
Nyash-Mauro/awwards
aa8200a4d2a26a9d022f0ebda280379c1b3761c3
[ "MIT" ]
null
null
null
.history/award/models_20201129151550.py
Nyash-Mauro/awwards
aa8200a4d2a26a9d022f0ebda280379c1b3761c3
[ "MIT" ]
null
null
null
from django.db import models import datetime as dt from django.contrib.auth.models import User from tinymce.models import HTMLField from django.db.models.signals import post_save from django.dispatch import receiver from cloudinary.models import CloudinaryField class Profile(models.Model): First_Name = models.Ch...
42.5625
143
0.781204
7973c6803da79b11843302ba2b6bf046ee80cb43
282
py
Python
PCA.py
Globe-Eater/Cali_Housing
c4340ce86f13c8c4f50423c574d5ab857869400d
[ "MIT" ]
null
null
null
PCA.py
Globe-Eater/Cali_Housing
c4340ce86f13c8c4f50423c574d5ab857869400d
[ "MIT" ]
null
null
null
PCA.py
Globe-Eater/Cali_Housing
c4340ce86f13c8c4f50423c574d5ab857869400d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Apr 16 13:32:05 2020 @author: kellenbullock """ import pandas as pd from statsmodels.multivariate.pca import PCA df = pd.read_excel('Final.xlsx') df = df.drop(columns=['Unnamed: 0']) c = PCA(df, standardize=False)
20.142857
44
0.691489
7973c6b9166481543e7f33590a445c1b69649270
3,908
py
Python
benchmarks/benchmark.py
Pseudomanifold/POT
5861209f27fe8e022eca2ed2c8d0bb1da4a1146b
[ "MIT" ]
830
2020-04-21T03:45:02.000Z
2022-03-31T18:27:08.000Z
benchmarks/benchmark.py
Pseudomanifold/POT
5861209f27fe8e022eca2ed2c8d0bb1da4a1146b
[ "MIT" ]
192
2020-04-17T10:15:37.000Z
2022-03-24T10:00:57.000Z
benchmarks/benchmark.py
Pseudomanifold/POT
5861209f27fe8e022eca2ed2c8d0bb1da4a1146b
[ "MIT" ]
402
2020-04-17T18:24:00.000Z
2022-03-29T18:26:33.000Z
# /usr/bin/env python3 # -*- coding: utf-8 -*- from ot.backend import get_backend_list, jax, tf import gc def setup_backends(): if jax: from jax.config import config config.update("jax_enable_x64", True) if tf: from tensorflow.python.ops.numpy_ops import np_config np_config.e...
36.867925
92
0.582139
7973c6f0aa938b9358a2418ce42728385fbb1019
1,243
py
Python
server/urls.py
IamEinstein/django-bank
16f98755787e18ecd9dee6783b0af26ca200446f
[ "MIT" ]
1
2021-04-22T17:20:44.000Z
2021-04-22T17:20:44.000Z
server/urls.py
IamEinstein/django-bank
16f98755787e18ecd9dee6783b0af26ca200446f
[ "MIT" ]
27
2021-06-10T20:43:59.000Z
2022-03-28T11:41:30.000Z
server/urls.py
IamEinstein/djank
16f98755787e18ecd9dee6783b0af26ca200446f
[ "MIT" ]
null
null
null
from django.urls import path from .views import * app_name = "main" urlpatterns = [ path('index', IndexView.as_view(), name="index"), path('login', LoginView.as_view(), name="login"), path('signed_up', SignedUpView.as_view(), name="signed_up"), path('logged_in', LoggedInView.as_view(), name="logged_in"...
46.037037
78
0.679002
7973c6fd9ff9e0909a88f78ff93a9ea354a897eb
1,095
py
Python
borrow/migrations/0001_initial.py
Time-xg/bookmanager_django
3d8f2e9b38570e0e4ea5498f6ab4fe16b7d2f969
[ "MIT" ]
null
null
null
borrow/migrations/0001_initial.py
Time-xg/bookmanager_django
3d8f2e9b38570e0e4ea5498f6ab4fe16b7d2f969
[ "MIT" ]
null
null
null
borrow/migrations/0001_initial.py
Time-xg/bookmanager_django
3d8f2e9b38570e0e4ea5498f6ab4fe16b7d2f969
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2021-01-02 21:32 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('book', '0001_initial'), ('user', '0001_initial'), ] operations = [ migrations.C...
35.322581
133
0.592694
7973c77177a2194c8fc8ba4344cddde829aa3274
1,488
py
Python
stacks/stack_test.py
jrandson/data-structures
851af09027f9086f81e1d60dbd6c795b50b4a654
[ "BSD-2-Clause" ]
null
null
null
stacks/stack_test.py
jrandson/data-structures
851af09027f9086f81e1d60dbd6c795b50b4a654
[ "BSD-2-Clause" ]
null
null
null
stacks/stack_test.py
jrandson/data-structures
851af09027f9086f81e1d60dbd6c795b50b4a654
[ "BSD-2-Clause" ]
null
null
null
''' assert: base assert allowing you to write your own assertions assertEqual(a, b): check a and b are equal assertNotEqual(a, b): check a and b are not equal assertIn(a, b): check that a is in the item b assertNotIn(a, b): check that a is not in the item b assertFalse(a): check that the value of a is False assertTrue...
23.25
61
0.702285
7973c8af48ad90f1e9ca026a769751ccb3e48093
8,313
py
Python
part_seg/evaluate.py
warlock8hz/pointnet2
7e456909379c6d19946bf49b3f54346ec96e0fe5
[ "MIT" ]
null
null
null
part_seg/evaluate.py
warlock8hz/pointnet2
7e456909379c6d19946bf49b3f54346ec96e0fe5
[ "MIT" ]
null
null
null
part_seg/evaluate.py
warlock8hz/pointnet2
7e456909379c6d19946bf49b3f54346ec96e0fe5
[ "MIT" ]
null
null
null
import argparse import math from datetime import datetime import h5py import numpy as np #import tensorflow as tf import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import socket import importlib import os import sys BASE_DIR = os.path.dirname(os.path.abspath(__file__)) ROOT_DIR = os.path.dirname(BASE_DIR) sys....
41.773869
127
0.642006
7973c8d3e5c6e7a540a1f7f89e45b85dfdaf14ed
104
py
Python
extern/python-tcp-example/proto/__init__.py
narodnik/nym-mixnet
fc13c6e6f2f052ba0ffe0b1e74c988a91d176335
[ "Apache-2.0" ]
1
2021-11-04T21:37:55.000Z
2021-11-04T21:37:55.000Z
extern/python-tcp-example/proto/__init__.py
narodnik/nym-mixnet
fc13c6e6f2f052ba0ffe0b1e74c988a91d176335
[ "Apache-2.0" ]
null
null
null
extern/python-tcp-example/proto/__init__.py
narodnik/nym-mixnet
fc13c6e6f2f052ba0ffe0b1e74c988a91d176335
[ "Apache-2.0" ]
null
null
null
import proto.structs_pb2 as config import proto.types_pb2 as types import proto.message_pb2 as message
20.8
35
0.846154
7973ca2bef43ae10e4a2440da1c00190d02cf308
519
py
Python
datasets/dataset_utils.py
Grinjero/HandGestureClassification
141a30357e49f028f5808c22cd9f03a1361b1206
[ "MIT" ]
null
null
null
datasets/dataset_utils.py
Grinjero/HandGestureClassification
141a30357e49f028f5808c22cd9f03a1361b1206
[ "MIT" ]
null
null
null
datasets/dataset_utils.py
Grinjero/HandGestureClassification
141a30357e49f028f5808c22cd9f03a1361b1206
[ "MIT" ]
null
null
null
import os def get_class_labels(categories_path): assert os.path.exists(categories_path) id_class_label_map = dict() ids = [] labels = [] with open(categories_path, 'r') as fd: for row in fd: row = row.rstrip() idx, label = row.split(' ') idx = int(idx) ...
24.714286
55
0.574181
7973ca5b0da019fae76ae45c999a7e229fb73f2d
895
py
Python
python/tvm/tir/usmp/transform/_ffi_api.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
4,640
2017-08-17T19:22:15.000Z
2019-11-04T15:29:46.000Z
python/tvm/tir/usmp/transform/_ffi_api.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
3,022
2020-11-24T14:02:31.000Z
2022-03-31T23:55:31.000Z
python/tvm/tir/usmp/transform/_ffi_api.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
1,352
2017-08-17T19:30:38.000Z
2019-11-04T16:09:29.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
40.681818
62
0.768715
7973cb0a09cb401a01a173f07d0aff863e3ab09f
3,994
py
Python
snuba/request/schema.py
Appva/snuba
988a4312fc9c107bc735fb2295e269b01ef2dea4
[ "Apache-2.0" ]
null
null
null
snuba/request/schema.py
Appva/snuba
988a4312fc9c107bc735fb2295e269b01ef2dea4
[ "Apache-2.0" ]
null
null
null
snuba/request/schema.py
Appva/snuba
988a4312fc9c107bc735fb2295e269b01ef2dea4
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import itertools from typing import Any, Mapping from snuba.datasets.schemas import RelationalSource from snuba.query.extensions import QueryExtension from snuba.query.query import Query from snuba.query.schema import GENERIC_QUERY_SCHEMA, SETTINGS_SCHEMA from snuba.request import ...
43.89011
127
0.676515
7973cbfaf415e3aa84a17ebb9e768979370c219a
1,753
py
Python
app/core/migrations/0003_auto_20210418_2049.py
EugenDaniel/recipe-app-api
7eea36ab76437ab58bdf06604612fd4abb95d2df
[ "MIT" ]
null
null
null
app/core/migrations/0003_auto_20210418_2049.py
EugenDaniel/recipe-app-api
7eea36ab76437ab58bdf06604612fd4abb95d2df
[ "MIT" ]
null
null
null
app/core/migrations/0003_auto_20210418_2049.py
EugenDaniel/recipe-app-api
7eea36ab76437ab58bdf06604612fd4abb95d2df
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2021-04-18 20:49 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0002_auto_20210329_1352'), ] operations = [ migrations.CreateMode...
31.303571
68
0.520821
7973cc3bdaf13e8eb145aa26a3c0b8b68c2e41e4
167
py
Python
portaljob/portaljob_activity/apps.py
mixdevdev/project_portal
ee639590a9e5bcf3bd6b058b5ba72c242f2ba667
[ "MIT" ]
null
null
null
portaljob/portaljob_activity/apps.py
mixdevdev/project_portal
ee639590a9e5bcf3bd6b058b5ba72c242f2ba667
[ "MIT" ]
null
null
null
portaljob/portaljob_activity/apps.py
mixdevdev/project_portal
ee639590a9e5bcf3bd6b058b5ba72c242f2ba667
[ "MIT" ]
null
null
null
from django.apps import AppConfig class PortaljobActivityConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'portaljob_activity'
23.857143
56
0.790419
7973cd33a2edabdc5501a86da0d4cc03498f015e
8,069
py
Python
Lidar code/intensity_lidar_0.2.py
tstaffas/Lidar
cd381826b6b45dd2a36aecb35617196b78ab32e8
[ "MIT" ]
null
null
null
Lidar code/intensity_lidar_0.2.py
tstaffas/Lidar
cd381826b6b45dd2a36aecb35617196b78ab32e8
[ "MIT" ]
null
null
null
Lidar code/intensity_lidar_0.2.py
tstaffas/Lidar
cd381826b6b45dd2a36aecb35617196b78ab32e8
[ "MIT" ]
null
null
null
#------IMPORTS----- #Packages for ETA backend import json import etabackend.eta #Available at: https://github.com/timetag/ETA, https://eta.readthedocs.io/en/latest/ import etabackend.tk as etatk #Packages used for analysis import numpy as np from pathlib import Path import os import time as t import LIDAR...
44.827778
216
0.632792
7973cd4a5e01a89901199d54703f38b45ed275a2
1,630
py
Python
discord/__init__.py
indrajithbandara/discord.py
c6719fbf2eb99f84f4a5a107fc71e4427ac09882
[ "MIT" ]
1
2019-04-15T13:18:56.000Z
2019-04-15T13:18:56.000Z
discord/__init__.py
indrajithbandara/discord.py
c6719fbf2eb99f84f4a5a107fc71e4427ac09882
[ "MIT" ]
null
null
null
discord/__init__.py
indrajithbandara/discord.py
c6719fbf2eb99f84f4a5a107fc71e4427ac09882
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Discord API Wrapper ~~~~~~~~~~~~~~~~~~~ A basic wrapper for the Discord API. :copyright: (c) 2015-2017 Rapptz :license: MIT, see LICENSE for more details. """ __title__ = 'discord' __author__ = 'Rapptz' __license__ = 'MIT' __copyright__ = 'Copyright 2015-2017 Rapptz' __version__ = '1.0....
26.290323
85
0.763804
7973cf4c88a65d6705826cb767979b36ba38041c
22,584
py
Python
strutil/test/test_strutil.py
baishancloud/dkit
63f354886f8dd5059d557719be12c963952aa3d0
[ "MIT" ]
13
2016-12-16T09:23:09.000Z
2018-03-10T08:04:00.000Z
strutil/test/test_strutil.py
npc9001/pykit
63f354886f8dd5059d557719be12c963952aa3d0
[ "MIT" ]
74
2017-03-23T11:36:22.000Z
2018-04-02T06:19:09.000Z
strutil/test/test_strutil.py
drmingdrmer/pykit
e25a71146e81aaf79625cf8d4f4c439ccd515b82
[ "MIT" ]
5
2016-12-27T07:30:47.000Z
2018-03-10T07:06:21.000Z
#!/usr/bin/env python2 # coding: utf-8 import os import unittest from pykit import proc from pykit import strutil from pykit import ututil dd = ututil.dd this_base = os.path.dirname(__file__) print this_base def dd_lines(lines): dd() for l in lines: dd(l) class TestStrutil(unittest.TestCase): ...
34.114804
129
0.306677
7973cfb85821cd189ecc3b2fe242504dd8959cba
6,524
py
Python
pwm_calibrate/__init__.py
sbma44/pwm_calibrate
d4955afd7ad0fb1783b5affce88e207988864051
[ "MIT" ]
1
2016-04-15T02:18:29.000Z
2016-04-15T02:18:29.000Z
pwm_calibrate/__init__.py
sbma44/pwm_calibrate
d4955afd7ad0fb1783b5affce88e207988864051
[ "MIT" ]
null
null
null
pwm_calibrate/__init__.py
sbma44/pwm_calibrate
d4955afd7ad0fb1783b5affce88e207988864051
[ "MIT" ]
null
null
null
import time import json import curses import datetime SOFTPWM_SUPPORT = True try: import wiringpi2 as wiringpi except: SOFTPWM_SUPPORT = False import wiringpi as wiringpi PWM_MAX = 1023 SOFT_PWM_MAX = 100 DEFAULT_PIN = 1 WIRINGPI_PWM_PIN = 1 # only pin 1 can handle hardware PWM DEFAULT_CALIBRA...
36.244444
157
0.590282