hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
43f18bbb8086893bf4a2fd000390118ef12a005b
6,807
py
Python
blpapi/datetime.py
buckie/blpapi-py
0ff500b547679e3310414d1427215d620b9f67d9
[ "Unlicense" ]
5
2019-03-20T05:43:50.000Z
2021-12-17T06:03:33.000Z
blpapi/datetime.py
buckie/blpapi-py
0ff500b547679e3310414d1427215d620b9f67d9
[ "Unlicense" ]
null
null
null
blpapi/datetime.py
buckie/blpapi-py
0ff500b547679e3310414d1427215d620b9f67d9
[ "Unlicense" ]
2
2019-03-20T05:39:22.000Z
2019-07-02T14:00:01.000Z
# datetime.py """Utilities that deal with blpapi.Datetime data type""" from . import internals from . import utils import datetime as _dt class FixedOffset(_dt.tzinfo, metaclass=utils.MetaClassForClassesWithEnums): """Time zone information. Represents time zone information to be used with Python standar...
39.807018
79
0.642574
9fda3afa961246c85abb8e5389071c99a7413adf
4,299
py
Python
dvc/scm/base.py
DiPaolo/dvc
644e9ede924b6416b4ff714fdc0c3463190ab6f2
[ "Apache-2.0" ]
null
null
null
dvc/scm/base.py
DiPaolo/dvc
644e9ede924b6416b4ff714fdc0c3463190ab6f2
[ "Apache-2.0" ]
21
2021-10-12T05:34:57.000Z
2022-01-07T12:22:45.000Z
dvc/scm/base.py
DiPaolo/dvc
644e9ede924b6416b4ff714fdc0c3463190ab6f2
[ "Apache-2.0" ]
null
null
null
"""Manages source control systems (e.g. Git) in DVC.""" import os from dvc.exceptions import DvcException class SCMError(DvcException): """Base class for source control management errors.""" class FileNotInRepoError(SCMError): """Thrown when trying to find .gitignore for a file that is not in a scm re...
28.098039
79
0.624564
713e19c3097aa1785009f0bbdab91f8d4a52282e
1,060
py
Python
Code-Collection/Larmor-Frequency/code/larmor.py
basavyr/physics-code-collection
6ce50ec184ff2de081d0ca29e679e54dbb21f592
[ "MIT" ]
1
2021-04-20T04:49:59.000Z
2021-04-20T04:49:59.000Z
Code-Collection/Larmor-Frequency/code/larmor.py
basavyr/physics-code-collection
6ce50ec184ff2de081d0ca29e679e54dbb21f592
[ "MIT" ]
43
2021-01-19T05:02:48.000Z
2022-03-12T01:07:32.000Z
Code-Collection/Larmor-Frequency/code/larmor.py
basavyr/physics-code-collection
6ce50ec184ff2de081d0ca29e679e54dbb21f592
[ "MIT" ]
null
null
null
#! /Users/robertpoenaru/.pyenv/shims/python # Sources # Larmor Frequency # http://hyperphysics.phy-astr.gsu.edu/hbase/Nuclear/larmor.html # Larmor Precession # http://hyperphysics.phy-astr.gsu.edu/hbase/magnetic/larmor.html#c1 # Nuclear Magnetic Resonance # http://hyperphysics.phy-astr.gsu.edu/hbase/Nuclear/nmr.ht...
22.083333
107
0.723585
c6de70d42cbb647c0b865efc53cdf8cd9f0371f3
15,993
py
Python
assemblyline/al_ui/apiv3/file.py
dendisuhubdy/grokmachine
120a21a25c2730ed356739231ec8b99fc0575c8b
[ "BSD-3-Clause" ]
46
2017-05-15T11:15:08.000Z
2018-07-02T03:32:52.000Z
assemblyline/al_ui/apiv3/file.py
dendisuhubdy/grokmachine
120a21a25c2730ed356739231ec8b99fc0575c8b
[ "BSD-3-Clause" ]
null
null
null
assemblyline/al_ui/apiv3/file.py
dendisuhubdy/grokmachine
120a21a25c2730ed356739231ec8b99fc0575c8b
[ "BSD-3-Clause" ]
24
2017-05-17T03:26:17.000Z
2018-07-09T07:00:50.000Z
from flask import request from os.path import basename import re from assemblyline.common.charset import safe_str from assemblyline.common.concurrency import execute_concurrently from assemblyline.common.hexdump import hexdump from assemblyline.al.common import forge from al_ui.apiv3 import core from al_ui.api_base im...
32.975258
117
0.591259
99f51bdc692b0710b5b9923eae4fac1a31a1fb4b
1,729
py
Python
app/user/serializers.py
venky-web/recipe-app-api
0cef9aae704fe6e3412c6aa0790631411840420b
[ "MIT" ]
null
null
null
app/user/serializers.py
venky-web/recipe-app-api
0cef9aae704fe6e3412c6aa0790631411840420b
[ "MIT" ]
null
null
null
app/user/serializers.py
venky-web/recipe-app-api
0cef9aae704fe6e3412c6aa0790631411840420b
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model, authenticate from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers class UserSerializer(serializers.ModelSerializer): """Serializer for the users object""" class Meta: model = get_user_model() fields = (...
32.018519
74
0.646038
e69f527604513382e02007574f8acd649f4bc859
648
py
Python
src/app/migrations/0001_initial.py
mp5maker/djangoblog
bc23ea0bc6975673d0fc374f10bfd61cae7255fb
[ "MIT" ]
null
null
null
src/app/migrations/0001_initial.py
mp5maker/djangoblog
bc23ea0bc6975673d0fc374f10bfd61cae7255fb
[ "MIT" ]
null
null
null
src/app/migrations/0001_initial.py
mp5maker/djangoblog
bc23ea0bc6975673d0fc374f10bfd61cae7255fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-10-06 18:05 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='App', ...
24
114
0.566358
6a06c125fbd297ef587c675b38fe907829c058c7
3,316
py
Python
tessagon/types/square_tri2_tessagon.py
virtualritz/tessagon
af1b1b12a6e92b226f76bfd616bde90d5e15b07c
[ "Apache-2.0" ]
199
2017-10-27T12:13:08.000Z
2022-03-24T09:54:48.000Z
tessagon/types/square_tri2_tessagon.py
virtualritz/tessagon
af1b1b12a6e92b226f76bfd616bde90d5e15b07c
[ "Apache-2.0" ]
4
2018-03-23T03:15:37.000Z
2019-11-06T15:58:24.000Z
tessagon/types/square_tri2_tessagon.py
virtualritz/tessagon
af1b1b12a6e92b226f76bfd616bde90d5e15b07c
[ "Apache-2.0" ]
20
2017-10-27T14:41:08.000Z
2021-12-28T10:12:59.000Z
from math import sqrt from tessagon.core.tile import Tile from tessagon.core.tessagon import Tessagon from tessagon.core.tessagon_metadata import TessagonMetadata metadata = TessagonMetadata(name='Other Squares and Triangles', classification='archimedean', shapes...
35.655914
79
0.422799
ffc27aae32fc33e9b86cde57edd1d0d92d3f0266
3,015
py
Python
MindwaveDataPointReader.py
RoyFlo360/mind-wave-mobile-drone
a8837187c39688246796d95dedc7ab18ed026172
[ "MIT" ]
null
null
null
MindwaveDataPointReader.py
RoyFlo360/mind-wave-mobile-drone
a8837187c39688246796d95dedc7ab18ed026172
[ "MIT" ]
null
null
null
MindwaveDataPointReader.py
RoyFlo360/mind-wave-mobile-drone
a8837187c39688246796d95dedc7ab18ed026172
[ "MIT" ]
null
null
null
from MindwaveMobileRawReader import MindwaveMobileRawReader import struct import collections from MindwavePacketPayloadParser import MindwavePacketPayloadParser class MindwaveDataPointReader: def __init__(self): self._mindwaveMobileRawReader = MindwaveMobileRawReader() self._dataPointQueue = colle...
38.164557
112
0.691542
2b796f8fce06e2970bda67e5fc62724cdd25ce3a
2,586
py
Python
venv/Lib/site-packages/pyrogram/raw/types/channel_admin_log_event_action_change_photo.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/channel_admin_log_event_action_change_photo.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/channel_admin_log_event_action_change_photo.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
34.48
106
0.644625
ee2b12cdda71eaa80cfaf05a0a5db58fb5786ab3
8,669
py
Python
python/surf/protocols/clink/_ClinkChannel.py
qarlosalberto/surf
69df91296d77efc9e812da051841545e320ebf69
[ "BSD-3-Clause-LBNL" ]
2
2021-05-13T19:56:51.000Z
2021-05-21T13:33:02.000Z
python/surf/protocols/clink/_ClinkChannel.py
qarlosalberto/surf
69df91296d77efc9e812da051841545e320ebf69
[ "BSD-3-Clause-LBNL" ]
null
null
null
python/surf/protocols/clink/_ClinkChannel.py
qarlosalberto/surf
69df91296d77efc9e812da051841545e320ebf69
[ "BSD-3-Clause-LBNL" ]
null
null
null
#----------------------------------------------------------------------------- # Title : PyRogue CameraLink Channel #----------------------------------------------------------------------------- # Description: # PyRogue CameraLink module #----------------------------------------------------------------------------...
33.996078
151
0.399354
b93cb3178d1dd502d521c720b107608349ba4963
164
py
Python
vizdoomaze/envs/vizdoomselfmaze2.py
fanyuzeng/Vizdoomaze
5b444f2d861c908c4d96ae374bcce660d364f22e
[ "MIT" ]
3
2020-09-25T16:00:49.000Z
2020-10-29T10:32:30.000Z
vizdoomaze/envs/vizdoomselfmaze2.py
fanyuzeng/Vizdoomaze
5b444f2d861c908c4d96ae374bcce660d364f22e
[ "MIT" ]
null
null
null
vizdoomaze/envs/vizdoomselfmaze2.py
fanyuzeng/Vizdoomaze
5b444f2d861c908c4d96ae374bcce660d364f22e
[ "MIT" ]
1
2021-12-17T07:50:47.000Z
2021-12-17T07:50:47.000Z
from vizdoomaze.envs.vizdoomenv import VizdoomEnv class VizdoomSelfMaze2(VizdoomEnv): def __init__(self): super(VizdoomSelfMaze2, self).__init__(12)
20.5
50
0.762195
9b9c69339bdf4cd4d5a617d7761c142b2906ac26
3,132
py
Python
setup.py
snehasi/simple_grid_yaml_compiler
7dea4d239980770a9bdd5f7478b959bebbf6648a
[ "Apache-2.0" ]
null
null
null
setup.py
snehasi/simple_grid_yaml_compiler
7dea4d239980770a9bdd5f7478b959bebbf6648a
[ "Apache-2.0" ]
null
null
null
setup.py
snehasi/simple_grid_yaml_compiler
7dea4d239980770a9bdd5f7478b959bebbf6648a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine import io import os import sys from shutil import rmtree from setuptools import setup, find_packages, Command # Package Info NAME = 'simple_grid_yaml_compiler' MODULE_SRC_DIR = '' D...
29.271028
86
0.640805
e2b2ee29b8b097c91a5dbdcf75c0c38936e137c9
352
py
Python
Python/Tests/TestData/VirtualEnv/env/Scripts/pip-2.7-script.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
Python/Tests/TestData/VirtualEnv/env/Scripts/pip-2.7-script.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
Python/Tests/TestData/VirtualEnv/env/Scripts/pip-2.7-script.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
#!C:\PTVS\Main\Common\Tests\TestData\VirtualEnv\env\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==1.3.1','console_scripts','pip-2.7' __requires__ = 'pip==1.3.1' import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.exit( load_entry_point('pip==1.3.1', 'console...
32
71
0.676136
7d242c494e2e4bcdfee69ca3f53b53ac5892fac7
397
py
Python
chapter4/solutions/series_summation.py
hexu1985/Doing.Math.With.Python
b6a02805cd450325e794a49f55d2d511f9db15a5
[ "MIT" ]
109
2015-08-28T10:23:24.000Z
2022-02-15T01:39:51.000Z
chapter4/solutions/series_summation.py
hexu1985/Doing.Math.With.Python
b6a02805cd450325e794a49f55d2d511f9db15a5
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
chapter4/solutions/series_summation.py
hexu1985/Doing.Math.With.Python
b6a02805cd450325e794a49f55d2d511f9db15a5
[ "MIT" ]
74
2015-10-15T18:09:15.000Z
2022-01-30T05:06:21.000Z
''' series_summation.py Sum an arbitrary series ''' from sympy import summation, sympify, Symbol, pprint def find_sum(n_term, num_terms): n = Symbol('n') s = summation(n_term, (n, 1, num_terms)) pprint(s) if __name__ == '__main__': n_term = sympify(input('Enter the nth term: ')) num_terms = int(...
20.894737
57
0.657431
3141df96b6d3d2f2f3c2dcaea6a127fa50b68cff
904
py
Python
189. Rotate Array.py
MapleLove2014/leetcode
135c79ebe98815d0e38280edfadaba90e677aff5
[ "Apache-2.0" ]
1
2020-12-04T07:38:16.000Z
2020-12-04T07:38:16.000Z
189. Rotate Array.py
MapleLove2014/leetcode
135c79ebe98815d0e38280edfadaba90e677aff5
[ "Apache-2.0" ]
null
null
null
189. Rotate Array.py
MapleLove2014/leetcode
135c79ebe98815d0e38280edfadaba90e677aff5
[ "Apache-2.0" ]
null
null
null
class Solution: def rotate(self, nums, k: int): """ Do not return anything, modify nums in-place instead. """ k = k % len(nums) count = 0 start = 0 while count < len(nums): pre = nums[start] current = start while True: ...
28.25
171
0.456858
4cf27c2120eabc2ccfdf96efff4820d67d8f64af
7,464
py
Python
CNN/CIfNN.py
marioviti/NN
fdd23cbb4333b9124ad3d87320f039a0496a1e57
[ "MIT" ]
null
null
null
CNN/CIfNN.py
marioviti/NN
fdd23cbb4333b9124ad3d87320f039a0496a1e57
[ "MIT" ]
null
null
null
CNN/CIfNN.py
marioviti/NN
fdd23cbb4333b9124ad3d87320f039a0496a1e57
[ "MIT" ]
null
null
null
import argparse import os import time import torch from torch.autograd import Variable import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data import torchvision.transforms as transforms import torchvision.datasets as datasets datasets.CIFAR10.url ...
35.042254
116
0.625
fc32924066b2c78270b86c6a1e80f25647c9e6c0
2,900
py
Python
packages/videodownloader/youtube.py
darvin/leon
e4a3975eb14e4f72c2dd1fa612fab2fe35149eb6
[ "MIT" ]
4
2019-04-16T12:04:34.000Z
2019-07-03T17:28:57.000Z
packages/videodownloader/youtube.py
sadiqmmm/leon
360d1020c4bd8bf1df3764645c635c64e0364702
[ "MIT" ]
378
2019-02-26T05:34:51.000Z
2020-06-17T07:03:23.000Z
packages/videodownloader/youtube.py
sadiqmmm/leon
360d1020c4bd8bf1df3764645c635c64e0364702
[ "MIT" ]
1
2019-02-22T07:04:05.000Z
2019-02-22T07:04:05.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- import requests import os import utils from time import time from pytube import YouTube def youtube(string): """Download new videos from a YouTube playlist""" db = utils.db()['db'] query = utils.db()['query'] operations = utils.db()['operations'] apikey = utils.confi...
29.591837
131
0.692069
471c97288deb1b49a9da4c882dd09b06b28c29b6
2,478
py
Python
landmark_generate/train.py
yourmean/Moving-Emoji-Generation_Sol1
5113b91ba2f30e7aa196dd089af341ecb97a1895
[ "MIT" ]
4
2021-01-21T04:33:33.000Z
2022-03-04T17:02:38.000Z
landmark_generate/train.py
shkim960520/Moving-Emoji-Generation_Sol1
52751d9ff0e648b08650162ea2e40a232e6abafd
[ "MIT" ]
null
null
null
landmark_generate/train.py
shkim960520/Moving-Emoji-Generation_Sol1
52751d9ff0e648b08650162ea2e40a232e6abafd
[ "MIT" ]
3
2021-01-21T04:36:26.000Z
2021-01-21T05:59:02.000Z
import os import PIL import functools import torch from torch.utils.data import DataLoader from torchvision import transforms import models from trainers import Trainer import data def video_transform(video, image_transform): vid = [] for im in video: vid.append(image_transform(im)) vid = t...
30.219512
150
0.69088
58b317a352f30dcdb1f7558721a8998c631b7674
5,439
py
Python
tests/orders/test_galaxy.py
cacrespo/pythonium
74cc5d4333212adfb6eedade8fcd8dfe86d221d5
[ "MIT" ]
null
null
null
tests/orders/test_galaxy.py
cacrespo/pythonium
74cc5d4333212adfb6eedade8fcd8dfe86d221d5
[ "MIT" ]
null
null
null
tests/orders/test_galaxy.py
cacrespo/pythonium
74cc5d4333212adfb6eedade8fcd8dfe86d221d5
[ "MIT" ]
null
null
null
import random import pytest from pythonium.orders.galaxy import ( ProduceResources, ResolvePlanetsConflicts, ResolveShipsConflicts, ) class TestProduceResources: @pytest.fixture() def player_planets_count(self, galaxy, faker): return len(list(galaxy.get_ocuped_planets())) @pytest.fi...
35.090323
78
0.718882
1df85b9a41275cb70dc59fecbfd8bddf6b4483b9
6,875
py
Python
src/beanmachine/ppl/compiler/tests/fix_matrix_scale_test.py
horizon-blue/beanmachine-1
b13e4e3e28ffb860947eb8046863b0cabb581222
[ "MIT" ]
177
2021-12-12T14:19:05.000Z
2022-03-24T05:48:10.000Z
src/beanmachine/ppl/compiler/tests/fix_matrix_scale_test.py
horizon-blue/beanmachine-1
b13e4e3e28ffb860947eb8046863b0cabb581222
[ "MIT" ]
171
2021-12-11T06:12:05.000Z
2022-03-31T20:26:29.000Z
src/beanmachine/ppl/compiler/tests/fix_matrix_scale_test.py
horizon-blue/beanmachine-1
b13e4e3e28ffb860947eb8046863b0cabb581222
[ "MIT" ]
31
2021-12-11T06:27:19.000Z
2022-03-25T13:31:56.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. import unittest import beanmachine.ppl as bm import torch from beanmachine.ppl.inference import BMGInference from torch.distributions impor...
21.894904
86
0.592291
2ad5977c73577530628939c99fe7885856c7f0f3
3,349
py
Python
AL_scripts/dataloader_withxray.py
The-very-most-awesome-team-of-cool-kids/02463_Active_Learning
abc35a31996de1c2e3275cf946b6a44f62abb781
[ "MIT" ]
null
null
null
AL_scripts/dataloader_withxray.py
The-very-most-awesome-team-of-cool-kids/02463_Active_Learning
abc35a31996de1c2e3275cf946b6a44f62abb781
[ "MIT" ]
null
null
null
AL_scripts/dataloader_withxray.py
The-very-most-awesome-team-of-cool-kids/02463_Active_Learning
abc35a31996de1c2e3275cf946b6a44f62abb781
[ "MIT" ]
null
null
null
import numpy as np import torch from torchvision import datasets, transforms from torch.utils.data import Dataset from PIL import Image from LOAD_XRAY import concat_, zeropad, Dataload as concat_, zeropad, Dataload def get_dataset(name): if name.upper() == 'CIFAR10': return get_CIFAR10() elif name.uppe...
32.833333
139
0.601672
9590c853093e14326bdbca1f8b4588c5bbeb7d32
32,252
py
Python
vnpy/gateway/hsoption/hsoption_gateway.py
xiumingxu/vnpy-xx
8b2d9ecdabcb7931d46fd92fad2d3701b7e66975
[ "MIT" ]
null
null
null
vnpy/gateway/hsoption/hsoption_gateway.py
xiumingxu/vnpy-xx
8b2d9ecdabcb7931d46fd92fad2d3701b7e66975
[ "MIT" ]
null
null
null
vnpy/gateway/hsoption/hsoption_gateway.py
xiumingxu/vnpy-xx
8b2d9ecdabcb7931d46fd92fad2d3701b7e66975
[ "MIT" ]
null
null
null
import wmi import socket from typing import Dict, List import requests from datetime import datetime from time import sleep import traceback import pytz from vnpy.api.t2sdk import py_t2sdk from vnpy.api.sopt import MdApi from vnpy.trader.gateway import BaseGateway from vnpy.trader.utility import get_folder_path from v...
29.18733
108
0.568368
00397c80684981b544d95634cde82475e3c3a805
10,911
py
Python
ecg_balancing/migrations/0014_auto__add_unique_companybalance_company_year.py
sinnwerkstatt/ecg-balancing
f7553ce22dda54f00d090b1ec0cd11364e2aebb5
[ "MIT" ]
null
null
null
ecg_balancing/migrations/0014_auto__add_unique_companybalance_company_year.py
sinnwerkstatt/ecg-balancing
f7553ce22dda54f00d090b1ec0cd11364e2aebb5
[ "MIT" ]
5
2015-04-22T15:56:19.000Z
2015-10-16T14:28:10.000Z
ecg_balancing/migrations/0014_auto__add_unique_companybalance_company_year.py
sinnwerkstatt/ecg-balancing
f7553ce22dda54f00d090b1ec0cd11364e2aebb5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding unique constraint on 'CompanyBalance', fields ['company', 'year'] db.create_unique(u'ecg_balancing_...
79.642336
205
0.569517
ecefbacdbd5ed20bf65a24b40ac6267d51423f85
19,271
py
Python
tensorflow/python/debug/lib/check_numerics_callback_test.py
mengwangk/tensorflow
7aad97c27b803a0d3524a715ed08f4db7a71de63
[ "Apache-2.0" ]
1
2019-09-18T06:29:47.000Z
2019-09-18T06:29:47.000Z
tensorflow/python/debug/lib/check_numerics_callback_test.py
mengwangk/tensorflow
7aad97c27b803a0d3524a715ed08f4db7a71de63
[ "Apache-2.0" ]
null
null
null
tensorflow/python/debug/lib/check_numerics_callback_test.py
mengwangk/tensorflow
7aad97c27b803a0d3524a715ed08f4db7a71de63
[ "Apache-2.0" ]
1
2021-03-29T16:42:47.000Z
2021-03-29T16:42:47.000Z
# Copyright 2019 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.010121
80
0.698407
334cb10ac3fe8a68348bd1f018d5dd8c042cf8a8
1,227
py
Python
migrations/versions/27b70c1be3f0_.py
ENCODE-DCC/genomic-data-service
954017a5bcc5f448fbe2867768186df5e066c67c
[ "MIT" ]
3
2020-10-26T02:15:55.000Z
2022-01-26T18:39:09.000Z
migrations/versions/27b70c1be3f0_.py
ENCODE-DCC/genomic-data-service
954017a5bcc5f448fbe2867768186df5e066c67c
[ "MIT" ]
3
2021-08-17T02:01:54.000Z
2022-03-30T17:14:02.000Z
migrations/versions/27b70c1be3f0_.py
ENCODE-DCC/genomic-data-service
954017a5bcc5f448fbe2867768186df5e066c67c
[ "MIT" ]
1
2022-03-24T21:15:34.000Z
2022-03-24T21:15:34.000Z
"""empty message Revision ID: 27b70c1be3f0 Revises: e7cf6ce136f4 Create Date: 2021-04-01 10:18:11.615734 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '27b70c1be3f0' down_revision = 'e7cf6ce136f4' branch_labels = None depends_on = None def upgrade(): # ...
33.162162
93
0.708231
6a59b4abde93fc8c0287389517c0087b514ff7f7
9,573
py
Python
release/stubs.min/System/__init___parts/BitConverter.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/__init___parts/BitConverter.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/__init___parts/BitConverter.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class BitConverter(object): """ Converts base data types to an array of bytes,and an array of bytes to base data types. """ @staticmethod def DoubleToInt64Bits(value): """ DoubleToInt64Bits(value: float) -> Int64 Converts the specified double-precision floating point number to a...
20.455128
109
0.639507
dd57ecb3519d9a5ccda368256eda98c0d14afa2b
2,050
py
Python
ingestion/src/metadata/generated/schema/entity/policies/policy.py
avignd/OpenMetadata
f81fb3d5e8ec391928afba57868cf0f9d7dc0f74
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/generated/schema/entity/policies/policy.py
avignd/OpenMetadata
f81fb3d5e8ec391928afba57868cf0f9d7dc0f74
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/generated/schema/entity/policies/policy.py
avignd/OpenMetadata
f81fb3d5e8ec391928afba57868cf0f9d7dc0f74
[ "Apache-2.0" ]
null
null
null
# generated by datamodel-codegen: # filename: schema/entity/policies/policy.json # timestamp: 2021-11-11T08:56:06+00:00 from __future__ import annotations from enum import Enum from typing import Optional from pydantic import AnyUrl, BaseModel, Field, constr from ...type import basic, entityHistory, entityRefe...
35.964912
90
0.696098
fdc1390a792b2643494e181bdb7df1015a4b6a9a
541
py
Python
traces/tests/factories.py
bitlabstudio/django-traces
f08c0f46caf5af9da49b8882bd98f354cd9c174f
[ "MIT" ]
1
2019-07-15T19:24:03.000Z
2019-07-15T19:24:03.000Z
traces/tests/factories.py
bitlabstudio/django-traces
f08c0f46caf5af9da49b8882bd98f354cd9c174f
[ "MIT" ]
null
null
null
traces/tests/factories.py
bitlabstudio/django-traces
f08c0f46caf5af9da49b8882bd98f354cd9c174f
[ "MIT" ]
null
null
null
"""Factories for the ``traces`` app.""" from factory import DjangoModelFactory, Sequence from .. import models class TraceFactory(DjangoModelFactory): FACTORY_FOR = models.Trace ip = Sequence(lambda x: '66.66.66.{}'.format(x)) class BlacklistIPFactory(DjangoModelFactory): FACTORY_FOR = models.Blacklis...
23.521739
62
0.730129
2cddb6566d10a322fbcd3493c5afad6f35c0a5ad
35
py
Python
Python/Tests/TestData/RemoveImport/FromImportParensTrailingComma1.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
Python/Tests/TestData/RemoveImport/FromImportParensTrailingComma1.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
Python/Tests/TestData/RemoveImport/FromImportParensTrailingComma1.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
from sys import (oar, baz, ) baz
11.666667
29
0.628571
da8ef81fd82788d12b13d31141821ceb9411945f
14,441
py
Python
lwganrt/models/holoportator_rt.py
darkAlert/impersonator-rt
8a2b879cf60f2094944a0104592d460fee3bda6a
[ "MIT" ]
6
2020-04-17T08:47:58.000Z
2021-07-02T10:58:52.000Z
lwganrt/models/holoportator_rt.py
darkAlert/impersonator-rt
8a2b879cf60f2094944a0104592d460fee3bda6a
[ "MIT" ]
null
null
null
lwganrt/models/holoportator_rt.py
darkAlert/impersonator-rt
8a2b879cf60f2094944a0104592d460fee3bda6a
[ "MIT" ]
1
2020-05-24T23:46:54.000Z
2020-05-24T23:46:54.000Z
import torch import torch.nn.functional as F import numpy as np from tqdm import tqdm from .models import BaseModel from lwganrt.networks.networks import NetworksFactory, HumanModelRecovery from lwganrt.utils.detectors import PersonMaskRCNNDetector from lwganrt.utils.nmr import SMPLRenderer import lwganrt.utils.cv_util...
39.241848
119
0.585486
dddb8c7e56d862f43a320ea78812accb2041a635
3,152
py
Python
AppServer/lib/django-1.4/tests/regressiontests/forms/tests/util.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/lib/django-1.4/tests/regressiontests/forms/tests/util.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/lib/django-1.4/tests/regressiontests/forms/tests/util.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
# -*- coding: utf-8 -*- from django.core.exceptions import ValidationError from django.forms.util import flatatt, ErrorDict, ErrorList from django.test import TestCase from django.utils.safestring import mark_safe from django.utils.translation import ugettext_lazy class FormsUtilTestCase(TestCase): # Tests fo...
50.031746
152
0.586929
e692bb270a92639e3f1ccd81e9fc72c740395a19
4,369
py
Python
bin/CreateHydroShareResource.py
selimnairb/EcohydroLib
38aa4020c88a57c9d2f1fb66acd393b6e989e897
[ "Unlicense" ]
12
2015-03-03T05:08:55.000Z
2021-01-27T12:38:33.000Z
bin/CreateHydroShareResource.py
selimnairb/EcohydroLib
38aa4020c88a57c9d2f1fb66acd393b6e989e897
[ "Unlicense" ]
3
2016-01-04T15:05:43.000Z
2019-02-01T02:19:45.000Z
bin/CreateHydroShareResource.py
selimnairb/EcohydroLib
38aa4020c88a57c9d2f1fb66acd393b6e989e897
[ "Unlicense" ]
5
2015-02-15T18:20:38.000Z
2017-05-21T13:14:32.000Z
#!/usr/bin/env python """@package GetUSGSDEMForBoundingbox @brief Create a new HydroShare resource by uploading the contents of an EcohydroLib project. This software is provided free of charge under the New BSD License. Please see the following license information: Copyright (c) 2015, University of North Carolina at...
47.48913
143
0.715496
16e6ae004646b3c56461beab4978a93d10723c64
49,645
py
Python
malaya/topic/location.py
leowmjw/Malaya
33f39835eca08c238d2dd68aeca3b09c5d0a45ab
[ "MIT" ]
2
2019-06-23T20:19:22.000Z
2020-04-16T13:02:32.000Z
malaya/topic/location.py
Jeansding/Malaya
fdf1af178ecc5ec4575298612101362ccc4a94fb
[ "MIT" ]
null
null
null
malaya/topic/location.py
Jeansding/Malaya
fdf1af178ecc5ec4575298612101362ccc4a94fb
[ "MIT" ]
null
null
null
location = { 0: {'negeri': 'JOHOR', 'parlimen': 'SEGAMAT', 'dun': 'BULOH KASAP'}, 1: {'negeri': 'JOHOR', 'parlimen': 'SEGAMAT', 'dun': 'JEMENTAH'}, 2: {'negeri': 'JOHOR', 'parlimen': 'SEKIJANG', 'dun': 'PEMANIS'}, 3: {'negeri': 'JOHOR', 'parlimen': 'SEKIJANG', 'dun': 'KEMELAH'}, 4: {'negeri': 'JOHOR...
46.052876
80
0.527002
958537c71891988b7a77d4b7e40a346c1b067a3b
8,027
py
Python
torch2trt/converters/interpolate.py
d1ngn1gefe1/torch2trt
4e9af7da09ce158d6d87f6a30b886fb46c33c815
[ "MIT" ]
1
2021-09-07T10:48:16.000Z
2021-09-07T10:48:16.000Z
torch2trt/converters/interpolate.py
maronuu/torch2trt
311f328cd45799ad8d72f1bebcc818d71c301f62
[ "MIT" ]
null
null
null
torch2trt/converters/interpolate.py
maronuu/torch2trt
311f328cd45799ad8d72f1bebcc818d71c301f62
[ "MIT" ]
1
2021-09-29T19:22:44.000Z
2021-09-29T19:22:44.000Z
import torch.nn.functional as F import torch.nn as nn from torch2trt.torch2trt import * from torch2trt.module_test import add_module_test import collections def has_interpolate_plugin(): try: from torch2trt.plugins import InterpolatePlugin return True except: ...
43.155914
134
0.694531
22e0e471c8ddf87c0e4650cf40bb2a098d80610b
5,615
py
Python
ep.py
tommarcoen/ep-jails
03514b9674db1d4d631da92ce5d31d7a73f721ea
[ "BSD-2-Clause" ]
1
2020-08-03T18:57:42.000Z
2020-08-03T18:57:42.000Z
ep.py
vonbeitthia/ep-jails
03514b9674db1d4d631da92ce5d31d7a73f721ea
[ "BSD-2-Clause" ]
6
2019-04-28T11:27:30.000Z
2019-04-28T17:10:41.000Z
ep.py
vonbeitthia/ep-jails
03514b9674db1d4d631da92ce5d31d7a73f721ea
[ "BSD-2-Clause" ]
1
2020-08-03T18:57:33.000Z
2020-08-03T18:57:33.000Z
#!/usr/bin/env python3 #- # Copyright (c) 2019 Tom Marcoen # All rights reserved. #- # This script assumes the bridges (IF_BRIDGE(4)) have been created # in advance, e.g. in /etc/rc.conf, and will only create a pair of # virtual back-to-back connected Ethernet interfaces for use with # jails. # # Excerpt /etc/rc.conf:...
38.724138
98
0.597685
3f697a47c4418df58f94f56e14d951ea272c1370
729
py
Python
python/problem0035.py
rado0x54/project-euler
cf3b128784922d19f17e940aa4be727752b29bf2
[ "MIT" ]
null
null
null
python/problem0035.py
rado0x54/project-euler
cf3b128784922d19f17e940aa4be727752b29bf2
[ "MIT" ]
null
null
null
python/problem0035.py
rado0x54/project-euler
cf3b128784922d19f17e940aa4be727752b29bf2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Project Euler - Problem 35 Module""" import pelib FPC = pelib.FastPrimeChecker() def is_circular_primes(number): str_number = str(number) # we already know that number is prime for i in range(1, len(str_number)): # shift shifted = int(str_number[i:] + str_number[...
20.25
54
0.618656
6da789318ddb3d30545f84b5b13e2b21ab70d7e0
816
py
Python
src/app/service/paykeep/urls.py
Fassial/IOTDC2020-WHU
3010f954f22e4ace968dfbd0baee22b830db9127
[ "MIT" ]
1
2021-06-16T16:44:58.000Z
2021-06-16T16:44:58.000Z
src/app/service/paykeep/urls.py
Fassial/IOTDC2020-WHU
3010f954f22e4ace968dfbd0baee22b830db9127
[ "MIT" ]
null
null
null
src/app/service/paykeep/urls.py
Fassial/IOTDC2020-WHU
3010f954f22e4ace968dfbd0baee22b830db9127
[ "MIT" ]
2
2020-04-22T12:55:29.000Z
2020-05-03T00:16:32.000Z
"""paykeep URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/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-based...
31.384615
77
0.708333
0b2414c6c98c10a4ce77079b4e770fa41937d125
18,942
py
Python
sympy/simplify/gammasimp.py
harsh-98/sympy
53fc684467088cdf0acccb6ad770cbde97e32268
[ "BSD-3-Clause" ]
null
null
null
sympy/simplify/gammasimp.py
harsh-98/sympy
53fc684467088cdf0acccb6ad770cbde97e32268
[ "BSD-3-Clause" ]
null
null
null
sympy/simplify/gammasimp.py
harsh-98/sympy
53fc684467088cdf0acccb6ad770cbde97e32268
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, division from sympy.core import Function, S, Mul, Pow, Add from sympy.core.compatibility import ordered, default_sort_key from sympy.core.basic import preorder_traversal from sympy.core.function import count_ops, expand_func from sympy.functions.combinatorial.factorials import (b...
36.923977
85
0.445043
bcfc4cccc1bcdd2abb8f058576684687173610e2
1,400
py
Python
day20/particles.py
ecly/adventofcode2017
b96b450a517baa2f3615eec7138491b3c3e22604
[ "MIT" ]
null
null
null
day20/particles.py
ecly/adventofcode2017
b96b450a517baa2f3615eec7138491b3c3e22604
[ "MIT" ]
null
null
null
day20/particles.py
ecly/adventofcode2017
b96b450a517baa2f3615eec7138491b3c3e22604
[ "MIT" ]
null
null
null
import copy import collections import re def parse(file): reg = 'p=<(.*)>, v=<(.*)>, a=<(.*)>' particles = [] for line in file: res = re.search(reg, line) p = list(map(int, res.group(1).split(','))) v = list(map(int, res.group(2).split(','))) a = list(map(int, res.group(3).s...
28.571429
79
0.58
ecf466ed39d3a04d1eccde5a168fbddb86feaa86
3,348
py
Python
sempler/test/test_generators.py
juangamella/sempler
90d01c32d9c8d56653c17e607ce9dc5ebd7ad04d
[ "BSD-3-Clause" ]
4
2020-12-01T05:19:39.000Z
2022-01-09T12:19:18.000Z
sempler/test/test_generators.py
juangamella/sempler
90d01c32d9c8d56653c17e607ce9dc5ebd7ad04d
[ "BSD-3-Clause" ]
3
2020-08-13T16:52:35.000Z
2020-09-28T11:36:36.000Z
sempler/test/test_generators.py
juangamella/sempler
90d01c32d9c8d56653c17e607ce9dc5ebd7ad04d
[ "BSD-3-Clause" ]
1
2022-03-11T23:44:11.000Z
2022-03-11T23:44:11.000Z
# Copyright 2021 Juan L Gamella # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2....
43.480519
90
0.701016
5f33da6c19464c9d4a064fee8477e45eecd485e6
538
py
Python
party_profit.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
party_profit.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
party_profit.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
import math group_size = int(input()) days = int(input()) coins = 0 coin_per_person = 0 for i in range (1, days + 1): if i % 10 == 0: group_size -= 2 if i % 15 == 0: group_size += 5 coins += 50 - (group_size * 2) if i % 3 == 0: coins -= 3 * group_size if i % 5 == 0: ...
21.52
73
0.553903
084fcd7ee8d6d66cf76c2493f01c53b4cb0c55b2
4,691
py
Python
old/pyllusion/Delboeuf.py
RebeccaHirst/Pyllusion
9944076e38bced0eabb49c607482b71809150bdb
[ "MIT" ]
17
2020-09-30T07:00:57.000Z
2022-03-01T19:01:27.000Z
old/pyllusion/Delboeuf.py
RebeccaHirst/Pyllusion
9944076e38bced0eabb49c607482b71809150bdb
[ "MIT" ]
11
2020-10-05T09:43:26.000Z
2022-03-16T07:08:04.000Z
old/pyllusion/Delboeuf.py
RebeccaHirst/Pyllusion
9944076e38bced0eabb49c607482b71809150bdb
[ "MIT" ]
3
2021-01-15T07:31:09.000Z
2022-02-11T06:46:23.000Z
""" The Delboeuf illusion. """ import numpy as np import pandas as pd import neuropsydia as n def delboeuf_compute(difficulty=0, illusion=0, minimum_size=2.5, distance=5, distance_auto=True, background_color="white"): """ Delboeuf Illusion Parameters ---------- difficulty : float Size ...
35.80916
160
0.66084
9032b144ba6baa29b3c290e5db821f6a24e91947
5,658
py
Python
MDT_ProstateX/experiments/exp0/default_configs.py
ihsgnef/prostate_lesion_detection
94b2c3a80f7c3ed311cbe2d497c7283ea9e7bc92
[ "MIT" ]
null
null
null
MDT_ProstateX/experiments/exp0/default_configs.py
ihsgnef/prostate_lesion_detection
94b2c3a80f7c3ed311cbe2d497c7283ea9e7bc92
[ "MIT" ]
null
null
null
MDT_ProstateX/experiments/exp0/default_configs.py
ihsgnef/prostate_lesion_detection
94b2c3a80f7c3ed311cbe2d497c7283ea9e7bc92
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 Division of Medical Image Computing, German Cancer Research Center (DKFZ). # # 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...
39.291667
118
0.605691
9cd81ec46ebbc392faeba0ec25c403986377251a
47,226
py
Python
edb/pgsql/compiler/pathctx.py
aaronbrighton/edgedb
4aacd1d4e248ae0d483c075ba93fc462da291ef4
[ "Apache-2.0" ]
1
2019-11-14T07:08:55.000Z
2019-11-14T07:08:55.000Z
edb/pgsql/compiler/pathctx.py
aaronbrighton/edgedb
4aacd1d4e248ae0d483c075ba93fc462da291ef4
[ "Apache-2.0" ]
null
null
null
edb/pgsql/compiler/pathctx.py
aaronbrighton/edgedb
4aacd1d4e248ae0d483c075ba93fc462da291ef4
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB 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...
33.902369
79
0.628658
0bee298764962086d60be9a73ebdc67487e2315f
7,782
py
Python
deep_hk/train.py
nsblunt/deep-hk-map
aa0b647e1302fc9677400b7add1a9f889afa70fe
[ "Apache-2.0" ]
null
null
null
deep_hk/train.py
nsblunt/deep-hk-map
aa0b647e1302fc9677400b7add1a9f889afa70fe
[ "Apache-2.0" ]
null
null
null
deep_hk/train.py
nsblunt/deep-hk-map
aa0b647e1302fc9677400b7add1a9f889afa70fe
[ "Apache-2.0" ]
1
2021-07-06T21:38:33.000Z
2021-07-06T21:38:33.000Z
"""Functions to train models of maps between lattice model properties.""" from deep_hk.data import MultipleDatasets import time import torch import torch.nn as nn from torch.utils.data import DataLoader class Infidelity(nn.Module): r"""A loss function that uses the infidelity of a wave function, defined as: ...
30.637795
74
0.662298
84c1551a392299577c69055b99393b38685bcee5
842
py
Python
app/api_1_0/comment.py
Ivicel/flasky
aa6940b43a7bd32e4721db4867a789c1344b8962
[ "Apache-2.0" ]
null
null
null
app/api_1_0/comment.py
Ivicel/flasky
aa6940b43a7bd32e4721db4867a789c1344b8962
[ "Apache-2.0" ]
null
null
null
app/api_1_0/comment.py
Ivicel/flasky
aa6940b43a7bd32e4721db4867a789c1344b8962
[ "Apache-2.0" ]
null
null
null
from . import api from ..models import Comment from flask import request, current_app, jsonify, url_for @api.route('/comments/') def get_comments(): page = request.args.get('page', 1, type=int) pagination = Comment.query.order_by(Comment.timestamp.asc()).paginate(page=page, per_page=current_app.config['POST_PER_P...
31.185185
81
0.729216
03ef9594f1a3e733d31f579d9b9c1a8a31aad654
918
py
Python
test_import.py
low2by/holofan
48e1ba50be8e969d053ecaa61dbc9c571ef6c8fc
[ "MIT" ]
null
null
null
test_import.py
low2by/holofan
48e1ba50be8e969d053ecaa61dbc9c571ef6c8fc
[ "MIT" ]
null
null
null
test_import.py
low2by/holofan
48e1ba50be8e969d053ecaa61dbc9c571ef6c8fc
[ "MIT" ]
null
null
null
import timeit import math from encoder_test import Encoder rpm = 600.0; radius_mm = 200.0; def main(): encoder = Encoder() count = 0 total = 0 for i in range(10000): start_time = timeit.default_timer() encoder.readpos(); total += timeit.default_timer() - start_time coun...
30.6
97
0.66122
e1fe73f58982a26c7cf022dad53d911e51e981f5
12,069
py
Python
examples/lightning_base.py
IBM/LongAnswer
4cf8f0a111a127af2ac671a6efbd28bd782cb4d9
[ "Apache-2.0" ]
null
null
null
examples/lightning_base.py
IBM/LongAnswer
4cf8f0a111a127af2ac671a6efbd28bd782cb4d9
[ "Apache-2.0" ]
null
null
null
examples/lightning_base.py
IBM/LongAnswer
4cf8f0a111a127af2ac671a6efbd28bd782cb4d9
[ "Apache-2.0" ]
null
null
null
import argparse import logging import os import random import numpy as np import pytorch_lightning as pl import torch from transformers import ( AdamW, AutoConfig, AutoModel, AutoModelForPreTraining, AutoModelForQuestionAnswering, AutoModelForSequenceClassification, AutoModelForTokenClassi...
42.646643
1,879
0.625155
c95840de16706dede668f10fdb5378c1b5ef0e21
1,435
py
Python
python_webex/v1/People.py
Paul-weqe/python-webex-bot
95dac9085d7b7d107565039c2ab9a2769027ff31
[ "MIT" ]
10
2019-04-05T04:00:13.000Z
2021-08-24T16:06:10.000Z
python_webex/v1/People.py
Paul-weqe/python-webex-bot
95dac9085d7b7d107565039c2ab9a2769027ff31
[ "MIT" ]
8
2019-07-18T21:05:28.000Z
2020-10-30T14:40:39.000Z
python_webex/v1/People.py
Paul-weqe/python-webex-bot
95dac9085d7b7d107565039c2ab9a2769027ff31
[ "MIT" ]
5
2019-06-15T13:09:50.000Z
2021-04-27T16:55:17.000Z
import sys import requests class People: def get_people(self, email=None): """ gets a list of people with a particular attribute uses https://api.ciscospark.com/people - GET request """ if email is None: sys.exit("'email' is a required field") url_rou...
28.7
105
0.606969
cb5ba846073f57666096f87d32db2e2b83b81c32
2,921
py
Python
options/options_guided_adaptation.py
LeoZDong/shape2prog
2185d1d4eb7a1c4c55e644c6af477fd8e8e70241
[ "BSD-2-Clause" ]
null
null
null
options/options_guided_adaptation.py
LeoZDong/shape2prog
2185d1d4eb7a1c4c55e644c6af477fd8e8e70241
[ "BSD-2-Clause" ]
null
null
null
options/options_guided_adaptation.py
LeoZDong/shape2prog
2185d1d4eb7a1c4c55e644c6af477fd8e8e70241
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function import os import argparse import socket import torch def get_parser(): """ a parser for Guided Adaptation """ parser = argparse.ArgumentParser(description="arguments for Guided Adaptation") # optimization parser.add_argument('--learning_rate', type=float...
35.621951
100
0.653886
e785a5fee00e75d91f45b8e29c1d09a893216bf6
454
py
Python
quiz/forms.py
jstavanja/quiz-biometrics-api
75e0db348668b14a85f94261aac092ae2d5fa9c6
[ "MIT" ]
null
null
null
quiz/forms.py
jstavanja/quiz-biometrics-api
75e0db348668b14a85f94261aac092ae2d5fa9c6
[ "MIT" ]
null
null
null
quiz/forms.py
jstavanja/quiz-biometrics-api
75e0db348668b14a85f94261aac092ae2d5fa9c6
[ "MIT" ]
null
null
null
from django.forms import ModelForm from django.forms.models import modelformset_factory from .models import Quiz from keystroke.models import KeystrokeTestType class QuizForm(ModelForm): def __init__(self, *args, **kwargs): self.user = kwargs.pop('owner') super(QuizForm, self).__init__(*args, **kwargs) ...
23.894737
55
0.735683
8d7440853d0b9e1ed44e01b981f70f48f2727ea2
4,177
py
Python
Analyzer/core.py
theetje/Twitter-Analyzer
f67fe87f2b32a16341f1b18370b041b4be03a571
[ "MIT" ]
null
null
null
Analyzer/core.py
theetje/Twitter-Analyzer
f67fe87f2b32a16341f1b18370b041b4be03a571
[ "MIT" ]
null
null
null
Analyzer/core.py
theetje/Twitter-Analyzer
f67fe87f2b32a16341f1b18370b041b4be03a571
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # helpers import csv import helpers from pprint import pprint # models from Models.base import Base from Models.Tweet import Tweet # sqlalchemy from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker # statsmodels numpy, matplotlib and pandas for analysis import numpy as ...
33.95935
80
0.526933
5f74f159bd07d69a084b0dc0509363f5aaa88bdd
1,716
py
Python
objectModel/Python/cdm/utilities/__init__.py
aaron-emde/CDM
9472e9c7694821ac4a9bbe608557d2e65aabc73e
[ "CC-BY-4.0", "MIT" ]
null
null
null
objectModel/Python/cdm/utilities/__init__.py
aaron-emde/CDM
9472e9c7694821ac4a9bbe608557d2e65aabc73e
[ "CC-BY-4.0", "MIT" ]
3
2021-05-11T23:57:12.000Z
2021-08-04T05:03:05.000Z
objectModel/Python/cdm/utilities/__init__.py
aaron-emde/CDM
9472e9c7694821ac4a9bbe608557d2e65aabc73e
[ "CC-BY-4.0", "MIT" ]
null
null
null
# ---------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. # All rights reserved. # ---------------------------------------------------------------------- from . import lang_utils from . import primitive_appliers from . import string_utils from . import time_utils ...
30.105263
79
0.725524
7581d15ed4249eef74451306a80cac8705c9ff6b
1,489
py
Python
tests/test_main.py
phbernardes/djantic
c916b175149f0c3f6ef112e7c42cac14379d6b93
[ "MIT" ]
null
null
null
tests/test_main.py
phbernardes/djantic
c916b175149f0c3f6ef112e7c42cac14379d6b93
[ "MIT" ]
null
null
null
tests/test_main.py
phbernardes/djantic
c916b175149f0c3f6ef112e7c42cac14379d6b93
[ "MIT" ]
null
null
null
import pytest from pydantic import ConfigError from testapp.models import User from djantic import ModelSchema @pytest.mark.django_db def test_config_errors(): """ Test the model config error exceptions. """ with pytest.raises( ConfigError, match="(Is `Config` class defined?)" ): ...
22.223881
83
0.57824
63dbe9abdc6dbbe605d0ec9c81efc8195f995918
29,319
py
Python
scalecodec/base.py
polkascan/scale-codec
3b12396e9043cab7900347c25033fd306abdb640
[ "Apache-2.0" ]
null
null
null
scalecodec/base.py
polkascan/scale-codec
3b12396e9043cab7900347c25033fd306abdb640
[ "Apache-2.0" ]
null
null
null
scalecodec/base.py
polkascan/scale-codec
3b12396e9043cab7900347c25033fd306abdb640
[ "Apache-2.0" ]
null
null
null
# Python SCALE Codec Library # # Copyright 2018-2020 Stichting Polkascan (Polkascan Foundation). # # 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...
35.40942
142
0.59105
69e5823a9aa5ef7dddb7417ebde3d1d35b2df08e
146
py
Python
cliente/apps.py
Sergio-Basaure/taller_titulo_admin
8e77d967e5818abb8e974e93ee64e226d64d73f5
[ "MIT" ]
null
null
null
cliente/apps.py
Sergio-Basaure/taller_titulo_admin
8e77d967e5818abb8e974e93ee64e226d64d73f5
[ "MIT" ]
null
null
null
cliente/apps.py
Sergio-Basaure/taller_titulo_admin
8e77d967e5818abb8e974e93ee64e226d64d73f5
[ "MIT" ]
1
2021-08-09T00:55:17.000Z
2021-08-09T00:55:17.000Z
from django.apps import AppConfig class ClienteConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'cliente'
20.857143
56
0.760274
14479613c8e93e97569fd08ad6820147404b479e
4,193
py
Python
RecoMuon/MuonIdentification/python/muons1stStep_cfi.py
mneukum/cmssw
a6a429a1b19b769c77ca2b76d8cc6e8151ed526d
[ "Apache-2.0" ]
1
2020-10-08T06:48:26.000Z
2020-10-08T06:48:26.000Z
RecoMuon/MuonIdentification/python/muons1stStep_cfi.py
Seyoung-Han/cmssw
92e2e874dac6175ec18131c15a88daf6c7741f58
[ "Apache-2.0" ]
null
null
null
RecoMuon/MuonIdentification/python/muons1stStep_cfi.py
Seyoung-Han/cmssw
92e2e874dac6175ec18131c15a88daf6c7741f58
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms from RecoMuon.MuonIdentification.isolation_cff import * from RecoMuon.MuonIdentification.caloCompatibility_cff import * from RecoMuon.MuonIdentification.MuonTimingFiller_cfi import * from RecoMuon.MuonIdentification.MuonShowerDigiFiller_cfi import * from RecoMuon.MuonIdentifica...
39.933333
149
0.652039
cf5726d10aab559d17cce23ac9203f5ae299dbad
85,452
py
Python
nova/virt/vmwareapi/vmops.py
bopopescu/nova-17
2724155f4ac64aa0ef7dc25c1bf38d3c41f95b7b
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
nova/virt/vmwareapi/vmops.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
nova/virt/vmwareapi/vmops.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2020-07-24T01:18:11.000Z
2020-07-24T01:18:11.000Z
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # Copyright (c) 2012 VMware, Inc. # Copyright (c) 2011 Citrix Systems, Inc. # Copyright 2011 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. Yo...
46.797371
79
0.574334
9f7a30d5dc366a9bf92329c43514efd5543db63f
2,131
py
Python
structs.py
LHGames-2017/wannable_anonymous
581870aff1424190e800468279eb18dae43b1035
[ "MIT" ]
null
null
null
structs.py
LHGames-2017/wannable_anonymous
581870aff1424190e800468279eb18dae43b1035
[ "MIT" ]
null
null
null
structs.py
LHGames-2017/wannable_anonymous
581870aff1424190e800468279eb18dae43b1035
[ "MIT" ]
null
null
null
import math class ActionTypes(): DefaultAction, MoveAction, AttackAction, CollectAction, UpgradeAction, StealAction, PurchaseAction, HealAction = range(8) class UpgradeType(): CarryingCapacity, AttackPower, Defence, MaximumHealth, CollectingSpeed = range(5) class TileType(): Tile, Wall, House, Lava, Re...
25.070588
125
0.640544
443406d783e5cc0fe4123a74e8309c82ffb2ba40
111
py
Python
tests/conftest.py
dpausp/redmineapi-tools
6eed069d23340c9984914ae84f52d2eff6503d98
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
dpausp/redmineapi-tools
6eed069d23340c9984914ae84f52d2eff6503d98
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
dpausp/redmineapi-tools
6eed069d23340c9984914ae84f52d2eff6503d98
[ "BSD-3-Clause" ]
null
null
null
from pathlib import Path import sys sys.path.append(str(Path(__file__).parent.parent / "src")) print(sys.path)
22.2
58
0.765766
727df87ff876191ee6a7b5336c346cf9f024b923
3,857
py
Python
multizip.py
hasindu-madushan/MultiZip
3fa5cd678beb77d07bdbe901fe4261d6aa2ddaf8
[ "Apache-2.0" ]
null
null
null
multizip.py
hasindu-madushan/MultiZip
3fa5cd678beb77d07bdbe901fe4261d6aa2ddaf8
[ "Apache-2.0" ]
null
null
null
multizip.py
hasindu-madushan/MultiZip
3fa5cd678beb77d07bdbe901fe4261d6aa2ddaf8
[ "Apache-2.0" ]
null
null
null
#!python3 #====================================================================== # Author : Hasindu Madushan # Date : 08 sep 2020 # Module : multizip # File : multizip.py # verison: 0.9v #====================================================================== import multizipcore as core import zlib ...
32.141667
127
0.480425
579173100fe340ed042e5c03ec09e33b40f17581
2,303
py
Python
python/oneflow/compatible/single_client/test/ops/test_interface_op_read_and_write.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/test/ops/test_interface_op_read_and_write.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/test/ops/test_interface_op_read_and_write.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow 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 law or agr...
34.893939
84
0.654364
d84d7b0d2a22cb2f7760c0790025451c088ba4eb
2,860
py
Python
config/settings/local.py
johanoh/fitness_app
bd8bc093058ab9f3873132d93ac3262d117546e0
[ "MIT" ]
null
null
null
config/settings/local.py
johanoh/fitness_app
bd8bc093058ab9f3873132d93ac3262d117546e0
[ "MIT" ]
null
null
null
config/settings/local.py
johanoh/fitness_app
bd8bc093058ab9f3873132d93ac3262d117546e0
[ "MIT" ]
null
null
null
from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#debug DEBUG = True # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env( "DJANGO_SECRET_KEY...
41.449275
97
0.576573
0f26cd388beb22d971dd692d278c7d94afbbb8ae
6,882
gyp
Python
third_party/cacheinvalidation/cacheinvalidation.gyp
Gitman1989/chromium
2b1cceae1075ef012fb225deec8b4c8bbe4bc897
[ "BSD-3-Clause" ]
2
2017-09-02T19:08:28.000Z
2021-11-15T15:15:14.000Z
third_party/cacheinvalidation/cacheinvalidation.gyp
Gitman1989/chromium
2b1cceae1075ef012fb225deec8b4c8bbe4bc897
[ "BSD-3-Clause" ]
null
null
null
third_party/cacheinvalidation/cacheinvalidation.gyp
Gitman1989/chromium
2b1cceae1075ef012fb225deec8b4c8bbe4bc897
[ "BSD-3-Clause" ]
1
2020-04-13T05:45:10.000Z
2020-04-13T05:45:10.000Z
# Copyright (c) 2010 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # TODO(akalin): Make it so that warnings are errors on Windows. # TODO(akalin): Clean up warnings on Windows. { 'variables': { # The root director...
42.220859
78
0.648939
1269906134ce5f730cf8d8fbeff2dd4a59fa0df6
2,144
py
Python
zerver/tests/test_email_log.py
gagansh7171/zulip
58a44698963ffcd21b57937a4913562a032c5631
[ "Apache-2.0" ]
1
2020-09-19T09:18:39.000Z
2020-09-19T09:18:39.000Z
zerver/tests/test_email_log.py
gagansh7171/zulip
58a44698963ffcd21b57937a4913562a032c5631
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_email_log.py
gagansh7171/zulip
58a44698963ffcd21b57937a4913562a032c5631
[ "Apache-2.0" ]
null
null
null
import os from unittest import mock from django.conf import settings from zerver.lib.test_classes import ZulipTestCase from zproject.email_backends import get_forward_address class EmailLogTest(ZulipTestCase): def test_generate_and_clear_email_log(self) -> None: with self.settings(EMAIL_BACKEND='zprojec...
47.644444
105
0.678172
e7bc1d76066199a987941b509d5a9f7d031fa968
2,276
py
Python
moving.py
E15dev/maze-animation
5419222d616efc67ee4e56949123ed4f1b046c51
[ "MIT" ]
null
null
null
moving.py
E15dev/maze-animation
5419222d616efc67ee4e56949123ed4f1b046c51
[ "MIT" ]
null
null
null
moving.py
E15dev/maze-animation
5419222d616efc67ee4e56949123ed4f1b046c51
[ "MIT" ]
null
null
null
import pygame import time import random import math from pynput.keyboard import * def refresh(): pygame.display.flip() return 0 def set_window_fps(fps): pygame.display.set_caption('pygame render ' + str(fps) + ' fps') def get_state(x, y): random.seed((x * 0xFFFFFE) + y) x = random.randrange(0,...
24.473118
139
0.576011
08f2e57a133b008df9dbbdb39fc2e944830fba16
205
py
Python
awards/forms.py
Sundaybrian/prodev
ed51fbd7c70941de36f7bc59c1940acfafaecf72
[ "MIT" ]
null
null
null
awards/forms.py
Sundaybrian/prodev
ed51fbd7c70941de36f7bc59c1940acfafaecf72
[ "MIT" ]
7
2020-06-05T22:53:10.000Z
2022-02-10T08:29:14.000Z
awards/forms.py
Sundaybrian/prodev
ed51fbd7c70941de36f7bc59c1940acfafaecf72
[ "MIT" ]
null
null
null
from django import forms from .models import Review class NewReviewForm(forms.ModelForm): ''' form to create a rating ''' class Meta: model=Review exclude=['post','judge']
18.636364
37
0.634146
d1d96662e59585463bd7daac126eec3318d56dc9
492
py
Python
102_user_display_and_settings_module/main/migrations/0004_auto_20190925_2131.py
prototypefund/ampel2go_community
08759509287efef08218a4eb6e6e2b029b862b4a
[ "Apache-2.0" ]
2
2020-08-08T15:38:08.000Z
2020-11-18T13:13:45.000Z
102_user_display_and_settings_module/main/migrations/0004_auto_20190925_2131.py
prototypefund/ampel2go_community
08759509287efef08218a4eb6e6e2b029b862b4a
[ "Apache-2.0" ]
1
2021-09-22T19:46:49.000Z
2021-09-22T19:46:49.000Z
102_user_display_and_settings_module/main/migrations/0004_auto_20190925_2131.py
prototypefund/ampel2go_community
08759509287efef08218a4eb6e6e2b029b862b4a
[ "Apache-2.0" ]
1
2022-02-16T09:52:31.000Z
2022-02-16T09:52:31.000Z
# Generated by Django 2.2.5 on 2019-09-25 19:31 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0003_auto_20190925_2129'), ] operations = [ migrations.AlterField( model_name='tutorial', na...
24.6
129
0.638211
d43223a631d14adea16f7b098efbc154f340158a
38,800
py
Python
musx/pitch.py
ricktaube/musx
5fb116b1a1ade9ef42a9a3c8311c604795e0af6a
[ "BSD-3-Clause" ]
9
2021-06-03T21:36:53.000Z
2021-06-13T01:53:17.000Z
musx/pitch.py
musx-admin/musx
5fb116b1a1ade9ef42a9a3c8311c604795e0af6a
[ "BSD-3-Clause" ]
2
2021-06-03T18:38:57.000Z
2021-06-13T10:46:28.000Z
musx/pitch.py
musx-admin/musx
5fb116b1a1ade9ef42a9a3c8311c604795e0af6a
[ "BSD-3-Clause" ]
1
2022-02-12T23:04:27.000Z
2022-02-12T23:04:27.000Z
############################################################################### """ Defines the equal tempered chromatic scale over 11 octaves and provides a mapping between alternate representations of pitch material: Pitch instances, hertz frequency, key numbers, and pitch names. The Pitch class represent equal te...
37.890625
123
0.575052
daa77be867bb98d9ca43cf57b8ed19f7bb405bd5
2,806
py
Python
FusionIIIT/applications/academic_procedures/urls.py
devPrashantKumar/Fusion
a56cd0a9faa0c88e170ac8cbc316bd71f7f8b27c
[ "bzip2-1.0.6" ]
null
null
null
FusionIIIT/applications/academic_procedures/urls.py
devPrashantKumar/Fusion
a56cd0a9faa0c88e170ac8cbc316bd71f7f8b27c
[ "bzip2-1.0.6" ]
null
null
null
FusionIIIT/applications/academic_procedures/urls.py
devPrashantKumar/Fusion
a56cd0a9faa0c88e170ac8cbc316bd71f7f8b27c
[ "bzip2-1.0.6" ]
null
null
null
from django.conf.urls import url from . import views appname = 'procedures' urlpatterns = [ url(r'^$', views.academic_procedures_redirect, name='redirect'), url(r'^main/', views.academic_procedures, name='procedures'), url(r'^register/', views.register, name='register'), url(r'^pre_registration/', view...
57.265306
94
0.717035
8712bb8aaca8c48fb14cd98fc029db7e138b7853
11,971
py
Python
gluoncv/auto/tasks/image_classification.py
mzolfaghari/gluon-cv
6727e1e9f18b1919e79bb132ab9e873ffed41388
[ "Apache-2.0" ]
null
null
null
gluoncv/auto/tasks/image_classification.py
mzolfaghari/gluon-cv
6727e1e9f18b1919e79bb132ab9e873ffed41388
[ "Apache-2.0" ]
null
null
null
gluoncv/auto/tasks/image_classification.py
mzolfaghari/gluon-cv
6727e1e9f18b1919e79bb132ab9e873ffed41388
[ "Apache-2.0" ]
null
null
null
"""Auto pipeline for image classification task""" # pylint: disable=bad-whitespace,missing-class-docstring import logging import copy import time import pprint import pickle from typing import Union, Tuple from autocfg import dataclass import numpy as np import pandas as pd import autogluon.core as ag from autogluon.c...
43.216606
108
0.62192
760075b978a22edb68146f3f871a065080758f65
534
py
Python
omm/__init__.py
mkelley/onkyo-music-machine
3d77d46554ca258f0ee224c1283ac55201c2d3a6
[ "MIT" ]
null
null
null
omm/__init__.py
mkelley/onkyo-music-machine
3d77d46554ca258f0ee224c1283ac55201c2d3a6
[ "MIT" ]
null
null
null
omm/__init__.py
mkelley/onkyo-music-machine
3d77d46554ca258f0ee224c1283ac55201c2d3a6
[ "MIT" ]
null
null
null
import argparse import connexion from .command import OnkyoCommand GPIO = None def _parse_args(): parser = argparse.ArgumentParser() parser.add_argument('--port', type=int, default=8000) parser.add_argument('--gpio', type=int, default=25) return parser.parse_args() def main(): """Command-line s...
20.538462
63
0.689139
df313a47413654adb075610189510143c8c25c2b
341
py
Python
psyneulink/globals/preferences/__init__.py
mihaic/psyneulink
3d2fc3117c82bccc92fc585add330b0f9b35c830
[ "Apache-2.0" ]
null
null
null
psyneulink/globals/preferences/__init__.py
mihaic/psyneulink
3d2fc3117c82bccc92fc585add330b0f9b35c830
[ "Apache-2.0" ]
null
null
null
psyneulink/globals/preferences/__init__.py
mihaic/psyneulink
3d2fc3117c82bccc92fc585add330b0f9b35c830
[ "Apache-2.0" ]
null
null
null
from . import componentpreferenceset from . import mechanismpreferenceset from . import preferenceset from .componentpreferenceset import * from .mechanismpreferenceset import * from .preferenceset import * __all__ = list(componentpreferenceset.__all__) __all__.extend(mechanismpreferenceset.__all__) __all__.extend(pr...
28.416667
46
0.847507
5f581c985c5b1827cae9dc8796bc6799cf1f9c9e
531
py
Python
mapsite/mapapp/models.py
pkolios/map-spa
7f066377711aeb2864205b49874c48c83dc3f04f
[ "MIT" ]
null
null
null
mapsite/mapapp/models.py
pkolios/map-spa
7f066377711aeb2864205b49874c48c83dc3f04f
[ "MIT" ]
null
null
null
mapsite/mapapp/models.py
pkolios/map-spa
7f066377711aeb2864205b49874c48c83dc3f04f
[ "MIT" ]
null
null
null
from django.db import models from django.forms.models import model_to_dict class Address(models.Model): """Represents the address data stored locally.""" full_address = models.CharField(max_length=250) lat = models.DecimalField(max_digits=9, decimal_places=6) lon = models.DecimalField(max_digits=9, d...
25.285714
61
0.687382
d742094b58bdc173f6358dc9170590e72d1a440c
22,465
py
Python
saleor/webhook/event_types.py
flamingowebjo/saleor
ecba9e1c10d32cd66c63a986e4cb907c421ce303
[ "CC-BY-4.0" ]
null
null
null
saleor/webhook/event_types.py
flamingowebjo/saleor
ecba9e1c10d32cd66c63a986e4cb907c421ce303
[ "CC-BY-4.0" ]
null
null
null
saleor/webhook/event_types.py
flamingowebjo/saleor
ecba9e1c10d32cd66c63a986e4cb907c421ce303
[ "CC-BY-4.0" ]
null
null
null
from ..core.permissions import ( AccountPermissions, AppPermission, ChannelPermissions, CheckoutPermissions, DiscountPermissions, GiftcardPermissions, MenuPermissions, OrderPermissions, PagePermissions, PaymentPermissions, ProductPermissions, ShippingPermissions, Site...
45.292339
87
0.756421
4906c9c134b668a4a31a82f176a7e86432de681e
12,166
py
Python
lmfit/astutils.py
tritemio/lmfit-py
9002013a853efa50d11fdbcfafa4b17216bcc3ff
[ "BSD-3-Clause" ]
null
null
null
lmfit/astutils.py
tritemio/lmfit-py
9002013a853efa50d11fdbcfafa4b17216bcc3ff
[ "BSD-3-Clause" ]
null
null
null
lmfit/astutils.py
tritemio/lmfit-py
9002013a853efa50d11fdbcfafa4b17216bcc3ff
[ "BSD-3-Clause" ]
null
null
null
""" utility functions for asteval Matthew Newville <newville@cars.uchicago.edu>, The University of Chicago """ from __future__ import division, print_function import re import ast from sys import exc_info RESERVED_WORDS = ('and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'eli...
46.972973
76
0.527043
5d65221d4139b0a80adacc02765e17878d1975fa
1,643
gyp
Python
deps/libgdal/gyp-formats/ogr_tiger.gyp
blairdgeo/node-gdal
a9bb3c082b30605ed1668dd9fe49afd25a7bb9d6
[ "Apache-2.0" ]
1
2015-07-04T20:09:20.000Z
2015-07-04T20:09:20.000Z
deps/libgdal/gyp-formats/ogr_tiger.gyp
blairdgeo/node-gdal
a9bb3c082b30605ed1668dd9fe49afd25a7bb9d6
[ "Apache-2.0" ]
null
null
null
deps/libgdal/gyp-formats/ogr_tiger.gyp
blairdgeo/node-gdal
a9bb3c082b30605ed1668dd9fe49afd25a7bb9d6
[ "Apache-2.0" ]
null
null
null
{ "includes": [ "../common.gypi" ], "targets": [ { "target_name": "libgdal_ogr_tiger_frmt", "type": "static_library", "sources": [ "../gdal/ogr/ogrsf_frmts/tiger/ogrtigerdatasource.cpp", "../gdal/ogr/ogrsf_frmts/tiger/ogrtigerdriver.cpp", "../gdal/ogr/ogrsf_frmts/tiger/ogrtigerlayer.cpp", ...
39.119048
64
0.692635
536d44484759fcb32b6ac551eb7a4fc9bc8c72df
17,813
py
Python
neurokit2/signal/signal_psd.py
gutierrezps/NeuroKit
a30f76e64b4108abdc652a20391dc0288c62501d
[ "MIT" ]
1
2022-03-20T21:09:34.000Z
2022-03-20T21:09:34.000Z
neurokit2/signal/signal_psd.py
Lei-I-Zhang/NeuroKit
a30f76e64b4108abdc652a20391dc0288c62501d
[ "MIT" ]
null
null
null
neurokit2/signal/signal_psd.py
Lei-I-Zhang/NeuroKit
a30f76e64b4108abdc652a20391dc0288c62501d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from warnings import warn import numpy as np import pandas as pd import scipy.signal from ..misc import NeuroKitWarning def signal_psd( signal, sampling_rate=1000, method="welch", show=False, normalize=True, min_frequency="default", max_frequency=np.inf, windo...
33.609434
119
0.552237
d66d14c08c2c55f6f07587636a24b0eb8571e57b
4,892
py
Python
TimeWrapper_JE/venv/Lib/site-packages/pip/_internal/metadata/base.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
TimeWrapper_JE/venv/Lib/site-packages/pip/_internal/metadata/base.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
TimeWrapper_JE/venv/Lib/site-packages/pip/_internal/metadata/base.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
1
2021-06-20T19:28:37.000Z
2021-06-20T19:28:37.000Z
import logging import re from typing import Container, Iterator, List, Optional, Union from pip._vendor.packaging.version import LegacyVersion, Version from pip._internal.utils.misc import stdlib_pkgs # TODO: Move definition here. DistributionVersion = Union[LegacyVersion, Version] logger = logging.getLo...
34.20979
81
0.595666
920b70716857fb9de4925b90dbef4e4df46c7401
4,363
py
Python
epa_graphs.py
tcq1/epa
a54d5142d510609709de61646cc4fd790238ae07
[ "MIT" ]
null
null
null
epa_graphs.py
tcq1/epa
a54d5142d510609709de61646cc4fd790238ae07
[ "MIT" ]
null
null
null
epa_graphs.py
tcq1/epa
a54d5142d510609709de61646cc4fd790238ae07
[ "MIT" ]
null
null
null
import random import copy import collections def choose_nodes(choosen, target_nodes, edges): """ choose `edges` nodes from `target_nodes`, whitout `chossen` and doubled nodes Function is side effect free @param choosen list of already chossen elements @param list to choose elements from @p...
36.974576
100
0.635113
0c8fc76f29eb2ed9a9436f0eccf85a4c93828ac9
8,357
py
Python
main_eval_saved_model.py
azagsam/jiant_slovene
cd7230319ebcd99d845c44baf4caa410bd9acc49
[ "MIT" ]
null
null
null
main_eval_saved_model.py
azagsam/jiant_slovene
cd7230319ebcd99d845c44baf4caa410bd9acc49
[ "MIT" ]
null
null
null
main_eval_saved_model.py
azagsam/jiant_slovene
cd7230319ebcd99d845c44baf4caa410bd9acc49
[ "MIT" ]
null
null
null
import jiant.proj.main.tokenize_and_cache as tokenize_and_cache import jiant.proj.main.export_model as export_model import jiant.proj.main.scripts.configurator as configurator import jiant.proj.main.runscript as main_runscript import jiant.utils.python.io as py_io import jiant.utils.display as display import os import ...
36.177489
218
0.754816
22730a479f3a0c7330d12cfdfe1f0186b2f22470
467
py
Python
plotly/validators/carpet/aaxis/_tickangle.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/carpet/aaxis/_tickangle.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/carpet/aaxis/_tickangle.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): def __init__( self, plotly_name='tickangle', parent_name='carpet.aaxis', **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_nam...
29.1875
75
0.638116
9ecb660de867c1ec9aa20a79ff9ef86602d09dca
1,737
py
Python
hebcal/parshios.py
TheBestMoshe/hebcal
7d77d2137684342b91fa7402cc357316f23dcfa1
[ "MIT" ]
12
2018-10-03T22:49:15.000Z
2021-08-13T03:52:05.000Z
hebcal/parshios.py
TheBestMoshe/hebcal
7d77d2137684342b91fa7402cc357316f23dcfa1
[ "MIT" ]
3
2019-06-27T19:22:03.000Z
2020-04-26T13:15:14.000Z
hebcal/parshios.py
TheBestMoshe/hebcal
7d77d2137684342b91fa7402cc357316f23dcfa1
[ "MIT" ]
5
2019-02-15T02:26:19.000Z
2021-11-07T21:57:52.000Z
import pyluach from pyluach import parshios american_ashkinazik_parshios = [ 'Beraishis', 'Noach', "Lech L'cha", 'Vayera', 'Chayei Sarah', 'Toldos', 'Vayetzei', 'Vayishlach', 'Vayeshev', 'Miketz', 'Vayigash', 'Vayechi', 'Shemos', "Va'era", 'Bo', 'Beshalach', 'Yisro', ...
37.76087
78
0.568221
2b6fa7b23e2746bff5d99f105e8be57c232700eb
125
py
Python
conda-build/run_test.py
jakirkham/anaconda-recipes
74fb2280662a022f2d12a7744b4823cfa5e236df
[ "BSD-3-Clause" ]
130
2015-07-28T03:41:21.000Z
2022-03-16T03:07:41.000Z
conda-build/run_test.py
jakirkham/anaconda-recipes
74fb2280662a022f2d12a7744b4823cfa5e236df
[ "BSD-3-Clause" ]
119
2015-08-01T00:54:06.000Z
2021-01-05T13:00:46.000Z
conda-build/run_test.py
jakirkham/anaconda-recipes
74fb2280662a022f2d12a7744b4823cfa5e236df
[ "BSD-3-Clause" ]
72
2015-07-29T02:35:56.000Z
2022-02-26T14:31:15.000Z
import conda_build print('conda_build.__version__: %s' % conda_build.__version__) assert conda_build.__version__ == '3.0.9'
25
62
0.784
f753645e8a4281453a74dfac5eb98935c2eac341
1,768
py
Python
mcrouter/test/test_service_info.py
kiaplayer/mcrouter
c54233f1cd57dc9f541bdbff7ff485775ff289fc
[ "MIT" ]
2,205
2015-01-03T02:56:53.000Z
2022-03-31T09:24:08.000Z
mcrouter/test/test_service_info.py
kiaplayer/mcrouter
c54233f1cd57dc9f541bdbff7ff485775ff289fc
[ "MIT" ]
327
2015-01-07T00:59:57.000Z
2022-03-31T16:03:58.000Z
mcrouter/test/test_service_info.py
kiaplayer/mcrouter
c54233f1cd57dc9f541bdbff7ff485775ff289fc
[ "MIT" ]
479
2015-01-07T02:06:42.000Z
2022-03-24T11:44:31.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from mcrouter.test.MCProcess import Memcached from mcrouter.test.McrouterTestCase import McrouterTestCase class TestS...
36.833333
74
0.657805
e658e3cc176d7bfc3fc1bcec815f6ab2a8f8face
11,520
py
Python
panic/gui/phonebook.py
kapot65/PANIC
3550af7a33190be9b0dfc65e5d7544910481b001
[ "CC-BY-3.0" ]
1
2019-09-20T08:10:32.000Z
2019-09-20T08:10:32.000Z
panic/gui/phonebook.py
MaxIV-KitsControls/app-cells-panicgui
58c5610970135e6fbb7b715094514b33bc1bc9c1
[ "CC-BY-3.0" ]
null
null
null
panic/gui/phonebook.py
MaxIV-KitsControls/app-cells-panicgui
58c5610970135e6fbb7b715094514b33bc1bc9c1
[ "CC-BY-3.0" ]
null
null
null
""" This file belongs to the PANIC Alarm Suite, developed by ALBA Synchrotron for Tango Control System GPL Licensed """ import sys, panic, traceback from utils import Qt, QtCore, QtGui from utils import getThemeIcon from utils import iValidatedWidget class PhoneBook(QtGui.QWidget): def __init__(self,parent=None...
44.478764
155
0.657899
5d5435bbf68401c66d16b6b50f2d53b885c30db4
11,615
py
Python
sdk/python/pulumi_azure_native/web/v20210115/list_web_app_backup_status_secrets.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20210115/list_web_app_backup_status_secrets.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20210115/list_web_app_backup_status_secrets.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "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 fro...
38.97651
321
0.642703
c6c0d23c1f147aecd3e41c44519f1728fafa2a1d
364
py
Python
backend/api/views/tasks/text.py
12xiaoni/text-label
7456c5e73d32bcfc81a02be7e0d748f162934d35
[ "MIT" ]
1
2022-01-06T01:40:52.000Z
2022-01-06T01:40:52.000Z
backend/api/views/tasks/text.py
12xiaoni/text-label
7456c5e73d32bcfc81a02be7e0d748f162934d35
[ "MIT" ]
null
null
null
backend/api/views/tasks/text.py
12xiaoni/text-label
7456c5e73d32bcfc81a02be7e0d748f162934d35
[ "MIT" ]
1
2021-12-22T22:02:14.000Z
2021-12-22T22:02:14.000Z
from ...models import TextLabel from ...serializers import TextLabelSerializer from .base import BaseDetailAPI, BaseListAPI class TextLabelListAPI(BaseListAPI): annotation_class = TextLabel serializer_class = TextLabelSerializer class TextLabelDetailAPI(BaseDetailAPI): queryset = TextLabel.objects.all()...
26
46
0.804945
3cec4ad1841344e469d11d5f74233b707af1bd26
1,982
py
Python
Pymoe/Kitsu/anime.py
bagley2014/PyMoe
83185a4d30e617f72a670ca6fb39fdf2ba84524a
[ "MIT" ]
243
2016-10-15T14:51:15.000Z
2022-01-27T06:39:06.000Z
Pymoe/Kitsu/anime.py
bagley2014/PyMoe
83185a4d30e617f72a670ca6fb39fdf2ba84524a
[ "MIT" ]
32
2016-10-17T00:00:29.000Z
2022-03-20T02:08:48.000Z
Pymoe/Kitsu/anime.py
bagley2014/PyMoe
83185a4d30e617f72a670ca6fb39fdf2ba84524a
[ "MIT" ]
25
2016-10-16T00:31:57.000Z
2021-11-11T03:38:55.000Z
import requests from ..errors import * from .helpers import SearchWrapper class KitsuAnime: def __init__(self, api, header): self.apiurl = api self.header = header def get(self, aid): """ Get anime information by id. :param int aid: ID of the anime. :return: D...
26.078947
86
0.518163
98ca71239d01dc1063a17d7a2cbdf89c26282f34
3,361
py
Python
clipper-parm/examples/image_query/example_client.py
mukkachaitanya/parity-models
9f336a67798934d29592aca471dff6ad047473f6
[ "Apache-2.0" ]
32
2019-09-11T16:49:58.000Z
2022-01-26T15:40:40.000Z
clipper-parm/examples/image_query/example_client.py
mukkachaitanya/parity-models
9f336a67798934d29592aca471dff6ad047473f6
[ "Apache-2.0" ]
5
2019-11-10T16:13:40.000Z
2022-01-13T01:31:51.000Z
clipper-parm/examples/image_query/example_client.py
mukkachaitanya/parity-models
9f336a67798934d29592aca471dff6ad047473f6
[ "Apache-2.0" ]
9
2019-09-03T14:05:26.000Z
2021-12-22T07:17:27.000Z
from __future__ import print_function import base64 from clipper_admin import ClipperConnection, DockerContainerManager from clipper_admin.deployers import python as python_deployer import json import requests from datetime import datetime import time import numpy as np import signal import sys import argparse """def ...
28.483051
81
0.63374
721c1eb3cce12c73ba811a61decbade7c5514b5f
38,768
py
Python
holoviews/tests/core/testdynamic.py
jonmmease/holoviews
27407e1a5d8020c39c135fa3f8c4fdeb11fea5c0
[ "BSD-3-Clause" ]
1
2019-01-02T20:20:09.000Z
2019-01-02T20:20:09.000Z
holoviews/tests/core/testdynamic.py
jonmmease/holoviews
27407e1a5d8020c39c135fa3f8c4fdeb11fea5c0
[ "BSD-3-Clause" ]
null
null
null
holoviews/tests/core/testdynamic.py
jonmmease/holoviews
27407e1a5d8020c39c135fa3f8c4fdeb11fea5c0
[ "BSD-3-Clause" ]
null
null
null
import uuid from collections import deque import time import numpy as np from holoviews import Dimension, NdLayout, GridSpace, Layout, NdOverlay from holoviews.core.spaces import DynamicMap, HoloMap, Callable from holoviews.core.options import Store from holoviews.element import Image, Scatter, Curve, Text, Points fro...
41.067797
109
0.61347
ca6d740338325034763345e4a4af85efb3957365
3,682
py
Python
user/views.py
amid-africa/photoorder
407cf58b3dbd3e2144a8533f489889295f946776
[ "MIT" ]
null
null
null
user/views.py
amid-africa/photoorder
407cf58b3dbd3e2144a8533f489889295f946776
[ "MIT" ]
null
null
null
user/views.py
amid-africa/photoorder
407cf58b3dbd3e2144a8533f489889295f946776
[ "MIT" ]
null
null
null
from django.contrib import messages from django.contrib.auth import login, get_user_model from django.contrib.auth.decorators import login_required from django.contrib.auth.tokens import default_token_generator from django.contrib.auth.views import PasswordChangeView, PasswordResetView from django.shortcuts import rend...
35.403846
110
0.704508
218cadce2ea2fa2891c3b58c8966e623e2fdd5fb
6,265
py
Python
sw/example/demo_freeRTOS/FreeRTOS-main/.github/scripts/core_checker.py
matejpolj/neorv32
369415dac1111cb9b1faba732476d759dc7405c1
[ "BSD-3-Clause" ]
1
2022-03-26T09:58:05.000Z
2022-03-26T09:58:05.000Z
.github/scripts/core_checker.py
kingtiger999/FreeRTOS
fc9396f576860663369828fbe3f11d84ea4b30b5
[ "MIT" ]
null
null
null
.github/scripts/core_checker.py
kingtiger999/FreeRTOS
fc9396f576860663369828fbe3f11d84ea4b30b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # python >= 3.4 import os from common.header_checker import HeaderChecker #-------------------------------------------------------------------------------------------------- # CONFIG #--------------------------------------------------------------------...
18.480826
99
0.44581
f7709afeb38fbca74ac9f6d9054ead7bc7db0771
2,833
py
Python
python_modules/dagster-graphql/dagster_graphql_tests/graphql/test_materializations.py
hebo-yang/dagster
553ad7fbb209e690907a477ca18e03ae519199f9
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql_tests/graphql/test_materializations.py
hebo-yang/dagster
553ad7fbb209e690907a477ca18e03ae519199f9
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql_tests/graphql/test_materializations.py
hebo-yang/dagster
553ad7fbb209e690907a477ca18e03ae519199f9
[ "Apache-2.0" ]
null
null
null
from dagster_graphql.test.utils import infer_pipeline_selector from dagster_graphql_tests.graphql.setup import LONG_INT from .graphql_context_test_suite import ExecutingGraphQLContextTestMatrix from .utils import sync_execute_get_events class TestMaterializations(ExecutingGraphQLContextTestMatrix): def test_mate...
38.808219
99
0.662549
1ebb98bd228d153f2dd1df489c2b56dee69971cc
6,452
py
Python
models/multiTask/MLF_DNN.py
iyuge2/MMSA
e17a012b07609662a4bdfac8cb8e1f92a9297b41
[ "Apache-2.0" ]
3
2020-07-06T06:32:16.000Z
2021-12-13T12:59:34.000Z
models/multiTask/MLF_DNN.py
iyuge2/MMSA
e17a012b07609662a4bdfac8cb8e1f92a9297b41
[ "Apache-2.0" ]
null
null
null
models/multiTask/MLF_DNN.py
iyuge2/MMSA
e17a012b07609662a4bdfac8cb8e1f92a9297b41
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F __all__ = ['MLF_DNN'] class SubNet(nn.Module): ''' The subnetwork that is used in TFN for video and audio in the pre-fusion stage ''' def __init__(self, in_size, hidden_size, dropout): ''' Args: in_size: in...
39.10303
135
0.651736
00cf94e2bcc7090ce730ddcddd16f1f3db6ef6fc
387
py
Python
manage.py
justinbuiMITRE/geoq
46efe290ec99ff29f4fc11db94b849ede5eba757
[ "MIT" ]
3
2015-06-08T14:12:33.000Z
2018-07-12T16:25:19.000Z
manage.py
justinbuiMITRE/geoq
46efe290ec99ff29f4fc11db94b849ede5eba757
[ "MIT" ]
8
2015-06-29T17:42:41.000Z
2020-09-24T02:29:41.000Z
manage.py
justinbuiMITRE/geoq
46efe290ec99ff29f4fc11db94b849ede5eba757
[ "MIT" ]
13
2015-06-02T19:19:34.000Z
2020-07-16T18:10:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "geoq.settings") manage_dir = os.path.dirname(os.path.realpath(__file__)) sys.path.append(os.path.join(manage_dir, 'geoq')) from django.core.management import ...
25.8
68
0.728682
643f903cf3dd0e7b273e9b8b4d0498992dd0683f
793
py
Python
Collect/MOD17/NPP_yearly.py
trngb/watools
57b9074d59d856886675aa26014bfd6673d5da76
[ "Apache-2.0" ]
11
2018-09-25T08:58:26.000Z
2021-02-13T18:58:05.000Z
Collect/MOD17/NPP_yearly.py
trngbich/watools
57b9074d59d856886675aa26014bfd6673d5da76
[ "Apache-2.0" ]
1
2020-07-03T02:36:41.000Z
2021-03-21T22:20:47.000Z
Collect/MOD17/NPP_yearly.py
trngbich/watools
57b9074d59d856886675aa26014bfd6673d5da76
[ "Apache-2.0" ]
16
2018-09-28T22:55:11.000Z
2021-02-22T13:03:56.000Z
import sys from watools.Collect.MOD17.DataAccessNPP import DownloadData def main(Dir, Startdate, Enddate, latlim, lonlim, cores=False, Waitbar = 1, hdf_library = None, remove_hdf = 1): """ This function downloads MOD17 yearly NPP data for the specified time interval, and spatial extent. Keyword argum...
34.478261
112
0.679697
338b39b414a31871d17c7accef36623d941adaa1
15,942
py
Python
MCP2221_1.py
FlippieCoetser/Python.MCP23018
06f8dba8fd9dbbdbd65a0383b8945dc44a28c9e3
[ "MIT" ]
1
2020-01-05T15:58:42.000Z
2020-01-05T15:58:42.000Z
MCP2221_1.py
FlippieCoetser/Python.MCP23018
06f8dba8fd9dbbdbd65a0383b8945dc44a28c9e3
[ "MIT" ]
null
null
null
MCP2221_1.py
FlippieCoetser/Python.MCP23018
06f8dba8fd9dbbdbd65a0383b8945dc44a28c9e3
[ "MIT" ]
null
null
null
import hid """ Library to interface with USB HID-Class devices on Windows, Linux, FreeBSD, and macOS. """ from enum import Enum, auto import time from ENUMS import DIRECTION, STATE class I2C_SPEED(Enum): STANDARD = 100000 FAST = 400000 HIGH = 3400000 class PARAMETER(Enum): I2C_SPEED = 'I2C_SPEED' cl...
31.505929
98
0.55382
475091e28eb5d8b9d5512496f82de88b79ed99f4
2,408
py
Python
dvc/repo/fetch.py
gmrukwa/dvc
81962d8aa73ff4318089aff95f57169effa5d77a
[ "Apache-2.0" ]
null
null
null
dvc/repo/fetch.py
gmrukwa/dvc
81962d8aa73ff4318089aff95f57169effa5d77a
[ "Apache-2.0" ]
null
null
null
dvc/repo/fetch.py
gmrukwa/dvc
81962d8aa73ff4318089aff95f57169effa5d77a
[ "Apache-2.0" ]
null
null
null
import logging from dvc.config import NoRemoteError from dvc.exceptions import DownloadError from . import locked logger = logging.getLogger(__name__) @locked def fetch( self, targets=None, jobs=None, remote=None, all_branches=False, show_checksums=False, with_deps=False, all_tags=F...
23.841584
77
0.622093
d7534a3cf75ffc5fd7d7ce3706da2a333435ecea
1,548
py
Python
ec2/elb/listelement.py
Rome84/AWS
32f5b6a83e37e62b0e33658bdab03ea493c905cb
[ "MIT" ]
null
null
null
ec2/elb/listelement.py
Rome84/AWS
32f5b6a83e37e62b0e33658bdab03ea493c905cb
[ "MIT" ]
null
null
null
ec2/elb/listelement.py
Rome84/AWS
32f5b6a83e37e62b0e33658bdab03ea493c905cb
[ "MIT" ]
null
null
null
# Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/ # Copyright (c) 2012 Amazon.com, Inc. or its affiliates. # All Rights Reserved # # 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 Softw...
41.837838
75
0.718992