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
48cf0852e6ab6d1a0771fbc1bfea6839386062de
1,287
py
Python
tests/test_cmdline.py
lin-zone/scrapyu
abcb8eed2ea02121b74017e007c57c0d3762342d
[ "MIT" ]
1
2021-01-05T09:11:42.000Z
2021-01-05T09:11:42.000Z
tests/test_cmdline.py
lin-zone/scrapyu
abcb8eed2ea02121b74017e007c57c0d3762342d
[ "MIT" ]
null
null
null
tests/test_cmdline.py
lin-zone/scrapyu
abcb8eed2ea02121b74017e007c57c0d3762342d
[ "MIT" ]
null
null
null
import sys import subprocess from tempfile import mkdtemp, TemporaryFile from path import Path from tests import TEST_DIR args = (sys.executable, '-m', 'scrapyu.cmdline') def test_genspider_list(): new_args = args + ('genspider', '-l') res = subprocess.check_output(new_args) assert res.split() == [b'A...
33.868421
97
0.688423
0
0
0
0
0
0
0
0
292
0.226884
48cf85efc52b96d39ed18f6149964691786778a9
3,257
py
Python
src/olympia/amo/cron.py
dante381/addons-server
9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7
[ "BSD-3-Clause" ]
null
null
null
src/olympia/amo/cron.py
dante381/addons-server
9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7
[ "BSD-3-Clause" ]
null
null
null
src/olympia/amo/cron.py
dante381/addons-server
9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime, timedelta from django.core.files.storage import default_storage as storage import olympia.core.logger from olympia import amo from olympia.activity.models import ActivityLog from olympia.addons.models import Addon from olympia.addons.tasks import delete_addons from olympia.amo.utils imp...
34.648936
88
0.684986
0
0
0
0
0
0
0
0
451
0.138471
48d0551fc7668ef91b0cbb625288bc4330046f92
642
py
Python
day8/test_day8.py
bwbeach/advent-of-code-2020
572810c3adae5815543efde17a4bca9596d05a5b
[ "CC0-1.0" ]
null
null
null
day8/test_day8.py
bwbeach/advent-of-code-2020
572810c3adae5815543efde17a4bca9596d05a5b
[ "CC0-1.0" ]
null
null
null
day8/test_day8.py
bwbeach/advent-of-code-2020
572810c3adae5815543efde17a4bca9596d05a5b
[ "CC0-1.0" ]
null
null
null
from day8.day8 import fix_code, parse_code, run SAMPLE_CODE_LOOP = """nop +0 acc +1 jmp +4 acc +3 jmp -3 acc -99 acc +1 jmp -4 acc +6 """ SAMPLE_CODE_HALT = """nop +0 acc +1 jmp +4 acc +3 jmp -3 acc -99 acc +1 nop -4 acc +6 """ def test_parse(): assert parse_code("nop +0\nacc +1\nacc -6") == [("nop", 0), ("acc"...
15.285714
88
0.638629
0
0
0
0
0
0
0
0
191
0.297508
48d23528c08e020ee5f13c45ec80e61813e3bd41
6,128
py
Python
biosys/apps/main/tests/api/test_misc.py
florianm/biosys
934d06ed805b0734f3cb9a00feec6cd81a94e512
[ "Apache-2.0" ]
2
2018-04-09T04:02:30.000Z
2019-08-20T03:12:55.000Z
biosys/apps/main/tests/api/test_misc.py
florianm/biosys
934d06ed805b0734f3cb9a00feec6cd81a94e512
[ "Apache-2.0" ]
29
2016-01-20T08:14:15.000Z
2017-07-13T07:17:32.000Z
biosys/apps/main/tests/api/test_misc.py
florianm/biosys
934d06ed805b0734f3cb9a00feec6cd81a94e512
[ "Apache-2.0" ]
5
2016-01-14T23:02:36.000Z
2016-09-21T05:35:03.000Z
from django.shortcuts import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from main.models import Project from main.tests import factories from main.tests.api import helpers class TestWhoAmI(helpers.BaseUserTestCase): def setUp(self): ...
31.587629
101
0.590078
5,871
0.958061
0
0
0
0
0
0
678
0.11064
48d29ebbfa1dba9c5ef7d472e7d45e6999e1c63b
531
py
Python
src/netwrok/analytics.py
simonwittber/netwrok-server
d4767faa766e7ecb0de0c912f0c0a26b45b84189
[ "MIT" ]
16
2015-12-01T14:42:30.000Z
2021-04-26T21:16:45.000Z
src/netwrok/analytics.py
DifferentMethods/netwrok-server
d4767faa766e7ecb0de0c912f0c0a26b45b84189
[ "MIT" ]
null
null
null
src/netwrok/analytics.py
DifferentMethods/netwrok-server
d4767faa766e7ecb0de0c912f0c0a26b45b84189
[ "MIT" ]
4
2015-03-02T07:19:15.000Z
2015-10-14T07:38:02.000Z
import asyncio import aiopg from . import nwdb from . import core @core.handler def register(client, path, event): """ Register an event occuring at path. Created time is automatically added. Useful for generic analytics type stuff. """ with (yield from nwdb.connection()) as conn: cursor =...
27.947368
76
0.653484
0
0
448
0.843691
462
0.870056
0
0
239
0.450094
48d3bd9308acb8eb9e29472526d5d05261bbdb90
635
py
Python
monte_carlo/helpers/muaanalytical.py
nathhje/bachelorproject
4bca826d1e065f647e2088b1fd028b1bdf863124
[ "MIT" ]
null
null
null
monte_carlo/helpers/muaanalytical.py
nathhje/bachelorproject
4bca826d1e065f647e2088b1fd028b1bdf863124
[ "MIT" ]
null
null
null
monte_carlo/helpers/muaanalytical.py
nathhje/bachelorproject
4bca826d1e065f647e2088b1fd028b1bdf863124
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Deterimines the reflectance based on r and mua. """ import math import helpers.analyticalvalues as av def reflectance(mua, r): """ mua: the absorption coefficient used. r: the radial distance used. """ values = av.analyticalValues(r, mua) # the value of th...
30.238095
99
0.60315
0
0
0
0
0
0
0
0
208
0.327559
48d3e34f960926be47270d979dba99f1e974b2b3
476
py
Python
main/test_data.py
anna01111/demo_web_ui_test_suite
69bedc25126b874774e2f51a83356dc9ee1b7e74
[ "CC0-1.0" ]
null
null
null
main/test_data.py
anna01111/demo_web_ui_test_suite
69bedc25126b874774e2f51a83356dc9ee1b7e74
[ "CC0-1.0" ]
null
null
null
main/test_data.py
anna01111/demo_web_ui_test_suite
69bedc25126b874774e2f51a83356dc9ee1b7e74
[ "CC0-1.0" ]
null
null
null
from faker import Faker """ More info: https://microservices-demo.github.io/docs/user-accounts.html """ # The demo app is shipped with the following account: username = 'user' password = 'password' # Fake data that is used for new registrations: faker = Faker() autogenerated_username = faker.user_name() autogenerate...
26.444444
71
0.779412
0
0
0
0
0
0
0
0
195
0.409664
48d3f8d217b00f2ba74165ed887ea259202fee75
1,115
py
Python
pfr/run.py
AnnaMag/pdf-flask-react
de89eb13b2e2e0d4418c28041fe294205f528b96
[ "BSD-2-Clause" ]
2
2019-01-04T16:55:05.000Z
2019-08-28T20:16:47.000Z
pfr/run.py
AnnaMag/pdf-flask-react
de89eb13b2e2e0d4418c28041fe294205f528b96
[ "BSD-2-Clause" ]
2
2021-06-01T21:52:21.000Z
2021-12-13T19:43:43.000Z
pfr/run.py
AnnaMag/pdf-flask-react
de89eb13b2e2e0d4418c28041fe294205f528b96
[ "BSD-2-Clause" ]
null
null
null
from io import StringIO from io import BytesIO import urllib from urllib import request import utils from pdf_processing import scrape_gazette_names, get_info_outline from data_parsing import save_to_dict if __name__ == '__main__': # not saving anything locally, just the names listed on the webpage to access th...
33.787879
97
0.699552
0
0
0
0
0
0
0
0
288
0.258296
48d4f15c7fa28d9ec9d8b63f2ea935ca7b5152ba
1,246
py
Python
day9/day9.py
jaredledvina/adventofcode2020
2a31fd88c0b6bddd2c06327d04e6630b8fb29909
[ "MIT" ]
1
2020-12-09T14:50:49.000Z
2020-12-09T14:50:49.000Z
day9/day9.py
jaredledvina/adventofcode2020
2a31fd88c0b6bddd2c06327d04e6630b8fb29909
[ "MIT" ]
null
null
null
day9/day9.py
jaredledvina/adventofcode2020
2a31fd88c0b6bddd2c06327d04e6630b8fb29909
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import itertools def read_input(): with open('input.txt') as f: puzzle_input = f.read().splitlines() puzzle_input = [int(num) for num in puzzle_input] return puzzle_input def part1(puzzle_input): preamble = puzzle_input[:25] remaining = puzzle_input[25:] for ...
29.666667
140
0.629213
0
0
0
0
0
0
0
0
43
0.03451
48d562ad3234975315fbded1821628c64f55b9d7
4,461
py
Python
streamlitfront/tests/common.py
i2mint/streamlitfront
6fbc03a42cdb7436dcda3da00fb9b42965bbb582
[ "Apache-2.0" ]
null
null
null
streamlitfront/tests/common.py
i2mint/streamlitfront
6fbc03a42cdb7436dcda3da00fb9b42965bbb582
[ "Apache-2.0" ]
1
2022-02-03T15:21:57.000Z
2022-02-05T00:51:33.000Z
streamlitfront/tests/common.py
i2mint/streamlitfront
6fbc03a42cdb7436dcda3da00fb9b42965bbb582
[ "Apache-2.0" ]
null
null
null
from contextlib import contextmanager from functools import partial from inspect import Parameter from random import choice, randint, uniform import string from typing import Any from i2 import Sig from numbers import Number from sys import platform from selenium.common.exceptions import NoSuchElementException from sel...
33.795455
87
0.68998
0
0
989
0.221699
1,151
0.258014
0
0
836
0.187402
48d584fffe50d5a164a634c7bdeab43a85e1c776
16,094
py
Python
Python_files/analyse.py
Deniz-shelby/goodreads_webscrap
80be6eb85f8a128eeeef2f845726557852991463
[ "Apache-2.0" ]
null
null
null
Python_files/analyse.py
Deniz-shelby/goodreads_webscrap
80be6eb85f8a128eeeef2f845726557852991463
[ "Apache-2.0" ]
1
2021-04-14T07:41:49.000Z
2021-04-14T10:02:45.000Z
Python_files/analyse.py
Deniz-shelby/goodreads_webscrap
80be6eb85f8a128eeeef2f845726557852991463
[ "Apache-2.0" ]
2
2021-04-14T05:31:24.000Z
2021-04-19T08:00:40.000Z
import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from matplotlib import rcParams from sklearn.preprocessing import MinMaxScaler import warnings import scipy.stats as st import statsmodels as sm def analyse(df_input,df_all_input): df = df_input fig, ax = plt.subplo...
36.494331
122
0.626942
0
0
0
0
0
0
0
0
3,815
0.237045
48d7564242b45a65bf822b185e1203ecbd2093a0
773
py
Python
3 assignment/number_of_digits_unitest.py
nastae/programavimas_python
7e65ad834c5f52e146fb5fcd0408b344545dc30e
[ "Apache-2.0" ]
null
null
null
3 assignment/number_of_digits_unitest.py
nastae/programavimas_python
7e65ad834c5f52e146fb5fcd0408b344545dc30e
[ "Apache-2.0" ]
null
null
null
3 assignment/number_of_digits_unitest.py
nastae/programavimas_python
7e65ad834c5f52e146fb5fcd0408b344545dc30e
[ "Apache-2.0" ]
null
null
null
import unittest def number_of_digits(s): return sum(c.isdigit() for c in s) # Parašykite funkcijai X unittest'us class Test(unittest.TestCase): def test_only_digits(self): s = "123456789" self.assertEqual(number_of_digits(s), 9) def test_only_letters(self): s = "abcdef" s...
24.935484
48
0.65718
605
0.781654
0
0
0
0
0
0
112
0.144703
48d79b6a3679e4354a437a7315a9dd9bd23f2c50
3,971
py
Python
scraper/edx.py
thanasis457/Mooc-platform
5ff3b7b43fadc86ec5d4d54db6963449a6610bb5
[ "MIT" ]
4
2020-08-30T12:18:27.000Z
2021-05-19T06:42:13.000Z
scraper/edx.py
thanasis457/Mooc-platform
5ff3b7b43fadc86ec5d4d54db6963449a6610bb5
[ "MIT" ]
1
2021-01-28T20:21:48.000Z
2021-01-28T20:21:48.000Z
scraper/edx.py
thanasis457/Mooc-platform
5ff3b7b43fadc86ec5d4d54db6963449a6610bb5
[ "MIT" ]
1
2020-09-14T13:20:05.000Z
2020-09-14T13:20:05.000Z
import requests, json, bs4, urllib.parse, math from . import Course, Platform class Edx(Platform): name = 'edX' def _urls(self): res = requests.get(make_url()) count = json.loads(res.text)['objects']['count'] num_pages = math.ceil(count / 20) urls = [make_url(pag...
44.617978
88
0.576681
1,257
0.316545
0
0
0
0
0
0
1,953
0.491816
48d950cb515fdc01c87e2cf97d07a2e9d9b96b55
8,409
py
Python
main.py
LaudateCorpus1/TotalConnect2.0_API-Arm-Disarm
96885410defa036b37b5f6ae86b322de89c850ae
[ "MIT" ]
1
2017-03-06T03:44:40.000Z
2017-03-06T03:44:40.000Z
main.py
LaudateCorpus1/TotalConnect2.0_API-Arm-Disarm
96885410defa036b37b5f6ae86b322de89c850ae
[ "MIT" ]
null
null
null
main.py
LaudateCorpus1/TotalConnect2.0_API-Arm-Disarm
96885410defa036b37b5f6ae86b322de89c850ae
[ "MIT" ]
2
2020-01-20T12:57:55.000Z
2022-02-08T07:03:58.000Z
#!/usr/local/bin/python2.7 #FREEBSD 2 Minutes ARP Expires - /bin/echo "net.link.ether.inet.max_age 300" >> /etc/sysctl.conf #Crontab -e "* * * * * /usr/local/bin/python2.7 /root/Security.py" import subprocess import ConfigParser import string, os, sys, httplib import xml.etree.ElementTree as ET from datetime import da...
39.665094
275
0.646093
0
0
0
0
0
0
0
0
3,945
0.46914
48d989d7c7b86f58f750e3be1818f6a34de5e9dd
1,538
py
Python
prm/relations/migrations/0002_activity.py
justaname94/innovathon2019
d1a4e9b1b877ba12ab23384b9ee098fcdbf363af
[ "MIT" ]
null
null
null
prm/relations/migrations/0002_activity.py
justaname94/innovathon2019
d1a4e9b1b877ba12ab23384b9ee098fcdbf363af
[ "MIT" ]
4
2021-06-08T20:20:05.000Z
2022-03-11T23:58:37.000Z
prm/relations/migrations/0002_activity.py
justaname94/personal_crm
d1a4e9b1b877ba12ab23384b9ee098fcdbf363af
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-09-09 21:21 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('relations', '0001_initia...
43.942857
156
0.617035
1,379
0.896619
0
0
0
0
0
0
406
0.263979
48da319d7adab06ea080a4bfe703b82db0fccf2a
1,106
py
Python
elliptic_moab/Mesh/MeshQL.py
padmec-reservoir/elliptic_moab
a3b15f29a621c35a8279fd163326a0895aa67f30
[ "MIT" ]
null
null
null
elliptic_moab/Mesh/MeshQL.py
padmec-reservoir/elliptic_moab
a3b15f29a621c35a8279fd163326a0895aa67f30
[ "MIT" ]
null
null
null
elliptic_moab/Mesh/MeshQL.py
padmec-reservoir/elliptic_moab
a3b15f29a621c35a8279fd163326a0895aa67f30
[ "MIT" ]
null
null
null
from typing import Type from elliptic.Kernel.Context import ContextDelegate from .Selector import SelectorImplementation from .Manager import ManagerImplementation from .Computer import ComputerImplementation class MeshQLImplementation(ComputerImplementation, ManagerImplementation, SelectorImplementation): def ...
34.5625
98
0.654611
892
0.80651
0
0
0
0
0
0
187
0.169078
48da48030860d7cf05ae6d06f45e092b1b0c01b7
1,229
py
Python
tests/test_quil.py
stjordanis/quantumflow
bf965f0ca70cd69b387f9ca8407ab38da955e925
[ "Apache-2.0" ]
99
2018-12-03T20:41:39.000Z
2022-02-21T13:56:08.000Z
tests/test_quil.py
stjordanis/quantumflow
bf965f0ca70cd69b387f9ca8407ab38da955e925
[ "Apache-2.0" ]
1
2021-06-25T15:18:31.000Z
2021-06-25T15:18:31.000Z
tests/test_quil.py
stjordanis/quantumflow
bf965f0ca70cd69b387f9ca8407ab38da955e925
[ "Apache-2.0" ]
24
2018-12-03T20:41:41.000Z
2022-01-03T01:11:45.000Z
# Copyright 2016-2018, Rigetti Computing # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. import pytest import quantumflow as qf QUIL_FILES = [ 'hello_world.quil', 'empty.quil', 'classical_logic.quil', ...
23.188679
77
0.613507
0
0
0
0
0
0
0
0
390
0.317331
48daec9dcfb1b92e90a94069bc6dece79afb65a2
1,254
py
Python
gitool/util.py
eikendev/gitool
9bfa248093d4ee3caf25fde1a59f4f0fc66994af
[ "MIT" ]
1
2022-03-17T06:26:20.000Z
2022-03-17T06:26:20.000Z
gitool/util.py
eikendev/gitool
9bfa248093d4ee3caf25fde1a59f4f0fc66994af
[ "MIT" ]
null
null
null
gitool/util.py
eikendev/gitool
9bfa248093d4ee3caf25fde1a59f4f0fc66994af
[ "MIT" ]
null
null
null
import itertools import logging from git import Repo, InvalidGitRepositoryError from .repository import Repository logger = logging.getLogger("gitool") def _list_repositories(path): subdirectories = [p for p in path.iterdir() if p.is_dir()] names = [p.name for p in subdirectories] if '.git' not in nam...
24.115385
68
0.633174
0
0
0
0
0
0
0
0
88
0.070175
48dbc22d623e96499bba5ef1f32d58521697a022
3,571
py
Python
taiga/projects/epics/serializers.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
null
null
null
taiga/projects/epics/serializers.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
12
2019-11-25T14:08:32.000Z
2021-06-24T10:35:51.000Z
taiga/projects/epics/serializers.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2014-2017 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2017 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2017 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2017 Alejandro Alonso <alejandro.alonso@kaleidos.net> # This program is free software: you can r...
40.123596
104
0.758051
1,790
0.50098
0
0
0
0
0
0
1,029
0.287993
48dbc9d4daecd2cf1d72d63509bbaa3a2bffe8c4
2,178
py
Python
src/TMDbApi/TMTranslationUnit.py
shasha79/nectm
600044a6fe2c3a73e0d9327bc85883831a26dcae
[ "Apache-2.0" ]
3
2020-02-28T21:42:44.000Z
2021-03-12T13:56:16.000Z
src/TMDbApi/TMTranslationUnit.py
Pangeamt/nectm
6b84f048698f2530b9fdbb30695f2e2217c3fbfe
[ "Apache-2.0" ]
2
2020-11-06T14:40:10.000Z
2020-12-29T19:03:11.000Z
src/TMDbApi/TMTranslationUnit.py
Pangeamt/nectm
6b84f048698f2530b9fdbb30695f2e2217c3fbfe
[ "Apache-2.0" ]
2
2020-03-26T16:05:11.000Z
2020-08-06T16:35:39.000Z
# # Copyright (c) 2020 Pangeanic SL. # # This file is part of NEC TM # (see https://github.com/shasha79/nectm). # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright owne...
36.915254
138
0.674472
1,262
0.579431
0
0
0
0
0
0
1,322
0.606979
48dcecd475c9d9c66ff47a1b76abf99c791428f8
805
py
Python
tests/test_268.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
tests/test_268.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
tests/test_268.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pytest """ Test 268. Missing Number """ @pytest.fixture(scope="session") def init_variables_268(): from src.leetcode_268_missing_number import Solution solution = Solution() def _init_variables_268(): return solution yield _init_variables_268 class TestClass...
23.676471
83
0.696894
499
0.619876
196
0.243478
229
0.284472
0
0
62
0.077019
48de82f88d77ad42fe5f179efaac8655f74f00d7
5,682
py
Python
tests/db/test_connector.py
DaWeSearch/backend
809e575ed730fce55d0e89a2fbc2031ba116f5e0
[ "MIT" ]
1
2021-02-15T01:05:22.000Z
2021-02-15T01:05:22.000Z
tests/db/test_connector.py
DaWeSearch/backend
809e575ed730fce55d0e89a2fbc2031ba116f5e0
[ "MIT" ]
null
null
null
tests/db/test_connector.py
DaWeSearch/backend
809e575ed730fce55d0e89a2fbc2031ba116f5e0
[ "MIT" ]
null
null
null
import unittest import os import json from functions.db.connector import * from functions.db.models import * from functions.authentication import * sample_search = { "search_groups": [ { "search_terms": ["blockchain", "distributed ledger"], "match": "OR" }, { ...
29.28866
80
0.62566
5,123
0.901619
0
0
0
0
0
0
1,173
0.206441
48deb6f756807dc27d051aa0715208fc6f52b020
1,513
py
Python
tests/test_capstone.py
GrammaTech/gtirb-capstone
f46d90e9cd733c632620e5d8c921a4b9f011020a
[ "MIT" ]
6
2020-04-10T15:19:30.000Z
2021-04-13T22:54:17.000Z
tests/test_capstone.py
GrammaTech/gtirb-capstone
f46d90e9cd733c632620e5d8c921a4b9f011020a
[ "MIT" ]
null
null
null
tests/test_capstone.py
GrammaTech/gtirb-capstone
f46d90e9cd733c632620e5d8c921a4b9f011020a
[ "MIT" ]
3
2020-07-10T22:52:32.000Z
2021-02-13T19:52:22.000Z
# Copyright (C) 2020 GrammaTech, Inc. # # This code is licensed under the MIT license. See the LICENSE file in # the project root for license terms. # # This project is sponsored by the Office of Naval Research, One Liberty # Center, 875 N. Randolph Street, Arlington, VA 22203 under contract # # N68335-17-C-0700. The ...
30.877551
72
0.68341
0
0
0
0
989
0.653668
0
0
562
0.371447
48df4ad454aad4847f1d7ce4f347d3747f7148ed
2,552
py
Python
python/paddle/fluid/tests/unittests/npu/test_update_loss_scaling_min_op_npu.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/npu/test_update_loss_scaling_min_op_npu.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/npu/test_update_loss_scaling_min_op_npu.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-12-09T08:59:17.000Z
2021-12-09T08:59:17.000Z
# Copyright (c) 2021 PaddlePaddle 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 app...
32.303797
75
0.647727
1,570
0.615204
0
0
0
0
0
0
842
0.329937
48df99695d0c2e85858fd3010b30aa03fd644e15
1,031
py
Python
Examples/WorkingWithMimeMessages/SetEmailHeaders.py
Muzammil-khan/Aspose.Email-Python-Dotnet
04ca3a6f440339f3ddf316218f92d15d66f24e7e
[ "MIT" ]
5
2019-01-28T05:17:12.000Z
2020-04-14T14:31:34.000Z
Examples/WorkingWithMimeMessages/SetEmailHeaders.py
Muzammil-khan/Aspose.Email-Python-Dotnet
04ca3a6f440339f3ddf316218f92d15d66f24e7e
[ "MIT" ]
1
2019-01-28T16:07:26.000Z
2021-11-25T10:59:52.000Z
Examples/WorkingWithMimeMessages/SetEmailHeaders.py
Muzammil-khan/Aspose.Email-Python-Dotnet
04ca3a6f440339f3ddf316218f92d15d66f24e7e
[ "MIT" ]
6
2018-07-16T14:57:34.000Z
2020-08-30T05:59:52.000Z
import aspose.email as ae import datetime def run(): # The path to the File directory. dataDir = "Data/" #ExStart: SetEmailHeaders # Create an instance of MailMessage class eml = ae.MailMessage() # Specify ReplyTo, From, To field, Cc and Bcc Addresses eml.reply_to_list.Add("reply@repl...
33.258065
81
0.681862
0
0
0
0
0
0
0
0
496
0.481086
48e060479c6f9450fb40ff919e56deed4c5f57d9
7,527
py
Python
intrinsic/classify.py
seenu-andi-rajendran/plagcomps
98e82cfb871f73bbd8f4ab1452c2b27a95beee83
[ "MIT" ]
2
2015-01-18T06:20:27.000Z
2021-03-19T21:19:16.000Z
intrinsic/classify.py
NoahCarnahan/plagcomps
98e82cfb871f73bbd8f4ab1452c2b27a95beee83
[ "MIT" ]
null
null
null
intrinsic/classify.py
NoahCarnahan/plagcomps
98e82cfb871f73bbd8f4ab1452c2b27a95beee83
[ "MIT" ]
2
2015-11-19T12:52:14.000Z
2016-11-11T17:00:50.000Z
# classify.py # Alternative methods to clustering import sys, os from random import shuffle import cPickle from collections import Counter sys.path.append('../pybrain/') # add the pybrain module to the path... TODO: actually install it. from plagcomps.shared.util import IntrinsicUtility from ..dbconstants import user...
37.635
119
0.659891
4,991
0.66308
0
0
0
0
0
0
2,007
0.26664
48e0a28c89b1ce15b99aa2daf6b83acba8204f1b
4,316
py
Python
matplotlib-3.4.3/matplotlib-3.4.3/examples/images_contours_and_fields/image_transparency_blend.py
JohnLauFoo/clc_packages_Yu
259f01d9b5c02154ce258734d519ae8995cd0991
[ "MIT" ]
1
2021-11-13T17:21:44.000Z
2021-11-13T17:21:44.000Z
matplotlib-3.4.3/matplotlib-3.4.3/examples/images_contours_and_fields/image_transparency_blend.py
JohnLauFoo/clc_packages_Yu
259f01d9b5c02154ce258734d519ae8995cd0991
[ "MIT" ]
null
null
null
matplotlib-3.4.3/matplotlib-3.4.3/examples/images_contours_and_fields/image_transparency_blend.py
JohnLauFoo/clc_packages_Yu
259f01d9b5c02154ce258734d519ae8995cd0991
[ "MIT" ]
null
null
null
""" ========================================== Blend transparency with color in 2D images ========================================== Blend transparency with color to highlight parts of data with imshow. A common use for `matplotlib.pyplot.imshow` is to plot a 2D statistical map. The function makes it easy to visualiz...
34.528
79
0.657322
0
0
0
0
0
0
0
0
2,771
0.64203
48e3db6b6aba7110ea8f3e0d1c747e61649abf82
634
py
Python
tests/test_admin.py
FernandoCelmer/django-global-permissions
1ece2b18476a514dec7b1e13a51191943acb460b
[ "MIT" ]
30
2015-02-04T12:26:35.000Z
2022-03-23T21:19:10.000Z
tests/test_admin.py
FernandoCelmer/django-global-permissions
1ece2b18476a514dec7b1e13a51191943acb460b
[ "MIT" ]
15
2015-11-27T17:42:02.000Z
2022-03-23T00:34:10.000Z
tests/test_admin.py
FernandoCelmer/django-global-permissions
1ece2b18476a514dec7b1e13a51191943acb460b
[ "MIT" ]
15
2015-04-14T18:09:26.000Z
2022-03-22T11:42:04.000Z
from django.test import TestCase from django.core.urlresolvers import reverse try: from django.contrib.auth import get_user_model User = get_user_model() except ImportError: from django.contrib.auth.models import User class GlobalPermissionsAdminTest(TestCase): def setUp(self): User.objects.c...
33.368421
95
0.749211
400
0.630915
0
0
0
0
0
0
90
0.141956
48e429fb8eb61c10b1ad429f9b2db275e7f48ee3
2,307
py
Python
Models/utils.py
weslai/ecg_classification
61cb45849485129cf04ee97f458fdf731353fd4b
[ "MIT" ]
1
2020-12-03T13:34:04.000Z
2020-12-03T13:34:04.000Z
Models/utils.py
weslai/ecg_classification
61cb45849485129cf04ee97f458fdf731353fd4b
[ "MIT" ]
null
null
null
Models/utils.py
weslai/ecg_classification
61cb45849485129cf04ee97f458fdf731353fd4b
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import itertools import numpy as np from sklearn.metrics import confusion_matrix ## be used to evaluate the model def evaluate_model(history, X_test, y_test, model): scores = model.evaluate((X_test), y_test, verbose=0) print("Accuracy: %.2f%%" % (scores[1] *100)) print(hist...
32.041667
91
0.640225
0
0
0
0
0
0
0
0
569
0.246641
48e43797c38281b4f9c9d4f57ea6a962850d4cc0
44,206
py
Python
evapotranspiration/penman_monteith_daily.py
JRoehrig/evapotranspiration
aeec040273e15f93bb25ff850b33a90a41c65291
[ "MIT" ]
2
2021-08-07T10:38:41.000Z
2022-03-02T07:34:11.000Z
evapotranspiration/penman_monteith_daily.py
JRoehrig/evapotranspiration
aeec040273e15f93bb25ff850b33a90a41c65291
[ "MIT" ]
null
null
null
evapotranspiration/penman_monteith_daily.py
JRoehrig/evapotranspiration
aeec040273e15f93bb25ff850b33a90a41c65291
[ "MIT" ]
null
null
null
import math import numpy as np import pandas as pd class PenmanMonteithDaily(object): r"""The class *PenmanMonteithDaily* calculates daily potential evapotranspiration according to the Penman-Monteith method as described in `FAO 56 <http://www.fao.org/tempref/SD/Reserved/Agromet/PET/FAO_Irrigation_Drainag...
46.14405
120
0.58474
44,208
0.998735
0
0
18,924
0.427526
0
0
31,635
0.714689
48e612645ef11a151beea876541ffc2a70be93e5
5,123
py
Python
src/cnc-app-name/views.py
scotchoaf/cnc-skeleton
2116bf3d61fc1ed834daeaa146f5730713300010
[ "MIT" ]
null
null
null
src/cnc-app-name/views.py
scotchoaf/cnc-skeleton
2116bf3d61fc1ed834daeaa146f5730713300010
[ "MIT" ]
null
null
null
src/cnc-app-name/views.py
scotchoaf/cnc-skeleton
2116bf3d61fc1ed834daeaa146f5730713300010
[ "MIT" ]
1
2019-04-08T14:54:12.000Z
2019-04-08T14:54:12.000Z
# Copyright (c) 2018, Palo Alto Networks # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
44.163793
111
0.728479
2,844
0.555143
0
0
0
0
0
0
3,428
0.669139
48e75715f9ebbd7bc9cad087839a0b649f005b70
1,312
py
Python
tcc_server/emulatorRPi.py
MegaNo0body/tcc
469824a8afc1cf846793212d42f6c8c43ee4b0bf
[ "MIT" ]
1
2016-09-29T22:39:31.000Z
2016-09-29T22:39:31.000Z
tcc_server/emulatorRPi.py
MegaNo0body/tcc
469824a8afc1cf846793212d42f6c8c43ee4b0bf
[ "MIT" ]
null
null
null
tcc_server/emulatorRPi.py
MegaNo0body/tcc
469824a8afc1cf846793212d42f6c8c43ee4b0bf
[ "MIT" ]
null
null
null
import sys from time import sleep from random import randint from urllib.request import urlopen from urllib.parse import urlencode if len(sys.argv) != 2: print('Por favor, usar: ' + sys.argv[0] + ' {idSensor}') print('Exemplo: ' + sys.argv[0] + ' 8') else: sensorId = sys.argv[1] URL_SERVICO = 'http://1...
31.238095
77
0.51753
0
0
0
0
0
0
0
0
168
0.128049
48e7717d4dc4d7ba6b003ee81bea9813e26ea8e2
1,487
py
Python
sayn/logging/file_logger.py
robin-173/sayn
d1cf36b92fad6a1798b57ad80abb22e8386e0e86
[ "Apache-2.0" ]
105
2020-04-23T17:04:34.000Z
2022-03-18T15:47:52.000Z
sayn/logging/file_logger.py
robin-173/sayn
d1cf36b92fad6a1798b57ad80abb22e8386e0e86
[ "Apache-2.0" ]
53
2020-06-12T14:41:12.000Z
2022-01-24T13:04:58.000Z
sayn/logging/file_logger.py
robin-173/sayn
d1cf36b92fad6a1798b57ad80abb22e8386e0e86
[ "Apache-2.0" ]
9
2020-04-23T16:56:23.000Z
2021-08-16T10:54:48.000Z
from pathlib import Path import logging from .logger import Logger from .log_formatter import LogFormatter class FileLogger(Logger): fmt = LogFormatter(use_colour=False, output_ts=False) logger = None def __init__(self, folder, format=None): if format is None: format = ("%(asctime)s|...
28.056604
63
0.543376
1,376
0.925353
0
0
0
0
0
0
144
0.096839
48e84fceaf520fea1c5ef759977376465d7f8dcf
1,514
py
Python
tests/test_docs.py
gitter-badger/pygsuite
536766c36f653edbc7585141f1c3327f508e19da
[ "MIT" ]
null
null
null
tests/test_docs.py
gitter-badger/pygsuite
536766c36f653edbc7585141f1c3327f508e19da
[ "MIT" ]
null
null
null
tests/test_docs.py
gitter-badger/pygsuite
536766c36f653edbc7585141f1c3327f508e19da
[ "MIT" ]
null
null
null
from pygsuite import DefaultFonts, TextStyle, Color from pygsuite.docs.doc_elements.paragraph import Paragraph BRIGHT_GREEN_HEX = "#72FF33" def test_text(test_document): document = test_document docbody = document.body docbody.delete() docbody.add_text( "TEST_CUSTOM\n", style=TextStyl...
33.644444
90
0.707398
0
0
0
0
0
0
0
0
173
0.114267
48e92b16767155e8dc5662502fba6db4a07dc542
71,657
py
Python
neutra/vae.py
dieterichlawson/google-research
7ca9a612aa4239533c6ed8ef98543f9780d19f2b
[ "Apache-2.0" ]
4
2020-02-04T16:23:45.000Z
2021-08-30T11:56:01.000Z
neutra/vae.py
lceustc/google-research
bf793f31022db2636f42e132198ffe8bd9631b58
[ "Apache-2.0" ]
10
2020-09-26T00:19:12.000Z
2022-03-12T00:04:29.000Z
neutra/vae.py
lceustc/google-research
bf793f31022db2636f42e132198ffe8bd9631b58
[ "Apache-2.0" ]
1
2020-02-29T05:06:38.000Z
2020-02-29T05:06:38.000Z
# coding=utf-8 # Copyright 2019 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
35.057241
124
0.651744
23,491
0.327826
0
0
56,082
0.782645
0
0
8,428
0.117616
48e948236c66512a216844a7ad0e87904606f55a
2,034
py
Python
flask_oauth2_login/base.py
BasicBeluga/flask-oauth2-login
5a12ec70bcea72b2de079c072213be54f29b70b7
[ "MIT" ]
42
2015-01-13T08:51:04.000Z
2022-01-14T04:15:31.000Z
flask_oauth2_login/base.py
BasicBeluga/flask-oauth2-login
5a12ec70bcea72b2de079c072213be54f29b70b7
[ "MIT" ]
5
2015-04-29T19:31:11.000Z
2020-03-28T19:37:43.000Z
flask_oauth2_login/base.py
BasicBeluga/flask-oauth2-login
5a12ec70bcea72b2de079c072213be54f29b70b7
[ "MIT" ]
28
2015-06-16T20:30:40.000Z
2021-04-08T15:33:10.000Z
from flask import request, session, url_for from requests_oauthlib import OAuth2Session class OAuth2Login(object): def __init__(self, app=None): if app: self.init_app(app) self.app = app def get_config(self, app, name, default_value=None): return app.config.get(self.config_prefix + name, def...
24.214286
77
0.675025
1,942
0.954769
0
0
149
0.073255
0
0
141
0.069322
48ea7b107947ea8206fa8a2bda41ca826b065a52
7,530
py
Python
segmentation/utils/transforms.py
voldemortX/DST-CBC
e392313c129f6814c1a1c0f20c0abbd5505c3d7d
[ "BSD-3-Clause" ]
103
2020-04-21T01:25:16.000Z
2022-03-24T07:45:45.000Z
segmentation/utils/transforms.py
voldemortX/DST-CBC
e392313c129f6814c1a1c0f20c0abbd5505c3d7d
[ "BSD-3-Clause" ]
13
2021-03-24T06:52:21.000Z
2022-01-18T08:17:50.000Z
segmentation/utils/transforms.py
voldemortX/DST-CBC
e392313c129f6814c1a1c0f20c0abbd5505c3d7d
[ "BSD-3-Clause" ]
12
2020-04-29T02:33:11.000Z
2021-12-28T07:59:20.000Z
# Mostly copied and modified from torch/vision/references/segmentation to support unlabeled data # Copied functions from fmassa/vision-1 to support multi-dimensional masks loaded from numpy ndarray import numpy as np from PIL import Image import random import torch import utils.functional as F # For 2/3 dimensional t...
34.541284
114
0.6
6,784
0.90093
0
0
964
0.128021
0
0
1,140
0.151394
48ea83dadb4e88f0d593497119582f4e6d402985
9,036
py
Python
server.py
drunkHatch/CMPUT404-assignment-webserver
37336241ae790509804569834e2063893d37db44
[ "Apache-2.0" ]
null
null
null
server.py
drunkHatch/CMPUT404-assignment-webserver
37336241ae790509804569834e2063893d37db44
[ "Apache-2.0" ]
null
null
null
server.py
drunkHatch/CMPUT404-assignment-webserver
37336241ae790509804569834e2063893d37db44
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import socketserver import re import socket import datetime import os import mimetypes as MT import sys # Copyright 2013 Abram Hindle, Eddie Antonio Santos # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may o...
34.888031
129
0.623174
5,355
0.592564
0
0
0
0
0
0
2,669
0.295341
48ebc333c8d0ba26cd1d7f0f9c59510601ab4ec4
1,788
py
Python
cloudkitty/rating/hash/controllers/root.py
wanghuiict/cloudkitty
11ff713042eb0354f497f7051130630c46860735
[ "Apache-2.0" ]
97
2015-10-18T02:53:17.000Z
2022-03-07T05:15:39.000Z
cloudkitty/rating/hash/controllers/root.py
shanafang9/cloudkitty
911c90569ccb09ecf0d7aa11a5a707c8ebda09cf
[ "Apache-2.0" ]
1
2017-11-29T15:39:27.000Z
2017-11-29T15:39:27.000Z
cloudkitty/rating/hash/controllers/root.py
shanafang9/cloudkitty
911c90569ccb09ecf0d7aa11a5a707c8ebda09cf
[ "Apache-2.0" ]
54
2015-10-27T10:55:02.000Z
2022-02-18T08:23:19.000Z
# -*- coding: utf-8 -*- # Copyright 2015 Objectif Libre # # 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 ...
38.042553
78
0.758949
636
0.355705
0
0
179
0.100112
0
0
750
0.419463
48ec30ea94720d1931e1f3786be697d0ca01359f
8,431
py
Python
.test/test/task2/Aufgabe1/python-lib/cuddlefish/docs/webdocs.py
sowinski/testsubtree
d09b72e6b366e8e29e038445a1fa6987b2456625
[ "MIT" ]
null
null
null
.test/test/task2/Aufgabe1/python-lib/cuddlefish/docs/webdocs.py
sowinski/testsubtree
d09b72e6b366e8e29e038445a1fa6987b2456625
[ "MIT" ]
null
null
null
.test/test/task2/Aufgabe1/python-lib/cuddlefish/docs/webdocs.py
sowinski/testsubtree
d09b72e6b366e8e29e038445a1fa6987b2456625
[ "MIT" ]
null
null
null
import os, re, errno import markdown import cgi from cuddlefish import packaging from cuddlefish.docs import apirenderer from cuddlefish._version import get_versions INDEX_PAGE = '/doc/static-files/base.html' BASE_URL_INSERTION_POINT = '<base ' VERSION_INSERTION_POINT = '<div id="version">' THIRD_PARTY_PACKAGE_SUMMAR...
44.373684
94
0.632428
6,570
0.779267
0
0
0
0
0
0
1,014
0.12027
48eca2b30f95acacb8513624eb0235e73603734b
183
py
Python
src/c3nav/site/templatetags/route_render.py
johnjohndoe/c3nav
a17f863a3512e305595c16b0300796b6bae81241
[ "Apache-2.0" ]
132
2016-11-12T01:45:23.000Z
2022-03-08T15:17:10.000Z
src/c3nav/site/templatetags/route_render.py
johnjohndoe/c3nav
a17f863a3512e305595c16b0300796b6bae81241
[ "Apache-2.0" ]
66
2016-09-29T09:46:19.000Z
2022-03-11T23:26:18.000Z
src/c3nav/site/templatetags/route_render.py
johnjohndoe/c3nav
a17f863a3512e305595c16b0300796b6bae81241
[ "Apache-2.0" ]
42
2016-09-29T08:34:57.000Z
2022-03-08T15:17:15.000Z
from django import template register = template.Library() @register.filter def negate(value): return -value @register.filter def subtract(value, arg): return value - arg
13.071429
29
0.726776
0
0
0
0
118
0.644809
0
0
0
0
48edc6b7f87e0875d85de78f96a9bd1a71a88a84
9,827
py
Python
coax/experience_replay/_prioritized.py
sleepy-owl/coax
37c3e667b81537768beb25bb59d0f05124624128
[ "MIT" ]
null
null
null
coax/experience_replay/_prioritized.py
sleepy-owl/coax
37c3e667b81537768beb25bb59d0f05124624128
[ "MIT" ]
null
null
null
coax/experience_replay/_prioritized.py
sleepy-owl/coax
37c3e667b81537768beb25bb59d0f05124624128
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------------------------ # # MIT License # # # # Copyright (c) 2...
38.996032
100
0.596418
7,396
0.752391
0
0
1,467
0.149237
0
0
5,585
0.568159
48edd7f48e568a644eaeb1b10b708e137aa7c9cf
433
py
Python
src/OTLMOW/OEFModel/Classes/Wilddet.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/OEFModel/Classes/Wilddet.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/OEFModel/Classes/Wilddet.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 from OTLMOW.OEFModel.EMObject import EMObject # Generated with OEFClassCreator. To modify: extend, do not edit class Wilddet(EMObject): """Een wilddetectiesysteem zal de weggebruikers waarschuwen bij de aanwezigheid van eventueel overstekend wild""" typeURI = 'https://lgc.data.wegenenverkeer.b...
28.866667
117
0.745958
303
0.699769
0
0
0
0
0
0
271
0.625866
48eeffaa35d544f23807d7f9663c5e18d1819a1f
16,332
py
Python
test/python/testworkflow.py
kokizzu/txtai
1a3848bac006e9963ad2eef466405f8da644fecb
[ "Apache-2.0" ]
null
null
null
test/python/testworkflow.py
kokizzu/txtai
1a3848bac006e9963ad2eef466405f8da644fecb
[ "Apache-2.0" ]
47
2021-10-02T22:48:03.000Z
2021-12-29T02:36:20.000Z
test/python/testworkflow.py
kokizzu/txtai
1a3848bac006e9963ad2eef466405f8da644fecb
[ "Apache-2.0" ]
null
null
null
""" Workflow module tests """ import contextlib import glob import io import os import tempfile import sys import unittest import numpy as np import torch from txtai.api import API from txtai.embeddings import Documents, Embeddings from txtai.pipeline import Nop, Segmentation, Summary, Translation, Textractor from t...
30.873346
146
0.558903
15,811
0.968099
0
0
749
0.045861
0
0
6,007
0.367806
48f141e3c4e406a1ed8e50060eb75658e2cb4aab
202
py
Python
apps/summary/urls.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
3
2019-02-24T14:24:43.000Z
2019-10-24T18:51:32.000Z
apps/summary/urls.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
17
2017-03-14T10:55:56.000Z
2022-03-11T23:20:19.000Z
apps/summary/urls.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
2
2016-02-01T06:32:40.000Z
2019-09-06T04:33:50.000Z
from django.conf.urls import url from .views import SummaryPDFCreateView urlpatterns = [ url(r'^(?P<id>[\d]+)/$', SummaryPDFCreateView.as_view(), name='questionnaire_summary'), ]
18.363636
39
0.658416
0
0
0
0
0
0
0
0
42
0.207921
48f3e0cd5e4cb55eec34f20d3487909f95548f7a
1,418
py
Python
utipy/array/blend.py
LudvigOlsen/utipy
c287f7eed15b3591118bba49ecdfc2b2605f59a0
[ "MIT" ]
null
null
null
utipy/array/blend.py
LudvigOlsen/utipy
c287f7eed15b3591118bba49ecdfc2b2605f59a0
[ "MIT" ]
1
2022-02-16T15:24:33.000Z
2022-02-16T15:24:33.000Z
utipy/array/blend.py
LudvigOlsen/utipy
c287f7eed15b3591118bba49ecdfc2b2605f59a0
[ "MIT" ]
null
null
null
""" @author: ludvigolsen """ from typing import Union import numpy as np import pandas as pd from utipy.utils.check_instance import check_instance from utipy.utils.convert_to_type import convert_to_type def blend(x1: Union[list, np.ndarray, pd.Series], x2: Union[list, np.ndarray, pd.Series], amount: float = 0.5) -> ...
24.448276
149
0.608604
0
0
0
0
0
0
0
0
851
0.600141
48f4b8e6c0c1a95b21e6fbc67429a32685a3063d
126
py
Python
output/models/ms_data/regex/hangul_compatibility_jamo_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/regex/hangul_compatibility_jamo_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/regex/hangul_compatibility_jamo_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.regex.hangul_compatibility_jamo_xsd.hangul_compatibility_jamo import Doc __all__ = [ "Doc", ]
21
99
0.801587
0
0
0
0
0
0
0
0
5
0.039683
48f68e5109bfeba6516e554517563cbef752a170
519
py
Python
ex082.py
favitoria/python123
99074c309b700f48ddc6aa0811a1891145281af7
[ "MIT" ]
null
null
null
ex082.py
favitoria/python123
99074c309b700f48ddc6aa0811a1891145281af7
[ "MIT" ]
null
null
null
ex082.py
favitoria/python123
99074c309b700f48ddc6aa0811a1891145281af7
[ "MIT" ]
null
null
null
resposta = 'Ss' numeros = 0 listaTODOS = [] listaPAR = [] listaIMPAR = [] while resposta != 'N': numeros = int(input('Digite um número: ')) resposta = str(input('Deseja continuar [S/N]? ')) if numeros % 2 == 0: listaPAR.append(numeros) elif numeros % 2 == 1: listaIMPAR.append(numeros) ...
30.529412
58
0.660886
0
0
0
0
0
0
0
0
183
0.351923
48f6af2a7976b7669c6376018cbf7149ae87451d
2,218
py
Python
CodingInterview2/29_PrintMatrix/print_matrix.py
hscspring/TheAlgorithms-Python
5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f
[ "MIT" ]
10
2020-07-06T11:00:58.000Z
2022-01-29T09:25:24.000Z
CodingInterview2/29_PrintMatrix/print_matrix.py
hscspring/TheAlgorithms-Python
5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f
[ "MIT" ]
null
null
null
CodingInterview2/29_PrintMatrix/print_matrix.py
hscspring/TheAlgorithms-Python
5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f
[ "MIT" ]
3
2020-07-13T06:39:23.000Z
2020-08-15T16:29:48.000Z
""" 面试题 29:顺时针打印矩阵 题目:输入一个矩阵,按照从外向里以顺时针的顺序依次打印出每一个数字。 """ def make_matrix(rows: int, cols: int) -> list: res = [] k = 0 for i in range(rows): tmp = [] for j in range(cols): k += 1 tmp.append(k) res.append(tmp) return res def print_matrix_clockwisely(m...
21.533981
77
0.540126
0
0
0
0
0
0
0
0
509
0.220537
48f6c64933693697a368fb1d2ae925d6fe4cb255
1,170
py
Python
migrations/versions/ee5315dcf3e1_.py
wildintellect/tasking-manager
373fb231404628e6ae9a1838539b9c3cb23ad73c
[ "BSD-2-Clause" ]
3
2018-04-24T08:12:31.000Z
2020-09-02T18:11:21.000Z
migrations/versions/ee5315dcf3e1_.py
wildintellect/tasking-manager
373fb231404628e6ae9a1838539b9c3cb23ad73c
[ "BSD-2-Clause" ]
28
2019-01-04T17:39:00.000Z
2021-05-06T23:06:24.000Z
migrations/versions/ee5315dcf3e1_.py
wildintellect/tasking-manager
373fb231404628e6ae9a1838539b9c3cb23ad73c
[ "BSD-2-Clause" ]
3
2020-02-29T20:46:09.000Z
2020-11-20T19:44:04.000Z
"""empty message Revision ID: ee5315dcf3e1 Revises: 9f5b73af01db Create Date: 2017-05-24 10:39:46.586986 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ee5315dcf3e1' down_revision = '9f5b73af01db' branch_labels = None depends_on = None def upgrade(): # ...
31.621622
87
0.694017
0
0
0
0
0
0
0
0
574
0.490598
48f9216cd7b0c9c64c3f0cc8145822d20126a1a1
572
py
Python
python/random-videogame-generator.py
iamashiq/Hacktoberfest2021-2
9823996e9e97a25fcf70abc6fd6c55e4b60da568
[ "MIT" ]
6
2021-10-04T07:57:24.000Z
2021-11-15T13:35:21.000Z
python/random-videogame-generator.py
iamashiq/Hacktoberfest2021-2
9823996e9e97a25fcf70abc6fd6c55e4b60da568
[ "MIT" ]
2
2021-10-14T16:55:50.000Z
2021-10-31T12:17:20.000Z
python/random-videogame-generator.py
iamashiq/Hacktoberfest2021-2
9823996e9e97a25fcf70abc6fd6c55e4b60da568
[ "MIT" ]
33
2021-10-03T05:00:58.000Z
2021-11-05T19:49:19.000Z
print("Are you trying to find new videogames to play?") print("let me help you!") print("do you like shooting games, yes or no") shooting=input() if shooting = "yes" print("do you like battle royale games?") br=input() if br="yes" print("you should try out call of duty!") else if br="no" print("...
30.105263
55
0.636364
0
0
0
0
0
0
0
0
320
0.559441
48f9edbd6a5a7ba5a520ddc41c7a0b91f9666bf5
1,382
py
Python
cosmic_ray/operators/unary_operator_replacement.py
rob-smallshire/cosmic-ray
4fd751b38eee30568f8366e09452d7aa60be4e26
[ "MIT" ]
null
null
null
cosmic_ray/operators/unary_operator_replacement.py
rob-smallshire/cosmic-ray
4fd751b38eee30568f8366e09452d7aa60be4e26
[ "MIT" ]
null
null
null
cosmic_ray/operators/unary_operator_replacement.py
rob-smallshire/cosmic-ray
4fd751b38eee30568f8366e09452d7aa60be4e26
[ "MIT" ]
null
null
null
"""Implementation of the unary-operator-replacement operator. """ import ast from .operator import Operator from ..util import build_mutations # None indicates we want to delete the operator OPERATORS = (ast.UAdd, ast.USub, ast.Invert, ast.Not, None) def _to_ops(from_op): """ The sequence of operators ...
28.791667
78
0.607815
615
0.445007
507
0.36686
0
0
0
0
549
0.39725
48fa5657a82772ca80f844d0c1f8bca709ceaf35
2,069
py
Python
src/icolos/core/workflow_steps/calculation/rmsd.py
jharrymoore/Icolos
c60cc00c34208ab7011d41d52a74651763673e7a
[ "Apache-2.0" ]
11
2022-01-30T14:36:13.000Z
2022-03-22T09:40:57.000Z
src/icolos/core/workflow_steps/calculation/rmsd.py
jharrymoore/Icolos
c60cc00c34208ab7011d41d52a74651763673e7a
[ "Apache-2.0" ]
2
2022-03-23T07:56:49.000Z
2022-03-24T12:01:42.000Z
src/icolos/core/workflow_steps/calculation/rmsd.py
jharrymoore/Icolos
c60cc00c34208ab7011d41d52a74651763673e7a
[ "Apache-2.0" ]
8
2022-01-28T10:32:31.000Z
2022-03-22T09:40:59.000Z
from typing import List from pydantic import BaseModel from icolos.core.containers.compound import Conformer, unroll_conformers from icolos.utils.enums.step_enums import StepRMSDEnum, StepDataManipulationEnum from icolos.core.workflow_steps.step import _LE from icolos.core.workflow_steps.calculation.base import StepCa...
43.104167
118
0.669889
1,676
0.810053
0
0
0
0
0
0
439
0.21218
48fb1aa9e5e10603d8a878537cb85772b452f285
468
py
Python
iot/iot_portal/doctype/iot_homepage/iot_homepage.py
srdgame/symlink_iot
6ec524498cccaf2f49f7264a3b284a8956bd430c
[ "MIT" ]
4
2017-09-26T09:21:19.000Z
2021-12-22T10:26:36.000Z
iot/iot_portal/doctype/iot_homepage/iot_homepage.py
srdgame/symlink_iot
6ec524498cccaf2f49f7264a3b284a8956bd430c
[ "MIT" ]
1
2017-11-21T20:53:10.000Z
2017-12-11T02:17:06.000Z
iot/iot_portal/doctype/iot_homepage/iot_homepage.py
srdgame/symlink_iot
6ec524498cccaf2f49f7264a3b284a8956bd430c
[ "MIT" ]
9
2017-03-17T04:12:22.000Z
2022-03-21T09:33:11.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Dirk Chang and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe.website.utils import delete_page_cache class IOTHomepage(Document): def validate(sel...
31.2
84
0.782051
193
0.412393
0
0
0
0
0
0
183
0.391026
48fb52f8c130468ec6ba0fdb93a761de09a44b65
368
py
Python
src/garage/envs/env_spec.py
Maltimore/garage
a3f44b37eeddca37d157766a9a72e8772f104bcd
[ "MIT" ]
2
2020-03-15T14:35:15.000Z
2021-02-15T16:38:00.000Z
src/garage/envs/env_spec.py
Maltimore/garage
a3f44b37eeddca37d157766a9a72e8772f104bcd
[ "MIT" ]
null
null
null
src/garage/envs/env_spec.py
Maltimore/garage
a3f44b37eeddca37d157766a9a72e8772f104bcd
[ "MIT" ]
1
2020-02-24T03:04:23.000Z
2020-02-24T03:04:23.000Z
"""EnvSpec class.""" class EnvSpec: """EnvSpec class. Args: observation_space (akro.Space): The observation space of the env. action_space (akro.Space): The action space of the env. """ def __init__(self, observation_space, action_space): self.observation_space = observation...
23
73
0.668478
344
0.934783
0
0
0
0
0
0
195
0.529891
48fc04ddecaf2a0349002da2c688a1f9e69caacb
105
py
Python
exercises/exe41 - 50/exe047.py
thomas-rohde/Classes-Python
f862995510b7aabf68bc14aecf815f597034d8a1
[ "MIT" ]
null
null
null
exercises/exe41 - 50/exe047.py
thomas-rohde/Classes-Python
f862995510b7aabf68bc14aecf815f597034d8a1
[ "MIT" ]
null
null
null
exercises/exe41 - 50/exe047.py
thomas-rohde/Classes-Python
f862995510b7aabf68bc14aecf815f597034d8a1
[ "MIT" ]
null
null
null
t = int(input('Digite um nº: ')) for t0 in range(1, 11): print('{} X {} = {}'.format(t, t0, t * t0))
26.25
47
0.495238
0
0
0
0
0
0
0
0
31
0.292453
48fe1f175aa02923066c86fda95e2c0081a49955
98,484
py
Python
pysnmp-with-texts/CISCO-DIAMETER-BASE-PROTOCOL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-DIAMETER-BASE-PROTOCOL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-DIAMETER-BASE-PROTOCOL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-DIAMETER-BASE-PROTOCOL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-DIAMETER-BASE-PROTOCOL-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:54:20 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Pyt...
174.617021
9,504
0.799176
0
0
0
0
0
0
0
0
40,008
0.406239
48ff11c606361c503d4ae242b33d2e5d2c9cf908
1,337
py
Python
py_build/funcs.py
Aesonus/py-build
790a750492b0f6ecd52f6f564d3aa4522e255406
[ "MIT" ]
null
null
null
py_build/funcs.py
Aesonus/py-build
790a750492b0f6ecd52f6f564d3aa4522e255406
[ "MIT" ]
null
null
null
py_build/funcs.py
Aesonus/py-build
790a750492b0f6ecd52f6f564d3aa4522e255406
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Callable, Sequence, TYPE_CHECKING import functools if TYPE_CHECKING: from .build import BuildStepCallable def split_step_name(name: str, new = ' ', old='_'): return name.replace(old, new).capitalize() def print_step_name(formatter=split_step_name, args: Se...
33.425
80
0.682872
0
0
0
0
298
0.222887
0
0
217
0.162304
48ff6f626f5b448c258b452afb93725c786ec289
3,713
py
Python
src/jellyroll/managers.py
jacobian-archive/jellyroll
02751b3108b6f6ae732a801d42ca3c85cc759978
[ "BSD-3-Clause" ]
3
2015-03-02T06:34:45.000Z
2016-11-24T18:53:59.000Z
src/jellyroll/managers.py
jacobian/jellyroll
02751b3108b6f6ae732a801d42ca3c85cc759978
[ "BSD-3-Clause" ]
null
null
null
src/jellyroll/managers.py
jacobian/jellyroll
02751b3108b6f6ae732a801d42ca3c85cc759978
[ "BSD-3-Clause" ]
null
null
null
import datetime from django.db import models from django.db.models import signals from django.contrib.contenttypes.models import ContentType from django.utils.encoding import force_unicode from tagging.fields import TagField class ItemManager(models.Manager): def __init__(self): super(ItemManager, sel...
35.361905
122
0.578777
3,486
0.938863
0
0
0
0
0
0
839
0.225963
5b011773dfebfb2a161d58f218cd80c611a2ea9c
578
py
Python
app_metrics.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
33
2018-01-16T02:04:51.000Z
2022-03-22T22:57:29.000Z
app_metrics.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
7
2019-06-16T22:02:03.000Z
2021-10-02T13:45:31.000Z
app_metrics.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
14
2019-06-01T21:39:24.000Z
2022-03-14T17:56:43.000Z
""" metrics application instance ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ import os from byceps.config import ConfigurationError from byceps.metrics.application import create_app ENV_VAR_NAME_DATABASE_URI = 'DATABASE_URI' d...
22.230769
79
0.730104
0
0
0
0
0
0
0
0
272
0.470588
5b0196e4037e9465e0b4a7171647fde301968ecb
1,927
py
Python
mysql_tests/test_schema.py
maestro-1/gino
3f06b4a9948a7657044686ae738ef3509b4729e1
[ "BSD-3-Clause" ]
1,376
2019-12-26T23:41:36.000Z
2022-03-31T11:08:04.000Z
mysql_tests/test_schema.py
maestro-1/gino
3f06b4a9948a7657044686ae738ef3509b4729e1
[ "BSD-3-Clause" ]
522
2017-07-22T00:49:06.000Z
2019-12-25T17:02:22.000Z
mysql_tests/test_schema.py
maestro-1/gino
3f06b4a9948a7657044686ae738ef3509b4729e1
[ "BSD-3-Clause" ]
89
2020-01-02T02:12:37.000Z
2022-03-21T14:14:51.000Z
from enum import Enum import pytest import gino from gino.dialects.aiomysql import AsyncEnum pytestmark = pytest.mark.asyncio db = gino.Gino() class MyEnum(Enum): ONE = "one" TWO = "two" class Blog(db.Model): __tablename__ = "s_blog" id = db.Column(db.BigInteger(), primary_key=True) title = ...
30.109375
78
0.701609
868
0.450441
0
0
0
0
1,019
0.528801
153
0.079398
5b0240511c5c9c995140e0add95f3c10735d13f4
903
py
Python
solutions/29-distinct-powers.py
whitegreyblack/euler
bd8e7ca444eeb51b3c923f1235906054c507ecc8
[ "MIT" ]
null
null
null
solutions/29-distinct-powers.py
whitegreyblack/euler
bd8e7ca444eeb51b3c923f1235906054c507ecc8
[ "MIT" ]
null
null
null
solutions/29-distinct-powers.py
whitegreyblack/euler
bd8e7ca444eeb51b3c923f1235906054c507ecc8
[ "MIT" ]
null
null
null
# problem 29 # Distinct powers """ Consider all integer combinations of ab for 2 ≤ a ≤ 5 and 2 ≤ b ≤ 5: 2**2=4, 2**3=8, 2**4=16, 2**5=32 3**2=9, 3**3=27, 3**4=81, 3**5=243 4**2=16, 4**3=64, 4**4=256, 4**5=1024 5**2=25, 5**3=125, 5**4=625, 5**5=3125 If they are then placed in numerical order, with any repeats removed,...
25.083333
70
0.499446
0
0
0
0
0
0
0
0
837
0.910773
5b0340e8c87e83abc062cbdb7773314cbba482e5
2,633
py
Python
flexget/plugins/input/input_csv.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
null
null
null
flexget/plugins/input/input_csv.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
1
2017-10-09T23:06:44.000Z
2017-10-09T23:06:44.000Z
flexget/plugins/input/input_csv.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # noqa pylint: disable=unused-import, redefined-builtin from future.utils import PY3 import logging import csv from requests import RequestException from flexget import plugin from flexget.entry import Entry from flexget.event...
29.255556
87
0.565515
2,119
0.804785
0
0
1,195
0.453855
0
0
1,054
0.400304
5b03dd11f975d3847001932de43a5378848ce948
2,043
py
Python
gdget.py
tienfuc/gdcmdtools
357ada27cdb6ef0cc155b8fb52b6f6368cd1f277
[ "BSD-2-Clause" ]
29
2015-09-10T08:00:30.000Z
2021-12-24T01:15:53.000Z
gdget.py
tienfuc/gdcmdtools
357ada27cdb6ef0cc155b8fb52b6f6368cd1f277
[ "BSD-2-Clause" ]
56
2015-09-10T02:56:16.000Z
2020-10-06T13:17:21.000Z
gdget.py
tienfuc/gdcmdtools
357ada27cdb6ef0cc155b8fb52b6f6368cd1f277
[ "BSD-2-Clause" ]
4
2015-09-30T03:35:33.000Z
2019-07-07T14:19:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import re from gdcmdtools.base import BASE_INFO from gdcmdtools.base import DEBUG_LEVEL from gdcmdtools.get import GDGet from gdcmdtools.get import export_format import argparse from argparse import RawTextHelpFormatter from pprint import pprint import logg...
24.614458
93
0.603035
0
0
0
0
0
0
0
0
482
0.235928
5b042f6383e41d397423d2d9b9c278a9f5788a29
325
py
Python
Lotus/controller/common.py
Jayin/Lotus
6a4791d81b29158a1a83aa6a5d607ab5d677dba4
[ "Apache-2.0" ]
null
null
null
Lotus/controller/common.py
Jayin/Lotus
6a4791d81b29158a1a83aa6a5d607ab5d677dba4
[ "Apache-2.0" ]
null
null
null
Lotus/controller/common.py
Jayin/Lotus
6a4791d81b29158a1a83aa6a5d607ab5d677dba4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from Lotus.app import app from flask import render_template @app.route('/') def index(): return 'welcome' @app.errorhandler(404) def page_not_found(error): return render_template('404.html') @app.errorhandler(405) def request_method_error(error): return render_template('405.htm...
16.25
38
0.713846
0
0
0
0
231
0.710769
0
0
55
0.169231
5b062f73819a8130b2460252ff5ee938a80ac7e2
8,261
py
Python
src/retrocookie/git.py
cjolowicz/retrocookie
bc15dd46070ce50df21eeb016a385529d601f2b0
[ "MIT" ]
15
2020-06-21T14:35:42.000Z
2022-03-30T15:48:55.000Z
src/retrocookie/git.py
cjolowicz/retrocookie
bc15dd46070ce50df21eeb016a385529d601f2b0
[ "MIT" ]
223
2020-05-22T14:35:05.000Z
2022-03-28T00:19:23.000Z
src/retrocookie/git.py
cjolowicz/retrocookie
bc15dd46070ce50df21eeb016a385529d601f2b0
[ "MIT" ]
4
2020-11-19T12:55:01.000Z
2022-03-15T14:24:25.000Z
"""Git interface.""" from __future__ import annotations import contextlib import functools import operator import re import subprocess # noqa: S404 from dataclasses import dataclass from dataclasses import field from pathlib import Path from typing import Any from typing import cast from typing import Iterator from t...
30.824627
86
0.587459
6,753
0.817456
458
0.055441
1,916
0.231933
0
0
1,695
0.205181
5b084682efe35e9ca46aead0d385f2c28ccda23b
5,630
py
Python
apps/user/views.py
awsbreathpanda/dailyfresh
c218cdc3ea261b695ff00b6781ba3040f5d06eff
[ "MIT" ]
null
null
null
apps/user/views.py
awsbreathpanda/dailyfresh
c218cdc3ea261b695ff00b6781ba3040f5d06eff
[ "MIT" ]
7
2021-03-30T14:18:30.000Z
2022-01-13T03:13:37.000Z
apps/user/views.py
awsbreathpanda/dailyfresh
c218cdc3ea261b695ff00b6781ba3040f5d06eff
[ "MIT" ]
null
null
null
from django.shortcuts import redirect from django.contrib.auth import authenticate, login, logout from celery_tasks.tasks import celery_send_mail from apps.user.models import User import re from django.shortcuts import render from django.views import View from utils.security import get_user_token, get_activation_link, ...
31.80791
83
0.59325
5,218
0.89718
0
0
0
0
0
0
1,220
0.209766
5b08fda32750d87556f3ccf00e2fba375865e05c
2,666
py
Python
heatzy/pilote_v1.py
Devotics/heatzy-home-hassistant
34ef71604d10b1d45be4cfb17d811bdd33042ce7
[ "MIT" ]
22
2019-03-07T22:51:12.000Z
2021-03-06T12:14:50.000Z
heatzy/pilote_v1.py
Devotics/heatzy-home-hassistant
34ef71604d10b1d45be4cfb17d811bdd33042ce7
[ "MIT" ]
15
2019-03-07T13:04:11.000Z
2021-03-11T21:34:34.000Z
heatzy/pilote_v1.py
Devotics/heatzy-home-hassistant
34ef71604d10b1d45be4cfb17d811bdd33042ce7
[ "MIT" ]
7
2019-11-17T11:01:50.000Z
2021-02-24T18:13:28.000Z
from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const import (HVAC_MODE_AUTO, PRESET_AWAY, PRESET_COMFORT, PRESET_ECO, ...
27.484536
79
0.577269
1,908
0.715679
0
0
1,323
0.496249
388
0.145536
679
0.254689
5b0af9dfbe74e34130cf9a393f33916249893c28
8,315
py
Python
kubernetes-the-hard-way/system/collections/ansible_collections/community/general/plugins/modules/cloud/misc/proxmox_template.py
jkroepke/homelab
ffdd849e39b52972870f5552e734fd74cb1254a1
[ "Apache-2.0" ]
5
2020-12-16T21:42:09.000Z
2022-03-28T16:04:32.000Z
kubernetes-the-hard-way/system/collections/ansible_collections/community/general/plugins/modules/cloud/misc/proxmox_template.py
jkroepke/kubernetes-the-hard-way
70fd096a04addec0777744c9731a4e3fbdc40c8f
[ "Apache-2.0" ]
null
null
null
kubernetes-the-hard-way/system/collections/ansible_collections/community/general/plugins/modules/cloud/misc/proxmox_template.py
jkroepke/kubernetes-the-hard-way
70fd096a04addec0777744c9731a4e3fbdc40c8f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright: Ansible Project # # 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 DOCUMENTATION = ''' --- module: proxmox_template short_description: management of OS te...
33.26
138
0.657486
0
0
0
0
0
0
0
0
4,073
0.489838
5b0b336675387a3e79e4c5c116c3b8865c4ef0c0
9,024
py
Python
polling_stations/apps/councils/management/commands/import_councils.py
DemocracyClub/UK-Polling-Stations
d5c428fc7fbccf0c13a84fa0045dfd332b2879e7
[ "BSD-3-Clause" ]
29
2015-03-10T08:41:34.000Z
2022-01-12T08:51:38.000Z
polling_stations/apps/councils/management/commands/import_councils.py
DemocracyClub/UK-Polling-Stations
d5c428fc7fbccf0c13a84fa0045dfd332b2879e7
[ "BSD-3-Clause" ]
4,112
2015-04-01T21:27:38.000Z
2022-03-31T19:22:11.000Z
polling_stations/apps/councils/management/commands/import_councils.py
DemocracyClub/UK-Polling-Stations
d5c428fc7fbccf0c13a84fa0045dfd332b2879e7
[ "BSD-3-Clause" ]
31
2015-03-18T14:52:50.000Z
2022-02-24T10:31:07.000Z
import json from html import unescape import requests from django.apps import apps from django.contrib.gis.geos import GEOSGeometry, MultiPolygon, Polygon from django.conf import settings from django.core.management.base import BaseCommand from requests.exceptions import HTTPError from retry import retry from councils...
37.6
275
0.614251
8,348
0.925089
0
0
603
0.066822
0
0
3,205
0.355164
5b0b4a59e216a0cba015910bd19bb58090619801
3,693
py
Python
saleor/webhook/observability/payload_schema.py
DevPoke/saleor
ced3a2249a18031f9f593e71d1d18aa787ec1060
[ "CC-BY-4.0" ]
null
null
null
saleor/webhook/observability/payload_schema.py
DevPoke/saleor
ced3a2249a18031f9f593e71d1d18aa787ec1060
[ "CC-BY-4.0" ]
null
null
null
saleor/webhook/observability/payload_schema.py
DevPoke/saleor
ced3a2249a18031f9f593e71d1d18aa787ec1060
[ "CC-BY-4.0" ]
null
null
null
from datetime import datetime from enum import Enum from json.encoder import ESCAPE_ASCII, ESCAPE_DCT # type: ignore from typing import List, Optional, Tuple, TypedDict class JsonTruncText: def __init__(self, text="", truncated=False, added_bytes=0): self.text = text self.truncated = truncated ...
24.296053
79
0.642296
3,443
0.932304
0
0
1,200
0.324939
0
0
114
0.030869
5b0e8250fd1078639a824b073c3ab62b92fe28cf
4,537
py
Python
NMTK_apps/NMTK_server/wms/djpaste.py
bhargavasana/nmtk
9bebfcc4b43c28a1f2b2574060ea3195fca2c7dd
[ "Unlicense" ]
null
null
null
NMTK_apps/NMTK_server/wms/djpaste.py
bhargavasana/nmtk
9bebfcc4b43c28a1f2b2574060ea3195fca2c7dd
[ "Unlicense" ]
null
null
null
NMTK_apps/NMTK_server/wms/djpaste.py
bhargavasana/nmtk
9bebfcc4b43c28a1f2b2574060ea3195fca2c7dd
[ "Unlicense" ]
null
null
null
# (c) 2013 Chander Ganesan and contributors; written to work with Django and Paste (http://pythonpaste.org) # Paste CGI "middleware" for Django by Chander Ganesan <chander@otg-nc.com> # Open Technology Group, Inc <http://www.otg-nc.com> # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.ph...
36.007937
107
0.561384
3,704
0.816399
0
0
0
0
0
0
720
0.158695
5b0f67ce020d1273d176ad58ddcab8801ec9c7f2
181
py
Python
Ago-Dic-2019/JOSE ONOFRE/PRACTICAS/Practica1/RestaurantSeat.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2019/JOSE ONOFRE/PRACTICAS/Practica1/RestaurantSeat.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2019/JOSE ONOFRE/PRACTICAS/Practica1/RestaurantSeat.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
cantidad= input("Cuantas personas van a cenar?") cant = int(cantidad) print(cant) if cant > 8: print("Lo siento, tendran que esperar") else: print("La mesa esta lista")
15.083333
48
0.674033
0
0
0
0
0
0
0
0
83
0.458564
5b0faab2d16278cb33dcd52c6711c4e057f78b52
7,424
py
Python
build/piman.app/pysnmp/carrier/asyncore/dgram/base.py
jackgisel/team-athens
91e2aa810c0064f8b6b39ee53c3b05f037e0aeb0
[ "Apache-2.0" ]
null
null
null
build/piman.app/pysnmp/carrier/asyncore/dgram/base.py
jackgisel/team-athens
91e2aa810c0064f8b6b39ee53c3b05f037e0aeb0
[ "Apache-2.0" ]
null
null
null
build/piman.app/pysnmp/carrier/asyncore/dgram/base.py
jackgisel/team-athens
91e2aa810c0064f8b6b39ee53c3b05f037e0aeb0
[ "Apache-2.0" ]
null
null
null
# # This file is part of pysnmp software. # # Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pysnmp/license.html # import socket import errno import sys from pysnmp.carrier.asyncore.base import AbstractSocketTransport from pysnmp.carrier import sockfix, sockmsg, error from pysn...
40.791209
237
0.630119
6,699
0.902344
0
0
0
0
0
0
1,353
0.182247
5b10e569de8510acb457502268786c36584d12b7
5,539
py
Python
src/coreclr/scripts/superpmi-replay.py
JimmyCushnie/runtime
b7eb82871f1d742efb444873e11dd6241cea73d2
[ "MIT" ]
2
2021-05-04T11:27:27.000Z
2021-06-18T14:04:08.000Z
src/coreclr/scripts/superpmi-replay.py
JimmyCushnie/runtime
b7eb82871f1d742efb444873e11dd6241cea73d2
[ "MIT" ]
18
2019-12-03T00:21:59.000Z
2022-01-30T04:45:58.000Z
src/coreclr/scripts/superpmi-replay.py
JimmyCushnie/runtime
b7eb82871f1d742efb444873e11dd6241cea73d2
[ "MIT" ]
2
2022-01-23T12:24:04.000Z
2022-02-07T15:44:03.000Z
#!/usr/bin/env python3 # # Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the MIT license. # ## # Title : superpmi_setup.py # # Notes: # # Script to run "superpmi replay" for various collections under various COMPlus_JitStressRegs value....
37.938356
118
0.609677
0
0
0
0
0
0
0
0
2,026
0.36577
5b10fde1a0b02a1e7f85ed42e2bfe8b97109fa80
514
py
Python
parse_cookie.py
olnikiforov/hillel
911bb94169aa277932e346e564e5efd69073d634
[ "MIT" ]
null
null
null
parse_cookie.py
olnikiforov/hillel
911bb94169aa277932e346e564e5efd69073d634
[ "MIT" ]
1
2021-04-01T18:56:38.000Z
2021-04-01T18:56:38.000Z
parse_cookie.py
olnikiforov/hillel
911bb94169aa277932e346e564e5efd69073d634
[ "MIT" ]
null
null
null
def parse_cookie(query: str) -> dict: res = {} if query: data = query.split(';') for i in data: if '=' in i: res[i.split('=')[0]] = '='.join(i.split('=')[1:]) return res if __name__ == '__main__': assert parse_cookie('name=Dima;') == {'name': 'Dima'} as...
30.235294
87
0.509728
0
0
0
0
0
0
0
0
141
0.274319
5b110f22e3b74f1f108abb0d9e76465e1a151a75
2,234
py
Python
neuralgym/callbacks/model_saver.py
pancookie/SNPGAN_TECcompletion
2245179db9d9c64da20a6dd7098795a1cf724ad3
[ "MIT" ]
1
2022-02-06T07:38:43.000Z
2022-02-06T07:38:43.000Z
neuralgym/callbacks/model_saver.py
pancookie/SNPGAN_TECcompletion
2245179db9d9c64da20a6dd7098795a1cf724ad3
[ "MIT" ]
null
null
null
neuralgym/callbacks/model_saver.py
pancookie/SNPGAN_TECcompletion
2245179db9d9c64da20a6dd7098795a1cf724ad3
[ "MIT" ]
null
null
null
"""model_saver""" import os from . import PeriodicCallback, CallbackLoc from ..utils.logger import callback_log class ModelSaver(PeriodicCallback): """Save model to file at every pstep step_start. Args: pstep (int): Save to model every pstep. saver: Tensorflow saver. dump_prefix (str...
37.864407
115
0.606088
2,118
0.948075
0
0
0
0
0
0
1,320
0.590868
5b1186da0e35b3ea68ef672cbd4ad76ad6086353
1,352
py
Python
rower_monitor/boat_metrics.py
sergiomo/diy-rower-monitor
32730025874f32015b8a582175db36cdd351ce1e
[ "Unlicense" ]
null
null
null
rower_monitor/boat_metrics.py
sergiomo/diy-rower-monitor
32730025874f32015b8a582175db36cdd351ce1e
[ "Unlicense" ]
null
null
null
rower_monitor/boat_metrics.py
sergiomo/diy-rower-monitor
32730025874f32015b8a582175db36cdd351ce1e
[ "Unlicense" ]
null
null
null
from .time_series import TimeSeries class BoatModel: def __init__(self, workout): self.workout = workout self.position = TimeSeries() self.speed = TimeSeries() def update(self): """This function gets called on every flywheel encoder tick.""" pass class RotatingWheel...
35.578947
118
0.647929
1,310
0.968935
0
0
0
0
0
0
334
0.247041
5b11b42643e2e5c40307befa37ef00c0f90f66bd
121
py
Python
trackMe-backend/src/config.py
matth3wliuu/trackMe
0fb22bb8adf147fb4d4ed09c5c7253d0e54bf992
[ "MIT" ]
1
2022-01-28T06:20:03.000Z
2022-01-28T06:20:03.000Z
trackMe-backend/src/config.py
matth3wliuu/trackMe
0fb22bb8adf147fb4d4ed09c5c7253d0e54bf992
[ "MIT" ]
null
null
null
trackMe-backend/src/config.py
matth3wliuu/trackMe
0fb22bb8adf147fb4d4ed09c5c7253d0e54bf992
[ "MIT" ]
null
null
null
dbConfig = { "user": "root", "password": "123567l098", "host": "localhost", "database": "trackMe_dev" }
20.166667
29
0.545455
0
0
0
0
0
0
0
0
74
0.61157
5b1363485151128caf183c9f6b705444acca65c5
136
py
Python
src/localsrv/urls.py
vladiibine/localsrv
7bb8fd2e08f43a1b5adef9ad17ab534a317e0a57
[ "MIT" ]
null
null
null
src/localsrv/urls.py
vladiibine/localsrv
7bb8fd2e08f43a1b5adef9ad17ab534a317e0a57
[ "MIT" ]
4
2015-04-28T08:20:26.000Z
2015-06-13T06:32:31.000Z
src/localsrv/urls.py
vladiibine/localsrv
7bb8fd2e08f43a1b5adef9ad17ab534a317e0a57
[ "MIT" ]
1
2018-03-04T20:29:27.000Z
2018-03-04T20:29:27.000Z
from django.conf.urls import url from .views import serve_all urlpatterns = ( url(r'^.*$', serve_all, name="localsrv:serve_all"), )
22.666667
55
0.705882
0
0
0
0
0
0
0
0
27
0.198529
5b14c0f520aa2dfc088e43cb4960682061f61a03
409
py
Python
netrd/__init__.py
sdmccabe/netrd
f703c19b02f42c9f54bcab57014381da11dd58da
[ "MIT" ]
116
2019-01-17T18:31:43.000Z
2022-03-31T13:37:21.000Z
netrd/__init__.py
sdmccabe/netrd
f703c19b02f42c9f54bcab57014381da11dd58da
[ "MIT" ]
175
2019-01-15T01:19:13.000Z
2021-05-25T16:51:26.000Z
netrd/__init__.py
sdmccabe/netrd
f703c19b02f42c9f54bcab57014381da11dd58da
[ "MIT" ]
36
2019-01-14T20:38:32.000Z
2022-01-21T20:58:38.000Z
""" netrd ----- netrd stands for Network Reconstruction and Distances. It is a repository of different algorithms for constructing a network from time series data, as well as for comparing two networks. It is the product of the Network Science Insitute 2019 Collabathon. """ from . import distance # noqa from . impo...
25.5625
73
0.760391
0
0
0
0
0
0
0
0
300
0.733496
5b14c2ff1b60260805608d9bdfcac0cbbde63652
5,613
py
Python
pytorch/GPT.py
lyq628/NLP-Tutorials
7c9d117a3542695e79419c835ba9e98ef80800b8
[ "MIT" ]
643
2018-11-30T09:14:29.000Z
2022-03-28T14:04:15.000Z
pytorch/GPT.py
lyq628/NLP-Tutorials
7c9d117a3542695e79419c835ba9e98ef80800b8
[ "MIT" ]
22
2019-01-03T17:58:12.000Z
2022-02-10T01:56:00.000Z
pytorch/GPT.py
lyq628/NLP-Tutorials
7c9d117a3542695e79419c835ba9e98ef80800b8
[ "MIT" ]
258
2018-12-03T17:15:04.000Z
2022-03-30T07:45:49.000Z
from transformer import Encoder from torch import nn,optim from torch.nn.functional import cross_entropy,softmax, relu from torch.utils.data import DataLoader from torch.utils.data.dataloader import default_collate import torch import utils import os import pickle class GPT(nn.Module): def __init__(self, model_d...
43.176923
136
0.637983
2,766
0.492785
0
0
190
0.03385
0
0
559
0.09959
5b14e976757ac56925070b1b4efc08dd156d8a00
22,691
py
Python
skyportal/plot.py
dannygoldstein/skyportal
3f3518136530fcf5bd1787a4c890782164627fce
[ "BSD-3-Clause" ]
null
null
null
skyportal/plot.py
dannygoldstein/skyportal
3f3518136530fcf5bd1787a4c890782164627fce
[ "BSD-3-Clause" ]
null
null
null
skyportal/plot.py
dannygoldstein/skyportal
3f3518136530fcf5bd1787a4c890782164627fce
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pandas as pd from bokeh.core.json_encoder import serialize_json from bokeh.core.properties import List, String from bokeh.document import Document from bokeh.layouts import row, column from bokeh.models import CustomJS, HoverTool, Range1d, Slider, Button from bokeh.models.widgets import Check...
30.335561
88
0.534441
1,273
0.056097
0
0
0
0
0
0
6,719
0.296082
5b15f03a9e21ad9e630b8c38b2ac80ff1cf06549
4,625
py
Python
lib/session.py
Hiteshsuhas/err-stackstorm
7579350ac50d9324b64a73b86d57e094270cb275
[ "Apache-2.0" ]
15
2016-09-19T12:06:12.000Z
2021-11-30T12:04:44.000Z
lib/session.py
Hiteshsuhas/err-stackstorm
7579350ac50d9324b64a73b86d57e094270cb275
[ "Apache-2.0" ]
22
2017-06-19T18:13:54.000Z
2021-05-28T09:25:01.000Z
lib/session.py
Hiteshsuhas/err-stackstorm
7579350ac50d9324b64a73b86d57e094270cb275
[ "Apache-2.0" ]
7
2017-06-19T17:03:59.000Z
2021-09-27T11:06:31.000Z
# coding:utf-8 import uuid import string import hashlib import logging from lib.errors import SessionExpiredError, SessionConsumedError from datetime import datetime as dt from random import SystemRandom LOG = logging.getLogger("errbot.plugin.st2.session") def generate_password(length=8): rnd = SystemRandom() ...
34.774436
99
0.611676
4,188
0.905514
0
0
0
0
0
0
1,598
0.345514
5b16bf8ef2577dbc0fa8123ec5c7829b61cd4d77
700
py
Python
junopy/entities/bill.py
robertons/junopy
1acc64ab99d8ea49bb0dac979cd34da43541f243
[ "MIT" ]
3
2021-07-12T15:05:13.000Z
2022-01-31T03:35:43.000Z
junopy/entities/bill.py
robertons/junopy
1acc64ab99d8ea49bb0dac979cd34da43541f243
[ "MIT" ]
2
2022-01-29T20:14:51.000Z
2022-02-07T16:16:24.000Z
junopy/entities/bill.py
robertons/junopy
1acc64ab99d8ea49bb0dac979cd34da43541f243
[ "MIT" ]
1
2022-02-01T18:36:10.000Z
2022-02-01T18:36:10.000Z
# -*- coding: utf-8 -*- from .lib import * class Bill(JunoEntity): def __init__(cls, **kw): cls.__route__ = '/bill-payments' cls.__metadata__ = {} # FIELDS cls.id = String(max=80) cls.digitalAccountId = String(max=100) cls.billType = ObjList(context=cls, key='status', name='str') cls.numericalBarCode...
26.923077
63
0.674286
655
0.935714
0
0
0
0
0
0
98
0.14
5b18bfb17e1557ac4b871c78c2b1715de071b1e0
881
py
Python
accounts/signals.py
julesc00/challenge
0f991d07c3fa959e254d1b97d4d393fde13844a9
[ "MIT" ]
null
null
null
accounts/signals.py
julesc00/challenge
0f991d07c3fa959e254d1b97d4d393fde13844a9
[ "MIT" ]
null
null
null
accounts/signals.py
julesc00/challenge
0f991d07c3fa959e254d1b97d4d393fde13844a9
[ "MIT" ]
null
null
null
from django.db.models.signals import post_save from django.contrib.auth.signals import user_logged_in, user_logged_out, user_login_failed from django.contrib.auth.models import User from django.contrib.auth.models import Group from django.dispatch import receiver from .models import Usuario, LoginLog def user_profil...
24.472222
90
0.715096
0
0
0
0
229
0.259932
0
0
81
0.091941
5b190f68d89adb80d4fc9ec36ff5f159161ba327
2,166
py
Python
Python Scripting/Python - POC-3/DvdApp.py
vaibhavkrishna-bhosle/Trendnxt-Projects
6c8a31be2f05ec79cfc5086ee09adff161b836ad
[ "MIT" ]
null
null
null
Python Scripting/Python - POC-3/DvdApp.py
vaibhavkrishna-bhosle/Trendnxt-Projects
6c8a31be2f05ec79cfc5086ee09adff161b836ad
[ "MIT" ]
null
null
null
Python Scripting/Python - POC-3/DvdApp.py
vaibhavkrishna-bhosle/Trendnxt-Projects
6c8a31be2f05ec79cfc5086ee09adff161b836ad
[ "MIT" ]
null
null
null
import mysql.connector from mysql.connector.errors import ProgrammingError from mysql.connector import Error from DvdOperations import DvdStore database = "db4" def CreateDatabase(database): mydb = mysql.connector.connect( host="localhost", user="Vaibhav", passwd="Vaibhav@007", ) m...
24.066667
171
0.60711
0
0
0
0
0
0
0
0
570
0.263158
5b1919573f3036459523134660e1cde252b7f5d5
8,689
py
Python
cloudshell/rest/api.py
QualiSystems/cloudshell-rest-api
70d09262c81b8dae55053aae162a7265cf67865f
[ "Apache-2.0" ]
1
2021-11-26T22:52:42.000Z
2021-11-26T22:52:42.000Z
cloudshell/rest/api.py
katzy687/cloudshell-rest-api
70d09262c81b8dae55053aae162a7265cf67865f
[ "Apache-2.0" ]
11
2019-01-08T06:37:34.000Z
2021-06-09T17:39:50.000Z
cloudshell/rest/api.py
katzy687/cloudshell-rest-api
70d09262c81b8dae55053aae162a7265cf67865f
[ "Apache-2.0" ]
7
2016-09-27T13:14:00.000Z
2021-11-23T14:02:06.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import os import json try: import urllib2 except: import urllib.request as urllib2 from requests import delete, get, post, put from cloudshell.rest.exceptions import ShellNotFoundException, FeatureUnavailable class PackagingRestApiClient(object): def __init__(se...
36.662447
140
0.579008
8,425
0.969617
0
0
220
0.025319
0
0
2,563
0.294971
5b19d3c83fe2ac0f121d05692ca3db02ba4ea908
1,848
py
Python
data/scripts/classes/team_row.py
matt-waite/lol-reference
1042fc0a63f7911ed9434b5bb6ba8f866fc0a9c2
[ "MIT" ]
1
2020-08-26T17:29:58.000Z
2020-08-26T17:29:58.000Z
data/scripts/classes/team_row.py
matt-waite/lol-reference
1042fc0a63f7911ed9434b5bb6ba8f866fc0a9c2
[ "MIT" ]
null
null
null
data/scripts/classes/team_row.py
matt-waite/lol-reference
1042fc0a63f7911ed9434b5bb6ba8f866fc0a9c2
[ "MIT" ]
null
null
null
from classes import oracles_headers class TeamRow: COLUMNS = oracles_headers.oracles_columns def __init__(self, row): self.ROW = row def GetCell(self, name): return self.ROW[self.COLUMNS[name]] def GetDatabaseObject(self): game = { "gameId": self.GameId(), ...
24
63
0.540584
1,806
0.977273
0
0
0
0
0
0
238
0.128788
5b1a34dd97d2ac3c30c9847cc931832f35fa692e
7,854
py
Python
startup/97-standard-plans.py
MikeHart85/SIX_profile_collection
f4b34add0c464006a1310375b084c63597b6baf0
[ "BSD-3-Clause" ]
null
null
null
startup/97-standard-plans.py
MikeHart85/SIX_profile_collection
f4b34add0c464006a1310375b084c63597b6baf0
[ "BSD-3-Clause" ]
null
null
null
startup/97-standard-plans.py
MikeHart85/SIX_profile_collection
f4b34add0c464006a1310375b084c63597b6baf0
[ "BSD-3-Clause" ]
null
null
null
def pol_V(offset=None): yield from mv(m1_simple_fbk,0) cur_mono_e = pgm.en.user_readback.value yield from mv(epu1.table,6) # 4 = 3rd harmonic; 6 = "testing V" 1st harmonic if offset is not None: yield from mv(epu1.offset,offset) yield from mv(epu1.phase,28.5) yield from mv(pgm.en,cur_mon...
37.222749
134
0.697734
0
0
6,192
0.788388
0
0
0
0
2,768
0.352432
5b1a7c8341406690f20aa12accdb9fc9001deadc
238
py
Python
speechpro/cloud/speech/synthesis/rest/cloud_client/api/__init__.py
speechpro/cloud-python
dfcfc19a1f008b55c5290599c594fe8de777018b
[ "MIT" ]
15
2020-05-27T09:35:32.000Z
2022-03-29T18:35:36.000Z
speechpro/cloud/speech/synthesis/rest/cloud_client/api/__init__.py
speechpro/cloud-python
dfcfc19a1f008b55c5290599c594fe8de777018b
[ "MIT" ]
null
null
null
speechpro/cloud/speech/synthesis/rest/cloud_client/api/__init__.py
speechpro/cloud-python
dfcfc19a1f008b55c5290599c594fe8de777018b
[ "MIT" ]
1
2021-04-06T21:39:29.000Z
2021-04-06T21:39:29.000Z
from __future__ import absolute_import # flake8: noqa # import apis into api package import speechpro.cloud.speech.synthesis.rest.cloud_client.api.session_api import speechpro.cloud.speech.synthesis.rest.cloud_client.api.synthesize_api
29.75
76
0.848739
0
0
0
0
0
0
0
0
44
0.184874
5b1aad312b8c27483bc4147a2754724cb8c715fb
1,039
py
Python
learn_pyqt5/checkable_bar.py
liusong-cn/python
f67933f0879021a595258e09c4cde5ca1f9f6aed
[ "Apache-2.0" ]
1
2019-11-12T13:38:54.000Z
2019-11-12T13:38:54.000Z
learn_pyqt5/checkable_bar.py
liusong-cn/python
f67933f0879021a595258e09c4cde5ca1f9f6aed
[ "Apache-2.0" ]
null
null
null
learn_pyqt5/checkable_bar.py
liusong-cn/python
f67933f0879021a595258e09c4cde5ca1f9f6aed
[ "Apache-2.0" ]
null
null
null
# _*_ coding:utf-8 _*_ # author:ls # time:2020/3/19 0019 import sys from PyQt5.QtWidgets import QApplication,QAction,QMainWindow from PyQt5.QtGui import QIcon class Example(QMainWindow): def __init__(self): super().__init__() self.setui() def setui(self): self.statusbar = self.statusB...
25.341463
60
0.627526
797
0.749765
0
0
0
0
0
0
188
0.176858
5b1aca9be8fbadae0d16bcaf4d8c545808d7368a
3,451
py
Python
service/test.py
ksiomelo/cubix
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
[ "Apache-2.0" ]
3
2015-09-07T00:16:16.000Z
2019-01-11T20:27:56.000Z
service/test.py
ksiomelo/cubix
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
[ "Apache-2.0" ]
null
null
null
service/test.py
ksiomelo/cubix
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import pika import time import json import StringIO #from fca.concept import Concept from casa import Casa #from fca.readwrite import cxt def read_cxt_string(data): input_file = StringIO.StringIO(data) assert input_file.readline().strip() == "B",\ "File is not valid cxt" inpu...
30.8125
86
0.597508
0
0
0
0
0
0
0
0
835
0.241959
5b1cda3e00260587ee1daafde0d87ed8f1313a59
310
py
Python
src/nia/selections/rank.py
salar-shdk/nia
bb0f1b941240b627291dd8212b8840cbe77b0398
[ "MIT" ]
8
2021-09-06T07:20:23.000Z
2022-02-23T23:18:22.000Z
src/nia/selections/rank.py
salar-shdk/nia
bb0f1b941240b627291dd8212b8840cbe77b0398
[ "MIT" ]
null
null
null
src/nia/selections/rank.py
salar-shdk/nia
bb0f1b941240b627291dd8212b8840cbe77b0398
[ "MIT" ]
null
null
null
from .selection import Selection import numpy as np class Rank(Selection): @Selection.initializer def __init__(self, size=20): pass def select(self, population, fitness): indexes = fitness.argsort() return (population[indexes])[:self.size], (fitness[indexes])[:self.size]
25.833333
80
0.677419
256
0.825806
0
0
68
0.219355
0
0
0
0
5b1ed26356ab2b3641b50b827cab69738be819bd
15,878
py
Python
datasets/imppres/imppres.py
ddhruvkr/datasets-1
66f2a7eece98d2778bd22bb5034cb7c2376032d4
[ "Apache-2.0" ]
7
2021-01-04T22:18:26.000Z
2021-07-10T09:13:29.000Z
datasets/imppres/imppres.py
ddhruvkr/datasets-1
66f2a7eece98d2778bd22bb5034cb7c2376032d4
[ "Apache-2.0" ]
null
null
null
datasets/imppres/imppres.py
ddhruvkr/datasets-1
66f2a7eece98d2778bd22bb5034cb7c2376032d4
[ "Apache-2.0" ]
3
2021-01-03T22:08:20.000Z
2021-08-12T20:09:39.000Z
# coding=utf-8 # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. # # 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/lice...
56.910394
1,197
0.634463
11,917
0.750535
2,666
0.167905
0
0
0
0
9,985
0.628858
5b201dedf7625f49673a17f90219f4d165f06f5d
1,322
py
Python
app.py
juergenpointinger/status-dashboard
439c7e9b6966ff10ada4062c6b97d5088083f442
[ "MIT" ]
null
null
null
app.py
juergenpointinger/status-dashboard
439c7e9b6966ff10ada4062c6b97d5088083f442
[ "MIT" ]
null
null
null
app.py
juergenpointinger/status-dashboard
439c7e9b6966ff10ada4062c6b97d5088083f442
[ "MIT" ]
null
null
null
# Standard library imports import logging import os # Third party imports import dash import dash_bootstrap_components as dbc from flask_caching import Cache import plotly.io as pio # Local application imports from modules.gitlab import GitLab import settings # Initialize logging mechanism logging.bas...
28.12766
77
0.729955
0
0
0
0
0
0
0
0
638
0.482602
5b20baf76a7bc453b189c49cad4f4c0139f19706
5,154
py
Python
tests/scanner/test_data/fake_retention_scanner_data.py
ogreface/forseti-security
a7a3573183fa1416c605dad683587717795fe13b
[ "Apache-2.0" ]
null
null
null
tests/scanner/test_data/fake_retention_scanner_data.py
ogreface/forseti-security
a7a3573183fa1416c605dad683587717795fe13b
[ "Apache-2.0" ]
null
null
null
tests/scanner/test_data/fake_retention_scanner_data.py
ogreface/forseti-security
a7a3573183fa1416c605dad683587717795fe13b
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Forseti Security 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 ap...
34.13245
85
0.684517
1,634
0.317035
0
0
0
0
0
0
1,529
0.296663
5b22463c2df2d021f347bc17bcb98562b99edb54
4,298
py
Python
libsonyapi/camera.py
BugsForDays/libsonyapi
c6482b4ad90f199b7fb4e344f8e61d4ed0f9466f
[ "MIT" ]
13
2019-04-19T16:44:58.000Z
2021-09-20T05:33:10.000Z
libsonyapi/camera.py
BugsForDays/libsonyapi
c6482b4ad90f199b7fb4e344f8e61d4ed0f9466f
[ "MIT" ]
3
2021-04-23T17:21:50.000Z
2022-01-06T17:21:28.000Z
libsonyapi/camera.py
BugsForDays/libsonyapi
c6482b4ad90f199b7fb4e344f8e61d4ed0f9466f
[ "MIT" ]
5
2019-04-11T20:24:47.000Z
2021-10-17T22:02:56.000Z
import socket import requests import json import xml.etree.ElementTree as ET class Camera(object): def __init__(self): """ create camera object """ self.xml_url = self.discover() self.name, self.api_version, self.services = self.connect(self.xml_url) self.camera_end...
37.051724
156
0.578176
4,215
0.980689
0
0
0
0
0
0
1,578
0.367148
5b231e5f06d51cf2896d5d0d0db4095473d26007
11,961
py
Python
utility_functions_flu.py
neherlab/treetime_validation
c9760194712396ea5f5c33a9215eddbd3d13bfc1
[ "MIT" ]
4
2019-01-28T06:47:48.000Z
2021-04-22T16:31:37.000Z
utility_functions_flu.py
neherlab/treetime_validation
c9760194712396ea5f5c33a9215eddbd3d13bfc1
[ "MIT" ]
1
2020-04-03T14:42:11.000Z
2020-04-03T14:42:11.000Z
utility_functions_flu.py
neherlab/treetime_validation
c9760194712396ea5f5c33a9215eddbd3d13bfc1
[ "MIT" ]
1
2020-03-25T06:58:45.000Z
2020-03-25T06:58:45.000Z
#!/usr/bin/env python """ This module defines functions to facilitate operations with data specific to Flu trees and alignments. """ import numpy as np from Bio import AlignIO, Phylo from Bio.Align import MultipleSeqAlignment import random import subprocess import datetime import os, copy import matplotlib.pyplot as ...
32.239892
157
0.664995
0
0
0
0
0
0
0
0
4,463
0.373129
5b2402300dbab63aa021dccf15d38bf7417d131e
90
py
Python
python/632.smallest-range-covering-elements-from-k-lists.py
stavanmehta/leetcode
1224e43ce29430c840e65daae3b343182e24709c
[ "Apache-2.0" ]
null
null
null
python/632.smallest-range-covering-elements-from-k-lists.py
stavanmehta/leetcode
1224e43ce29430c840e65daae3b343182e24709c
[ "Apache-2.0" ]
null
null
null
python/632.smallest-range-covering-elements-from-k-lists.py
stavanmehta/leetcode
1224e43ce29430c840e65daae3b343182e24709c
[ "Apache-2.0" ]
null
null
null
class Solution: def smallestRange(self, nums: List[List[int]]) -> List[int]:
22.5
64
0.611111
80
0.888889
0
0
0
0
0
0
0
0