hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
4959b0c95664f6b5e44804e1d10f0d164fcb9038
2,335
py
Python
setup.py
sankethvedula/flowtorch
44a0f0eff842dd33ca17b01f4e02d8cdda005aa8
[ "MIT" ]
29
2020-12-19T00:29:42.000Z
2021-08-12T19:11:47.000Z
setup.py
sankethvedula/flowtorch
44a0f0eff842dd33ca17b01f4e02d8cdda005aa8
[ "MIT" ]
30
2020-12-29T04:42:38.000Z
2021-02-19T22:29:38.000Z
setup.py
sankethvedula/flowtorch
44a0f0eff842dd33ca17b01f4e02d8cdda005aa8
[ "MIT" ]
1
2021-05-06T21:25:45.000Z
2021-05-06T21:25:45.000Z
# Copyright (c) Meta Platforms, Inc import os import sys from setuptools import find_packages, setup REQUIRED_MAJOR = 3 REQUIRED_MINOR = 7 TEST_REQUIRES = ["numpy", "pytest", "pytest-cov", "scipy"] DEV_REQUIRES = TEST_REQUIRES + [ "black", "flake8", "flake8-bugbear", "mypy", "toml", "usort"...
26.534091
72
0.616702
0
0
0
0
0
0
0
0
1,036
0.443683
495c1efa0fbbd4eda9cf54a8e5e4784dac2375f0
12,923
py
Python
nn/train.py
julian-carpenter/airynet
7ad87bbc717107f72d69547e4243373c05dadf70
[ "MIT" ]
8
2019-03-17T10:45:19.000Z
2022-01-13T17:36:54.000Z
nn/train.py
julian-carpenter/airynet
7ad87bbc717107f72d69547e4243373c05dadf70
[ "MIT" ]
null
null
null
nn/train.py
julian-carpenter/airynet
7ad87bbc717107f72d69547e4243373c05dadf70
[ "MIT" ]
1
2019-07-24T05:59:38.000Z
2019-07-24T05:59:38.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import nn import tensorflow as tf from tensorflow.python.client import device_lib from numpy import min, max def model_fn(features, labels, mode, params): """Model function for airynet network""" def...
40.384375
79
0.583998
0
0
0
0
0
0
0
0
2,765
0.21396
495c925b5444da2267f89a8db3c5a875669b6a75
310
py
Python
retrobiocat_web/app/db_analysis/__init__.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
9
2020-12-01T16:33:02.000Z
2022-01-19T20:02:42.000Z
retrobiocat_web/app/db_analysis/__init__.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
4
2020-10-02T14:38:32.000Z
2021-08-02T09:23:58.000Z
retrobiocat_web/app/db_analysis/__init__.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
6
2021-01-14T07:48:36.000Z
2022-03-20T17:34:27.000Z
from flask import Blueprint bp = Blueprint('db_analysis', __name__, template_folder='templates', static_folder='static', static_url_path='/db_analysis/static' ) from retrobiocat_web.app.db_analysis.routes import bioinformatics, ssn
25.833333
70
0.616129
0
0
0
0
0
0
0
0
53
0.170968
495d8b60f3e72589eb60ba4876bee12c223e7de1
10,249
py
Python
tasks.py
pycopia/devtest
9ec93045ba4bab5b20ce99dc61cebd5b5a234d01
[ "Apache-2.0" ]
null
null
null
tasks.py
pycopia/devtest
9ec93045ba4bab5b20ce99dc61cebd5b5a234d01
[ "Apache-2.0" ]
null
null
null
tasks.py
pycopia/devtest
9ec93045ba4bab5b20ce99dc61cebd5b5a234d01
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3.9 """Tasks file used by the *invoke* command. This simplifies some common development tasks. Run these tasks with the `invoke` tool. """ from __future__ import annotations import sys import os import shutil import getpass from glob import glob from pathlib import Path import keyring import s...
28.469444
100
0.623085
0
0
0
0
7,445
0.726412
0
0
4,757
0.464143
495dad09c3d51139d0567841ccbcb4d16adb5840
3,846
py
Python
sandbox/lib/jumpscale/Jumpscale/servers/gedis/tests/3_threebot_redis_registration.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
sandbox/lib/jumpscale/Jumpscale/servers/gedis/tests/3_threebot_redis_registration.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
sandbox/lib/jumpscale/Jumpscale/servers/gedis/tests/3_threebot_redis_registration.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
from Jumpscale import j from io import BytesIO import binascii def main(self): """ kosmos -p 'j.servers.gedis.test("threebot_redis_registration")' """ ####THREEBOT REGISTRATION phonebook = j.threebot.package.phonebook.client_get() if j.sal.nettools.tcpPortConnectionTest("www.google.com", 44...
32.871795
118
0.607904
0
0
0
0
0
0
0
0
835
0.217109
495f237d0412eaba51c51ff1ebcf25e4b6ae6465
2,803
py
Python
font/gen.py
smaji-org/cjkv_info_sample
12440b938a58b2384a3c9d11c0897dd4101d6fe6
[ "MIT" ]
null
null
null
font/gen.py
smaji-org/cjkv_info_sample
12440b938a58b2384a3c9d11c0897dd4101d6fe6
[ "MIT" ]
null
null
null
font/gen.py
smaji-org/cjkv_info_sample
12440b938a58b2384a3c9d11c0897dd4101d6fe6
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding:utf-8 -*- import os import argparse import glob from functools import partial import fontforge import psMat import source opt_parser= argparse.ArgumentParser() opt_parser.add_argument("--cjkv_info", type= str, help= u"the path of cjkv_info") opt_parser.add_argument("--region"...
26.951923
72
0.662861
224
0.079914
0
0
0
0
0
0
402
0.143418
496001f2e20c60b98e9d4d0701aee95ac8df87b1
3,692
py
Python
alarm_control_panel.py
rs1932/homeassistant-ring_alarm_component
b65b8ee1bc7e7408c3bc1adb6fd4e3f4ebf330d6
[ "Apache-2.0" ]
4
2019-09-07T23:15:54.000Z
2020-04-20T22:47:37.000Z
alarm_control_panel.py
rs1932/homeassistant-ring_alarm_component
b65b8ee1bc7e7408c3bc1adb6fd4e3f4ebf330d6
[ "Apache-2.0" ]
3
2019-09-10T00:03:24.000Z
2020-10-02T13:26:08.000Z
alarm_control_panel.py
rs1932/homeassistant-ring_alarm_component
b65b8ee1bc7e7408c3bc1adb6fd4e3f4ebf330d6
[ "Apache-2.0" ]
3
2019-11-19T11:03:01.000Z
2021-05-12T20:11:16.000Z
import logging import pandas as pd from homeassistant.components.alarm_control_panel import ( AlarmControlPanel ) from homeassistant.core import callback from homeassistant.util import convert from .ringalarmdevice import RingAlarmDevice from .constants import * from homeassistant.const import ( STATE_ALARM_...
31.288136
93
0.54117
3,104
0.840737
0
0
317
0.085861
0
0
417
0.112947
4960a6159309ea3987628a9491068ccbc097d8ac
4,224
py
Python
bot/game.py
thequeenofspades/AlphaGOLADZero
f057f249bcda21ef570a5d8d8753544bf743aaec
[ "Apache-2.0" ]
1
2018-11-01T01:56:26.000Z
2018-11-01T01:56:26.000Z
bot/game.py
thequeenofspades/AlphaGOLADZero
f057f249bcda21ef570a5d8d8753544bf743aaec
[ "Apache-2.0" ]
7
2018-02-17T00:35:26.000Z
2018-06-06T23:55:22.000Z
bot/game.py
thequeenofspades/AlphaGOLADZero
f057f249bcda21ef570a5d8d8753544bf743aaec
[ "Apache-2.0" ]
null
null
null
from sys import stdin, stdout, stderr import traceback import time from player import Player from field.field import Field class Game: def __init__(self): self.time_per_move = -1 self.timebank = -1 self.last_update = None self.max_rounds = -1 self.round = 0 self.pl...
33
98
0.529356
4,098
0.97017
0
0
133
0.031487
0
0
578
0.136837
4960c8757588886d5cee0b290cbf124fc76beb18
552
py
Python
config/ConfigSices.py
atosborges00/sereno_bot
06bedb02847eff050adeadb6bcc5440bcd2283c3
[ "FSFAP" ]
null
null
null
config/ConfigSices.py
atosborges00/sereno_bot
06bedb02847eff050adeadb6bcc5440bcd2283c3
[ "FSFAP" ]
null
null
null
config/ConfigSices.py
atosborges00/sereno_bot
06bedb02847eff050adeadb6bcc5440bcd2283c3
[ "FSFAP" ]
null
null
null
from os import path from config.ConfigPaths import ConfigPaths class ConfigSices: """ Sices platform useful URLs """ LOGIN_URL = 'https://monitoramento.sicessolar.com.br/login' ANALYTICS_PAGE = 'https://monitoramento.sicessolar.com.br/analytics?und={code}' """ Sices platform default directories...
26.285714
83
0.697464
486
0.880435
0
0
0
0
0
0
288
0.521739
4961b43029a0917649b5f3a648e7d599051b3b4f
757
py
Python
main.py
leonli/codename-gen
53a66124184e9691d22bfd7db6274f1d44fe0a75
[ "MIT" ]
null
null
null
main.py
leonli/codename-gen
53a66124184e9691d22bfd7db6274f1d44fe0a75
[ "MIT" ]
null
null
null
main.py
leonli/codename-gen
53a66124184e9691d22bfd7db6274f1d44fe0a75
[ "MIT" ]
null
null
null
import click import random from pyfiglet import Figlet from termcolor import colored, cprint import imagenet @click.command() @click.option("--count", default=10, help="Yield number of codenames.") def codename_gen(count): """Enjoy the codenames 🍺""" imagenet_cls = imagenet.imagenet1000_labels() f = Figle...
32.913043
95
0.611625
0
0
0
0
604
0.791612
0
0
275
0.360419
4961cb44515f6694bce4182b84680ae488d272d1
14,882
py
Python
binder/plugins/views/userview.py
asma-oueslati/django-binder
0a16a928664b4be2b2b8e3f5f65c29301f0096fe
[ "MIT" ]
null
null
null
binder/plugins/views/userview.py
asma-oueslati/django-binder
0a16a928664b4be2b2b8e3f5f65c29301f0096fe
[ "MIT" ]
null
null
null
binder/plugins/views/userview.py
asma-oueslati/django-binder
0a16a928664b4be2b2b8e3f5f65c29301f0096fe
[ "MIT" ]
null
null
null
import logging import json from abc import ABCMeta, abstractmethod from django.contrib import auth from django.contrib.auth import update_session_auth_hash, password_validation from django.contrib.auth.tokens import default_token_generator from django.core.exceptions import ValidationError, PermissionDenied from djang...
27.009074
118
0.73216
13,837
0.929781
0
0
9,088
0.610671
0
0
4,468
0.300228
4961f5ae237c556abd210443e12861307b7068fa
362
py
Python
libra_client/crypto/x25519.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
libra_client/crypto/x25519.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
libra_client/crypto/x25519.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
1
2022-01-05T06:49:42.000Z
2022-01-05T06:49:42.000Z
from libra_client.canoser import DelegateT, BytesT # Size of a X25519 private key PRIVATE_KEY_SIZE = 32 # Size of a X25519 public key PUBLIC_KEY_SIZE = 32 # Size of a X25519 shared secret SHARED_SECRET_SIZE = 32 class PrivateKey(DelegateT): delegate_type = BytesT(PRIVATE_KEY_SIZE) class PublicKey(DelegateT): ...
22.625
50
0.787293
144
0.39779
0
0
0
0
0
0
91
0.251381
49633e3a1fe78865b9e181ac00df94f57d6194b3
3,303
py
Python
plenum/test/plugin/demo_plugin/main.py
SchwiftyRick/indy-plenum
d23b99423eb805971e50446d7e89ada892aa6811
[ "Apache-2.0" ]
null
null
null
plenum/test/plugin/demo_plugin/main.py
SchwiftyRick/indy-plenum
d23b99423eb805971e50446d7e89ada892aa6811
[ "Apache-2.0" ]
1
2021-07-14T17:10:04.000Z
2021-07-14T17:10:04.000Z
plenum/test/plugin/demo_plugin/main.py
SchwiftyRick/indy-plenum
d23b99423eb805971e50446d7e89ada892aa6811
[ "Apache-2.0" ]
2
2021-02-19T15:36:50.000Z
2021-07-20T11:37:54.000Z
from plenum.common.constants import DOMAIN_LEDGER_ID from plenum.server.client_authn import CoreAuthNr from plenum.test.plugin.demo_plugin import AUCTION_LEDGER_ID from plenum.test.plugin.demo_plugin.batch_handlers.auction_batch_handler import AuctionBatchHandler from plenum.test.plugin.demo_plugin.config import get_co...
58.982143
101
0.693612
0
0
0
0
0
0
0
0
46
0.013927
496648c5898f258ebf19c8b06ad31502f0290680
5,213
py
Python
biobakery_workflows/document_templates/quality_control_paired_dna_rna.template.py
shbrief/biobakery_workflows
2037f45caa8e4af9a40b5c1d2886cde15bc00381
[ "MIT" ]
1
2020-11-16T20:04:15.000Z
2020-11-16T20:04:15.000Z
biobakery_workflows/document_templates/quality_control_paired_dna_rna.template.py
mlwright97/biobakery_workflows
b3e74f25253d7354bebd02936ac25986281e85d6
[ "MIT" ]
null
null
null
biobakery_workflows/document_templates/quality_control_paired_dna_rna.template.py
mlwright97/biobakery_workflows
b3e74f25253d7354bebd02936ac25986281e85d6
[ "MIT" ]
null
null
null
#+ echo=False import numpy from biobakery_workflows import utilities, visualizations, files from anadama2 import PweaveDocument document=PweaveDocument() # get the variables for this document generation task vars = document.get_vars() # determine the document format pdf_format = True if vars["format"] == "pdf" ...
38.330882
156
0.782851
0
0
0
0
0
0
0
0
1,834
0.351813
49665a0b0e4dd98e4c598bd1960650361ca30dc7
1,604
py
Python
Other_notebooks/Shapefile_Demo.py
gamedaygeorge/datacube-applications-library
1b6314ee3465f9f17930391a4c241e981a9e200e
[ "Apache-2.0" ]
null
null
null
Other_notebooks/Shapefile_Demo.py
gamedaygeorge/datacube-applications-library
1b6314ee3465f9f17930391a4c241e981a9e200e
[ "Apache-2.0" ]
null
null
null
Other_notebooks/Shapefile_Demo.py
gamedaygeorge/datacube-applications-library
1b6314ee3465f9f17930391a4c241e981a9e200e
[ "Apache-2.0" ]
1
2021-02-25T14:19:05.000Z
2021-02-25T14:19:05.000Z
# Code behind module for Shapefile_Demo.ipynb ################################ ## ## Import Statments ## ################################ # Import standard Python modules import sys import datacube import numpy as np import fiona import xarray as xr from rasterio.features import geometry_mask import shapely from sha...
28.642857
86
0.596633
0
0
0
0
0
0
0
0
632
0.394015
496664e291d159374bf05460e543caa52023fc6f
272
py
Python
Day 02/Day 02.1.py
Mraedis/AoC2021
4d198f8b227ce8f8f2f3fd2fed9396d7898e9d2a
[ "Apache-2.0" ]
1
2021-11-30T22:41:09.000Z
2021-11-30T22:41:09.000Z
Day 02/Day 02.1.py
Mraedis/AoC2021
4d198f8b227ce8f8f2f3fd2fed9396d7898e9d2a
[ "Apache-2.0" ]
null
null
null
Day 02/Day 02.1.py
Mraedis/AoC2021
4d198f8b227ce8f8f2f3fd2fed9396d7898e9d2a
[ "Apache-2.0" ]
null
null
null
linelist = [line for line in open('Day 02.input').readlines()] hor = 0 dep = 0 for line in linelist: mov, amount = line.split(' ') if mov == 'forward': hor += int(amount) else: dep += int(amount) * (-1 if mov == 'up' else 1) print(hor * dep)
20.923077
62
0.555147
0
0
0
0
0
0
0
0
30
0.110294
49670dd8b225f1420aba3e75006477f4bfe63dc1
1,879
py
Python
examples/simple1d/driver.py
michael-a-hansen/jalapeno
2f0d47467a78395e42854e11abebcf1b7721e0be
[ "MIT" ]
1
2019-11-09T15:13:38.000Z
2019-11-09T15:13:38.000Z
examples/simple1d/driver.py
michael-a-hansen/jalapeno
2f0d47467a78395e42854e11abebcf1b7721e0be
[ "MIT" ]
3
2016-10-05T22:57:46.000Z
2016-10-06T06:26:22.000Z
examples/simple1d/driver.py
michael-a-hansen/jalapeno
2f0d47467a78395e42854e11abebcf1b7721e0be
[ "MIT" ]
null
null
null
''' This example provides three examples of a simple plot of 1-D data. 1. a publication-ready single column figure, which is printed to png (600 dpi), pdf, and svg 2. a presentation-ready figure on a black background Four steps are involved in each figure: - load/generate the data - construct a 1d plot (figure, axis,...
33.553571
104
0.581692
0
0
0
0
0
0
0
0
800
0.425758
4968c48330c18edd322258fb79f85333f213b40b
2,306
py
Python
process/1_embed_keep_ge.py
omarmaddouri/GCNCC_1
ec858bbe8246e4af15f7b870ca0ccafdea93d627
[ "MIT" ]
4
2020-12-03T11:57:15.000Z
2021-12-09T05:20:44.000Z
process/1_embed_keep_ge.py
alkaidone/GCNCC
3270b4c2d48e0090a18a0ab1df3b9fd81627029d
[ "MIT" ]
5
2020-01-28T23:14:40.000Z
2021-08-25T15:55:23.000Z
process/1_embed_keep_ge.py
alkaidone/GCNCC
3270b4c2d48e0090a18a0ab1df3b9fd81627029d
[ "MIT" ]
3
2021-11-23T05:13:27.000Z
2021-12-30T08:12:48.000Z
from __future__ import division from __future__ import print_function from pathlib import Path import sys project_path = Path(__file__).resolve().parents[1] sys.path.append(str(project_path)) from keras.layers import Dense, Activation, Dropout from keras.models import Model, Sequential from keras.regularize...
38.433333
139
0.685603
0
0
0
0
0
0
0
0
808
0.35039
496956f2c24db98208ca44b218ea029a5dcff3f8
832
py
Python
docs/modelserving/detect/aif/germancredit/simulate_predicts.py
chinhuang007/website
c5324e9ee3e7f202c226836de0aca9ebd33b61b2
[ "Apache-2.0" ]
1,146
2019-03-27T21:14:34.000Z
2021-09-22T08:36:46.000Z
docs/modelserving/detect/aif/germancredit/simulate_predicts.py
chinhuang007/website
c5324e9ee3e7f202c226836de0aca9ebd33b61b2
[ "Apache-2.0" ]
1,803
2019-03-27T22:16:02.000Z
2021-09-22T15:27:44.000Z
docs/modelserving/detect/aif/germancredit/simulate_predicts.py
chinhuang007/website
c5324e9ee3e7f202c226836de0aca9ebd33b61b2
[ "Apache-2.0" ]
573
2019-03-27T21:14:58.000Z
2021-09-20T21:15:52.000Z
import sys import json import time import requests if len(sys.argv) < 3: raise Exception("No endpoint specified. ") endpoint = sys.argv[1] headers = { 'Host': sys.argv[2] } with open('input.json') as file: sample_file = json.load(file) inputs = sample_file["instances"] # Split inputs into chunks of size ...
25.212121
74
0.689904
0
0
0
0
0
0
0
0
212
0.254808
496a50df8aab51c7339b1ff94cb179d8c9744ace
1,272
py
Python
sdc/ysdc_dataset_api/utils/serialization.py
sty61010/shifts
d3bb3086d8f2581f74644585701f4b1db4338483
[ "Apache-2.0" ]
156
2021-07-16T08:54:39.000Z
2022-03-24T11:49:36.000Z
sdc/ysdc_dataset_api/utils/serialization.py
sty61010/shifts
d3bb3086d8f2581f74644585701f4b1db4338483
[ "Apache-2.0" ]
18
2021-07-21T14:02:46.000Z
2022-02-26T04:07:12.000Z
sdc/ysdc_dataset_api/utils/serialization.py
sty61010/shifts
d3bb3086d8f2581f74644585701f4b1db4338483
[ "Apache-2.0" ]
41
2021-07-21T05:38:07.000Z
2022-01-13T15:25:51.000Z
import io import zlib import numpy as np def maybe_compress(str, compress): return zlib.compress(str) if compress else str def maybe_decompress(str, decompress): return zlib.decompress(str) if decompress else str def serialize_numpy(arr: np.ndarray, compress: bool = False) -> str: """Serializes numpy...
27.06383
91
0.687893
0
0
0
0
0
0
0
0
612
0.481132
496b0cdd9c9c0a2581d8be6db775211985c0614c
278
py
Python
hubspot/discovery/crm/extensions/videoconferencing/discovery.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
117
2020-04-06T08:22:53.000Z
2022-03-18T03:41:29.000Z
hubspot/discovery/crm/extensions/videoconferencing/discovery.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
62
2020-04-06T16:21:06.000Z
2022-03-17T16:50:44.000Z
hubspot/discovery/crm/extensions/videoconferencing/discovery.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
45
2020-04-06T16:13:52.000Z
2022-03-30T21:33:17.000Z
import hubspot.crm.extensions.videoconferencing as api_client from ....discovery_base import DiscoveryBase class Discovery(DiscoveryBase): @property def settings_api(self) -> api_client.SettingsApi: return self._configure_api_client(api_client, "SettingsApi")
30.888889
68
0.78777
168
0.604317
0
0
132
0.47482
0
0
13
0.046763
496b6450d30926a47dd2ad486b0b0f71fa6e56dd
10,910
py
Python
train_margin.py
youmingdeng/DMLPlayground
37070c10278597a4413303061d60d69ce2c4f87e
[ "Apache-2.0" ]
1
2021-11-11T16:05:56.000Z
2021-11-11T16:05:56.000Z
train_margin.py
youmingdeng/DMLPlayground
37070c10278597a4413303061d60d69ce2c4f87e
[ "Apache-2.0" ]
null
null
null
train_margin.py
youmingdeng/DMLPlayground
37070c10278597a4413303061d60d69ce2c4f87e
[ "Apache-2.0" ]
1
2020-04-01T04:50:36.000Z
2020-04-01T04:50:36.000Z
from __future__ import division import logging import mxnet as mx import numpy as np from mxnet import autograd as ag, nd from mxnet import gluon from tqdm import tqdm from common.evaluate import evaluate from common.parser import TrainingParser from common.utils import average_results, format_results, get_context, ...
44.530612
120
0.634372
0
0
0
0
0
0
0
0
1,949
0.178643
496d5dcb74bbf5f2fa198d1e5b24c0ea5fec7ece
6,187
py
Python
doc/tools/doc_merge.py
N0hbdy/godot
d4a222cd9d849a63f0535f70cbf78700bc5c815b
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
39
2018-12-17T07:11:37.000Z
2021-09-28T10:02:45.000Z
doc/tools/doc_merge.py
N0hbdy/godot
d4a222cd9d849a63f0535f70cbf78700bc5c815b
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
38
2021-07-29T01:15:35.000Z
2022-03-20T01:01:28.000Z
doc/tools/doc_merge.py
N0hbdy/godot
d4a222cd9d849a63f0535f70cbf78700bc5c815b
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
3
2021-09-06T18:28:23.000Z
2021-09-11T11:59:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import xml.etree.ElementTree as ET tree = ET.parse(sys.argv[1]) old_doc = tree.getroot() tree = ET.parse(sys.argv[2]) new_doc = tree.getroot() f = file(sys.argv[3], "wb") tab = 0 old_classes = {} def write_string(_f, text, newline=True): for t in rang...
28.643519
170
0.537902
0
0
0
0
0
0
0
0
1,014
0.163892
496d668dab143daad188848fbd26c751e580633a
357
py
Python
contentcuration/contentcuration/migrations/0059_merge.py
Tlazypanda/studio
cd1c2f169c705027cdd808cbbcae907d0a9b21d2
[ "MIT" ]
1
2019-03-30T18:14:25.000Z
2019-03-30T18:14:25.000Z
contentcuration/contentcuration/migrations/0059_merge.py
Tlazypanda/studio
cd1c2f169c705027cdd808cbbcae907d0a9b21d2
[ "MIT" ]
4
2016-05-06T17:19:30.000Z
2019-03-15T01:51:24.000Z
contentcuration/contentcuration/migrations/0059_merge.py
Tlazypanda/studio
cd1c2f169c705027cdd808cbbcae907d0a9b21d2
[ "MIT" ]
4
2016-10-18T22:49:08.000Z
2019-09-17T11:20:51.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-03-29 19:12 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('contentcuration', '0058_auto_20170223_1636'), ('contentcuration', '0057_assessmentitem_delete...
21
59
0.680672
208
0.582633
0
0
0
0
0
0
158
0.442577
496df5ac2b816d0d93ed95d0c8119c0af62b55d9
91
py
Python
controller/ORCA_CLEAN/execute.py
nestorcalvo/Backend-AudioClean
7edb373c518193bc5643e9524d78d9ba32163b3f
[ "MIT" ]
null
null
null
controller/ORCA_CLEAN/execute.py
nestorcalvo/Backend-AudioClean
7edb373c518193bc5643e9524d78d9ba32163b3f
[ "MIT" ]
null
null
null
controller/ORCA_CLEAN/execute.py
nestorcalvo/Backend-AudioClean
7edb373c518193bc5643e9524d78d9ba32163b3f
[ "MIT" ]
null
null
null
from predict import predict if __name__ == "__main__": # predict() print("A ")
15.166667
27
0.604396
0
0
0
0
0
0
0
0
28
0.307692
496f6fa945313ae8eb812d0256476b19fbb908f6
174
py
Python
fperms_iscore/main.py
druids/django-fperms-iscore
8e919cdc70ed57e0eb6407469de9ef2441ae06ad
[ "MIT" ]
1
2019-10-07T12:40:38.000Z
2019-10-07T12:40:38.000Z
fperms_iscore/main.py
druids/django-fperms-iscore
8e919cdc70ed57e0eb6407469de9ef2441ae06ad
[ "MIT" ]
3
2019-08-09T14:10:21.000Z
2022-02-01T13:48:01.000Z
fperms_iscore/main.py
druids/django-fperms-iscore
8e919cdc70ed57e0eb6407469de9ef2441ae06ad
[ "MIT" ]
null
null
null
from is_core.main import DjangoUiRestCore from fperms_iscore.mixins import PermCoreMixin class PermDjangoUiRestCore(PermCoreMixin, DjangoUiRestCore): abstract = True
19.333333
60
0.833333
81
0.465517
0
0
0
0
0
0
0
0
496f9fb09ed8ca073a1b323b69ca4902f734d230
1,269
py
Python
distanceCalc.py
jmoehler/CityDistance
0a7eb898db8ea0dbada43239652ae4aad935dda3
[ "MIT" ]
null
null
null
distanceCalc.py
jmoehler/CityDistance
0a7eb898db8ea0dbada43239652ae4aad935dda3
[ "MIT" ]
null
null
null
distanceCalc.py
jmoehler/CityDistance
0a7eb898db8ea0dbada43239652ae4aad935dda3
[ "MIT" ]
null
null
null
from math import cos, acos, pi, sqrt, sin class City: def __init__(self, name, lat, lon, temp): self.name = name self.lat = lat self.lon = lon self.temp = temp def describe(self): print("Die Koordinaten von %s sind %f Lat und %f Lon. Die Temperatur beträgt %.1f Grad Celc...
34.297297
149
0.624901
627
0.492925
0
0
0
0
0
0
326
0.256289
496fe4328017b0a5588279aa7e57db6731bb4964
95
py
Python
zoo/auditing/apps.py
uliana291/the-zoo
a15a4162c39553abe91224f4feff5d3b66f9413e
[ "MIT" ]
90
2018-11-20T10:58:24.000Z
2022-02-19T16:12:46.000Z
zoo/auditing/apps.py
uliana291/the-zoo
a15a4162c39553abe91224f4feff5d3b66f9413e
[ "MIT" ]
348
2018-11-21T09:22:31.000Z
2021-11-03T13:45:08.000Z
zoo/auditing/apps.py
aexvir/the-zoo
7816afb9a0a26c6058b030b4a987c73e952d92bd
[ "MIT" ]
11
2018-12-08T18:42:07.000Z
2021-02-21T06:27:58.000Z
from django.apps import AppConfig class AuditingConfig(AppConfig): name = "zoo.auditing"
15.833333
33
0.757895
58
0.610526
0
0
0
0
0
0
14
0.147368
49706257061fd5cb42e071e2e21ada1c26eefe8c
593
py
Python
graviteeio_cli/commands/apim/apis/definition.py
Shaker5191/graviteeio-cli
318748bb8e631743ea58afaee24333249ca3d227
[ "Apache-2.0" ]
null
null
null
graviteeio_cli/commands/apim/apis/definition.py
Shaker5191/graviteeio-cli
318748bb8e631743ea58afaee24333249ca3d227
[ "Apache-2.0" ]
null
null
null
graviteeio_cli/commands/apim/apis/definition.py
Shaker5191/graviteeio-cli
318748bb8e631743ea58afaee24333249ca3d227
[ "Apache-2.0" ]
null
null
null
import click from .definition_group.apply import apply from .definition_group.diff import diff from .definition_group.generate import generate from .definition_group.create import create # from .definition_group.lint import lint @click.group(short_help="Manage API definition configuration") @click.pass_context def d...
26.954545
91
0.819562
0
0
0
0
204
0.344013
0
0
195
0.328836
497231bff7e8e9d345553a23f55adb1bd3c5a759
1,761
py
Python
graphx.py
clever-username/baseball-card-inventory
9940ba746072892961b7ade586e63f7deb26d2e6
[ "MIT" ]
1
2021-05-18T21:32:43.000Z
2021-05-18T21:32:43.000Z
graphx.py
clever-username/baseball-card-inventory
9940ba746072892961b7ade586e63f7deb26d2e6
[ "MIT" ]
null
null
null
graphx.py
clever-username/baseball-card-inventory
9940ba746072892961b7ade586e63f7deb26d2e6
[ "MIT" ]
2
2015-05-18T14:52:01.000Z
2015-05-19T18:21:51.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Simple color picker program.""" BANNER = """ .::::::::::::::::::::::::::::::::::::::::::::::::. .. .... .. .. ...... ... .. ...
60.724138
76
0.244747
0
0
0
0
0
0
0
0
1,747
0.99205
4972f556700ff0374ba0d495d120ef3679c33357
1,176
py
Python
src/examples/colors.py
schneiderfelipe/kay
a7bf69e3bbd1b845286667b20eb1fba88faf9ea4
[ "MIT" ]
14
2021-11-18T14:56:48.000Z
2022-03-26T08:02:13.000Z
src/examples/colors.py
getcuia/cuia
685d258b3cb366d40100e6a563661b307aef5ae3
[ "MIT" ]
8
2021-11-25T13:47:12.000Z
2022-03-25T12:01:09.000Z
src/examples/colors.py
schneiderfelipe/kay
a7bf69e3bbd1b845286667b20eb1fba88faf9ea4
[ "MIT" ]
null
null
null
"""An example of using colors module.""" import asyncio from typing import Text import cuia class ColorfulExample(cuia.Store): """A store class that shows how to use colors.""" def __str__(self) -> Text: """Show me some colors.""" res = "Colors (backgrounds):\n\n" res += "\033[40mBl...
26.727273
68
0.536565
895
0.761054
0
0
0
0
128
0.108844
565
0.480442
49733958b3756fb3220a69c0ceb6f8c4a2dd5ef8
2,571
py
Python
app/voxity/channel.py
voxity/vox-ui-api
9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5
[ "MIT" ]
null
null
null
app/voxity/channel.py
voxity/vox-ui-api
9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5
[ "MIT" ]
null
null
null
app/voxity/channel.py
voxity/vox-ui-api
9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, unicode_literals from flask import current_app from . import connectors, check_respons, pager_dict from .objects.channel import Channel def get_base_url(): return current_app.config['BASE_URL'] + '/channels/' def create(exten): con = c...
25.205882
78
0.525088
0
0
0
0
0
0
0
0
265
0.103073
49736e792f64fdf62a5e05e4cdd1a7fca2758ba4
1,637
py
Python
chapter 2 - linked list/2.7.py
anuraagdjain/cracking_the_coding_interview
09083b4c464f41d5752c7ca3d27ab7c992793619
[ "MIT" ]
null
null
null
chapter 2 - linked list/2.7.py
anuraagdjain/cracking_the_coding_interview
09083b4c464f41d5752c7ca3d27ab7c992793619
[ "MIT" ]
null
null
null
chapter 2 - linked list/2.7.py
anuraagdjain/cracking_the_coding_interview
09083b4c464f41d5752c7ca3d27ab7c992793619
[ "MIT" ]
null
null
null
from linkedlist import LinkedList from node import Node class IRes: def __init__(self, result, node): self.result = result self.node = node def print_nodes(n): while(n != None): print(n.data) n = n.next def tail_and_size(n): ctr = 0 while n.next: ctr += 1 ...
18.602273
73
0.542456
103
0.06292
0
0
0
0
0
0
240
0.14661
4973e2d2ceab6b66fabf235caf79153e33be991a
2,307
py
Python
app_core/api/comments.py
Great-Li-Xin/LiCMS
9d7f78647766b49a325123f4b5ad59d6a1808eb7
[ "MIT" ]
9
2020-02-18T01:50:17.000Z
2020-05-26T09:25:41.000Z
app_core/api/comments.py
realJustinLee/LiCMS
9d7f78647766b49a325123f4b5ad59d6a1808eb7
[ "MIT" ]
1
2021-04-19T15:26:20.000Z
2021-04-19T15:26:20.000Z
app_core/api/comments.py
Great-Li-Xin/LiCMS
9d7f78647766b49a325123f4b5ad59d6a1808eb7
[ "MIT" ]
5
2020-02-18T01:50:19.000Z
2020-05-26T09:25:45.000Z
from flask import jsonify, request, g, url_for, current_app from app_core import db from app_core.api import api from app_core.api.decorators import permission_required from app_core.models import Post, Permission, Comment @api.route('/comments/') def get_comments(): page = request.args.get('page', 1, type=int) ...
33.926471
107
0.686173
0
0
0
0
2,071
0.897703
0
0
339
0.146944
4974d4d303e4a516e97419ba5b4f79eb5a463128
2,557
py
Python
ipyhop/state.py
YashBansod/IPyHOP
f3b75b420e470c693606a67cc70bdcb24eccda62
[ "BSD-3-Clause" ]
null
null
null
ipyhop/state.py
YashBansod/IPyHOP
f3b75b420e470c693606a67cc70bdcb24eccda62
[ "BSD-3-Clause" ]
null
null
null
ipyhop/state.py
YashBansod/IPyHOP
f3b75b420e470c693606a67cc70bdcb24eccda62
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ File Description: File used for definition of State Class. """ # ****************************************** Libraries to be imported ****************************************** # from copy import deepcopy # ****************************************** Class Declaration Start *****...
39.953125
120
0.431756
1,578
0.617129
0
0
0
0
0
0
1,536
0.600704
4974d677e63b39744893c4f6fa71c6ce00ac7913
2,240
py
Python
ckanext/scheming/logic.py
vrk-kpa/ckanext-scheming
b82e20e04acdc4a71163675f843ac9be74f29d41
[ "MIT" ]
null
null
null
ckanext/scheming/logic.py
vrk-kpa/ckanext-scheming
b82e20e04acdc4a71163675f843ac9be74f29d41
[ "MIT" ]
null
null
null
ckanext/scheming/logic.py
vrk-kpa/ckanext-scheming
b82e20e04acdc4a71163675f843ac9be74f29d41
[ "MIT" ]
1
2021-12-15T12:50:40.000Z
2021-12-15T12:50:40.000Z
from ckantoolkit import get_or_bust, side_effect_free, ObjectNotFound from ckanext.scheming.helpers import ( scheming_dataset_schemas, scheming_get_dataset_schema, scheming_group_schemas, scheming_get_group_schema, scheming_organization_schemas, scheming_get_organization_schema, ) @side_effect_free d...
28
78
0.729018
0
0
0
0
1,923
0.858482
0
0
780
0.348214
49755e37e2029b777679857be7a2f1b70a206d0d
2,700
py
Python
omnithinker/api/nytimes.py
stuycs-softdev-fall-2013/proj2-pd6-04-omnithinker
53bf397ce2f67e7d5c5689486ab75475e99b0eba
[ "MIT", "BSD-3-Clause" ]
1
2022-01-18T02:03:15.000Z
2022-01-18T02:03:15.000Z
omnithinker/api/nytimes.py
stuycs-softdev-fall-2013/proj2-pd6-04-omnithinker
53bf397ce2f67e7d5c5689486ab75475e99b0eba
[ "MIT", "BSD-3-Clause" ]
null
null
null
omnithinker/api/nytimes.py
stuycs-softdev-fall-2013/proj2-pd6-04-omnithinker
53bf397ce2f67e7d5c5689486ab75475e99b0eba
[ "MIT", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import json from urllib import urlopen # http://api.nytimes.com/svc/search/v2/articlesearch.json?fq=Obama&FACET_FIELD=day_of_week&BEGIN_DATE=19000101 # &API-KEY=5772CD9A42F195C96DA0E930A7182688:14:68439177 # The original link is above. What happens is because we don't specify an end date, the panda a...
35.526316
153
0.605185
1,309
0.484815
0
0
0
0
0
0
1,021
0.378148
4975838c1788d4788a4a9397bb1062a6a910a29e
694
py
Python
tests/test_pydantic_integration.py
bsnacks000/yearmonth
c6a6084931e6cc4696de5f8a7f8e48ceca83b944
[ "MIT" ]
null
null
null
tests/test_pydantic_integration.py
bsnacks000/yearmonth
c6a6084931e6cc4696de5f8a7f8e48ceca83b944
[ "MIT" ]
null
null
null
tests/test_pydantic_integration.py
bsnacks000/yearmonth
c6a6084931e6cc4696de5f8a7f8e48ceca83b944
[ "MIT" ]
null
null
null
from typing import List from yearmonth.yearmonth import YearMonth import pydantic class MyModel(pydantic.BaseModel): ym: YearMonth def test_pydantic_validators(): MyModel(ym=(2021, 1)) MyModel(ym='2021-01') MyModel(ym=('2021', '01')) def test_pydantic_schema(): schema = MyModel.schema() ...
22.387097
71
0.665706
52
0.074928
0
0
0
0
0
0
180
0.259366
4975be83811ebc74df1baade17e5a1895d1cf649
353
py
Python
C_D_Playlist.py
fairoz-ahmed/Casper_Player
f71a26002907e474a9274771565ce781beddcca4
[ "MIT" ]
null
null
null
C_D_Playlist.py
fairoz-ahmed/Casper_Player
f71a26002907e474a9274771565ce781beddcca4
[ "MIT" ]
null
null
null
C_D_Playlist.py
fairoz-ahmed/Casper_Player
f71a26002907e474a9274771565ce781beddcca4
[ "MIT" ]
null
null
null
import tkinter.messagebox from tkinter import * from tkinter import ttk from tkinter import filedialog import threading from pygame import mixer from mutagen.mp3 import MP3 import os import easygui import time import playlist_window as pw import Main as main #from PIL import ImageTk,Image def redirect(pa...
20.764706
31
0.78187
0
0
0
0
0
0
0
0
31
0.087819
49777977c495be3e64d10459c0324e75b00b5f3b
569
py
Python
docker-image/render-template.py
osism/generics
2dd914f2338c2d60d1595d7cdc4db0c107a9fb47
[ "Apache-2.0" ]
null
null
null
docker-image/render-template.py
osism/generics
2dd914f2338c2d60d1595d7cdc4db0c107a9fb47
[ "Apache-2.0" ]
3
2020-12-10T09:57:02.000Z
2020-12-10T09:57:17.000Z
docker-image/render-template.py
osism/travis
2dd914f2338c2d60d1595d7cdc4db0c107a9fb47
[ "Apache-2.0" ]
null
null
null
import os import sys import jinja2 import yaml with open(".information.yml") as fp: information = yaml.safe_load(fp) loader = jinja2.FileSystemLoader(searchpath="") environment = jinja2.Environment(loader=loader, keep_trailing_newline=True) template = environment.get_template(sys.argv[1]) result = template.rend...
27.095238
75
0.72935
0
0
0
0
0
0
0
0
122
0.214411
49788254641401f0ac3bea81c52abecf9425c9b7
58
py
Python
test/__init__.py
stungkit/tfidf_matcher
24182504d21f1eb978839b700f1c402c6288df2f
[ "MIT" ]
13
2020-02-24T18:29:15.000Z
2021-12-28T09:41:35.000Z
test/__init__.py
stungkit/tfidf_matcher
24182504d21f1eb978839b700f1c402c6288df2f
[ "MIT" ]
null
null
null
test/__init__.py
stungkit/tfidf_matcher
24182504d21f1eb978839b700f1c402c6288df2f
[ "MIT" ]
3
2020-07-21T04:32:45.000Z
2021-10-21T11:00:56.000Z
# AUTHOR: Louis Tsiattalou # DESCRIPTION: Init for Tests.
19.333333
30
0.758621
0
0
0
0
0
0
0
0
56
0.965517
4978db654876ffc9e3f0801f73bab29baba94038
29,541
py
Python
isitek.py
will-bainbridge/ISITEK
53e90e0511bbd7cd08614b943c1286c56adbee5e
[ "MIT" ]
3
2018-06-26T15:04:46.000Z
2019-09-14T09:23:44.000Z
isitek.py
will-bainbridge/ISITEK
53e90e0511bbd7cd08614b943c1286c56adbee5e
[ "MIT" ]
null
null
null
isitek.py
will-bainbridge/ISITEK
53e90e0511bbd7cd08614b943c1286c56adbee5e
[ "MIT" ]
3
2016-11-28T12:19:37.000Z
2020-02-04T00:18:56.000Z
#!/usr/bin/python ################################################################################ import numpy import os import cPickle as pickle import scipy.misc import scipy.sparse import scipy.sparse.linalg import scipy.special import sys import time class Struct: def __init__(self, **keywords): self.__dict_...
34.35
173
0.597982
484
0.016384
0
0
0
0
0
0
5,473
0.185268
497a5c9b65658e4fea7858123fdca1c39b46407f
2,343
py
Python
holobot/framework/kernel.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
1
2021-05-24T00:17:46.000Z
2021-05-24T00:17:46.000Z
holobot/framework/kernel.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
41
2021-03-24T22:50:09.000Z
2021-12-17T12:15:13.000Z
holobot/framework/kernel.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
null
null
null
from holobot.framework.lifecycle import LifecycleManagerInterface from holobot.sdk import KernelInterface from holobot.sdk.database import DatabaseManagerInterface from holobot.sdk.integration import IntegrationInterface from holobot.sdk.ioc.decorators import injectable from holobot.sdk.logging import LogInterface from...
45.057692
126
0.722151
1,864
0.795561
0
0
1,893
0.807939
0
0
309
0.131882
497a5f4c2e39ef62c200675216c42fbc21c52436
34
py
Python
tests/snmp/test_base.py
zohassadar/netdisc
9ce4d5c2b0f30d36e71118ffbe6b7ffd93e0dfc8
[ "MIT" ]
null
null
null
tests/snmp/test_base.py
zohassadar/netdisc
9ce4d5c2b0f30d36e71118ffbe6b7ffd93e0dfc8
[ "MIT" ]
null
null
null
tests/snmp/test_base.py
zohassadar/netdisc
9ce4d5c2b0f30d36e71118ffbe6b7ffd93e0dfc8
[ "MIT" ]
null
null
null
from netdisc.snmp import snmpbase
17
33
0.852941
0
0
0
0
0
0
0
0
0
0
497aef1b3a2cad12da85ea306e770352bb104646
13,063
py
Python
venv/lib/python2.7/site-packages/ansible/modules/storage/netapp/na_ontap_svm.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
venv/lib/python2.7/site-packages/ansible/modules/storage/netapp/na_ontap_svm.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
venv/lib/python2.7/site-packages/ansible/modules/storage/netapp/na_ontap_svm.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
#!/usr/bin/python # (c) 2018, NetApp, Inc # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
37.645533
86
0.580724
9,396
0.719283
0
0
0
0
0
0
4,510
0.34525
497c36a9409e9932ee77efb6c8843fae9cedceac
1,200
py
Python
prompts/wizard_of_wikipedia.py
andreamad8/FSB
a81593590189fa5ad1cc37c5857f974effd9750a
[ "MIT" ]
53
2021-10-11T03:24:14.000Z
2022-03-30T15:17:23.000Z
prompts/wizard_of_wikipedia.py
andreamad8/FSB
a81593590189fa5ad1cc37c5857f974effd9750a
[ "MIT" ]
1
2021-12-26T22:48:38.000Z
2022-01-15T18:05:32.000Z
prompts/wizard_of_wikipedia.py
andreamad8/FSB
a81593590189fa5ad1cc37c5857f974effd9750a
[ "MIT" ]
5
2022-01-27T09:07:39.000Z
2022-03-04T08:58:23.000Z
def convert_sample_to_shot_wow(sample, with_knowledge=True): prefix = "Dialogue:\n" assert len(sample["dialogue"]) == len(sample["meta"]) for turn, meta in zip(sample["dialogue"],sample["meta"]): prefix += f"User: {turn[0]}" +"\n" if with_knowledge: if len(meta)>0: ...
33.333333
69
0.500833
0
0
0
0
0
0
0
0
294
0.245
497d558f6807d6cee34934135fc08d3e5e24fbf5
487
py
Python
server/apps/api/notice/migrations/0003_alter_event_priority.py
NikitaGrishchenko/csp-tender-hack-server
56055f51bf472f0f1e56b419a48d993cc91e0f3a
[ "MIT" ]
null
null
null
server/apps/api/notice/migrations/0003_alter_event_priority.py
NikitaGrishchenko/csp-tender-hack-server
56055f51bf472f0f1e56b419a48d993cc91e0f3a
[ "MIT" ]
null
null
null
server/apps/api/notice/migrations/0003_alter_event_priority.py
NikitaGrishchenko/csp-tender-hack-server
56055f51bf472f0f1e56b419a48d993cc91e0f3a
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-27 12:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('notice', '0002_auto_20211127_0236'), ] operations = [ migrations.AlterField( model_name='event', name='priority', ...
25.631579
151
0.616016
450
0.828729
0
0
0
0
0
0
220
0.405157
497e1c5d29374050c770b786c91bc5c1ccabcd85
650
py
Python
gdpr_assist/app_settings.py
mserrano07/django-gdpr-assist
3c23d0aadadc676c128ef57aebc36570f3936ff1
[ "BSD-3-Clause" ]
null
null
null
gdpr_assist/app_settings.py
mserrano07/django-gdpr-assist
3c23d0aadadc676c128ef57aebc36570f3936ff1
[ "BSD-3-Clause" ]
null
null
null
gdpr_assist/app_settings.py
mserrano07/django-gdpr-assist
3c23d0aadadc676c128ef57aebc36570f3936ff1
[ "BSD-3-Clause" ]
null
null
null
""" Settings """ from yaa_settings import AppSettings class PrivacySettings(AppSettings): # Name of the model attribute for a privacy definition GDPR_PRIVACY_CLASS_NAME = "PrivacyMeta" # Name of the model attribute for the privacy definition instance GDPR_PRIVACY_INSTANCE_NAME = "_privacy_meta" ...
28.26087
79
0.755385
593
0.912308
0
0
0
0
0
0
372
0.572308
497f0f54faebc451ce2dc9315e86227db65fd970
2,382
py
Python
config-tests/test_server_details.py
mozilla-services/kinto-integration-tests
ec5199f5e9c7452c78d8f6fb41dcaa02504f34f7
[ "Apache-2.0" ]
2
2017-09-01T19:41:43.000Z
2018-11-08T14:42:00.000Z
config-tests/test_server_details.py
Kinto/kinto-integration-tests
ec5199f5e9c7452c78d8f6fb41dcaa02504f34f7
[ "Apache-2.0" ]
89
2017-01-25T21:44:26.000Z
2021-01-01T08:39:07.000Z
config-tests/test_server_details.py
mozilla-services/kinto-integration-tests
ec5199f5e9c7452c78d8f6fb41dcaa02504f34f7
[ "Apache-2.0" ]
6
2017-03-14T13:40:38.000Z
2020-04-03T15:32:57.000Z
import pytest import requests def aslist_cronly(value): """ Split the input on lines if it's a valid string type""" if isinstance(value, str): value = filter(None, [x.strip() for x in value.splitlines()]) return list(value) def aslist(value, flatten=True): """ Return a list of strings, separ...
25.891304
72
0.665407
0
0
0
0
1,717
0.720823
0
0
544
0.22838
49803c62b083c02f67f3cea8900cbba0f19179c1
635
py
Python
tests/db/test_factory.py
albertteoh/data_pipeline
a99f1c7412375b3e9f4115108fcdde517b2e71a6
[ "Apache-2.0" ]
null
null
null
tests/db/test_factory.py
albertteoh/data_pipeline
a99f1c7412375b3e9f4115108fcdde517b2e71a6
[ "Apache-2.0" ]
null
null
null
tests/db/test_factory.py
albertteoh/data_pipeline
a99f1c7412375b3e9f4115108fcdde517b2e71a6
[ "Apache-2.0" ]
null
null
null
import pytest import data_pipeline.db.factory as dbfactory import data_pipeline.constants.const as const from data_pipeline.db.exceptions import UnsupportedDbTypeError @pytest.mark.parametrize("dbtype, expect_class", [ (const.ORACLE, "OracleDb"), (const.MSSQL, "MssqlDb"), (const.POSTGRES, "PostgresDb"), ...
30.238095
62
0.738583
0
0
0
0
342
0.538583
0
0
97
0.152756
49806a87d676d3fa46db3e3b6f5f01048f4d408e
5,142
py
Python
etl/data_extraction/scrapers/sozialeinsatz.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
7
2020-04-23T20:16:11.000Z
2022-01-04T14:57:16.000Z
etl/data_extraction/scrapers/sozialeinsatz.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
361
2020-04-23T17:20:14.000Z
2022-03-02T11:29:45.000Z
etl/data_extraction/scrapers/sozialeinsatz.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
1
2021-11-29T06:02:52.000Z
2021-11-29T06:02:52.000Z
import math import re from data_extraction.scraper import Scraper class SozialeinsatzScraper(Scraper): """Scrapes the website www.sozialeinsatz.de.""" base_url = 'https://www.sozialeinsatz.de' debug = True def parse(self, response, url): """Handles the soupified response of a detail page in...
36.992806
110
0.556593
5,072
0.986387
0
0
0
0
0
0
1,595
0.310191
4980cf418b1fec3383b451b2c9e98a8148676569
1,671
py
Python
fitbenchmarking/parsing/base_parser.py
arm61/fitbenchmarking
c745c684e3ca4895a666eb863426746d8f06636c
[ "BSD-3-Clause" ]
null
null
null
fitbenchmarking/parsing/base_parser.py
arm61/fitbenchmarking
c745c684e3ca4895a666eb863426746d8f06636c
[ "BSD-3-Clause" ]
null
null
null
fitbenchmarking/parsing/base_parser.py
arm61/fitbenchmarking
c745c684e3ca4895a666eb863426746d8f06636c
[ "BSD-3-Clause" ]
null
null
null
""" Implements the base Parser as a Context Manager. """ from abc import ABCMeta, abstractmethod class Parser: """ Base abstract class for a parser. Further parsers should inherit from this and override the abstract parse() method. """ __metaclass__ = ABCMeta def __init__(self, filename)...
26.109375
78
0.581089
1,570
0.939557
0
0
209
0.125075
0
0
1,101
0.658887
498189a8b987526464b2fd92c5dba221e497e78b
10,223
py
Python
src/offline/news/item-feature-update-batch/src/item-feature-update-batch.py
shenshaoyong/recommender-system-dev-workshop-code
ce422627181472ad513f473b65bf42410c46304a
[ "Apache-2.0" ]
1
2021-07-14T09:15:40.000Z
2021-07-14T09:15:40.000Z
src/offline/news/item-feature-update-batch/src/item-feature-update-batch.py
shenshaoyong/recommender-system-dev-workshop-code
ce422627181472ad513f473b65bf42410c46304a
[ "Apache-2.0" ]
null
null
null
src/offline/news/item-feature-update-batch/src/item-feature-update-batch.py
shenshaoyong/recommender-system-dev-workshop-code
ce422627181472ad513f473b65bf42410c46304a
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function # from tqdm import tqdm import argparse import glob import os import pickle import boto3 import numpy as np import pandas as pd import encoding import kg # tqdm.pandas() # pandarallel.initialize(progress_bar=True) # bucket = os.environ.get("BUCKET_NAME", " ") # raw_data_folder ...
35.010274
183
0.702142
0
0
0
0
0
0
0
0
3,125
0.304314
498246054897849d72b07dc078d8b150091d7c85
5,054
py
Python
wirepas_backend_client/tools/utils.py
bencorrado/backend-client
628c9999f8d98b0c1e56d87bfd2dbf1ca1ea138c
[ "Apache-2.0" ]
null
null
null
wirepas_backend_client/tools/utils.py
bencorrado/backend-client
628c9999f8d98b0c1e56d87bfd2dbf1ca1ea138c
[ "Apache-2.0" ]
null
null
null
wirepas_backend_client/tools/utils.py
bencorrado/backend-client
628c9999f8d98b0c1e56d87bfd2dbf1ca1ea138c
[ "Apache-2.0" ]
1
2021-03-12T17:20:56.000Z
2021-03-12T17:20:56.000Z
""" Utils ======= Contains multipurpose utilities for serializing objects and obtaining arguments from the command line. .. Copyright: Copyright 2019 Wirepas Ltd under Apache License, Version 2.0. See file LICENSE for full license details. """ import binascii import datetime impor...
25.917949
75
0.565295
2,910
0.575782
0
0
0
0
0
0
1,749
0.346063
4984d7b37bc39c03cdb2148c437346639993c3a9
25,733
py
Python
pysph/base/tree/point_tree.py
nauaneed/pysph-nav
66589021f453f25b77549f6f102b6afcc89e338d
[ "BSD-3-Clause" ]
1
2022-03-15T11:48:17.000Z
2022-03-15T11:48:17.000Z
pysph/base/tree/point_tree.py
nauaneed/pysph-nav
66589021f453f25b77549f6f102b6afcc89e338d
[ "BSD-3-Clause" ]
null
null
null
pysph/base/tree/point_tree.py
nauaneed/pysph-nav
66589021f453f25b77549f6f102b6afcc89e338d
[ "BSD-3-Clause" ]
null
null
null
from pysph.base.tree.tree import Tree from pysph.base.tree.helpers import ParticleArrayWrapper, get_helper, \ make_vec_dict, ctype_to_dtype, get_vector_dtype from compyle.opencl import profile_kernel, DeviceWGSException, get_queue, \ named_profile, get_context from compyle.array import Array from pytools import...
38.350224
80
0.522636
17,805
0.691913
0
0
7,176
0.278864
0
0
8,623
0.335095
49850af7a6ca8eea66c58c865c235297d9610189
2,815
py
Python
senti_analysis/data.py
hotbaby/sentiment-analysis
efb880870d905c4c02528d7d242ba06b90f0e259
[ "MIT" ]
null
null
null
senti_analysis/data.py
hotbaby/sentiment-analysis
efb880870d905c4c02528d7d242ba06b90f0e259
[ "MIT" ]
2
2020-09-25T21:17:58.000Z
2022-02-10T00:28:19.000Z
senti_analysis/data.py
hotbaby/sentiment-analysis
efb880870d905c4c02528d7d242ba06b90f0e259
[ "MIT" ]
null
null
null
# encoding: utf8 import numpy as np import pandas as pd from collections import OrderedDict from senti_analysis import config from senti_analysis import constants from senti_analysis.preprocess import (load_tokenizer, load_sentences, encode_sentence, label_transform) def load_...
30.597826
99
0.713677
0
0
0
0
0
0
0
0
211
0.074956
4985efb3cec903d0cb0d0b5c74721d37a531530f
93
py
Python
pyball/models/config/stats_group.py
SebastianDang/PyBall
d1965aa01477b5ee0db9c0463ec584a7e3997395
[ "MIT" ]
74
2018-03-04T22:58:46.000Z
2021-07-06T12:28:50.000Z
pyball/models/config/stats_group.py
SebastianDang/PyBall
d1965aa01477b5ee0db9c0463ec584a7e3997395
[ "MIT" ]
18
2018-03-10T19:17:54.000Z
2020-01-04T15:42:47.000Z
pyball/models/config/stats_group.py
SebastianDang/PyBall
d1965aa01477b5ee0db9c0463ec584a7e3997395
[ "MIT" ]
13
2018-03-06T02:39:38.000Z
2020-01-17T04:38:53.000Z
from dataclasses import dataclass @dataclass class StatsGroup: displayName: str = None
13.285714
33
0.774194
45
0.483871
0
0
56
0.602151
0
0
0
0
498724366b10f885fa79f500eaf773989a21c6f1
358
py
Python
tests/test_skeleton_says.py
thomascobb/skeleton-says
e2ea189e075a0847a6679dc066bad47ced5d397a
[ "Apache-2.0" ]
null
null
null
tests/test_skeleton_says.py
thomascobb/skeleton-says
e2ea189e075a0847a6679dc066bad47ced5d397a
[ "Apache-2.0" ]
null
null
null
tests/test_skeleton_says.py
thomascobb/skeleton-says
e2ea189e075a0847a6679dc066bad47ced5d397a
[ "Apache-2.0" ]
null
null
null
from skeleton_says import say skeleton_saying_hello = r""" ------- ( Hello ) ------- \ \ .-. \(o.o) |=| __|__ //.=|=.\\ // .=|=. \\ \\ .=|=. // \\(_=_)// (:| |:) || || () () || || || || l42 ==' '== """ def test_say_command_says_hello() -> None: assert say....
13.259259
52
0.379888
0
0
0
0
0
0
0
0
211
0.589385
49880bf16640eed07e42f1ea42b7368e4b515269
1,710
py
Python
open_connect/accounts/tests/test_tasks.py
lpatmo/actionify_the_news
998d8ca6b35d0ef1b16efca70f50e59503f5a62d
[ "MIT" ]
66
2015-11-30T20:35:38.000Z
2019-06-12T17:40:32.000Z
open_connect/accounts/tests/test_tasks.py
lpatmo/actionify_the_news
998d8ca6b35d0ef1b16efca70f50e59503f5a62d
[ "MIT" ]
18
2015-11-30T22:03:05.000Z
2019-07-02T00:50:29.000Z
open_connect/accounts/tests/test_tasks.py
lpatmo/actionify_the_news
998d8ca6b35d0ef1b16efca70f50e59503f5a62d
[ "MIT" ]
11
2015-11-30T20:56:01.000Z
2019-07-01T17:06:09.000Z
"""Tests for accounts tasks.""" from datetime import datetime from unittest import TestCase from django.conf import settings from django.utils.timezone import now from mock import patch from model_mommy import mommy from open_connect.accounts.models import Invite from open_connect.accounts.tasks import ( render_a...
38
78
0.724561
1,310
0.766082
0
0
0
0
0
0
414
0.242105
49882b0d53f39e7e8ebf679902e5c955c3e1b55f
944
py
Python
tests/inputs/config.py
hsh-nids/python-betterproto
f5d3b48b1aa49fd64513907ed70124b32758ad3e
[ "MIT" ]
708
2019-10-11T06:23:40.000Z
2022-03-31T09:39:08.000Z
tests/inputs/config.py
hsh-nids/python-betterproto
f5d3b48b1aa49fd64513907ed70124b32758ad3e
[ "MIT" ]
302
2019-11-11T22:09:21.000Z
2022-03-29T11:21:04.000Z
tests/inputs/config.py
hsh-nids/python-betterproto
f5d3b48b1aa49fd64513907ed70124b32758ad3e
[ "MIT" ]
122
2019-12-04T16:22:53.000Z
2022-03-20T09:31:10.000Z
# Test cases that are expected to fail, e.g. unimplemented features or bug-fixes. # Remove from list when fixed. xfail = { "namespace_keywords", # 70 "googletypes_struct", # 9 "googletypes_value", # 9 "import_capitalized_package", "example", # This is the example in the readme. Not a test. } se...
32.551724
81
0.733051
0
0
0
0
0
0
0
0
785
0.831568
4989cd340b09d2674ba44f9caf4ca76681a1034f
1,476
py
Python
examples/wagsley/wagsley/urls.py
Blogsley/blogsley
0ca17397af5d53c2fac3affb5eacec2f8d941d37
[ "MIT" ]
null
null
null
examples/wagsley/wagsley/urls.py
Blogsley/blogsley
0ca17397af5d53c2fac3affb5eacec2f8d941d37
[ "MIT" ]
null
null
null
examples/wagsley/wagsley/urls.py
Blogsley/blogsley
0ca17397af5d53c2fac3affb5eacec2f8d941d37
[ "MIT" ]
null
null
null
from django.conf import settings from django.urls import include, path, re_path from django.contrib import admin from ariadne_django.views import GraphQLView from wagtail.admin import urls as wagtailadmin_urls from wagtail.core import urls as wagtail_urls from wagtail.documents import urls as wagtaildocs_urls from p...
28.941176
80
0.735095
0
0
0
0
0
0
0
0
327
0.221545
4989d46fdda2f05efd221caf77a2291b849c31f5
1,311
py
Python
tests/unit/core/test_certify_timestamp.py
sys-git/certifiable
a3c33c0d4f3ac2c53be9eded3fae633fa5f697f8
[ "MIT" ]
null
null
null
tests/unit/core/test_certify_timestamp.py
sys-git/certifiable
a3c33c0d4f3ac2c53be9eded3fae633fa5f697f8
[ "MIT" ]
311
2017-09-14T22:34:21.000Z
2022-03-27T18:30:17.000Z
tests/unit/core/test_certify_timestamp.py
sys-git/certifiable
a3c33c0d4f3ac2c53be9eded3fae633fa5f697f8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `certifiable.core.certify_timestamp` method.""" import datetime import unittest from decimal import Decimal from certifiable import CertifierTypeError from certifiable.core import certify_timestamp class CoreCertifyTimestampTestCase(unittest.TestCase): ...
22.220339
64
0.514111
999
0.762014
0
0
0
0
0
0
247
0.188406
498b4c183ee96795b8b620014ec7c0080e178c36
1,477
py
Python
rtc_handle_example/replace/com_replace_impl.py
takashi-suehiro/rtmtools
56ee92d3b3f2ea73d7fa78dfabe6a098e06f6215
[ "MIT" ]
null
null
null
rtc_handle_example/replace/com_replace_impl.py
takashi-suehiro/rtmtools
56ee92d3b3f2ea73d7fa78dfabe6a098e06f6215
[ "MIT" ]
null
null
null
rtc_handle_example/replace/com_replace_impl.py
takashi-suehiro/rtmtools
56ee92d3b3f2ea73d7fa78dfabe6a098e06f6215
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # -*- Python -*- """ \file com_replace_idl_examplefile.py \brief Python example implementations generated from com_replace.idl \date $Date$ """ import omniORB from omniORB import CORBA, PortableServer import _GlobalIDL, _GlobalIDL__POA class ComReplace_i (_GlobalID...
22.723077
69
0.666892
525
0.35545
0
0
0
0
0
0
797
0.539607
498d4cc3d6311bb103e45b049930a347b5d6e562
588
py
Python
pyknp_eventgraph/utils.py
ku-nlp/pyknp-eventgraph
927128ac41098bc45637b02a3c2420d345a41347
[ "BSD-3-Clause" ]
7
2019-11-23T10:57:35.000Z
2021-01-03T22:40:13.000Z
pyknp_eventgraph/utils.py
ku-nlp/pyknp-eventgraph
927128ac41098bc45637b02a3c2420d345a41347
[ "BSD-3-Clause" ]
1
2021-11-05T02:19:17.000Z
2021-11-05T02:19:17.000Z
pyknp_eventgraph/utils.py
ku-nlp/pyknp-eventgraph
927128ac41098bc45637b02a3c2420d345a41347
[ "BSD-3-Clause" ]
null
null
null
from io import open from typing import List from pyknp import KNP, BList def read_knp_result_file(filename: str) -> List[BList]: """Read a KNP result file. Args: filename: A filename. Returns: A list of :class:`pyknp.knp.blist.BList` objects. """ knp = KNP() blists = [] ...
22.615385
71
0.55102
0
0
0
0
0
0
0
0
176
0.29932
498d7bdbff51b3b458f67d9c20042b421a42d945
2,272
py
Python
freshlybuiltimagebol/OCR_Printed_Text.py
komal3120/freshlybuiltimagebol
fc46f687e326d53ec485e74a943e45b786dad36d
[ "MIT" ]
3
2020-08-01T10:27:58.000Z
2020-08-09T20:56:49.000Z
freshlybuiltimagebol/OCR_Printed_Text.py
komal3120/freshlybuiltimagebol
fc46f687e326d53ec485e74a943e45b786dad36d
[ "MIT" ]
null
null
null
freshlybuiltimagebol/OCR_Printed_Text.py
komal3120/freshlybuiltimagebol
fc46f687e326d53ec485e74a943e45b786dad36d
[ "MIT" ]
1
2020-06-28T18:02:52.000Z
2020-06-28T18:02:52.000Z
from cv2 import fastNlMeansDenoisingColored from cv2 import cvtColor from cv2 import bitwise_not,threshold,getRotationMatrix2D from cv2 import warpAffine,filter2D,imread from cv2 import THRESH_BINARY,COLOR_BGR2GRAY,THRESH_OTSU from cv2 import INTER_CUBIC,BORDER_REPLICATE,minAreaRect from numpy import column_stack,array...
38.508475
92
0.676496
1,816
0.799296
0
0
0
0
0
0
451
0.198504
498dafdb0fb28c8d01da1b1b893e4aaeb5ff08f2
5,944
py
Python
program/tests/integration_tests_output/graph/graph.py
alienbri/audaces-perps
aa5b0e14eae4944dd0a18af60a72b119ff17fd84
[ "MIT" ]
null
null
null
program/tests/integration_tests_output/graph/graph.py
alienbri/audaces-perps
aa5b0e14eae4944dd0a18af60a72b119ff17fd84
[ "MIT" ]
null
null
null
program/tests/integration_tests_output/graph/graph.py
alienbri/audaces-perps
aa5b0e14eae4944dd0a18af60a72b119ff17fd84
[ "MIT" ]
null
null
null
import yaml import matplotlib.pyplot as plt import math from jsonmerge import merge from datetime import datetime import plotly as ply import pandas as pd import plotly.express as px TRANSFORM = False PLOT_MEMORY = True NB_INSTRUCTIONS = 1000 f_value_props = { # [Color, MinOffset, MaxOffset] "total_collateral...
37.383648
275
0.640646
0
0
0
0
0
0
0
0
1,743
0.293237
498e87a7732f2915dd699629baa71c985e250298
143
py
Python
app/sett.py
AndreyKaBelka/MoneySaver
5ad2bc60379aeb0b02e71760e22b260bf29982e2
[ "Apache-2.0" ]
null
null
null
app/sett.py
AndreyKaBelka/MoneySaver
5ad2bc60379aeb0b02e71760e22b260bf29982e2
[ "Apache-2.0" ]
3
2020-12-12T23:33:36.000Z
2020-12-12T23:35:54.000Z
app/sett.py
AndreyKaBelka/MoneySaver
5ad2bc60379aeb0b02e71760e22b260bf29982e2
[ "Apache-2.0" ]
null
null
null
class Settings: BOT_KEY = "" HOST_NAME = "127.0.0.1" USER_NAME = "root" USER_PASS = "Andrey171200" SQL_NAME = "moneysaver"
20.428571
30
0.608392
142
0.993007
0
0
0
0
0
0
45
0.314685
498ebed60829fc81050f096acf226151f138af86
525
py
Python
oTree/consent/__init__.py
jleutgeb/privilege
2a4f15c98d94d9f1dbf1c4685c5e96d018d58abc
[ "MIT" ]
null
null
null
oTree/consent/__init__.py
jleutgeb/privilege
2a4f15c98d94d9f1dbf1c4685c5e96d018d58abc
[ "MIT" ]
11
2021-05-06T09:45:30.000Z
2022-03-01T17:48:35.000Z
oTree/consent/__init__.py
jleutgeb/privilege
2a4f15c98d94d9f1dbf1c4685c5e96d018d58abc
[ "MIT" ]
null
null
null
from otree.api import * c = Currency doc = """ Simple Consent App Players may only continue after clicking the consent button. """ class Constants(BaseConstants): name_in_url = 'consent' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): p...
14.583333
61
0.693333
340
0.647619
0
0
0
0
0
0
125
0.238095
498efc2d71a44fd1bc6d2b0987f9eff5df4001b1
1,192
py
Python
src/pytornado/_util.py
airinnova/pytornado
6127f45af60ab05f15b441bc134089a7e7a59669
[ "Linux-OpenIB" ]
16
2019-08-13T18:49:14.000Z
2022-01-11T15:41:12.000Z
src/pytornado/_util.py
airinnova/pytornado
6127f45af60ab05f15b441bc134089a7e7a59669
[ "Linux-OpenIB" ]
24
2019-09-11T14:48:01.000Z
2022-03-18T08:17:52.000Z
src/pytornado/_util.py
airinnova/pytornado
6127f45af60ab05f15b441bc134089a7e7a59669
[ "Linux-OpenIB" ]
5
2019-09-20T18:45:45.000Z
2020-12-08T01:44:43.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ---------------------------------------------------------------------- # Copyright 2019-2020 Airinnova AB and the FramAT authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You ...
34.057143
80
0.59396
348
0.291946
0
0
0
0
0
0
904
0.758389
498f0ce62fa86447888328db5c5d83ceabc8b302
587
py
Python
test/application/test_auth.py
Ashaba/API-Monitor
533eb6698fcb5decb48f746784af6894844b3c69
[ "MIT" ]
null
null
null
test/application/test_auth.py
Ashaba/API-Monitor
533eb6698fcb5decb48f746784af6894844b3c69
[ "MIT" ]
22
2018-02-06T19:53:11.000Z
2021-04-30T20:35:01.000Z
test/application/test_auth.py
Ashaba/API-Monitor
533eb6698fcb5decb48f746784af6894844b3c69
[ "MIT" ]
null
null
null
from test.base import BaseTestCase, user_payload import json class TestAuth(BaseTestCase): def test_authenticate(self): response = self.client.post('/auth', data=json.dumps(user_payload), content_type='application/json') response_data = json.loads(response.data) self.assert200(response) self.assertEqual(re...
32.611111
102
0.76661
523
0.890971
0
0
0
0
0
0
81
0.13799
498fe8e984fc4170d05d05875ef23082a63dec00
5,918
py
Python
JumpscaleCore/core/generator/JSGenerator.py
grimpy/jumpscaleX_core
c24d6d47fccc0801e578fedb376ef110f7a00bad
[ "Apache-2.0" ]
null
null
null
JumpscaleCore/core/generator/JSGenerator.py
grimpy/jumpscaleX_core
c24d6d47fccc0801e578fedb376ef110f7a00bad
[ "Apache-2.0" ]
null
null
null
JumpscaleCore/core/generator/JSGenerator.py
grimpy/jumpscaleX_core
c24d6d47fccc0801e578fedb376ef110f7a00bad
[ "Apache-2.0" ]
null
null
null
import os import fnmatch from pathlib import Path from jinja2 import Template from .Metadata import Metadata class JSGenerator: def __init__(self, j): """ """ self._j = j self._generated = False def _check_process_file(self, path): bname = os.path.basename(path) ...
34.811765
109
0.535992
5,804
0.980737
0
0
0
0
0
0
1,398
0.236228
49905454a4a778d8f4095622f9b3c6a78a737493
76,810
py
Python
h1/api/recovery_project_plan_api.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
h1/api/recovery_project_plan_api.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
h1/api/recovery_project_plan_api.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
""" HyperOne HyperOne API # noqa: E501 The version of the OpenAPI document: 0.1.0 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from h1.api_client import ApiClient, Endpoint as _Endpoint from h1.model_utils import ( # noqa: F401 check_allowe...
36.524013
137
0.442833
75,970
0.989064
0
0
0
0
0
0
41,418
0.539227
4992878d55b3a8da195170f6eea9d69be14347a9
2,059
py
Python
days/day5.py
vanHavel/AdventOfCode2021
a83ee21cffff56ba3f49de7af5113bf0b11fea7a
[ "MIT" ]
null
null
null
days/day5.py
vanHavel/AdventOfCode2021
a83ee21cffff56ba3f49de7af5113bf0b11fea7a
[ "MIT" ]
null
null
null
days/day5.py
vanHavel/AdventOfCode2021
a83ee21cffff56ba3f49de7af5113bf0b11fea7a
[ "MIT" ]
null
null
null
from collections import defaultdict from typing import List, Tuple from aocd import get_data, submit DAY = 5 YEAR = 2021 def part1(data: str) -> str: segments = read(data) covered = defaultdict(int) for segment in segments: x1, y1, x2, y2 = segment if x1 != x2 and y1 != y2: c...
27.092105
61
0.4949
0
0
0
0
0
0
0
0
68
0.033026
49936fb891f5aa506d6883922c089dfe1817eb4b
1,108
py
Python
215.kthLargestElementInAnArray2.py
ColinTing/Algorithm
02c8087503298f050deb0fbee6cb887b3aeb6592
[ "MIT" ]
null
null
null
215.kthLargestElementInAnArray2.py
ColinTing/Algorithm
02c8087503298f050deb0fbee6cb887b3aeb6592
[ "MIT" ]
null
null
null
215.kthLargestElementInAnArray2.py
ColinTing/Algorithm
02c8087503298f050deb0fbee6cb887b3aeb6592
[ "MIT" ]
null
null
null
import random class Solution: def findKthLargest(self, nums, k): """ :type nums: List[int] :type k: int :rtype: int """ if nums is None or len(nums)==0: return nums nums = self.quickSort(nums,0,len(nums)-1,k) return nums[k-1] ...
25.767442
51
0.445848
1,024
0.914286
0
0
0
0
0
0
119
0.10625
4994b9856023b95cccc4144927c2909950d9bad5
383
gyp
Python
binding.gyp
mceSystems/node-windows-pac-resolver
a1eaaa6b74d4e82218e6d975582aab121e12da6f
[ "MIT" ]
1
2021-11-14T01:26:45.000Z
2021-11-14T01:26:45.000Z
binding.gyp
mceSystems/node-windows-pac-resolver
a1eaaa6b74d4e82218e6d975582aab121e12da6f
[ "MIT" ]
1
2021-08-31T21:38:42.000Z
2021-08-31T21:38:42.000Z
binding.gyp
mceSystems/node-windows-pac-resolver
a1eaaa6b74d4e82218e6d975582aab121e12da6f
[ "MIT" ]
1
2021-11-14T01:26:12.000Z
2021-11-14T01:26:12.000Z
{ "targets": [ { "target_name": "binding", "sources": [ "native\\winhttpBindings.cpp" ], "include_dirs": [ "<!@(node -p \"require('node-addon-api').include\")" ], "libraries": [ "WinHTTP.lib", "-DelayLoad:node.exe" ], "msbuild_settings": { "ClCompile"...
16.652174
68
0.48564
0
0
0
0
0
0
0
0
240
0.626632
4994cdca869fe06dd8910a681063b2822b7a3d86
2,122
py
Python
diplom_test/data_reader.py
CrackedSTone/algorithm-detects-liver-pathology
d52d08e4e6931b3502f083f20d6332f7b6839a3b
[ "Apache-2.0" ]
8
2019-04-09T07:11:26.000Z
2020-02-27T16:51:26.000Z
diplom_test/data_reader.py
il-yanko/algorithm-detects-liver-pathology
d52d08e4e6931b3502f083f20d6332f7b6839a3b
[ "Apache-2.0" ]
null
null
null
diplom_test/data_reader.py
il-yanko/algorithm-detects-liver-pathology
d52d08e4e6931b3502f083f20d6332f7b6839a3b
[ "Apache-2.0" ]
2
2019-04-04T07:13:02.000Z
2020-02-06T04:58:34.000Z
import glob import numpy as np #import cv2 from PIL import Image #import os.path class ImgReader: def __init__(self): pass @staticmethod def read_directory(dir_path, file_format=None): try: images = [np.asarray(Image.open(img_path).convert('L'), dtype=np.uint8) ...
29.068493
111
0.615928
1,017
0.479265
0
0
898
0.423186
0
0
1,122
0.528746
49983ba3d7a780b5fb33eabb069b3531df6c3624
3,351
py
Python
docs/conf.py
arashbm/dag-python
a62761d516daf3a129f6a75359e1b09047ede6f2
[ "MIT" ]
null
null
null
docs/conf.py
arashbm/dag-python
a62761d516daf3a129f6a75359e1b09047ede6f2
[ "MIT" ]
null
null
null
docs/conf.py
arashbm/dag-python
a62761d516daf3a129f6a75359e1b09047ede6f2
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
28.887931
79
0.617428
0
0
0
0
0
0
0
0
2,561
0.764249
4998582ea46c71688c285dfd2591280666ab63f8
1,455
py
Python
libs/cloner.py
Rookout/log-scanner
bd8b940660a9f40068151dfca514e85aa730bfc0
[ "Apache-2.0" ]
null
null
null
libs/cloner.py
Rookout/log-scanner
bd8b940660a9f40068151dfca514e85aa730bfc0
[ "Apache-2.0" ]
3
2021-05-05T18:30:21.000Z
2022-03-10T11:32:52.000Z
libs/cloner.py
Rookout/log-scanner
bd8b940660a9f40068151dfca514e85aa730bfc0
[ "Apache-2.0" ]
1
2019-12-16T22:27:45.000Z
2019-12-16T22:27:45.000Z
import os import sys import shutil import random import stat import string import logging from git import Repo try: # macOS BASE_CLONE_LOCATION = os.path.join(os.path.dirname(sys.modules['__main__'].__file__), "current_clone") except: # Windows BASE_CLONE_LOCATION = os.path.join(os.getcwd(), "current_clone") ...
30.957447
106
0.754639
0
0
0
0
0
0
0
0
282
0.193814
499a41cfbffd9bf9473869aaf693707dd595ba03
6,671
py
Python
tests/test_formDef.py
swhume/odmlib
597f71c60f4c6bd8639c92e9fc0ae71b8a5416a7
[ "MIT" ]
9
2021-09-15T12:26:30.000Z
2022-03-30T10:14:14.000Z
tests/test_formDef.py
swhume/odmlib
597f71c60f4c6bd8639c92e9fc0ae71b8a5416a7
[ "MIT" ]
1
2021-09-28T09:05:01.000Z
2021-09-28T09:05:01.000Z
tests/test_formDef.py
swhume/odmlib
597f71c60f4c6bd8639c92e9fc0ae71b8a5416a7
[ "MIT" ]
1
2021-09-29T04:50:23.000Z
2021-09-29T04:50:23.000Z
from unittest import TestCase import json import odmlib.odm_1_3_2.model as ODM class TestFormDef(TestCase): def setUp(self) -> None: attrs = self.set_formdef_attributes() self.formdef = ODM.FormDef(**attrs) def test_add_description(self): tt1 = ODM.TranslatedText(_content="this is the...
57.017094
122
0.665867
6,589
0.987708
0
0
932
0.139709
0
0
1,533
0.229801
499a70e266d8579796d64d1f4d58f86d8e09e3c3
143
py
Python
src/Utilities/__init__.py
sigseg5/nometa-tg
7d0d9f0cf5d8fd98a3808c07a5c44d30f1b13032
[ "MIT" ]
3
2020-12-15T07:44:58.000Z
2022-03-11T18:57:44.000Z
src/Utilities/__init__.py
sigseg5/nometa-tg
7d0d9f0cf5d8fd98a3808c07a5c44d30f1b13032
[ "MIT" ]
null
null
null
src/Utilities/__init__.py
sigseg5/nometa-tg
7d0d9f0cf5d8fd98a3808c07a5c44d30f1b13032
[ "MIT" ]
null
null
null
from src.Utilities import cmd_logger from src.Utilities import metadata_worker from src.Utilities import misc from src.Utilities import runner
28.6
41
0.86014
0
0
0
0
0
0
0
0
0
0
499c8c68960d9d5e2ecf3da660784d02e54b3419
9,062
py
Python
db_eplusout_reader/processing/esofile_time.py
DesignBuilderSoftware/db-esofile-reader
a5a80a8069e7eeb30af8ceeca28eb33e9e4f7a50
[ "MIT" ]
1
2021-07-15T14:16:10.000Z
2021-07-15T14:16:10.000Z
db_eplusout_reader/processing/esofile_time.py
DesignBuilderSoftware/db-esofile-reader
a5a80a8069e7eeb30af8ceeca28eb33e9e4f7a50
[ "MIT" ]
1
2022-03-02T08:30:20.000Z
2022-03-08T07:57:57.000Z
db_eplusout_reader/processing/esofile_time.py
DesignBuilderSoftware/db-esofile-reader
a5a80a8069e7eeb30af8ceeca28eb33e9e4f7a50
[ "MIT" ]
null
null
null
import calendar import logging from collections import namedtuple from datetime import datetime, timedelta from db_eplusout_reader.constants import RP, TS, A, D, H, M from db_eplusout_reader.exceptions import LeapYearMismatch, StartDayMismatch EsoTimestamp = namedtuple("EsoTimestamp", "month day hour end_minute") d...
36.688259
86
0.647318
0
0
0
0
0
0
0
0
2,924
0.322666
499ce59557a4ca3973fb3d83ed14750b0515612a
772
py
Python
setup.py
EliRibble/parentopticon
8593d7f72fac9706f1bd8e8326ac932f5af95a32
[ "MIT" ]
null
null
null
setup.py
EliRibble/parentopticon
8593d7f72fac9706f1bd8e8326ac932f5af95a32
[ "MIT" ]
null
null
null
setup.py
EliRibble/parentopticon
8593d7f72fac9706f1bd8e8326ac932f5af95a32
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="parentopticon", version="0.0.1", author="Eli Ribble", author_email="[email protected]", description="A system for controlling kids access to computers.", long_description=long_description, long_descript...
24.125
66
0.682642
0
0
0
0
0
0
0
0
418
0.541451
499cfa9ec9626bc8ee462071e912f59d22f18419
11,701
py
Python
src/race/src/my_lane_detection/slidewindow_ver2.py
young43/ISCC_2020
2a7187410bceca901bd87b753a91fd35b73ca036
[ "MIT" ]
3
2020-11-13T04:59:27.000Z
2021-04-02T06:36:03.000Z
src/race/src/my_lane_detection/slidewindow_ver2.py
yongbeomkwak/ISCC_2021
7e7e5a8a14b9ed88e1cfbe2ee585fe24e4701015
[ "MIT" ]
null
null
null
src/race/src/my_lane_detection/slidewindow_ver2.py
yongbeomkwak/ISCC_2021
7e7e5a8a14b9ed88e1cfbe2ee585fe24e4701015
[ "MIT" ]
5
2020-09-13T09:06:16.000Z
2021-06-19T02:31:23.000Z
import cv2 import numpy as np import matplotlib.pyplot as plt from findpoint import FindPoint class LineDetector: def __init__(self,img): self.frame = None self.leftx = None self.rightx = None # self.output = None self.frame = 0 self.frame_list = [] self.fi...
52.470852
124
0.557217
11,604
0.99171
0
0
0
0
0
0
3,275
0.279891
499d165572daf46e08305c7a946da82bbf43582f
767
py
Python
broadcasts/managers.py
foolwealth/django-site-broadcasts
f870fbf96cde7ea29fc8179e71ab738d2192628f
[ "MIT" ]
5
2016-08-08T07:31:53.000Z
2020-01-21T00:10:22.000Z
broadcasts/managers.py
foolwealth/django-site-broadcasts
f870fbf96cde7ea29fc8179e71ab738d2192628f
[ "MIT" ]
2
2015-05-22T00:47:14.000Z
2018-08-15T19:07:21.000Z
broadcasts/managers.py
bennylope/django-site-broadcasts
0c7556462e7aa09a48ccce4ca8d0b4827a2ce190
[ "MIT" ]
2
2015-05-21T23:23:16.000Z
2018-08-15T17:03:51.000Z
from django.db import models from django.db.models import Q from django.utils import timezone class BroadcastManager(models.Manager): """ Manager class to show only active broadcast messages """ def active(self): """Return only active messages""" return super(BroadcastManager, self).f...
29.5
73
0.65189
670
0.873533
0
0
0
0
0
0
201
0.26206
499e17c024651f588861f4597a8d8cf5d56a914e
11,114
py
Python
google/cloud/gkehub_v1/types/membership.py
googleapis/python-gke-hub
9f620c83af1da8f27fc6933716142164d26647f2
[ "Apache-2.0" ]
3
2021-06-04T06:10:44.000Z
2021-12-30T02:19:30.000Z
google/cloud/gkehub_v1/types/membership.py
renovate-bot/python-gke-hub
9f620c83af1da8f27fc6933716142164d26647f2
[ "Apache-2.0" ]
43
2021-03-16T14:10:35.000Z
2022-03-07T16:07:33.000Z
google/cloud/gkehub_v1/types/membership.py
renovate-bot/python-gke-hub
9f620c83af1da8f27fc6933716142164d26647f2
[ "Apache-2.0" ]
3
2021-03-15T20:46:05.000Z
2022-01-29T08:11:13.000Z
# -*- coding: utf-8 -*- # 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...
40.414545
110
0.65557
10,114
0.910023
0
0
0
0
0
0
8,656
0.778838
499e67a21d0dc3cde30c8234f79e3aae5c8b02f5
1,728
py
Python
tests/test_tasks.py
alarig/peeringdb-py
917cda69f7bc05be008faa66875827d408328609
[ "Apache-2.0" ]
71
2015-11-10T04:55:54.000Z
2022-02-25T20:03:48.000Z
tests/test_tasks.py
alarig/peeringdb-py
917cda69f7bc05be008faa66875827d408328609
[ "Apache-2.0" ]
53
2016-01-29T12:15:38.000Z
2022-03-04T07:03:41.000Z
tests/test_tasks.py
alarig/peeringdb-py
917cda69f7bc05be008faa66875827d408328609
[ "Apache-2.0" ]
28
2016-02-03T07:59:34.000Z
2022-02-27T19:25:06.000Z
# Units tests to directly cover both task wrapper modules - # not possible with pytest parametrization import pytest import sys from collections import defaultdict from peeringdb import _tasks_sequential TASKS_MODS = [_tasks_sequential] # pre-async compat. import if sys.version_info >= (3, 5): from peeringdb imp...
24.338028
73
0.622106
886
0.512731
877
0.507523
627
0.362847
0
0
311
0.179977
499e8f87034a01b4664449514e2ad3632e9bb2a1
1,074
py
Python
dp/kadane.py
williamsmj/prakhar1989-algorithms
82e64ce9d451b33c1bce64a63276d6341a1f13b0
[ "WTFPL" ]
2,797
2015-01-01T15:52:13.000Z
2022-03-28T20:52:37.000Z
dp/kadane.py
williamsmj/prakhar1989-algorithms
82e64ce9d451b33c1bce64a63276d6341a1f13b0
[ "WTFPL" ]
35
2015-01-07T03:11:18.000Z
2021-06-27T09:09:55.000Z
dp/kadane.py
williamsmj/prakhar1989-algorithms
82e64ce9d451b33c1bce64a63276d6341a1f13b0
[ "WTFPL" ]
887
2015-01-02T06:38:19.000Z
2022-03-26T20:33:11.000Z
""" Problem: The maximum subarray problem is the task of finding the contiguous subarray within a one-dimensional array of numbers (containing at least one positive number) which has the largest sum. Solution: The recurrence relation that we solve at each step is the following - Let S[i] = be the max value contigous ...
33.5625
71
0.645251
0
0
0
0
0
0
0
0
622
0.579143
499ea6990d99f7681e517c981073364d93c42de3
3,215
py
Python
online_recommend/full_main.py
hfhfn/db_recommend
3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963
[ "MIT" ]
null
null
null
online_recommend/full_main.py
hfhfn/db_recommend
3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963
[ "MIT" ]
null
null
null
online_recommend/full_main.py
hfhfn/db_recommend
3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963
[ "MIT" ]
null
null
null
from user_portrait import SaveUserProfile from action_profile_recall import save_inverted_table, SaveUserRecall from movie_recall import SaveMovieRecall from movie_portrait import save_topic_weights_normal, save_predata, save_textrank, save_cut_words, save_tfidf, \ save_topK_idf_textrank, save_topK_tfidf_textrank, ...
33.489583
115
0.765163
0
0
0
0
0
0
0
0
1,629
0.451372
499ebc213eb730a6668f7fe2c42632f4551f69a9
1,962
py
Python
libcst/codemod/commands/strip_strings_from_types.py
rowillia/LibCST
621d9a949a57a9100b7f2d1465ebd32aaeddb05c
[ "Apache-2.0" ]
null
null
null
libcst/codemod/commands/strip_strings_from_types.py
rowillia/LibCST
621d9a949a57a9100b7f2d1465ebd32aaeddb05c
[ "Apache-2.0" ]
null
null
null
libcst/codemod/commands/strip_strings_from_types.py
rowillia/LibCST
621d9a949a57a9100b7f2d1465ebd32aaeddb05c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # # pyre-strict from typing import Union import libcst import libcst.matchers as m from libcst import parse_expression from libcst.codemod imp...
38.470588
95
0.700306
1,504
0.766565
0
0
1,190
0.606524
0
0
785
0.400102
49a041d58cf1e03640f9ec85a2adef02ee0d008f
1,309
py
Python
nasa_fevo/InMemoryCache.py
lradomski10m/nasa-fevo
92cc11097766e94346bc2b0b0819e9191f8b04bf
[ "MIT" ]
null
null
null
nasa_fevo/InMemoryCache.py
lradomski10m/nasa-fevo
92cc11097766e94346bc2b0b0819e9191f8b04bf
[ "MIT" ]
null
null
null
nasa_fevo/InMemoryCache.py
lradomski10m/nasa-fevo
92cc11097766e94346bc2b0b0819e9191f8b04bf
[ "MIT" ]
null
null
null
from typing import Dict, Union from nasa_fevo.Cache import Cache from datetime import datetime CACHE_EXPIRATION_TIMER_MINUTES = 10 # very simple in-memory cache # meant for small # of items class InMemoryCache(Cache): def __init__(self): self.store: Dict[str, object] = {} def get(self, key: str) -> ...
29.088889
82
0.571429
1,116
0.852559
0
0
0
0
0
0
206
0.157372
49a08ee15b6bd0370e65813bd6b2e298574e430e
5,079
py
Python
get_embeddings.py
PauPerezT/WEBERT
e189f84de14de6d4bae785e48c8a36eb1afaa46f
[ "Apache-1.1" ]
3
2020-07-28T10:00:44.000Z
2021-01-25T17:48:01.000Z
get_embeddings.py
PauPerezT/WEBERT
e189f84de14de6d4bae785e48c8a36eb1afaa46f
[ "Apache-1.1" ]
3
2020-12-07T18:45:16.000Z
2020-12-07T18:45:27.000Z
get_embeddings.py
PauPerezT/WEBERT
e189f84de14de6d4bae785e48c8a36eb1afaa46f
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jul 27 20:45:40 2020 @author: P.A. Perez-Toro """ #%%Libraries import argparse from utils import create_fold,str2bool import csv from tqdm import tqdm import os import gc import numpy as np import pandas as pd from WEBERT import BERT, BETO, SciBERT #...
40.309524
273
0.638905
0
0
0
0
0
0
0
0
1,444
0.284308
49a17ebec39db4cc9cf78ab25d40d4459000d689
264
py
Python
AiSD_03/Zadanie_7.py
DLQuake/Algorytmy_i_struktury_danych
210d0b4e868e5cc9d6aa730a2297d8074e4d52a1
[ "MIT" ]
null
null
null
AiSD_03/Zadanie_7.py
DLQuake/Algorytmy_i_struktury_danych
210d0b4e868e5cc9d6aa730a2297d8074e4d52a1
[ "MIT" ]
null
null
null
AiSD_03/Zadanie_7.py
DLQuake/Algorytmy_i_struktury_danych
210d0b4e868e5cc9d6aa730a2297d8074e4d52a1
[ "MIT" ]
null
null
null
# Zaimplementować funkcję n_sums(n: int) -> listint, która zwróci wszystkie n-cyfrowe liczby o takich samych sumach na indeksach parzystych i nieparzystych. Przykładowo, dla 3 cyfr będą to liczby m.in. 198, 220, 891, 990 def n_sums(n: int): print(n_sums(3))
44
220
0.75
0
0
0
0
0
0
0
0
227
0.837638
49a34879fe64e92596a7c6eaecaaa74f1636d0c6
2,327
py
Python
wsgiservice/xmlserializer.py
beekpr/wsgiservice
9ba21060ff19cbff984424b184a5b2829fe644bb
[ "BSD-2-Clause" ]
1
2018-01-19T10:44:15.000Z
2018-01-19T10:44:15.000Z
wsgiservice/xmlserializer.py
beekpr/wsgiservice
9ba21060ff19cbff984424b184a5b2829fe644bb
[ "BSD-2-Clause" ]
2
2015-10-12T07:53:57.000Z
2016-06-17T11:13:08.000Z
wsgiservice/xmlserializer.py
beekpr/wsgiservice
9ba21060ff19cbff984424b184a5b2829fe644bb
[ "BSD-2-Clause" ]
null
null
null
"""Helper to convert Python data structures into XML. Used so we can return intuitive data from resource methods which are usable as JSON but can also be returned as XML. """ import re from xml.sax.saxutils import escape as xml_escape # Regular expression matching all the illegal XML characters. RE_ILLEGAL_XML = re.co...
35.8
125
0.627417
0
0
0
0
0
0
0
0
1,030
0.44263
b8c51a5a3052b41343351c2e050b600648c80729
45,700
py
Python
sql/query.py
real-fire/archer
8e9e82a51125859c61d23496ad0cab0a4bbc5181
[ "Apache-2.0" ]
null
null
null
sql/query.py
real-fire/archer
8e9e82a51125859c61d23496ad0cab0a4bbc5181
[ "Apache-2.0" ]
null
null
null
sql/query.py
real-fire/archer
8e9e82a51125859c61d23496ad0cab0a4bbc5181
[ "Apache-2.0" ]
null
null
null
import re import simplejson as json from django.core.urlresolvers import reverse from django.db.models import Q, Min, F, Sum from django.db import connection from django.conf import settings from django.db.models.functions import Concat from django.views.decorators.csrf import csrf_exempt from django.shortcuts import...
44.197292
136
0.596521
0
0
0
0
39,870
0.803118
0
0
11,775
0.237189
b8c640f9283d5b83c08e12647497d33055a9e83f
13,671
py
Python
pyTooling/CLIAbstraction/__init__.py
pyTooling/pyTooling.CLIAbstraction
3b17490ae729e126799328198a814b6c741b1ac7
[ "Apache-2.0" ]
null
null
null
pyTooling/CLIAbstraction/__init__.py
pyTooling/pyTooling.CLIAbstraction
3b17490ae729e126799328198a814b6c741b1ac7
[ "Apache-2.0" ]
8
2021-12-19T19:58:31.000Z
2022-03-02T10:45:16.000Z
pyTooling/CLIAbstraction/__init__.py
pyTooling/pyTooling.CLIAbstraction
3b17490ae729e126799328198a814b6c741b1ac7
[ "Apache-2.0" ]
null
null
null
# ==================================================================================================================== # # _____ _ _ ____ _ ___ _ _ _ _ _ # # _ __ _ |_ _|__ ___ | (_)_ __ __ _ / ___| | |_ _| / \ | |__ _...
44.676471
147
0.575744
8,904
0.65121
384
0.028085
8,944
0.654136
0
0
7,151
0.523002
b8c7afa99f880ad851ed3d1e2b329906d0d376a5
1,601
py
Python
ingest_to_dynamodb/lambda_function.py
fladdimir/csa-simulation-based-sc-forecast
80f176a783496f8859609f63b56c6199a73d9909
[ "MIT" ]
2
2020-11-04T17:34:38.000Z
2021-08-13T07:55:23.000Z
ingest_to_dynamodb/lambda_function.py
fladdimir/csa-simulation-based-sc-forecast
80f176a783496f8859609f63b56c6199a73d9909
[ "MIT" ]
null
null
null
ingest_to_dynamodb/lambda_function.py
fladdimir/csa-simulation-based-sc-forecast
80f176a783496f8859609f63b56c6199a73d9909
[ "MIT" ]
2
2021-05-28T02:55:44.000Z
2021-08-03T13:56:10.000Z
import base64 import json import logging import os from decimal import Decimal import boto3 """ environment variables: export AWS_ENDPOINT=http://localhost:4566 export TABLE_NAME=table_xy # for direct local execution: export AWS_DEFAULT_REGION=localhost export AWS_ACCESS_KEY_ID=access_key_id e...
30.788462
112
0.715178
0
0
0
0
0
0
0
0
650
0.405996
b8c91e32bf4a536211d6e1b856f0e33473d42a4f
3,816
py
Python
modules/sfp_psbdmp.py
IronFireFA/spiderfoot
e75428e7584666de52a20b0d2f1fb80dffd6f39c
[ "MIT" ]
null
null
null
modules/sfp_psbdmp.py
IronFireFA/spiderfoot
e75428e7584666de52a20b0d2f1fb80dffd6f39c
[ "MIT" ]
null
null
null
modules/sfp_psbdmp.py
IronFireFA/spiderfoot
e75428e7584666de52a20b0d2f1fb80dffd6f39c
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------- # Name: sfp_psbdmp # Purpose: Query psbdmp.cc for potentially hacked e-mail addresses. # # Author: Steve Micallef <[email protected]> # # Created: 21/11/2016 # Copyright: (c) Steve Micallef # Licence: MIT # ...
28.058824
97
0.508124
3,305
0.86609
0
0
0
0
0
0
1,454
0.381027
b8c9483c89fccb1526f7a1b94d89843858f14cf3
3,216
py
Python
dcr/scenarios/agent-bvt/test_agent_basics.py
sshedi/WALinuxAgent
99d07d29b7843293588bec4b961e4ef2d1daabb2
[ "Apache-2.0" ]
null
null
null
dcr/scenarios/agent-bvt/test_agent_basics.py
sshedi/WALinuxAgent
99d07d29b7843293588bec4b961e4ef2d1daabb2
[ "Apache-2.0" ]
null
null
null
dcr/scenarios/agent-bvt/test_agent_basics.py
sshedi/WALinuxAgent
99d07d29b7843293588bec4b961e4ef2d1daabb2
[ "Apache-2.0" ]
null
null
null
import os import re import socket from dotenv import load_dotenv from dcr.scenario_utils.common_utils import execute_command_and_raise_on_error from dcr.scenario_utils.models import get_vm_data_from_env def test_agent_version(): stdout, _ = execute_command_and_raise_on_error(['waagent', '-version'], timeout=30)...
30.923077
109
0.661692
0
0
0
0
0
0
0
0
670
0.208333
b8ca7c27c5d04fb6e63bdc64ba80458973c7d303
9,033
py
Python
src/DrawingEpisodes.py
Benykoz/simcom
ffe1c3636ef65a037a34e71d5cbcdb2e483d5b93
[ "MIT" ]
null
null
null
src/DrawingEpisodes.py
Benykoz/simcom
ffe1c3636ef65a037a34e71d5cbcdb2e483d5b93
[ "MIT" ]
null
null
null
src/DrawingEpisodes.py
Benykoz/simcom
ffe1c3636ef65a037a34e71d5cbcdb2e483d5b93
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # This file includes mainly a class "randomEpisode" that: # - draws localization of vehicle # - draws number of rocks # - draws position of each rock # - save in a json file # Author: Michele # Project: SmartLoader - Innovation import json import random from ge...
35.14786
94
0.469169
8,029
0.888852
0
0
0
0
0
0
1,771
0.196059
b8cbd20dcd81315e2ca364311bd80d356f50ed2d
587
py
Python
gimmemotifs/commands/logo.py
littleblackfish/gimmemotifs
913a6e5db378493155273e2c0f8ab0dc11ab219e
[ "MIT" ]
null
null
null
gimmemotifs/commands/logo.py
littleblackfish/gimmemotifs
913a6e5db378493155273e2c0f8ab0dc11ab219e
[ "MIT" ]
null
null
null
gimmemotifs/commands/logo.py
littleblackfish/gimmemotifs
913a6e5db378493155273e2c0f8ab0dc11ab219e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2009-2016 Simon van Heeringen <[email protected]> # # This module is free software. You can redistribute it and/or modify it under # the terms of the MIT License, see the file COPYING included with this # distribution. from gimmemotifs.motif import pwmfile_to_motifs ...
29.35
79
0.688245
0
0
0
0
0
0
0
0
272
0.463373