hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7944bfc956c75723afe4b7eab80f07fa811a643e
7,083
py
Python
pypll.py
tomvleeuwen/pypll
0609b38065b6393b7cb2039aa3e19d53f7dee606
[ "MIT" ]
1
2022-01-18T17:05:40.000Z
2022-01-18T17:05:40.000Z
pypll.py
tomvleeuwen/pypll
0609b38065b6393b7cb2039aa3e19d53f7dee606
[ "MIT" ]
null
null
null
pypll.py
tomvleeuwen/pypll
0609b38065b6393b7cb2039aa3e19d53f7dee606
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # pypll.py # # Copyright (c) 2018 Tom van Leeuwen # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without...
35.592965
100
0.60497
7944c0494a7ae39852b42103e3fb6daf76b256e4
131,240
py
Python
google/cloud/recommender/v1/recommender-v1-py/tests/unit/gapic/recommender_v1/test_recommender.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/recommender/v1/recommender-v1-py/tests/unit/gapic/recommender_v1/test_recommender.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/recommender/v1/recommender-v1-py/tests/unit/gapic/recommender_v1/test_recommender.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.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...
38.318248
231
0.677354
7944c210ee7eab003def3a06bb13ba0b82f3c185
1,701
py
Python
core/migrations/0001_initial.py
prashant111188/recipe-app-api
8894ea7f8dc269583011368832876cc1fca8cc6a
[ "MIT" ]
null
null
null
core/migrations/0001_initial.py
prashant111188/recipe-app-api
8894ea7f8dc269583011368832876cc1fca8cc6a
[ "MIT" ]
null
null
null
core/migrations/0001_initial.py
prashant111188/recipe-app-api
8894ea7f8dc269583011368832876cc1fca8cc6a
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2020-03-29 13:57 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', f...
50.029412
266
0.637272
7944c24e2721000c0ef6e01727787298bc6332dc
707
py
Python
examples/juniper/get-xnm-information.py
tcpcloud/debian-python-ncclient
fff818e60f069a286db4818e91c7fc6177d17028
[ "Apache-2.0" ]
null
null
null
examples/juniper/get-xnm-information.py
tcpcloud/debian-python-ncclient
fff818e60f069a286db4818e91c7fc6177d17028
[ "Apache-2.0" ]
null
null
null
examples/juniper/get-xnm-information.py
tcpcloud/debian-python-ncclient
fff818e60f069a286db4818e91c7fc6177d17028
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from ncclient import manager from ncclient.xml_ import * def connect(host, port, user, password, source): conn = manager.connect(host=host, port=port, username=user, password=password, timeout=600, device_params = {'name':'junos'}, ...
23.566667
62
0.591231
7944c3858e69fc26de106c7ab36e752e6c579296
1,418
py
Python
cdir_cli/user_interface/scroll_position.py
EskelinenAntti/nav
a2e4ad8c5f1581bf47da0a390422235887c49fc7
[ "MIT" ]
16
2020-05-22T09:15:15.000Z
2021-06-15T11:07:12.000Z
cdir_cli/user_interface/scroll_position.py
EskelinenAntti/nav
a2e4ad8c5f1581bf47da0a390422235887c49fc7
[ "MIT" ]
1
2020-05-25T12:00:29.000Z
2020-05-28T13:46:57.000Z
cdir_cli/user_interface/scroll_position.py
EskelinenAntti/nav
a2e4ad8c5f1581bf47da0a390422235887c49fc7
[ "MIT" ]
1
2021-04-05T16:18:07.000Z
2021-04-05T16:18:07.000Z
class ScrollPosition(): def __init__(self, visible_height, total_height): self.clear(visible_height, total_height) def move_down(self): self.last_visible_index = min(self.last_visible_index + 1, self.__get_last_index()) def move_up(self): self...
36.358974
78
0.659379
7944c466a284a9a9a8f4305652fc4ae0775388d0
242
py
Python
exercises/conditionals.py
yair19-meet/y2s18-python_review
303ba7c2ffa32a095ab1630c1b4d0398a72771ff
[ "MIT" ]
null
null
null
exercises/conditionals.py
yair19-meet/y2s18-python_review
303ba7c2ffa32a095ab1630c1b4d0398a72771ff
[ "MIT" ]
null
null
null
exercises/conditionals.py
yair19-meet/y2s18-python_review
303ba7c2ffa32a095ab1630c1b4d0398a72771ff
[ "MIT" ]
null
null
null
# Write your solution for 1.2 here! sum = 0 # for i in range(101): # if i % 2 == 0: # sum = sum + i # print(sum) for i in range(1000, 0, -1): if i % 6 == 2 and i*i % 5 == 3: print (i) break
16.133333
35
0.429752
7944c4fd26e2ce8c2ce8560ff85294d19d8d3571
21,586
py
Python
ax/plot/helper.py
gbmarc1/Ax
9428fa64a621cf4562c7e2c63881a0ca2fa2780b
[ "MIT" ]
null
null
null
ax/plot/helper.py
gbmarc1/Ax
9428fa64a621cf4562c7e2c63881a0ca2fa2780b
[ "MIT" ]
null
null
null
ax/plot/helper.py
gbmarc1/Ax
9428fa64a621cf4562c7e2c63881a0ca2fa2780b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import math from collections import Counter from typing import Any, Dict, List, Optional, Set, Tuple, Union import numpy as np from ax.core.generator_run import GeneratorRun from ax.core.observation import ObservationFeatur...
33.209231
88
0.608589
7944c5df5487b685f4ac3f2fb5bf068f86b74756
26,711
py
Python
tensor2tensor/utils/decoding.py
JosvanderWesthuizen/tensor2tensor
342e214dea360a7f472fc82f3dd0775d7e224c52
[ "Apache-2.0" ]
1
2018-07-04T02:28:37.000Z
2018-07-04T02:28:37.000Z
tensor2tensor/utils/decoding.py
zhaopufeng/tensor2tensor
7bb67a18e1e4a0cddd1d61c65c937f14c1c124e3
[ "Apache-2.0" ]
null
null
null
tensor2tensor/utils/decoding.py
zhaopufeng/tensor2tensor
7bb67a18e1e4a0cddd1d61c65c937f14c1c124e3
[ "Apache-2.0" ]
1
2019-04-12T10:53:17.000Z
2019-04-12T10:53:17.000Z
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
34.68961
80
0.670398
7944c5f358e43c55e2950ce20372d1bd70b31729
6,723
py
Python
noxfile.py
SciTools-incubator/iris-ugrid
ce035e6de456b5ab9df5daa9d164c59baddd7552
[ "BSD-3-Clause" ]
4
2020-07-28T09:27:26.000Z
2021-07-06T10:16:54.000Z
noxfile.py
SciTools-incubator/iris-ugrid
ce035e6de456b5ab9df5daa9d164c59baddd7552
[ "BSD-3-Clause" ]
30
2020-07-27T16:34:25.000Z
2021-07-07T11:17:17.000Z
noxfile.py
SciTools-incubator/iris-ugrid
ce035e6de456b5ab9df5daa9d164c59baddd7552
[ "BSD-3-Clause" ]
6
2020-07-28T09:27:47.000Z
2020-11-04T09:43:49.000Z
""" Perform test automation with nox. For further details, see https://nox.thea.codes/en/stable/# """ from hashlib import sha256 import os from pathlib import Path from shutil import rmtree from urllib.request import urlretrieve from zipfile import ZipFile import nox #: Default to reusing any pre-existing nox env...
27.896266
80
0.621598
7944c69ecd7da4c0664baf5448898b4d574ef833
2,224
py
Python
day4/part1.py
jessecambon/advent_of_code_2021
1ace59f402cf956d373200788806bc10a51c23b3
[ "MIT" ]
null
null
null
day4/part1.py
jessecambon/advent_of_code_2021
1ace59f402cf956d373200788806bc10a51c23b3
[ "MIT" ]
null
null
null
day4/part1.py
jessecambon/advent_of_code_2021
1ace59f402cf956d373200788806bc10a51c23b3
[ "MIT" ]
null
null
null
import numpy as np bingo_boards = [] bingo_square_txt = [] # Read in bingo squares as 2d numpy arrays in a list # and bingo numbers as a single 1d numpy array with open('input.txt') as f: line_index = 0 for line in f: if line_index == 0: bingo_numbers = np.fromstring(line.strip(), sep=',')...
35.301587
128
0.577338
7944c715fa15f1d48361419737106631b2de6113
4,033
py
Python
core/controllers/profile.py
aldeka/oppia
aead304c95a282c9ca8035bc25c4794864d07578
[ "Apache-2.0" ]
3
2015-01-10T23:45:23.000Z
2015-02-17T10:46:08.000Z
core/controllers/profile.py
aldeka/oppia
aead304c95a282c9ca8035bc25c4794864d07578
[ "Apache-2.0" ]
null
null
null
core/controllers/profile.py
aldeka/oppia
aead304c95a282c9ca8035bc25c4794864d07578
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
32.264
76
0.679147
7944c848fb149de3ad10f8d4120114d464e309c1
256
py
Python
tests/test_task.py
georgepsarakis/lambda-pond
79d1319345c07e95b4a1c7207b148ab04c68dc3f
[ "MIT" ]
null
null
null
tests/test_task.py
georgepsarakis/lambda-pond
79d1319345c07e95b4a1c7207b148ab04c68dc3f
[ "MIT" ]
null
null
null
tests/test_task.py
georgepsarakis/lambda-pond
79d1319345c07e95b4a1c7207b148ab04c68dc3f
[ "MIT" ]
null
null
null
import unittest from lambda_pond import AsyncTask class TestAsyncTask(unittest.TestCase): def test_ready(self): task = AsyncTask(fn=str) self.assertFalse(task.ready()) task.fulfil(None) self.assertTrue(task.ready())
19.692308
39
0.679688
7944c864885fc44e369bbd980e1c6f646a1afe0e
6,915
py
Python
weather.py
tdragon/fmi-hass-custom
8f69403d1c055960a956949cb4c0e97d6a473b1b
[ "MIT" ]
25
2020-05-02T17:30:24.000Z
2022-03-05T21:27:06.000Z
weather.py
tdragon/fmi-hass-custom
8f69403d1c055960a956949cb4c0e97d6a473b1b
[ "MIT" ]
27
2020-09-19T06:56:58.000Z
2022-03-20T11:41:03.000Z
weather.py
tdragon/fmi-hass-custom
8f69403d1c055960a956949cb4c0e97d6a473b1b
[ "MIT" ]
11
2020-04-30T05:00:56.000Z
2022-01-14T19:22:20.000Z
"""Support for retrieving meteorological data from FMI (Finnish Meteorological Institute).""" from dateutil import tz from homeassistant.components.weather import ( ATTR_FORECAST_CONDITION, ATTR_FORECAST_PRECIPITATION, ATTR_FORECAST_TEMP, ATTR_FORECAST_TIME, ATTR_FORECAST_WIND_BEARING, ATTR_FOR...
31.720183
93
0.609978
7944c9232b2cfc23435c938d0ecff10457f85dc7
1,627
py
Python
Modules/DeepCreamPy/file.py
Gusb3ll/tsukiuncen
2ae6bcac3cd3c8f224d179299ef46afd9ec87b24
[ "MIT" ]
8
2022-02-19T16:44:39.000Z
2022-02-21T08:08:33.000Z
Modules/DeepCreamPy/file.py
Gusb3ll/tsukiuncen
2ae6bcac3cd3c8f224d179299ef46afd9ec87b24
[ "MIT" ]
1
2022-03-28T12:51:04.000Z
2022-03-30T05:31:40.000Z
Modules/DeepCreamPy/file.py
Gusb3ll/Tsuki
2ae6bcac3cd3c8f224d179299ef46afd9ec87b24
[ "MIT" ]
null
null
null
import os def check_file(input_dir, output_dir, Release_version=True): file_list = [] output_file_list = [] files_removed = [] input_dir = os.listdir(input_dir) output_dir = os.listdir(output_dir) for file_in in input_dir: if not file_in.startswith('.'): file_list.append(f...
31.288462
85
0.569146
7944c940c20787c2c4877793c8aa925cac761302
1,158
py
Python
src/cms/views/media/media_actions.py
mckinly/cms-django
c9995a3bfab6ee2d02f2406a7f83cf91b7ccfcca
[ "Apache-2.0" ]
null
null
null
src/cms/views/media/media_actions.py
mckinly/cms-django
c9995a3bfab6ee2d02f2406a7f83cf91b7ccfcca
[ "Apache-2.0" ]
5
2021-02-10T02:41:20.000Z
2022-03-12T00:56:56.000Z
src/cms/views/media/media_actions.py
mckinly/cms-django
c9995a3bfab6ee2d02f2406a7f83cf91b7ccfcca
[ "Apache-2.0" ]
null
null
null
""" This module contains view actions for media related objects. """ from django.contrib.auth.decorators import login_required from django.shortcuts import redirect from django.views.decorators.http import require_POST from ...decorators import region_permission_required from ...models import Document, Region @requi...
29.692308
77
0.746978
7944cafa3f42181d7981b0ec8239b5e0b19bdbe5
1,438
py
Python
test/plugins/test_range_check.py
eduNEXT/edx-lint
e129a8b5478469f44737cb7ba1afc93b5a994bba
[ "Apache-2.0" ]
43
2015-05-30T21:35:34.000Z
2021-09-21T07:15:05.000Z
test/plugins/test_range_check.py
eduNEXT/edx-lint
e129a8b5478469f44737cb7ba1afc93b5a994bba
[ "Apache-2.0" ]
106
2015-02-02T17:43:55.000Z
2021-12-20T03:05:16.000Z
test/plugins/test_range_check.py
eduNEXT/edx-lint
e129a8b5478469f44737cb7ba1afc93b5a994bba
[ "Apache-2.0" ]
22
2015-08-28T16:19:41.000Z
2021-09-01T10:36:54.000Z
"""Test range_check.py""" import pytest from .pylint_test import run_pylint @pytest.mark.parametrize("range_name", ["range", "xrange"]) def test_range(range_name): source = ( """\ START, STOP, STEP = 0, 10, 1 # Bad range(0, 10) #=A range(0, STOP) #=B r...
27.653846
77
0.564673
7944cb0140d50899a466521d50acbb389adeba1d
12,995
py
Python
components/cuda.py
RobInLabUJI/ROSLab
3a5047a204989dea108cb163fd1ca7516ec2f5c9
[ "MIT" ]
10
2019-09-18T18:51:06.000Z
2022-01-25T21:46:05.000Z
components/cuda.py
RobInLabUJI/ROSLab
3a5047a204989dea108cb163fd1ca7516ec2f5c9
[ "MIT" ]
2
2019-09-11T13:02:35.000Z
2019-10-11T12:44:13.000Z
components/cuda.py
RobInLabUJI/ROSLab
3a5047a204989dea108cb163fd1ca7516ec2f5c9
[ "MIT" ]
2
2019-10-31T06:29:05.000Z
2020-01-08T03:18:53.000Z
import os, sys versions = ['8.0-runtime', '8.0-devel', '9.0-runtime', '9.0-devel', '9.2-runtime', '9.2-devel', '10.0-runtime', '10.0-devel'] DOCKER_CUDA_HEADER = """ ###################################### CUDA #################################### """ DOCKER_RUNTIME_CONTENTS = {} DOCKER_RUNTIME_CONTENTS[...
42.32899
150
0.679646
7944cb4d1cce2d488f0154b32c5872528fc9abba
2,051
py
Python
drupal_dockerizer/appconfig.py
jet-dev-team/drupal-dockerizer-cli
5fd5533459e49a3c580f6115f2d7fd1074fa29aa
[ "MIT" ]
null
null
null
drupal_dockerizer/appconfig.py
jet-dev-team/drupal-dockerizer-cli
5fd5533459e49a3c580f6115f2d7fd1074fa29aa
[ "MIT" ]
null
null
null
drupal_dockerizer/appconfig.py
jet-dev-team/drupal-dockerizer-cli
5fd5533459e49a3c580f6115f2d7fd1074fa29aa
[ "MIT" ]
null
null
null
import os import appdirs from pathlib import Path import yaml config_dir_name = "drupal_dockerizer" config_file_name = "config.yml" user_config_dir = appdirs.user_config_dir() class AppConfig: data = {} def __init__(self) -> None: user_config_path = Path(user_config_dir) config_dir_path = us...
32.046875
78
0.629449
7944cb4e2b632332a44d51283ae21043ba28c142
18,349
py
Python
tests/test_scheduledtask.py
leonidumanskiy/scheduledtask
c98c403dad95146ea6aac8fee71a7659b3c7209c
[ "MIT" ]
4
2017-02-04T17:35:13.000Z
2020-07-08T13:32:13.000Z
tests/test_scheduledtask.py
leonidumanskiy/scheduledtask
c98c403dad95146ea6aac8fee71a7659b3c7209c
[ "MIT" ]
3
2019-04-24T07:54:42.000Z
2019-05-22T10:01:03.000Z
tests/test_scheduledtask.py
leonidumanskiy/scheduledtask
c98c403dad95146ea6aac8fee71a7659b3c7209c
[ "MIT" ]
1
2019-04-24T09:27:07.000Z
2019-04-24T09:27:07.000Z
import unittest from scheduledtask import ScheduledTask from datetime import datetime class TestScheduledTask(unittest.TestCase): def _test_previous(self, minutes=None, hours=None, days=None, days_of_week=None, days_of_week_num=None, weeks=None, months=None, years=None, current_time=None, e...
57.883281
132
0.572293
7944cb76133aef1d7735dc14084cc20bf4764f30
7,326
py
Python
openff/interchange/tests/utils.py
daico007/openff-interchange
f6586908d39d75abab2b731ec4f0c2891e050cb3
[ "MIT" ]
null
null
null
openff/interchange/tests/utils.py
daico007/openff-interchange
f6586908d39d75abab2b731ec4f0c2891e050cb3
[ "MIT" ]
8
2021-06-23T19:24:19.000Z
2022-03-01T05:04:46.000Z
openff/interchange/tests/utils.py
justinGilmer/openff-system
d5a3da9701c66eddf49cacd6038342f413c04786
[ "MIT" ]
null
null
null
from collections import defaultdict from typing import Dict, List, Tuple import mdtraj as md import numpy as np import pytest from openff.toolkit.topology import Molecule from openff.utilities.utilities import has_executable from simtk import openmm from simtk import unit as simtk_unit from openff.interchange.compone...
33.452055
86
0.692192
7944cb9995ef4fd3e731b0447dd930473d2a3924
4,779
py
Python
dolo/numeric/grids.py
Filhagosa/dolo
384a7b144f925e4edf149abf9828b16e1a0f8798
[ "BSD-2-Clause" ]
null
null
null
dolo/numeric/grids.py
Filhagosa/dolo
384a7b144f925e4edf149abf9828b16e1a0f8798
[ "BSD-2-Clause" ]
null
null
null
dolo/numeric/grids.py
Filhagosa/dolo
384a7b144f925e4edf149abf9828b16e1a0f8798
[ "BSD-2-Clause" ]
null
null
null
from functools import reduce from operator import mul from quantecon import cartesian import numpy as np from numpy import zeros def prod(l): return reduce(mul, l, 1.0) from dolo.numeric.misc import mlinspace class Grid: def __mul__(self, rgrid): return cat_grids(self, rgrid) @property def nod...
23.658416
84
0.608286
7944ccc62d11aa457b5528cee727ec1cf2a0e7bc
8,479
py
Python
mimic3models/length_of_stay/utils.py
nlhkh/mimic3-benchmarks
f87a2040263c4d767f7e79768221685ec0331aa7
[ "MIT" ]
1
2021-03-07T11:33:31.000Z
2021-03-07T11:33:31.000Z
mimic3models/length_of_stay/utils.py
nlhkh/mimic3-benchmarks
f87a2040263c4d767f7e79768221685ec0331aa7
[ "MIT" ]
null
null
null
mimic3models/length_of_stay/utils.py
nlhkh/mimic3-benchmarks
f87a2040263c4d767f7e79768221685ec0331aa7
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from mimic3models import metrics from mimic3models import common_utils import threading import os import numpy as np import random def preprocess_chunk(data, ts, discretizer, normalizer=None): data = [discretizer.transform(X, end=t)[0] ...
34.893004
110
0.504659
7944ccffde3d53c525a26db684c6991b75336f39
2,663
py
Python
tests/test_geocoder_autocomplete_api.py
mnogoruk/HerePy
4fb91310d1ca5993f2ce89c9f73461f523c754ec
[ "MIT" ]
null
null
null
tests/test_geocoder_autocomplete_api.py
mnogoruk/HerePy
4fb91310d1ca5993f2ce89c9f73461f523c754ec
[ "MIT" ]
null
null
null
tests/test_geocoder_autocomplete_api.py
mnogoruk/HerePy
4fb91310d1ca5993f2ce89c9f73461f523c754ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import time import unittest import json import responses import herepy class GeocoderAutoCompleteApiTest(unittest.TestCase): def setUp(self): api = herepy.GeocoderAutoCompleteApi("api_key") self._api = api def test_initiation(self): self.assertIsInstan...
35.039474
88
0.645888
7944cd79f501030f19079f02c86047c998e33be0
5,723
py
Python
apps/files/models.py
iamjdcollins/districtwebsite
89e2aea47ca3d221665bc23586a4374421be5800
[ "MIT" ]
null
null
null
apps/files/models.py
iamjdcollins/districtwebsite
89e2aea47ca3d221665bc23586a4374421be5800
[ "MIT" ]
null
null
null
apps/files/models.py
iamjdcollins/districtwebsite
89e2aea47ca3d221665bc23586a4374421be5800
[ "MIT" ]
null
null
null
from django.db import models import apps.common.functions as commonfunctions from apps.objects.models import Node, File as BaseFile from apps.taxonomy.models import Language class File(BaseFile): PARENT_TYPE = '' PARENT_URL = '' URL_PREFIX = '' HAS_PERMISSIONS = False title = models.CharField( ...
25.211454
66
0.615237
7944ce2abf1bb530fcc0798f0948cc9d5989d052
2,380
py
Python
sdk/AsposeEmailCloudSdk/models/object_exists_request.py
aspose-email-cloud/aspose-email-cloud-python
c5c13839cbbbfa5b6617bd1aedf3cf30cd664227
[ "MIT" ]
1
2020-02-26T13:19:06.000Z
2020-02-26T13:19:06.000Z
sdk/AsposeEmailCloudSdk/models/object_exists_request.py
aspose-email-cloud/aspose-email-cloud-python
c5c13839cbbbfa5b6617bd1aedf3cf30cd664227
[ "MIT" ]
null
null
null
sdk/AsposeEmailCloudSdk/models/object_exists_request.py
aspose-email-cloud/aspose-email-cloud-python
c5c13839cbbbfa5b6617bd1aedf3cf30cd664227
[ "MIT" ]
null
null
null
# coding: utf-8 # ---------------------------------------------------------------------------- # <copyright company="Aspose" file="object_exists_request.py"> # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person...
40.338983
84
0.652101
7944ce2e6ffd68fd56af848812007087e5ad284f
1,267
py
Python
newdle/vendor/django_mail/backends/locmem.py
linhhvo/newdle
e66cc3c256b5e405c5c5a5306757c798162a36af
[ "MIT" ]
2
2020-10-02T14:12:17.000Z
2020-10-02T14:12:19.000Z
newdle/vendor/django_mail/backends/locmem.py
linhhvo/newdle
e66cc3c256b5e405c5c5a5306757c798162a36af
[ "MIT" ]
2
2020-09-24T14:10:42.000Z
2020-09-24T16:01:22.000Z
newdle/vendor/django_mail/backends/locmem.py
linhhvo/newdle
e66cc3c256b5e405c5c5a5306757c798162a36af
[ "MIT" ]
null
null
null
# The code in here is taken almost verbatim from `django.core.mail.backends.locmem`, # which is licensed under the three-clause BSD license and is originally # available on the following URL: # https://github.com/django/django/blob/stable/2.2.x/django/core/mail/backends/locmem.py # Credits of the original code go to th...
31.675
88
0.694554
7944cee418b9a5dd8204e5bbf9b950e84a92b1ea
1,055
py
Python
examples/calibration.py
lanius/vuzixwrapdev
694ce5b53599cdad3979f1193efe1b83a36dbd38
[ "MIT" ]
1
2015-07-31T21:54:49.000Z
2015-07-31T21:54:49.000Z
examples/calibration.py
lanius/vuzixwrapdev
694ce5b53599cdad3979f1193efe1b83a36dbd38
[ "MIT" ]
null
null
null
examples/calibration.py
lanius/vuzixwrapdev
694ce5b53599cdad3979f1193efe1b83a36dbd38
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse from time import sleep import vuzixwrapdev def calibrate(): with vuzixwrapdev.opening() as device: print('Calibration start presently. Move your head.') device.begin_calibrate() sleep(8) device.end_calibrate() print('Finished.') d...
23.444444
68
0.603791
7944cf100faaafd411e176f72a07e82e41524366
57,238
py
Python
Lib/xml/etree/ElementTree.py
neyazahmad007/cpython
3e0f1fc4e0ffcfcc706015fa3d67c262948ef171
[ "PSF-2.0" ]
27
2017-04-21T14:57:04.000Z
2021-11-03T22:10:38.000Z
Lib/xml/etree/ElementTree.py
ShipraaMathur/cpython
584f24b2f3d1f6d6663d9cf49ef653264b6e004e
[ "PSF-2.0" ]
null
null
null
Lib/xml/etree/ElementTree.py
ShipraaMathur/cpython
584f24b2f3d1f6d6663d9cf49ef653264b6e004e
[ "PSF-2.0" ]
9
2017-04-26T14:14:05.000Z
2020-12-14T16:26:41.000Z
"""Lightweight XML support for Python. XML is an inherently hierarchical data format, and the most natural way to represent it is with a tree. This module has two classes for this purpose: 1. ElementTree represents the whole XML document as a tree and 2. Element represents a single node in this tree. In...
34.43923
79
0.580873
7944d04fe14c2d01aed24ce470edd4acada192ec
5,035
py
Python
cellcounter/statistics/tests.py
oghm2/cellcounter
e39f07cc5fc2f78f509efaaac308efa5fb35f3ef
[ "MIT" ]
2
2016-11-02T01:01:36.000Z
2018-09-07T19:10:41.000Z
cellcounter/statistics/tests.py
oghm2/cellcounter
e39f07cc5fc2f78f509efaaac308efa5fb35f3ef
[ "MIT" ]
76
2015-01-16T18:46:06.000Z
2022-03-21T22:16:10.000Z
cellcounter/statistics/tests.py
oghm2/cellcounter
e39f07cc5fc2f78f509efaaac308efa5fb35f3ef
[ "MIT" ]
3
2020-05-31T11:25:45.000Z
2020-07-27T12:06:53.000Z
from importlib import import_module from django.conf import settings from django.urls import reverse from django.contrib.auth.models import User from django.core.cache import cache from django.test import TestCase, RequestFactory from django.shortcuts import render from rest_framework import status from rest_framewor...
40.604839
83
0.667527
7944d077e44d461c33053799095ba11bccd0f14c
948
py
Python
main/utils/exifdata.py
drhoet/photo-workflow
4d1e6be82a71fec34e37ddf4096c46d871b24b66
[ "MIT" ]
null
null
null
main/utils/exifdata.py
drhoet/photo-workflow
4d1e6be82a71fec34e37ddf4096c46d871b24b66
[ "MIT" ]
null
null
null
main/utils/exifdata.py
drhoet/photo-workflow
4d1e6be82a71fec34e37ddf4096c46d871b24b66
[ "MIT" ]
null
null
null
from datetime import datetime, timezone from .datetime import has_timezone def parse_file_filemodifytime(dt_str: str) -> datetime: return datetime.strptime(dt_str, "%Y:%m:%d %H:%M:%S%z") def parse_exif_datetimeoriginal(dt_str: str) -> datetime: """ Returns a *naive* datetime (no timezone information) """ ...
29.625
72
0.681435
7944d1349651c37b86e4dabf350de568a122b51e
1,136
py
Python
setup.py
ska-sa/scape
0909436b1d5ab0b068106e0479e95a3089e1c840
[ "BSD-3-Clause" ]
null
null
null
setup.py
ska-sa/scape
0909436b1d5ab0b068106e0479e95a3089e1c840
[ "BSD-3-Clause" ]
1
2021-06-21T23:30:52.000Z
2021-06-22T12:49:30.000Z
setup.py
ska-sa/scape
0909436b1d5ab0b068106e0479e95a3089e1c840
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup(name="scape", description="Karoo Array Telescope single-dish analysis package'", author="Ludwig Schwardt", author_email="ludwig@ska.ac.za", packages=find_packages(), url='https://github.com/ska-sa/scape', classi...
30.702703
73
0.573944
7944d1385986fd9d0e2ae134793a09ec48aa57ab
1,641
py
Python
leaf_audio/convolution_test.py
plj1280/leaf-audio
3a3495670aeb72509ed9498e5c8f1e8809249aeb
[ "Apache-2.0" ]
377
2021-03-02T16:45:16.000Z
2022-03-31T12:28:07.000Z
leaf_audio/convolution_test.py
plj1280/leaf-audio
3a3495670aeb72509ed9498e5c8f1e8809249aeb
[ "Apache-2.0" ]
17
2021-03-05T05:56:20.000Z
2022-03-27T23:17:02.000Z
leaf_audio/convolution_test.py
isabella232/leaf-audio
a509bd2149105c94147bab22ab764435d29a8b20
[ "Apache-2.0" ]
46
2021-03-03T20:17:00.000Z
2022-03-12T16:42:54.000Z
# coding=utf-8 # Copyright 2021 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
33.489796
78
0.724558
7944d1d7fe7b4bfc3755d8c22c678c787611a1a6
2,927
py
Python
pyxivcompanion/token.py
marimelon/pyxivcompanion
c0d4cbc81a61f6e80508e32b012c6ef11b49be93
[ "MIT" ]
null
null
null
pyxivcompanion/token.py
marimelon/pyxivcompanion
c0d4cbc81a61f6e80508e32b012c6ef11b49be93
[ "MIT" ]
null
null
null
pyxivcompanion/token.py
marimelon/pyxivcompanion
c0d4cbc81a61f6e80508e32b012c6ef11b49be93
[ "MIT" ]
null
null
null
import uuid from pydantic import BaseModel from .account import Account, LoginObj from .character import Character from .config import Config from .login import Login from .request import CompanionRequest from .response import SightResponseError, SightResponseLoginCharacter class Token(BaseModel): ...
37.050633
94
0.612231
7944d2c6d9096471a9dc8d0dfe12131e104c0119
51,117
py
Python
tstools/measures.py
parevalo/measures_collector
056f2b393fcca9811718a6265c32195ca9b9d79a
[ "MIT" ]
3
2020-04-08T22:27:34.000Z
2021-07-30T04:09:34.000Z
tstools/measures.py
parevalo/measures_collector
056f2b393fcca9811718a6265c32195ca9b9d79a
[ "MIT" ]
17
2019-04-02T19:21:49.000Z
2019-07-25T18:02:42.000Z
tstools/measures.py
parevalo/measures_collector
056f2b393fcca9811718a6265c32195ca9b9d79a
[ "MIT" ]
8
2019-04-04T08:52:19.000Z
2022-03-02T00:23:06.000Z
# Classes for individual projects import tstools.utils as utils import tstools.sql as sql import tstools.sheets as sheets import tstools.leaflet_tools as lft import tstools.ccd as ccd_tools import ipyleaflet import os, datetime, sqlite3, time import pandas as pd import tstools.plots as plots import ipywidge...
43.952709
103
0.555158
7944d37fa24963a658faaa26e144329dc24355dd
167
py
Python
v1.0.0.test/libotp/nametag/_constants.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v1.0.0.test/libotp/nametag/_constants.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v1.0.0.test/libotp/nametag/_constants.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
CFSpeech = 1 CFThought = 2 CFQuicktalker = 4 CFTimeout = 8 CFPageButton = 16 CFQuitButton = 32 CFReversed = 64 CFSndOpenchat = 128 CFNoQuitButton = 256 CFExclaim = 512
16.7
20
0.766467
7944d3a7d2fb01aa0b87f1127e68f5f9ee3d10eb
26,979
py
Python
pysnmp-with-texts/CISCO-DIAMETER-CC-APPL-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-CC-APPL-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-CC-APPL-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-CC-APPL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-DIAMETER-CC-APPL-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:54:22 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version ...
147.42623
2,598
0.788391
7944d6d2dc0bb5f74a1c75f0c9567b67a314e397
1,808
py
Python
Day 23/RemoveRedundantNodes.py
manvi0308/IIEC-Rise
d2eb68ef60d95b2c1f5e6eb12d623a1fc20c1c99
[ "MIT" ]
34
2020-09-06T11:04:29.000Z
2021-11-26T18:25:21.000Z
Day 23/RemoveRedundantNodes.py
manvi0308/IIEC-Rise
d2eb68ef60d95b2c1f5e6eb12d623a1fc20c1c99
[ "MIT" ]
null
null
null
Day 23/RemoveRedundantNodes.py
manvi0308/IIEC-Rise
d2eb68ef60d95b2c1f5e6eb12d623a1fc20c1c99
[ "MIT" ]
10
2020-09-08T05:26:42.000Z
2022-03-06T08:33:39.000Z
''' 1) Problem Statement : Remove redundant nodes in linked list 2) Logic : Any three adjacent nodes with same x or y value will be a redundant node, if found same x or y value for a triplet then simply remove the middle node,do so for every three nodes in succession and this way the resultant list will b...
27.393939
122
0.647124
7944d75f9cae987ee28f226d4d3d19db36549ab6
7,137
py
Python
tests/test_timing.py
ioancornea/niveristand-python
a7fd578aefa904e9eb0bab00762af0ebba21ada0
[ "MIT" ]
6
2018-07-04T10:59:43.000Z
2022-03-24T13:34:33.000Z
tests/test_timing.py
ioancornea/niveristand-python
a7fd578aefa904e9eb0bab00762af0ebba21ada0
[ "MIT" ]
14
2018-11-05T20:05:33.000Z
2022-03-10T12:54:58.000Z
tests/test_timing.py
ioancornea/niveristand-python
a7fd578aefa904e9eb0bab00762af0ebba21ada0
[ "MIT" ]
15
2018-07-04T07:58:49.000Z
2022-02-22T16:35:26.000Z
import sys from niveristand import nivs_rt_sequence from niveristand import realtimesequencetools from niveristand.clientapi import BooleanValue, DoubleValue, I64Value from niveristand.clientapi import RealTimeSequence from niveristand.errors import VeristandError from niveristand.library import multitask, nivs_yield, ...
28.894737
115
0.665125
7944d7994991b00501d919fea0a11616998b8605
8,786
py
Python
src/track.py
zubovskiii98/FairMOT
618b47da278a7c580522739239649503e662aad4
[ "MIT" ]
null
null
null
src/track.py
zubovskiii98/FairMOT
618b47da278a7c580522739239649503e662aad4
[ "MIT" ]
null
null
null
src/track.py
zubovskiii98/FairMOT
618b47da278a7c580522739239649503e662aad4
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths import os import os.path as osp import cv2 import logging import argparse import motmetrics as mm import numpy as np import torch from tracker.multitracker import JDETracker from tracking_ut...
36.608333
116
0.548486
7944d7e604022d8ea036c41c390939da200cfd87
9,584
py
Python
src/pylhe/__init__.py
jhgoh/pylhe
436176d8146800aa5dbe79fdf30903aa711d3a55
[ "Apache-2.0" ]
11
2020-04-29T08:32:01.000Z
2021-08-29T05:14:34.000Z
src/pylhe/__init__.py
jhgoh/pylhe
436176d8146800aa5dbe79fdf30903aa711d3a55
[ "Apache-2.0" ]
86
2020-04-29T08:13:21.000Z
2022-03-29T04:20:22.000Z
src/pylhe/__init__.py
jhgoh/pylhe
436176d8146800aa5dbe79fdf30903aa711d3a55
[ "Apache-2.0" ]
11
2020-05-13T09:40:06.000Z
2021-10-31T03:45:54.000Z
import gzip import os import subprocess import xml.etree.ElementTree as ET import networkx as nx import tex2pix from particle.converters.bimap import DirectionalMaps from ._version import version as __version__ from .awkward import register_awkward, to_awkward __all__ = [ "__version__", "LHEEvent", "LHEE...
30.233438
88
0.527755
7944d8c2a0be1b893f853c1269963516b68fc67f
2,371
py
Python
DoublyLinkedList.py
Shubhammehta2012/Linked-List
808c9ecbf85c2dc68a48c554a349257dfdd6572a
[ "Apache-2.0" ]
null
null
null
DoublyLinkedList.py
Shubhammehta2012/Linked-List
808c9ecbf85c2dc68a48c554a349257dfdd6572a
[ "Apache-2.0" ]
null
null
null
DoublyLinkedList.py
Shubhammehta2012/Linked-List
808c9ecbf85c2dc68a48c554a349257dfdd6572a
[ "Apache-2.0" ]
null
null
null
class Node(object): # Each node has its data and a pointer that points to next node in the Linked List def __init__(self, data, next = None, previous = None): self.data = data; self.next = next; self.previous = previous class DoublyLinkedList(object): def __init__(self): sel...
30.012658
86
0.510755
7944d8e5687b2093e6d6f29ff6cafd339db60bdb
591
py
Python
codertheory/utils/sftpstorage.py
codertheory/backend
66017e4f484414b878d2a6e78fa623870aa38cfb
[ "MIT" ]
null
null
null
codertheory/utils/sftpstorage.py
codertheory/backend
66017e4f484414b878d2a6e78fa623870aa38cfb
[ "MIT" ]
null
null
null
codertheory/utils/sftpstorage.py
codertheory/backend
66017e4f484414b878d2a6e78fa623870aa38cfb
[ "MIT" ]
null
null
null
import io from django.utils.deconstruct import deconstructible from storages.backends import sftpstorage @deconstructible class CustomSFTPStorage(sftpstorage.SFTPStorage): def _open(self, name, mode='rb'): return CustomSFTPStorageFile(name, self, mode) class CustomSFTPStorageFile(sftpstorage.SFTPStora...
26.863636
73
0.714044
7944da3322d338ce43706a807a115941e37b7afc
83
py
Python
13. Modules - Lab/03_triangle.py
elenaborisova/Python-Advanced
4c266d81f294372c3599741e8ba53f59fdc834c5
[ "MIT" ]
2
2021-04-04T06:26:13.000Z
2022-02-18T22:21:49.000Z
13. Modules - Lab/03_triangle.py
elenaborisova/Python-Advanced
4c266d81f294372c3599741e8ba53f59fdc834c5
[ "MIT" ]
null
null
null
13. Modules - Lab/03_triangle.py
elenaborisova/Python-Advanced
4c266d81f294372c3599741e8ba53f59fdc834c5
[ "MIT" ]
3
2021-02-01T12:32:03.000Z
2021-04-12T13:45:20.000Z
from triangle_print import print_triangle size = int(input()) print_triangle(size)
20.75
41
0.819277
7944daaa1fd945359835a88bdcd278ad38283bdd
1,332
py
Python
interface.py
NilanjanDaw/Ground-based-Control-and-Remote-Stabilization-for-MAV
86fe2e73d43f8384b42931cedbc5d7dc7ef90e67
[ "MIT" ]
null
null
null
interface.py
NilanjanDaw/Ground-based-Control-and-Remote-Stabilization-for-MAV
86fe2e73d43f8384b42931cedbc5d7dc7ef90e67
[ "MIT" ]
null
null
null
interface.py
NilanjanDaw/Ground-based-Control-and-Remote-Stabilization-for-MAV
86fe2e73d43f8384b42931cedbc5d7dc7ef90e67
[ "MIT" ]
null
null
null
from drone_controller import Drone import time, os, sys from threading import Thread sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/lib") import cflib from cflib.crazyflie import Crazyflie """ Initializer class to establish drone-radio data link """ class interfacer: def _controller(self): ...
30.976744
68
0.590841
7944dc33c672b9b7d3629eae8c0054e065617914
9,441
py
Python
gybe/kubernetes/io/k8s/api/extensions/v1beta1.py
peterth3/gybe
c6219e45a0c931ddb85da41607c9246407a68fd1
[ "MIT" ]
2
2021-07-12T12:59:08.000Z
2021-10-07T18:01:58.000Z
gybe/kubernetes/io/k8s/api/extensions/v1beta1.py
peterth3/gybe
c6219e45a0c931ddb85da41607c9246407a68fd1
[ "MIT" ]
null
null
null
gybe/kubernetes/io/k8s/api/extensions/v1beta1.py
peterth3/gybe
c6219e45a0c931ddb85da41607c9246407a68fd1
[ "MIT" ]
null
null
null
# generated by datamodel-codegen: # filename: _definitions.json # timestamp: 2021-01-20T05:35:16+00:00 from __future__ import annotations from typing import List, Optional from pydantic import BaseModel, Field from ..... import Kind92, Kind93 from ...apimachinery.pkg.apis.meta import v1 as v1_1 from ...apimach...
70.984962
1,389
0.741659
7944dc358c8cae948817895f0bc059aa83a23e1f
345
py
Python
backend/cli.py
etalab/suivi-ouverture
0803fe1b522a778d0b3368ca6b8017b2fdbcc0e0
[ "MIT" ]
2
2021-06-07T13:01:44.000Z
2022-03-28T14:42:32.000Z
backend/cli.py
etalab/economiecirculaire
fcce071bb9e028b74ec5255857180165a2241dee
[ "MIT" ]
18
2019-11-07T09:36:55.000Z
2022-02-27T08:00:28.000Z
backend/cli.py
etalab/suivi-ouverture
0803fe1b522a778d0b3368ca6b8017b2fdbcc0e0
[ "MIT" ]
3
2019-11-06T15:58:07.000Z
2021-06-11T08:16:16.000Z
import click from app import app, CACHE_CONFIG from flask_caching import Cache cache = Cache() @click.group() def cli(): pass @cli.command() def flush_cache(): """Flush cache""" cache.init_app(app, config=CACHE_CONFIG) with app.app_context(): cache.clear() print('Done.') if __name__ ...
13.8
44
0.646377
7944dceebbcb826ba9c50a7f7916bbeca6b14436
272
py
Python
examples/where.py
nahid/py-jsonq
badfde55ab369e8daf1dcb36dfe782d808afe6a3
[ "MIT" ]
null
null
null
examples/where.py
nahid/py-jsonq
badfde55ab369e8daf1dcb36dfe782d808afe6a3
[ "MIT" ]
null
null
null
examples/where.py
nahid/py-jsonq
badfde55ab369e8daf1dcb36dfe782d808afe6a3
[ "MIT" ]
1
2019-09-20T01:27:33.000Z
2019-09-20T01:27:33.000Z
from pyjsonq.query import JsonQ e1 = JsonQ("./data.json").at("users").where("id", ">", 3).where("location", "=", "Barisal").get() print("result", e1) e2 = JsonQ("./data.json").at("users").where("id", ">", 3).where("location", "=", "Barisal").get() print("result", e2)
27.2
97
0.584559
7944dd19baf829f03e783e2febe0e4fc7cd87e7b
709
py
Python
sandbox/demo_interactive.py
omars11/ompc
459446df9bf15946b8a16b517151a30c9aff6a33
[ "BSD-3-Clause" ]
11
2019-12-15T23:50:46.000Z
2022-01-29T14:27:52.000Z
sandbox/demo_interactive.py
omars11/ompc
459446df9bf15946b8a16b517151a30c9aff6a33
[ "BSD-3-Clause" ]
null
null
null
sandbox/demo_interactive.py
omars11/ompc
459446df9bf15946b8a16b517151a30c9aff6a33
[ "BSD-3-Clause" ]
5
2019-08-22T16:47:51.000Z
2021-12-06T07:14:32.000Z
########################333 # from IPyhton/Shell.py def get_tk(): try: import Tkinter except ImportError: return None else: hijack_tk() r = Tkinter.Tk() r.withdraw() return r def hijack_tk(): def misc_mainloop(self, n=0): pass def tkinter_mainloop(n=0): ...
20.852941
53
0.616361
7944dd7dc2767b54f00859ee069e575c42a56633
10,580
py
Python
sdk/python/pulumi_azure_native/relay/hybrid_connection_authorization_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/relay/hybrid_connection_authorization_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/relay/hybrid_connection_authorization_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
45.800866
476
0.671078
7944ddc921bdc75ca843ca7b7bb1415a642c2d9c
6,195
py
Python
image_enhancement/Network.py
xiaxx244/shadow_pose_estimation
74cc1090ef0e7f6573fb64ce1f50c50123a1b335
[ "MIT" ]
3
2020-11-25T14:34:01.000Z
2020-11-29T10:11:53.000Z
image_enhancement/Network.py
xiaxx244/shadow_pose_estimation
74cc1090ef0e7f6573fb64ce1f50c50123a1b335
[ "MIT" ]
null
null
null
image_enhancement/Network.py
xiaxx244/shadow_pose_estimation
74cc1090ef0e7f6573fb64ce1f50c50123a1b335
[ "MIT" ]
null
null
null
import keras import tensorflow as tf from keras.layers import Input, Conv2D, Conv2DTranspose, Concatenate from keras.applications. resnet50 import ResNet50 from keras.models import Model from keras.utils import multi_gpu_model from keras.layers import Activation, Dense,BatchNormalization import sys, os sys.path...
45.551471
136
0.658757
7944ddc92ab32c47829a0e2481d8c7cdc699c23b
3,569
py
Python
model_search/generators/replay_generator.py
dywsjtu/model_search
116c4f9016d8b89cf06d057dda020dae3371f211
[ "Apache-2.0" ]
3,315
2021-01-20T15:21:37.000Z
2022-03-30T18:21:29.000Z
model_search/generators/replay_generator.py
dywsjtu/model_search
116c4f9016d8b89cf06d057dda020dae3371f211
[ "Apache-2.0" ]
57
2021-01-19T20:51:03.000Z
2022-03-24T11:04:07.000Z
model_search/generators/replay_generator.py
dywsjtu/model_search
116c4f9016d8b89cf06d057dda020dae3371f211
[ "Apache-2.0" ]
380
2021-02-20T01:31:35.000Z
2022-03-31T16:48:58.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
40.101124
77
0.719529
7944de40556337299dca6adc6df436de189a56f9
990
py
Python
glowscript-fix_helix_canvas_error/GlowScriptOffline/Demos/BoxLightTest.py
Form-And-Function/galactic-collision
42d8069ef6fe5065ee60277525b913640d225ddf
[ "MIT" ]
null
null
null
glowscript-fix_helix_canvas_error/GlowScriptOffline/Demos/BoxLightTest.py
Form-And-Function/galactic-collision
42d8069ef6fe5065ee60277525b913640d225ddf
[ "MIT" ]
null
null
null
glowscript-fix_helix_canvas_error/GlowScriptOffline/Demos/BoxLightTest.py
Form-And-Function/galactic-collision
42d8069ef6fe5065ee60277525b913640d225ddf
[ "MIT" ]
1
2020-08-08T17:30:41.000Z
2020-08-08T17:30:41.000Z
from vpython import * #GlowScript 2.7 VPython # Mikhail Temkine, University of Toronto, April 2007 scene.forward = vector(-0.4,-0.3,-1) r = 3 a1 = a2 = a3 = 0.0 arrow(pos=vector(0, 4, 0), axis=vector(0, 1, 0), color=color.red) boxy = box(size=vector(3,3,3), color=vector(0.5, 0.5, 0.5), texture=textures.rough) b1 = s...
36.666667
83
0.645455
7944de4c51a9a9cc771fa331c545095d56d3bc21
8,928
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/aio/operations/_network_interface_ip_configurations_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/aio/operations/_network_interface_ip_configurations_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/aio/operations/_network_interface_ip_configurations_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.877095
220
0.681228
7944deb1e77c352172165c8c6f361b1f3f58dba3
1,181
py
Python
app_python/aula02.py
Doni-zete/Praticas-Python
36a877a9f22f9992550fb6e3bdb89c751d6299ef
[ "MIT" ]
null
null
null
app_python/aula02.py
Doni-zete/Praticas-Python
36a877a9f22f9992550fb6e3bdb89c751d6299ef
[ "MIT" ]
null
null
null
app_python/aula02.py
Doni-zete/Praticas-Python
36a877a9f22f9992550fb6e3bdb89c751d6299ef
[ "MIT" ]
null
null
null
# a = int(input("Primeiro numero:")) # b = int(input("Segundo numero:")) # c = int(input("Terceiro numero:")) # if a > b and a >c: # print("O maior numero e {}".format(a)) # elif b> a and b>c: # print("o maior numero e {}".format(b)) # else: # print("o maior numero e {}".format(c)) # print ("final do pr...
31.918919
61
0.629975
7944e02815cb5128f9013fb28ec044c1daa7a18c
286
py
Python
lunch/lunch/pages/views.py
willynpi/django-tutorial-for-programmers
9301a5428f04148e3e40b3b57b90f36f7d198fdd
[ "CC-BY-3.0" ]
300
2015-01-07T08:36:15.000Z
2022-03-08T06:47:06.000Z
lunch/lunch/pages/views.py
willynpi/django-tutorial-for-programmers
9301a5428f04148e3e40b3b57b90f36f7d198fdd
[ "CC-BY-3.0" ]
24
2015-03-22T07:44:28.000Z
2018-02-10T09:57:32.000Z
lunch/lunch/pages/views.py
willynpi/django-tutorial-for-programmers
9301a5428f04148e3e40b3b57b90f36f7d198fdd
[ "CC-BY-3.0" ]
129
2015-01-06T01:58:21.000Z
2021-09-16T07:27:49.000Z
from django.shortcuts import render from events.models import Event def home(request): try: current_event = Event.objects.latest() except Event.DoesNotExist: current_event = None return render(request, 'pages/home.html', {'current_event': current_event})
23.833333
79
0.713287
7944e0d321aec95ec1a4233974001415dd8cc2d2
4,449
py
Python
sapp/ui/filter_predicates.py
facebook/sapp
4b85d10a791d8e9c8ae83d1f62fbded24845f053
[ "MIT" ]
74
2020-12-18T20:04:30.000Z
2022-03-22T22:26:02.000Z
sapp/ui/filter_predicates.py
facebook/sapp
4b85d10a791d8e9c8ae83d1f62fbded24845f053
[ "MIT" ]
61
2020-12-21T21:33:05.000Z
2022-01-27T21:22:20.000Z
sapp/ui/filter_predicates.py
facebook/sapp
4b85d10a791d8e9c8ae83d1f62fbded24845f053
[ "MIT" ]
20
2021-04-08T01:28:53.000Z
2022-03-22T22:26:05.000Z
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from __future__ import annotations import re from abc import ABC, abstractmethod from typing import ( TYPE_CHECKING, Generic, L...
28.703226
87
0.646662
7944e1ac9dbe2368a6c1c0b2402f1e1281d915a1
8,753
py
Python
supervisor/supervisor.py
dkaukov/supervisor
4beaf571c28ec1dd59011a8e5679ae3b297eb98b
[ "Apache-2.0" ]
1
2021-09-22T00:15:17.000Z
2021-09-22T00:15:17.000Z
supervisor/supervisor.py
BigElkHunter/cyberockit
fa7140fd9a5ee1316d103628f1f7f4c6db05b158
[ "Apache-2.0" ]
62
2021-09-02T06:16:18.000Z
2022-03-31T06:19:11.000Z
supervisor/supervisor.py
BigElkHunter/cyberockit
fa7140fd9a5ee1316d103628f1f7f4c6db05b158
[ "Apache-2.0" ]
2
2021-09-22T00:13:58.000Z
2021-09-22T15:06:27.000Z
"""Home Assistant control object.""" import asyncio from contextlib import suppress from ipaddress import IPv4Address import logging from pathlib import Path from tempfile import TemporaryDirectory from typing import Awaitable, Optional import aiohttp from aiohttp.client_exceptions import ClientError from awesomeversi...
34.058366
95
0.621844
7944e1df742cd6e15996bb86f2ddd01c878a394e
783
py
Python
wildlifecompliance/migrations/0165_auto_20190503_1352.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
1
2020-12-07T17:12:40.000Z
2020-12-07T17:12:40.000Z
wildlifecompliance/migrations/0165_auto_20190503_1352.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
14
2020-01-08T08:08:26.000Z
2021-03-19T22:59:46.000Z
wildlifecompliance/migrations/0165_auto_20190503_1352.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
15
2020-01-08T08:02:28.000Z
2021-11-03T06:48:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-05-03 05:52 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
27.964286
121
0.662835
7944e21f05f33fdee45d157647a1de599bf460a7
145
py
Python
bin/django-admin.py
pabulumm/neighbors
59f3f3ae727fe52c7897beaf73d157b02cdcb7a3
[ "BSD-3-Clause" ]
null
null
null
bin/django-admin.py
pabulumm/neighbors
59f3f3ae727fe52c7897beaf73d157b02cdcb7a3
[ "BSD-3-Clause" ]
null
null
null
bin/django-admin.py
pabulumm/neighbors
59f3f3ae727fe52c7897beaf73d157b02cdcb7a3
[ "BSD-3-Clause" ]
null
null
null
#!/home/tuck/web/neighbors/bin/python3 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
24.166667
42
0.77931
7944e22cf49ca0276d6596fe329c774880857f74
7,513
py
Python
code_artyom/resnet50_classifier_01.py
artyompal/kaggle_salt
3c323755730745ac7bbfd106f1f20919cceef0ee
[ "MIT" ]
null
null
null
code_artyom/resnet50_classifier_01.py
artyompal/kaggle_salt
3c323755730745ac7bbfd106f1f20919cceef0ee
[ "MIT" ]
1
2021-03-25T23:31:26.000Z
2021-03-25T23:31:28.000Z
code_artyom/resnet50_classifier_01.py
artyompal/kaggle_salt
3c323755730745ac7bbfd106f1f20919cceef0ee
[ "MIT" ]
1
2018-11-08T09:30:38.000Z
2018-11-08T09:30:38.000Z
#!/usr/bin/python3.6 # Input data files are available in the "../data/" directory. # For example, running this (by clicking run or pressing Shift+Enter) will list the files in the input directory import os import sys import random import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn ...
39.751323
118
0.64435
7944e2b82d57ded30850d83544449ea3b788164e
6,800
py
Python
userbot/modules/vctools.py
RyuuXS/trans
89d5e0ab2c6c0ec68f4c0cabf5574d67f1e2a7fe
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2022-02-03T02:26:45.000Z
2022-03-28T07:24:42.000Z
userbot/modules/vctools.py
RyuuXS/trans
89d5e0ab2c6c0ec68f4c0cabf5574d67f1e2a7fe
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-02-07T13:21:21.000Z
2022-02-07T13:21:21.000Z
userbot/modules/vctools.py
RyuuXS/trans
89d5e0ab2c6c0ec68f4c0cabf5574d67f1e2a7fe
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2022-02-02T03:22:09.000Z
2022-03-22T09:07:30.000Z
# Copyright (C) 2021 TeamUltroid # # This file is a part of < https://github.com/TeamUltroid/Ultroid/ > # PLease read the GNU Affero General Public License in # <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>. # # Ported by @mrismanaziz # FROM Man-Userbot <https://github.com/mrismanaziz/Man-Userbot> # t...
34.871795
114
0.609559
7944e35d8abf604e7f09702fc50c7e62cc4d009c
49,372
py
Python
django/db/models/sql/compiler.py
doismellburning/django
039465a6a7a18f48ea77ceadb6949990c0ec92e1
[ "BSD-3-Clause" ]
null
null
null
django/db/models/sql/compiler.py
doismellburning/django
039465a6a7a18f48ea77ceadb6949990c0ec92e1
[ "BSD-3-Clause" ]
null
null
null
django/db/models/sql/compiler.py
doismellburning/django
039465a6a7a18f48ea77ceadb6949990c0ec92e1
[ "BSD-3-Clause" ]
null
null
null
from itertools import chain import re import warnings from django.core.exceptions import FieldError from django.db.models.constants import LOOKUP_SEP from django.db.models.expressions import OrderBy, Random, RawSQL, Ref from django.db.models.query_utils import select_related_descend, QueryWrapper from django.db.models...
43.270815
98
0.5812
7944e3d03fe934f95a02930bf458e5876d5ff31f
36,346
py
Python
run.py
catenacyber/suricata-verify
e37080298f20e43c36101fc7176dd10b0d740017
[ "MIT" ]
1
2021-11-06T15:41:14.000Z
2021-11-06T15:41:14.000Z
run.py
catenacyber/suricata-verify
e37080298f20e43c36101fc7176dd10b0d740017
[ "MIT" ]
null
null
null
run.py
catenacyber/suricata-verify
e37080298f20e43c36101fc7176dd10b0d740017
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # # Copyright (C) 2017-2021 Open Information Security Foundation # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation ...
34.615238
150
0.550184
7944e440304ec0fffa3883a09b109910d6f6c5d1
4,507
py
Python
pointnet2_rsmix/modelnet_h5_dataset_origin.py
yugeeklab/RSMix
1cacbdd80dccd7cacd9702575b6f8ffdfa4a5887
[ "MIT" ]
31
2022-02-08T02:49:01.000Z
2022-03-31T05:39:15.000Z
pointnet2_rsmix/modelnet_h5_dataset_origin.py
yugeeklab/RSMix
1cacbdd80dccd7cacd9702575b6f8ffdfa4a5887
[ "MIT" ]
4
2021-06-25T06:29:30.000Z
2022-03-04T05:18:35.000Z
pointnet2_rsmix/modelnet_h5_dataset_origin.py
yugeeklab/RSMix
1cacbdd80dccd7cacd9702575b6f8ffdfa4a5887
[ "MIT" ]
2
2022-02-08T05:41:21.000Z
2022-02-24T13:33:34.000Z
''' ModelNet dataset. Support ModelNet40, XYZ channels. Up to 2048 points. Faster IO than ModelNetDataset in the first epoch. ''' import os import sys import numpy as np import h5py BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) ROOT_DIR = BASE_DIR sys.path.append(os.path.join(...
35.769841
105
0.676947
7944e6571a168ee10f9ea5f23bd6a5513709a1cb
5,198
py
Python
sphinx/conf.py
nadavweidman/pytconf
6203d3607c1cc383c60d1c138efc1109c7a6ab59
[ "MIT" ]
null
null
null
sphinx/conf.py
nadavweidman/pytconf
6203d3607c1cc383c60d1c138efc1109c7a6ab59
[ "MIT" ]
1
2021-12-03T11:35:46.000Z
2021-12-03T11:52:52.000Z
sphinx/conf.py
nadavweidman/pytconf
6203d3607c1cc383c60d1c138efc1109c7a6ab59
[ "MIT" ]
8
2021-12-03T11:07:55.000Z
2022-03-23T13:35:05.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # pytconf documentation build configuration file, created by # sphinx-quickstart on Mon Nov 13 12:44:22 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # au...
31.50303
79
0.680262
7944e883a5a1cc66cacb72a15349573492faf43e
199
py
Python
LeFrameworkTest.py
inXS212/LeFramework
0d82a13d863aa6a99e8d8ffd195325d6ffb67bd1
[ "MIT" ]
null
null
null
LeFrameworkTest.py
inXS212/LeFramework
0d82a13d863aa6a99e8d8ffd195325d6ffb67bd1
[ "MIT" ]
null
null
null
LeFrameworkTest.py
inXS212/LeFramework
0d82a13d863aa6a99e8d8ffd195325d6ffb67bd1
[ "MIT" ]
null
null
null
import unittest from ._tests.test_rl_replays import * from ._tests.test_exercices import * from ._tests.test_vector import * """LeFramework unittests""" if __name__ == '__main__': unittest.main()
19.9
37
0.763819
7944e8d659d37f5bb80bb36c4313b3b586b90e97
1,004
py
Python
PyEFVLib/BoundaryConditions.py
Gustavo029/GridReader
7edc950c469b06c3de0093e5fd8bf6cfd59af354
[ "MIT" ]
1
2022-01-26T17:14:54.000Z
2022-01-26T17:14:54.000Z
PyEFVLib/BoundaryConditions.py
Gustavo029/GridReader
7edc950c469b06c3de0093e5fd8bf6cfd59af354
[ "MIT" ]
null
null
null
PyEFVLib/BoundaryConditions.py
Gustavo029/GridReader
7edc950c469b06c3de0093e5fd8bf6cfd59af354
[ "MIT" ]
3
2020-10-26T07:11:19.000Z
2022-01-26T17:14:42.000Z
import numpy as np from numpy import pi, sin, cos, tan, arcsin, arccos, arctan, sinh, cosh, tanh, arcsinh, arccosh, arctanh, sqrt, e , log, exp, inf, mod, floor def getFunction(expr): def function(x,y,z,t): return eval( expr.replace('x',str(x)).replace('y',str(y)).replace('z',str(z)).replace('t',str(t)) ) return f...
31.375
141
0.737052
7944eb8f98ee40e61725b1b167db275435808303
1,199
py
Python
pyscript/white_or_cozy_lights.py
paarak/home-assistant-config-2
b56f56693c4377b715a0ea286dff397609ad203c
[ "MIT" ]
null
null
null
pyscript/white_or_cozy_lights.py
paarak/home-assistant-config-2
b56f56693c4377b715a0ea286dff397609ad203c
[ "MIT" ]
null
null
null
pyscript/white_or_cozy_lights.py
paarak/home-assistant-config-2
b56f56693c4377b715a0ea286dff397609ad203c
[ "MIT" ]
1
2021-01-30T02:03:15.000Z
2021-01-30T02:03:15.000Z
from homeassistant.const import EVENT_CALL_SERVICE def white_or_cozy(group_entity_id): entity_ids = state.get_attr(group_entity_id)['entity_id'] attrs = [state.get_attr(entity_id) for entity_id in entity_ids] if "xy_color" in attrs[0]: xy_colors = [d['xy_color'] for d in attrs] xs, ys = zip...
36.333333
81
0.717264
7944ebb402a3663769fe979c26a4a65bd035e828
3,644
py
Python
src/GIS/Atlantis.py
patcmorneau/PecheFantome
616ee6a7f01c7c63a034ced068a6a6e4f4698f2d
[ "MIT" ]
null
null
null
src/GIS/Atlantis.py
patcmorneau/PecheFantome
616ee6a7f01c7c63a034ced068a6a6e4f4698f2d
[ "MIT" ]
8
2020-02-19T20:03:44.000Z
2022-02-03T19:27:24.000Z
src/GIS/Atlantis.py
patcmorneau/PecheFantome
616ee6a7f01c7c63a034ced068a6a6e4f4698f2d
[ "MIT" ]
3
2020-02-19T19:02:19.000Z
2021-12-14T14:06:25.000Z
import GGlib import mysql.connector import gpxpy.gpx from xml.etree import ElementTree as ET import subprocess ############################################################# # ****** ******* ** ****** **** ** ******** ********** # **////**/**////** **** /*////** /**/** /**/**///// ////...
33.431193
125
0.482986
7944ec9514320dcc44ff386069f5adfa3fa34a63
2,132
py
Python
virtualenviroments/skal/app/__init__.py
noahbjohnson/CS330-Final-Project
95a59559623dd4acc5e591201cc940c3d4b20cd2
[ "MIT" ]
null
null
null
virtualenviroments/skal/app/__init__.py
noahbjohnson/CS330-Final-Project
95a59559623dd4acc5e591201cc940c3d4b20cd2
[ "MIT" ]
null
null
null
virtualenviroments/skal/app/__init__.py
noahbjohnson/CS330-Final-Project
95a59559623dd4acc5e591201cc940c3d4b20cd2
[ "MIT" ]
null
null
null
from flask import Flask from config import Config from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_login import LoginManager import logging import os from logging.handlers import RotatingFileHandler, SMTPHandler from flask_mail import Mail from flask_bootstrap import Bootstrap from f...
29.611111
79
0.699343
7944ed6319cf2215c3399016b98f7eda3496ffc7
840
py
Python
link/urls.py
everydaycodings/Shorten-the-link
6962e293df4465fdaa4e08fb641fb3121d9560b2
[ "MIT" ]
1
2020-10-14T07:43:02.000Z
2020-10-14T07:43:02.000Z
link/urls.py
everydaycodings/Shorten-the-link
6962e293df4465fdaa4e08fb641fb3121d9560b2
[ "MIT" ]
1
2020-10-13T13:24:21.000Z
2020-10-13T13:24:21.000Z
link/urls.py
everydaycodings/Shorten-the-link
6962e293df4465fdaa4e08fb641fb3121d9560b2
[ "MIT" ]
null
null
null
"""Link_shortern URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class...
35
77
0.708333
7944ed6f3ab2ed2276b00bb638d9af49317451a0
1,346
py
Python
cheritest/trunk/tests/alu/test_addiu_overflow.py
tupipa/beri
cef1b41d52592cfa7454ddf59f9f2994e447cd66
[ "Apache-2.0" ]
36
2015-05-29T16:47:19.000Z
2022-02-08T21:16:26.000Z
cheritest/trunk/tests/alu/test_addiu_overflow.py
tupipa/beri
cef1b41d52592cfa7454ddf59f9f2994e447cd66
[ "Apache-2.0" ]
2
2020-06-02T13:44:55.000Z
2020-06-02T14:06:29.000Z
cheritest/trunk/tests/alu/test_addiu_overflow.py
tupipa/beri
cef1b41d52592cfa7454ddf59f9f2994e447cd66
[ "Apache-2.0" ]
15
2015-06-11T07:10:58.000Z
2021-06-18T05:14:54.000Z
#- # Copyright (c) 2011 Robert N. M. Watson # All rights reserved. # # This software was developed by SRI International and the University of # Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 # ("CTSRD"), as part of the DARPA CRASH research programme. # # @BERI_LICENSE_HEADER_START@ # # License...
40.787879
87
0.771174
7944edf1f31499ecda7338eed22f3e46ac4e1fd7
15,778
py
Python
bundle/vim-orgmode/tests/test_plugin_todo.py
ninegrid/dotfiles-vim
4604f8a2e114cb2e98d5d79f2f41048c4f564b02
[ "Unlicense" ]
null
null
null
bundle/vim-orgmode/tests/test_plugin_todo.py
ninegrid/dotfiles-vim
4604f8a2e114cb2e98d5d79f2f41048c4f564b02
[ "Unlicense" ]
null
null
null
bundle/vim-orgmode/tests/test_plugin_todo.py
ninegrid/dotfiles-vim
4604f8a2e114cb2e98d5d79f2f41048c4f564b02
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- import sys sys.path.append(u'../ftplugin') import unittest from orgmode.liborgmode.base import Direction from orgmode.vimbuffer import VimBuffer from orgmode.plugins.Todo import Todo import vim counter = 0 class TodoTestCase(unittest.TestCase): u"""Tests all the functionality of the TODO ...
37.300236
145
0.706427
7944eee51c305e00c4058d7329d06dee4a367ed9
1,571
py
Python
quartical/config/internal.py
JSKenyon/QuartiCal
2113855b080cfecc4a1c77cc9dad346ef3619716
[ "MIT" ]
null
null
null
quartical/config/internal.py
JSKenyon/QuartiCal
2113855b080cfecc4a1c77cc9dad346ef3619716
[ "MIT" ]
null
null
null
quartical/config/internal.py
JSKenyon/QuartiCal
2113855b080cfecc4a1c77cc9dad346ef3619716
[ "MIT" ]
1
2022-03-18T14:30:04.000Z
2022-03-18T14:30:04.000Z
from dataclasses import make_dataclass from pathlib import Path from quartical.config.external import Gain def gains_to_chain(opts): terms = opts.solver.terms Chain = make_dataclass( "Chain", [(t, Gain, Gain()) for t in terms] ) chain = Chain() for t in terms: setattr(c...
26.183333
74
0.614895
7944ef76f32c41ed33d1f7bb795ef0130db7d83e
4,721
py
Python
teslarent/management/commands/rental_start_end.py
flarno11/teslarent
388b5fefdc7bca0a460c5db5ea24b233467e5183
[ "Apache-2.0" ]
null
null
null
teslarent/management/commands/rental_start_end.py
flarno11/teslarent
388b5fefdc7bca0a460c5db5ea24b233467e5183
[ "Apache-2.0" ]
13
2020-02-11T21:56:50.000Z
2022-02-17T14:37:34.000Z
teslarent/management/commands/rental_start_end.py
flarno11/teslarent
388b5fefdc7bca0a460c5db5ea24b233467e5183
[ "Apache-2.0" ]
2
2019-06-27T20:38:48.000Z
2019-06-27T21:15:54.000Z
import datetime import threading import logging import time import queue from django.core.management import call_command from django.core.management.base import BaseCommand, CommandError from django.utils import timezone from teslarent.models import Rental, VehicleData from teslarent.teslaapi import teslaapi from tes...
38.382114
139
0.643508
7944efab601d059a61d1aeed03a1670b12016fbb
4,809
py
Python
cattledb/commands/base.py
reiterd/cattledb
015214afa5c3b1e94b555b138334163068aaf982
[ "MIT" ]
1
2021-02-26T14:52:40.000Z
2021-02-26T14:52:40.000Z
cattledb/commands/base.py
reiterd/cattledb
015214afa5c3b1e94b555b138334163068aaf982
[ "MIT" ]
6
2020-04-30T19:20:28.000Z
2021-03-09T15:10:50.000Z
cattledb/commands/base.py
reiterd/cattledb
015214afa5c3b1e94b555b138334163068aaf982
[ "MIT" ]
5
2020-05-04T09:10:33.000Z
2021-07-20T15:04:50.000Z
#!/usr/bin/python # coding: utf-8 import os import click import time from ..core.models import MetricDefinition, EventDefinition, MetricType, EventSeriesType @click.command() @click.option('--force', is_flag=True) @click.pass_context def initdb(ctx, force): """Initialize the Database.""" db = ctx.obj["db"] ...
33.629371
101
0.659805
7944f07ec430de7a0824a7a5274e39f4ef37f28f
5,236
py
Python
app/engine/chapter_title.py
ViolaBuddy/EscapeFromPlegia
5228b42e8525b445854d742dccf85ca65b320d70
[ "MIT" ]
null
null
null
app/engine/chapter_title.py
ViolaBuddy/EscapeFromPlegia
5228b42e8525b445854d742dccf85ca65b320d70
[ "MIT" ]
null
null
null
app/engine/chapter_title.py
ViolaBuddy/EscapeFromPlegia
5228b42e8525b445854d742dccf85ca65b320d70
[ "MIT" ]
null
null
null
from app.constants import WINWIDTH, WINHEIGHT from app.engine.sprites import SPRITES from app.engine.sound import SOUNDTHREAD from app.engine.fonts import FONT from app.engine.state import State from app.engine import background, image_mods, engine from app.engine.game_state import game class ChapterTitleS...
36.873239
120
0.571238
7944f0cf6c5464d32375d477d62e3d8b0656b321
1,503
py
Python
.history/my_classes/FirstClassFunctions/MapFilterZipList_20210706152516.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FirstClassFunctions/MapFilterZipList_20210706152516.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FirstClassFunctions/MapFilterZipList_20210706152516.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
"""Map Filter Zip List Comprehensions Higher order functions A function that takes a function as a parameter and/or returns a function as it's return value Example: sorted map _ | -- modern alternative -> list comprehensions and generator expressions ...
22.102941
144
0.646041
7944f1c995beda066665fa256684d778edfd489a
17,922
py
Python
3rdparty/experimental/gui/freetype-2.5.3/src/tools/docmaker/tohtml.py
ruoranluomu/AliOS-Things
d0f3431bcacac5b61645e9beb231a0a53be8078b
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
3rdparty/experimental/gui/freetype-2.5.3/src/tools/docmaker/tohtml.py
ruoranluomu/AliOS-Things
d0f3431bcacac5b61645e9beb231a0a53be8078b
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
3rdparty/experimental/gui/freetype-2.5.3/src/tools/docmaker/tohtml.py
ruoranluomu/AliOS-Things
d0f3431bcacac5b61645e9beb231a0a53be8078b
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
# ToHTML (c) 2002, 2003, 2005-2008, 2013 # David Turner <david@freetype.org> from sources import * from content import * from formatter import * import time # The following defines the HTML header used by all generated pages. html_header_1 = """\ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "h...
31.608466
97
0.524216
7944f327e3645e498e890d75d5e3aa197f2fba82
4,523
py
Python
scikit-learn-weighted_kde/examples/decomposition/plot_pca_vs_fa_model_selection.py
RTHMaK/git-squash-master
76c4c8437dd18114968e69a698f4581927fcdabf
[ "BSD-2-Clause" ]
1
2021-11-26T12:22:13.000Z
2021-11-26T12:22:13.000Z
scikit-learn-weighted_kde/examples/decomposition/plot_pca_vs_fa_model_selection.py
RTHMaK/git-squash-master
76c4c8437dd18114968e69a698f4581927fcdabf
[ "BSD-2-Clause" ]
null
null
null
scikit-learn-weighted_kde/examples/decomposition/plot_pca_vs_fa_model_selection.py
RTHMaK/git-squash-master
76c4c8437dd18114968e69a698f4581927fcdabf
[ "BSD-2-Clause" ]
null
null
null
""" =============================================================== Model selection with Probabilistic PCA and Factor Analysis (FA) =============================================================== Probabilistic PCA and Factor Analysis are probabilistic models. The consequence is that the likelihood of new data can be u...
35.896825
79
0.670573
7944f439eb9b2e729918cf54e37781a4078ec0f2
7,899
py
Python
tensorflow/python/tpu/datasets.py
ashutom/tensorflow-upstream
c16069c19de9e286dd664abb78d0ea421e9f32d4
[ "Apache-2.0" ]
10
2021-05-25T17:43:04.000Z
2022-03-08T10:46:09.000Z
tensorflow/python/tpu/datasets.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
1,056
2019-12-15T01:20:31.000Z
2022-02-10T02:06:28.000Z
tensorflow/python/tpu/datasets.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
6
2016-09-07T04:00:15.000Z
2022-01-12T01:47:38.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.495
80
0.741233
7944f544b9638ae5c76bcac11a42938441f4054b
427
py
Python
kivy/tests/__init__.py
Galland/kivy
95a6bf279883d706f645e4629c16d5ee1038f0ec
[ "MIT" ]
13,889
2015-01-01T06:43:41.000Z
2022-03-31T17:37:56.000Z
kivy/tests/__init__.py
Galland/kivy
95a6bf279883d706f645e4629c16d5ee1038f0ec
[ "MIT" ]
4,570
2015-01-01T17:58:52.000Z
2022-03-31T18:42:16.000Z
kivy/tests/__init__.py
Galland/kivy
95a6bf279883d706f645e4629c16d5ee1038f0ec
[ "MIT" ]
3,786
2015-01-01T09:20:45.000Z
2022-03-30T21:15:05.000Z
from kivy.tests.common import GraphicUnitTest, UnitTestTouch, UTMotionEvent, \ async_run try: from kivy.tests.async_common import UnitKivyApp except SyntaxError: # async app tests would be skipped due to async_run forcing it to skip so # it's ok to be None as it won't be used anyway UnitKivyApp = No...
35.583333
78
0.728337
7944f5931328d240cdb715c84c554b120b3e3ab3
737
py
Python
pitop/processing/algorithms/faces/core/emotion.py
pi-top/pi-top-Python-SDK
6c83cc5f612d77f86f8d391c7f2924a28f7b1232
[ "Apache-2.0" ]
28
2020-11-24T08:02:58.000Z
2022-02-27T18:37:33.000Z
pitop/processing/algorithms/faces/core/emotion.py
pi-top/pi-top-Python-SDK
6c83cc5f612d77f86f8d391c7f2924a28f7b1232
[ "Apache-2.0" ]
263
2020-11-10T14:35:10.000Z
2022-03-31T12:35:13.000Z
pitop/processing/algorithms/faces/core/emotion.py
pi-top/pi-top-Python-SDK
6c83cc5f612d77f86f8d391c7f2924a28f7b1232
[ "Apache-2.0" ]
1
2022-01-31T22:48:35.000Z
2022-01-31T22:48:35.000Z
class Emotion: def __init__(self): self._type = None self._confidence = 0.0 self._robot_view = None def clear(self): self.type = None self.confidence = 0.0 @property def type(self): return self._type @type.setter def type(self, value): s...
19.394737
36
0.598372
7944f5f11c31c1b81c4fb28472df394d7ef3bdb9
5,647
py
Python
esda/join_counts_local.py
jeffcsauer/esda
5a7e4ff67eb18bfc0a529fbac9d5a4aa1d90b2c0
[ "BSD-3-Clause" ]
145
2017-04-06T06:28:08.000Z
2022-03-26T18:31:29.000Z
esda/join_counts_local.py
jeffcsauer/esda
5a7e4ff67eb18bfc0a529fbac9d5a4aa1d90b2c0
[ "BSD-3-Clause" ]
150
2017-03-13T23:18:56.000Z
2022-03-07T06:51:54.000Z
esda/join_counts_local.py
jeffcsauer/esda
5a7e4ff67eb18bfc0a529fbac9d5a4aa1d90b2c0
[ "BSD-3-Clause" ]
50
2017-03-13T21:19:31.000Z
2022-03-31T09:30:46.000Z
import numpy as np import pandas as pd from sklearn.base import BaseEstimator from libpysal import weights from esda.crand import crand as _crand_plus, njit as _njit, _prepare_univariate PERMUTATIONS = 999 class Join_Counts_Local(BaseEstimator): """Univariate Local Join Count Statistic""" def __init__( ...
34.018072
94
0.53586
7944f614435014360ed6746ff72e6e9623ff500d
1,316
py
Python
api/managers.py
MarcelIrawan/django-template
03944f99979c303ee364b24385aa827a739cadf0
[ "MIT" ]
1
2020-11-28T12:55:56.000Z
2020-11-28T12:55:56.000Z
api/managers.py
MarcelIrawan/django-template
03944f99979c303ee364b24385aa827a739cadf0
[ "MIT" ]
null
null
null
api/managers.py
MarcelIrawan/django-template
03944f99979c303ee364b24385aa827a739cadf0
[ "MIT" ]
null
null
null
from django.contrib.auth.base_user import BaseUserManager from django.utils.translation import ugettext_lazy as _ class CustomUserManager(BaseUserManager): """ Custom user model manager where email is the unique identifier for authentication instead of username """ def create_user(self, email, pas...
36.555556
72
0.658055
7944f674f2a9cd75f75b4006ba5d740effe9ea59
1,449
py
Python
multiprom/metrics.py
Bogdanp/multiprom
36f8352cfdfcc461f07573dd9cbcdfcbf2a53246
[ "BSD-3-Clause" ]
3
2018-12-14T00:56:02.000Z
2021-07-05T06:07:12.000Z
multiprom/metrics.py
Bogdanp/multiprom
36f8352cfdfcc461f07573dd9cbcdfcbf2a53246
[ "BSD-3-Clause" ]
null
null
null
multiprom/metrics.py
Bogdanp/multiprom
36f8352cfdfcc461f07573dd9cbcdfcbf2a53246
[ "BSD-3-Clause" ]
1
2021-05-01T06:49:24.000Z
2021-05-01T06:49:24.000Z
class Metric: """ Parameters: name(str) description(str) """ kind = None def __init__(self, collector, name, description): self.collector = collector self.name = name.encode("utf-8") self.description = description.encode("utf-8") if description else None ...
25.421053
83
0.58109
7944f6c6d8b189575f95e4cb237910bad9f90218
38,414
py
Python
superai/data_program/protocol/transport.py
mysuperai/superai-sdk
796c411c6ab69209600bf727e8fd08c20f4d67b1
[ "Apache-2.0" ]
1
2020-12-03T18:18:16.000Z
2020-12-03T18:18:16.000Z
superai/data_program/protocol/transport.py
mysuperai/superai-sdk
796c411c6ab69209600bf727e8fd08c20f4d67b1
[ "Apache-2.0" ]
13
2021-02-22T18:27:58.000Z
2022-02-10T08:14:10.000Z
superai/data_program/protocol/transport.py
mysuperai/superai-sdk
796c411c6ab69209600bf727e8fd08c20f4d67b1
[ "Apache-2.0" ]
1
2021-04-27T12:38:47.000Z
2021-04-27T12:38:47.000Z
""" A transport layer for communicating with the Agent """ from __future__ import absolute_import, division, print_function, unicode_literals import concurrent import enum import functools import io import json import os import signal import sys from logging import FATAL, WARN from threading import local, Lock, Thread...
28.245588
195
0.6242
7944f86eef9f54bcb82b822d92fe5b30b5bf84ba
164
py
Python
src/week_7/data/io.py
Rutafar/text-analytics-lecture
3cdf5cf5b0d2ca85343c259beade0054f4be6e3d
[ "MIT" ]
2
2018-03-05T20:45:11.000Z
2019-03-17T02:59:57.000Z
src/week_7/data/io.py
Rutafar/text-analytics-lecture
3cdf5cf5b0d2ca85343c259beade0054f4be6e3d
[ "MIT" ]
null
null
null
src/week_7/data/io.py
Rutafar/text-analytics-lecture
3cdf5cf5b0d2ca85343c259beade0054f4be6e3d
[ "MIT" ]
8
2018-03-02T14:12:35.000Z
2018-04-21T10:31:25.000Z
from utils.utils import data_from_pickle def load_tweets(): """Load cleaned tweets into session.""" return data_from_pickle('02_cleaned/trump_tweets.pkl')
27.333333
58
0.762195
7944f9854124b32b253e7e94def6ab34fdc83b26
3,089
py
Python
model/CNN6_FC2.py
dmholtz/cnn-cifar10-pytorch
00246ab1f2694332328987fdff2e14bb106e2241
[ "MIT" ]
4
2020-04-13T06:28:10.000Z
2021-12-07T07:52:06.000Z
model/CNN6_FC2.py
dmholtz/cnn-cifar10-pytorch
00246ab1f2694332328987fdff2e14bb106e2241
[ "MIT" ]
null
null
null
model/CNN6_FC2.py
dmholtz/cnn-cifar10-pytorch
00246ab1f2694332328987fdff2e14bb106e2241
[ "MIT" ]
null
null
null
""" Convolutional neural network with five convolutional layer and two fully- connected layers afterwards @author: dmholtz """ import torch.nn as nn import torch.nn.functional as F # define the CNN architecture class Net(nn.Module): def __init__(self): super(Net, self).__init__() # 1. convolution...
38.135802
73
0.613143
7944f9a70152e5ecb54755b5e7a6f7bf8373f60e
27,507
py
Python
flopy/modflow/mfswi2.py
geowat/flopy
b6b110a8807e18dca9b0b7491db0a72b36709098
[ "CC0-1.0", "BSD-3-Clause" ]
1
2021-03-17T09:15:54.000Z
2021-03-17T09:15:54.000Z
flopy/modflow/mfswi2.py
geowat/flopy
b6b110a8807e18dca9b0b7491db0a72b36709098
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
flopy/modflow/mfswi2.py
geowat/flopy
b6b110a8807e18dca9b0b7491db0a72b36709098
[ "CC0-1.0", "BSD-3-Clause" ]
2
2020-01-03T17:14:39.000Z
2020-03-04T14:21:27.000Z
""" mfswi2 module. Contains the ModflowSwi2 class. Note that the user can access the ModflowSwi2 class as `flopy.modflow.ModflowSwi2`. Additional information for this MODFLOW package can be found at the `Online MODFLOW Guide <http://water.usgs.gov/ogw/modflow-nwt/MODFLOW-NWT-Guide/swi2_seawater_intrusion_pack.h...
38.906648
94
0.501072
7944fa05774966b34f9663062b3dcb45a8f5fac7
15,975
py
Python
process.py
constantinius/open-science-catalog-builder
328855438e24086e1fd445a1fd8c8280b5ccf4da
[ "MIT" ]
null
null
null
process.py
constantinius/open-science-catalog-builder
328855438e24086e1fd445a1fd8c8280b5ccf4da
[ "MIT" ]
null
null
null
process.py
constantinius/open-science-catalog-builder
328855438e24086e1fd445a1fd8c8280b5ccf4da
[ "MIT" ]
null
null
null
import csv import json from datetime import datetime import re import os import shutil from typing import List, Optional, TypedDict import pystac import pystac.extensions.scientific import pystac.summaries import pystac.layout import click from dateutil.parser import parse from pygeoif import geometry from slugify imp...
31.44685
130
0.561189
7944fa25238e459c6599c7740f6cf7b5954ff392
568
py
Python
tests/test_nft_analyser.py
gsk-gagan/nft_analyser
7a16d18500fcd48dce22f86251eaf6be6a272141
[ "MIT" ]
null
null
null
tests/test_nft_analyser.py
gsk-gagan/nft_analyser
7a16d18500fcd48dce22f86251eaf6be6a272141
[ "MIT" ]
null
null
null
tests/test_nft_analyser.py
gsk-gagan/nft_analyser
7a16d18500fcd48dce22f86251eaf6be6a272141
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Tests for `nft_analyser` package.""" import pytest from nft_analyser import nft_analyser @pytest.fixture def response(): """Sample pytest fixture. See more at: http://doc.pytest.org/en/latest/fixture.html """ # import requests # return requests.get('https://github.com...
22.72
78
0.714789
7944fb37d8d73b94740f03b19ef318af6384b6ac
2,347
py
Python
cnn/eval-EXP-20200415-092238/scripts/break_images.py
jatinarora2409/darts
d360a34cef970bcd42933e31eab0f7a64120c9da
[ "Apache-2.0" ]
null
null
null
cnn/eval-EXP-20200415-092238/scripts/break_images.py
jatinarora2409/darts
d360a34cef970bcd42933e31eab0f7a64120c9da
[ "Apache-2.0" ]
null
null
null
cnn/eval-EXP-20200415-092238/scripts/break_images.py
jatinarora2409/darts
d360a34cef970bcd42933e31eab0f7a64120c9da
[ "Apache-2.0" ]
null
null
null
from PIL import Image import os import sys import numpy as np from os import listdir from os.path import isfile, join from torchvision.datasets import VisionDataset import cv2 import torchvision.transforms as transforms break_height_width = 32 jump = 512 root_main='../data/mnt/d/SIDD_Medium_Srgb/Data/' for root, dire...
39.116667
103
0.620366
7944fc014967d9a3fafb91ed658f0e7bd3db8c32
209
py
Python
tests/conftest.py
stepansnigirev/lnbits
82731dc901780b959d6ebecc4f61be137c8d2884
[ "MIT" ]
258
2020-04-27T21:36:21.000Z
2021-10-30T23:24:48.000Z
tests/conftest.py
stepansnigirev/lnbits
82731dc901780b959d6ebecc4f61be137c8d2884
[ "MIT" ]
283
2020-04-27T17:23:12.000Z
2021-11-01T10:07:20.000Z
tests/conftest.py
stepansnigirev/lnbits
82731dc901780b959d6ebecc4f61be137c8d2884
[ "MIT" ]
109
2020-04-28T06:00:17.000Z
2021-10-13T02:48:28.000Z
import pytest from lnbits.app import create_app @pytest.fixture async def client(): app = create_app() app.config["TESTING"] = True async with app.test_client() as client: yield client
16.076923
43
0.684211
7944ffb46c06783739818db89100c0186e81bb42
1,764
py
Python
migrations/versions/9d0c25ad18b3_added_the_classes_comment_and_pitch.py
GeGe-K/Pitcher-App
4a970b37fe0fcd63ad3853a4f764c410a4acb640
[ "MIT" ]
null
null
null
migrations/versions/9d0c25ad18b3_added_the_classes_comment_and_pitch.py
GeGe-K/Pitcher-App
4a970b37fe0fcd63ad3853a4f764c410a4acb640
[ "MIT" ]
null
null
null
migrations/versions/9d0c25ad18b3_added_the_classes_comment_and_pitch.py
GeGe-K/Pitcher-App
4a970b37fe0fcd63ad3853a4f764c410a4acb640
[ "MIT" ]
null
null
null
"""added the classes comment and pitch. Revision ID: 9d0c25ad18b3 Revises: ab0e2a2f42c6 Create Date: 2018-11-19 17:10:30.207222 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '9d0c25ad18b3' down_revision = 'ab0e2a2f42c6' branch_labels = None depends_on = None ...
33.923077
69
0.671202
7944ffda4c268a7bf06635d90ec57d873341755f
332
py
Python
flask_mongodb/core/mixins.py
juanmanuel96/flask-mongodb
4c4002a45294a55ecea67f4cf4f2e6a93fedc12a
[ "BSD-2-Clause" ]
null
null
null
flask_mongodb/core/mixins.py
juanmanuel96/flask-mongodb
4c4002a45294a55ecea67f4cf4f2e6a93fedc12a
[ "BSD-2-Clause" ]
null
null
null
flask_mongodb/core/mixins.py
juanmanuel96/flask-mongodb
4c4002a45294a55ecea67f4cf4f2e6a93fedc12a
[ "BSD-2-Clause" ]
null
null
null
import typing as t class ModelMixin: @property def model(self): from flask_mongodb.models import CollectionModel self._model: t.Type[CollectionModel] return self._model class InimitableObject: def __copy__(self): return None def __deepcopy__(self, memo): ...
18.444444
56
0.659639
7945006e2566ed0ef7d7e42de1076c2f4f0ab846
850
py
Python
ecfactory/mnt_curves/mnt_curves_examples.py
weikengchen/ecfactory
f509c00b7cf66f4b8dbe9540599a4c95b9742bfd
[ "MIT" ]
39
2016-06-09T13:47:57.000Z
2022-02-10T14:06:20.000Z
ecfactory/mnt_curves/mnt_curves_examples.py
frevson/ecfactory-A-SageMath-Library-for-Constructing-Elliptic-Curves
f509c00b7cf66f4b8dbe9540599a4c95b9742bfd
[ "MIT" ]
3
2019-04-26T14:15:34.000Z
2021-02-03T09:21:37.000Z
ecfactory/mnt_curves/mnt_curves_examples.py
frevson/ecfactory-A-SageMath-Library-for-Constructing-Elliptic-Curves
f509c00b7cf66f4b8dbe9540599a4c95b9742bfd
[ "MIT" ]
13
2017-09-27T08:08:49.000Z
2022-03-28T12:11:20.000Z
import ecfactory.mnt_curves as mnt from ecfactory.utils import print_curve # Example (MNT curve with k = 6 and D = -19) curves = mnt.make_curve(6,-19) q,t,r,k,D = curves[0] print_curve(q,t,r,k,D) # Example (MNT curve with k = 3 and D = -19) curves = mnt.make_curve(3, -19) q,t,r,k,D = curves[0] print_curve(q,t,r,k,D) ...
26.5625
61
0.528235
794500c7a8b57298db9258336d55054f5abbbcee
2,357
py
Python
tests/test_tuple.py
loyada/typed-py
8f946ed0cddb38bf7fd463a4c8111a592ccae31a
[ "MIT" ]
14
2018-02-14T13:28:47.000Z
2022-02-12T08:03:21.000Z
tests/test_tuple.py
loyada/typed-py
8f946ed0cddb38bf7fd463a4c8111a592ccae31a
[ "MIT" ]
142
2017-11-22T14:02:33.000Z
2022-03-23T21:26:29.000Z
tests/test_tuple.py
loyada/typed-py
8f946ed0cddb38bf7fd463a4c8111a592ccae31a
[ "MIT" ]
4
2017-12-14T16:46:45.000Z
2021-12-15T16:33:31.000Z
from pytest import raises from typedpy import Structure, Tuple, Number, String, Integer, Float class Example(Structure): _additionalProperties = True _required = [] # array support, similar to json schema a = Tuple(uniqueItems=True, items=[String, String]) b = Tuple(items=[String, String, Number(...
28.743902
84
0.673738
7945022240c284624b9b2a7a81f076ce8aea6a02
257
py
Python
tests/conftest.py
dzubke/ship_detector
28212be681914ad739544f6b849152f502289ff3
[ "MIT" ]
1
2019-11-28T02:39:31.000Z
2019-11-28T02:39:31.000Z
tests/conftest.py
dzubke/ship_detector
28212be681914ad739544f6b849152f502289ff3
[ "MIT" ]
null
null
null
tests/conftest.py
dzubke/ship_detector
28212be681914ad739544f6b849152f502289ff3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Dummy conftest.py for ship_detection. If you don't know what this is for, just leave it empty. Read more about conftest.py under: https://pytest.org/latest/plugins.html """ # import pytest
21.416667
60
0.661479
7945022ea2833563a0a22f7a886f887ad7eb4672
414
py
Python
dnslib/dns_reply.py
dineshkumar2509/learning-python
e8af11ff0b396da4c3f2cfe21d14131bae4b2adb
[ "MIT" ]
86
2015-06-13T16:53:55.000Z
2022-03-24T20:56:42.000Z
dnslib/dns_reply.py
pei-zheng-yi/learning-python
55e350dfe44cf04f7d4408e76e72d2f467bd42ce
[ "MIT" ]
9
2015-05-27T07:52:44.000Z
2022-03-29T21:52:40.000Z
dnslib/dns_reply.py
pei-zheng-yi/learning-python
55e350dfe44cf04f7d4408e76e72d2f467bd42ce
[ "MIT" ]
124
2015-12-10T01:17:18.000Z
2021-11-08T04:03:38.000Z
#!/usr/bin/env python from dnslib import * q = DNSRecord(q=DNSQuestion("abc.com",QTYPE.ANY)) a = q.reply() a.add_answer(RR("abc.com",QTYPE.A,rdata=A("1.2.3.4"),ttl=60)) print str(DNSRecord.parse(a.pack())) == str(a) print a a.add_answer(RR("xxx.abc.com",QTYPE.A,rdata=A("1.2.3.4"))) a.add_answer(RR("xxx.abc.com",QTY...
23
69
0.664251