hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
938b09909690f16578fa93af8255e364b66a70bd
764
py
Python
subgroups/base_gamma.py
kalinkinisaac/modular
301d26ad222a5ef3278aaf251908e0a8537bb58f
[ "MIT" ]
null
null
null
subgroups/base_gamma.py
kalinkinisaac/modular
301d26ad222a5ef3278aaf251908e0a8537bb58f
[ "MIT" ]
null
null
null
subgroups/base_gamma.py
kalinkinisaac/modular
301d26ad222a5ef3278aaf251908e0a8537bb58f
[ "MIT" ]
null
null
null
# Base class for classical congruence subgroups of modular group class BaseGamma(object): def __init__(self, N=2, reduced=None): self.N = N if reduced: self.non_cached_reduced = reduced self.reprs = [] self.cache = dict() def element_hash(self, mat): retur...
25.466667
74
0.626963
5808adfe9713ba0160cee1900bddb176d66e91a4
5,873
py
Python
tests/unit/fake_data_root/openstack/var/lib/juju/agents/unit-ceph-osd-0/charm/unit_tests/test_actions_osd_out_in.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
6
2021-10-01T19:46:14.000Z
2022-03-31T17:05:08.000Z
tests/unit/fake_data_root/openstack/var/lib/juju/agents/unit-ceph-osd-0/charm/unit_tests/test_actions_osd_out_in.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
111
2021-10-01T18:18:17.000Z
2022-03-29T12:23:20.000Z
tests/unit/fake_data_root/openstack/var/lib/juju/agents/unit-ceph-osd-0/charm/unit_tests/test_actions_osd_out_in.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
10
2021-09-29T14:47:54.000Z
2022-03-18T14:52:16.000Z
# Copyright 2016 Canonical Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.167665
74
0.619785
516d6ac5ec7260034a9d252c37c7f8da1259f680
3,366
py
Python
setup/project-settings.py
dlowe-net/dawdlerpg
32c50f50c9409397d03470bdad28970e0deeedf1
[ "Apache-2.0" ]
1
2021-08-24T16:56:38.000Z
2021-08-24T16:56:38.000Z
setup/project-settings.py
dlowe-net/dawdlerpg
32c50f50c9409397d03470bdad28970e0deeedf1
[ "Apache-2.0" ]
2
2021-08-24T16:52:52.000Z
2021-08-30T19:39:17.000Z
setup/project-settings.py
dlowe-net/dawdlerpg
32c50f50c9409397d03470bdad28970e0deeedf1
[ "Apache-2.0" ]
1
2021-08-30T19:15:17.000Z
2021-08-30T19:15:17.000Z
""" Django settings for dawdle project. Generated by 'django-admin startproject' using Django 2.2.12. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os #...
25.694656
91
0.691622
e691bad471bdb7d1493ae70c2b8708727c06f833
19,851
py
Python
src/django_bpp/settings/base.py
iplweb/bpp
f027415cc3faf1ca79082bf7bacd4be35b1a6fdf
[ "BSD-3-Clause" ]
null
null
null
src/django_bpp/settings/base.py
iplweb/bpp
f027415cc3faf1ca79082bf7bacd4be35b1a6fdf
[ "BSD-3-Clause" ]
41
2019-11-07T00:07:02.000Z
2022-02-27T22:09:39.000Z
src/django_bpp/settings/base.py
iplweb/bpp
f027415cc3faf1ca79082bf7bacd4be35b1a6fdf
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- import os import random import string import sys from datetime import timedelta import sentry_sdk from django.core.exceptions import DisallowedHost, ImproperlyConfigured from sentry_sdk.integrations.django import DjangoIntegration from bpp.util import slugify_function from django_bpp.versi...
28.480631
91
0.672359
74445196715e0ce43fa93ed88682db21e5046403
331
py
Python
bootstrap.py
ginolatorilla/wordlesolver
b2585e382965de482fe56c111e1fcded9328cd88
[ "MIT" ]
null
null
null
bootstrap.py
ginolatorilla/wordlesolver
b2585e382965de482fe56c111e1fcded9328cd88
[ "MIT" ]
null
null
null
bootstrap.py
ginolatorilla/wordlesolver
b2585e382965de482fe56c111e1fcded9328cd88
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Copyright (c) 2022 Gino Latorilla. All rights reserved. """ import subprocess import os import shlex env = os.environ.copy() env['PIPENV_VENV_IN_PROJECT'] = '1' subprocess.run(shlex.split('pipenv --python 3 --three'), env=env) subprocess.run(shlex.split('pipenv install --editable . --dev')...
22.066667
73
0.716012
17aca73190006c3c94dfdf3653cbe36067daf513
592
py
Python
plotly/validators/carpet/baxis/_showticksuffix.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/carpet/baxis/_showticksuffix.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/carpet/baxis/_showticksuffix.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class ShowticksuffixValidator( _plotly_utils.basevalidators.EnumeratedValidator ): def __init__( self, plotly_name='showticksuffix', parent_name='carpet.baxis', **kwargs ): super(ShowticksuffixValidator, self).__init__( ...
26.909091
74
0.599662
70ae2d2dae23fde5285811df9c53bd60a7db7987
4,890
py
Python
python/http_client/v1/polyaxon_sdk/models/v1_artifacts_mount.py
polyaxon/client
1beaf78b0aa9fabc37b42a253d5e29c0623d8b16
[ "Apache-2.0" ]
null
null
null
python/http_client/v1/polyaxon_sdk/models/v1_artifacts_mount.py
polyaxon/client
1beaf78b0aa9fabc37b42a253d5e29c0623d8b16
[ "Apache-2.0" ]
null
null
null
python/http_client/v1/polyaxon_sdk/models/v1_artifacts_mount.py
polyaxon/client
1beaf78b0aa9fabc37b42a253d5e29c0623d8b16
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2022 Polyaxon, 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 ...
27.942857
91
0.591002
92702bd7ca4b2a2e5c2069ed43a519e8f3231898
2,703
py
Python
src/cdstarcat/resources.py
clld/cdstarcat
3423254f30a569c9f80e46091b2c2a6ec6b20b56
[ "Apache-2.0" ]
null
null
null
src/cdstarcat/resources.py
clld/cdstarcat
3423254f30a569c9f80e46091b2c2a6ec6b20b56
[ "Apache-2.0" ]
6
2016-11-02T07:30:18.000Z
2020-05-12T11:20:33.000Z
src/cdstarcat/resources.py
clld/cdstarcat
3423254f30a569c9f80e46091b2c2a6ec6b20b56
[ "Apache-2.0" ]
1
2018-08-26T08:47:38.000Z
2018-08-26T08:47:38.000Z
import datetime # We use a timestamp format which is compatible with the syntax of CDSTAR bitstream names: TIMESTAMP_FORMAT = '%Y%m%dT%H%M%SZ' class RollingBlob(object): """ RollingBlobs are big(gish), versioned files of which only the last couple of versions need to be available (such as log files or da...
34.653846
98
0.586385
e1dd39dc13786e1b5cb9e9eb58f4481b7e9b8730
9,139
py
Python
tests/packagedcode/data/pypi/setup.py-versions/cffi-1.14.0/setup.py
s4-2/scancode-toolkit
8931b42e2630b94d0cabc834dfb3c16f01f82321
[ "Apache-2.0", "CC-BY-4.0" ]
1,511
2015-07-01T15:29:03.000Z
2022-03-30T13:40:05.000Z
tests/packagedcode/data/pypi/setup.py-versions/cffi-1.14.0/setup.py
s4-2/scancode-toolkit
8931b42e2630b94d0cabc834dfb3c16f01f82321
[ "Apache-2.0", "CC-BY-4.0" ]
2,695
2015-07-01T16:01:35.000Z
2022-03-31T19:17:44.000Z
tests/packagedcode/data/pypi/setup.py-versions/cffi-1.14.0/setup.py
s4-2/scancode-toolkit
8931b42e2630b94d0cabc834dfb3c16f01f82321
[ "Apache-2.0", "CC-BY-4.0" ]
540
2015-07-01T15:08:19.000Z
2022-03-31T12:13:11.000Z
import sys, os import subprocess import errno # on Windows we give up and always import setuptools early to fix things for us if sys.platform == "win32": import setuptools sources = ['c/_cffi_backend.c'] libraries = ['ffi'] include_dirs = ['/usr/include/ffi', '/usr/include/libffi'] # may be ch...
36.265873
80
0.615275
1101a5bff535580e69a419d286e12ed2ee3ee730
11,017
py
Python
robloxapi/group.py
Boegie19/robloxapi
67a9505342df926286e3946f3ee155999c90f875
[ "MIT" ]
null
null
null
robloxapi/group.py
Boegie19/robloxapi
67a9505342df926286e3946f3ee155999c90f875
[ "MIT" ]
null
null
null
robloxapi/group.py
Boegie19/robloxapi
67a9505342df926286e3946f3ee155999c90f875
[ "MIT" ]
null
null
null
import json import logging import re import asyncio from typing import List, Tuple from bs4 import BeautifulSoup from .utils.errors import RoleError, NotFound from .utils.classes import Role, Shout, WallPost, Action from .joinrequest import JoinRequest from .groupmember import GroupMember from .user import User from .a...
40.95539
205
0.57974
ce9ab38fb0ae43ac43c49d0ce4c782054b59c174
8,331
py
Python
alfworld/gen/scripts/augment_trajectories.py
roy860328/VSGM
3ec19f9cf1401cecf45527687936b8fe4167f672
[ "MIT" ]
6
2021-05-22T15:33:42.000Z
2022-01-12T03:34:39.000Z
alfworld/gen/scripts/augment_trajectories.py
roy860328/VSGM
3ec19f9cf1401cecf45527687936b8fe4167f672
[ "MIT" ]
1
2021-06-19T10:04:13.000Z
2021-06-20T03:37:23.000Z
alfworld/gen/scripts/augment_trajectories.py
roy860328/VSGM
3ec19f9cf1401cecf45527687936b8fe4167f672
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.path.join(os.environ['ALFWORLD_ROOT'])) sys.path.append(os.path.join(os.environ['ALFWORLD_ROOT'], 'gen')) import json import glob import os import constants import cv2 import shutil import numpy as np import argparse import threading import time import copy import random from ut...
29.647687
125
0.663306
5fc0d8c4fd600fb8061c480d395f4799c36c212e
271
py
Python
onlineassessmentsystem/contest/urls.py
nevilparmar11/SDP_Online_Assessment_System
012a1ec7dfca2973a5e03b0f970394cfa674b61e
[ "MIT" ]
2
2021-05-22T15:44:19.000Z
2021-05-22T17:59:58.000Z
onlineassessmentsystem/contest/urls.py
jwalit21/SDP_Online_Assessment_System
a778a0e0ae264fe74037a5f0b210d205ebc18d98
[ "MIT" ]
7
2021-01-18T06:06:38.000Z
2021-03-03T15:09:17.000Z
onlineassessmentsystem/contest/urls.py
jwalit21/SDP_Online_Assessment_System
a778a0e0ae264fe74037a5f0b210d205ebc18d98
[ "MIT" ]
2
2021-03-05T12:28:28.000Z
2021-05-24T16:10:07.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.list), path('create/', views.create), path('edit/', views.edit), path('delete/', views.delete), path('view/', views.view), path('leaderboard/', views.leaderboard), ]
22.583333
44
0.627306
c03a2a7ac704287649e2d627980a13ed43c1ad21
1,433
py
Python
astropy/io/misc/asdf/tags/fits/tests/test_fits.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
1
2019-03-11T12:26:49.000Z
2019-03-11T12:26:49.000Z
astropy/io/misc/asdf/tags/fits/tests/test_fits.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
1
2019-10-09T18:54:27.000Z
2019-10-09T18:54:27.000Z
astropy/io/misc/asdf/tags/fits/tests/test_fits.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
1
2020-02-18T04:10:00.000Z
2020-02-18T04:10:00.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- import pytest asdf = pytest.importorskip('asdf') import os import numpy as np from astropy.io import fits from asdf.tests import helpers from astropy.io.misc.asdf.tags.tests.helpers import run_schema_example_test def test_c...
25.140351
89
0.665736
a307e159e492d053c353eaf0ada7af359eeea4e2
1,011
py
Python
pre_data/prepare_list.py
ZHUXUHAN/reid-baseline
43e8734be52a90d8131af8c4b43536ba6911bdaa
[ "MIT" ]
2
2019-11-30T08:11:22.000Z
2019-12-11T14:35:01.000Z
pre_data/prepare_list.py
ZHUXUHAN/reid-baseline
43e8734be52a90d8131af8c4b43536ba6911bdaa
[ "MIT" ]
1
2020-01-09T03:48:26.000Z
2020-03-07T01:22:37.000Z
pre_data/prepare_list.py
ZHUXUHAN/reid-baseline
43e8734be52a90d8131af8c4b43536ba6911bdaa
[ "MIT" ]
1
2019-11-30T09:24:17.000Z
2019-11-30T09:24:17.000Z
with open("/home/zxh/train_list.txt", "r+") as f: lines = f.readlines() label_image = {} for line in lines: name, label = line.split(" ") label = label[:-1] name = name.split('/')[1].split('.')[0] # print(name," ",label) if label in label_image.keys(): label_image[label].append(name) ...
24.071429
49
0.598417
dccc7dc8b4dae6b8483a9e4f378d0dda296b8485
939
py
Python
cages/.shared/config_resource_pmnc.py
targeted/pythomnic3k
c59f8c11302c0a568f45ec626ec6a0065527aa79
[ "BSD-3-Clause" ]
null
null
null
cages/.shared/config_resource_pmnc.py
targeted/pythomnic3k
c59f8c11302c0a568f45ec626ec6a0065527aa79
[ "BSD-3-Clause" ]
7
2019-06-06T15:47:56.000Z
2019-06-15T18:09:30.000Z
cages/.shared/config_resource_pmnc.py
targeted/pythomnic3k
c59f8c11302c0a568f45ec626ec6a0065527aa79
[ "BSD-3-Clause" ]
null
null
null
# configuration file for resource "pmnc", which is responsible # for initiating retriable calls # # there is really just one resource of protocol "pmnc" per cage, # no need to ever configure another or to change this one, therefore # this file is pretty much static and need not to be copied to # each cage # # note that...
29.34375
76
0.71246
23db52a614d3e1fee16c0ea0b1fe95bc72daa2d2
13
py
Python
projects/funcy/test.py
quinn-dougherty/python-on-nix
910d3f6554acd4a4ef0425ebccd31104dccb283c
[ "Unlicense" ]
25
2021-10-30T19:54:59.000Z
2022-03-29T06:11:02.000Z
projects/funcy/test.py
quinn-dougherty/python-on-nix
910d3f6554acd4a4ef0425ebccd31104dccb283c
[ "Unlicense" ]
21
2021-10-19T01:09:38.000Z
2022-03-24T16:08:53.000Z
projects/funcy/test.py
quinn-dougherty/python-on-nix
910d3f6554acd4a4ef0425ebccd31104dccb283c
[ "Unlicense" ]
3
2022-01-25T20:25:13.000Z
2022-03-08T02:58:50.000Z
import funcy
6.5
12
0.846154
b4b97129c8213c509b9ff5a5c45e0f328d313cb3
1,900
py
Python
run/test_server_burst.py
jarryliu/queue-sim
b21c39ab1a73b57ca4b1e2045ace0878afde3ee5
[ "MIT" ]
null
null
null
run/test_server_burst.py
jarryliu/queue-sim
b21c39ab1a73b57ca4b1e2045ace0878afde3ee5
[ "MIT" ]
null
null
null
run/test_server_burst.py
jarryliu/queue-sim
b21c39ab1a73b57ca4b1e2045ace0878afde3ee5
[ "MIT" ]
null
null
null
#!/usr/bin/python import os, sys import subprocess, shlex from multiprocessing import Pool import numpy as np numTest = 1 duration = 1000 appDir = "../app/" mu = 2000.0 distrNameA = "bstexp10" distrNameB = "cst" #testSet = ["onebucket", "onebucket_schedule", "twobuckets"] testSet = ["servers_test"] odirName = "./" ...
32.20339
164
0.564737
8e310be711365d45af259b06f91d0fa2c3694fc5
8,629
py
Python
learner/gnn_dagger.py
shanek16/GNN-controller
31955052113eeac07dac84213fcc1bb26ec8a981
[ "MIT" ]
null
null
null
learner/gnn_dagger.py
shanek16/GNN-controller
31955052113eeac07dac84213fcc1bb26ec8a981
[ "MIT" ]
null
null
null
learner/gnn_dagger.py
shanek16/GNN-controller
31955052113eeac07dac84213fcc1bb26ec8a981
[ "MIT" ]
null
null
null
import numpy as np import os import torch import torch.nn.functional as F from torch.optim import Adam from torch.autograd import Variable from learner.state_with_delay import MultiAgentStateWithDelay from learner.replay_buffer import ReplayBuffer from learner.replay_buffer import Transition from learner.actor import...
35.364754
109
0.597056
1846126327fd9d584c10e976cc4363ae5673cf62
3,553
py
Python
model/predict_from_folder.py
colombod/image-tools
40f615307ed95b07de09e5ceb101a5e3d545222d
[ "MIT" ]
null
null
null
model/predict_from_folder.py
colombod/image-tools
40f615307ed95b07de09e5ceb101a5e3d545222d
[ "MIT" ]
null
null
null
model/predict_from_folder.py
colombod/image-tools
40f615307ed95b07de09e5ceb101a5e3d545222d
[ "MIT" ]
null
null
null
""" Given a folder of images and a Tensorflow 1.15 SavedModel file, run image classification on the images and move them into a subdirectory structure where their directory is the predicted label name. """ import argparse import os import shutil from tqdm import tqdm from lobe import ImageModel from concurrent.futures ...
37.010417
134
0.733183
0012f6c897f4324c9395399d9faa95ffd24adcc1
28,576
py
Python
pyVHR/pyVHR/signals/video.py
chiccheung/PRD_rPPG_method_3DCNN
c2da5c523dc960644b444c14b1417a8ec86eba25
[ "MIT" ]
null
null
null
pyVHR/pyVHR/signals/video.py
chiccheung/PRD_rPPG_method_3DCNN
c2da5c523dc960644b444c14b1417a8ec86eba25
[ "MIT" ]
null
null
null
pyVHR/pyVHR/signals/video.py
chiccheung/PRD_rPPG_method_3DCNN
c2da5c523dc960644b444c14b1417a8ec86eba25
[ "MIT" ]
null
null
null
import os import dlib, skvideo import skvideo.io import numpy as np import cv2 import re import warnings import matplotlib.pyplot as plt from matplotlib import patches from .pyramid import * from ..utils import printutils from ..utils.SkinDetect import SkinDetect class Video: """ Basic class for extracting ROI...
40.881259
143
0.490761
f476d5289e65a09cbf63e63bec71b8bc3449da57
450
py
Python
grr/lib/rdfvalues/config.py
Onager/grr
646196bbfb332e4cb546b6d0fe1c09b57c675f7d
[ "Apache-2.0" ]
null
null
null
grr/lib/rdfvalues/config.py
Onager/grr
646196bbfb332e4cb546b6d0fe1c09b57c675f7d
[ "Apache-2.0" ]
1
2018-05-08T21:15:51.000Z
2018-05-08T21:15:51.000Z
grr/lib/rdfvalues/config.py
Onager/grr
646196bbfb332e4cb546b6d0fe1c09b57c675f7d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Implementations of RDFValues used in GRR config options definitions.""" from grr.lib.rdfvalues import structs from grr_response_proto import config_pb2 class AdminUIClientWarningRule(structs.RDFProtoStruct): protobuf = config_pb2.AdminUIClientWarningRule class AdminUIClientWarningsConfig...
30
74
0.84
8616254459b07e43efc7b7d5d8b76b7ad8dbb1d0
3,240
py
Python
chan/core/models.py
grotvignelli/shitchan
1c0c075a17222e4c888a96b8ef15a74b6b428082
[ "MIT" ]
null
null
null
chan/core/models.py
grotvignelli/shitchan
1c0c075a17222e4c888a96b8ef15a74b6b428082
[ "MIT" ]
null
null
null
chan/core/models.py
grotvignelli/shitchan
1c0c075a17222e4c888a96b8ef15a74b6b428082
[ "MIT" ]
null
null
null
import uuid import os from django.db import models from django.contrib.auth.models import ( AbstractBaseUser, PermissionsMixin, BaseUserManager ) from django.conf import settings def avatar_file_path(instance, filename): """Generating a file path for avatar image""" ext = filename.split('.')[-1] ...
28.672566
74
0.675
587da72134b043896ca2e8ccd8e2b002eafb02ed
21,732
py
Python
gcpdiag/queries/network.py
faripple/gcpdiag
b6c4189e79f5eec55326ec8a1bf2bd3b8de37b53
[ "Apache-2.0" ]
null
null
null
gcpdiag/queries/network.py
faripple/gcpdiag
b6c4189e79f5eec55326ec8a1bf2bd3b8de37b53
[ "Apache-2.0" ]
null
null
null
gcpdiag/queries/network.py
faripple/gcpdiag
b6c4189e79f5eec55326ec8a1bf2bd3b8de37b53
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.11617
100
0.640714
c20294be15f06b9da03ef494874d8d6e5ff310e6
5,281
py
Python
gamelab/experiment/basic_experiment.py
messiest/gamelab
ed366f62f51c29480a76d55cf248ef4bb0681d57
[ "BSD-3-Clause" ]
null
null
null
gamelab/experiment/basic_experiment.py
messiest/gamelab
ed366f62f51c29480a76d55cf248ef4bb0681d57
[ "BSD-3-Clause" ]
null
null
null
gamelab/experiment/basic_experiment.py
messiest/gamelab
ed366f62f51c29480a76d55cf248ef4bb0681d57
[ "BSD-3-Clause" ]
null
null
null
import os import sys import datetime import logging from logging import FileHandler import yaml from uuid import * import mTree.base.response as response from mTree.base.user import User from mTree.base.recorder import Recorder class BasicExperiment: def __init__(self, debug=False): self.debug = debug ...
31.434524
113
0.627533
3fb84309727cab33fdfeace20d4ed55c5cc7f0d4
1,105
py
Python
condition_config.py
MONICA-Project/GOST-tools
08f0b5bc47e5ab683c6dffe90e8cfdff4305eab4
[ "BSD-2-Clause" ]
null
null
null
condition_config.py
MONICA-Project/GOST-tools
08f0b5bc47e5ab683c6dffe90e8cfdff4305eab4
[ "BSD-2-Clause" ]
null
null
null
condition_config.py
MONICA-Project/GOST-tools
08f0b5bc47e5ab683c6dffe90e8cfdff4305eab4
[ "BSD-2-Clause" ]
null
null
null
import checking_functions as check sensorSpecs = {"name": check.sensor_is_already_present, "description": check.field_is_void} thingSpecs = {"name": check.thing_is_already_present} observedPropertySpecs = {"name": check.observed_property_is_already_present} dataStreamSpecs = {"name": check.data_stream_is_already_prese...
36.833333
91
0.733032
5b411d708579b7ffce2db942dae62cf988720fca
12,776
py
Python
contrib/gitian-build.py
patrykwnosuch/machinecoin-core
b6783c857f43f7f077de594d1e03d156f5295b9c
[ "MIT" ]
1
2019-05-27T11:12:53.000Z
2019-05-27T11:12:53.000Z
contrib/gitian-build.py
patrykwnosuch/machinecoin-core
b6783c857f43f7f077de594d1e03d156f5295b9c
[ "MIT" ]
null
null
null
contrib/gitian-build.py
patrykwnosuch/machinecoin-core
b6783c857f43f7f077de594d1e03d156f5295b9c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import os import subprocess import sys def setup(): global args, workdir programs = ['ruby', 'git', 'apt-cacher-ng', 'make', 'wget'] if args.kvm: programs += ['python-vm-builder', 'qemu-kvm', 'qemu-utils'] elif args.docker: dockers = ['docker.io',...
57.809955
235
0.657013
a03f8f650dcbe012bafe9fed50f06438444dd8ae
1,041
bzl
Python
google/cloud/pubsub/google_cloud_cpp_pubsub_mocks.bzl
jhughes/google-cloud-cpp
d95630103d07845e72a13e359efc2b61c77c7c24
[ "Apache-2.0" ]
null
null
null
google/cloud/pubsub/google_cloud_cpp_pubsub_mocks.bzl
jhughes/google-cloud-cpp
d95630103d07845e72a13e359efc2b61c77c7c24
[ "Apache-2.0" ]
1
2021-02-16T14:43:40.000Z
2021-02-16T18:40:02.000Z
google/cloud/pubsub/google_cloud_cpp_pubsub_mocks.bzl
dgkh1975/google-cloud-cpp
697e5c73e75bea1bae253cd4d9cb182e26278fa3
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.896552
91
0.76561
9978caaf34ecccfe94f6d4523a55927e4a25618f
1,040
py
Python
src/utils/getPictures.py
ouyangjunfei/Voice2HandSign
8fa38330fcfe96cd0c7d2a3df1677c3b5d59572c
[ "Apache-2.0" ]
null
null
null
src/utils/getPictures.py
ouyangjunfei/Voice2HandSign
8fa38330fcfe96cd0c7d2a3df1677c3b5d59572c
[ "Apache-2.0" ]
null
null
null
src/utils/getPictures.py
ouyangjunfei/Voice2HandSign
8fa38330fcfe96cd0c7d2a3df1677c3b5d59572c
[ "Apache-2.0" ]
null
null
null
import os import sys from urllib import request import requests from bs4 import BeautifulSoup def getPicsDatas(sentence, image_path): html = requests.get('https://shouyu.51240.com/' + sentence + '__shouyus/') bsObject = BeautifulSoup(html.text, "html.parser") table = bsObject.body.find_all('table', {'widt...
34.666667
78
0.585577
12efc23e09b3a59fefeba52e5d88e6583a0e97c2
335
py
Python
automate-the-boring-stuff-learning/removingFiles.py
SchwartzKamel/python-tools
dd61117e4a9ec2cbfe7af7d015296c1f1af654ca
[ "MIT" ]
null
null
null
automate-the-boring-stuff-learning/removingFiles.py
SchwartzKamel/python-tools
dd61117e4a9ec2cbfe7af7d015296c1f1af654ca
[ "MIT" ]
null
null
null
automate-the-boring-stuff-learning/removingFiles.py
SchwartzKamel/python-tools
dd61117e4a9ec2cbfe7af7d015296c1f1af654ca
[ "MIT" ]
null
null
null
import os import shutil # delete single file from current working directory os.unlink('bacon.txt') # delete directory, must be empty directory os.rmdir('c:\\delicious') # remove directory recursively shutil.rmtree('c:\\delicious') # install the send2trash module, this sends files to trash can as opposed to deleting th...
33.5
103
0.785075
31655f77dd78877c9cebf94466aaa327e275b9cc
3,185
py
Python
assets/Adequate-Encryption-Standard/adequate_encryption_standard.py
Dunsp4rce/rgbCTF-2020
bd6412259f2b0db5dd958b1fdcd74c24f02405c9
[ "MIT" ]
11
2020-06-06T05:28:27.000Z
2022-01-09T00:42:49.000Z
assets/Adequate-Encryption-Standard/adequate_encryption_standard.py
Dunsp4rce/rgbCTF-2020
bd6412259f2b0db5dd958b1fdcd74c24f02405c9
[ "MIT" ]
1
2020-09-06T18:19:55.000Z
2020-09-06T18:19:55.000Z
assets/Adequate-Encryption-Standard/adequate_encryption_standard.py
Dunsp4rce/rgbCTF-2020
bd6412259f2b0db5dd958b1fdcd74c24f02405c9
[ "MIT" ]
6
2020-06-06T05:36:43.000Z
2021-08-11T10:17:18.000Z
from base64 import b64encode BLOCK_SIZE = 8 ROUNDS = 8 sbox = [111, 161, 71, 136, 68, 69, 31, 0, 145, 237, 169, 115, 16, 20, 22, 82, 138, 183, 232, 95, 244, 163, 64, 229, 224, 104, 231, 61, 121, 152, 97, 50, 74, 96, 247, 144, 194, 86, 186, 234, 99, 122, 46, 18, 215, 168, 173, 188, 41, 243, 219, 203, 141, 21, 171, 57,...
49
1,177
0.574882
1b5262aa871b38fd845c487e23ba5baa3705ab6a
5,742
py
Python
conf.py
cbgaindia/budget-basics
ac32fb14f18cb01927de11dae4dac965c2d7f259
[ "MIT" ]
1
2016-12-21T20:23:47.000Z
2016-12-21T20:23:47.000Z
conf.py
cbgaindia/budget-basics
ac32fb14f18cb01927de11dae4dac965c2d7f259
[ "MIT" ]
null
null
null
conf.py
cbgaindia/budget-basics
ac32fb14f18cb01927de11dae4dac965c2d7f259
[ "MIT" ]
3
2017-01-10T09:31:18.000Z
2018-04-30T13:33:53.000Z
# -*- coding: utf-8 -*- # # OpenBudgetsIndia Wiki documentation build configuration file, created by # sphinx-quickstart on Wed Dec 14 15:02:07 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerat...
29.90625
84
0.689307
1ad66ce07421d03b5b18e73fd3469737cba0f4b4
5,170
py
Python
env/Lib/site-packages/OpenGL/GL/ARB/gpu_shader_fp64.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
env/Lib/site-packages/OpenGL/GL/ARB/gpu_shader_fp64.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
env/Lib/site-packages/OpenGL/GL/ARB/gpu_shader_fp64.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''OpenGL extension ARB.gpu_shader_fp64 This module customises the behaviour of the OpenGL.raw.GL.ARB.gpu_shader_fp64 to provide a more Python-friendly API Overview (from the spec) This extension allows GLSL shaders to use double-precision floating-point data types, including vectors and matrices of doubles. D...
40.708661
77
0.803482
782dfcf373e0ed968478c48ca016e2c93f82792c
1,230
py
Python
Program/gen_mgr.py
Addision/ProtoTool
c8bfecbce23314d93340a60946e7214873ce6561
[ "MIT" ]
null
null
null
Program/gen_mgr.py
Addision/ProtoTool
c8bfecbce23314d93340a60946e7214873ce6561
[ "MIT" ]
null
null
null
Program/gen_mgr.py
Addision/ProtoTool
c8bfecbce23314d93340a60946e7214873ce6561
[ "MIT" ]
null
null
null
from gen import * from gen_csharp import * class GenMgr(object): def __init__(self): self.gen_list = [] pass def loadXmls(self, xml_dir): self.gen_list.clear() for file in os.listdir(xml_dir): xml_file = os.path.join(xml_dir, file).replace('\\', '/') if...
25.625
69
0.556098
dc066555477f0dce7be582a1fbb2fb45080a541c
10,782
py
Python
web/views/home.py
zhangyafeii/Reporting_malfunction_system
2a5cec05cabe3f484f801cc77f4654b575c1898a
[ "MIT" ]
null
null
null
web/views/home.py
zhangyafeii/Reporting_malfunction_system
2a5cec05cabe3f484f801cc77f4654b575c1898a
[ "MIT" ]
null
null
null
web/views/home.py
zhangyafeii/Reporting_malfunction_system
2a5cec05cabe3f484f801cc77f4654b575c1898a
[ "MIT" ]
null
null
null
from django.db.models import Count, F from django.http import HttpResponse, Http404, HttpResponseNotFound, JsonResponse from django.shortcuts import render from repository.models import * from django.urls import reverse from utils.pagination import Pagination import uuid from utils.xss import XSSFilter def index(requ...
43.301205
200
0.64552
86304ae621996a36e305b19f06b34c3701cbc6b4
678
py
Python
tests/conftest.py
tailhook/multidict
13d592e7260d7eb0683a57210caf9de5c930dbd5
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
tailhook/multidict
13d592e7260d7eb0683a57210caf9de5c930dbd5
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
tailhook/multidict
13d592e7260d7eb0683a57210caf9de5c930dbd5
[ "Apache-2.0" ]
null
null
null
import pickle import pytest from multidict._compat import USE_CYTHON_EXTENSIONS OPTIONAL_CYTHON = (() if USE_CYTHON_EXTENSIONS else pytest.mark.skip(reason='No Cython extensions available')) @pytest.fixture(scope='session', params=[ pytest.param('multidict._multidict', marks=OPTIONAL_CYTHON...
27.12
77
0.688791
8a0f1bda184a99d0cb285c2f6f6b1766a4510ff0
3,827
py
Python
sprinttaskauto/util.py
ftnext/pyconjp2019.sprint.theme.update
3b17b72607a56e261bfa38717e11d676adba876b
[ "MIT" ]
null
null
null
sprinttaskauto/util.py
ftnext/pyconjp2019.sprint.theme.update
3b17b72607a56e261bfa38717e11d676adba876b
[ "MIT" ]
1
2019-12-16T16:18:43.000Z
2019-12-16T16:18:43.000Z
sprinttaskauto/util.py
ftnext/pyconjp2019.sprint.theme.update
3b17b72607a56e261bfa38717e11d676adba876b
[ "MIT" ]
null
null
null
import csv from dataclasses import dataclass import sprinttaskauto.auth as a import sprinttaskauto.service as s class CustomSpreadsheet: def __init__(self, sheet_access, spreadsheet_id, sheet_id): self.sheet_access = sheet_access self.spreadsheet_id = spreadsheet_id self.sheet_id = sheet_...
32.159664
68
0.626339
92559cade132527403e6507de7b9e7aab93d5e41
4,197
py
Python
var/spack/repos/builtin/packages/tcsh/package.py
ilagunap/spack
510f869c3ae8ac2721debd29e98076212ee75852
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-11-16T02:42:57.000Z
2019-06-06T19:18:50.000Z
var/spack/repos/builtin/packages/tcsh/package.py
ilagunap/spack
510f869c3ae8ac2721debd29e98076212ee75852
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
5
2021-07-26T12:12:00.000Z
2022-03-01T12:16:03.000Z
var/spack/repos/builtin/packages/tcsh/package.py
ilagunap/spack
510f869c3ae8ac2721debd29e98076212ee75852
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Tcsh(AutotoolsPackage): """Tcsh is an enhanced but completely compatible version of csh, t...
82.294118
217
0.75959
415b2845f2088123059b71648deb44a57aa4e85b
1,307
py
Python
alipay/aop/api/response/AlipayFinancialnetAuthEcsignDataprepareCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayFinancialnetAuthEcsignDataprepareCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayFinancialnetAuthEcsignDataprepareCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayFinancialnetAuthEcsignDataprepareCreateResponse(AlipayResponse): def __init__(self): super(AlipayFinancialnetAuthEcsignDataprepareCreateResponse, self).__init__() ...
28.413043
126
0.680184
e63d62582e57465f38a76458e43c3dc0a7eb8c55
40,943
py
Python
core/domain/suggestion_registry.py
kaylahardie/oppia
e93ed02dfc7f654ef4fb62268c1a9b9d9ded30ec
[ "Apache-2.0" ]
null
null
null
core/domain/suggestion_registry.py
kaylahardie/oppia
e93ed02dfc7f654ef4fb62268c1a9b9d9ded30ec
[ "Apache-2.0" ]
null
null
null
core/domain/suggestion_registry.py
kaylahardie/oppia
e93ed02dfc7f654ef4fb62268c1a9b9d9ded30ec
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
41.524341
80
0.644945
4853966bbf21d203995cd76ae36afced375116ac
8,738
py
Python
wcpan/drive/google/util.py
legnaleurc/wcpan.drive.google
840806dca25044203443e378055f42c6e70e59f8
[ "MIT" ]
1
2017-12-26T09:53:42.000Z
2017-12-26T09:53:42.000Z
wcpan/drive/google/util.py
legnaleurc/wcpan.drive.google
840806dca25044203443e378055f42c6e70e59f8
[ "MIT" ]
1
2017-12-03T10:10:32.000Z
2017-12-03T10:10:32.000Z
wcpan/drive/google/util.py
legnaleurc/wcpan.drive.google
840806dca25044203443e378055f42c6e70e59f8
[ "MIT" ]
1
2018-08-29T03:28:06.000Z
2018-08-29T03:28:06.000Z
from typing import TypedDict, Optional, Dict, Any, List import asyncio import contextlib import json import pathlib import urllib.parse import aiohttp import yaml from wcpan.logger import DEBUG, EXCEPTION from .exceptions import AuthenticationError, CredentialFileError, TokenFileError class OAuth2Info(TypedDict): ...
30.767606
80
0.582742
25db35fced9f368a666ed4b563a27f02aa8b2535
8,085
py
Python
application/main-v1-02.py
CrtomirJuren/pyfirmata-arduino
020873972d119955e80387f44bcc193ad0b460a6
[ "MIT" ]
null
null
null
application/main-v1-02.py
CrtomirJuren/pyfirmata-arduino
020873972d119955e80387f44bcc193ad0b460a6
[ "MIT" ]
null
null
null
application/main-v1-02.py
CrtomirJuren/pyfirmata-arduino
020873972d119955e80387f44bcc193ad0b460a6
[ "MIT" ]
null
null
null
""" Python GUI with Tkinter """ import sys import time from datetime import datetime # main modules imports try: import Tkinter as tk except: import tkinter as tk from tkinter import ttk from tkinter import Frame # from tkinter import scrolledtext # from tkinter import Menu # from tkinter import messagebox a...
33.970588
133
0.578108
0c19597bbef43bd9b733ec53bf3418b1ce86bdae
900
py
Python
Python/View_and_Combine_STL/view.py
ArchanGhosh/WhiZZ_Scripts
8694e381d1a55d92860c8b211459eb790ca2eeaf
[ "MIT" ]
null
null
null
Python/View_and_Combine_STL/view.py
ArchanGhosh/WhiZZ_Scripts
8694e381d1a55d92860c8b211459eb790ca2eeaf
[ "MIT" ]
null
null
null
Python/View_and_Combine_STL/view.py
ArchanGhosh/WhiZZ_Scripts
8694e381d1a55d92860c8b211459eb790ca2eeaf
[ "MIT" ]
null
null
null
from stl import mesh from mpl_toolkits import mplot3d from matplotlib import pyplot def view_stl(file_dir): '''The following function renders a 3D geometry mesh in Matplotlib, if helps you visualize a 3D object in a simple and fast way'''' figure = pyplot.figure(figsize=(30,30)) axes = mplot3d.Axes3D(figure) ...
45
149
0.768889
c08d428c6271c49e566d25ee589fe41ff46215b1
1,419
py
Python
fastestimator/layers/uncertainty_weighted_loss.py
rajesh1226/fastestimator
0765c7478c0889cf4e2841d51a35c9a06a406472
[ "Apache-2.0" ]
1
2019-12-17T22:43:08.000Z
2019-12-17T22:43:08.000Z
fastestimator/layers/uncertainty_weighted_loss.py
rajesh1226/fastestimator
0765c7478c0889cf4e2841d51a35c9a06a406472
[ "Apache-2.0" ]
null
null
null
fastestimator/layers/uncertainty_weighted_loss.py
rajesh1226/fastestimator
0765c7478c0889cf4e2841d51a35c9a06a406472
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The FastEstimator Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
38.351351
96
0.67019
3ed1f3f7a1b56bf9f136a411d6310266bb06e5f4
119
py
Python
test_app.py
apolanco3225/eks-fargate-tutorial
6fd2908faad46d9ee6827c9c06fe74014991b100
[ "CC0-1.0" ]
4
2021-02-19T19:04:23.000Z
2021-05-30T03:37:31.000Z
test_app.py
apolanco3225/eks-fargate-tutorial
6fd2908faad46d9ee6827c9c06fe74014991b100
[ "CC0-1.0" ]
1
2021-02-17T18:10:20.000Z
2021-05-23T12:58:58.000Z
test_app.py
apolanco3225/eks-fargate-tutorial
6fd2908faad46d9ee6827c9c06fe74014991b100
[ "CC0-1.0" ]
11
2021-02-18T20:54:36.000Z
2022-01-30T15:01:03.000Z
from app import change def test_change(): assert [{5: 'quarters'}, {1: 'nickels'}, {4: 'pennies'}] == change(1.34)
29.75
76
0.613445
c4b7f667c23e3db414001182b0ff573d56fb17d9
13,042
py
Python
run/utils_io.py
WangXII/bio_event_qa
9cafa73f57d4231d9c1097de6f4912a267d5503e
[ "Apache-2.0" ]
3
2021-03-09T05:38:12.000Z
2021-09-24T07:03:48.000Z
run/utils_io.py
WangXII/bio_event_qa
9cafa73f57d4231d9c1097de6f4912a267d5503e
[ "Apache-2.0" ]
null
null
null
run/utils_io.py
WangXII/bio_event_qa
9cafa73f57d4231d9c1097de6f4912a267d5503e
[ "Apache-2.0" ]
1
2022-03-31T00:32:27.000Z
2022-03-31T00:32:27.000Z
""" Utility IO functions for run_mtqa.py """ from __future__ import absolute_import, division, print_function import os import sys if os.name == 'nt': root_path = "/".join(os.path.realpath(__file__).split("\\")[:-2]) else: root_path = "/".join(os.path.realpath(__file__).split("/")[:-2]) if root_path not in sy...
60.943925
136
0.660251
3c93a7e81e5af2c610451885f11a9e04593b5c02
3,578
py
Python
examples/30_extended/study_tutorial.py
Mirkazemi/openml-python
4ff66ed284790e4ae29245a15e23a3fa1f1c3a6b
[ "BSD-3-Clause" ]
null
null
null
examples/30_extended/study_tutorial.py
Mirkazemi/openml-python
4ff66ed284790e4ae29245a15e23a3fa1f1c3a6b
[ "BSD-3-Clause" ]
null
null
null
examples/30_extended/study_tutorial.py
Mirkazemi/openml-python
4ff66ed284790e4ae29245a15e23a3fa1f1c3a6b
[ "BSD-3-Clause" ]
null
null
null
""" ================= Benchmark studies ================= How to list, download and upload benchmark studies. In contrast to `benchmark suites <https://docs.openml.org/benchmark/#benchmarking-suites>`_ which hold a list of tasks, studies hold a list of runs. As runs contain all information on flows and tasks, all req...
32.234234
97
0.557854
9c8d5bb9edd7038cf3b2a13a6ec4e72b0614d488
829
py
Python
tools/downloader/info_dumper.py
APrigarina/open_model_zoo
b1ff98b64a6222cf6b5f3838dc0271422250de95
[ "Apache-2.0" ]
1,031
2020-07-16T08:30:57.000Z
2022-03-30T19:42:52.000Z
tools/downloader/info_dumper.py
APrigarina/open_model_zoo
b1ff98b64a6222cf6b5f3838dc0271422250de95
[ "Apache-2.0" ]
966
2020-07-16T08:13:00.000Z
2022-03-31T18:09:18.000Z
tools/downloader/info_dumper.py
APrigarina/open_model_zoo
b1ff98b64a6222cf6b5f3838dc0271422250de95
[ "Apache-2.0" ]
440
2020-07-16T12:52:50.000Z
2022-03-31T14:21:41.000Z
#!/usr/bin/env python3 # Copyright (c) 2021 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 appli...
30.703704
74
0.759952
0d4c70de6550a44b5b59a24e8d9b91bea1b30569
1,076
py
Python
tensorflow/python/keras/layers/preprocessing/string_lookup_v1.py
Mithilesh1609/tensorflow
63f70b5611d7f50512ea26295d26016c2704901b
[ "Apache-2.0" ]
8
2020-07-29T18:50:45.000Z
2021-07-25T07:06:43.000Z
tensorflow/python/keras/layers/preprocessing/string_lookup_v1.py
3ecurityy/tensorflow
f8c0e68a8aa5d575a19129ec67c9ed6262652082
[ "Apache-2.0" ]
203
2019-06-14T23:53:10.000Z
2022-02-10T02:27:23.000Z
tensorflow/python/keras/layers/preprocessing/string_lookup_v1.py
3ecurityy/tensorflow
f8c0e68a8aa5d575a19129ec67c9ed6262652082
[ "Apache-2.0" ]
11
2020-05-31T13:14:56.000Z
2021-12-14T04:39:25.000Z
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.384615
80
0.741636
5aebdcc90d9562e0343e2024f6dac1f2f16999ca
5,503
py
Python
neurokit2/complexity/entropy_approximate.py
BelleJohn/neuropsychology-NeuroKit
d01111b9b82364d28da01c002e6cbfc45d9493d9
[ "MIT" ]
1
2022-03-20T21:09:34.000Z
2022-03-20T21:09:34.000Z
neurokit2/complexity/entropy_approximate.py
BelleJohn/neuropsychology-NeuroKit
d01111b9b82364d28da01c002e6cbfc45d9493d9
[ "MIT" ]
null
null
null
neurokit2/complexity/entropy_approximate.py
BelleJohn/neuropsychology-NeuroKit
d01111b9b82364d28da01c002e6cbfc45d9493d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import pandas as pd from .utils import _get_embedded, _get_tolerance, _phi def entropy_approximate(signal, delay=1, dimension=2, tolerance="default", corrected=False, **kwargs): """Approximate entropy (ApEn) Python implementations of the approximate entropy (ApEn) ...
36.932886
105
0.644012
c3bd4e2e930e3b449a906c2d042e3900e2d62047
13,776
py
Python
vaisala-issue-#181-#184-#185/AddResources.py
seanmcilroy29/bulk-update-tool
4822136ab77c9317d3bcbad82f570510bd8785f7
[ "MIT" ]
null
null
null
vaisala-issue-#181-#184-#185/AddResources.py
seanmcilroy29/bulk-update-tool
4822136ab77c9317d3bcbad82f570510bd8785f7
[ "MIT" ]
null
null
null
vaisala-issue-#181-#184-#185/AddResources.py
seanmcilroy29/bulk-update-tool
4822136ab77c9317d3bcbad82f570510bd8785f7
[ "MIT" ]
null
null
null
# Add new re-usable resources into LwM2M object XML files. # # This script imports a library (lwm2mv10_lib) that has been generated with generateDS tool. # https://www.davekuhlman.org/generateDS.html # # To re-generate this library, follow generateDS documentation how to install generateDS and then issue command: # # ...
65.6
180
0.625073
6f397c8cf37df912d02c224908888b2fff4aed4d
13,265
py
Python
toontown/parties/PartyCogActivityPlayer.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
null
null
null
toontown/parties/PartyCogActivityPlayer.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
1
2021-06-08T17:16:48.000Z
2021-06-08T17:16:48.000Z
toontown/parties/PartyCogActivityPlayer.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
3
2021-06-03T05:36:36.000Z
2021-06-22T15:07:31.000Z
import math from direct.showbase.PythonUtil import bound, lerp from direct.task.Task import Task from direct.interval.MetaInterval import Sequence, Parallel from direct.interval.FunctionInterval import Func, Wait from direct.interval.SoundInterval import SoundInterval from direct.interval.LerpInterval import LerpScaleI...
38.449275
490
0.672371
ae69fb73221da9d66465b89395a864a582082dc8
861
py
Python
modin/api/__init__.py
heuermh/modin
2f880c1c93b05dbcaf8120ef6bb75a6adfa2e8e5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/api/__init__.py
heuermh/modin
2f880c1c93b05dbcaf8120ef6bb75a6adfa2e8e5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/api/__init__.py
heuermh/modin
2f880c1c93b05dbcaf8120ef6bb75a6adfa2e8e5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
50.647059
87
0.787456
81dcbd6503cb8625d7b4ff187386569b8eb9c3cd
1,015
py
Python
armulator/armv6/opcodes/arm_instruction_set/arm_load_store_word_and_unsigned_byte/str_immediate_arm_a1.py
matan1008/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
16
2018-01-22T14:36:49.000Z
2021-12-17T15:39:52.000Z
armulator/armv6/opcodes/arm_instruction_set/arm_load_store_word_and_unsigned_byte/str_immediate_arm_a1.py
AhmedMounir/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
3
2019-02-19T17:51:47.000Z
2022-03-31T20:45:21.000Z
armulator/armv6/opcodes/arm_instruction_set/arm_load_store_word_and_unsigned_byte/str_immediate_arm_a1.py
AhmedMounir/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
4
2020-06-18T23:51:03.000Z
2022-02-09T17:43:13.000Z
from armulator.armv6.opcodes.abstract_opcodes.str_immediate_arm import StrImmediateArm from armulator.armv6.opcodes.opcode import Opcode class StrImmediateArmA1(StrImmediateArm, Opcode): def __init__(self, instruction, add, wback, index, t, n, imm32): Opcode.__init__(self, instruction) StrImmediat...
36.25
104
0.602956
63efd857f0189526b16a550e833010ea58297c72
1,679
py
Python
config/settings/test.py
kmvicky/webscrape
92ca9100e21de276ed8470621e1e3a7a6495d54d
[ "MIT" ]
null
null
null
config/settings/test.py
kmvicky/webscrape
92ca9100e21de276ed8470621e1e3a7a6495d54d
[ "MIT" ]
null
null
null
config/settings/test.py
kmvicky/webscrape
92ca9100e21de276ed8470621e1e3a7a6495d54d
[ "MIT" ]
null
null
null
""" With these settings, tests run faster. """ from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env( "DJANGO_SECRET_KEY", default="mtj03XYIk...
32.288462
80
0.495533
ca31a72c20c3057500d3edd9cedea8250b65eb5c
8,693
py
Python
docs/conf.py
pllim/photutils
ff78b6dd97a9fa890b6c77b51f207d4c2ff28889
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
pllim/photutils
ff78b6dd97a9fa890b6c77b51f207d4c2ff28889
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
pllim/photutils
ff78b6dd97a9fa890b6c77b51f207d4c2ff28889
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst # # Astropy documentation build configuration file. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this file. # # All configurati...
36.834746
89
0.7039
5bc0a12290690703f145f8964fd0e2cc443d49f3
12,235
py
Python
process_ARS_initial.py
USArmyResearchLab/ARL_Raman_Aerosol_Process_Adelphi_DH20
52263dce6a09577cccc64cd07c8efbc7532c1205
[ "CC0-1.0" ]
null
null
null
process_ARS_initial.py
USArmyResearchLab/ARL_Raman_Aerosol_Process_Adelphi_DH20
52263dce6a09577cccc64cd07c8efbc7532c1205
[ "CC0-1.0" ]
null
null
null
process_ARS_initial.py
USArmyResearchLab/ARL_Raman_Aerosol_Process_Adelphi_DH20
52263dce6a09577cccc64cd07c8efbc7532c1205
[ "CC0-1.0" ]
1
2020-03-15T17:59:34.000Z
2020-03-15T17:59:34.000Z
########################################################################### # # Process_ars_initial.py # # ############################################################################# ''' This is the code to process the data for an ARS timeseries Testforburning_v1 did it just the standard 'subtracti...
38.964968
469
0.609808
afc275ce20387e43694ea8d5e98b760bc625c003
233
py
Python
catt/__init__.py
erdeiattila/catt
9c2d2c88bbe2336d0e0fa0927fefd1ff2788c2a1
[ "BSD-2-Clause" ]
1
2020-07-03T08:30:03.000Z
2020-07-03T08:30:03.000Z
catt/__init__.py
erdeiattila/catt
9c2d2c88bbe2336d0e0fa0927fefd1ff2788c2a1
[ "BSD-2-Clause" ]
null
null
null
catt/__init__.py
erdeiattila/catt
9c2d2c88bbe2336d0e0fa0927fefd1ff2788c2a1
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import sys if sys.version_info.major < 3: print("This program requires Python 3 and above to run.") sys.exit(1) __author__ = "Stavros Korokithakis" __email__ = "hi@stavros.io" __version__ = "0.11.2"
21.181818
61
0.678112
eb0e6dda354672c3f2d08451172613e1e4e3c67f
1,856
py
Python
core/tests/test_schemas/test_cli/test_client_config.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
3,200
2017-05-09T11:35:31.000Z
2022-03-28T05:43:22.000Z
core/tests/test_schemas/test_cli/test_client_config.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
1,324
2017-06-29T07:21:27.000Z
2022-03-27T12:41:10.000Z
core/tests/test_schemas/test_cli/test_client_config.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
341
2017-01-10T23:06:53.000Z
2022-03-10T08:15:18.000Z
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, 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 ...
33.745455
79
0.698815
100b855b700611152ecff31370428797b3d3835b
2,176
py
Python
share/qt/extract_strings_qt.py
decentrahub/DecentrahubCoin
70e4a3cfa83a4a2d20bcf63954b2cac2c975927d
[ "MIT" ]
2
2020-11-15T19:00:25.000Z
2021-05-03T03:43:21.000Z
share/qt/extract_strings_qt.py
decentrahub/DecentrahubCoin
70e4a3cfa83a4a2d20bcf63954b2cac2c975927d
[ "MIT" ]
null
null
null
share/qt/extract_strings_qt.py
decentrahub/DecentrahubCoin
70e4a3cfa83a4a2d20bcf63954b2cac2c975927d
[ "MIT" ]
3
2020-10-27T12:45:49.000Z
2020-12-27T19:56:32.000Z
#!/usr/bin/python ''' Extract _("...") strings for translation and convert to Qt stringdefs so that they can be picked up by Qt linguist. ''' from __future__ import division,print_function,unicode_literals from subprocess import Popen, PIPE import glob import operator import os import sys OUT_CPP="qt/decentrahubstring...
25.904762
105
0.621783
67748ac83fa54f15c12bad386a6f69805ba614c2
1,881
py
Python
yanxuan_downloader.py
panfei008/yanxuan_zhuanlan_zhihu
978c8ac9aa9c247e249a6df09c3be217ca187486
[ "MIT" ]
1
2021-11-09T12:06:15.000Z
2021-11-09T12:06:15.000Z
yanxuan_downloader.py
littleBoy-swag/yanxuan_zhuanlan_zhihu
978c8ac9aa9c247e249a6df09c3be217ca187486
[ "MIT" ]
null
null
null
yanxuan_downloader.py
littleBoy-swag/yanxuan_zhuanlan_zhihu
978c8ac9aa9c247e249a6df09c3be217ca187486
[ "MIT" ]
1
2021-11-09T12:21:01.000Z
2021-11-09T12:21:01.000Z
import json import os import requests import pypandoc from bs4 import BeautifulSoup headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36' } cookie = { } # 盐选专栏的id, 每次只需要更换这个Id就好 # yanxuanId = '140802760802...
36.173077
136
0.67092
22a492fb757dd906179507e787589c2987e86c9b
1,985
py
Python
tests/unit/test_cv_container_tools.py
KonikaChaurasiya-GSLab/ansible-cvp
f97179c27befa7ad470fc8a1a6b31f2930585ece
[ "Apache-2.0" ]
null
null
null
tests/unit/test_cv_container_tools.py
KonikaChaurasiya-GSLab/ansible-cvp
f97179c27befa7ad470fc8a1a6b31f2930585ece
[ "Apache-2.0" ]
null
null
null
tests/unit/test_cv_container_tools.py
KonikaChaurasiya-GSLab/ansible-cvp
f97179c27befa7ad470fc8a1a6b31f2930585ece
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # coding: utf-8 -*- import logging import pytest import pprint from ansible_collections.arista.cvp.plugins.module_utils.container_tools import CvContainerTools from tests.lib import mock from tests.unit import data LOGGER = logging.getLogger(__name__) # --------------------------------------------...
39.7
120
0.643325
809d0391279f3dbf29ea00e2671fb301fbd0c46f
171
py
Python
popol/templates/app/settings/development.py
aprilahijriyan/popol
5a0be69064ad35a8260f4524824960bc68f26890
[ "MIT" ]
null
null
null
popol/templates/app/settings/development.py
aprilahijriyan/popol
5a0be69064ad35a8260f4524824960bc68f26890
[ "MIT" ]
5
2022-03-05T12:55:27.000Z
2022-03-22T03:16:31.000Z
popol/templates/app/settings/development.py
aprilahijriyan/popol
5a0be69064ad35a8260f4524824960bc68f26890
[ "MIT" ]
null
null
null
from pydantic import BaseSettings, Field class Settings(BaseSettings): APP_ENV: str = Field("development", env="APP_ENV") DEBUG: bool = Field(True, env="DEBUG")
24.428571
54
0.71345
af9318b7a26f8989bd0f3c8fd93f848b48985372
1,111
py
Python
pyclesperanto_prototype/_tier4/_exclude_labels_with_map_values_equal_to_constant.py
cavenel/pyclesperanto_prototype
701f8b6741833d1943b4b78a28b1f0b06a5519b4
[ "BSD-3-Clause" ]
2
2020-07-01T06:20:44.000Z
2020-07-01T09:36:48.000Z
pyclesperanto_prototype/_tier4/_exclude_labels_with_map_values_equal_to_constant.py
cavenel/pyclesperanto_prototype
701f8b6741833d1943b4b78a28b1f0b06a5519b4
[ "BSD-3-Clause" ]
null
null
null
pyclesperanto_prototype/_tier4/_exclude_labels_with_map_values_equal_to_constant.py
cavenel/pyclesperanto_prototype
701f8b6741833d1943b4b78a28b1f0b06a5519b4
[ "BSD-3-Clause" ]
1
2020-06-29T18:40:54.000Z
2020-06-29T18:40:54.000Z
from .._tier0 import plugin_function from .._tier0 import Image from .._tier0 import create_labels_like @plugin_function(output_creator=create_labels_like, categories=['label processing', 'combine', 'in assistant']) def exclude_labels_with_map_values_equal_to_constant(values_map : Image, label_map_input: Image, label_...
37.033333
164
0.760576
176b12cd7261679584199e1a6db7ff21f025f507
282
py
Python
python/exercitii/reminder/scheduler.py
broascaiulian/labs
068c7f440c7a29cb6a3e1dbb8e4bb7dfaff5a050
[ "MIT" ]
null
null
null
python/exercitii/reminder/scheduler.py
broascaiulian/labs
068c7f440c7a29cb6a3e1dbb8e4bb7dfaff5a050
[ "MIT" ]
null
null
null
python/exercitii/reminder/scheduler.py
broascaiulian/labs
068c7f440c7a29cb6a3e1dbb8e4bb7dfaff5a050
[ "MIT" ]
null
null
null
#!/usr/bin/env python # *-* coding: UTF-8 *-* """Script-ul `scheduler.py` se va ocupa cu planificarea unei acțiuni ce trebuie să fie executată de script-ul `executor.py`. """ def scheduler(): """Planifică evenimentele.""" pass if __name__ == "__main__": scheduler()
18.8
68
0.656028
76e729598f50e48e41b3e0cd883aa7a37fa1cd2d
3,839
py
Python
backend/ventserver/io/trio/_serial.py
raavilagoo/Test
e2de25cc4b6fcbffe3f98f4a7ce1644fa8b6bb16
[ "Apache-2.0" ]
1
2020-10-20T23:47:23.000Z
2020-10-20T23:47:23.000Z
backend/ventserver/io/trio/_serial.py
raavilagoo/Test
e2de25cc4b6fcbffe3f98f4a7ce1644fa8b6bb16
[ "Apache-2.0" ]
242
2020-10-23T06:44:01.000Z
2022-01-28T05:50:45.000Z
backend/ventserver/io/trio/_serial.py
pez-globo/pufferfish-vent-software
f1e5e47acf1941e7c729adb750b85bf26c38b274
[ "Apache-2.0" ]
1
2021-04-12T02:10:18.000Z
2021-04-12T02:10:18.000Z
"""Trio I/O serial driver.""" import logging import os from typing import Optional import attr import serial # type: ignore from serial import serialutil import trio from trio import lowlevel from ventserver.io import _serial from ventserver.io.trio import endpoints @attr.s class Driver(endpoints.IOEndpoint[byt...
33.973451
80
0.593905
003aa3eee9b80d820fd8539225362088aef5ea6f
11,464
py
Python
sdks/python/client/argo_workflows/model/github_com_argoproj_labs_argo_dataflow_api_v1alpha1_storage.py
BearerPipelineTest/argo-workflows
ecd91b1c4215a2ab8742f7c43eaade98a1d47eba
[ "Apache-2.0" ]
1
2022-02-24T01:45:03.000Z
2022-02-24T01:45:03.000Z
sdks/python/client/argo_workflows/model/github_com_argoproj_labs_argo_dataflow_api_v1alpha1_storage.py
BearerPipelineTest/argo-workflows
ecd91b1c4215a2ab8742f7c43eaade98a1d47eba
[ "Apache-2.0" ]
18
2022-02-01T23:09:58.000Z
2022-03-31T23:28:41.000Z
sdks/python/client/argo_workflows/model/github_com_argoproj_labs_argo_dataflow_api_v1alpha1_storage.py
BearerPipelineTest/argo-workflows
ecd91b1c4215a2ab8742f7c43eaade98a1d47eba
[ "Apache-2.0" ]
null
null
null
""" Argo Workflows API Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/ # noqa: E501 The version of the OpenAPI document: VERSION Generated by: https://openapi-g...
44.092308
206
0.575105
a365c67acb9a0a6b8de9dcb479bddca6c2c1304f
393
py
Python
cryptsenal/__init__.py
AoWangPhilly/cryptsenal
d2717a0e8ba0ec01a0401f8164b55df04de567cd
[ "MIT" ]
null
null
null
cryptsenal/__init__.py
AoWangPhilly/cryptsenal
d2717a0e8ba0ec01a0401f8164b55df04de567cd
[ "MIT" ]
4
2019-12-28T19:33:07.000Z
2019-12-28T19:34:29.000Z
cryptsenal/__init__.py
AoWangPhilly/cryptsenal
d2717a0e8ba0ec01a0401f8164b55df04de567cd
[ "MIT" ]
null
null
null
from .cipher import Cipher from .caesar import Caesar from .vigenere import Vigenere from .affine import Affine from .hill import Hill from .simple_substitution import SimpleSubstitution from .columnar_transposition import ColumnarTransposition from .rail_fence import RailFence from .autokey import AutoKey from .rsa im...
30.230769
57
0.847328
f0eeafc96efbf76f54bb3f9e95f71bd8098b6908
19,828
py
Python
bigbench/api/util.py
sarahadlerrous/BIG-bench
e71e63598538674cece60f8457475f8ddbdf785a
[ "Apache-2.0" ]
null
null
null
bigbench/api/util.py
sarahadlerrous/BIG-bench
e71e63598538674cece60f8457475f8ddbdf785a
[ "Apache-2.0" ]
null
null
null
bigbench/api/util.py
sarahadlerrous/BIG-bench
e71e63598538674cece60f8457475f8ddbdf785a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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, so...
35.470483
198
0.654479
6e018b440474d2dff7cab72ea02733adc122349b
12,221
py
Python
neuralparticles/tools/uniio.py
senliontec/NeuralParticles
8ede22bfb43e60be175b9cef19045c1c7b1ffb73
[ "MIT" ]
null
null
null
neuralparticles/tools/uniio.py
senliontec/NeuralParticles
8ede22bfb43e60be175b9cef19045c1c7b1ffb73
[ "MIT" ]
null
null
null
neuralparticles/tools/uniio.py
senliontec/NeuralParticles
8ede22bfb43e60be175b9cef19045c1c7b1ffb73
[ "MIT" ]
null
null
null
#****************************************************************************** # # MantaFlow fluid solver framework # Copyright 2017 Nils Thuerey, Boris Bonev # # This program is free software, distributed under the terms of the # GNU General Public License (GPL) # http://www.gnu.org/licenses # # Read mantaflow uni fi...
33.02973
171
0.648883
53581073aced2d1d7c8004fce82af90b47e95366
12,154
py
Python
scripts/sip/sip_interaction.py
DistributedCollective/Sovryn-smart-contracts
f45d235941c68e29133a99767f8a4d6605ab6e36
[ "Apache-2.0" ]
108
2020-08-30T17:52:32.000Z
2022-02-26T00:00:15.000Z
scripts/sip/sip_interaction.py
DistributedCollective/Sovryn-smart-contracts
f45d235941c68e29133a99767f8a4d6605ab6e36
[ "Apache-2.0" ]
181
2020-08-24T09:28:53.000Z
2022-02-11T13:22:22.000Z
scripts/sip/sip_interaction.py
DistributedCollective/Sovryn-smart-contracts
f45d235941c68e29133a99767f8a4d6605ab6e36
[ "Apache-2.0" ]
36
2020-09-10T07:53:41.000Z
2022-03-26T00:35:30.000Z
''' This script serves the purpose of interacting with governance (SIP) on the testnet or mainnet. ''' from brownie import * from brownie.network.contract import InterfaceContainer import json import time def main(): # Load the contracts and acct depending on the network. loadConfig() balanceBefore = a...
44.848708
301
0.701497
7578f1f551f7b5e83aa0dddc9e3e5cfa5a56133a
42,985
py
Python
src/python/bcc/__init__.py
JackZ0/bcc
7ea0e6e62b418a7ee2c8de2d98c4bae79f45bafe
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/python/bcc/__init__.py
JackZ0/bcc
7ea0e6e62b418a7ee2c8de2d98c4bae79f45bafe
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/python/bcc/__init__.py
JackZ0/bcc
7ea0e6e62b418a7ee2c8de2d98c4bae79f45bafe
[ "ECL-2.0", "Apache-2.0" ]
1
2021-02-01T12:09:24.000Z
2021-02-01T12:09:24.000Z
# Copyright 2015 PLUMgrid # # 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, softwar...
38.345227
87
0.588508
cce7b05704ac9c7b2b2f94363a32b6fb8b49649e
121
py
Python
Exercicios em python/ex03.py
GabrielSantos25/Python
208eec0144587aa4e0aa7fa00da29ffa0478eac8
[ "MIT" ]
null
null
null
Exercicios em python/ex03.py
GabrielSantos25/Python
208eec0144587aa4e0aa7fa00da29ffa0478eac8
[ "MIT" ]
null
null
null
Exercicios em python/ex03.py
GabrielSantos25/Python
208eec0144587aa4e0aa7fa00da29ffa0478eac8
[ "MIT" ]
null
null
null
num1 = int(input()) num2 = int(input()) soma = num1 + num2 print("A soma de [{}] e [{}] é = {}".format(num1, num2, soma))
30.25
62
0.561983
111b767d408b991ab2e652a3d371ca77b2b4dd09
3,019
py
Python
src/ecs/systems/panels/inventorypanel.py
joehowells/critical-keep
4aba3322a8582a2d06ab0d4b67028738249669e9
[ "MIT" ]
1
2019-04-27T22:39:33.000Z
2019-04-27T22:39:33.000Z
src/ecs/systems/panels/inventorypanel.py
joehowells/critical-keep
4aba3322a8582a2d06ab0d4b67028738249669e9
[ "MIT" ]
null
null
null
src/ecs/systems/panels/inventorypanel.py
joehowells/critical-keep
4aba3322a8582a2d06ab0d4b67028738249669e9
[ "MIT" ]
null
null
null
import string import constants from ecs.components.combatcomponent import CombatComponent from ecs.components.displaycomponent import DisplayComponent from ecs.components.durabilitycomponent import DurabilityComponent from ecs.components.inventorycomponent import InventoryComponent from ecs.components.namecomponent im...
44.397059
103
0.616098
b94fef7543a36271b826889b814850d12f2f09ff
832
py
Python
samples/openapi3/client/petstore/python-experimental/test/test_integer_enum.py
LeComptoirDesPharmacies/openapi-generator
a4325ec5205b68298fcc66b9e85927aa64d840ff
[ "Apache-2.0" ]
null
null
null
samples/openapi3/client/petstore/python-experimental/test/test_integer_enum.py
LeComptoirDesPharmacies/openapi-generator
a4325ec5205b68298fcc66b9e85927aa64d840ff
[ "Apache-2.0" ]
1
2022-03-31T10:08:39.000Z
2022-03-31T10:08:39.000Z
samples/openapi3/client/petstore/python-experimental/test/test_integer_enum.py
LeComptoirDesPharmacies/openapi-generator
a4325ec5205b68298fcc66b9e85927aa64d840ff
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
21.894737
174
0.68149
5bfba4c39ddca9cae67be78063f1d2a45520bfa9
7,427
py
Python
mseg/dataset_apis/MapillaryMaskDataset.py
mintar/mseg-api
df7b899b47b33ad82dcbf17c289856a1f1abea22
[ "CC-BY-4.0" ]
213
2020-04-25T02:51:42.000Z
2022-03-25T09:57:26.000Z
mseg/dataset_apis/MapillaryMaskDataset.py
mintar/mseg-api
df7b899b47b33ad82dcbf17c289856a1f1abea22
[ "CC-BY-4.0" ]
19
2020-04-28T05:47:50.000Z
2022-03-18T03:05:07.000Z
mseg/dataset_apis/MapillaryMaskDataset.py
mintar/mseg-api
df7b899b47b33ad82dcbf17c289856a1f1abea22
[ "CC-BY-4.0" ]
35
2020-04-29T16:11:43.000Z
2022-03-28T15:50:15.000Z
#!/usr/bin/python3 import argparse import glob from pathlib import Path from typing import Any, List, Mapping import imageio import numpy as np import mseg.utils.names_utils as names_utils from mseg.utils.mask_utils import save_binary_mask_double, rgb_img_to_obj_cls_img, form_mask_triple_embedded_classnames from mse...
37.321608
145
0.687896
9fc2bf74a62db86db345dc5ec4fc7e44d02e43d4
4,782
py
Python
function_box.py
zzf005/Care_Free_Demo
736a2e9a5c578e14166b0e9c2f88e7279cb298b0
[ "Apache-2.0" ]
null
null
null
function_box.py
zzf005/Care_Free_Demo
736a2e9a5c578e14166b0e9c2f88e7279cb298b0
[ "Apache-2.0" ]
null
null
null
function_box.py
zzf005/Care_Free_Demo
736a2e9a5c578e14166b0e9c2f88e7279cb298b0
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import math import cv2 import numpy as np from imutils.object_detection import non_max_suppression from imutils import paths def rect_to_bb(rect): # take a bounding predicted by dlib and convert it # to the format (x, y, w, h) as we would normally do # with OpenCV x = rect.l...
37.952381
100
0.66102
43babdd00c2e7a2c68a6ec22ed26f4f7463637fe
28,163
py
Python
ocs_ci/ocs/ui/base_ui.py
rachael-george/ocs-ci
37613fb3cf8d076a8d80787258a4307d0633570f
[ "MIT" ]
130
2019-04-08T06:22:53.000Z
2022-03-23T06:11:19.000Z
ocs_ci/ocs/ui/base_ui.py
rachael-george/ocs-ci
37613fb3cf8d076a8d80787258a4307d0633570f
[ "MIT" ]
4,359
2019-04-09T18:48:47.000Z
2022-03-31T20:04:55.000Z
ocs_ci/ocs/ui/base_ui.py
rachael-george/ocs-ci
37613fb3cf8d076a8d80787258a4307d0633570f
[ "MIT" ]
183
2019-04-18T15:55:30.000Z
2022-03-11T06:16:50.000Z
from pathlib import Path import datetime import logging import os import time import zipfile from selenium import webdriver from selenium.common.exceptions import ( TimeoutException, WebDriverException, NoSuchElementException, ) from selenium.webdriver.chrome.options import Options from selenium.webdriver....
35.028607
105
0.628058
fa40f8fe534018d6eeece291f365c3001e998cc8
431
py
Python
assignment6/string2reversehex.py
gkweb76/SLAE
c0aef9610a5f75568a0e65c4a91a3bb5a56e6fc6
[ "MIT" ]
15
2015-08-11T09:50:00.000Z
2021-10-02T19:30:53.000Z
assignment6/string2reversehex.py
gkweb76/SLAE
c0aef9610a5f75568a0e65c4a91a3bb5a56e6fc6
[ "MIT" ]
null
null
null
assignment6/string2reversehex.py
gkweb76/SLAE
c0aef9610a5f75568a0e65c4a91a3bb5a56e6fc6
[ "MIT" ]
9
2015-08-11T09:51:55.000Z
2021-10-18T18:04:11.000Z
#!/usr/bin/python # Convert string input to shellcode hex # Author: Guillaume Kaddouch # SLAE-681 import sys try: if sys.argv[1]: arg1 = sys.argv[1] string = arg1 if sys.argv[2] == "null": string += '\n' except: toto = "Nothing" finally: reverse = string[::-1] encode = r...
16.576923
39
0.591647
382d234f18f176eef58325d0092f70dabe6db06d
5,482
py
Python
stix_shifter_modules/arcsight/stix_transmission/api_client.py
priti-patil/stix-shifter
26954598fb79dde4506987388592ec391ff8a10b
[ "Apache-2.0" ]
33
2018-05-25T17:07:28.000Z
2019-09-30T10:08:53.000Z
stix_shifter_modules/arcsight/stix_transmission/api_client.py
priti-patil/stix-shifter
26954598fb79dde4506987388592ec391ff8a10b
[ "Apache-2.0" ]
54
2018-06-01T18:17:24.000Z
2019-09-30T18:36:15.000Z
stix_shifter_modules/arcsight/stix_transmission/api_client.py
subbyte/stix-shifter
36d71c172a5fc5b97d872e623753b0dd1bf4fe6c
[ "Apache-2.0" ]
37
2018-07-24T13:29:46.000Z
2019-09-29T19:06:27.000Z
import time from datetime import datetime, timedelta import json from stix_shifter_utils.stix_transmission.utils.RestApiClient import RestApiClient from stix_shifter_utils.utils.error_response import ErrorResponder class APIClient: TOKEN_ENDPOINT = 'core-service/rest/LoginService/login' STATUS_ENDPOINT = 'ser...
46.457627
113
0.620394
fb214e84cd4aab0cd5937922c45bb38388116332
707
py
Python
sources/classic/http_api/utils.py
variasov/classic_http_api
34121973ad34921ee2fe4b82a4af934542b90dea
[ "MIT" ]
2
2021-10-12T06:50:23.000Z
2021-11-12T08:19:56.000Z
sources/classic/http_api/utils.py
variasov/classic_http_api
34121973ad34921ee2fe4b82a4af934542b90dea
[ "MIT" ]
null
null
null
sources/classic/http_api/utils.py
variasov/classic_http_api
34121973ad34921ee2fe4b82a4af934542b90dea
[ "MIT" ]
null
null
null
import inspect import re from falcon import HTTP_METHODS __camel_case_re = re.compile(r'(?<!^)(?=[A-Z])') __methods = '|'.join((f'({method.lower()})' for method in HTTP_METHODS)) __method_name_re = re.compile(r'^\bon_(' + __methods + ')_') def camel_case_to_dash(text): return __camel_case_re.sub('_', text).lo...
22.09375
72
0.65488
8f678861aef9d251fe10090023e2727cb4efbbbb
528
py
Python
aula_010/aula_010_V.py
Magno-Proenca/Exercicios-Python
9dc896084550c184bf270402b33ee553e761336a
[ "MIT" ]
null
null
null
aula_010/aula_010_V.py
Magno-Proenca/Exercicios-Python
9dc896084550c184bf270402b33ee553e761336a
[ "MIT" ]
null
null
null
aula_010/aula_010_V.py
Magno-Proenca/Exercicios-Python
9dc896084550c184bf270402b33ee553e761336a
[ "MIT" ]
null
null
null
#escreva um programa que faça o computador pensar em um numero inteiro entre 0 e 5 e peça #para o usuario tentar descobrir qual foi o numero escolhido pelo computador. #o programa deverá escrever na tela se o usuário venceu ou perdeu from random import randint numero = int(input('Digite um numero de 0 à 5: ')) escolhi...
40.615385
89
0.746212
518a6eb7360210e1c4b4b328887c594673a69afa
438
py
Python
guessnum.py
xt0fer/python-reading-One
7003af780c405a8ab95f8cf7872febef0b7695a5
[ "MIT" ]
null
null
null
guessnum.py
xt0fer/python-reading-One
7003af780c405a8ab95f8cf7872febef0b7695a5
[ "MIT" ]
null
null
null
guessnum.py
xt0fer/python-reading-One
7003af780c405a8ab95f8cf7872febef0b7695a5
[ "MIT" ]
null
null
null
# guess number 1..99 import random n = random.randint(1, 99) guess = int(input("Enter an integer from 1 to 99: ")) while n != "guess": print if guess < n: print("guess is low") guess = int(input("Enter an integer from 1 to 99: ")) elif guess > n: print("guess is high") guess ...
27.375
61
0.563927
5a6048d2dfa72f81f80965f076ad910216aff239
6,781
py
Python
src/stage2/cascade_pyramid_network_v12.py
gathierry/FashionAI-KeyPointsDetectionOfApparel
2e0942b42b4a9cd974cdddc151675738dc8a8cb4
[ "Apache-2.0" ]
174
2018-06-04T02:12:34.000Z
2022-03-30T07:01:29.000Z
src/stage2/cascade_pyramid_network_v12.py
gathierry/FashionAI-KeyPointsDetectionOfApparel
2e0942b42b4a9cd974cdddc151675738dc8a8cb4
[ "Apache-2.0" ]
9
2018-06-05T11:32:05.000Z
2021-09-13T09:10:05.000Z
src/stage2/cascade_pyramid_network_v12.py
gathierry/FashionAI-KeyPointsDetectionOfApparel
2e0942b42b4a9cd974cdddc151675738dc8a8cb4
[ "Apache-2.0" ]
55
2018-06-05T09:50:52.000Z
2022-03-30T15:58:00.000Z
import torch import torchvision import torch.nn as nn import torch.nn.functional as F class Bottleneck(nn.Module): expansion = 4 def __init__(self, in_planes, planes, stride=1): super(Bottleneck, self).__init__() self.conv1 = nn.Conv2d(in_planes, planes, kernel_size=1, bias=False) ...
46.129252
116
0.588556
f2a8ee470272df94f77c7b082b1c9add5089e094
2,871
py
Python
task_diary/__init__.py
Mcclawdy/task-diary
ff4dfbd0ce7610bcbf072ad0231a50f1d2791e2b
[ "Apache-2.0" ]
null
null
null
task_diary/__init__.py
Mcclawdy/task-diary
ff4dfbd0ce7610bcbf072ad0231a50f1d2791e2b
[ "Apache-2.0" ]
null
null
null
task_diary/__init__.py
Mcclawdy/task-diary
ff4dfbd0ce7610bcbf072ad0231a50f1d2791e2b
[ "Apache-2.0" ]
null
null
null
# По этому файлу пайтон понимает что это не просто папка, # а пакет и будет импортировать отсюда файлы import pkg_resources from textwrap import dedent from datetime import datetime , timedelta import sys from . import helpers as h from . import storage from .services import make_connection def input_task_data(task ...
23.532787
85
0.601533
0afc1a8fce412d5056654cc100e10e2bc5b25ce2
4,316
py
Python
python_practice/junk/pong.py
vimm0/python_exercise
7773d95b4c25b82a9d014f7a814ac83df9ebac17
[ "MIT" ]
null
null
null
python_practice/junk/pong.py
vimm0/python_exercise
7773d95b4c25b82a9d014f7a814ac83df9ebac17
[ "MIT" ]
null
null
null
python_practice/junk/pong.py
vimm0/python_exercise
7773d95b4c25b82a9d014f7a814ac83df9ebac17
[ "MIT" ]
1
2018-01-04T16:27:31.000Z
2018-01-04T16:27:31.000Z
import urwid as u """This game makes an assumption if a player is capable of making first count then, he is serving first""" def exit(key): if key == ('q','Q'): raise u.ExitMainLoop() bt = u.BigText(" Table Tennis ", u.font.HalfBlock5x4Font()) bt = u.Padding(bt, 'center', width='clip') bt = u.Filler(bt, '...
31.275362
144
0.609592
0448c6106f2b506e245d741d6d723d39ab7ac509
3,870
py
Python
style_transfer/st_train_helpers.py
johntsi/preast_qa
e95fb167f4fdeb8868fed935f88493450ea10ddd
[ "MIT" ]
null
null
null
style_transfer/st_train_helpers.py
johntsi/preast_qa
e95fb167f4fdeb8868fed935f88493450ea10ddd
[ "MIT" ]
null
null
null
style_transfer/st_train_helpers.py
johntsi/preast_qa
e95fb167f4fdeb8868fed935f88493450ea10ddd
[ "MIT" ]
null
null
null
import torch from torch.utils.data import DataLoader from collections import OrderedDict from datetime import datetime import numpy as np from st_model import StModel from st_dataset import StDataset from st_collate_fn import st_collate_fn def init_dataloader(args): """ Initializes dataloder model based on MyDatas...
32.521008
116
0.74677
41883cdc9045141902b3c27539f8dcffea6043fa
10,714
py
Python
golos/ws_client.py
Privex/golos-python
d3aeb4e33f51b052ef589cfe9838e8f5003691c1
[ "X11" ]
2
2019-11-06T16:19:07.000Z
2020-05-01T12:00:55.000Z
golos/ws_client.py
Privex/golos-python
d3aeb4e33f51b052ef589cfe9838e8f5003691c1
[ "X11" ]
null
null
null
golos/ws_client.py
Privex/golos-python
d3aeb4e33f51b052ef589cfe9838e8f5003691c1
[ "X11" ]
1
2019-10-16T01:22:33.000Z
2019-10-16T01:22:33.000Z
# -*- coding: utf-8 -*- """ Copyright:: +===================================================+ | © 2019 Privex Inc. | | https://www.privex.io | +===================================================+ | ...
35.95302
118
0.574762
862c790dc9294f7a0954824770ab8c57c1dc2c42
5,726
py
Python
runtime/isp_install_policy.py
draperlaboratory/hope-tools
904f531b72434a5e605a192b905fbedb9bed8b4c
[ "MIT" ]
2
2019-06-14T03:43:23.000Z
2019-11-28T03:26:38.000Z
runtime/isp_install_policy.py
draperlaboratory/hope-tools
904f531b72434a5e605a192b905fbedb9bed8b4c
[ "MIT" ]
15
2019-07-09T21:20:34.000Z
2022-03-02T20:40:13.000Z
runtime/isp_install_policy.py
draperlaboratory/hope-tools
904f531b72434a5e605a192b905fbedb9bed8b4c
[ "MIT" ]
3
2019-06-18T16:49:33.000Z
2020-07-22T16:57:29.000Z
#! /usr/bin/python3 import functools import itertools import operator import subprocess import os.path import time import glob import shutil import multiprocessing import argparse import sys import isp_utils import yaml import logging logger = logging.getLogger() isp_prefix = isp_utils.getIspPrefix() sys.path.append(...
35.128834
110
0.660147
bf197a7c27dd8e094384d68007635f8bd8b92f28
3,815
py
Python
src/app.py
linuxster/Crypto-Trading-Bot
aebaf1bdfa7d0aada81f98ad8db0e856bc7d421e
[ "MIT" ]
301
2017-12-29T13:23:28.000Z
2022-01-05T18:06:09.000Z
src/app.py
Pr3datorg/Crypto-Trading-Bot
34c3bf27f57b3467e2c4df06803fa94c53e8cda4
[ "MIT" ]
26
2018-01-05T11:53:03.000Z
2022-02-20T17:12:31.000Z
src/app.py
Pr3datorg/Crypto-Trading-Bot
34c3bf27f57b3467e2c4df06803fa94c53e8cda4
[ "MIT" ]
111
2017-12-30T21:23:20.000Z
2022-02-25T01:56:44.000Z
import time import json from requests.exceptions import ConnectionError, SSLError from messenger import Messenger from trader import Trader from logger import logger from directory_utilities import get_json_from_file def get_secrets(): secrets_file_directory = "../database/secrets.json" secrets_template = { ...
30.03937
87
0.554128
142258e4b789134c42607e6dc9a379fdfc0465ab
93,281
py
Python
project.py
basebaseb/repo
ae7e0f658f7982c2fb7116ddab27fc9a3c75cfe1
[ "Apache-2.0" ]
null
null
null
project.py
basebaseb/repo
ae7e0f658f7982c2fb7116ddab27fc9a3c75cfe1
[ "Apache-2.0" ]
null
null
null
project.py
basebaseb/repo
ae7e0f658f7982c2fb7116ddab27fc9a3c75cfe1
[ "Apache-2.0" ]
2
2020-11-17T01:10:27.000Z
2020-11-17T01:33:36.000Z
# Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
31.620678
81
0.59295
159ce724174078094b717a42757fab5b11a2af2f
8,910
py
Python
sandbox/lib/jumpscale/JumpscaleLibs/tools/googleslides/slides2html/downloader.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
sandbox/lib/jumpscale/JumpscaleLibs/tools/googleslides/slides2html/downloader.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
117
2019-09-01T11:59:19.000Z
2020-07-14T11:10:08.000Z
sandbox/lib/jumpscale/JumpscaleLibs/tools/googleslides/slides2html/downloader.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
2
2020-04-06T15:21:23.000Z
2020-05-07T04:29:53.000Z
import os from concurrent.futures import ThreadPoolExecutor, wait import requests from configparser import ConfigParser from JumpscaleLibs.tools.googleslides.slides2html.google_links_utils import get_slide_id, get_presentation_id, link_info from Jumpscale import j # logging.basicConfig() # logger = logging.getLogger('...
39.424779
120
0.606397
a51a21071d42a0e73fbc01967ce05cfa02414ec1
18,446
py
Python
p4lib/roadManager.py
propellingbits/diyjac-SDC-P4
f8bdb31420bf894dcbc5f00a8326e14a82a34e04
[ "MIT" ]
1
2019-02-03T06:54:43.000Z
2019-02-03T06:54:43.000Z
p4lib/roadManager.py
propellingbits/diyjac-SDC-P4
f8bdb31420bf894dcbc5f00a8326e14a82a34e04
[ "MIT" ]
null
null
null
p4lib/roadManager.py
propellingbits/diyjac-SDC-P4
f8bdb31420bf894dcbc5f00a8326e14a82a34e04
[ "MIT" ]
null
null
null
#!/usr/bin/python """ roadManager.py: version 0.1.0 History: 2017/01/07: Initial version converted to a class """ import numpy as np import cv2 import math from p4lib.cameraCal import CameraCal from p4lib.imageFilters import ImageFilters from p4lib.projectionManager import ProjectionManager from p4lib.line import Lin...
48.036458
211
0.626586
63f30fe58883140bd076400f94b91ad17afd8ada
1,716
py
Python
scripts/ips678/cleaning_users.py
ab-apps/aryabota
dfb109203d842cfacf75b91a48d6a6f79144e4f9
[ "MIT" ]
5
2021-09-23T12:53:35.000Z
2021-10-10T11:31:10.000Z
scripts/ips678/cleaning_users.py
ab-apps/aryabota
dfb109203d842cfacf75b91a48d6a6f79144e4f9
[ "MIT" ]
1
2021-10-05T05:33:45.000Z
2021-10-06T13:13:56.000Z
scripts/ips678/cleaning_users.py
ab-apps/aryabota
dfb109203d842cfacf75b91a48d6a6f79144e4f9
[ "MIT" ]
6
2021-10-05T05:24:12.000Z
2022-01-19T14:14:20.000Z
import pymongo import urllib import ssl MONGODB_URL = "mongodb+srv://admin:{password}@aryabota-db-cluster.kbxud.mongodb.net/myFirstDatabase?retryWrites=true&w=majority" MONGODB_PASSWORD = "stressbots@123" """ Service to access Mongo DB Cluster """ client = pymongo.MongoClient(MONGODB_URL.format(password = urllib.par...
33
130
0.634615
e5c3ec18e8b0840bac4d643471c8fcc2e8a7205a
1,175
py
Python
home_application/migrations/0007_auto_20171222_0959.py
EthanHanFeng/bk_framework
237c5a7e370674a1d20e9cb3034507e405a6042d
[ "Apache-2.0" ]
1
2020-01-09T09:15:55.000Z
2020-01-09T09:15:55.000Z
home_application/migrations/0007_auto_20171222_0959.py
EthanHanFeng/bk_framework
237c5a7e370674a1d20e9cb3034507e405a6042d
[ "Apache-2.0" ]
null
null
null
home_application/migrations/0007_auto_20171222_0959.py
EthanHanFeng/bk_framework
237c5a7e370674a1d20e9cb3034507e405a6042d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import datetime class Migration(migrations.Migration): dependencies = [ ('home_application', '0006_auto_20171222_0958'), ] operations = [ migrations.AlterField( model_nam...
32.638889
122
0.613617
ec57a6542ac4da1ff5fb3850f03f46866b9e1ad7
7,557
py
Python
clone-github-user-repos.py
mrlesmithjr/python-clone-github-user-repos
3374540c613f63819402cf2dd5f504893bdcbc0b
[ "MIT" ]
1
2021-04-30T16:53:03.000Z
2021-04-30T16:53:03.000Z
clone-github-user-repos.py
mrlesmithjr/python-clone-github-user-repos
3374540c613f63819402cf2dd5f504893bdcbc0b
[ "MIT" ]
null
null
null
clone-github-user-repos.py
mrlesmithjr/python-clone-github-user-repos
3374540c613f63819402cf2dd5f504893bdcbc0b
[ "MIT" ]
1
2021-04-30T16:53:06.000Z
2021-04-30T16:53:06.000Z
#! /usr/bin/env python """Just a handy script to clone a GitHub user's repos locally.""" import os from os.path import expanduser from configparser import SafeConfigParser import logging import sys from pygithub3 import Github import git __author__ = "Larry Smith Jr." __email___ = "mrlesmithjr@gmail.com" __maintainer...
37.410891
78
0.659124
09ba64128448cbebeb97ef7e9b35fddbbe7f0e81
1,174
py
Python
BasicCalc.py
AlmondLemons/Basic_Python_Calculator_MLH
86f41fc11073fff71c198f4463cf2a966c604f72
[ "MIT" ]
null
null
null
BasicCalc.py
AlmondLemons/Basic_Python_Calculator_MLH
86f41fc11073fff71c198f4463cf2a966c604f72
[ "MIT" ]
null
null
null
BasicCalc.py
AlmondLemons/Basic_Python_Calculator_MLH
86f41fc11073fff71c198f4463cf2a966c604f72
[ "MIT" ]
null
null
null
# Python program for simple calculator # Function to add two numbers def add(num1, num2): return num1 + num2 # Function to subtract two numbers def subtract(num1, num2): return num1 - num2 # Function to multiply two numbers def multiply(num1, num2): return num1 * num2 # Function to divide two ...
23.48
58
0.580068
ea82270defce307fdb8f93fbbf4a0e9f45f44801
63,830
py
Python
venv1/Lib/site-packages/tensorflow/python/ops/rnn.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
null
null
null
venv1/Lib/site-packages/tensorflow/python/ops/rnn.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
1
2021-05-20T00:58:04.000Z
2021-05-20T00:58:04.000Z
venv1/Lib/site-packages/tensorflow/python/ops/rnn.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
42.076467
81
0.67639
171df31212c88da81bde66dcc60215de85951bad
9,396
py
Python
wiiu_database_updater/eshop.py
arcticdiv/wiiu_database_updater
2b5f834f392d23ab4d00def2e2539943c6a44492
[ "Apache-2.0" ]
null
null
null
wiiu_database_updater/eshop.py
arcticdiv/wiiu_database_updater
2b5f834f392d23ab4d00def2e2539943c6a44492
[ "Apache-2.0" ]
null
null
null
wiiu_database_updater/eshop.py
arcticdiv/wiiu_database_updater
2b5f834f392d23ab4d00def2e2539943c6a44492
[ "Apache-2.0" ]
null
null
null
import logging import itertools from typing import List, Optional from nus_tools import ids from nus_tools.sources import \ Samurai, Ninja, IDBEServer, CertType, \ TagayaCDN, TagayaNoCDN, \ ContentServerCDN from nus_tools.region import Region from reqcli.errors import ResponseStatusError from reqcli.source...
41.76
135
0.593338
add9c1ee80df1bb590377766f5d3c629ba9b2cf8
3,859
py
Python
zerver/tornado/views.py
GauravVirmani/zulip
5a204d7c84d60e193f1ea0900d42848c5276a095
[ "Apache-2.0" ]
null
null
null
zerver/tornado/views.py
GauravVirmani/zulip
5a204d7c84d60e193f1ea0900d42848c5276a095
[ "Apache-2.0" ]
null
null
null
zerver/tornado/views.py
GauravVirmani/zulip
5a204d7c84d60e193f1ea0900d42848c5276a095
[ "Apache-2.0" ]
1
2021-06-10T15:12:52.000Z
2021-06-10T15:12:52.000Z
from __future__ import absolute_import from django.utils.translation import ugettext as _ from django.http import HttpRequest, HttpResponse from zerver.models import get_client, UserProfile, Client from zerver.decorator import asynchronous, \ authenticated_json_post_view, internal_notify_view, RespondAsynchronou...
41.945652
218
0.684892
b340426f77e4f1587d816b42dd6f679b1fac5d25
14,988
py
Python
nova_powervm/tests/virt/powervm/nvram/test_swift.py
openstack/nova-powervm
376d9493e2a10313068508daf9054d7ecf6d121f
[ "Apache-2.0" ]
24
2015-10-18T02:55:20.000Z
2021-11-17T11:43:51.000Z
nova_powervm/tests/virt/powervm/nvram/test_swift.py
openstack/nova-powervm
376d9493e2a10313068508daf9054d7ecf6d121f
[ "Apache-2.0" ]
null
null
null
nova_powervm/tests/virt/powervm/nvram/test_swift.py
openstack/nova-powervm
376d9493e2a10313068508daf9054d7ecf6d121f
[ "Apache-2.0" ]
12
2015-10-26T17:38:05.000Z
2021-07-21T12:45:19.000Z
# Copyright 2016, 2018 IBM Corp. # # 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 require...
46.8375
79
0.623899