hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
90e637b1e45a7f0c6d8c0bde7e551fe538035277
521
py
Python
sunshinectf2020/speedrun/exploit_05.py
nhtri2003gmail/ctf-write-ups
7e969c47027c39b614e10739ae3a953eed17dfa3
[ "MIT" ]
101
2020-03-09T17:40:47.000Z
2022-03-31T23:26:55.000Z
sunshinectf2020/speedrun/exploit_05.py
nhtri2003gmail/ctf-write-ups
7e969c47027c39b614e10739ae3a953eed17dfa3
[ "MIT" ]
1
2021-11-09T13:39:40.000Z
2021-11-10T19:15:04.000Z
sunshinectf2020/speedrun/exploit_05.py
datajerk/ctf-write-ups
1bc4ecc63a59de7d924c7214b1ce467801792da0
[ "MIT" ]
31
2020-05-27T12:29:50.000Z
2022-03-31T23:23:32.000Z
#!/usr/bin/env python3 from pwn import * binary = context.binary = ELF('./chall_05') if not args.REMOTE: p = process(binary.path) else: p = remote('chal.2020.sunshinectf.org', 30005) p.sendlineafter('Race, life\'s greatest.\n','foobar') p.recvuntil('Yes I\'m going to win: ') _ = p.recvline().strip() main = int(_...
20.038462
53
0.677543
0
0
0
0
0
0
0
0
146
0.28023
90e6b33612e9aeabab01c1e1b9a83bc6ae67ea29
1,047
py
Python
coderedcms/wagtail_flexible_forms/edit_handlers.py
mikiec84/coderedcms
d72de2118d777f23d9512dc348691d3d7b46d0e5
[ "BSD-3-Clause" ]
9
2019-01-03T16:57:27.000Z
2020-07-08T07:17:35.000Z
coderedcms/wagtail_flexible_forms/edit_handlers.py
mikiec84/coderedcms
d72de2118d777f23d9512dc348691d3d7b46d0e5
[ "BSD-3-Clause" ]
1
2019-04-30T18:30:15.000Z
2019-04-30T18:30:15.000Z
coderedcms/wagtail_flexible_forms/edit_handlers.py
mikiec84/coderedcms
d72de2118d777f23d9512dc348691d3d7b46d0e5
[ "BSD-3-Clause" ]
4
2019-06-04T21:05:02.000Z
2020-04-20T00:39:52.000Z
from django.template.loader import render_to_string from django.utils.safestring import mark_safe from django.utils.translation import ugettext as _ from wagtail.admin.edit_handlers import EditHandler class FormSubmissionsPanel(EditHandler): template = "wagtailforms/edit_handlers/form_responses_panel.html" ...
33.774194
78
0.669532
842
0.804202
0
0
0
0
0
0
127
0.121299
90e6e714df05484ba942b1438ac0306e81a7602d
2,189
py
Python
python/elasticache/cache/helper/vpc.py
chejef/aws-cdk-examples-proserve
ea0b72475e2d28192a9088ac8ee8cb6498f6cb39
[ "MIT-0" ]
6
2021-11-10T21:42:53.000Z
2022-03-17T13:22:07.000Z
python/elasticache/cache/helper/vpc.py
chejef/aws-cdk-examples-proserve
ea0b72475e2d28192a9088ac8ee8cb6498f6cb39
[ "MIT-0" ]
9
2021-11-11T14:33:35.000Z
2022-02-14T15:25:41.000Z
python/elasticache/cache/helper/vpc.py
chejef/aws-cdk-examples-proserve
ea0b72475e2d28192a9088ac8ee8cb6498f6cb39
[ "MIT-0" ]
10
2021-11-13T17:32:06.000Z
2022-01-17T18:13:02.000Z
from aws_cdk import ( core as cdk, aws_elasticache as elasticache, aws_ec2 as ec2, ) from aws_cdk.core import Tags from config import config_util as config def get_vpc(scope: cdk.Construct) -> ec2.Vpc: """ Look up and return the none default vpc. Args: scope: the cdk construct. ...
28.802632
110
0.677935
0
0
0
0
0
0
0
0
953
0.435359
90e79b451ed65372d3a6d5c89f828338b8e17cd2
5,101
py
Python
src/pyscaffold/extensions/namespace.py
jayvdb/pyscaffold
c97ab5fd17ace3e1250741434f8728999359c8c2
[ "MIT" ]
2
2019-08-23T12:59:04.000Z
2021-04-14T14:45:36.000Z
.eggs/PyScaffold-3.2.3-py3.7.egg/pyscaffold/extensions/namespace.py
nkapchenko/HW
92f51d1ac4fc009e24350844172a1fb3b111ea27
[ "MIT" ]
19
2020-03-24T18:12:18.000Z
2022-03-29T22:27:59.000Z
.eggs/PyScaffold-3.2.3-py3.7.egg/pyscaffold/extensions/namespace.py
nkapchenko/HW
92f51d1ac4fc009e24350844172a1fb3b111ea27
[ "MIT" ]
1
2020-05-10T06:24:38.000Z
2020-05-10T06:24:38.000Z
# -*- coding: utf-8 -*- """ Extension that adjust project file tree to include a namespace package. This extension adds a **namespace** option to :obj:`~pyscaffold.api.create_project` and provides correct values for the options **root_pkg** and **namespace_pkg** to the following functions in the action list. """ impo...
32.909677
79
0.634581
1,670
0.327387
0
0
0
0
0
0
2,655
0.520486
90e88281f8a4c42ecdd83892971dad7b739f5530
2,324
py
Python
tests/solr_tests/tests/test_templatetags.py
speedplane/django-haystack
4ace30aea6aa1b1708f79a5a9df20a00fa0b4d96
[ "BSD-3-Clause" ]
1
2017-10-12T14:25:06.000Z
2017-10-12T14:25:06.000Z
tests/solr_tests/tests/templatetags.py
ericholscher/django-haystack
1fde37afa4921c2121a95a4902f2012bbf837bf1
[ "BSD-3-Clause" ]
1
2016-08-03T18:01:43.000Z
2016-08-03T18:03:00.000Z
tests/solr_tests/tests/templatetags.py
ericholscher/django-haystack
1fde37afa4921c2121a95a4902f2012bbf837bf1
[ "BSD-3-Clause" ]
2
2015-08-11T17:00:42.000Z
2021-01-04T08:39:33.000Z
# encoding: utf-8 from mock import call, patch from django.template import Template, Context from django.test import TestCase from core.models import MockModel @patch("haystack.templatetags.more_like_this.SearchQuerySet") class MoreLikeThisTagTestCase(TestCase): def render(self, template, context): # Wh...
41.5
173
0.645869
2,097
0.902324
0
0
2,159
0.929002
0
0
616
0.26506
90e8e47f66221f7bc0ae337311c1f500db447d05
669
py
Python
tests_project/homepage/views/__init__.py
wynnw/django-mako-plus
8a33eb3911fc84ddddd590152f475fd78c6a501f
[ "Apache-2.0" ]
79
2015-01-21T23:29:16.000Z
2021-08-22T03:38:20.000Z
tests_project/homepage/views/__init__.py
wynnw/django-mako-plus
8a33eb3911fc84ddddd590152f475fd78c6a501f
[ "Apache-2.0" ]
34
2015-01-08T03:11:07.000Z
2021-09-07T15:04:43.000Z
tests_project/homepage/views/__init__.py
wynnw/django-mako-plus
8a33eb3911fc84ddddd590152f475fd78c6a501f
[ "Apache-2.0" ]
23
2015-01-08T03:11:26.000Z
2021-05-22T11:12:24.000Z
from django_mako_plus.converter import ParameterConverter from django_mako_plus import view_function from django.http import HttpRequest class RecordingConverter(ParameterConverter): '''Converter that also records the converted variables for inspecting during testing''' def convert_parameters(self, *args, **k...
47.785714
105
0.741405
529
0.790732
0
0
0
0
0
0
184
0.275037
90e95d3f579e468dcd63f6bfea79961b11c3e5b8
1,953
py
Python
jupyterlab_bigquery/jupyterlab_bigquery/__init__.py
shunr/jupyter-extensions
a2fb310215664e29fd7252e5fe353f60a91a0aba
[ "Apache-2.0" ]
null
null
null
jupyterlab_bigquery/jupyterlab_bigquery/__init__.py
shunr/jupyter-extensions
a2fb310215664e29fd7252e5fe353f60a91a0aba
[ "Apache-2.0" ]
1
2020-07-20T23:09:46.000Z
2020-07-20T23:09:46.000Z
jupyterlab_bigquery/jupyterlab_bigquery/__init__.py
shunr/jupyter-extensions
a2fb310215664e29fd7252e5fe353f60a91a0aba
[ "Apache-2.0" ]
null
null
null
from notebook.utils import url_path_join from jupyterlab_bigquery.list_items_handler import handlers from jupyterlab_bigquery.details_handler import DatasetDetailsHandler, TablePreviewHandler, TableDetailsHandler from jupyterlab_bigquery.version import VERSION from jupyterlab_bigquery.pagedAPI_handler import PagedQuer...
35.509091
111
0.721966
0
0
0
0
0
0
0
0
509
0.260625
90eb050355216ee7d1a8b303ce6104092d1b2ec7
581
py
Python
ios_notifications/migrations/0004_auto_20141105_1515.py
chillbear/django-ios-notifications
d48a7862eaa499672f27c192a3cf6f06e06f8117
[ "BSD-3-Clause" ]
2
2021-12-01T21:34:49.000Z
2021-12-13T19:22:12.000Z
ios_notifications/migrations/0004_auto_20141105_1515.py
chillbear/django-ios-notifications
d48a7862eaa499672f27c192a3cf6f06e06f8117
[ "BSD-3-Clause" ]
1
2019-10-04T01:18:32.000Z
2019-10-04T01:18:32.000Z
ios_notifications/migrations/0004_auto_20141105_1515.py
chillbear/django-ios-notifications
d48a7862eaa499672f27c192a3cf6f06e06f8117
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django_fields.fields class Migration(migrations.Migration): dependencies = [ ('ios_notifications', '0003_notification_loc_payload'), ] operations = [ migrations.AlterField( ...
26.409091
142
0.667814
444
0.7642
0
0
0
0
0
0
130
0.223752
90eb7ca2d6e3944281a7dc60550b6a349ec9b59b
9,232
py
Python
fairseq/tasks/audio_pretraining.py
hwp/fairseq
f5cf2278d10a2aa8ee5759ce924d23aef6f82e6f
[ "MIT" ]
4
2021-09-06T06:40:41.000Z
2022-02-14T09:59:37.000Z
fairseq/tasks/audio_pretraining.py
hwp/fairseq
f5cf2278d10a2aa8ee5759ce924d23aef6f82e6f
[ "MIT" ]
null
null
null
fairseq/tasks/audio_pretraining.py
hwp/fairseq
f5cf2278d10a2aa8ee5759ce924d23aef6f82e6f
[ "MIT" ]
1
2021-07-12T12:34:47.000Z
2021-07-12T12:34:47.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import editdistance import os impo...
36.634921
96
0.604311
8,619
0.933601
0
0
8,409
0.910854
0
0
2,185
0.236677
90eb98699fec58dcce70daf5b1617e8fd2c20143
20,440
py
Python
caffe-int8-convert-tool-dev.py
daquexian/caffe-int8-convert-tools
07bbb40e2b39493a0777f2be564114721a99c501
[ "BSD-3-Clause" ]
null
null
null
caffe-int8-convert-tool-dev.py
daquexian/caffe-int8-convert-tools
07bbb40e2b39493a0777f2be564114721a99c501
[ "BSD-3-Clause" ]
null
null
null
caffe-int8-convert-tool-dev.py
daquexian/caffe-int8-convert-tools
07bbb40e2b39493a0777f2be564114721a99c501
[ "BSD-3-Clause" ]
1
2021-04-22T08:55:38.000Z
2021-04-22T08:55:38.000Z
# -*- coding: utf-8 -*- # SenseNets is pleased to support the open source community by making caffe-int8-convert-tool available. # # Copyright (C) 2018 SenseNets Technology Ltd. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the L...
35.241379
201
0.623092
4,234
0.207042
0
0
0
0
0
0
6,865
0.335697
90ebe6d271ee6c6cf02d97187537a0fc19ca7af6
2,404
py
Python
example_project/views.py
AKuederle/flask-template-master
d6d8d2747eccc6629658caf4295106db1b3326a1
[ "MIT" ]
2
2018-04-06T19:40:22.000Z
2019-10-09T18:58:03.000Z
example_project/views.py
AKuederle/flask-template-master
d6d8d2747eccc6629658caf4295106db1b3326a1
[ "MIT" ]
null
null
null
example_project/views.py
AKuederle/flask-template-master
d6d8d2747eccc6629658caf4295106db1b3326a1
[ "MIT" ]
null
null
null
""" All your views aka. your template endpoints go here. There are two ways to create a view. 1. Create a new Subclass inheriting from one of the flask_template_master views 2. Use the view-factory function flask_template_master.views.create_template_endpoint Each view requires an 1 (and 2 optional) things: 1. An envi...
50.083333
123
0.784526
730
0.303661
0
0
0
0
0
0
1,656
0.688852
90ee00867dbf308646030430e4e8f7dca424dfc1
44
py
Python
CustomExceptions.py
DouglasHSS/NeuralNetworks
739df65866e48a792c151974df528d4afb31d19d
[ "MIT" ]
null
null
null
CustomExceptions.py
DouglasHSS/NeuralNetworks
739df65866e48a792c151974df528d4afb31d19d
[ "MIT" ]
null
null
null
CustomExceptions.py
DouglasHSS/NeuralNetworks
739df65866e48a792c151974df528d4afb31d19d
[ "MIT" ]
null
null
null
class PerceptronError(Exception): pass
11
33
0.75
42
0.954545
0
0
0
0
0
0
0
0
90ee4b4c80b7c7885dba22f095e28a087fcc1818
5,534
py
Python
pytorch_translate/test/test_data.py
dpacgopinath/translate-1
032246359eab512bcc76208d357eac71e6017eca
[ "BSD-3-Clause" ]
null
null
null
pytorch_translate/test/test_data.py
dpacgopinath/translate-1
032246359eab512bcc76208d357eac71e6017eca
[ "BSD-3-Clause" ]
null
null
null
pytorch_translate/test/test_data.py
dpacgopinath/translate-1
032246359eab512bcc76208d357eac71e6017eca
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import unittest import os from pytorch_translate import data from pytorch_translate import dictionary from pytorch_translate.test import utils as test_utils class TestInMemoryNumpyDataset(unittest.TestCase): def setUp(self): self.src_txt, self.trg_txt = test_utils.create_test_text...
39.248227
104
0.568666
5,349
0.96657
0
0
0
0
0
0
79
0.014275
90ee60eea24c42a26b118fc9be18f7e7dc1fe829
2,877
py
Python
CompareWHDR.py
Z7Gao/InverseRenderingOfIndoorScene
f245d20dcbe05b1de766c2e53af79fd489f58d74
[ "MIT" ]
171
2020-06-28T04:03:23.000Z
2022-03-30T08:50:20.000Z
CompareWHDR.py
Z7Gao/InverseRenderingOfIndoorScene
f245d20dcbe05b1de766c2e53af79fd489f58d74
[ "MIT" ]
9
2020-08-20T08:56:38.000Z
2022-01-19T19:53:51.000Z
CompareWHDR.py
Z7Gao/InverseRenderingOfIndoorScene
f245d20dcbe05b1de766c2e53af79fd489f58d74
[ "MIT" ]
19
2020-06-23T11:49:03.000Z
2022-01-22T01:49:26.000Z
import numpy as np import sys import json import glob import os.path as osp import cv2 def compute_whdr(reflectance, judgements, delta=0.1): points = judgements['intrinsic_points'] comparisons = judgements['intrinsic_comparisons'] id_to_points = {p['id']: p for p in points} rows, cols = reflectance.sha...
30.284211
132
0.601321
0
0
0
0
0
0
0
0
593
0.206117
90f09eaebc2c156f0e6cd05610e75beced48fbbf
141
py
Python
theonionbox/stamp.py
ralphwetzel/theonionbox
9812fce48153955e179755ea7a58413c3bee182f
[ "MIT" ]
120
2015-12-30T09:41:56.000Z
2022-03-23T02:30:05.000Z
theonionbox/stamp.py
nwithan8/theonionbox
9e51fe0b4d07fc89a8a133fdeceb5f97d5d58713
[ "MIT" ]
57
2015-12-29T21:55:14.000Z
2022-01-07T09:48:51.000Z
theonionbox/stamp.py
nwithan8/theonionbox
9e51fe0b4d07fc89a8a133fdeceb5f97d5d58713
[ "MIT" ]
17
2018-02-05T08:57:46.000Z
2022-02-28T16:44:41.000Z
__title__ = 'The Onion Box' __description__ = 'Dashboard to monitor Tor node operations.' __version__ = '20.2' __stamp__ = '20200119|095654'
28.2
61
0.758865
0
0
0
0
0
0
0
0
81
0.574468
90f0c3ec3d38a98bb3fcc92188fa52c0d41d3751
649
py
Python
UnicodeTraps.py
loamhoof/sublime-plugins-dump
57518b19a96e090670e2592438688c600a5b875a
[ "MIT" ]
null
null
null
UnicodeTraps.py
loamhoof/sublime-plugins-dump
57518b19a96e090670e2592438688c600a5b875a
[ "MIT" ]
null
null
null
UnicodeTraps.py
loamhoof/sublime-plugins-dump
57518b19a96e090670e2592438688c600a5b875a
[ "MIT" ]
null
null
null
import re from sublime import Region import sublime_plugin REPLACEMENTS = { '\u00a0': ' ', # no-break space '\u200b': '', # zero-width space } class UnicodeTrapsListener(sublime_plugin.EventListener): @staticmethod def on_pre_save(view): view.run_command('unicode_traps') class UnicodeTrap...
24.037037
87
0.66718
489
0.753467
0
0
82
0.126348
0
0
78
0.120185
90f11b4939ee595b17ff6883b04027fa19911aa3
2,743
py
Python
simba/ROI_multiply.py
KonradDanielewski/simba
d7a448222e33dcb9880b65c14b5b676933cc6fd7
[ "MIT" ]
172
2019-12-18T22:19:42.000Z
2022-03-29T01:58:25.000Z
simba/ROI_multiply.py
KonradDanielewski/simba
d7a448222e33dcb9880b65c14b5b676933cc6fd7
[ "MIT" ]
165
2020-01-10T19:05:16.000Z
2022-03-31T16:08:36.000Z
simba/ROI_multiply.py
KonradDanielewski/simba
d7a448222e33dcb9880b65c14b5b676933cc6fd7
[ "MIT" ]
80
2019-12-20T00:01:43.000Z
2022-03-29T16:20:10.000Z
import glob import pandas as pd from configparser import ConfigParser import os from simba.drop_bp_cords import * def multiplyFreeHand(inifile, currVid): _, CurrVidName, ext = get_fn_ext(currVid) config = ConfigParser() configFile = str(inifile) config.read(configFile) projectPath = conf...
55.979592
131
0.647466
0
0
0
0
0
0
0
0
489
0.178272
90f1959d5f3a4e728e1f0156fde3bb7e15e63fa1
689
py
Python
src/utils/ccxt/fetch_order_book.py
YasunoriMATSUOKA/crypto-asset-easy-management
5c33fd8612b843ed39f0ec1fd84efa83f3967e42
[ "MIT" ]
null
null
null
src/utils/ccxt/fetch_order_book.py
YasunoriMATSUOKA/crypto-asset-easy-management
5c33fd8612b843ed39f0ec1fd84efa83f3967e42
[ "MIT" ]
2
2020-12-05T09:31:01.000Z
2020-12-05T12:28:33.000Z
src/utils/ccxt/fetch_order_book.py
YasunoriMATSUOKA/crypto-asset-easy-management
5c33fd8612b843ed39f0ec1fd84efa83f3967e42
[ "MIT" ]
null
null
null
from logging import getLogger import traceback from .get_public_exchange import get_public_exchange logger = getLogger("__main__").getChild(__name__) def fetch_order_book(exchange_name, pair): logger.debug("start") logger.debug(exchange_name) logger.debug(pair) exchange = get_public_exchange(exchange...
27.56
52
0.70537
0
0
0
0
0
0
0
0
45
0.065312
90f2e833a7f803e0952b3382cebde491d441fdf8
20,080
py
Python
smoke-classifier/detect_fire.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
10
2019-12-19T02:37:33.000Z
2021-12-07T04:47:08.000Z
smoke-classifier/detect_fire.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
5
2019-10-27T23:22:52.000Z
2020-02-13T23:08:15.000Z
smoke-classifier/detect_fire.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
13
2019-09-24T18:53:24.000Z
2021-07-16T05:57:18.000Z
# Copyright 2018 The Fuego Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
42.008368
165
0.68745
0
0
0
0
0
0
0
0
8,724
0.434462
90f4632c21bed176e470218adb359ed714cf422b
8,165
py
Python
torch_agents/cogment_verse_torch_agents/third_party/hive/mlp.py
kharyal/cogment-verse
12bcb855bc742e3ec4ed11c40a1b475e95a32515
[ "Apache-2.0" ]
null
null
null
torch_agents/cogment_verse_torch_agents/third_party/hive/mlp.py
kharyal/cogment-verse
12bcb855bc742e3ec4ed11c40a1b475e95a32515
[ "Apache-2.0" ]
null
null
null
torch_agents/cogment_verse_torch_agents/third_party/hive/mlp.py
kharyal/cogment-verse
12bcb855bc742e3ec4ed11c40a1b475e95a32515
[ "Apache-2.0" ]
null
null
null
import math import numpy as np import torch import torch.nn.functional as F from torch import nn class SimpleMLP(nn.Module): """Simple MLP function approximator for Q-Learning.""" def __init__(self, in_dim, out_dim, hidden_units=256, num_hidden_layers=1): super().__init__() self.input_layer...
32.145669
116
0.54158
8,055
0.986528
0
0
0
0
0
0
427
0.052296
90f47be06645ba00851f14cd7c007a7d8432d2b8
1,705
py
Python
phonenumbers/data/region_AC.py
ayushgoel/FixGoogleContacts
e49e58db6718bef8f95b6f767241605441c7fe41
[ "MIT" ]
2
2019-02-22T05:27:22.000Z
2020-12-30T19:33:18.000Z
phonenumbers/data/region_AC.py
ayushgoel/FixGoogleContacts
e49e58db6718bef8f95b6f767241605441c7fe41
[ "MIT" ]
null
null
null
phonenumbers/data/region_AC.py
ayushgoel/FixGoogleContacts
e49e58db6718bef8f95b6f767241605441c7fe41
[ "MIT" ]
null
null
null
"""Auto-generated file, do not edit by hand. AC metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_AC = PhoneMetadata(id='AC', country_code=247, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[2-467]\\d{3}', possible_number_pattern=...
85.25
149
0.794721
0
0
0
0
0
0
0
0
253
0.148387
90f5a5e0a26c00e35828acb499a24e15b010c10d
1,574
py
Python
awx/main/migrations/0156_capture_mesh_topology.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
1
2019-07-21T11:19:50.000Z
2019-07-21T11:19:50.000Z
awx/main/migrations/0156_capture_mesh_topology.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
2
2022-02-10T11:57:21.000Z
2022-02-27T22:43:44.000Z
awx/main/migrations/0156_capture_mesh_topology.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.20 on 2021-12-17 19:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('main', '0155_improved_health_check'), ] operations = [ migrations.AlterField( model_name='inst...
34.977778
141
0.540661
1,447
0.919314
0
0
0
0
0
0
429
0.272554
90f60f7f71e4d156824089d61cc0fca325d7afa6
2,981
py
Python
models/dsd/bicubic.py
VinAIResearch/blur-kernel-space-exploring
619c9b3b33961ef9311399d7cbbf92050a0c6b51
[ "Apache-2.0" ]
93
2021-05-11T08:35:24.000Z
2022-03-30T10:41:14.000Z
models/dsd/bicubic.py
abcdef2000/blur-kernel-space-exploring
56f707c6fa6e3c4a570f7816b0d60cd45441de0e
[ "Apache-2.0" ]
14
2021-05-20T05:05:19.000Z
2022-01-22T22:09:36.000Z
models/dsd/bicubic.py
abcdef2000/blur-kernel-space-exploring
56f707c6fa6e3c4a570f7816b0d60cd45441de0e
[ "Apache-2.0" ]
29
2021-05-13T04:16:56.000Z
2022-03-03T02:07:24.000Z
import torch from torch import nn from torch.nn import functional as F class BicubicDownSample(nn.Module): def bicubic_kernel(self, x, a=-0.50): """ This equation is exactly copied from the website below: https://clouard.users.greyc.fr/Pantheon/experiments/rescaling/index-en.html#bicubic ...
38.714286
113
0.570949
2,907
0.975176
0
0
0
0
0
0
463
0.155317
90f65c76bdf901f4200cf464ae0ba5ac4a47f91a
655
py
Python
control/webapp/__init__.py
doismellburning/control-panel
516feeaac3a0f4c704105204b6efe75a94ba42c3
[ "MIT" ]
1
2020-07-22T21:47:15.000Z
2020-07-22T21:47:15.000Z
control/webapp/__init__.py
doismellburning/control-panel
516feeaac3a0f4c704105204b6efe75a94ba42c3
[ "MIT" ]
5
2020-08-02T09:59:25.000Z
2021-11-03T08:02:39.000Z
control/webapp/__init__.py
doismellburning/control-panel
516feeaac3a0f4c704105204b6efe75a94ba42c3
[ "MIT" ]
2
2020-08-02T09:02:25.000Z
2020-12-20T17:45:30.000Z
import logging from flask import Flask from . import utils, home, member, society, signup, jobs, admin from .flask_seasurf import SeaSurf from flask_talisman import Talisman app = Flask(__name__, template_folder="../templates", static_folder="../static") app.config['CSRF_CHECK_REFERER'] = F...
23.392857
71
0.770992
0
0
0
0
0
0
0
0
45
0.068702
90f6a8b251142a71fb640f4f91f600712ec01fc8
3,569
py
Python
tests/rules/test_duplicates.py
imbillu/arche
67a24b83e2f936f1f6f8d1c7bbd4aa147f128b66
[ "MIT" ]
1
2022-02-22T11:56:03.000Z
2022-02-22T11:56:03.000Z
tests/rules/test_duplicates.py
imbillu/arche
67a24b83e2f936f1f6f8d1c7bbd4aa147f128b66
[ "MIT" ]
null
null
null
tests/rules/test_duplicates.py
imbillu/arche
67a24b83e2f936f1f6f8d1c7bbd4aa147f128b66
[ "MIT" ]
null
null
null
import arche.rules.duplicates as duplicates from arche.rules.result import Level, Outcome from conftest import create_result import numpy as np import pandas as pd import pytest unique_inputs = [ ({}, {}, {Level.INFO: [(Outcome.SKIPPED,)]}), ( {"id": ["0", "0", "1"]}, {"unique": ["id"]}, ...
29.741667
86
0.42589
0
0
0
0
2,397
0.671617
0
0
922
0.258336
90f6bebd46777b051dad40dbf866fa9c85663a73
2,602
py
Python
Question_1.py
Queen-Jonnie/Work
0197644b09700c8ed9576f8270f3f334588cabc9
[ "Apache-2.0" ]
null
null
null
Question_1.py
Queen-Jonnie/Work
0197644b09700c8ed9576f8270f3f334588cabc9
[ "Apache-2.0" ]
null
null
null
Question_1.py
Queen-Jonnie/Work
0197644b09700c8ed9576f8270f3f334588cabc9
[ "Apache-2.0" ]
null
null
null
# This is the word list from where the answers for the hangman game will come from. word_list = [ 2015, "Fred Swaniker", "Rwanda and Mauritius", 2, "Dr, Gaidi Faraj", "Sila Ogidi", "Madagascar", 94, 8, "Mauritius" ] # Here we are defining the variables 'Right'(for ...
22.050847
117
0.595696
0
0
0
0
0
0
0
0
1,086
0.417371
90f6d9fde4d8fbf472167b25a5be418433abe7aa
1,416
py
Python
node-api/get-block-transfers/request.py
Venoox/casper-integrations
2da32cc5db8278fff09d2a966c24491c6b936c80
[ "Apache-2.0" ]
5
2021-07-01T13:58:19.000Z
2022-03-02T10:46:32.000Z
node-api/get-block-transfers/request.py
Venoox/casper-integrations
2da32cc5db8278fff09d2a966c24491c6b936c80
[ "Apache-2.0" ]
3
2021-06-07T15:15:36.000Z
2021-10-10T15:38:44.000Z
node-api/get-block-transfers/request.py
Venoox/casper-integrations
2da32cc5db8278fff09d2a966c24491c6b936c80
[ "Apache-2.0" ]
6
2021-06-05T16:04:28.000Z
2022-01-06T07:30:05.000Z
import json import os import pycspr # A known casper test-net node address. _NODE_ADDRESS = os.getenv("CASPER_NODE_ADDRESS", "3.136.227.9") # A known block hash. _BLOCK_HASH: bytes = bytes.fromhex("c7148e1e2e115d8fba357e04be2073d721847c982dc70d5c36b5f6d3cf66331c") # A known block height. _BLOCK_HEIGHT: int = 2065...
30.782609
114
0.551554
0
0
0
0
0
0
0
0
798
0.563559
90f942653019dc0ae99aab8acbed167dceaab3ce
582
py
Python
tests/test_util.py
re3turn/twicrawler
139c8f72a619b188433e32c271e64d3b5dc0c77e
[ "MIT" ]
14
2019-10-18T04:01:38.000Z
2022-02-24T15:28:54.000Z
tests/test_util.py
re3turn/twicrawler
139c8f72a619b188433e32c271e64d3b5dc0c77e
[ "MIT" ]
47
2019-10-05T13:32:56.000Z
2021-10-17T06:40:25.000Z
tests/test_util.py
re3turn/twicrawler
139c8f72a619b188433e32c271e64d3b5dc0c77e
[ "MIT" ]
4
2019-10-05T13:23:47.000Z
2020-10-01T05:32:26.000Z
import nose2.tools from typing import Union from app.util import has_attributes class SampleClass: pass class TestUtil: @nose2.tools.params( ('SET_VALUE', True), (None, False), ('NO_ATTRIBUTE', False), (False, True), ('', True), (0, True), ) def test...
20.068966
89
0.575601
494
0.848797
0
0
447
0.768041
0
0
53
0.091065
90f9829385890920a9abc0c7d59d052db4801faf
4,427
py
Python
commands/data/fusion_data.py
Christ0ph990/Fusion360DevTools
fce10e34b3b92a058d275956c07d1b891ce02192
[ "MIT" ]
3
2022-02-12T21:00:39.000Z
2022-03-18T13:17:17.000Z
commands/data/fusion_data.py
Christ0ph990/Fusion360DevTools
fce10e34b3b92a058d275956c07d1b891ce02192
[ "MIT" ]
null
null
null
commands/data/fusion_data.py
Christ0ph990/Fusion360DevTools
fce10e34b3b92a058d275956c07d1b891ce02192
[ "MIT" ]
null
null
null
# Copyright 2022 by Autodesk, Inc. # Permission to use, copy, modify, and distribute this software in object code form # for any purpose and without fee is hereby granted, provided that the above copyright # notice appears in all copies and that both that copyright notice and the limited # warranty and restricted ...
42.161905
120
0.688954
3,254
0.735035
0
0
3,265
0.73752
0
0
1,293
0.292071
90f9b4568f182777eba66204bdc021fa7e74466b
5,044
py
Python
src/config-producer/config_topic.py
DougFigueroa/realde-kafka-assesment
06582907d05a51a68cc368d00f85ba97f95fd533
[ "MIT" ]
null
null
null
src/config-producer/config_topic.py
DougFigueroa/realde-kafka-assesment
06582907d05a51a68cc368d00f85ba97f95fd533
[ "MIT" ]
null
null
null
src/config-producer/config_topic.py
DougFigueroa/realde-kafka-assesment
06582907d05a51a68cc368d00f85ba97f95fd533
[ "MIT" ]
null
null
null
""" This process creates the two kafka topics to be used. The input-topic with ten partitions and the output-topic with one partition. Also preloads the kafka cluster with test data (if flag is set to true). """ import os import time import json import logging from confluent_kafka.admin import AdminClient, NewTopic fro...
35.77305
80
0.673672
0
0
0
0
0
0
0
0
2,572
0.509913
90f9cab42c98867e4c26010b699fc6f4bbfe103f
167
py
Python
deallocate/params.py
jefferycwc/tacker-example-plugin
641d2acebca3b95c7d2d635769b6f0f2d84051b2
[ "Apache-2.0" ]
null
null
null
deallocate/params.py
jefferycwc/tacker-example-plugin
641d2acebca3b95c7d2d635769b6f0f2d84051b2
[ "Apache-2.0" ]
null
null
null
deallocate/params.py
jefferycwc/tacker-example-plugin
641d2acebca3b95c7d2d635769b6f0f2d84051b2
[ "Apache-2.0" ]
1
2022-01-19T01:35:43.000Z
2022-01-19T01:35:43.000Z
OS_MA_NFVO_IP = '192.168.1.197' OS_USER_DOMAIN_NAME = 'Default' OS_USERNAME = 'admin' OS_PASSWORD = '0000' OS_PROJECT_DOMAIN_NAME = 'Default' OS_PROJECT_NAME = 'admin'
27.833333
34
0.772455
0
0
0
0
0
0
0
0
53
0.317365
90f9e5e1aabce04f1b2939743e6a19578017960f
1,591
py
Python
anoplura/patterns/body_part.py
rafelafrance/traiter_lice
29d653a80b57225203c98198c26fd9fcbdb08843
[ "MIT" ]
null
null
null
anoplura/patterns/body_part.py
rafelafrance/traiter_lice
29d653a80b57225203c98198c26fd9fcbdb08843
[ "MIT" ]
1
2020-06-07T18:25:08.000Z
2020-06-07T18:25:08.000Z
anoplura/patterns/body_part.py
rafelafrance/traiter_lice
29d653a80b57225203c98198c26fd9fcbdb08843
[ "MIT" ]
null
null
null
"""Extract body part annotations.""" import re import spacy from traiter.const import COMMA from traiter.patterns.matcher_patterns import MatcherPatterns from anoplura.pylib.const import COMMON_PATTERNS from anoplura.pylib.const import CONJ from anoplura.pylib.const import MISSING from anoplura.pylib.const import REP...
26.081967
68
0.60088
0
0
0
0
447
0.280955
0
0
452
0.284098
90fa1b52a86892da98479fc272386682615fa765
17,478
py
Python
Termux-pkg-apt.py
Hironotori/Termux-pkg-apt
db1c33b750e82943c8c5b2780d69654ab4afde96
[ "BSL-1.0" ]
1
2021-04-12T18:33:25.000Z
2021-04-12T18:33:25.000Z
Termux-pkg-apt.py
Hironotori/Termux-pkg-apt
db1c33b750e82943c8c5b2780d69654ab4afde96
[ "BSL-1.0" ]
null
null
null
Termux-pkg-apt.py
Hironotori/Termux-pkg-apt
db1c33b750e82943c8c5b2780d69654ab4afde96
[ "BSL-1.0" ]
1
2021-10-17T00:44:37.000Z
2021-10-17T00:44:37.000Z
#!/usr/bin/python3 import os import time import sys os.system("clear") print('''\033[91m CREATED BY Hironotori ''') def slowprint(s): for c in s + '\n' : sys.stdout.write(c) sys.stdout.flush() slowprint(''' \033[93m [1] apt-pkg pip-pip3 [2] apt-pkg python [3] apt-pkg python2 [4] ...
31.099644
54
0.66947
0
0
0
0
0
0
0
0
9,987
0.570197
90faa5d3c27957f6280791f2da201e228021ab56
10,255
py
Python
RFEM/Loads/solidSetLoad.py
DavidNaizheZhou/RFEM_Python_Client
a5f7790b67de3423907ce10c0aa513c0a1aca47b
[ "MIT" ]
16
2021-10-13T21:00:11.000Z
2022-03-21T11:12:09.000Z
RFEM/Loads/solidSetLoad.py
DavidNaizheZhou/RFEM_Python_Client
a5f7790b67de3423907ce10c0aa513c0a1aca47b
[ "MIT" ]
49
2021-10-19T13:18:51.000Z
2022-03-30T08:20:17.000Z
RFEM/Loads/solidSetLoad.py
DavidNaizheZhou/RFEM_Python_Client
a5f7790b67de3423907ce10c0aa513c0a1aca47b
[ "MIT" ]
7
2021-10-13T06:06:24.000Z
2022-03-29T17:48:39.000Z
from RFEM.initModel import Model, clearAtributes, ConvertToDlString from RFEM.enums import SolidSetLoadType, SolidSetLoadDistribution, SolidSetLoadDirection class SolidSetLoad(): def __init__(self, no: int =1, load_case_no: int = 1, solid_sets_no: str= '1', ...
36.756272
202
0.648757
10,096
0.984495
0
0
0
0
0
0
3,162
0.308337
90ff9054dbaf433bbb08f4f56988df6c49765e6b
838
py
Python
examples_2d/patch.py
5A5H/PyFEMP
94ebf58a52230680fd87b699f295ccb3efa6c46a
[ "MIT" ]
1
2021-12-09T06:40:39.000Z
2021-12-09T06:40:39.000Z
examples_2d/patch.py
5A5H/PyFEMP
94ebf58a52230680fd87b699f295ccb3efa6c46a
[ "MIT" ]
null
null
null
examples_2d/patch.py
5A5H/PyFEMP
94ebf58a52230680fd87b699f295ccb3efa6c46a
[ "MIT" ]
null
null
null
# 2D example tensile test import numpy as np import matplotlib.pyplot as plt import PyFEMP import PyFEMP.elements.Elmt_BaMo_2D as ELEMENT FEM = PyFEMP.FEM_Simulation(ELEMENT) n = 4 XI, Elem = PyFEMP.msh_rec([0.0, 0.0], [10.0, 10.0], [n, n], type='Q1') FEM.Add_Mesh(XI, Elem) FEM.Add_Material([2100, 0.3], "All") FEM.A...
25.393939
79
0.656325
0
0
0
0
0
0
0
0
161
0.192124
2902581b3eec77bc0cde12663550bb823357a3a8
547
py
Python
common-patterns/producer_consumer_client.py
kyeett/websockets-examples
bf4f3d848bd5ac523563fc2a5624aaec85c6124d
[ "MIT" ]
null
null
null
common-patterns/producer_consumer_client.py
kyeett/websockets-examples
bf4f3d848bd5ac523563fc2a5624aaec85c6124d
[ "MIT" ]
null
null
null
common-patterns/producer_consumer_client.py
kyeett/websockets-examples
bf4f3d848bd5ac523563fc2a5624aaec85c6124d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import asyncio import websockets import os port = int(os.environ.get('PORT', '8765')) async def hello(): print("Starting client on :%s" % port) async with websockets.connect('ws://localhost:%s' % port) as websocket: msg = 'Client msg #1' await websocket.send(msg) ...
21.038462
75
0.586837
0
0
0
0
0
0
379
0.69287
103
0.1883
290322d74e5c2e76a5c2f837892bc099f63d97a5
1,073
py
Python
wagtailflags/forms.py
cfpb/wagtail-flags
3ef8b51b7e3c8f0f55ec4fbed07668210cc04274
[ "CC0-1.0" ]
75
2017-02-02T19:25:50.000Z
2022-03-23T08:09:20.000Z
wagtailflags/forms.py
cfpb/wagtail-flags
3ef8b51b7e3c8f0f55ec4fbed07668210cc04274
[ "CC0-1.0" ]
31
2017-02-02T16:48:44.000Z
2021-12-01T19:36:39.000Z
wagtailflags/forms.py
cfpb/wagtail-flags
3ef8b51b7e3c8f0f55ec4fbed07668210cc04274
[ "CC0-1.0" ]
17
2017-01-31T18:52:19.000Z
2021-09-20T14:34:17.000Z
from django import forms from flags.forms import FlagStateForm as DjangoFlagsFlagStateForm from flags.models import FlagState from flags.sources import get_flags class NewFlagForm(forms.ModelForm): name = forms.CharField(label="Name", required=True) def clean_name(self): name = self.cleaned_data["na...
24.953488
65
0.61603
904
0.842498
0
0
0
0
0
0
104
0.096925
29036ba6db6b8f13ddf689e6933342fcab6c293b
830
py
Python
src/utils/utils.py
GuiYuDaniel/CGC_of_Sn
c54e4e65a5ecff09d3e4c5fed76bf30b3804fefa
[ "MIT" ]
null
null
null
src/utils/utils.py
GuiYuDaniel/CGC_of_Sn
c54e4e65a5ecff09d3e4c5fed76bf30b3804fefa
[ "MIT" ]
2
2022-01-19T04:36:29.000Z
2022-01-27T09:15:38.000Z
src/utils/utils.py
GuiYuDaniel/CGC_of_Sn
c54e4e65a5ecff09d3e4c5fed76bf30b3804fefa
[ "MIT" ]
null
null
null
# -*- coding:utf8 -*- """ 一些其他工具 当需要细化或者函数太多时,应该把其中一些独立出去 """ import uuid from enum import Enum, unique from utils.log import get_logger logger = get_logger(__name__) @unique class PipeTaskStatus(Enum): # 还不够需要写状态机,先用这个凑活一下 """ name is Status value is Next """ # TODO 多线程时应该增加STOPPING, WAITIN...
21.282051
92
0.657831
713
0.643502
0
0
721
0.650722
0
0
707
0.638087
2903a87ca8ef20b939b217181d37a2379c18a9f6
693
py
Python
extras/scripts/finish_ci.py
connornishijima/PixieChroma
4812c72087550797d17f6fe4d003eda2ce1cc25a
[ "MIT" ]
20
2021-10-30T19:15:27.000Z
2022-03-22T14:59:13.000Z
extras/scripts/finish_ci.py
connornishijima/PixieChroma
4812c72087550797d17f6fe4d003eda2ce1cc25a
[ "MIT" ]
39
2021-10-29T22:21:53.000Z
2022-02-06T17:50:05.000Z
extras/scripts/finish_ci.py
connornishijima/PixieChroma
4812c72087550797d17f6fe4d003eda2ce1cc25a
[ "MIT" ]
5
2021-10-30T23:55:41.000Z
2022-01-07T09:05:47.000Z
# This is just for GitHub, and is used to clean up leftover files after # automatic testing has completed, and generate developer reports about # anything left undocumented! # run: "sudo python ./extras/scripts/finish_ci.py" import os import sys os.system("sudo python ./extras/scripts/generate_doxygen_report.py") os...
30.130435
71
0.74026
0
0
0
0
0
0
0
0
538
0.776335
2903ad47c07cf0194fa493bc2ea6ee436c013991
9,549
py
Python
matchingGame.py
VinnieM-3/MemoryGames
65b92b2eeaa56879fd491b1169bad84dfd9e672e
[ "MIT" ]
null
null
null
matchingGame.py
VinnieM-3/MemoryGames
65b92b2eeaa56879fd491b1169bad84dfd9e672e
[ "MIT" ]
null
null
null
matchingGame.py
VinnieM-3/MemoryGames
65b92b2eeaa56879fd491b1169bad84dfd9e672e
[ "MIT" ]
1
2021-03-29T20:31:34.000Z
2021-03-29T20:31:34.000Z
import pygame import random pygame.init() pygame.font.init() class Card(object): """ The Card Class """ def __init__(self, left, top, width, height, back_color, front_color, solved_color, display, font_color, text_font, value=None): self._rect = pyg...
43.404545
120
0.597549
2,021
0.211645
0
0
193
0.020212
0
0
1,517
0.158865
29057d1781f0e8f9898d6f1c32f5772d89c7df3a
1,889
py
Python
darts_search_space/imagenet/rlnas/evolution_search/config.py
megvii-model/RLNAS
a7e2ef9debcd06a93b075181a027b806b737b106
[ "MIT" ]
17
2021-05-17T04:54:17.000Z
2022-01-23T09:59:02.000Z
darts_search_space/imagenet/rlnas/evolution_search/config.py
megvii-model/RLNAS
a7e2ef9debcd06a93b075181a027b806b737b106
[ "MIT" ]
2
2021-07-09T05:14:29.000Z
2022-02-05T10:15:31.000Z
darts_search_space/imagenet/rlnas/evolution_search/config.py
megvii-model/RLNAS
a7e2ef9debcd06a93b075181a027b806b737b106
[ "MIT" ]
8
2021-05-28T00:04:20.000Z
2021-10-18T02:41:34.000Z
import os class config: host = 'zhangxuanyang.zhangxuanyang.ws2.hh-c.brainpp.cn' username = 'admin' port = 5672 exp_name = os.path.dirname(os.path.abspath(__file__)) exp_name = '-'.join(i for i in exp_name.split(os.path.sep) if i); test_send_pipe = exp_name + '-test-send_pipe' test_recv_p...
25.527027
112
0.528322
1,795
0.950238
0
0
0
0
0
0
425
0.224987
2908444cad199e2ad0cbe23b1b79f2e9191d879c
6,801
py
Python
packages/python/plotly/plotly/graph_objs/layout/geo/_projection.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/layout/geo/_projection.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/layout/geo/_projection.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Projection(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout.geo" _path_str = "layout.geo.projection" _valid_props = {"parallels", "rotatio...
30.773756
86
0.53845
6,692
0.983973
0
0
3,600
0.529334
0
0
4,630
0.680782
29098333a5185a77af4d5f34240be5bf5108f278
1,286
py
Python
j3d/string_table.py
blank63/j3dview
498225e12119a9a2b4af9beed1be95f28d8410e2
[ "MIT" ]
13
2016-04-22T10:45:08.000Z
2022-02-23T23:50:53.000Z
j3d/string_table.py
blank63/j3dview
498225e12119a9a2b4af9beed1be95f28d8410e2
[ "MIT" ]
1
2017-03-19T20:31:03.000Z
2017-03-20T17:09:36.000Z
j3d/string_table.py
blank63/j3dview
498225e12119a9a2b4af9beed1be95f28d8410e2
[ "MIT" ]
2
2016-09-10T07:35:35.000Z
2021-12-29T23:23:36.000Z
from btypes.big_endian import * cstring_sjis = CString('shift-jis') class Header(Struct): string_count = uint16 __padding__ = Padding(2) class Entry(Struct): string_hash = uint16 string_offset = uint16 def unsigned_to_signed_byte(b): return b - 0x100 if b & 0x80 else b def calculate_hash(s...
22.172414
72
0.650855
148
0.115086
0
0
0
0
0
0
27
0.020995
2909ec5a9aa5da7302caa8a0154901f2a00348b4
4,549
py
Python
deConzSensors.py
peterstadler/deConzSensors
c30cd78083cea89f9f0416c046e472774e0bb54d
[ "MIT" ]
null
null
null
deConzSensors.py
peterstadler/deConzSensors
c30cd78083cea89f9f0416c046e472774e0bb54d
[ "MIT" ]
null
null
null
deConzSensors.py
peterstadler/deConzSensors
c30cd78083cea89f9f0416c046e472774e0bb54d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.5 from time import sleep, time from datetime import datetime, timedelta from pid.decorator import pidfile #from subprocess import call from RPi import GPIO import requests import json #import config import logging import signal import sys #13: grün #16: braun #19: orange #20: grün #21: braun #2...
36.392
130
0.603869
2,057
0.451691
0
0
280
0.061484
0
0
1,927
0.423144
290a002c458607061f9182749313cea5d389910f
1,757
py
Python
src/admin.py
kappa243/agh-db-proj
73a3e69fa11e65e196b3d8a34be0b1051654a7eb
[ "MIT" ]
null
null
null
src/admin.py
kappa243/agh-db-proj
73a3e69fa11e65e196b3d8a34be0b1051654a7eb
[ "MIT" ]
null
null
null
src/admin.py
kappa243/agh-db-proj
73a3e69fa11e65e196b3d8a34be0b1051654a7eb
[ "MIT" ]
null
null
null
from flask import Blueprint, request, render_template, flash, redirect, url_for from flask_login import login_user, login_required, current_user, logout_user from models import User from werkzeug.security import generate_password_hash, check_password_hash from app import db, login_manager admin = Blueprint('admin', __...
39.931818
100
0.636881
0
0
0
0
1,423
0.809903
0
0
213
0.121229
290c6742df1f8f4ad0e590b81b60add7140d2294
4,321
py
Python
test/lib/test_map.py
oldmantaiter/inferno
88da465625d18c6848f4be5fb37e20a5ae2c6db1
[ "MIT" ]
1
2015-10-15T04:18:14.000Z
2015-10-15T04:18:14.000Z
test/lib/test_map.py
oldmantaiter/inferno
88da465625d18c6848f4be5fb37e20a5ae2c6db1
[ "MIT" ]
null
null
null
test/lib/test_map.py
oldmantaiter/inferno
88da465625d18c6848f4be5fb37e20a5ae2c6db1
[ "MIT" ]
null
null
null
import datetime import types from nose.tools import eq_ from nose.tools import ok_ from inferno.lib.map import keyset_map from inferno.lib.rule import InfernoRule class TestKeysetMap(object): def setUp(self): self.data = { 'city': 'toronto', 'country': 'canada', 'pop...
36.008333
80
0.592918
4,153
0.96112
1,319
0.305253
0
0
0
0
817
0.189077
290cd15c3b088b77632afac10c8cccada862dde1
1,882
bzl
Python
dart/build_rules/internal/pub.bzl
nickclmb/rules_dart
2cae27be60b858bfa45c649db15946cabb245556
[ "Apache-2.0" ]
null
null
null
dart/build_rules/internal/pub.bzl
nickclmb/rules_dart
2cae27be60b858bfa45c649db15946cabb245556
[ "Apache-2.0" ]
null
null
null
dart/build_rules/internal/pub.bzl
nickclmb/rules_dart
2cae27be60b858bfa45c649db15946cabb245556
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
29.40625
74
0.685441
0
0
0
0
0
0
0
0
1,146
0.608927
290d81aaa0377937c4a0c3f9c72f2fe1d0c01962
928
py
Python
auror_core/__init__.py
millengustavo/auror-core
e215af6a5a1f3822693ad2d0882cbcd7882a2e35
[ "Apache-2.0" ]
11
2018-12-15T04:07:52.000Z
2020-12-07T13:06:22.000Z
auror_core/__init__.py
millengustavo/auror-core
e215af6a5a1f3822693ad2d0882cbcd7882a2e35
[ "Apache-2.0" ]
12
2018-12-15T17:48:59.000Z
2021-10-14T02:49:06.000Z
auror_core/__init__.py
millengustavo/auror-core
e215af6a5a1f3822693ad2d0882cbcd7882a2e35
[ "Apache-2.0" ]
5
2019-10-14T02:28:38.000Z
2020-10-01T14:32:01.000Z
import copy import os class Project(object): def __init__(self, folder, *jobtypes): self.jobtypes = jobtypes self.folder = folder self.params = [] self.version = 1 def is_v2(self): self.version = 2 return copy.deepcopy(self) def is_v1(self): self....
23.794872
70
0.579741
903
0.97306
0
0
0
0
0
0
46
0.049569
2910bdc7ca3987dad2077d2434ff681fd6095d52
2,337
py
Python
app.py
Vaishnavid14/snakegame
cd98926ea23ed8494689ed9b0a6372e469b37083
[ "MIT" ]
5
2018-06-03T19:07:45.000Z
2022-03-22T00:58:50.000Z
app.py
Vaishnavid14/snakegame
cd98926ea23ed8494689ed9b0a6372e469b37083
[ "MIT" ]
1
2020-10-02T03:24:04.000Z
2020-10-02T03:24:04.000Z
app.py
Vaishnavid14/snakegame
cd98926ea23ed8494689ed9b0a6372e469b37083
[ "MIT" ]
3
2018-10-13T16:47:09.000Z
2020-12-11T09:09:36.000Z
''' Purpose: Server responsible for routing Author: Md. Tanvir Islam Command to execute: python app.py ''' from flask import Flask from flask import render_template from flask import json from flask import request import random import sys app = Flask(__name__) print("Server is live...", file = s...
22.04717
90
0.641849
0
0
0
0
1,152
0.49294
0
0
820
0.350877
2910c5c59d8ba3a8c530e8551e58a52db38377c4
254
py
Python
grafana_api/api/__init__.py
sedan07/grafana_api
4cc0b85e8660d9f21c8bd1997c5163a730ac2ee3
[ "MIT" ]
null
null
null
grafana_api/api/__init__.py
sedan07/grafana_api
4cc0b85e8660d9f21c8bd1997c5163a730ac2ee3
[ "MIT" ]
null
null
null
grafana_api/api/__init__.py
sedan07/grafana_api
4cc0b85e8660d9f21c8bd1997c5163a730ac2ee3
[ "MIT" ]
null
null
null
from .base import Base from .admin import Admin from .dashboard import Dashboard from .datasource import Datasource from .folder import Folder from .organisation import Organisation, Organisations from .search import Search from .user import User, Users
28.222222
53
0.826772
0
0
0
0
0
0
0
0
0
0
291160bd0c346287015511cf9e4797089cf45195
9,176
py
Python
shop/views.py
Ayushman-Singh/ecommerce
78f007fea89ead412d10554e69b9f4854f67d277
[ "MIT" ]
1
2019-11-25T06:42:47.000Z
2019-11-25T06:42:47.000Z
shop/views.py
Ayushman-Singh/ecommerce
78f007fea89ead412d10554e69b9f4854f67d277
[ "MIT" ]
12
2020-02-12T02:54:15.000Z
2022-03-12T00:06:14.000Z
shop/views.py
Ayushman-Singh/ecommerce
78f007fea89ead412d10554e69b9f4854f67d277
[ "MIT" ]
3
2019-11-25T19:53:18.000Z
2020-10-01T12:01:24.000Z
from shop.forms import UserForm from django.views import generic from django.urls import reverse_lazy from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import auth from .models import Product, Contact, Categ...
32.196491
92
0.53095
146
0.015911
0
0
638
0.069529
0
0
2,126
0.231691
2911bd336905b53ebe454ea6d5b0bca66ffa304e
347
py
Python
SimMuon/GEMDigitizer/python/muonGEMDigi_cff.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
SimMuon/GEMDigitizer/python/muonGEMDigi_cff.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
7
2016-07-17T02:34:54.000Z
2019-08-13T07:58:37.000Z
SimMuon/GEMDigitizer/python/muonGEMDigi_cff.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
import FWCore.ParameterSet.Config as cms from SimMuon.GEMDigitizer.muonGEMDigis_cfi import * from SimMuon.GEMDigitizer.muonGEMPadDigis_cfi import * from SimMuon.GEMDigitizer.muonGEMPadDigiClusters_cfi import * muonGEMDigiTask = cms.Task(simMuonGEMDigis, simMuonGEMPadDigis, simMuonGEMPadDigiClusters) muonGEMDigi = cms...
38.555556
90
0.864553
0
0
0
0
0
0
0
0
0
0
2913388d5314daafd30d30378e540525568a897d
8,843
py
Python
paas-ce/paas/esb/lib/redis_rate_limit/ratelimit.py
renmcc/bk-PaaS
1c9e4e9cfb40fc3375cd6b5f08af8c84203de246
[ "Apache-2.0" ]
767
2019-03-25T06:35:43.000Z
2022-03-30T08:57:51.000Z
paas-ce/paas/esb/lib/redis_rate_limit/ratelimit.py
renmcc/bk-PaaS
1c9e4e9cfb40fc3375cd6b5f08af8c84203de246
[ "Apache-2.0" ]
194
2019-03-29T07:16:41.000Z
2022-03-30T06:17:49.000Z
paas-ce/paas/esb/lib/redis_rate_limit/ratelimit.py
renmcc/bk-PaaS
1c9e4e9cfb40fc3375cd6b5f08af8c84203de246
[ "Apache-2.0" ]
381
2019-03-25T07:19:54.000Z
2022-03-29T03:22:42.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2018 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...
36.241803
305
0.622413
7,336
0.827898
0
0
510
0.057556
0
0
4,114
0.464282
291353fc46f6b36f8dcc9b15e6f8fd7bfb761f8c
7,094
py
Python
tela_cadastro_loja_embala.py
lucasHashi/PyQt5-gerenciador-de-vendas-de-comidas
56588bfb8543ea070ccb53635486a14ddfda6202
[ "MIT" ]
1
2020-02-21T22:54:05.000Z
2020-02-21T22:54:05.000Z
tela_cadastro_loja_embala.py
lucasHashi/PyQt5-gerenciador-de-vendas-de-comidas
56588bfb8543ea070ccb53635486a14ddfda6202
[ "MIT" ]
1
2020-01-22T04:27:02.000Z
2020-01-22T04:27:02.000Z
tela_cadastro_loja_embala.py
lucasHashi/PyQt5-gerenciador-de-vendas-de-comidas
56588bfb8543ea070ccb53635486a14ddfda6202
[ "MIT" ]
null
null
null
import sys from PyQt5 import QtCore, QtGui, QtWidgets, uic import database_receita import pyqt5_aux qt_tela_inicial = "telas/tela_cadastro_loja_embala.ui" Ui_MainWindow, QtBaseClass = uic.loadUiType(qt_tela_inicial) class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): switch_tela_gerenciar_loja_embala = QtCor...
37.734043
175
0.695235
6,873
0.96871
0
0
0
0
0
0
738
0.104017
2913e256dfb84f164f18ed5f1a7cbb5235605636
2,253
py
Python
test/test_layers.py
mukeshv0/ParallelWaveGAN
40fd282d0364c8d8711efed21d9689653d85b3a2
[ "MIT" ]
null
null
null
test/test_layers.py
mukeshv0/ParallelWaveGAN
40fd282d0364c8d8711efed21d9689653d85b3a2
[ "MIT" ]
null
null
null
test/test_layers.py
mukeshv0/ParallelWaveGAN
40fd282d0364c8d8711efed21d9689653d85b3a2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2019 Tomoki Hayashi # MIT License (https://opensource.org/licenses/MIT) import logging import numpy as np import torch from parallel_wavegan.layers import Conv1d from parallel_wavegan.layers import Conv1d1x1 from parallel_wavegan.layers import Conv2d from ...
40.232143
98
0.626276
0
0
0
0
0
0
0
0
192
0.08522
29145e423185507525f6b1aaf218e49896993e52
22,417
py
Python
geotrek/tourism/models.py
ker2x/Geotrek-admin
78e154894d1d78dbb35789285c7def8deaaa2dd3
[ "BSD-2-Clause" ]
null
null
null
geotrek/tourism/models.py
ker2x/Geotrek-admin
78e154894d1d78dbb35789285c7def8deaaa2dd3
[ "BSD-2-Clause" ]
null
null
null
geotrek/tourism/models.py
ker2x/Geotrek-admin
78e154894d1d78dbb35789285c7def8deaaa2dd3
[ "BSD-2-Clause" ]
null
null
null
import os import re import logging from django.conf import settings from django.contrib.gis.db import models from django.utils.translation import ugettext_lazy as _ from django.utils.formats import date_format from easy_thumbnails.alias import aliases from easy_thumbnails.exceptions import InvalidImageFormatError fro...
43.868885
171
0.657581
18,911
0.843601
0
0
4,605
0.205424
0
0
4,197
0.187224
2914b183f0a48cc6b1b59de7781f38a975146534
6,313
py
Python
Service_Components/Sink/Sink_DataFlow.py
mydata-sdk/mydata-sdk-1.x
74064d7a42fc0435511eae6e77e49ddc7d9723f3
[ "MIT" ]
null
null
null
Service_Components/Sink/Sink_DataFlow.py
mydata-sdk/mydata-sdk-1.x
74064d7a42fc0435511eae6e77e49ddc7d9723f3
[ "MIT" ]
2
2018-04-20T23:07:01.000Z
2018-04-21T01:01:20.000Z
Service_Components/Sink/Sink_DataFlow.py
fititnt/mydata-sdk--hiit
19d7a2ddbc3b5a05665539fbcc7f461c13793e03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from signed_requests.signed_request_auth import SignedRequest __author__ = 'alpaloma' from flask import Blueprint, current_app, request from helpers import Helpers import requests from json import dumps, loads from DetailedHTTPException import error_handler from flask_restful import Resource, A...
42.655405
274
0.642009
4,912
0.778077
0
0
4,613
0.730714
0
0
2,763
0.437668
29153ac2726304eba8abb15e0e28ea926d19d5f2
1,075
py
Python
alignment/find_bug/is_bored.py
LaudateCorpus1/code-align-evals-data
97446d992c3785d6605f1500b2c9b95d042e7b9c
[ "MIT" ]
3
2021-07-29T23:40:15.000Z
2021-08-12T10:18:09.000Z
alignment/find_bug/is_bored.py
openai/code-align-evals-data
97446d992c3785d6605f1500b2c9b95d042e7b9c
[ "MIT" ]
1
2021-09-19T06:44:15.000Z
2021-09-19T06:44:15.000Z
alignment/find_bug/is_bored.py
LaudateCorpus1/code-align-evals-data
97446d992c3785d6605f1500b2c9b95d042e7b9c
[ "MIT" ]
1
2021-09-19T06:44:03.000Z
2021-09-19T06:44:03.000Z
def is_bored(S): """ You'll be given a string of words, and your task is to count the number of boredoms. A boredom is a sentence that starts with the word "I". Sentences are delimited by '.', '?' or '!'. For example: >>> is_bored("Hello world") 0 >>> is_bored("The sky is blue. The s...
24.431818
115
0.584186
0
0
0
0
0
0
0
0
705
0.655814
2915a5cec252d8d1a0fc059343505bed4b8a4276
23,882
py
Python
Support/Python/tbdata/printing.py
twitchplayskh/open-brush
2094339be6851731d293f2574c1fc706ee388d84
[ "Apache-2.0" ]
null
null
null
Support/Python/tbdata/printing.py
twitchplayskh/open-brush
2094339be6851731d293f2574c1fc706ee388d84
[ "Apache-2.0" ]
null
null
null
Support/Python/tbdata/printing.py
twitchplayskh/open-brush
2094339be6851731d293f2574c1fc706ee388d84
[ "Apache-2.0" ]
1
2021-02-04T21:45:45.000Z
2021-02-04T21:45:45.000Z
# Copyright 2020 The Tilt Brush Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
33.031812
166
0.638682
0
0
5,283
0.221213
0
0
0
0
7,707
0.322712
29160e7d22c4f8b9d6d61e7d7e39b92b66f54862
33,150
py
Python
src/tests/scenarios/Maxwell_Main.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
null
null
null
src/tests/scenarios/Maxwell_Main.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
1
2019-03-13T20:52:22.000Z
2019-03-13T20:52:22.000Z
src/tests/scenarios/Maxwell_Main.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
null
null
null
''' ''' ''' ISC License Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder 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 c...
45.163488
135
0.672851
0
0
0
0
0
0
0
0
10,349
0.312187
29173261ce308b02b389884ae4d161ff95145254
2,458
py
Python
generators/map_parallel.py
CodyKochmann/generators
a637bf9cb5e48251aa800753ba0aa79b3ca18dcf
[ "MIT" ]
6
2017-12-21T04:32:35.000Z
2022-02-15T07:06:45.000Z
generators/map_parallel.py
CodyKochmann/generators
a637bf9cb5e48251aa800753ba0aa79b3ca18dcf
[ "MIT" ]
21
2017-09-08T13:02:18.000Z
2020-03-28T19:10:01.000Z
generators/map_parallel.py
CodyKochmann/generators
a637bf9cb5e48251aa800753ba0aa79b3ca18dcf
[ "MIT" ]
2
2018-09-30T16:16:10.000Z
2019-05-06T02:16:11.000Z
from multiprocessing import Pool from multiprocessing.pool import ThreadPool from queue import Queue from .chunks import chunks __all__ = 'map_parallel', 'map_multicore', 'map_multithread' def _pool_map_stream(pool_type, pipe, fn, workers): assert callable(fn), fn assert isinstance(workers, int), workers ...
30.345679
78
0.627339
0
0
1,140
0.463792
0
0
0
0
662
0.269325
2917e89341b91949b9706419236eae722cd755a7
492
py
Python
apps/bot/classes/messages/attachments/AudioAttachment.py
Xoma163/Petrovich
026e246f6b7d492d9be2dea205e351ac83acd89e
[ "MIT" ]
null
null
null
apps/bot/classes/messages/attachments/AudioAttachment.py
Xoma163/Petrovich
026e246f6b7d492d9be2dea205e351ac83acd89e
[ "MIT" ]
null
null
null
apps/bot/classes/messages/attachments/AudioAttachment.py
Xoma163/Petrovich
026e246f6b7d492d9be2dea205e351ac83acd89e
[ "MIT" ]
null
null
null
from apps.bot.classes.messages.attachments.Attachment import Attachment class AudioAttachment(Attachment): TYPE = "audio" def __init__(self): super().__init__(self.TYPE) self.duration = None def parse_vk_audio(self, event_audio): from petrovich.settings import VK_URL self...
30.75
80
0.691057
417
0.847561
0
0
0
0
0
0
83
0.168699
2917f428a5344543b5b9765a392fb7105a798a1a
4,384
py
Python
app/models.py
TrigeekSpace/academia-bknd
bd3b821240ef50868cd7d7b59c8d25e71086e70e
[ "BSD-3-Clause" ]
null
null
null
app/models.py
TrigeekSpace/academia-bknd
bd3b821240ef50868cd7d7b59c8d25e71086e70e
[ "BSD-3-Clause" ]
null
null
null
app/models.py
TrigeekSpace/academia-bknd
bd3b821240ef50868cd7d7b59c8d25e71086e70e
[ "BSD-3-Clause" ]
null
null
null
""" SQLAlchemy database models. """ from datetime import datetime from depot.fields.sqlalchemy import UploadedFileField from app import db from app.util.data import many_to_many, foreign_key from app.config import TOKEN_LEN class User(db.Model): """ User model class. """ id = db.Column(db.Integer(), primary_k...
47.652174
87
0.707345
4,141
0.944571
0
0
0
0
0
0
641
0.146214
2917f447ee2f70e3835bc5750b44b618fe249b3e
623
py
Python
log.py
GregMorford/testlogging
446a61f363ad6c1470b6257f6c651021cd904468
[ "MIT" ]
null
null
null
log.py
GregMorford/testlogging
446a61f363ad6c1470b6257f6c651021cd904468
[ "MIT" ]
null
null
null
log.py
GregMorford/testlogging
446a61f363ad6c1470b6257f6c651021cd904468
[ "MIT" ]
null
null
null
import logging ## Logging Configuration ## logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) ch = logging.StreamHandler() # console handler ch.setLevel(logging.INFO) fh = logging.FileHandler('logfile.txt') fh.setLevel(logging.INFO) fmtr = logging.Formatter('%(asctime)s | [%(levelname)s] | (%(name)s...
32.789474
176
0.764045
0
0
0
0
0
0
0
0
314
0.504013
29187b96b69d014696758f82a98a43412d184d30
552
py
Python
hackerrank/BetweenTwoSets.py
0x8b/HackerRank
45e1a0e2be68950505c0a75218715bd3132a428b
[ "MIT" ]
3
2019-12-04T01:22:34.000Z
2020-12-10T15:31:00.000Z
hackerrank/BetweenTwoSets.py
0x8b/HackerRank
45e1a0e2be68950505c0a75218715bd3132a428b
[ "MIT" ]
null
null
null
hackerrank/BetweenTwoSets.py
0x8b/HackerRank
45e1a0e2be68950505c0a75218715bd3132a428b
[ "MIT" ]
1
2019-12-04T01:24:01.000Z
2019-12-04T01:24:01.000Z
#!/bin/python3 import os def getTotalX(a, b): c = 0 for i in range(max(a), min(b) + 1): if all([i % d == 0 for d in a]) and all([d % i == 0 for d in b]): c += 1 return c if __name__ == "__main__": f = open(os.environ["OUTPUT_PATH"], "w") nm = input().spl...
17.25
74
0.461957
0
0
0
0
0
0
0
0
45
0.081522
29192cb1930eb4fc8b54b5806896af754bbbc8d5
17,628
py
Python
utils.py
LlamaSi/Adaptive-PSGAIL
737cbc68c04d706da6a0bde1cb2a2c3159189f5e
[ "MIT" ]
10
2019-01-27T21:03:31.000Z
2020-09-03T16:26:23.000Z
utils.py
LlamaSi/Adaptive-PSGAIL
737cbc68c04d706da6a0bde1cb2a2c3159189f5e
[ "MIT" ]
1
2019-07-30T14:29:52.000Z
2019-08-12T12:58:37.000Z
utils.py
LlamaSi/Adaptive-PSGAIL
737cbc68c04d706da6a0bde1cb2a2c3159189f5e
[ "MIT" ]
5
2019-03-28T18:54:33.000Z
2022-03-14T06:32:53.000Z
import h5py import numpy as np import os, pdb import tensorflow as tf from rllab.envs.base import EnvSpec from rllab.envs.normalized_env import normalize as normalize_env import rllab.misc.logger as logger from sandbox.rocky.tf.algos.trpo import TRPO from sandbox.rocky.tf.policies.gaussian_mlp_policy import Gaussian...
33.705545
97
0.652144
0
0
0
0
0
0
0
0
2,966
0.168255
291b3aad4ce914a07f4302fc64bb71bcd2cc87d1
8,429
py
Python
setup_py_upgrade.py
asottile/setup-py-upgrade
873c54ec4f112ed0150a8cffcc9990291568d634
[ "MIT" ]
87
2019-02-03T04:53:54.000Z
2022-03-25T07:36:46.000Z
setup_py_upgrade.py
asottile/setup-py-upgrade
873c54ec4f112ed0150a8cffcc9990291568d634
[ "MIT" ]
15
2019-03-12T04:14:35.000Z
2022-02-22T17:35:09.000Z
setup_py_upgrade.py
asottile/setup-py-upgrade
873c54ec4f112ed0150a8cffcc9990291568d634
[ "MIT" ]
8
2019-03-12T13:54:25.000Z
2022-02-22T17:40:17.000Z
import argparse import ast import configparser import io import os.path from typing import Any from typing import Dict from typing import Optional from typing import Sequence METADATA_KEYS = frozenset(( 'name', 'version', 'url', 'download_url', 'project_urls', 'author', 'author_email', 'maintainer', 'maintaine...
36.489177
79
0.553684
3,562
0.422589
0
0
0
0
0
0
1,725
0.204651
291c77c6ee2c7b622d64d133d7665a508bb40300
106
py
Python
main/models/__init__.py
prajnamort/LambdaOJ2
5afc7ceb6022caa244f66032a19ebac14c4448da
[ "MIT" ]
2
2017-09-26T07:25:11.000Z
2021-11-24T04:19:40.000Z
main/models/__init__.py
prajnamort/LambdaOJ2
5afc7ceb6022caa244f66032a19ebac14c4448da
[ "MIT" ]
50
2017-03-31T19:54:21.000Z
2022-03-11T23:14:22.000Z
main/models/__init__.py
prajnamort/LambdaOJ2
5afc7ceb6022caa244f66032a19ebac14c4448da
[ "MIT" ]
7
2017-03-26T07:07:17.000Z
2019-12-05T01:05:41.000Z
from .user import User, MultiUserUpload from .problem import Problem, TestData from .submit import Submit
26.5
39
0.820755
0
0
0
0
0
0
0
0
0
0
291d1bd54ce729e58181e2031ec946c7078f3c67
726
py
Python
2019/tests/test_Advent2019_10.py
davidxbuck/advent2018
eed5424a8008b9c0829f5872ad6cd469ce9f70b9
[ "MIT" ]
1
2021-12-11T02:19:28.000Z
2021-12-11T02:19:28.000Z
2019/tests/test_Advent2019_10.py
davidxbuck/advent2018
eed5424a8008b9c0829f5872ad6cd469ce9f70b9
[ "MIT" ]
null
null
null
2019/tests/test_Advent2019_10.py
davidxbuck/advent2018
eed5424a8008b9c0829f5872ad6cd469ce9f70b9
[ "MIT" ]
1
2020-12-08T04:31:46.000Z
2020-12-08T04:31:46.000Z
# pytest tests import numpy as np from Advent2019_10 import Day10 class TestDay10(): def test_instantiate(self): test = Day10('../tests/test_Advent2019_10a.txt') grid = ['.#..#', '.....', '#####', '....#', '...##'] grid = [li...
30.25
71
0.488981
655
0.902204
0
0
0
0
0
0
100
0.137741
291d74417cd28ab0a723038e9fd04c2e0bc8cdde
370
py
Python
Hash Map/448. Find All Numbers Disappeared in an Array.py
xli1110/LC
3c18b8809c5a21a62903060eef659654e0595036
[ "MIT" ]
2
2021-04-02T11:57:46.000Z
2021-04-02T11:57:47.000Z
Hash Map/448. Find All Numbers Disappeared in an Array.py
xli1110/LC
3c18b8809c5a21a62903060eef659654e0595036
[ "MIT" ]
null
null
null
Hash Map/448. Find All Numbers Disappeared in an Array.py
xli1110/LC
3c18b8809c5a21a62903060eef659654e0595036
[ "MIT" ]
null
null
null
class Solution: def findDisappearedNumbers(self, nums: List[int]) -> List[int]: if len(nums) < 1: raise Exception("Invalid Array") n = len(nums) res = [] s = set() for x in nums: s.add(x) for i in range(1, n + 1): if i not in s: ...
20.555556
67
0.454054
369
0.997297
0
0
0
0
0
0
15
0.040541
291d8e921326cbecc63bc712d0993323051bed1f
691
py
Python
tests/test_demo.py
aaronestrada/flask-restplus-swagger-relative
e951bad6a2c72522ac74f5353a7b0cbe5436f20f
[ "BSD-3-Clause" ]
3
2019-09-27T18:33:54.000Z
2020-03-31T15:32:32.000Z
tests/test_demo.py
aaronestrada/flask-restplus-swagger-relative
e951bad6a2c72522ac74f5353a7b0cbe5436f20f
[ "BSD-3-Clause" ]
1
2019-10-29T20:31:33.000Z
2019-11-04T14:25:08.000Z
tests/test_demo.py
aaronestrada/flask-restplus-swagger-relative
e951bad6a2c72522ac74f5353a7b0cbe5436f20f
[ "BSD-3-Clause" ]
1
2019-09-27T18:33:55.000Z
2019-09-27T18:33:55.000Z
import pytest from tests.test_application import app @pytest.fixture def client(): client = app.test_client() yield client def test_hello_resource(client): """ Test if it is possible to access to /hello resource :param client: Test client object :return: """ response = client.get('/h...
23.827586
114
0.700434
0
0
61
0.088278
77
0.111433
0
0
349
0.505065
291e921dde8646cb27f33c258f33f46413f66a28
1,614
py
Python
01_Introduction to Python/3-functions-and-packages/03_multiple-arguments.py
mohd-faizy/DataScience-With-Python
13ebb10cf9083343056d5b782957241de1d595f9
[ "MIT" ]
5
2021-02-03T14:36:58.000Z
2022-01-01T10:29:26.000Z
01_Introduction to Python/3-functions-and-packages/03_multiple-arguments.py
mohd-faizy/DataScience-With-Python
13ebb10cf9083343056d5b782957241de1d595f9
[ "MIT" ]
null
null
null
01_Introduction to Python/3-functions-and-packages/03_multiple-arguments.py
mohd-faizy/DataScience-With-Python
13ebb10cf9083343056d5b782957241de1d595f9
[ "MIT" ]
3
2021-02-08T00:31:16.000Z
2022-03-17T13:52:32.000Z
''' 03 - Multiple arguments In the previous exercise, the square brackets around imag in the documentation showed us that the imag argument is optional. But Python also uses a different way to tell users about arguments being optional. Have a look at the documentation of sorted() by typing help(sorted) in the IPython...
35.086957
99
0.761462
0
0
0
0
0
0
0
0
1,473
0.912639
291f1330f75cfc0ca15457846d8102779d88cf8f
790
py
Python
Taller_Algoritmos_02/Ejercicio_10.py
Angelio01/algoritmos_programacion-
63cb4cd4cfa01f504bf9ed927dcebf2466d6f60d
[ "MIT" ]
null
null
null
Taller_Algoritmos_02/Ejercicio_10.py
Angelio01/algoritmos_programacion-
63cb4cd4cfa01f504bf9ed927dcebf2466d6f60d
[ "MIT" ]
null
null
null
Taller_Algoritmos_02/Ejercicio_10.py
Angelio01/algoritmos_programacion-
63cb4cd4cfa01f504bf9ed927dcebf2466d6f60d
[ "MIT" ]
1
2021-10-29T19:40:32.000Z
2021-10-29T19:40:32.000Z
""" Entradas: 3 Valores flotantes que son el valor de diferentes monedas Chelines autriacos --> float --> x Dramas griegos --> float --> z Pesetas --> float --> w Salidas 4 valores flotantes que es la conversión de las anteriores monedas Pesetas --> float --> x Francos franceses --> float --> z Dolares --> float...
28.214286
180
0.679747
0
0
0
0
0
0
0
0
650
0.819672
292038ace9f7b5e532a8a7cf41828bfb945d013c
2,844
py
Python
stardist/stardist_impl/predict_stardist_3d.py
constantinpape/deep-cell
d69cc9710af07428c79e5642febe3a39e33d11a4
[ "MIT" ]
null
null
null
stardist/stardist_impl/predict_stardist_3d.py
constantinpape/deep-cell
d69cc9710af07428c79e5642febe3a39e33d11a4
[ "MIT" ]
1
2020-07-08T13:16:32.000Z
2020-07-08T13:18:24.000Z
stardist/stardist_impl/predict_stardist_3d.py
constantinpape/deep-cell
d69cc9710af07428c79e5642febe3a39e33d11a4
[ "MIT" ]
null
null
null
import argparse import os from glob import glob import imageio from tqdm import tqdm from csbdeep.utils import normalize from stardist.models import StarDist3D def get_image_files(root, image_folder, ext): # get the image and label mask paths and validate them image_pattern = os.path.join(root, image_folder...
36.935065
112
0.710267
0
0
0
0
0
0
0
0
885
0.311181
29204de0e1568db751699c8bf504b18e9d16ff4b
4,049
py
Python
estacionamientos/forms.py
ShadowManu/SAGE
999626669c9a15755ed409e57864851eb27dc2c2
[ "MIT" ]
null
null
null
estacionamientos/forms.py
ShadowManu/SAGE
999626669c9a15755ed409e57864851eb27dc2c2
[ "MIT" ]
null
null
null
estacionamientos/forms.py
ShadowManu/SAGE
999626669c9a15755ed409e57864851eb27dc2c2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from django import forms from estacionamientos.models import Estacionamiento, Reserva, Pago class EstacionamientosForm(forms.ModelForm): nombre_duenio = forms.CharField(widget=forms.TextInput( attrs={'class': 'form-control', 'placeholder': 'Nombre del Dueño'})...
49.987654
107
0.646826
3,897
0.959852
0
0
0
0
0
0
1,366
0.336453
29206dba9d120e61ae35f770db7e748c8ab7a64c
6,095
py
Python
src/krylov/gmres.py
nschloe/krylov
58813233ff732111aa56f7b1d71908fda78080be
[ "MIT" ]
36
2020-06-17T15:51:16.000Z
2021-12-30T04:33:11.000Z
src/krylov/gmres.py
nschloe/krylov
58813233ff732111aa56f7b1d71908fda78080be
[ "MIT" ]
26
2020-08-27T17:38:15.000Z
2021-11-11T20:00:07.000Z
src/krylov/gmres.py
nschloe/krylov
58813233ff732111aa56f7b1d71908fda78080be
[ "MIT" ]
5
2021-05-20T19:47:44.000Z
2022-01-03T00:20:33.000Z
""" Y. Saad, M. Schultz, GMRES: a generalized minimal residual algorithm for solving nonsymmetric linear systems, SIAM J. Sci. and Stat. Comput., 7(3), 856–869, 1986, <https://doi.org/10.1137/0907058>. Other implementations: <https://petsc.org/release/docs/manualpages/KSP/KSPGMRES.html> """ from __future__ import anno...
27.331839
88
0.55767
0
0
0
0
0
0
0
0
994
0.163031
2920920b3d2a50539ee42e0e75f03efbd2cffd7f
7,321
py
Python
backend-tests/tests/test_account_suspension.py
drewmoseley/integration
37f6374eb5faa710d14861cf5ed82e8f9cf0b149
[ "Apache-2.0" ]
null
null
null
backend-tests/tests/test_account_suspension.py
drewmoseley/integration
37f6374eb5faa710d14861cf5ed82e8f9cf0b149
[ "Apache-2.0" ]
98
2020-09-21T06:00:11.000Z
2022-03-28T01:17:19.000Z
backend-tests/tests/test_account_suspension.py
drewmoseley/integration
37f6374eb5faa710d14861cf5ed82e8f9cf0b149
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Northern.tech AS # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
31.021186
84
0.615353
5,220
0.713017
870
0.118836
944
0.128944
0
0
1,262
0.172381
292246bd8b4a4adc3e588a4c80c7a0ed3da6e0ed
8,985
py
Python
src/RepairManager/rules/ecc_reboot_node_rule.py
RichardZhaoW/DLWorkspace
27d3a3a82e59305bdc67dbfd69098d493f8b3cd5
[ "MIT" ]
2
2019-10-16T23:54:34.000Z
2019-11-07T00:08:32.000Z
src/RepairManager/rules/ecc_reboot_node_rule.py
RichardZhaoW/DLWorkspace
27d3a3a82e59305bdc67dbfd69098d493f8b3cd5
[ "MIT" ]
null
null
null
src/RepairManager/rules/ecc_reboot_node_rule.py
RichardZhaoW/DLWorkspace
27d3a3a82e59305bdc67dbfd69098d493f8b3cd5
[ "MIT" ]
null
null
null
import os, sys sys.path.append(os.path.dirname(os.path.abspath(__file__))) import json import logging import yaml import requests import time from actions.migrate_job_action import MigrateJobAction from actions.send_alert_action import SendAlertAction from actions.reboot_node_action import RebootNodeAction from action...
45.609137
114
0.650863
7,280
0.810239
0
0
0
0
0
0
1,779
0.197997
292271c92e27cc20ceca6c25b6dec338877c3ea5
2,735
py
Python
work/dib-ipa-element/virtmedia-netconf/ironic-bmc-hardware-manager/src/ironic_bmc_hardware_manager/bmc.py
alexandruavadanii/ipa-deployer
a15c349823c65b15ac6a72a73805c2cc342cb80c
[ "Apache-2.0" ]
null
null
null
work/dib-ipa-element/virtmedia-netconf/ironic-bmc-hardware-manager/src/ironic_bmc_hardware_manager/bmc.py
alexandruavadanii/ipa-deployer
a15c349823c65b15ac6a72a73805c2cc342cb80c
[ "Apache-2.0" ]
null
null
null
work/dib-ipa-element/virtmedia-netconf/ironic-bmc-hardware-manager/src/ironic_bmc_hardware_manager/bmc.py
alexandruavadanii/ipa-deployer
a15c349823c65b15ac6a72a73805c2cc342cb80c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Nokia # # 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, softwa...
32.951807
95
0.638026
1,977
0.722852
0
0
0
0
0
0
963
0.352102
2922d150cdfae741ee2f9afa07a050efc52cf07f
2,344
py
Python
museum_site/context_processors.py
DrDos0016/z2
b63e77129fefcb4f990ee1cb9952f4f708ee3a2b
[ "MIT" ]
3
2017-05-01T19:53:57.000Z
2018-08-27T20:14:43.000Z
museum_site/context_processors.py
DrDos0016/z2
b63e77129fefcb4f990ee1cb9952f4f708ee3a2b
[ "MIT" ]
null
null
null
museum_site/context_processors.py
DrDos0016/z2
b63e77129fefcb4f990ee1cb9952f4f708ee3a2b
[ "MIT" ]
1
2018-08-27T20:14:46.000Z
2018-08-27T20:14:46.000Z
from django.core.cache import cache from datetime import datetime from museum_site.models.detail import Detail from museum_site.models.file import File from museum_site.constants import TERMS_DATE from museum_site.common import ( DEBUG, EMAIL_ADDRESS, BOOT_TS, CSS_INCLUDES, UPLOAD_CAP, env_from_host, qs_sans ...
30.441558
78
0.615614
0
0
0
0
0
0
0
0
632
0.269625
29240155883a13930b0a3ee6e6cac004ba5b943f
671
py
Python
misago/users/views/avatarserver.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
1
2017-07-25T03:04:36.000Z
2017-07-25T03:04:36.000Z
misago/users/views/avatarserver.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
misago/users/views/avatarserver.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.contrib.staticfiles.templatetags.staticfiles import static from django.shortcuts import redirect from misago.conf import settings UserModel = get_user_model() def user_avatar(request, pk, size): size = int(size) try: user = UserModel.objec...
23.964286
70
0.724292
0
0
0
0
0
0
0
0
11
0.016393
2924b038d09501817eb856ed997e3ffe8a6813db
14,501
py
Python
csbdeep/internals/nets.py
papkov/CSBDeep
5624919fa71007bb2258592927e267967c62e25e
[ "BSD-3-Clause" ]
2
2019-07-20T08:55:29.000Z
2019-07-20T09:00:45.000Z
csbdeep/internals/nets.py
papkov/CSBDeep
5624919fa71007bb2258592927e267967c62e25e
[ "BSD-3-Clause" ]
null
null
null
csbdeep/internals/nets.py
papkov/CSBDeep
5624919fa71007bb2258592927e267967c62e25e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, unicode_literals, absolute_import, division from six.moves import range, zip, map, reduce, filter from keras.layers import Input, Conv2D, Conv3D, Activation, Lambda from keras.models import Model from keras.layers.merge import Add, Concatenate import tensorflow as tf from keras i...
42.65
194
0.626371
0
0
0
0
0
0
0
0
6,432
0.443556
2926efa5e44ae3f3f146e72b77c97765b7854b95
1,602
py
Python
src/inf/runtime_data.py
feagi/feagi-core
d83c51480fcbe153fa14b2360b4d61f6ae4e2811
[ "Apache-2.0" ]
11
2020-02-18T16:03:10.000Z
2021-12-06T19:53:06.000Z
src/inf/runtime_data.py
feagi/feagi-core
d83c51480fcbe153fa14b2360b4d61f6ae4e2811
[ "Apache-2.0" ]
34
2019-12-17T04:59:42.000Z
2022-01-18T20:58:46.000Z
src/inf/runtime_data.py
feagi/feagi-core
d83c51480fcbe153fa14b2360b4d61f6ae4e2811
[ "Apache-2.0" ]
3
2019-12-16T06:09:56.000Z
2020-10-18T12:01:31.000Z
parameters = {} genome = {} genome_stats = {} genome_test_stats = [] brain = {} cortical_list = [] cortical_map = {} intercortical_mapping = [] block_dic = {} upstream_neurons = {} memory_list = {} activity_stats = {} temp_neuron_list = [] original_genome_id = [] fire_list = [] termination_flag = False variation_counte...
20.025
65
0.737828
0
0
0
0
0
0
0
0
127
0.079276
2928594f2134be43b667f4c09f4d5b6dedb23ea3
494
py
Python
scripts/topo_countries.py
taufikhe/Censof-Mini-Project
44ced8c3176a58705de4d247c3ec79c664a4951f
[ "MIT" ]
null
null
null
scripts/topo_countries.py
taufikhe/Censof-Mini-Project
44ced8c3176a58705de4d247c3ec79c664a4951f
[ "MIT" ]
null
null
null
scripts/topo_countries.py
taufikhe/Censof-Mini-Project
44ced8c3176a58705de4d247c3ec79c664a4951f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import subprocess from geonamescache import GeonamesCache gc = GeonamesCache() toposrc = '../data/states-provinces.json' for iso2, country in gc.get_countries().items(): iso3 = country['iso3'] topojson = 'mapshaper -i {0} -filter \'"{1}" == adm0_a3\' -filter-fiel...
32.933333
115
0.694332
0
0
0
0
0
0
0
0
219
0.44332
29288c1ce5e2846258708e5fc3231b1fb34cbf4a
10,768
py
Python
nordb/database/nordic2sql.py
MrCubanfrog/NorDB
8348733d10799e9ae40744fbd7b200fcc09a9a3a
[ "MIT" ]
1
2021-06-08T20:46:10.000Z
2021-06-08T20:46:10.000Z
nordb/database/nordic2sql.py
MrCubanfrog/NorDB
8348733d10799e9ae40744fbd7b200fcc09a9a3a
[ "MIT" ]
null
null
null
nordb/database/nordic2sql.py
MrCubanfrog/NorDB
8348733d10799e9ae40744fbd7b200fcc09a9a3a
[ "MIT" ]
null
null
null
""" This module contains all information for pushing a NordicEvent object into the database. Functions and Classes --------------------- """ import psycopg2 import os import re import datetime from nordb.core import usernameUtilities from nordb.database import creationInfo INSERT_COMMANDS = { 1:...
42.393701
157
0.474554
0
0
0
0
0
0
0
0
3,946
0.366456
29289d486b584b87f177ccbe912f80c30f1f15ef
973
py
Python
movie_trailer_website/media.py
mradenovic/movie-trailer-website
08f53af08f9aeaa1deb5a10fa391e02aa7274ca3
[ "MIT" ]
null
null
null
movie_trailer_website/media.py
mradenovic/movie-trailer-website
08f53af08f9aeaa1deb5a10fa391e02aa7274ca3
[ "MIT" ]
null
null
null
movie_trailer_website/media.py
mradenovic/movie-trailer-website
08f53af08f9aeaa1deb5a10fa391e02aa7274ca3
[ "MIT" ]
null
null
null
"""This module contains class definitions for storing media files""" import webbrowser class Movie(): """Movie class defines movies. Attributes: movie_title (str): Title of the movie movie_storyline (str): Sort description of the movie poster_image (str): Url of the poster image ...
33.551724
84
0.651593
883
0.907503
0
0
0
0
0
0
657
0.675231
292a0a9f6e7bb7e898c14f4da99751f0b33adf70
1,700
py
Python
201-vmss-bottle-autoscale/workserver.py
kollexy/azure-quickstart-templates
02dd10e4004db1f52e772a474d460620ff975270
[ "MIT" ]
10
2020-03-17T14:22:57.000Z
2022-02-12T02:42:30.000Z
201-vmss-bottle-autoscale/workserver.py
kollexy/azure-quickstart-templates
02dd10e4004db1f52e772a474d460620ff975270
[ "MIT" ]
17
2020-08-12T09:28:42.000Z
2021-10-11T05:16:45.000Z
201-vmss-bottle-autoscale/workserver.py
gjlumsden/azure-quickstart-templates
70935bff823b8650386f6d3223dc199a66c4efd2
[ "MIT" ]
16
2019-06-28T09:49:29.000Z
2022-02-05T16:35:36.000Z
# workserver.py - simple HTTP server with a do_work / stop_work API # GET /do_work activates a worker thread which uses CPU # GET /stop_work signals worker thread to stop import math import socket import threading import time from bottle import route, run hostname = socket.gethostname() hostport = 9000 keepworking = ...
25
106
0.657059
0
0
0
0
306
0.18
0
0
809
0.475882
292abc115693fa0811cb421e9f5c9743d0e6e3a6
7,521
py
Python
year_3/databases_sem1/lab1/cli.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/databases_sem1/lab1/cli.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/databases_sem1/lab1/cli.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
from maxdb import DB def runtime_on_any_exception(func): def decorate(*args, **kwargs): try: func(*args, **kwargs) except: raise RuntimeError return decorate class CLIUtils(object): DEFAULT_PATH = 'storage.json' def __init__(self): self._db = None ...
37.049261
108
0.505252
7,310
0.971945
0
0
5,059
0.67265
0
0
2,350
0.312458
292adf5e7c8f6222d531917fc0a7844f832f27cb
1,348
py
Python
Ar_Script/past/eg_用户信息用户界面.py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
null
null
null
Ar_Script/past/eg_用户信息用户界面.py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
1
2020-01-19T01:19:57.000Z
2020-01-19T01:19:57.000Z
Ar_Script/past/eg_用户信息用户界面.py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
null
null
null
import easygui as g # judge=1 # def judge_null(tmp): # if tmp.isspace()or len(tmp)==0: # return judge==0 # # while 1: # user_info=g.multenterbox(title='账号中心', # msg='【*用户名】为必填项\t【*真实姓名】为必填项\t【*手机号码】为必填项\t【*E-mail】为必填项', # fields=['*用户名','*真实姓名','固定电话','*手...
29.304348
85
0.568249
0
0
0
0
0
0
0
0
1,172
0.700957
292ba35b429971f678a3c9a45a66bf36fb9ad5d7
962
py
Python
examples/pspm_pupil/model_defs.py
fmelinscak/cognibench
372513b8756a342c0df222dcea5ff6d1d69fbcec
[ "MIT" ]
3
2020-07-31T00:42:40.000Z
2021-03-19T03:08:19.000Z
examples/pspm_pupil/model_defs.py
fmelinscak/cognibench
372513b8756a342c0df222dcea5ff6d1d69fbcec
[ "MIT" ]
null
null
null
examples/pspm_pupil/model_defs.py
fmelinscak/cognibench
372513b8756a342c0df222dcea5ff6d1d69fbcec
[ "MIT" ]
1
2020-11-13T23:13:34.000Z
2020-11-13T23:13:34.000Z
from cognibench.models import CNBModel from cognibench.capabilities import ContinuousAction, ContinuousObservation from cognibench.continuous import ContinuousSpace from cognibench.models.wrappers import MatlabWrapperMixin class PsPMModel(MatlabWrapperMixin, CNBModel, ContinuousAction, ContinuousObservation): nam...
34.357143
87
0.705821
736
0.765073
0
0
0
0
0
0
12
0.012474
292c8b618a05d121aa88ca4e594589616cd5c14c
254
py
Python
core/layouts/pixel_list.py
TheGentlemanOctopus/oracle
2857b9c1886548d9aefcb480ce6e77169ee9e7ef
[ "MIT" ]
null
null
null
core/layouts/pixel_list.py
TheGentlemanOctopus/oracle
2857b9c1886548d9aefcb480ce6e77169ee9e7ef
[ "MIT" ]
6
2018-05-13T14:44:20.000Z
2018-07-10T10:12:08.000Z
core/layouts/pixel_list.py
TheGentlemanOctopus/oracle
2857b9c1886548d9aefcb480ce6e77169ee9e7ef
[ "MIT" ]
null
null
null
from layout import Layout class PixelList(Layout): """ A simple generic layout, just a list of pixels """ def __init__(self, pixels): """ pixels is a list of pixel objects """ self.pixels = pixels
21.166667
54
0.562992
226
0.889764
0
0
0
0
0
0
127
0.5
292db3dd254935b6485aa3e5a0431e5e9297d7e2
2,328
py
Python
test/programytest/clients/restful/test_config.py
minhdc/documented-programy
fe947d68c0749201fbe93ee5644d304235d0c626
[ "MIT" ]
null
null
null
test/programytest/clients/restful/test_config.py
minhdc/documented-programy
fe947d68c0749201fbe93ee5644d304235d0c626
[ "MIT" ]
null
null
null
test/programytest/clients/restful/test_config.py
minhdc/documented-programy
fe947d68c0749201fbe93ee5644d304235d0c626
[ "MIT" ]
null
null
null
import unittest from programy.config.file.yaml_file import YamlConfigurationFile from programy.clients.restful.config import RestConfiguration from programy.clients.events.console.config import ConsoleConfiguration class RestConfigurationTests(unittest.TestCase): def test_init(self): yaml = YamlConfigura...
36.375
93
0.660653
2,110
0.906357
0
0
0
0
0
0
557
0.239261
29313d16ae55bd60b3205923aa0959f4632a0038
1,211
py
Python
Assignments/06.py
zexhan17/Data-Structures-and-Algorithms-using-Python
b5fd3d47c2eb7bf93eb88b276799d6663cd602e4
[ "MIT" ]
null
null
null
Assignments/06.py
zexhan17/Data-Structures-and-Algorithms-using-Python
b5fd3d47c2eb7bf93eb88b276799d6663cd602e4
[ "MIT" ]
null
null
null
Assignments/06.py
zexhan17/Data-Structures-and-Algorithms-using-Python
b5fd3d47c2eb7bf93eb88b276799d6663cd602e4
[ "MIT" ]
null
null
null
# Write a recursive function to count the number of nodes in a Tree. (first do your self then see code) def count_nodes(self): count = 1 left_count = 0 right_count = 0 if self.left: left_count = self.left.count_nodes() if self.right: right_count = self.right.count_nodes() return count + left_count + rig...
31.868421
201
0.734104
0
0
0
0
0
0
0
0
650
0.536746
29320044fb1e6ea2d550bb85edcedd897afb61eb
28,020
py
Python
flask_app.py
mdaeron/clumpycrunch
463d9241477acc557c4635b4d4f1f5338bf37617
[ "BSD-3-Clause" ]
null
null
null
flask_app.py
mdaeron/clumpycrunch
463d9241477acc557c4635b4d4f1f5338bf37617
[ "BSD-3-Clause" ]
1
2020-05-27T21:09:16.000Z
2020-05-27T21:09:16.000Z
flask_app.py
mdaeron/clumpycrunch
463d9241477acc557c4635b4d4f1f5338bf37617
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python3 # from datetime import datetime # from random import choices # from string import ascii_lowercase from flask import Flask, request, render_template, Response, send_file from flaskext.markdown import Markdown from D47crunch import D47data, pretty_table, make_csv, smart_type from D47crunch import...
44.975923
300
0.715667
0
0
0
0
635
0.022651
0
0
18,604
0.663623
29333564f5a91482a951f19d8cd3aa5ce9a5bfe9
6,505
py
Python
rubric_sampling/experiments/train_rnn.py
YangAzure/rubric-sampling-public
24e8c6bc154633566f93a20661c67484029c3591
[ "MIT" ]
20
2019-01-29T03:21:40.000Z
2022-03-04T08:52:24.000Z
rubric_sampling/experiments/train_rnn.py
YangAzure/rubric-sampling-public
24e8c6bc154633566f93a20661c67484029c3591
[ "MIT" ]
null
null
null
rubric_sampling/experiments/train_rnn.py
YangAzure/rubric-sampling-public
24e8c6bc154633566f93a20661c67484029c3591
[ "MIT" ]
5
2019-08-31T11:49:23.000Z
2021-03-18T13:22:58.000Z
r"""Train a neural network to predict feedback for a program string.""" from __future__ import division from __future__ import print_function from __future__ import absolute_import import os import sys import random import numpy as np from tqdm import tqdm import torch import torch.optim as optim import torch.utils....
39.907975
107
0.632283
0
0
0
0
0
0
0
0
584
0.089777
2933954edd28122f5eaf709201de52733e9a677c
1,232
py
Python
python/code.py
Warabhi/ga-learner-dsmp-repo
610a7e6cc161a1fec26911f4e054f2a325b5f5fc
[ "MIT" ]
null
null
null
python/code.py
Warabhi/ga-learner-dsmp-repo
610a7e6cc161a1fec26911f4e054f2a325b5f5fc
[ "MIT" ]
null
null
null
python/code.py
Warabhi/ga-learner-dsmp-repo
610a7e6cc161a1fec26911f4e054f2a325b5f5fc
[ "MIT" ]
null
null
null
# -------------- # Code starts here class_1 = ['Geoffrey Hinton' , 'Andrew Ng' , 'Sebastian Raschka' , 'Yoshua Bengio'] class_2 = ['Hilary Mason' , 'Carla Gentry' , 'Corinna Cortes'] new_class = class_1 + class_2 print(new_class) new_class.append('Peter Warden') print(new_class) del new_class[5] print(new_class) # Code...
23.245283
90
0.668019
0
0
0
0
0
0
0
0
501
0.406656
2934aab8985e093039352c584291d05e82d940ca
1,629
py
Python
checklog.py
mtibbett67/pymodules
9a7dcd16fb2107029edaabde766c1dbdb769713c
[ "MIT" ]
null
null
null
checklog.py
mtibbett67/pymodules
9a7dcd16fb2107029edaabde766c1dbdb769713c
[ "MIT" ]
null
null
null
checklog.py
mtibbett67/pymodules
9a7dcd16fb2107029edaabde766c1dbdb769713c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' NAME: checklog.py DESCRIPTION: This script checks the tail of the log file and lists the disk space CREATED: Sun Mar 15 22:53:54 2015 VERSION: 1.0 AUTHOR: Mark Tibbett AUTHOR_EMAIL: mtibbett67@gmail.com URL: N/A DOWNLOAD_URL: N/A INSTALL_REQUIRES: [] PACKAGES:...
16.793814
73
0.581952
0
0
0
0
0
0
0
0
1,037
0.636587
29351a72a75c3ab6afce56723dbd2096b63f981a
726
py
Python
algorithms/implementation/minimum_distances.py
avenet/hackerrank
e522030a023af4ff50d5fc64bd3eba30144e006c
[ "MIT" ]
null
null
null
algorithms/implementation/minimum_distances.py
avenet/hackerrank
e522030a023af4ff50d5fc64bd3eba30144e006c
[ "MIT" ]
null
null
null
algorithms/implementation/minimum_distances.py
avenet/hackerrank
e522030a023af4ff50d5fc64bd3eba30144e006c
[ "MIT" ]
null
null
null
n = int(input().strip()) items = [ int(A_temp) for A_temp in input().strip().split(' ') ] items_map = {} result = None for i, item in enumerate(items): if item not in items_map: items_map[item] = [i] else: items_map[item].append(i) for _, item_indexes in items_map.items(): it...
22.6875
56
0.566116
0
0
0
0
0
0
0
0
3
0.004132
29378cd6da10a2986ee1d848cbb7564bb46bcde6
15,518
py
Python
spore/spore.py
pavankkota/SPoRe
3062368a84130ec64bdbd7ca66de7f2b7287330e
[ "MIT" ]
1
2021-06-23T15:51:57.000Z
2021-06-23T15:51:57.000Z
spore/spore.py
pavankkota/SPoRe
3062368a84130ec64bdbd7ca66de7f2b7287330e
[ "MIT" ]
null
null
null
spore/spore.py
pavankkota/SPoRe
3062368a84130ec64bdbd7ca66de7f2b7287330e
[ "MIT" ]
null
null
null
""" Sparse Poisson Recovery (SPoRe) module for solving Multiple Measurement Vector problem with Poisson signals (MMVP) by batch stochastic gradient ascent and Monte Carlo integration Authors: Pavan Kota, Daniel LeJeune Reference: [1] P. K. Kota, D. LeJeune, R. A. Drezek, and R. G. Baraniuk, "Extreme Compressed Se...
41.491979
169
0.543756
14,965
0.964364
0
0
1,337
0.086158
0
0
8,480
0.546462
2938d769b525d23fcc668a6eb476387c4aae2966
734
py
Python
306/translate_cds.py
jsh/pybites
73c79ed962c15247cead173b17f69f248ea51b96
[ "MIT" ]
null
null
null
306/translate_cds.py
jsh/pybites
73c79ed962c15247cead173b17f69f248ea51b96
[ "MIT" ]
null
null
null
306/translate_cds.py
jsh/pybites
73c79ed962c15247cead173b17f69f248ea51b96
[ "MIT" ]
null
null
null
"""Use translation table to translate coding sequence to protein.""" from Bio.Data import CodonTable # type: ignore from Bio.Seq import Seq # type: ignore def translate_cds(cds: str, translation_table: str) -> str: """Translate coding sequence to protein. :param cds: str: DNA coding sequence (CDS...
36.7
71
0.700272
0
0
0
0
0
0
0
0
384
0.523161