hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
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
2
1.02M
avg_line_length
float64
1
417k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
1 class
is_sharp_comment_removed
bool
1 class
f72495f95031d45cde0afbf3bc7be5495a179206
798
py
Python
distributed-todos/services/todos/src/tasks/worker.py
cheperuiz/unlearn-python
f5b97090f8f1d014bd9d65ecc0c6232919271bfa
[ "MIT" ]
null
null
null
distributed-todos/services/todos/src/tasks/worker.py
cheperuiz/unlearn-python
f5b97090f8f1d014bd9d65ecc0c6232919271bfa
[ "MIT" ]
2
2021-05-11T00:00:01.000Z
2022-01-22T10:13:26.000Z
distributed-todos/services/todos/src/tasks/worker.py
cheperuiz/unlearn-dev
f5b97090f8f1d014bd9d65ecc0c6232919271bfa
[ "MIT" ]
null
null
null
import yaml from celery import Celery from pymongo import MongoClient from models.todo_dao import MongoDAO from models.todo import TodoSchema from library.utils import replace_env, make_url with open("/config/todos/default_config.yml", "r") as f: config = yaml.load(f, yaml.SafeLoader) replace_env(config) url = m...
30.692308
73
0.784461
import yaml from celery import Celery from pymongo import MongoClient from models.todo_dao import MongoDAO from models.todo import TodoSchema from library.utils import replace_env, make_url with open("/config/todos/default_config.yml", "r") as f: config = yaml.load(f, yaml.SafeLoader) replace_env(config) url = m...
true
true
f7249601a426b85ab408d827623e20f212418c0d
1,180
py
Python
xlsxwriter/test/comparison/test_button06.py
haiyangd/XlsxWriter
81f8c9435b3e03a1458bf9ba314b5d3f7508290f
[ "BSD-2-Clause-FreeBSD" ]
3
2018-02-26T12:31:41.000Z
2020-10-10T14:14:11.000Z
xlsxwriter/test/comparison/test_button06.py
haiyangd/XlsxWriter
81f8c9435b3e03a1458bf9ba314b5d3f7508290f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_button06.py
haiyangd/XlsxWriter
81f8c9435b3e03a1458bf9ba314b5d3f7508290f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
26.222222
79
0.54322
true
true
f72497b539e640bb7175711770e3eea6c3d373a3
2,122
py
Python
service/generated_flatbuffers/tflite/SliceOptions.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
213
2021-06-11T01:15:16.000Z
2022-02-25T16:18:57.000Z
service/generated_flatbuffers/tflite/SliceOptions.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
32
2021-06-17T17:58:54.000Z
2022-02-02T05:58:10.000Z
service/generated_flatbuffers/tflite/SliceOptions.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
28
2021-06-17T17:34:21.000Z
2022-03-24T14:05:20.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.068493
114
0.703582
import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class SliceOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAsSliceOptions(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = SliceOptio...
true
true
f72498dcf1db718730a5fc9efce9cd8c757e4531
15,730
py
Python
test/test_source_gdal.py
knowledgevis/large_image
ab5c213d3a68de8a2144707fc0dc1115d1e4664f
[ "Apache-2.0" ]
null
null
null
test/test_source_gdal.py
knowledgevis/large_image
ab5c213d3a68de8a2144707fc0dc1115d1e4664f
[ "Apache-2.0" ]
null
null
null
test/test_source_gdal.py
knowledgevis/large_image
ab5c213d3a68de8a2144707fc0dc1115d1e4664f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import glob import json import numpy import os import PIL.Image import PIL.ImageChops import pytest import six from large_image import constants from large_image.exceptions import TileSourceException import large_image_source_gdal from . import utilities def _assertImageMatches(image, test...
44.6875
94
0.676351
import glob import json import numpy import os import PIL.Image import PIL.ImageChops import pytest import six from large_image import constants from large_image.exceptions import TileSourceException import large_image_source_gdal from . import utilities def _assertImageMatches(image, testRootName, saveTestImage...
true
true
f724993bfb65f691c47509e2ab9bc57c799df3c7
1,799
py
Python
app/models/supply_code.py
uwhvz/uwhvz
72805d0e55740c3d90251dd4b4e40bf5c9e296d1
[ "MIT" ]
2
2019-12-15T06:30:37.000Z
2020-01-26T23:12:27.000Z
app/models/supply_code.py
uwhvz/uwhvz
72805d0e55740c3d90251dd4b4e40bf5c9e296d1
[ "MIT" ]
37
2020-01-22T02:36:32.000Z
2020-10-06T15:05:37.000Z
app/models/supply_code.py
uwhvz/uwhvz
72805d0e55740c3d90251dd4b4e40bf5c9e296d1
[ "MIT" ]
2
2020-06-24T03:07:36.000Z
2020-06-24T03:10:46.000Z
import uuid from datetime import datetime from django.db import models from django.utils import timezone from .game import Game from .player import Player from .util import generate_code class SupplyCodeManager(models.Manager): def create_supply_code(self, game: Game, value: 5, code: None) -> 'SupplyCode': ...
32.709091
99
0.678155
import uuid from datetime import datetime from django.db import models from django.utils import timezone from .game import Game from .player import Player from .util import generate_code class SupplyCodeManager(models.Manager): def create_supply_code(self, game: Game, value: 5, code: None) -> 'SupplyCode': ...
true
true
f724993d2ddc89e333243979253d709c8bed589f
49
py
Python
je_editor/ui/ui_event/text_process/__init__.py
JE-Chen/je_editor
2f18dedb6f0eb27c38668dc53f520739c8d5c6c6
[ "MIT" ]
1
2021-12-10T14:57:15.000Z
2021-12-10T14:57:15.000Z
je_editor/ui/ui_event/text_process/__init__.py
JE-Chen/je_editor
2f18dedb6f0eb27c38668dc53f520739c8d5c6c6
[ "MIT" ]
null
null
null
je_editor/ui/ui_event/text_process/__init__.py
JE-Chen/je_editor
2f18dedb6f0eb27c38668dc53f520739c8d5c6c6
[ "MIT" ]
null
null
null
from je_editor.ui.ui_event.text_process import *
24.5
48
0.836735
from je_editor.ui.ui_event.text_process import *
true
true
f7249959198c554003e2dec70da578ce0dcef41f
5,791
py
Python
GANs/stargan/generate.py
shikisawamura/nnabla-examples
baf4e4cc620dedbf4368683325c0fb868676850d
[ "Apache-2.0" ]
1
2020-08-03T12:49:25.000Z
2020-08-03T12:49:25.000Z
GANs/stargan/generate.py
takuseno/nnabla-examples
070d25078ad3d5458744dbfd390cdd926e20e573
[ "Apache-2.0" ]
null
null
null
GANs/stargan/generate.py
takuseno/nnabla-examples
070d25078ad3d5458744dbfd390cdd926e20e573
[ "Apache-2.0" ]
1
2020-04-25T06:11:28.000Z
2020-04-25T06:11:28.000Z
# Copyright (c) 2019 Sony Corporation. 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 applicabl...
35.746914
128
0.64842
import os import argparse import nnabla as nn from nnabla.ext_utils import get_extension_context import numpy as np import json import glob import model from nnabla.utils.image_utils import imread, imsave, imresize import functools def saveimage(path, img): img = (img * 0.5) + 0.5 imsave(path, ...
true
true
f72499cae7a442091d28cd688401d7778b935183
486
py
Python
tests/test_methods/test_calls.py
jackwardell/SlackTime
c40be4854a26084e1a368a975e220d613c14d8d8
[ "Apache-2.0" ]
2
2020-09-24T00:07:13.000Z
2020-09-27T19:27:06.000Z
tests/test_methods/test_calls.py
jackwardell/SlackTime
c40be4854a26084e1a368a975e220d613c14d8d8
[ "Apache-2.0" ]
null
null
null
tests/test_methods/test_calls.py
jackwardell/SlackTime
c40be4854a26084e1a368a975e220d613c14d8d8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- def test_calls_add(slack_time): assert slack_time.calls.add def test_calls_end(slack_time): assert slack_time.calls.end def test_calls_info(slack_time): assert slack_time.calls.info def test_calls_update(slack_time): assert slack_time.calls.update def test_calls_partici...
18.692308
47
0.781893
def test_calls_add(slack_time): assert slack_time.calls.add def test_calls_end(slack_time): assert slack_time.calls.end def test_calls_info(slack_time): assert slack_time.calls.info def test_calls_update(slack_time): assert slack_time.calls.update def test_calls_participants_add(slack_time): ...
true
true
f7249a82deee9e950217299ff16ff9a37d24226b
407
py
Python
recruiter_portal/urls.py
yhaojin/recruitment_pipeline
860f25185864a1b259d08e88f42aca86f8206a4e
[ "MIT" ]
null
null
null
recruiter_portal/urls.py
yhaojin/recruitment_pipeline
860f25185864a1b259d08e88f42aca86f8206a4e
[ "MIT" ]
null
null
null
recruiter_portal/urls.py
yhaojin/recruitment_pipeline
860f25185864a1b259d08e88f42aca86f8206a4e
[ "MIT" ]
null
null
null
from django.urls import path from .views import RecruiterIndexView, take_on_application_view, SaveTaskChangesView urlpatterns = [ path('', RecruiterIndexView.as_view(), name='recruiter_portal'), path('take_on_application/<application_pk>/', take_on_application_view, name='take_on_application'), path('save...
40.7
104
0.783784
from django.urls import path from .views import RecruiterIndexView, take_on_application_view, SaveTaskChangesView urlpatterns = [ path('', RecruiterIndexView.as_view(), name='recruiter_portal'), path('take_on_application/<application_pk>/', take_on_application_view, name='take_on_application'), path('save...
true
true
f7249ae817449c506e905d847baae94b9a76abf9
1,594
py
Python
numpy/distutils/command/build.py
gmabey/numpy
9e9ec3821c1d6a055543e54336ecb2c98ec42c5f
[ "BSD-3-Clause" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
numpy/distutils/command/build.py
gmabey/numpy
9e9ec3821c1d6a055543e54336ecb2c98ec42c5f
[ "BSD-3-Clause" ]
8
2015-09-07T03:38:19.000Z
2021-05-23T03:18:51.000Z
numpy/distutils/command/build.py
gmabey/numpy
9e9ec3821c1d6a055543e54336ecb2c98ec42c5f
[ "BSD-3-Clause" ]
40
2015-07-24T19:45:08.000Z
2021-11-01T14:54:56.000Z
from __future__ import division, absolute_import, print_function import os import sys from distutils.command.build import build as old_build from distutils.util import get_platform from numpy.distutils.command.config_compiler import show_fortran_compilers class build(old_build): sub_commands = [('config_cc', ...
33.208333
74
0.604141
from __future__ import division, absolute_import, print_function import os import sys from distutils.command.build import build as old_build from distutils.util import get_platform from numpy.distutils.command.config_compiler import show_fortran_compilers class build(old_build): sub_commands = [('config_cc', ...
true
true
f7249c7b22c9dba1da94e74c57ecbd871341b782
1,824
py
Python
test/functional/signmessages.py
Whiff-dev/WhiffV2.0
e44fffbe9f448e2bd2362cc74057bc541594f58b
[ "MIT" ]
null
null
null
test/functional/signmessages.py
Whiff-dev/WhiffV2.0
e44fffbe9f448e2bd2362cc74057bc541594f58b
[ "MIT" ]
null
null
null
test/functional/signmessages.py
Whiff-dev/WhiffV2.0
e44fffbe9f448e2bd2362cc74057bc541594f58b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Copyright (c) 2017 The Whiff Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test RPC commands for signing and verifying messages.""" fro...
45.6
119
0.736294
from test_framework.test_framework import WhiffTestFramework from test_framework.util import assert_equal class SignMessagesTest(WhiffTestFramework): def set_test_params(self): self.setup_clean_chain = True self.num_nodes = 1 def run_test(self): message = 'This is just a test mes...
true
true
f7249cef52c93864a1af11a36d8ddabcc8314339
201,806
py
Python
cinder/tests/test_hp3par.py
AO-AO/cmss-cinder
d1212908041e431d0fa4d42b40c4459a193484e6
[ "Apache-2.0" ]
null
null
null
cinder/tests/test_hp3par.py
AO-AO/cmss-cinder
d1212908041e431d0fa4d42b40c4459a193484e6
[ "Apache-2.0" ]
null
null
null
cinder/tests/test_hp3par.py
AO-AO/cmss-cinder
d1212908041e431d0fa4d42b40c4459a193484e6
[ "Apache-2.0" ]
null
null
null
# # (c) Copyright 2013 Hewlett-Packard Development Company, L.P. # 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/licens...
41.652425
79
0.539518
import mock import ast from oslo_config import cfg from oslo_log import log as logging from oslo_utils import units from cinder import context from cinder import exception from cinder import test from cinder.tests import fake_hp_3par_client as hp3parclient from cinder.volume.drivers.san.hp import hp_...
true
true
f7249cfe31de6802563053234016e283c91f0986
878
py
Python
tests/conftest.py
lycantropos/bentley_ottmann
988075aada80e5d5c8d53d513de130004b69c3b9
[ "MIT" ]
13
2020-04-03T04:43:44.000Z
2022-01-18T10:40:40.000Z
tests/conftest.py
lycantropos/bentley_ottmann
988075aada80e5d5c8d53d513de130004b69c3b9
[ "MIT" ]
19
2020-01-31T05:25:42.000Z
2021-04-01T13:20:05.000Z
tests/conftest.py
lycantropos/bentley_ottmann
988075aada80e5d5c8d53d513de130004b69c3b9
[ "MIT" ]
3
2020-06-08T11:15:32.000Z
2021-02-15T12:37:01.000Z
import os import platform import pytest from ground.base import (Context, get_context) from hypothesis import (HealthCheck, settings) on_azure_pipelines = bool(os.getenv('TF_BUILD', False)) is_pypy = platform.python_implementation() == 'PyPy' settings.register_profile(...
35.12
77
0.525057
import os import platform import pytest from ground.base import (Context, get_context) from hypothesis import (HealthCheck, settings) on_azure_pipelines = bool(os.getenv('TF_BUILD', False)) is_pypy = platform.python_implementation() == 'PyPy' settings.register_profile(...
true
true
f7249ecb6643e8a4d8abef519c48499b5a5bb0e4
630
py
Python
Django/Video_Project/Day05/SqlToModel/manage.py
pyforspider/LearningLog
ac5988d7fbb0d07d6e7485f9050250af5bcba089
[ "MIT" ]
null
null
null
Django/Video_Project/Day05/SqlToModel/manage.py
pyforspider/LearningLog
ac5988d7fbb0d07d6e7485f9050250af5bcba089
[ "MIT" ]
18
2020-02-12T01:18:12.000Z
2022-03-12T00:42:15.000Z
Django/Video_Project/Day05/SqlToModel/manage.py
pyforspider/LearningLog
ac5988d7fbb0d07d6e7485f9050250af5bcba089
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'SqlToModel.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
28.636364
74
0.684127
import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'SqlToModel.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " ...
true
true
f7249f59bdaa349ad040c4306eb1c2ca214840ed
5,504
py
Python
accounts/tests.py
mgovoni-devel/MatD3
5b68d147f886bce427f92bb560159e62cec2d4e7
[ "BSD-2-Clause-FreeBSD" ]
7
2019-09-14T07:24:09.000Z
2021-06-15T16:15:05.000Z
accounts/tests.py
mgovoni-devel/MatD3
5b68d147f886bce427f92bb560159e62cec2d4e7
[ "BSD-2-Clause-FreeBSD" ]
14
2019-12-05T01:49:19.000Z
2021-06-23T18:34:51.000Z
accounts/tests.py
mgovoni-devel/MatD3
5b68d147f886bce427f92bb560159e62cec2d4e7
[ "BSD-2-Clause-FreeBSD" ]
2
2019-11-06T21:16:57.000Z
2019-11-30T10:51:44.000Z
# This file is covered by the BSD license. See LICENSE in the root directory. from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from django.core import mail from django.test import TestCase from django.urls import reverse from rest_framework import status User = get_user_model...
40.175182
79
0.649891
from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from django.core import mail from django.test import TestCase from django.urls import reverse from rest_framework import status User = get_user_model() USERNAME = 'testuser' PASSWORD = '28&}>z1-%ZY|0ATwGU+7I!F7pJ:+(E' FIRSTNAM...
true
true
f724a0579c82ae147fc51ad5b6508680a848d799
27,245
py
Python
app/lib/dns/import_manager.py
grepleria/SnitchDNS
24f98b01fd5fca9aa2c660d6ee15742f2e44915c
[ "MIT" ]
152
2020-12-07T13:26:53.000Z
2022-03-23T02:00:04.000Z
app/lib/dns/import_manager.py
grepleria/SnitchDNS
24f98b01fd5fca9aa2c660d6ee15742f2e44915c
[ "MIT" ]
16
2020-12-07T17:04:36.000Z
2022-03-10T11:12:52.000Z
app/lib/dns/import_manager.py
grepleria/SnitchDNS
24f98b01fd5fca9aa2c660d6ee15742f2e44915c
[ "MIT" ]
36
2020-12-09T13:04:40.000Z
2022-03-12T18:14:36.000Z
from app.lib.dns.helpers.shared import SharedHelper import os import datetime import json import progressbar from app import db class DNSImportManager(SharedHelper): IMPORT_TYPE_ZONE = 1 IMPORT_TYPE_RECORD = 2 @property def last_error(self): return self.__last_error @last_error.setter ...
39.89019
390
0.562342
from app.lib.dns.helpers.shared import SharedHelper import os import datetime import json import progressbar from app import db class DNSImportManager(SharedHelper): IMPORT_TYPE_ZONE = 1 IMPORT_TYPE_RECORD = 2 @property def last_error(self): return self.__last_error @last_error.setter ...
true
true
f724a1382e8af5cf9306be07c058f0768f836073
807
py
Python
VetsApp/migrations/0001_initial.py
Sabrinax3/Pet-Clinic-1
776955d118a46c8d4eaa74de22ea0280b82debc9
[ "MIT" ]
2
2020-04-13T14:26:54.000Z
2022-01-19T01:30:25.000Z
VetsApp/migrations/0001_initial.py
Sabrinax3/Pet-Clinic-1
776955d118a46c8d4eaa74de22ea0280b82debc9
[ "MIT" ]
2
2020-05-29T18:52:55.000Z
2020-05-30T02:06:28.000Z
VetsApp/migrations/0001_initial.py
Sabrinax3/Pet-Clinic-1
776955d118a46c8d4eaa74de22ea0280b82debc9
[ "MIT" ]
8
2020-04-11T08:30:44.000Z
2020-05-30T03:26:13.000Z
# Generated by Django 3.0.5 on 2020-04-10 10:01 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Vets', fields=[ ('id', models.AutoField(aut...
29.888889
114
0.570012
from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Vets', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=Fal...
true
true
f724a2c802c8c96a90155f3e5f0760fede5be41e
4,704
py
Python
stanCode_Projects/name_searching_system/babynames.py
calvin0123/sc-projects
88ac98e3543a1399387c2033f36dc5c6b86c488c
[ "MIT" ]
null
null
null
stanCode_Projects/name_searching_system/babynames.py
calvin0123/sc-projects
88ac98e3543a1399387c2033f36dc5c6b86c488c
[ "MIT" ]
null
null
null
stanCode_Projects/name_searching_system/babynames.py
calvin0123/sc-projects
88ac98e3543a1399387c2033f36dc5c6b86c488c
[ "MIT" ]
1
2021-12-04T22:50:23.000Z
2021-12-04T22:50:23.000Z
""" SC101 Baby Names Project Adapted from Nick Parlante's Baby Names assignment by Jerry Liao. ------------------------------------------ File: babynames.py Name: Calvin Chen This file reads the most famous baby names from 1900 to 2010 in the US and stores the .txt into the dictionary to provide the information for the...
29.961783
84
0.624787
import sys def add_data_for_name(name_data, year, rank, name): if name not in name_data: name_data[name] = {} name_data[name][year] = rank else: if year in name_data[name]: if int(name_data[name][year]) < int(rank): return name_data else: ...
true
true
f724a33ad866379ea4c6e3d1a4ecff9dfb612aba
16,136
py
Python
flower/api/tasks.py
jiangrz/flower
4d6fad197e97c9c36f8052345a348345ef4505a3
[ "BSD-3-Clause" ]
null
null
null
flower/api/tasks.py
jiangrz/flower
4d6fad197e97c9c36f8052345a348345ef4505a3
[ "BSD-3-Clause" ]
null
null
null
flower/api/tasks.py
jiangrz/flower
4d6fad197e97c9c36f8052345a348345ef4505a3
[ "BSD-3-Clause" ]
1
2021-04-23T17:34:09.000Z
2021-04-23T17:34:09.000Z
from __future__ import absolute_import import json import logging from datetime import datetime from threading import Thread from tornado import web from tornado import gen from tornado.escape import json_decode from tornado.web import HTTPError from celery import states from celery.result import AsyncResult from c...
26.715232
76
0.622707
from __future__ import absolute_import import json import logging from datetime import datetime from threading import Thread from tornado import web from tornado import gen from tornado.escape import json_decode from tornado.web import HTTPError from celery import states from celery.result import AsyncResult from c...
true
true
f724a3584071ba22c1c4ba5bdfbe1f6a5f6bdc1b
3,428
py
Python
source/draw_ising_ph.py
OminiaVincit/qphase-trans
40e0c078dcd74282e8d8f44690433bf670bff8cb
[ "MIT" ]
null
null
null
source/draw_ising_ph.py
OminiaVincit/qphase-trans
40e0c078dcd74282e8d8f44690433bf670bff8cb
[ "MIT" ]
null
null
null
source/draw_ising_ph.py
OminiaVincit/qphase-trans
40e0c078dcd74282e8d8f44690433bf670bff8cb
[ "MIT" ]
null
null
null
import sys import numpy as np import matplotlib.pyplot as plt import sys import os import time import argparse from visual_utils import generate_listcol import seaborn as sns def calculate_npent(death_scales): sd = np.sum(death_scales) npent = 0 for d in death_scales: dr = d/sd npent -= dr*...
36.860215
154
0.57147
import sys import numpy as np import matplotlib.pyplot as plt import sys import os import time import argparse from visual_utils import generate_listcol import seaborn as sns def calculate_npent(death_scales): sd = np.sum(death_scales) npent = 0 for d in death_scales: dr = d/sd npent -= dr*...
true
true
f724a3bb3cfd2e2c82e1c443ccd2a3266923c550
5,090
py
Python
src/niveristand/clientapi/realtimesequencedefinition.py
arnoldcsorvasi/niveristand-python
39e5593e10bb372c801d6fa521e8fc166dab8cfe
[ "MIT" ]
6
2018-07-04T10:59:43.000Z
2022-03-24T13:34:33.000Z
src/niveristand/clientapi/realtimesequencedefinition.py
arnoldcsorvasi/niveristand-python
39e5593e10bb372c801d6fa521e8fc166dab8cfe
[ "MIT" ]
14
2018-11-05T20:05:33.000Z
2022-03-10T12:54:58.000Z
src/niveristand/clientapi/realtimesequencedefinition.py
arnoldcsorvasi/niveristand-python
39e5593e10bb372c801d6fa521e8fc166dab8cfe
[ "MIT" ]
15
2018-07-04T07:58:49.000Z
2022-02-22T16:35:26.000Z
import os from niveristand import _errormessages, errors from niveristand import _internal from niveristand._translation.py2rtseq.utils import _py_param_name_to_rtseq_param_name from niveristand.clientapi import stimulusprofileapi from niveristand.clientapi._factory import _DefaultGatewayFactory from niveristand.client...
34.863014
115
0.803929
import os from niveristand import _errormessages, errors from niveristand import _internal from niveristand._translation.py2rtseq.utils import _py_param_name_to_rtseq_param_name from niveristand.clientapi import stimulusprofileapi from niveristand.clientapi._factory import _DefaultGatewayFactory from niveristand.client...
true
true
f724a43ca95266c2f6ed70bcb679da48a9313bcc
1,756
py
Python
dargor/colored_tracebacks.py
dargor/dargor-py
54b97ac5aaeadd0535fdc492407015c770a5fd67
[ "0BSD" ]
null
null
null
dargor/colored_tracebacks.py
dargor/dargor-py
54b97ac5aaeadd0535fdc492407015c770a5fd67
[ "0BSD" ]
null
null
null
dargor/colored_tracebacks.py
dargor/dargor-py
54b97ac5aaeadd0535fdc492407015c770a5fd67
[ "0BSD" ]
null
null
null
# # Copyright (c) 2020, Gabriel Linder <linder.gabriel@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS"...
37.361702
79
0.735763
import asyncio import sys import traceback from contextlib import suppress from pygments import highlight from pygments.formatters import Terminal256Formatter from pygments.lexers import Python3TracebackLexer def excepthook(exc_type, exc_value, exc_traceback): tb = ''.join(traceback.format_except...
true
true
f724a4c8c450af916d151c5bf8044ebed35a78ce
5,230
py
Python
NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/Openpyxl/openpyxl-2.4.0-a1/openpyxl/writer/worksheet.py
sahirsharma/Martian
062e9b47849512863c16713811f347ad7e121b56
[ "MIT" ]
7
2016-12-12T02:29:42.000Z
2020-05-12T21:21:21.000Z
NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/Openpyxl/openpyxl-2.4.0-a1/openpyxl/writer/worksheet.py
sahirsharma/Martian
062e9b47849512863c16713811f347ad7e121b56
[ "MIT" ]
31
2017-01-05T06:07:28.000Z
2018-05-27T13:13:06.000Z
NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/Openpyxl/openpyxl-2.4.0-a1/openpyxl/writer/worksheet.py
sahirsharma/Martian
062e9b47849512863c16713811f347ad7e121b56
[ "MIT" ]
3
2017-12-21T23:30:12.000Z
2019-01-03T20:51:52.000Z
from __future__ import absolute_import # Copyright (c) 2010-2016 openpyxl """Write worksheets to xml representations.""" # Python stdlib imports from io import BytesIO from openpyxl import LXML # package imports from openpyxl.xml.functions import ( Element, xmlfile, ) from openpyxl.xml.constants import SHEE...
28.895028
91
0.624092
from __future__ import absolute_import from io import BytesIO from openpyxl import LXML from openpyxl.xml.functions import ( Element, xmlfile, ) from openpyxl.xml.constants import SHEET_MAIN_NS from openpyxl.formatting import ConditionalFormatting from openpyxl.styles.differential import DifferentialStyl...
true
true
f724a5ea1a9b0a0227598c547ffae0a1b2f3abd4
14,218
py
Python
experimental/webserver/common/wsgi.py
manuparra/oc2dm
5459c1fdde909fdd4d59b3ad29d7d5c962b23694
[ "MIT" ]
1
2019-11-27T18:34:12.000Z
2019-11-27T18:34:12.000Z
experimental/webserver/common/wsgi.py
manuparra/oc2dm
5459c1fdde909fdd4d59b3ad29d7d5c962b23694
[ "MIT" ]
null
null
null
experimental/webserver/common/wsgi.py
manuparra/oc2dm
5459c1fdde909fdd4d59b3ad29d7d5c962b23694
[ "MIT" ]
1
2020-04-10T14:44:44.000Z
2020-04-10T14:44:44.000Z
# Copyright 2017 DiCTIS UGR # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
38.531165
78
0.602546
from __future__ import print_function import errno import functools import os import signal import sys import eventlet import eventlet.greenio import eventlet.wsgi from eventlet.green import socket from omlcc_catalog.common import config from omlcc_catalog.common import exception wsgi_opts = [ c...
true
true
f724a61cd3bb5219a49f1a660296b229d468a428
2,178
py
Python
A03_Wellst.py
spring-2019-csc-226/a03-master
7be446b28d5aebfc4c4635cc418db0c0c0fadbca
[ "MIT" ]
null
null
null
A03_Wellst.py
spring-2019-csc-226/a03-master
7be446b28d5aebfc4c4635cc418db0c0c0fadbca
[ "MIT" ]
4
2019-02-07T06:26:00.000Z
2019-02-19T00:08:43.000Z
A03_Wellst.py
spring-2019-csc-226/a03-master
7be446b28d5aebfc4c4635cc418db0c0c0fadbca
[ "MIT" ]
1
2019-02-07T02:23:37.000Z
2019-02-07T02:23:37.000Z
####################################################################################################################### # Taran Wells # Wellst # https://docs.google.com/document/d/1RBeOXjYBBjZ507wVeQVIPBrU7gBvTNJi8BYGDvtC53w/edit?usp=sharing ##############################################################################...
21.78
119
0.524334
true
true
f724a823d84a94955722b0212528e735eddb241d
1,343
py
Python
setup.py
GianmarcoFolchi/basketball_reference_scraper
9d286b66bd2856f3fe0ba255552c5b81b2f87148
[ "MIT" ]
null
null
null
setup.py
GianmarcoFolchi/basketball_reference_scraper
9d286b66bd2856f3fe0ba255552c5b81b2f87148
[ "MIT" ]
null
null
null
setup.py
GianmarcoFolchi/basketball_reference_scraper
9d286b66bd2856f3fe0ba255552c5b81b2f87148
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="basketball_reference_scraper", version="1.0.28", author="Vishaal Agartha", author_email="vishaalagartha@gmail.com", license="MIT", description="A Python client for scraping stats and d...
27.979167
88
0.590469
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="basketball_reference_scraper", version="1.0.28", author="Vishaal Agartha", author_email="vishaalagartha@gmail.com", license="MIT", description="A Python client for scraping stats and d...
true
true
f724a86f608abd7e0fcfb80a41433b1d6e143ea0
3,471
py
Python
setup.py
pbellec/SUITPy
a0450518100d3f5f86423f48d2b7f22c68deebe9
[ "MIT" ]
null
null
null
setup.py
pbellec/SUITPy
a0450518100d3f5f86423f48d2b7f22c68deebe9
[ "MIT" ]
null
null
null
setup.py
pbellec/SUITPy
a0450518100d3f5f86423f48d2b7f22c68deebe9
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ @author: maedbhking based heavily on flexible functionality of nilearn `setup.py` """ descr = """A python package for cerebellar neuroimaging...""" import sys import os from setuptools import setup, find_packages def load_version(): """Executes SUITPy/version.py in a globals dictiona...
34.366337
89
0.63123
descr = """A python package for cerebellar neuroimaging...""" import sys import os from setuptools import setup, find_packages def load_version(): globals_dict = {} with open(os.path.join('SUITPy', 'version.py')) as fp: exec(fp.read(), globals_dict) return globals_dict def is_inst...
true
true
f724a880d570332da47359919de6f56a2a986caf
821
py
Python
deckz/cli/watch.py
m09/deckz
0f97ef2a43c2c714ac18173a4fe3266cccba31e2
[ "Apache-2.0" ]
null
null
null
deckz/cli/watch.py
m09/deckz
0f97ef2a43c2c714ac18173a4fe3266cccba31e2
[ "Apache-2.0" ]
41
2020-04-06T13:49:18.000Z
2020-12-24T11:14:47.000Z
deckz/cli/watch.py
m09/deckz
0f97ef2a43c2c714ac18173a4fe3266cccba31e2
[ "Apache-2.0" ]
null
null
null
from logging import getLogger from pathlib import Path from typing import List, Optional from typer import Argument from deckz.cli import app from deckz.paths import Paths from deckz.watching import watch as watching_watch _logger = getLogger(__name__) @app.command() def watch( targets: Optional[List[str]] = A...
24.878788
59
0.699147
from logging import getLogger from pathlib import Path from typing import List, Optional from typer import Argument from deckz.cli import app from deckz.paths import Paths from deckz.watching import watch as watching_watch _logger = getLogger(__name__) @app.command() def watch( targets: Optional[List[str]] = A...
true
true
f724a8d819de226898e0d3a10a65ce1725cf1a9d
1,629
py
Python
tce/tcloud/cvm/ResetInstancesInternetMaxBandwidth.py
liangzhengkang/tencentcloud-sdk-python
c8f990b33f3701e04149a3d613538829a88269eb
[ "Apache-2.0" ]
null
null
null
tce/tcloud/cvm/ResetInstancesInternetMaxBandwidth.py
liangzhengkang/tencentcloud-sdk-python
c8f990b33f3701e04149a3d613538829a88269eb
[ "Apache-2.0" ]
null
null
null
tce/tcloud/cvm/ResetInstancesInternetMaxBandwidth.py
liangzhengkang/tencentcloud-sdk-python
c8f990b33f3701e04149a3d613538829a88269eb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException # 导入对应产品模块的client models。 from tencentcloud.cvm.v20170312 import cvm_client, models import json # 导入可选配置类 from tencentcloud.common.profile.client_p...
33.9375
108
0.796808
import os from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.cvm.v20170312 import cvm_client, models import json from tencentcloud.common.profile.client_profile import ClientProfile from tencentcloud.common.prof...
true
true
f724a945f1fb6084253128c597e56a1ed312286b
654
py
Python
src/contas/models.py
br-monteiro/learning-django
68f16f17e0b4357d15a5b7e9c9a66da2bccd7a63
[ "MIT" ]
null
null
null
src/contas/models.py
br-monteiro/learning-django
68f16f17e0b4357d15a5b7e9c9a66da2bccd7a63
[ "MIT" ]
null
null
null
src/contas/models.py
br-monteiro/learning-django
68f16f17e0b4357d15a5b7e9c9a66da2bccd7a63
[ "MIT" ]
null
null
null
from django.db import models class Category(models.Model): name = models.CharField(max_length=100) created_at = models.DateTimeField(auto_now_add=True) def __str__(self): return self.name class Meta: verbose_name_plural = 'Categorias' class Transactions(models.Model): date = models.DateField() ...
26.16
64
0.759939
from django.db import models class Category(models.Model): name = models.CharField(max_length=100) created_at = models.DateTimeField(auto_now_add=True) def __str__(self): return self.name class Meta: verbose_name_plural = 'Categorias' class Transactions(models.Model): date = models.DateField() ...
true
true
f724aaa61baa5d75e1ec4a635d7608adf9883661
3,135
py
Python
src/dms-preview/azext_dms/vendored_sdks/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
1
2019-05-10T19:58:09.000Z
2019-05-10T19:58:09.000Z
src/dms-preview/azext_dms/vendored_sdks/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
src/dms-preview/azext_dms/vendored_sdks/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.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 ...
39.683544
101
0.625199
from .migrate_sql_server_sql_mi_task_output import MigrateSqlServerSqlMITaskOutput class MigrateSqlServerSqlMITaskOutputAgentJobLevel(MigrateSqlServerSqlMITaskOutput): _validation = { 'id': {'readonly': True}, 'result_type': {'required': True}, 'name': {'readonly': True}, ...
true
true
f724ab3e48fa4fed5007bb73f609343695c1c2e7
2,530
py
Python
GPflow/test_gplvm.py
blutooth/dgp
bedbbc3595fbe124d7a06c3d6d64f9009304491e
[ "Apache-2.0" ]
1
2018-09-06T04:42:37.000Z
2018-09-06T04:42:37.000Z
GPflow/test_gplvm.py
blutooth/dgp
bedbbc3595fbe124d7a06c3d6d64f9009304491e
[ "Apache-2.0" ]
null
null
null
GPflow/test_gplvm.py
blutooth/dgp
bedbbc3595fbe124d7a06c3d6d64f9009304491e
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import kernels import numpy as np import unittest import gplvm class TestBayesianGPLVM(unittest.TestCase): def setUp(self): N = 10 # number of data points D = 1 # latent dimensions M = 5 # inducings points R = 2 # data dimension k = ker...
33.733333
146
0.581818
from __future__ import print_function import kernels import numpy as np import unittest import gplvm class TestBayesianGPLVM(unittest.TestCase): def setUp(self): N = 10 D = 1 M = 5 R = 2 k = kernels.RBF(D) Z = np.linspace(0,1,M) Z = np.expand_dims(Z, D) ...
true
true
f724ae22374b14f37ab0977ec53f524308417895
1,422
py
Python
demo/wp_scalogram.py
astromaddie/pywavelets-py3
9d434929cb748eb44be86a4b712d8f3009326693
[ "MIT" ]
1
2018-03-13T10:44:47.000Z
2018-03-13T10:44:47.000Z
demo/wp_scalogram.py
astromaddie/pywavelets-py3
9d434929cb748eb44be86a4b712d8f3009326693
[ "MIT" ]
null
null
null
demo/wp_scalogram.py
astromaddie/pywavelets-py3
9d434929cb748eb44be86a4b712d8f3009326693
[ "MIT" ]
1
2018-03-13T10:44:54.000Z
2018-03-13T10:44:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt import pywt x = np.linspace(0, 1, num=512) data = np.sin(250 * np.pi * x**2) wavelet = 'db2' level = 4 order = "freq" # other option is "normal" interpolation = 'nearest' cmap = plt.cm.cool # Construct wavelet packet...
27.346154
73
0.696203
import numpy as np import matplotlib.pyplot as plt import pywt x = np.linspace(0, 1, num=512) data = np.sin(250 * np.pi * x**2) wavelet = 'db2' level = 4 order = "freq" interpolation = 'nearest' cmap = plt.cm.cool wp = pywt.WaveletPacket(data, wavelet, 'sym', maxlevel=level) nodes = wp.get_level(level, order...
true
true
f724ae68aed162517af1cec117aa39d242e353b8
6,048
py
Python
scripts/init_theano_settings.py
dylanirion/wbia-plugin-cnn
cd0018b829de3f077ca289551492cdad84806ed6
[ "Apache-2.0" ]
null
null
null
scripts/init_theano_settings.py
dylanirion/wbia-plugin-cnn
cd0018b829de3f077ca289551492cdad84806ed6
[ "Apache-2.0" ]
4
2020-07-02T19:25:43.000Z
2020-08-27T18:05:15.000Z
scripts/init_theano_settings.py
dylanirion/wbia-plugin-cnn
cd0018b829de3f077ca289551492cdad84806ed6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ References: http://deeplearning.net/software/theano/library/config.html Check Settings: python -c 'import theano; print theano.config' | less """ from __future__ import absolute_import, division, print_function, unicode_literals import utool as ut import os from os.path import join ...
33.787709
121
0.700562
from __future__ import absolute_import, division, print_function, unicode_literals import utool as ut import os from os.path import join (print, rrr, profile) = ut.inject2(__name__) def init_theanorc(): theanorc_fpath = join(os.getenv('HOME'), '.theanorc') theanorc_text = ut.codeblock( """ ...
true
true
f724aebbd5407f292e974e0c128452257538cb40
3,516
py
Python
bindings/python/ensmallen/datasets/string/desulfotomaculumcopahuensis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/desulfotomaculumcopahuensis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/desulfotomaculumcopahuensis.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Desulfotomaculum copahuensis. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--p...
33.485714
223
0.681741
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen import Graph def DesulfotomaculumCopahuensis( directed: bool = False, preprocess: bool = True, load_nodes: bool = True, verbose: int = 2, cache: bool = True, cache_path: str = "grap...
true
true
f724af0aaa79792c4cd22f016025f032f8255a1c
1,504
py
Python
updater/update/ratelimit.py
codl/status.chitter.xyz
ed86a6163306c938a49bdef5dea4928ef7cd09cc
[ "BSD-3-Clause" ]
1
2020-06-02T13:21:59.000Z
2020-06-02T13:21:59.000Z
updater/update/ratelimit.py
codl/status.chitter.xyz
ed86a6163306c938a49bdef5dea4928ef7cd09cc
[ "BSD-3-Clause" ]
678
2018-05-27T21:47:21.000Z
2022-02-03T14:41:28.000Z
updater/update/ratelimit.py
codl/status.chitter.xyz
ed86a6163306c938a49bdef5dea4928ef7cd09cc
[ "BSD-3-Clause" ]
null
null
null
from redis import StrictRedis as Redis from pathlib import Path import hashlib import time lua_script_path = Path(__file__).parent / 'ratelimit.lua' with open(lua_script_path) as f: LUA_SCRIPT = f.read() del lua_script_path # don't want it polluting the module class RateLimit(object): def __init__(self, ...
32.695652
75
0.611037
from redis import StrictRedis as Redis from pathlib import Path import hashlib import time lua_script_path = Path(__file__).parent / 'ratelimit.lua' with open(lua_script_path) as f: LUA_SCRIPT = f.read() del lua_script_path class RateLimit(object): def __init__(self, redis_url='redis://'...
true
true
f724af6e5df81a66575ddc711157d44b2bd75cca
190
py
Python
optimus/version.py
Pcosmin/Optimus
ef3306d1b752bbfb1959ddb9103786acb8e9b9ba
[ "Apache-2.0" ]
1
2020-09-22T13:04:37.000Z
2020-09-22T13:04:37.000Z
optimus/version.py
rafaelang/Optimus
809088f41588c968b2e30210f98a494a497b07ff
[ "Apache-2.0" ]
null
null
null
optimus/version.py
rafaelang/Optimus
809088f41588c968b2e30210f98a494a497b07ff
[ "Apache-2.0" ]
null
null
null
def _safe_int(string): try: return int(string) except ValueError: return string __version__ = '3.0.6' VERSION = tuple(_safe_int(x) for x in __version__.split('.'))
19
61
0.642105
def _safe_int(string): try: return int(string) except ValueError: return string __version__ = '3.0.6' VERSION = tuple(_safe_int(x) for x in __version__.split('.'))
true
true
f724af7352302d77818ce7630117090761337ead
1,853
py
Python
server/plato/test/test_user_model.py
zhlooking/plato
9daf0dfd8b376603453eadf2d981c71d3adb2632
[ "MIT" ]
null
null
null
server/plato/test/test_user_model.py
zhlooking/plato
9daf0dfd8b376603453eadf2d981c71d3adb2632
[ "MIT" ]
null
null
null
server/plato/test/test_user_model.py
zhlooking/plato
9daf0dfd8b376603453eadf2d981c71d3adb2632
[ "MIT" ]
null
null
null
from plato.test.base import BaseTestCase from sqlalchemy.exc import IntegrityError from plato import db from plato.model.user import User from plato.test.utils import add_user class TestUserModel(BaseTestCase): def test_user_model(self): user = add_user('foo', 'foo@bar.com', 'test_pwd') self.asse...
39.425532
68
0.683216
from plato.test.base import BaseTestCase from sqlalchemy.exc import IntegrityError from plato import db from plato.model.user import User from plato.test.utils import add_user class TestUserModel(BaseTestCase): def test_user_model(self): user = add_user('foo', 'foo@bar.com', 'test_pwd') self.asse...
true
true
f724aff84f870ddcfdf9843c043f46bf8a185053
1,034
py
Python
Activities Week 7 (social analytics)/Social_Analytics_Part3/Day3/ChatterBot.py
lraynes/ClassActivities
920df2331f39c8a89477ab73e4393675a299d02d
[ "MIT" ]
null
null
null
Activities Week 7 (social analytics)/Social_Analytics_Part3/Day3/ChatterBot.py
lraynes/ClassActivities
920df2331f39c8a89477ab73e4393675a299d02d
[ "MIT" ]
null
null
null
Activities Week 7 (social analytics)/Social_Analytics_Part3/Day3/ChatterBot.py
lraynes/ClassActivities
920df2331f39c8a89477ab73e4393675a299d02d
[ "MIT" ]
null
null
null
# Dependencies import tweepy import time import json from config import consumer_key, consumer_secret, access_token, access_token_secret # Twitter API Keys consumer_key = consumer_key consumer_secret = consumer_secret access_token = access_token access_token_secret = access_token_secret # Setup Tweepy API Authenticat...
25.85
83
0.766925
import tweepy import time import json from config import consumer_key, consumer_secret, access_token, access_token_secret consumer_key = consumer_key consumer_secret = consumer_secret access_token = access_token access_token_secret = access_token_secret auth = tweepy.OAuthHandler(consumer_key, consumer_secret) aut...
true
true
f724b011af2d3189f97b37e16bda3a9e70054f15
410
py
Python
scripts/wk/cfg/log.py
2Shirt/WizardK
82a2e7f85c80a52f892c1553e7a45ec0174e7bc6
[ "MIT" ]
null
null
null
scripts/wk/cfg/log.py
2Shirt/WizardK
82a2e7f85c80a52f892c1553e7a45ec0174e7bc6
[ "MIT" ]
178
2017-11-17T19:14:31.000Z
2021-12-15T07:43:29.000Z
scripts/wk/cfg/log.py
2Shirt/WizardK
82a2e7f85c80a52f892c1553e7a45ec0174e7bc6
[ "MIT" ]
1
2017-11-17T19:32:36.000Z
2017-11-17T19:32:36.000Z
"""WizardKit: Config - Log""" # vim: sts=2 sw=2 ts=2 DEBUG = { 'level': 'DEBUG', 'format': '[%(asctime)s %(levelname)s] [%(name)s.%(funcName)s] %(message)s', 'datefmt': '%Y-%m-%d %H%M%S%z', } DEFAULT = { 'level': 'INFO', 'format': '[%(asctime)s %(levelname)s] %(message)s', 'datefmt': '%Y-%m-%d %H%M%z', ...
21.578947
78
0.55122
DEBUG = { 'level': 'DEBUG', 'format': '[%(asctime)s %(levelname)s] [%(name)s.%(funcName)s] %(message)s', 'datefmt': '%Y-%m-%d %H%M%S%z', } DEFAULT = { 'level': 'INFO', 'format': '[%(asctime)s %(levelname)s] %(message)s', 'datefmt': '%Y-%m-%d %H%M%z', } if __name__ == '__main__': print("This file ...
true
true
f724b08ac071745f08342d655971d0e5d1d90152
10,921
py
Python
tests/system/test_integration.py
kaiyan-sheng/apm-server
fe1db82a1043508088e5db7c057b84b1e3ce474f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/system/test_integration.py
kaiyan-sheng/apm-server
fe1db82a1043508088e5db7c057b84b1e3ce474f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/system/test_integration.py
kaiyan-sheng/apm-server
fe1db82a1043508088e5db7c057b84b1e3ce474f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import time from apmserver import integration_test from apmserver import ClientSideBaseTest, ElasticTest, ExpvarBaseTest, ProcStartupFailureTest from helper import wait_until from es_helper import index_metric, index_transaction, index_error, index_span, index_onboarding, index_name @integration_test class Test(Elas...
42.996063
108
0.597839
import time from apmserver import integration_test from apmserver import ClientSideBaseTest, ElasticTest, ExpvarBaseTest, ProcStartupFailureTest from helper import wait_until from es_helper import index_metric, index_transaction, index_error, index_span, index_onboarding, index_name @integration_test class Test(Elas...
true
true
f724b0962b84b5c8a44fd19d50552d5624391c1e
1,408
py
Python
bcs-ui/backend/tests/container_service/observability/log_stream/test_utils.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
599
2019-06-25T03:20:46.000Z
2022-03-31T12:14:33.000Z
bcs-ui/backend/tests/container_service/observability/log_stream/test_utils.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
537
2019-06-27T06:03:44.000Z
2022-03-31T12:10:01.000Z
bcs-ui/backend/tests/container_service/observability/log_stream/test_utils.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
214
2019-06-25T03:26:05.000Z
2022-03-31T07:52:03.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
41.411765
115
0.757102
from backend.container_service.observability.log_stream import utils def test_refine_k8s_logs(log_content): logs = utils.refine_k8s_logs(log_content, None) assert len(logs) == 10 assert logs[0].time == '2021-05-19T12:03:52.516011121Z' def test_calc_since_time(log_content): logs = utils.refine_k8s_l...
true
true
f724b0ddd809230cda004541ff8a28dab8b18b75
1,462
py
Python
python/logs/example-logging.py
jgordo04/housinginsights_temp
588e912de31b7f50f7239af0bd4dfeaa693616bd
[ "MIT" ]
null
null
null
python/logs/example-logging.py
jgordo04/housinginsights_temp
588e912de31b7f50f7239af0bd4dfeaa693616bd
[ "MIT" ]
null
null
null
python/logs/example-logging.py
jgordo04/housinginsights_temp
588e912de31b7f50f7239af0bd4dfeaa693616bd
[ "MIT" ]
null
null
null
import logging #Configure logging logging_filename = "../logs/example.log" logging.basicConfig(filename=logging_filename, level=logging.DEBUG) #---------------- # Example logging #---------------- # When you are writing code, instead of using the 'print' statement (which only # is shown on the command line), you can...
44.30303
116
0.725718
import logging logging_filename = "../logs/example.log" logging.basicConfig(filename=logging_filename, level=logging.DEBUG) # They will be recreated next time you start the program. # To see logging in action, run this file and then look in the newly created example.log file # Every time you re-run th...
true
true
f724b12ab738483eea567de9687c75d90ba7a949
788
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLX/NV/multigpu_context.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLX/NV/multigpu_context.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLX/NV/multigpu_context.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''OpenGL extension NV.multigpu_context This module customises the behaviour of the OpenGL.raw.GLX.NV.multigpu_context to provide a more Python-friendly API The official definition of this extension is available here: http://www.opengl.org/registry/specs/NV/multigpu_context.txt ''' from OpenGL import platf...
34.26087
72
0.785533
from OpenGL import platform, constant, arrays from OpenGL import extensions, wrapper import ctypes from OpenGL.raw.GLX import _types, _glgets from OpenGL.raw.GLX.NV.multigpu_context import * from OpenGL.raw.GLX.NV.multigpu_context import _EXTENSION_NAME def glInitMultigpuContextNV(): from OpenGL import ext...
true
true
f724b18933f6ba44d5bf81c468e375a0ec86b207
2,314
py
Python
creategroup.py
vnitinv/JChat
a6fee1b8cb07f8ed4bcda404e0519e0e580646da
[ "Apache-2.0" ]
3
2016-04-20T01:33:32.000Z
2016-07-19T12:24:27.000Z
creategroup.py
vnitinv/JChat
a6fee1b8cb07f8ed4bcda404e0519e0e580646da
[ "Apache-2.0" ]
null
null
null
creategroup.py
vnitinv/JChat
a6fee1b8cb07f8ed4bcda404e0519e0e580646da
[ "Apache-2.0" ]
null
null
null
from PyQt4 import QtCore, QtGui from boxes import ConnectedDevice try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(s): return s try: _encoding = QtGui.QApplication.UnicodeUTF8 def _translate(context, text, disambig): return QtGui.QApplication.translate(cont...
43.660377
108
0.723423
from PyQt4 import QtCore, QtGui from boxes import ConnectedDevice try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(s): return s try: _encoding = QtGui.QApplication.UnicodeUTF8 def _translate(context, text, disambig): return QtGui.QApplication.translate(cont...
true
true
f724b33b9c2842b58bfecbe90baa6d08d858641f
201
py
Python
test.py
komireddys/Python_flask
c2e9747064f4b1a4b6d79f729d8ab1ec62e0d706
[ "MIT" ]
null
null
null
test.py
komireddys/Python_flask
c2e9747064f4b1a4b6d79f729d8ab1ec62e0d706
[ "MIT" ]
null
null
null
test.py
komireddys/Python_flask
c2e9747064f4b1a4b6d79f729d8ab1ec62e0d706
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "<h1>Welcome to Python Flask App!</h1> <p1>hello this sample page</p1>" if __name__ == "__main__": app.run()
20.1
82
0.656716
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "<h1>Welcome to Python Flask App!</h1> <p1>hello this sample page</p1>" if __name__ == "__main__": app.run()
true
true
f724b3e43741d780155776413bbee552df6dfdf4
3,183
py
Python
optax/_src/constrain.py
VE-FORBRYDERNE/optax
0d5421240cc7d4bf18fbed44fc5e5e2382a6e884
[ "Apache-2.0" ]
null
null
null
optax/_src/constrain.py
VE-FORBRYDERNE/optax
0d5421240cc7d4bf18fbed44fc5e5e2382a6e884
[ "Apache-2.0" ]
null
null
null
optax/_src/constrain.py
VE-FORBRYDERNE/optax
0d5421240cc7d4bf18fbed44fc5e5e2382a6e884
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 DeepMind Technologies Limited. 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 ...
32.814433
80
0.723217
from typing import Any, NamedTuple import jax import jax.numpy as jnp from optax._src import base NonNegativeParamsState = base.EmptyState def keep_params_nonnegative() -> base.GradientTransformation: def init_fn(_): return NonNegativeParamsState() def update_fn(updates, state, params):...
true
true
f724b40a71f16bb470b2cc5786eac0d4c6031f53
20,284
py
Python
tests/auth/test_init.py
JariInc/home-assistant
24a8d60566fb5cf62942d042d38965a705d1bc65
[ "Apache-2.0" ]
null
null
null
tests/auth/test_init.py
JariInc/home-assistant
24a8d60566fb5cf62942d042d38965a705d1bc65
[ "Apache-2.0" ]
null
null
null
tests/auth/test_init.py
JariInc/home-assistant
24a8d60566fb5cf62942d042d38965a705d1bc65
[ "Apache-2.0" ]
3
2018-09-14T07:34:09.000Z
2018-09-29T12:57:10.000Z
"""Tests for the Home Assistant auth module.""" from datetime import timedelta from unittest.mock import Mock, patch import pytest from homeassistant import auth, data_entry_flow from homeassistant.auth import ( models as auth_models, auth_store, const as auth_const) from homeassistant.auth.mfa_modules import SES...
31.793103
78
0.622215
from datetime import timedelta from unittest.mock import Mock, patch import pytest from homeassistant import auth, data_entry_flow from homeassistant.auth import ( models as auth_models, auth_store, const as auth_const) from homeassistant.auth.mfa_modules import SESSION_EXPIRATION from homeassistant.util import d...
true
true
f724b4c6733fdd2f61ff3c2a9eaddf0e2852a32c
1,262
py
Python
1200-1300q/1266.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
990
2018-06-05T11:49:22.000Z
2022-03-31T08:59:17.000Z
1200-1300q/1266.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
1
2021-11-01T01:29:38.000Z
2021-11-01T01:29:38.000Z
1200-1300q/1266.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
482
2018-06-12T22:16:53.000Z
2022-03-29T00:23:29.000Z
''' On a plane there are n points with integer coordinates points[i] = [xi, yi]. Your task is to find the minimum time in seconds to visit all points. You can move according to the next rules: In one second always you can either move vertically, horizontally by one unit or diagonally (it means to move one unit vertic...
30.780488
171
0.616482
class Solution(object): def minTimeToVisitAllPoints(self, points): if not points: return 0 result = 0 for index in range(1, len(points)): result += max(abs(points[index][0]-points[index-1][0]), abs(points[index][1]-points[index-1][1])) return result
true
true
f724b5246de70e1ed75d10855245cd87b8034692
2,628
py
Python
app/selenium_ui/jira_ui.py
Unleash/jira-performance-tests
3c84d65cbf70e2db5ea4c1af303d6dab4a218771
[ "Apache-2.0" ]
null
null
null
app/selenium_ui/jira_ui.py
Unleash/jira-performance-tests
3c84d65cbf70e2db5ea4c1af303d6dab4a218771
[ "Apache-2.0" ]
null
null
null
app/selenium_ui/jira_ui.py
Unleash/jira-performance-tests
3c84d65cbf70e2db5ea4c1af303d6dab4a218771
[ "Apache-2.0" ]
null
null
null
from selenium_ui.jira import modules from extension.jira import extension_ui # noqa F401 # this action should be the first one def test_0_selenium_a_login(jira_webdriver, jira_datasets, jira_screen_shots): modules.login(jira_webdriver, jira_datasets) def test_1_selenium_browse_projects_list(jira_webdriver, jir...
38.086957
102
0.847412
from selenium_ui.jira import modules from extension.jira import extension_ui def test_0_selenium_a_login(jira_webdriver, jira_datasets, jira_screen_shots): modules.login(jira_webdriver, jira_datasets) def test_1_selenium_browse_projects_list(jira_webdriver, jira_datasets, jira_screen_shots): modules.brow...
true
true
f724b67a605f31ce4eecd96e689074ae628c81ea
12,486
py
Python
mailchimp3/entities/lists.py
MyMusicTaste/async-python-mailchimp
10a53dc6f1406fa23abca89da142a51e123dd966
[ "MIT" ]
9
2018-05-15T06:49:26.000Z
2020-12-20T13:43:56.000Z
mailchimp3/entities/lists.py
MyMusicTaste/async-python-mailchimp
10a53dc6f1406fa23abca89da142a51e123dd966
[ "MIT" ]
null
null
null
mailchimp3/entities/lists.py
MyMusicTaste/async-python-mailchimp
10a53dc6f1406fa23abca89da142a51e123dd966
[ "MIT" ]
null
null
null
# coding=utf-8 """ The Lists API endpoint Documentation: http://developer.mailchimp.com/documentation/mailchimp/reference/lists/ Schema: https://api.mailchimp.com/schema/3.0/Lists/Instance.json """ from __future__ import unicode_literals from mailchimp3.baseapi import BaseApi from mailchimp3.entities.listabusereports...
44.276596
117
0.614448
from __future__ import unicode_literals from mailchimp3.baseapi import BaseApi from mailchimp3.entities.listabusereports import ListAbuseReports from mailchimp3.entities.listactivity import ListActivity from mailchimp3.entities.listclients import ListClients from mailchimp3.entities.listgrowthhistory import ListGrowt...
true
true
f724b6f57b0beae0774790afba29b953900b5714
58,559
py
Python
pilotnet/viz_gamepy.py
Pronton2001/carla_pilotnet
813ca14e04eccd405fde5fff350fe23c6ada5657
[ "MIT" ]
null
null
null
pilotnet/viz_gamepy.py
Pronton2001/carla_pilotnet
813ca14e04eccd405fde5fff350fe23c6ada5657
[ "MIT" ]
null
null
null
pilotnet/viz_gamepy.py
Pronton2001/carla_pilotnet
813ca14e04eccd405fde5fff350fe23c6ada5657
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. # Allows controlling a vehicle with a keyboard. For a simpler and more # docu...
43.409192
146
0.54878
from __future__ import print_function import glob import os import sys try: sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % ( sys.version_info.major, sys.version_info.minor, 'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0]) except IndexError: pa...
true
true
f724b704c5f9a3e24eab2468a1fc1abdf02661db
3,636
py
Python
geist/backends/_x11_common.py
kebarr/Geist
9bda3bc4e11ef06ebf8cb7c2b0ecd666ef40491a
[ "MIT" ]
5
2015-05-01T15:58:48.000Z
2017-04-19T03:38:25.000Z
geist/backends/_x11_common.py
tonysimpson/Geist
a1ef16d8b4c3777735008b671a50acfde3ce7bf1
[ "MIT" ]
1
2016-08-05T17:05:02.000Z
2016-08-05T17:05:02.000Z
geist/backends/_x11_common.py
tonysimpson/Geist
a1ef16d8b4c3777735008b671a50acfde3ce7bf1
[ "MIT" ]
2
2016-09-27T13:45:31.000Z
2017-05-21T14:08:57.000Z
from __future__ import division, absolute_import, print_function from ooxcb.protocol import ( xtest, ) from ooxcb.constant import ( ButtonPress, ButtonRelease, KeyPress, KeyRelease, MotionNotify ) import ooxcb from ooxcb.keysymdef import keysyms import subprocess import os from ._common import ...
28.186047
79
0.59791
from __future__ import division, absolute_import, print_function from ooxcb.protocol import ( xtest, ) from ooxcb.constant import ( ButtonPress, ButtonRelease, KeyPress, KeyRelease, MotionNotify ) import ooxcb from ooxcb.keysymdef import keysyms import subprocess import os from ._common import ...
true
true
f724b7df3714254f6a67ad6934798425f668dd4c
565
bzl
Python
src/test/java/com/google/devtools/build/skydoc/testdata/java_basic_test/input.bzl
ArielleA/bazel
f7be80e47445a1ddf301b1af0dda2f97b5a271ad
[ "Apache-2.0" ]
null
null
null
src/test/java/com/google/devtools/build/skydoc/testdata/java_basic_test/input.bzl
ArielleA/bazel
f7be80e47445a1ddf301b1af0dda2f97b5a271ad
[ "Apache-2.0" ]
null
null
null
src/test/java/com/google/devtools/build/skydoc/testdata/java_basic_test/input.bzl
ArielleA/bazel
f7be80e47445a1ddf301b1af0dda2f97b5a271ad
[ "Apache-2.0" ]
null
null
null
def exercise_the_api(): var1 = java_common.JavaRuntimeInfo var2 = JavaInfo var3 = java_proto_common exercise_the_api() def my_rule_impl(ctx): return struct() java_related_rule = rule( implementation = my_rule_impl, doc = "This rule does java-related things.", attrs = { "first": a...
25.681818
86
0.656637
def exercise_the_api(): var1 = java_common.JavaRuntimeInfo var2 = JavaInfo var3 = java_proto_common exercise_the_api() def my_rule_impl(ctx): return struct() java_related_rule = rule( implementation = my_rule_impl, doc = "This rule does java-related things.", attrs = { "first": a...
true
true
f724b8126766f5f31898fdfe933c66db94b09011
18,759
py
Python
rootfs/usr/lib/python3/dist-packages/numpy/polynomial/tests/test_chebyshev.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python3/dist-packages/numpy/polynomial/tests/test_chebyshev.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python3/dist-packages/numpy/polynomial/tests/test_chebyshev.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
"""Tests for chebyshev module. """ import numpy as np import numpy.polynomial.chebyshev as ch from numpy.testing import * def trim(x) : return ch.chebtrim(x, tol=1e-6) T0 = [ 1] T1 = [ 0, 1] T2 = [-1, 0, 2] T3 = [ 0, -3, 0, 4] T4 = [ 1, 0, -8, 0, 8] T5 = [ 0, 5, 0, -20, 0, 16] T6 = [-1,...
32.85289
74
0.504824
import numpy as np import numpy.polynomial.chebyshev as ch from numpy.testing import * def trim(x) : return ch.chebtrim(x, tol=1e-6) T0 = [ 1] T1 = [ 0, 1] T2 = [-1, 0, 2] T3 = [ 0, -3, 0, 4] T4 = [ 1, 0, -8, 0, 8] T5 = [ 0, 5, 0, -20, 0, 16] T6 = [-1, 0, 18, 0, -48, 0, 32] T7 ...
true
true
f724b89350fc66e26a9bf5bea0145e663b49d42f
379
py
Python
sandbox/team_members/pudumula/ros/gazebo_ws_1/build/rrbot_gazebo/catkin_generated/pkg.installspace.context.pc.py
Project-Heisenberg/quantum
f3ad8f4693007e45e80a88f928273adcfdc8529d
[ "Apache-2.0" ]
1
2017-04-23T14:23:54.000Z
2017-04-23T14:23:54.000Z
sandbox/team_members/pudumula/ros/gazebo_ws_1/build/rrbot_gazebo/catkin_generated/pkg.installspace.context.pc.py
Project-Heisenberg/quantum
f3ad8f4693007e45e80a88f928273adcfdc8529d
[ "Apache-2.0" ]
13
2016-03-25T05:15:17.000Z
2018-05-30T15:53:12.000Z
sandbox/team_members/pudumula/ros/gazebo_ws_1/build/rrbot_gazebo/catkin_generated/pkg.installspace.context.pc.py
Project-Heisenberg/quantum
f3ad8f4693007e45e80a88f928273adcfdc8529d
[ "Apache-2.0" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "rrbot_gazebo" PROJECT_SPACE_DIR = "/h...
42.111111
68
0.707124
CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "rrbot_gazebo" PROJECT_SPACE_DIR = "/home/neo/ros/gazebo_ws_1/install" PROJECT_VERSION = "0.1....
true
true
f724b89596ee0599327fb7ccded8ba2067f2a7b5
597
py
Python
cashflow/utils.py
wg-git/cashflow-contract
e08b175113e7bdcd0089dd7a0d0432a73a83a724
[ "MIT" ]
1
2018-04-05T13:14:26.000Z
2018-04-05T13:14:26.000Z
cashflow/utils.py
wg-git/cashflow-contract
e08b175113e7bdcd0089dd7a0d0432a73a83a724
[ "MIT" ]
null
null
null
cashflow/utils.py
wg-git/cashflow-contract
e08b175113e7bdcd0089dd7a0d0432a73a83a724
[ "MIT" ]
1
2018-07-23T15:05:05.000Z
2018-07-23T15:05:05.000Z
from boa.blockchain.vm.Neo.Blockchain import GetHeight, GetHeader from boa.blockchain.vm.Neo.Header import GetTimestamp, GetConsensusData from boa.blockchain.vm.Neo.Runtime import Log from boa.code.builtins import concat, list, range, take, substr def blockTimeStamp(): current_height = GetHeight() c...
22.111111
75
0.757119
from boa.blockchain.vm.Neo.Blockchain import GetHeight, GetHeader from boa.blockchain.vm.Neo.Header import GetTimestamp, GetConsensusData from boa.blockchain.vm.Neo.Runtime import Log from boa.code.builtins import concat, list, range, take, substr def blockTimeStamp(): current_height = GetHeight() c...
true
true
f724b8e8834118693a545cb670d7b52bbf2cbbeb
209
py
Python
PyCharm/3.py
LazarevaDarya/work5
77c29c3453e81995f36c176bb74a610313b882e0
[ "MIT" ]
null
null
null
PyCharm/3.py
LazarevaDarya/work5
77c29c3453e81995f36c176bb74a610313b882e0
[ "MIT" ]
null
null
null
PyCharm/3.py
LazarevaDarya/work5
77c29c3453e81995f36c176bb74a610313b882e0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- if __name__ == '__main__': m = int n = int(input("Value of n? ")) for i in range(1, int(n / 2) + 1): if n % i == 0: print(i)
14.928571
38
0.449761
if __name__ == '__main__': m = int n = int(input("Value of n? ")) for i in range(1, int(n / 2) + 1): if n % i == 0: print(i)
true
true
f724b9955f815b8ade788558ec0d789cd6cf0ddc
15,387
py
Python
tests/automation_framework/src/utilities/submit_request_utility.py
anjalirx-intel/avalon
5efd20612948a324b8a393bfe22872aeb8527097
[ "Apache-2.0" ]
null
null
null
tests/automation_framework/src/utilities/submit_request_utility.py
anjalirx-intel/avalon
5efd20612948a324b8a393bfe22872aeb8527097
[ "Apache-2.0" ]
null
null
null
tests/automation_framework/src/utilities/submit_request_utility.py
anjalirx-intel/avalon
5efd20612948a324b8a393bfe22872aeb8527097
[ "Apache-2.0" ]
null
null
null
import logging import json import time import os import config.config as pconfig import env from avalon_sdk.connector.direct.jrpc.jrpc_worker_registry import \ JRPCWorkerRegistryImpl from avalon_sdk.connector.direct.jrpc.jrpc_work_order import \ JRPCWorkOrderImpl from avalon_sdk.worker.worker_details import \ ...
39.966234
94
0.682394
import logging import json import time import os import config.config as pconfig import env from avalon_sdk.connector.direct.jrpc.jrpc_worker_registry import \ JRPCWorkerRegistryImpl from avalon_sdk.connector.direct.jrpc.jrpc_work_order import \ JRPCWorkOrderImpl from avalon_sdk.worker.worker_details import \ ...
true
true
f724badd51da8585ae02ba905411f8a5bc0b42c6
7,728
py
Python
pandas/tests/indexes/timedeltas/test_timedelta.py
hkennyv/pandas
31875eb3d8a56f359c2f529f86b867572d5dfeb1
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2020-04-26T22:11:21.000Z
2020-04-26T22:11:21.000Z
pandas/tests/indexes/timedeltas/test_timedelta.py
hkennyv/pandas
31875eb3d8a56f359c2f529f86b867572d5dfeb1
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/indexes/timedeltas/test_timedelta.py
hkennyv/pandas
31875eb3d8a56f359c2f529f86b867572d5dfeb1
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2020-06-19T11:52:05.000Z
2020-06-19T11:52:05.000Z
from datetime import timedelta import numpy as np import pytest import pandas as pd from pandas import ( DataFrame, Index, Int64Index, Series, Timedelta, TimedeltaIndex, array, date_range, timedelta_range, ) import pandas._testing as tm from ..datetimelike import DatetimeLike ran...
31.672131
88
0.601708
from datetime import timedelta import numpy as np import pytest import pandas as pd from pandas import ( DataFrame, Index, Int64Index, Series, Timedelta, TimedeltaIndex, array, date_range, timedelta_range, ) import pandas._testing as tm from ..datetimelike import DatetimeLike ran...
true
true
f724bb27bccc8713b9577f3921f30f709db72e74
476
py
Python
week05/server/week06lab2.py
tullowhurler/datarep
38b145d9a49c1b29c02597381de93bbac4a7edae
[ "Apache-2.0" ]
null
null
null
week05/server/week06lab2.py
tullowhurler/datarep
38b145d9a49c1b29c02597381de93bbac4a7edae
[ "Apache-2.0" ]
null
null
null
week05/server/week06lab2.py
tullowhurler/datarep
38b145d9a49c1b29c02597381de93bbac4a7edae
[ "Apache-2.0" ]
null
null
null
import requests import json #html = '<h1>hello world</h1>This is html' f = open("../../week05/carviewer.html", "r") html = f.read() #print (html) apiKey = '46ceed910c24ff7cce8240e89ec7b71912f6f40f2ec55fd217ce150a d6d4f1c4' url = 'https://api.html2pdf.app/v1/generate' data = {'html': html,'apiKey': apiKey}...
28
77
0.707983
import requests import json f = open("../../week05/carviewer.html", "r") html = f.read() apiKey = '46ceed910c24ff7cce8240e89ec7b71912f6f40f2ec55fd217ce150a d6d4f1c4' url = 'https://api.html2pdf.app/v1/generate' data = {'html': html,'apiKey': apiKey} response = requests.post(url, json=data) print (respon...
true
true
f724bb485ff4b58748536534ebf2f5897e7eed1f
2,258
py
Python
azext_iot/__init__.py
YingXue/azure-iot-cli-extension
efe7897b1ae1d2a9953f501abe7654b84d69372d
[ "MIT" ]
79
2017-09-25T19:29:17.000Z
2022-03-30T20:55:57.000Z
azext_iot/__init__.py
YingXue/azure-iot-cli-extension
efe7897b1ae1d2a9953f501abe7654b84d69372d
[ "MIT" ]
305
2018-01-17T01:12:10.000Z
2022-03-23T22:38:11.000Z
azext_iot/__init__.py
YingXue/azure-iot-cli-extension
efe7897b1ae1d2a9953f501abe7654b84d69372d
[ "MIT" ]
69
2017-11-14T00:30:46.000Z
2022-03-01T17:11:45.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. # -----------------------------------------------------...
39.614035
94
0.712578
from azure.cli.core import AzCommandsLoader from azure.cli.core.commands import CliCommandType from azext_iot._factory import iot_service_provisioning_factory from azext_iot.constants import VERSION import azext_iot._help from azext_iot.product.command_map import load_product_commands iothub_ops = CliCommandT...
true
true
f724bc1d7c934473af2dfd10b1805761e9c49da5
97
py
Python
Coursera_HSE_Py_Ass-5.4-Stairs.py
YuriRevin/Coursera_HSE_Py_Ass-5.4-Stairs
a6327a94c4b65fc75e3d99475e27464c85df0185
[ "MIT" ]
null
null
null
Coursera_HSE_Py_Ass-5.4-Stairs.py
YuriRevin/Coursera_HSE_Py_Ass-5.4-Stairs
a6327a94c4b65fc75e3d99475e27464c85df0185
[ "MIT" ]
null
null
null
Coursera_HSE_Py_Ass-5.4-Stairs.py
YuriRevin/Coursera_HSE_Py_Ass-5.4-Stairs
a6327a94c4b65fc75e3d99475e27464c85df0185
[ "MIT" ]
null
null
null
for i in range(int(input())): for a in range(1, i + 2): print(a, end='') print()
19.4
29
0.484536
for i in range(int(input())): for a in range(1, i + 2): print(a, end='') print()
true
true
f724bcbe159f2f3f6bd41ab81d7cfc844b8fbfab
10,961
bzl
Python
internal/pkg_npm/pkg_npm.bzl
mr-tim/rules_nodejs
7648412d96828875343b0d9c74ddf4d7531eed72
[ "Apache-2.0" ]
1
2020-10-25T10:29:06.000Z
2020-10-25T10:29:06.000Z
internal/pkg_npm/pkg_npm.bzl
samschlegel/rules_nodejs
21836475c2294476a5a792d5fb0ee3e713f7c6fe
[ "Apache-2.0" ]
8
2021-03-11T00:12:31.000Z
2022-02-27T07:35:43.000Z
internal/pkg_npm/pkg_npm.bzl
samschlegel/rules_nodejs
21836475c2294476a5a792d5fb0ee3e713f7c6fe
[ "Apache-2.0" ]
null
null
null
"""npm packaging Note, this is intended for sharing library code with non-Bazel consumers. If all users of your library code use Bazel, they should just add your library to the `deps` of one of their targets. """ load("//:providers.bzl", "DeclarationInfo", "JSNamedModuleInfo", "LinkablePackageInfo", "NodeContextInfo...
36.055921
136
0.684609
load("//:providers.bzl", "DeclarationInfo", "JSNamedModuleInfo", "LinkablePackageInfo", "NodeContextInfo") _DOC = """The pkg_npm rule creates a directory containing a publishable npm artifact. Example: ```python load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm") pkg_npm( name = "my_package", srcs = [...
true
true
f724bd849c4133d14569f85a315c436a9c3794b3
3,021
py
Python
cosmo_tester/test_suites/cluster/cluster_to_aio_agents_migration_test.py
Ilanad/cloudify-system-tests
acb31f28fade27f118c6a6c528a080376f24ca46
[ "Apache-2.0" ]
10
2016-06-26T11:05:57.000Z
2021-11-04T11:51:50.000Z
cosmo_tester/test_suites/cluster/cluster_to_aio_agents_migration_test.py
Ilanad/cloudify-system-tests
acb31f28fade27f118c6a6c528a080376f24ca46
[ "Apache-2.0" ]
89
2015-03-19T06:20:26.000Z
2022-01-31T09:23:35.000Z
cosmo_tester/test_suites/cluster/cluster_to_aio_agents_migration_test.py
Ilanad/cloudify-system-tests
acb31f28fade27f118c6a6c528a080376f24ca46
[ "Apache-2.0" ]
19
2015-01-21T17:13:07.000Z
2021-06-07T08:09:51.000Z
from os.path import join import pytest from cosmo_tester.test_suites.agent import validate_agent from cosmo_tester.framework.examples import get_example_deployment from cosmo_tester.test_suites.snapshots import ( create_copy_and_restore_snapshot, ) @pytest.mark.four_vms def test_migrate_agents_cluster_to_aio( ...
35.541176
74
0.71996
from os.path import join import pytest from cosmo_tester.test_suites.agent import validate_agent from cosmo_tester.framework.examples import get_example_deployment from cosmo_tester.test_suites.snapshots import ( create_copy_and_restore_snapshot, ) @pytest.mark.four_vms def test_migrate_agents_cluster_to_aio( ...
true
true
f724be57c123ae69e82f64587350fa4ee8ad8e02
44,331
py
Python
python/test/feature_extractor_test.py
da2x/vmaf
8ba4a4b84beb40f97fa01d902e45dde69b18b517
[ "BSD-2-Clause-Patent" ]
null
null
null
python/test/feature_extractor_test.py
da2x/vmaf
8ba4a4b84beb40f97fa01d902e45dde69b18b517
[ "BSD-2-Clause-Patent" ]
null
null
null
python/test/feature_extractor_test.py
da2x/vmaf
8ba4a4b84beb40f97fa01d902e45dde69b18b517
[ "BSD-2-Clause-Patent" ]
null
null
null
from __future__ import absolute_import import os import unittest import re from vmaf.config import VmafConfig from vmaf.core.feature_extractor import VmafFeatureExtractor, \ MomentFeatureExtractor, \ PsnrFeatureExtractor, SsimFeatureExtractor, MsSsimFeatureExtractor, \ VifFrameDifferenceFeatureExtractor, ...
60.561475
182
0.730121
from __future__ import absolute_import import os import unittest import re from vmaf.config import VmafConfig from vmaf.core.feature_extractor import VmafFeatureExtractor, \ MomentFeatureExtractor, \ PsnrFeatureExtractor, SsimFeatureExtractor, MsSsimFeatureExtractor, \ VifFrameDifferenceFeatureExtractor, ...
true
true
f724bec965759ccd317b2b385268f2ab47cb4ab2
1,838
py
Python
scripts/convert_protocols_to_exams.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
null
null
null
scripts/convert_protocols_to_exams.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
1
2022-02-17T20:28:19.000Z
2022-02-17T20:28:19.000Z
scripts/convert_protocols_to_exams.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json from pathlib import Path def get_valid_file_path(file_path: str) -> Path: """Check if file exists and return valid Path object""" path = Path(file_path).resolve() if not path.is_file(): raise Exception("No file found! Please check your path and try again.") ...
31.689655
107
0.654516
import json from pathlib import Path def get_valid_file_path(file_path: str) -> Path: path = Path(file_path).resolve() if not path.is_file(): raise Exception("No file found! Please check your path and try again.") return path def convert_data(data: list) -> list: print(f"Found {len(data)...
true
true
f724bf1ecded89830c078e1879e035935da3e2ed
6,858
py
Python
doc/user-manual/conf.py
phadej/agda
2fa8ede09451d43647f918dbfb24ff7b27c52edc
[ "BSD-3-Clause" ]
null
null
null
doc/user-manual/conf.py
phadej/agda
2fa8ede09451d43647f918dbfb24ff7b27c52edc
[ "BSD-3-Clause" ]
null
null
null
doc/user-manual/conf.py
phadej/agda
2fa8ede09451d43647f918dbfb24ff7b27c52edc
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
31.897674
79
0.681248
project = 'Agda' copyright = u'''2005-2018 remains with the authors. Agda 2 was originally written by Ulf Norell, partially based on code from Agda 1 by Catarina Coquand and Makoto Takeyama, and from Agdalight by Ulf Norell and Andreas Abel. Agda 2 is currently actively developed mainly by Andreas...
true
true
f724bf3443b15e4d6d7686f56cce4260cbc558a0
460
py
Python
fma/analyze.py
adipasquale/frontmatter-analysis
068b8870ee35569a81600f637569ad589087e2a8
[ "MIT" ]
null
null
null
fma/analyze.py
adipasquale/frontmatter-analysis
068b8870ee35569a81600f637569ad589087e2a8
[ "MIT" ]
null
null
null
fma/analyze.py
adipasquale/frontmatter-analysis
068b8870ee35569a81600f637569ad589087e2a8
[ "MIT" ]
null
null
null
import pandas as pd import os from pathlib import Path import frontmatter import argparse if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("path", help="path containing .md files") args = parser.parse_args() data = [frontmatter.load(path).metadata for path in Path(args...
28.75
85
0.702174
import pandas as pd import os from pathlib import Path import frontmatter import argparse if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("path", help="path containing .md files") args = parser.parse_args() data = [frontmatter.load(path).metadata for path in Path(args...
true
true
f724bf5a11fa8d7fe68f54b4735fe3d897c56f22
499
py
Python
python2/main.py
miptleha/bubble-sort
bae2212e80333de343e85c72c0ceef17136e88d5
[ "MIT" ]
null
null
null
python2/main.py
miptleha/bubble-sort
bae2212e80333de343e85c72c0ceef17136e88d5
[ "MIT" ]
null
null
null
python2/main.py
miptleha/bubble-sort
bae2212e80333de343e85c72c0ceef17136e88d5
[ "MIT" ]
null
null
null
import time def getMaxSubSum(a): s = 0 s1 = s for i in range(0, n): s += a[i] s1 = max(s1, s) if (s < 0): s = 0; return s1 n = 10000 a = [] for i in range(0, n): a.append(pow(-1, i) * i) #for i in range(0, n): # print(a[i], " ") #print(); start = time.pe...
17.206897
46
0.478958
import time def getMaxSubSum(a): s = 0 s1 = s for i in range(0, n): s += a[i] s1 = max(s1, s) if (s < 0): s = 0; return s1 n = 10000 a = [] for i in range(0, n): a.append(pow(-1, i) * i) start = time.perf_counter() res = 0; for i in range(0, n): a[0]...
true
true
f724bfa6d406a2deee8665a8e2f1df9aceed69c7
15,613
py
Python
fhirclient/r4models/chargeitemdefinition.py
cspears-mitre/CapStatement
2390566ed75d420e0615e3a0aacb77e8c030fdcc
[ "Apache-2.0" ]
1
2021-12-24T11:14:38.000Z
2021-12-24T11:14:38.000Z
fhirclient/r4models/chargeitemdefinition.py
cspears-mitre/CapStatement
2390566ed75d420e0615e3a0aacb77e8c030fdcc
[ "Apache-2.0" ]
null
null
null
fhirclient/r4models/chargeitemdefinition.py
cspears-mitre/CapStatement
2390566ed75d420e0615e3a0aacb77e8c030fdcc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 3.6.0-bd605d07 (http://hl7.org/fhir/StructureDefinition/ChargeItemDefinition) on 2018-12-20. # 2018, SMART Health IT. from . import domainresource class ChargeItemDefinition(domainresource.DomainResource): """ Definition of properties and ru...
38.173594
117
0.609172
from . import domainresource class ChargeItemDefinition(domainresource.DomainResource): resource_type = "ChargeItemDefinition" def __init__(self, jsondict=None, strict=True): self.applicability = None self.approvalDate = None ...
true
true
f724bfd76f144d7fb329df62913b3c4cd7da8450
1,114
py
Python
app.py
GonzalezGise/CaC-Python-Grupo-10-2167
e6e822ba17f9d2110ff41c2520f3b06a764ac0ed
[ "MIT" ]
1
2021-12-03T16:10:27.000Z
2021-12-03T16:10:27.000Z
app.py
GonzalezGise/CaC-Python-Grupo-10-2167
e6e822ba17f9d2110ff41c2520f3b06a764ac0ed
[ "MIT" ]
null
null
null
app.py
GonzalezGise/CaC-Python-Grupo-10-2167
e6e822ba17f9d2110ff41c2520f3b06a764ac0ed
[ "MIT" ]
5
2021-11-15T23:30:05.000Z
2021-11-30T13:10:59.000Z
# Crear una funcion que permita ingresar al usuario # Numero enteros... y strings... # 1- print -> imprime la lista que su fue cargando hasta el momento... # 2- append a -> siendo a numero entero # 3- remove b -> siendo b numero entero # 4- sort # 5- reverse # 6- insert c d -> siendo ambos numeros enteros c le indice y...
30.108108
72
0.633752
isRunning = True myList = [] while isRunning: userInput = input("Ingrese comando: ") command = userInput.split() if command[0] == "exit": isRunning = False elif command[0] == "append": argumentos = command[1] if argumentos.isdigit(): myList.append...
true
true
f724c14a74f53741ea1f5af11f5d2c8219bed97c
2,073
py
Python
contrib/devtools/check-doc.py
deyoonoo/bendos
5e161bda7006ccc78233415ac3881fde523a3fe6
[ "MIT" ]
null
null
null
contrib/devtools/check-doc.py
deyoonoo/bendos
5e161bda7006ccc78233415ac3881fde523a3fe6
[ "MIT" ]
null
null
null
contrib/devtools/check-doc.py
deyoonoo/bendos
5e161bda7006ccc78233415ac3881fde523a3fe6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' This checks if all command line args are documented. Return value is 0 to indicate no error. Author:...
43.1875
298
0.687892
from subprocess import check_output import re import sys FOLDER_GREP = 'src' FOLDER_TEST = 'src/test/' CMD_ROOT_DIR = '`git rev-parse --show-toplevel`/{}'.format(FOLDER_GREP) CMD_GREP_ARGS = r"egrep -r -I '(map(Multi)?Args(\.count\(|\[)|Get(Bool)?Arg\()\"\-[^\"]+?\"' {} | grep -v '{}'".format(CMD_ROOT_DIR, FOLDE...
true
true
f724c1f56a74845c221aa7a44ad661b8138463aa
3,255
py
Python
pkg/core/core.py
GarrettHaley/ida-cfp
b1fdef053c71b4cb6508291990fc01d95ad4895e
[ "MIT" ]
null
null
null
pkg/core/core.py
GarrettHaley/ida-cfp
b1fdef053c71b4cb6508291990fc01d95ad4895e
[ "MIT" ]
null
null
null
pkg/core/core.py
GarrettHaley/ida-cfp
b1fdef053c71b4cb6508291990fc01d95ad4895e
[ "MIT" ]
1
2020-05-14T20:04:31.000Z
2020-05-14T20:04:31.000Z
""" Defines `Core`. Instantiates the module-level logger with the appropriate naming convention. """ import logging from abc import ABC from interface.interface import Interface from astparser.astparser import AstParser from record.record import Record from exception.exception import NoFilesSpecifiedErr...
32.878788
73
0.651306
import logging from abc import ABC from interface.interface import Interface from astparser.astparser import AstParser from record.record import Record from exception.exception import NoFilesSpecifiedError LOGGER = logging.getLogger(__name__) class Core(ABC): def __init__(self) -> None: ...
true
true
f724c21e1e6a61b8d8f476e230c0c8957dd47917
919
py
Python
utillity/apicheck.py
dominik-air/lol-afk-buddy
b9e76336803922bd5f60dac33ec34f471eea3422
[ "MIT" ]
1
2021-10-11T23:02:19.000Z
2021-10-11T23:02:19.000Z
utillity/apicheck.py
dominik-air/lol-afk-buddy
b9e76336803922bd5f60dac33ec34f471eea3422
[ "MIT" ]
2
2022-02-04T20:32:18.000Z
2022-02-04T20:38:49.000Z
utillity/apicheck.py
dominik-air/lol-afk-buddy
b9e76336803922bd5f60dac33ec34f471eea3422
[ "MIT" ]
1
2022-02-05T15:12:15.000Z
2022-02-05T15:12:15.000Z
from lcu_driver import Connector import json connector = Connector() @connector.ready async def connect(connection): print("LCU API is ready to be used.") # check if the user is already logged into his account summoner = await connection.request("get", "/lol-summoner/v1/current-summoner") if summoner...
31.689655
90
0.638738
from lcu_driver import Connector import json connector = Connector() @connector.ready async def connect(connection): print("LCU API is ready to be used.") summoner = await connection.request("get", "/lol-summoner/v1/current-summoner") if summoner.status != 200: print( "Please log...
true
true
f724c2d13ac7970d0010056bcfbce749495e3f07
4,414
py
Python
pytorchvideo/models/memory_bank.py
kevinmtian/pytorchvideo
168e16859a6029ef8ebeb476f9163bebb6c6b87d
[ "Apache-2.0" ]
2,391
2021-04-13T18:10:18.000Z
2022-03-31T15:07:09.000Z
pytorchvideo/models/memory_bank.py
kevinmtian/pytorchvideo
168e16859a6029ef8ebeb476f9163bebb6c6b87d
[ "Apache-2.0" ]
156
2021-04-13T18:51:49.000Z
2022-03-31T08:05:50.000Z
pytorchvideo/models/memory_bank.py
kevinmtian/pytorchvideo
168e16859a6029ef8ebeb476f9163bebb6c6b87d
[ "Apache-2.0" ]
231
2021-04-14T05:04:55.000Z
2022-03-22T09:35:46.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import math from typing import Optional import torch import torch.nn as nn import torch.nn.functional as F from pytorchvideo.layers.utils import set_attributes class MemoryBank(nn.Module): """ Performs Non-Parametric Instance Discrimina...
38.719298
88
0.599909
import math from typing import Optional import torch import torch.nn as nn import torch.nn.functional as F from pytorchvideo.layers.utils import set_attributes class MemoryBank(nn.Module): def __init__( self, backbone: nn.Module, mlp: Optional[nn.Module] = None, neg_size: int =...
true
true
f724c36991439fd46c3b0dcb954ba15f7db2cfd6
2,255
py
Python
workbook/convert.py
hantongliu/BETTER-hacktron
37a919dd225970649cd9e7a58c74e2d8f0cca88c
[ "Apache-2.0" ]
null
null
null
workbook/convert.py
hantongliu/BETTER-hacktron
37a919dd225970649cd9e7a58c74e2d8f0cca88c
[ "Apache-2.0" ]
null
null
null
workbook/convert.py
hantongliu/BETTER-hacktron
37a919dd225970649cd9e7a58c74e2d8f0cca88c
[ "Apache-2.0" ]
1
2020-10-15T13:57:13.000Z
2020-10-15T13:57:13.000Z
import json prefix = "http://slipo.eu/id/poi" rdftype = "<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>" poi = "<http://slipo.eu/def#POI>" category = "<http://slipo.eu/def#category>" termPrefix = "http://slipo.eu/id/term" termValue = "<http://slipo.eu/def#termValue>" rdf = "" i = 0 hasGeometry = "<http://www.opengi...
35.793651
124
0.531264
import json prefix = "http://slipo.eu/id/poi" rdftype = "<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>" poi = "<http://slipo.eu/def#POI>" category = "<http://slipo.eu/def#category>" termPrefix = "http://slipo.eu/id/term" termValue = "<http://slipo.eu/def#termValue>" rdf = "" i = 0 hasGeometry = "<http://www.opengi...
true
true
f724c39610fa99418467816bbb09a2a24a283c11
776
py
Python
alpyro_msgs/tf2_msgs/tf2error.py
rho2/alpyro_msgs
b5a680976c40c83df70d61bb2db1de32a1cde8d3
[ "MIT" ]
1
2020-12-13T13:07:10.000Z
2020-12-13T13:07:10.000Z
alpyro_msgs/tf2_msgs/tf2error.py
rho2/alpyro_msgs
b5a680976c40c83df70d61bb2db1de32a1cde8d3
[ "MIT" ]
null
null
null
alpyro_msgs/tf2_msgs/tf2error.py
rho2/alpyro_msgs
b5a680976c40c83df70d61bb2db1de32a1cde8d3
[ "MIT" ]
null
null
null
from typing import Final from alpyro_msgs import RosMessage, string, uint8 class TF2Error(RosMessage): __msg_typ__ = "tf2_msgs/TF2Error" __msg_def__ = "dWludDggTk9fRVJST1I9MAp1aW50OCBMT09LVVBfRVJST1I9MQp1aW50OCBDT05ORUNUSVZJVFlfRVJST1I9Mgp1aW50OCBFWFRSQVBPTEFUSU9OX0VSUk9SPTMKdWludDggSU5WQUxJRF9BUkdVTUVOVF9FUlJPUj...
40.842105
290
0.837629
from typing import Final from alpyro_msgs import RosMessage, string, uint8 class TF2Error(RosMessage): __msg_typ__ = "tf2_msgs/TF2Error" __msg_def__ = "dWludDggTk9fRVJST1I9MAp1aW50OCBMT09LVVBfRVJST1I9MQp1aW50OCBDT05ORUNUSVZJVFlfRVJST1I9Mgp1aW50OCBFWFRSQVBPTEFUSU9OX0VSUk9SPTMKdWludDggSU5WQUxJRF9BUkdVTUVOVF9FUlJPUj...
true
true
f724c467f82e4312c2a73d80e60f4b58409440e2
4,977
py
Python
tests/contrib/operators/test_hive_to_dynamodb_operator.py
fxdmhtt/airflow
cf88f7bc7bbd3e9bf110e98f025759a96c130235
[ "Apache-2.0" ]
3
2019-03-28T05:59:39.000Z
2019-10-03T22:05:25.000Z
tests/contrib/operators/test_hive_to_dynamodb_operator.py
fxdmhtt/airflow
cf88f7bc7bbd3e9bf110e98f025759a96c130235
[ "Apache-2.0" ]
7
2019-03-27T07:58:14.000Z
2020-02-12T17:42:33.000Z
tests/contrib/operators/test_hive_to_dynamodb_operator.py
fxdmhtt/airflow
cf88f7bc7bbd3e9bf110e98f025759a96c130235
[ "Apache-2.0" ]
5
2017-06-19T19:55:47.000Z
2020-10-10T00:49:20.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
34.089041
103
0.625477
import json import unittest from unittest import mock import datetime import pandas as pd from airflow import DAG from airflow.contrib.hooks.aws_dynamodb_hook import AwsDynamoDBHook import airflow.contrib.operators.hive_to_dynamodb DEFAULT_DATE = datetime.datetime(2015, 1, 1) DEFAULT_DATE_ISO = ...
true
true
f724c73e2a3a025bfe20a3a8f316a5cc999fcf47
1,013
py
Python
dashboard/models.py
farahaulita/pbp-tk
fabf8e07ed0e1270d3e98a3d1bdd46267a1a4d6c
[ "Unlicense" ]
null
null
null
dashboard/models.py
farahaulita/pbp-tk
fabf8e07ed0e1270d3e98a3d1bdd46267a1a4d6c
[ "Unlicense" ]
null
null
null
dashboard/models.py
farahaulita/pbp-tk
fabf8e07ed0e1270d3e98a3d1bdd46267a1a4d6c
[ "Unlicense" ]
null
null
null
from django.db import models from login.models import User #add this from django.dispatch import receiver #add this from django.db.models.signals import post_save from datetime import datetime # SOURCE: https://www.ordinarycoders.com/django-custom-user-profile class Profile(models.Model): user = models.OneToOne...
38.961538
87
0.740375
from django.db import models from login.models import User from django.dispatch import receiver from django.db.models.signals import post_save from datetime import datetime class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) image = models.ImageField(default = 'undraw...
true
true
f724c7566d86613c348af51cc3a34cdf7fc5d540
97,191
py
Python
snmp/tests/test_profiles.py
onurdialpad/integrations-core
e718b52d5878b20ff161a3ee6f24e5e845102d91
[ "BSD-3-Clause" ]
null
null
null
snmp/tests/test_profiles.py
onurdialpad/integrations-core
e718b52d5878b20ff161a3ee6f24e5e845102d91
[ "BSD-3-Clause" ]
null
null
null
snmp/tests/test_profiles.py
onurdialpad/integrations-core
e718b52d5878b20ff161a3ee6f24e5e845102d91
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import logging import pytest from datadog_checks.base import ConfigurationError from datadog_checks.dev.utils import get_metadata_metrics from datadog_checks.snmp import SnmpCheck from datadog_checks.snmp.util...
40.546934
120
0.668066
import logging import pytest from datadog_checks.base import ConfigurationError from datadog_checks.dev.utils import get_metadata_metrics from datadog_checks.snmp import SnmpCheck from datadog_checks.snmp.utils import ( _get_profile_name, _is_abstract_profile, _iter_default_profile_file_paths, get_...
true
true
f724c766689f3310fcf1ff1658220beb097c094a
30,199
py
Python
Ingredient_Extractor/with_unknown_words_concideration/with_various_accuracies_on_first_layer/mean_values_1.py
ziko1305/Hidden-Markov-Based-Mathematical-Model
0ad906e6c4f99ad91d4047aed78df49399447633
[ "MIT" ]
null
null
null
Ingredient_Extractor/with_unknown_words_concideration/with_various_accuracies_on_first_layer/mean_values_1.py
ziko1305/Hidden-Markov-Based-Mathematical-Model
0ad906e6c4f99ad91d4047aed78df49399447633
[ "MIT" ]
null
null
null
Ingredient_Extractor/with_unknown_words_concideration/with_various_accuracies_on_first_layer/mean_values_1.py
ziko1305/Hidden-Markov-Based-Mathematical-Model
0ad906e6c4f99ad91d4047aed78df49399447633
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Aug 20 09:49:40 2020 @author: Mehdi """ import numpy as np a1=np.nanmean([table_11.loc['A'].accuracy,table_12.loc['A'].accuracy,table_13.loc['A'].accuracy,table_14.loc['A'].accuracy, table_15.loc['A'].accuracy,table_16.loc['A'].accuracy,table_17.loc['A'...
61.008081
130
0.594324
import numpy as np a1=np.nanmean([table_11.loc['A'].accuracy,table_12.loc['A'].accuracy,table_13.loc['A'].accuracy,table_14.loc['A'].accuracy, table_15.loc['A'].accuracy,table_16.loc['A'].accuracy,table_17.loc['A'].accuracy,table_18.loc['A'].accuracy, table_19.loc['A'].accuracy,table_110.l...
true
true
f724c79b6742776adde045c80e5e517302744145
2,786
py
Python
scripts/dct/data/GpioData.py
ABM-Community-Ports/droidboot_device_planet-cosmocom
4e157f7f3def69cc47e2c5c8fec5346feaea2a8c
[ "MIT" ]
10
2020-07-17T14:51:36.000Z
2022-03-12T03:35:42.000Z
scripts/dct/data/GpioData.py
ABM-Community-Ports/droidboot_device_planet-cosmocom
4e157f7f3def69cc47e2c5c8fec5346feaea2a8c
[ "MIT" ]
6
2020-07-23T19:33:25.000Z
2021-02-23T18:21:59.000Z
scripts/dct/data/GpioData.py
ABM-Community-Ports/droidboot_device_planet-cosmocom
4e157f7f3def69cc47e2c5c8fec5346feaea2a8c
[ "MIT" ]
4
2020-11-12T03:07:39.000Z
2022-03-23T19:30:20.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- class GpioData: _count = 0 _modNum = 8 _specMap = {} _freqMap = {} _mapList = [] _modeMap = {} _smtMap = {} _map_table = {} def __init__(self): self.__defMode = 0 self.__eintMode = False self.__modeVec = ['0', '0', ...
21.106061
65
0.585068
class GpioData: _count = 0 _modNum = 8 _specMap = {} _freqMap = {} _mapList = [] _modeMap = {} _smtMap = {} _map_table = {} def __init__(self): self.__defMode = 0 self.__eintMode = False self.__modeVec = ['0', '0', '0', '0', '0', '0', '0', '0'] sel...
true
true
f724c7bf893a319eb8f171129f7bf5a55e44dd61
837
py
Python
test/fpga/spi_video_ram_test/spi_video_ram_test.py
mbalestrini/hack_soc
157428ee6856a9e4cee5953b8b3c144b4f57f5ee
[ "Apache-2.0" ]
1
2021-12-18T18:31:53.000Z
2021-12-18T18:31:53.000Z
test/fpga/spi_video_ram_test/spi_video_ram_test.py
mbalestrini/hack_soc
157428ee6856a9e4cee5953b8b3c144b4f57f5ee
[ "Apache-2.0" ]
null
null
null
test/fpga/spi_video_ram_test/spi_video_ram_test.py
mbalestrini/hack_soc
157428ee6856a9e4cee5953b8b3c144b4f57f5ee
[ "Apache-2.0" ]
null
null
null
import cocotb from cocotb.clock import Clock from cocotb.triggers import RisingEdge, FallingEdge, ClockCycles import random async def reset(dut): dut.RESET_N <= 0 await ClockCycles(dut.EXTERNAL_CLK, 20) dut.RESET_N <= 1 await ClockCycles(dut.EXTERNAL_CLK, 1) @cocotb.test() async def spi_v...
19.465116
64
0.659498
import cocotb from cocotb.clock import Clock from cocotb.triggers import RisingEdge, FallingEdge, ClockCycles import random async def reset(dut): dut.RESET_N <= 0 await ClockCycles(dut.EXTERNAL_CLK, 20) dut.RESET_N <= 1 await ClockCycles(dut.EXTERNAL_CLK, 1) @cocotb.test() async def spi_v...
true
true
f724c85914703d848de5492a26e8b70312f96884
1,725
py
Python
notest/ext/generator_mysql.py
GodQ/notest
530d91782e8ed06493a1313facbed86e06662daf
[ "Apache-2.0" ]
3
2019-05-10T09:36:07.000Z
2021-04-16T23:40:46.000Z
notest/ext/generator_mysql.py
GodQ/notest
530d91782e8ed06493a1313facbed86e06662daf
[ "Apache-2.0" ]
null
null
null
notest/ext/generator_mysql.py
GodQ/notest
530d91782e8ed06493a1313facbed86e06662daf
[ "Apache-2.0" ]
1
2019-05-10T09:43:48.000Z
2019-05-10T09:43:48.000Z
import sys import logging import json logger = logging.Logger("mysql_generator") from notest.lib.mysql_lib import MysqlClient from notest.lib.utils import templated_var from notest import generators ''' - generators: - task_id: {type: 'number_sequence', start: 10} - task_name: type: 'm...
31.363636
80
0.607536
import sys import logging import json logger = logging.Logger("mysql_generator") from notest.lib.mysql_lib import MysqlClient from notest.lib.utils import templated_var from notest import generators def parse_mysql_query_generator(config, variable_binds): mysql_config = config.get('config') sql = config....
true
true
f724c9711779d4f88a28880eec79b4a0e04ab006
907
py
Python
src/coinc/exceptions.py
kimklai/Coinc
dbce0d257d90104bd012996c18884a68e01375a9
[ "MIT" ]
15
2020-07-11T23:30:23.000Z
2022-03-25T08:10:26.000Z
src/coinc/exceptions.py
kimklai/Coinc
dbce0d257d90104bd012996c18884a68e01375a9
[ "MIT" ]
10
2020-06-26T18:20:22.000Z
2022-03-31T02:55:29.000Z
src/coinc/exceptions.py
kimklai/Coinc
dbce0d257d90104bd012996c18884a68e01375a9
[ "MIT" ]
2
2020-09-10T10:51:01.000Z
2021-04-11T09:08:48.000Z
# -*- coding: utf-8 -*- """Exceptions used in this module""" class CoincError(Exception): """Base Class used to declare other errors for Coinc Extends: Exception """ pass class ConfigError(CoincError): """Raised when there are invalid value filled in Configuration Sheet Extends: ...
15.912281
72
0.63065
class CoincError(Exception): pass class ConfigError(CoincError): pass class QueryError(CoincError): pass class AppIDError(CoincError): pass class ApiError(CoincError): pass class UnknownPythonError(CoincError): pass
true
true
f724c9cbe59430da0dd2210d4efb6ddff77348cb
9,522
py
Python
tessia/server/db/alembic/versions/4f32ee5b2d29_0_0_3_remove_os_from_template_add_.py
tessia-project/tessia
b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540
[ "Apache-2.0" ]
5
2020-06-04T10:20:33.000Z
2020-10-26T15:09:19.000Z
tessia/server/db/alembic/versions/4f32ee5b2d29_0_0_3_remove_os_from_template_add_.py
tessia-project/tessia
b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540
[ "Apache-2.0" ]
null
null
null
tessia/server/db/alembic/versions/4f32ee5b2d29_0_0_3_remove_os_from_template_add_.py
tessia-project/tessia
b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 IBM Corp. # # 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, sof...
40.347458
146
0.664251
revision = '4f32ee5b2d29' down_revision = '14e7934c17c8' branch_labels = None depends_on = None from alembic import op from sqlalchemy import Column from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.orm import relationship, sessio...
true
true
f724c9e936f9b464bc9ef938bd84202c5c01e1e8
6,935
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 ...
46.858108
94
0.839366
from ._operations import ApplicationGatewaysOperations from ._operations import ApplicationSecurityGroupsOperations from ._operations import AvailableDelegationsOperations from ._operations import AvailableResourceGroupDelegationsOperations from ._operations import AzureFirewallsOperations from ._operations imp...
true
true
f724cac7525d981babd6c466078597e54db40a89
1,080
py
Python
step2_run_perl_RT_fdda_reformat_obsnud.py
M2LabOrg/WRF_little_r
8f46e733387db4c62f39426a03b6a03b3b406b0e
[ "Apache-2.0" ]
1
2021-09-14T06:41:02.000Z
2021-09-14T06:41:02.000Z
step2_run_perl_RT_fdda_reformat_obsnud.py
M2LabOrg/WRF_little_r
8f46e733387db4c62f39426a03b6a03b3b406b0e
[ "Apache-2.0" ]
null
null
null
step2_run_perl_RT_fdda_reformat_obsnud.py
M2LabOrg/WRF_little_r
8f46e733387db4c62f39426a03b6a03b3b406b0e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ This script creates WRF ready files using the little_r formatted files. They are part of the input files needed for observation nudging. Note that: - You need to step1_run_time_series_converter.py first - Here we convert to the format needed by WRF - You do that by running: $ perl RT_fd...
28.421053
82
0.746296
import os import glob for filepath in glob.iglob('OUTPUT_STEP1/*'): print(filepath) filename = os.path.basename(filepath) os.system(f"perl RT_fdda_reformat_obsnud.pl {filepath}") os.system("mv OUTPUT_STEP1/*.obsnud OUTPUT_STEP2/") os.system("rm OUTPUT_STEP1/*.tmp")
true
true
f724cad0080defcb0f50376906f3de9ab0cedd9e
440
py
Python
invenio_i18n/version.py
mvidalgarcia/invenio-i18n
123b3db1538529ebb5eff165802d387d3337c7d1
[ "MIT" ]
null
null
null
invenio_i18n/version.py
mvidalgarcia/invenio-i18n
123b3db1538529ebb5eff165802d387d3337c7d1
[ "MIT" ]
null
null
null
invenio_i18n/version.py
mvidalgarcia/invenio-i18n
123b3db1538529ebb5eff165802d387d3337c7d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2015-2020 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Version information for Invenio-I18N. This file is imported by ``invenio_i18n.__i...
24.444444
72
0.722727
from __future__ import absolute_import, print_function __version__ = '1.2.0'
true
true
f724cb2af35070c9347e3228b9791a0c3e03873f
13,189
py
Python
test/functional/test_framework/wallet.py
dathx/bitcoin
57982f419e36d0023c83af2dd0d683ca3160dc2a
[ "MIT" ]
459
2015-09-25T22:46:28.000Z
2022-02-27T18:01:48.000Z
test/functional/test_framework/wallet.py
dathx/bitcoin
57982f419e36d0023c83af2dd0d683ca3160dc2a
[ "MIT" ]
472
2015-09-17T09:42:03.000Z
2022-03-29T05:29:04.000Z
test/functional/test_framework/wallet.py
dathx/bitcoin
57982f419e36d0023c83af2dd0d683ca3160dc2a
[ "MIT" ]
209
2015-10-04T00:49:49.000Z
2022-03-24T11:05:09.000Z
#!/usr/bin/env python3 # Copyright (c) 2020-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """A limited-functionality wallet, which may replace a real wallet in tests""" from copy import deepcopy ...
45.323024
140
0.656759
from copy import deepcopy from decimal import Decimal from enum import Enum from random import choice from typing import Optional from test_framework.address import create_deterministic_address_bcrt1_p2tr_op_true from test_framework.descriptors import descsum_create from test_framework.key import ECKey from test_f...
true
true
f724cb595d2162e3e332ee66f877f324cfe44a48
16,524
py
Python
modules/routes/user/forms.py
manu-p-1/meet
5e6865a9b5035e324ab0b7cf5a9a71383dfcac9d
[ "MIT" ]
3
2020-08-27T20:15:52.000Z
2022-02-19T12:05:11.000Z
modules/routes/user/forms.py
manu-p-1/meet
5e6865a9b5035e324ab0b7cf5a9a71383dfcac9d
[ "MIT" ]
null
null
null
modules/routes/user/forms.py
manu-p-1/meet
5e6865a9b5035e324ab0b7cf5a9a71383dfcac9d
[ "MIT" ]
2
2020-09-26T00:37:46.000Z
2021-09-23T03:45:00.000Z
import sys from flask_wtf import FlaskForm from wtforms import StringField, IntegerField, TextAreaField, SelectField, BooleanField, DecimalField, HiddenField, \ RadioField, FieldList from wtforms.validators import InputRequired, NumberRange, Length, AnyOf from wtforms.widgets.html5 import NumberInput from modules...
42.26087
118
0.489893
import sys from flask_wtf import FlaskForm from wtforms import StringField, IntegerField, TextAreaField, SelectField, BooleanField, DecimalField, HiddenField, \ RadioField, FieldList from wtforms.validators import InputRequired, NumberRange, Length, AnyOf from wtforms.widgets.html5 import NumberInput from modules...
true
true
f724cdce03e831ba60b697c99d9b9995f15edd45
18,132
py
Python
cltk/corpus/utils/importer.py
Nada1996/cltk
594f6aecff64c449a637ed05cd2c4655a606ba2d
[ "MIT" ]
null
null
null
cltk/corpus/utils/importer.py
Nada1996/cltk
594f6aecff64c449a637ed05cd2c4655a606ba2d
[ "MIT" ]
null
null
null
cltk/corpus/utils/importer.py
Nada1996/cltk
594f6aecff64c449a637ed05cd2c4655a606ba2d
[ "MIT" ]
null
null
null
"""Import CLTK corpora. TODO: Fix so ``import_corpora()`` can take relative path. TODO: Add https://github.com/cltk/pos_latin """ from cltk.corpus.arabic.corpora import ARABIC_CORPORA from cltk.corpus.chinese.corpora import CHINESE_CORPORA from cltk.corpus.coptic.corpora import COPTIC_CORPORA from cltk.corpus.greek.cor...
46.020305
120
0.596073
from cltk.corpus.arabic.corpora import ARABIC_CORPORA from cltk.corpus.chinese.corpora import CHINESE_CORPORA from cltk.corpus.coptic.corpora import COPTIC_CORPORA from cltk.corpus.greek.corpora import GREEK_CORPORA from cltk.corpus.hebrew.corpora import HEBREW_CORPORA from cltk.corpus.latin.corpora import LATIN_CORPOR...
true
true
f724cdeca3f91643abf9127ba1abde54edc87cec
16,147
py
Python
hikyuu/admin/HikyuuAdmin.py
dasuren/hikyuu
d1a1a43c10653d17ac91446e4499e6cfbfdbce12
[ "MIT" ]
1
2021-05-20T14:47:16.000Z
2021-05-20T14:47:16.000Z
hikyuu/admin/HikyuuAdmin.py
dasuren/hikyuu
d1a1a43c10653d17ac91446e4499e6cfbfdbce12
[ "MIT" ]
null
null
null
hikyuu/admin/HikyuuAdmin.py
dasuren/hikyuu
d1a1a43c10653d17ac91446e4499e6cfbfdbce12
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # The MIT License (MIT) # # Copyright (c) 2010-2019 fasiondog/hikyuu # # 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 limitat...
45.872159
118
0.675543
import logging import sys import os from PyQt5.QtWidgets import QVBoxLayout cur_dir = os.path.dirname(__file__) sys.path.append(cur_dir) sys.path.append(os.path.split(cur_dir)[0]) from PyQt5 import QtCore, QtGui, QtWidgets import qdarkstyle from UiConfig import UiConfig from translate im...
true
true
f724ce0ba695747e01f48c7c55ced6477e36a6ed
823
py
Python
python/recursion/fibonacci.py
suddi/coding-challenges
f31b53790084dce1ad0be65ec1d61bf177cddb39
[ "MIT" ]
null
null
null
python/recursion/fibonacci.py
suddi/coding-challenges
f31b53790084dce1ad0be65ec1d61bf177cddb39
[ "MIT" ]
11
2020-01-09T06:53:45.000Z
2022-02-11T01:34:44.000Z
python/recursion/fibonacci.py
suddi/coding-challenges
f31b53790084dce1ad0be65ec1d61bf177cddb39
[ "MIT" ]
1
2017-03-18T17:19:43.000Z
2017-03-18T17:19:43.000Z
def solution(number): # O(N) """ Write a function to compute the fibonacci sequence value to the requested iteration. >>> solution(3) 2 >>> solution(10) 55 >>> solution(20) 6765 """ m = { 0: 0, 1: 1 } ...
30.481481
88
0.351154
def solution(number): m = { 0: 0, 1: 1 } def run_sequence(n): if not isinstance(m.get(n), int): ...
true
true
f724cf25e6669a9f5102947f3cef81489c325e8c
24,857
py
Python
pikciosdk/PikcioChain.py
Pikciochain/PikcioChainSDK
2a89b655268516060044ec51672c0cc46f44bd9b
[ "MIT" ]
1
2019-04-11T06:24:40.000Z
2019-04-11T06:24:40.000Z
pikciosdk/PikcioChain.py
Pikciochain/PythonSDK
2a89b655268516060044ec51672c0cc46f44bd9b
[ "MIT" ]
3
2018-10-26T08:52:10.000Z
2018-10-26T08:55:38.000Z
pikciosdk/PikcioChain.py
Pikciochain/PythonSDK
2a89b655268516060044ec51672c0cc46f44bd9b
[ "MIT" ]
null
null
null
import base64 import json import os import requests import time from flask import Flask, jsonify, abort, make_response, redirect, request, \ url_for from flask_oauthlib.client import OAuth from selenium import webdriver from config import get_config from log import Logger access_token = '' def init_api_client(...
39.083333
79
0.518968
import base64 import json import os import requests import time from flask import Flask, jsonify, abort, make_response, redirect, request, \ url_for from flask_oauthlib.client import OAuth from selenium import webdriver from config import get_config from log import Logger access_token = '' def init_api_client(...
true
true
f724cfc965d385156ea1686e76199775451ff589
4,083
py
Python
test/functional/feature_includeconf.py
minblock/arcticoin
fc0ee011cc8a27cc22dd9841d563b37a8fa12255
[ "MIT" ]
null
null
null
test/functional/feature_includeconf.py
minblock/arcticoin
fc0ee011cc8a27cc22dd9841d563b37a8fa12255
[ "MIT" ]
null
null
null
test/functional/feature_includeconf.py
minblock/arcticoin
fc0ee011cc8a27cc22dd9841d563b37a8fa12255
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Tests the includeconf argument Verify that: 1. adding includeconf to the configuration file causes the inc...
49.192771
224
0.694832
import os from test_framework.test_framework import BitcoinTestFramework class IncludeConfTest(BitcoinTestFramework): def set_test_params(self): self.setup_clean_chain = False self.num_nodes = 1 def setup_chain(self): super().setup_chain() with open(os.pa...
true
true
f724cfe100b6d8d018d01d3fec03c2b0c5e1f781
6,287
py
Python
DuelingDQN/agent.py
emarche/Value-based-DeepRL
8b6458d4b82f293b401fc9e9c81cc482e0948830
[ "MIT" ]
1
2021-06-21T06:25:43.000Z
2021-06-21T06:25:43.000Z
DuelingDQN/agent.py
emarche/Value-based-DeepRL
8b6458d4b82f293b401fc9e9c81cc482e0948830
[ "MIT" ]
null
null
null
DuelingDQN/agent.py
emarche/Value-based-DeepRL
8b6458d4b82f293b401fc9e9c81cc482e0948830
[ "MIT" ]
null
null
null
"""DuelingDQN agent script This manages the training phase of the off-policy DuelingDQN. """ import random from collections import deque import yaml import numpy as np with open('config.yml', 'r') as ymlfile: cfg = yaml.load(ymlfile, Loader=yaml.FullLoader) seed = cfg['setup']['seed'] ymlfile.close() ...
33.801075
436
0.576905
import random from collections import deque import yaml import numpy as np with open('config.yml', 'r') as ymlfile: cfg = yaml.load(ymlfile, Loader=yaml.FullLoader) seed = cfg['setup']['seed'] ymlfile.close() random.seed(seed) np.random.seed(seed) import tensorflow as tf from tensorflow.keras.optim...
true
true
f724d00e6329a8b543e74c51d75c61d1be59e773
165
py
Python
Oops/Python.py
SharkDeveloper/Client-Server-app
071092f7f0a5ecc0c7e05eb8a5abeda759216709
[ "Apache-2.0" ]
null
null
null
Oops/Python.py
SharkDeveloper/Client-Server-app
071092f7f0a5ecc0c7e05eb8a5abeda759216709
[ "Apache-2.0" ]
null
null
null
Oops/Python.py
SharkDeveloper/Client-Server-app
071092f7f0a5ecc0c7e05eb8a5abeda759216709
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- try: from PySide import QtWidgets except: from PyQt5 import QtWidgets class Python: def __init__(self): print("Hi")
11.785714
32
0.612121
try: from PySide import QtWidgets except: from PyQt5 import QtWidgets class Python: def __init__(self): print("Hi")
true
true
f724d0189448a885ec38db8eea6a6121e6ff2796
11,397
py
Python
django/db/backends/base/features.py
thomazzo/django
b0d716cbffdd66dd9108895d0524bef2530fc732
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/db/backends/base/features.py
thomazzo/django
b0d716cbffdd66dd9108895d0524bef2530fc732
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/db/backends/base/features.py
thomazzo/django
b0d716cbffdd66dd9108895d0524bef2530fc732
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from django.db.models.aggregates import StdDev from django.db.utils import NotSupportedError, ProgrammingError from django.utils.functional import cached_property class BaseDatabaseFeatures: gis_enabled = False allows_group_by_pk = False allows_group_by_selected_pks = False empty_fetchmany_value = [] ...
36.883495
85
0.742476
from django.db.models.aggregates import StdDev from django.db.utils import NotSupportedError, ProgrammingError from django.utils.functional import cached_property class BaseDatabaseFeatures: gis_enabled = False allows_group_by_pk = False allows_group_by_selected_pks = False empty_fetchmany_value = [] ...
true
true