hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
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
209
max_issues_repo_name
stringlengths
5
121
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
209
max_forks_repo_name
stringlengths
5
121
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
d469ead197ca2f194f3552c9f555d20d3b161a42
1,731
py
Python
setup.py
BhagyaDeepika/git
28439efd97ffc2f1e4a8c54324ab67116471672e
[ "MIT" ]
null
null
null
setup.py
BhagyaDeepika/git
28439efd97ffc2f1e4a8c54324ab67116471672e
[ "MIT" ]
null
null
null
setup.py
BhagyaDeepika/git
28439efd97ffc2f1e4a8c54324ab67116471672e
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name = 'SAMPLE', # How you named your package folder (MyLib) packages = ['SAMPLE'], # Chose the same as "name" version = '0.1', # Start with a small number and increase it with every change you make license='MIT', # Chose a license from here: ht...
59.689655
147
0.636049
08549106478ff8941903eeb1db87a631abcbe7a8
287
py
Python
demo-django/demo/urls.py
JonathanRowe/python-saml-master
81dad60667191e6e1443a770bf779f175ed6beac
[ "MIT" ]
null
null
null
demo-django/demo/urls.py
JonathanRowe/python-saml-master
81dad60667191e6e1443a770bf779f175ed6beac
[ "MIT" ]
2
2020-06-06T00:11:05.000Z
2021-06-10T22:19:47.000Z
demo-django/demo/urls.py
JonathanRowe/python-saml-master
81dad60667191e6e1443a770bf779f175ed6beac
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.contrib import admin from demo.views import index, attrs, metadata admin.autodiscover() urlpatterns = [ url(r'^$', index, name='index'), # url(r'^attrs/$', attrs, name='attrs'), url(r'^metadata/$', metadata, name='metadata') ]
22.076923
50
0.672474
8480c942bea87b58afed55bc7eb0d8924e345f8d
598
py
Python
app/mails.py
i3Cheese/MatBoy
29dd65f07393087758179d14d4b40d5974816759
[ "WTFPL" ]
10
2020-04-24T02:39:22.000Z
2021-07-22T13:12:55.000Z
app/mails.py
i3Cheese/MatBoy
29dd65f07393087758179d14d4b40d5974816759
[ "WTFPL" ]
null
null
null
app/mails.py
i3Cheese/MatBoy
29dd65f07393087758179d14d4b40d5974816759
[ "WTFPL" ]
4
2020-05-31T12:34:55.000Z
2020-06-25T17:35:43.000Z
from flask_mail import Message from app import app, mail from config import config def send_message(msg): """Send message on email SMPT""" with app.app_context(): mail.send(msg) def send_messages(subject, recipients, html, sender=config.MAIL_DEFAULT_SENDER, ): """Send emails to all recipients on...
26
82
0.593645
52504304edf96b7653fda4c06ad60f94082a2716
4,999
py
Python
sdk/storage/azure-mgmt-storagecache/azure/mgmt/storagecache/aio/operations/_skus_operations.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/storage/azure-mgmt-storagecache/azure/mgmt/storagecache/aio/operations/_skus_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/storage/azure-mgmt-storagecache/azure/mgmt/storagecache/aio/operations/_skus_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.862385
133
0.660932
3984fa51230c91c31fdc593b31478655ef2015d9
1,914
py
Python
utils.py
flaviofilipe/Live-Divulgador
5f02604efc5bb2ef7f994e35c866a993a4ea92ec
[ "MIT" ]
null
null
null
utils.py
flaviofilipe/Live-Divulgador
5f02604efc5bb2ef7f994e35c866a993a4ea92ec
[ "MIT" ]
null
null
null
utils.py
flaviofilipe/Live-Divulgador
5f02604efc5bb2ef7f994e35c866a993a4ea92ec
[ "MIT" ]
null
null
null
import os import sys import pandas as pd import time import requests import shutil from PIL import Image # Caminho absoluto deste ficheiro abs_path = os.path.abspath(__file__) # Caminho desta pasta dir_path = os.path.dirname(abs_path) # Caminho desta pasta + o ficheiro que eu quero acessar FILE = os.p...
23.060241
82
0.680773
9727e939fc968221611a201214ef866088ae9524
1,750
py
Python
clancy_database/management/commands/export_clancy_lemmas.py
arthurian/visualizing_russian_tools
65fd37839dc0650bb25d1f98904da5b79ae1a754
[ "BSD-3-Clause" ]
null
null
null
clancy_database/management/commands/export_clancy_lemmas.py
arthurian/visualizing_russian_tools
65fd37839dc0650bb25d1f98904da5b79ae1a754
[ "BSD-3-Clause" ]
null
null
null
clancy_database/management/commands/export_clancy_lemmas.py
arthurian/visualizing_russian_tools
65fd37839dc0650bb25d1f98904da5b79ae1a754
[ "BSD-3-Clause" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from django.conf import settings from django.db.models import Q import time import csv import sys from clancy_database.models import Lemma class Command(BaseCommand): help = 'Exports a list of lemmas from the database to standard output.' def...
38.043478
123
0.644571
803f3fac86087aef433994c561ac5ebc03de0718
1,297
py
Python
demo/guide-python/sklearn_parallel.py
cnheider/xgboost
e7fbc8591fa7277ee4c474b7371c48c11b34cbde
[ "Apache-2.0" ]
11,356
2017-12-08T19:42:32.000Z
2022-03-31T16:55:25.000Z
demo/guide-python/sklearn_parallel.py
cnheider/xgboost
e7fbc8591fa7277ee4c474b7371c48c11b34cbde
[ "Apache-2.0" ]
2,402
2017-12-08T22:31:01.000Z
2022-03-28T19:25:52.000Z
demo/guide-python/sklearn_parallel.py
cnheider/xgboost
e7fbc8591fa7277ee4c474b7371c48c11b34cbde
[ "Apache-2.0" ]
1,343
2017-12-08T19:47:19.000Z
2022-03-26T11:31:36.000Z
import os if __name__ == "__main__": # NOTE: on posix systems, this *has* to be here and in the # `__name__ == "__main__"` clause to run XGBoost in parallel processes # using fork, if XGBoost was built with OpenMP support. Otherwise, if you # build XGBoost without OpenMP support, you can use fork, whic...
36.027778
78
0.647648
6b36a89e6ed63a4e2b620d42affd2d07eac9ef6f
3,896
py
Python
experiments/helper.py
tennisonliu/fair-cocco
010ad85dac7c844089af172c99e2eba95685edd7
[ "MIT" ]
null
null
null
experiments/helper.py
tennisonliu/fair-cocco
010ad85dac7c844089af172c99e2eba95685edd7
[ "MIT" ]
null
null
null
experiments/helper.py
tennisonliu/fair-cocco
010ad85dac7c844089af172c99e2eba95685edd7
[ "MIT" ]
null
null
null
''' Helper functions to compute accuracy, fairness metrics ''' import sys sys.path.append('.') import torch from fair_cocco import compute_cond_cocco, compute_indep_cocco from config import DEVICE from random import seed SEED = 0 seed(SEED) torch.manual_seed(SEED) def entropy_to_prob(entropy): ''' Convert NN...
36.411215
131
0.580082
28799f10dc7d8c1f09147d12cb2d83134073a423
53,056
py
Python
woot/apps/catalog/migrations/0097_auto__add_space.py
Makeystreet/makeystreet
761331de52207227baf6f8d161ab6df1747f8ef3
[ "Apache-2.0" ]
1
2015-06-27T13:25:28.000Z
2015-06-27T13:25:28.000Z
woot/apps/catalog/migrations/0097_auto__add_space.py
Makeystreet/makeystreet
761331de52207227baf6f8d161ab6df1747f8ef3
[ "Apache-2.0" ]
1
2015-07-02T20:18:53.000Z
2015-07-02T20:18:53.000Z
woot/apps/catalog/migrations/0097_auto__add_space.py
Makeystreet/makeystreet
761331de52207227baf6f8d161ab6df1747f8ef3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Space' db.create_table(u'catalog_space', ( (u...
78.718101
224
0.558825
3a40003ba9e044a1463528e270b5e7c0463392f7
1,329
py
Python
plusseg/utils/registry.py
tonysy/SegmentationToolbox.PyTorch
4d487dd81d0101bc5cdb7b2337776fdf1b5546ff
[ "MIT" ]
13
2019-07-26T11:33:15.000Z
2021-09-22T06:48:52.000Z
plusseg/utils/registry.py
tonysy/SegmentationToolbox.PyTorch
4d487dd81d0101bc5cdb7b2337776fdf1b5546ff
[ "MIT" ]
1
2018-11-05T14:07:07.000Z
2018-11-05T14:07:07.000Z
plusseg/utils/registry.py
tonysy/SegmentationToolbox.PyTorch
4d487dd81d0101bc5cdb7b2337776fdf1b5546ff
[ "MIT" ]
2
2019-07-26T11:33:32.000Z
2020-03-04T13:47:50.000Z
def _register_generic(module_dict, module_name, module): assert module_name not in module_dict module_dict[module_name] = module class Registry(dict): """ A helper class for managing registering modules, it extends a dictionary and provide a register function Eg. create a registery som...
32.414634
108
0.629044
a4f1cc2114ad27115c1ebaf7fb808e02476b962a
839
py
Python
images/migrations/0003_auto_20180618_2009.py
lucasLB7/PIckyBucket
7e29d5934d6b3b04c5a86435a2b67e2f4009a682
[ "Unlicense" ]
null
null
null
images/migrations/0003_auto_20180618_2009.py
lucasLB7/PIckyBucket
7e29d5934d6b3b04c5a86435a2b67e2f4009a682
[ "Unlicense" ]
null
null
null
images/migrations/0003_auto_20180618_2009.py
lucasLB7/PIckyBucket
7e29d5934d6b3b04c5a86435a2b67e2f4009a682
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-06-18 17:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('images', '0002_auto_20180617_2004'), ] operations = [ migrations.CreateModel(...
24.676471
114
0.555423
a6f4b21a6a167ac66765a1fbc336c89a9ebad6ab
239
py
Python
docs/user_guide/operation/scripts/examples/argus/extraction/jan/EvacPipette1.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
docs/user_guide/operation/scripts/examples/argus/extraction/jan/EvacPipette1.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
docs/user_guide/operation/scripts/examples/argus/extraction/jan/EvacPipette1.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
def main(): info('Evacuate Pipette 1') open(description='Microbone to Turbo') open(description='Microbone to Minibone') close(description='Inner Pipette 1') sleep(1) open(description='Outer Pipette 1') sleep(15)
29.875
45
0.677824
4fad0a576943eafb9a34ecd9c571f9741ee76369
813
py
Python
tests/test_face.py
rmaglio/thumbor_rekognition
dd86cedbd989010ec0d7b9681dee7758c1f7fc91
[ "MIT" ]
8
2017-11-29T23:13:22.000Z
2021-02-23T23:44:26.000Z
tests/test_face.py
rmaglio/thumbor_rekognition
dd86cedbd989010ec0d7b9681dee7758c1f7fc91
[ "MIT" ]
8
2018-12-20T20:19:17.000Z
2022-03-11T23:25:42.000Z
tests/test_face.py
rmaglio/thumbor_rekognition
dd86cedbd989010ec0d7b9681dee7758c1f7fc91
[ "MIT" ]
6
2018-04-03T16:56:36.000Z
2021-06-01T07:23:39.000Z
#!/usr/bin/env python # standard library imports from unittest import TestCase # third party related imports # local library imports from thumbor_rekognition import Face class TestFocalPoint(TestCase): def test(self): resp = { "BoundingBox": { "Height": 0.09666666388511658...
25.40625
67
0.622386
7f9a5715337291ff985699217996022426d5ef33
19,904
py
Python
tabular/src/autogluon/tabular/learner/default_learner.py
willsmithorg/autogluon
1e8c6a2f30fcc473411bf393c9827eb4713dcef6
[ "Apache-2.0" ]
null
null
null
tabular/src/autogluon/tabular/learner/default_learner.py
willsmithorg/autogluon
1e8c6a2f30fcc473411bf393c9827eb4713dcef6
[ "Apache-2.0" ]
null
null
null
tabular/src/autogluon/tabular/learner/default_learner.py
willsmithorg/autogluon
1e8c6a2f30fcc473411bf393c9827eb4713dcef6
[ "Apache-2.0" ]
null
null
null
import copy import logging import math import platform import time import numpy as np import pandas as pd from pandas import DataFrame from autogluon.core.constants import BINARY, MULTICLASS, REGRESSION, QUANTILE, AUTO_WEIGHT, BALANCE_WEIGHT from autogluon.core.data import LabelCleaner from autogluon.core.data.cleane...
55.753501
232
0.660068
bfa05a0ff9d9557661bb81e1cda683933be15475
3,280
py
Python
project-base/applications/ecs_applications/beer_backend.py
joseafilho/aws-cdk-python-builders
3ebaf5e32f0fcfe3807b7820f9916f294dc25993
[ "Apache-2.0" ]
null
null
null
project-base/applications/ecs_applications/beer_backend.py
joseafilho/aws-cdk-python-builders
3ebaf5e32f0fcfe3807b7820f9916f294dc25993
[ "Apache-2.0" ]
null
null
null
project-base/applications/ecs_applications/beer_backend.py
joseafilho/aws-cdk-python-builders
3ebaf5e32f0fcfe3807b7820f9916f294dc25993
[ "Apache-2.0" ]
null
null
null
from aws_cdk import ( core as cdk ) from aws_cdk.aws_ec2 import ( IVpc, ISecurityGroup, ) from aws_cdk.aws_elasticloadbalancingv2 import ( IApplicationListener ) from libraries.utils.global_consts import Domains from aws_cdk.aws_certificatemanager import ICertificate from libraries.ecs.cluster.ec...
33.469388
162
0.653049
4d79ca4bc1e4b625a743805ddfb95f07e3d1730b
424
py
Python
tests/test_pyorient_native_load.py
sam-caldwell/pyorient_native
2ebda0798f5aaa165cecf24ff4418558458f09f1
[ "Apache-2.0" ]
null
null
null
tests/test_pyorient_native_load.py
sam-caldwell/pyorient_native
2ebda0798f5aaa165cecf24ff4418558458f09f1
[ "Apache-2.0" ]
null
null
null
tests/test_pyorient_native_load.py
sam-caldwell/pyorient_native
2ebda0798f5aaa165cecf24ff4418558458f09f1
[ "Apache-2.0" ]
null
null
null
""" This file contains a test to load pyorient_native created by Sam Caldwell <mail@samcaldwell.net> """ import unittest class TestPyorientNativeLoad(unittest.TestCase): def setUp(self): pass def test_module_load(self): try: import pyorient_native assert True ...
23.555556
73
0.643868
848b128aaddb0ec60987b3ea2ee021470c16f4b1
742
py
Python
src/logger.py
TheMMpl/RaspberryPi-Remote-Thermometer-
a4c6dc77447cc6b488eeff094005aa63c0b37a05
[ "MIT" ]
null
null
null
src/logger.py
TheMMpl/RaspberryPi-Remote-Thermometer-
a4c6dc77447cc6b488eeff094005aa63c0b37a05
[ "MIT" ]
null
null
null
src/logger.py
TheMMpl/RaspberryPi-Remote-Thermometer-
a4c6dc77447cc6b488eeff094005aa63c0b37a05
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from datetime import datetime FILENAME = '/home/pi/temps.txt' MAXLINES = 100 INPUT_FILENAME = '/home/pi/data_now.txt' def file_len(fname): return sum(1 for _ in open (fname)) def file_append(fname, entry, append = True): file = open(fname, 'r') lines = file.readlines() if (n...
20.611111
74
0.638814
93960284d36750f272aa5ef38dc1b81dfbaf172f
2,538
py
Python
src/oci/key_management/models/backup_location_uri.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/key_management/models/backup_location_uri.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/key_management/models/backup_location_uri.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
32.961039
245
0.654846
b2375987022181b5cb91d2747c94d19c123e7e90
4,478
py
Python
generator.py
twentyonepilotslive/site
4987b1261530605f6d38c00ee245820f9ef74003
[ "Unlicense" ]
null
null
null
generator.py
twentyonepilotslive/site
4987b1261530605f6d38c00ee245820f9ef74003
[ "Unlicense" ]
null
null
null
generator.py
twentyonepilotslive/site
4987b1261530605f6d38c00ee245820f9ef74003
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import argparse import collections import datetime import json import os import sys generator_tag = '<META CONTENT="twentyonepilots.live site generator" NAME="generator" />' macro_format = "!%s!" def apply_macros(m, t): for key in m.keys(): t = t.replace(macro_transform(key, macro_format), m...
22.39
89
0.645377
9f2419382760eb3b1be23a778a0e3f07e75e9883
1,105
py
Python
setup.py
fhoeb/py-tmps
b7eced582acb4042815a775090a59f569975e3be
[ "BSD-3-Clause" ]
1
2020-02-21T20:03:44.000Z
2020-02-21T20:03:44.000Z
setup.py
fhoeb/py-tmps
b7eced582acb4042815a775090a59f569975e3be
[ "BSD-3-Clause" ]
null
null
null
setup.py
fhoeb/py-tmps
b7eced582acb4042815a775090a59f569975e3be
[ "BSD-3-Clause" ]
1
2020-02-21T19:56:53.000Z
2020-02-21T19:56:53.000Z
# TODO Requirements are not minimal from setuptools import setup, find_packages setup(name='py-tmps', version='1.0.1', description='Implementation of the tmps algorithm for real and imaginary time evolution of quantum states ' 'represented by mps, mpo or pmps for chain and star geometries...
65
115
0.662443
5dbb2884b7b1dea007cd73c18443b4eb52eb7c0e
25,140
py
Python
stentseg/stentdirect/tests/test_stentgraph.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
1
2020-08-28T16:34:10.000Z
2020-08-28T16:34:10.000Z
stentseg/stentdirect/tests/test_stentgraph.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
null
null
null
stentseg/stentdirect/tests/test_stentgraph.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
1
2021-04-25T06:59:36.000Z
2021-04-25T06:59:36.000Z
from __future__ import print_function, division, absolute_import import numpy as np import networkx as nx from visvis import ssdf from stentseg.utils.new_pointset import PointSet from stentseg.stentdirect.stentgraph import (StentGraph, check_path_integrity, _get_pairs_of_neighbours, add_nodes_at_crossings, ...
32.355212
92
0.524781
738f4d744a0cca679a5e51cd25230515942d3ddf
1,549
py
Python
apps/relation/admin.py
tiger-fight-tonight/E-Server
3939bc3f8c090441cc2af17f4e6cb777642fb792
[ "Apache-2.0" ]
6
2019-07-18T16:21:17.000Z
2020-11-19T04:47:02.000Z
apps/relation/admin.py
tiger-fight-tonight/E-Server
3939bc3f8c090441cc2af17f4e6cb777642fb792
[ "Apache-2.0" ]
null
null
null
apps/relation/admin.py
tiger-fight-tonight/E-Server
3939bc3f8c090441cc2af17f4e6cb777642fb792
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from relation.models import PaperQuestion, ReportInfo, AnswerCard, SystemCode @admin.register(PaperQuestion) class PaperQuestionAdmin(admin.ModelAdmin): # 表头显示 list_display = ( 'question', 'paper', 'score', 'create_time', 'update_time' ) # 支持搜索的字段 search_...
17.602273
77
0.593286
57391d766904dd151f703bddf96423f378c48e2e
54,365
py
Python
yt_dlp/extractor/vimeo.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
80
2021-05-25T11:33:49.000Z
2022-03-29T20:36:53.000Z
yt_dlp/extractor/vimeo.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
53
2017-04-12T19:53:18.000Z
2022-02-22T10:33:13.000Z
yt_dlp/extractor/vimeo.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
22
2021-05-07T05:01:27.000Z
2022-03-26T19:10:54.000Z
# coding: utf-8 from __future__ import unicode_literals import base64 import functools import re import itertools from .common import InfoExtractor from ..compat import ( compat_kwargs, compat_HTTPError, compat_str, compat_urlparse, ) from ..utils import ( clean_html, determine_ext, Extrac...
41.248103
166
0.526074
30a77ed8e870ba9a8f13217ca61e746362b9a56e
72,901
py
Python
code/rmgpy/molecule/draw.py
Molecular-Image-Recognition/Molecular-Image-Recognition
413e74bb526f56077cd5f70bb41fb7a075636174
[ "MIT" ]
7
2017-10-04T16:04:14.000Z
2021-03-27T21:54:41.000Z
code/rmgpy/molecule/draw.py
tiger-tiger/Molecular-Image-Recognition
413e74bb526f56077cd5f70bb41fb7a075636174
[ "MIT" ]
null
null
null
code/rmgpy/molecule/draw.py
tiger-tiger/Molecular-Image-Recognition
413e74bb526f56077cd5f70bb41fb7a075636174
[ "MIT" ]
6
2017-10-04T15:37:05.000Z
2021-12-29T06:50:16.000Z
#!/usr/bin/env python # encoding: utf-8 ################################################################################ # # RMG - Reaction Mechanism Generator # # Copyright (c) 2002-2017 Prof. William H. Green (whgreen@mit.edu), # Prof. Richard H. West (r.west@neu.edu) and the RMG Team (rmg_dev@mit.edu) # # ...
45.994322
191
0.532599
57c7de33400307ab53eeae5c6fd2f6dfc36f363b
8,679
py
Python
hug_website/app.py
timothycrosley/hug_website
2a086b72c9a17bb424b389dc6764603b5f646f03
[ "MIT" ]
2
2016-03-15T15:16:39.000Z
2016-09-23T20:42:18.000Z
hug_website/app.py
timothycrosley/hug_website
2a086b72c9a17bb424b389dc6764603b5f646f03
[ "MIT" ]
7
2016-03-18T21:49:37.000Z
2019-04-12T23:27:09.000Z
hug_website/app.py
timothycrosley/hug_website
2a086b72c9a17bb424b389dc6764603b5f646f03
[ "MIT" ]
7
2016-03-18T21:01:39.000Z
2017-01-03T17:38:31.000Z
"""hug's website: hug.rest""" from functools import partial import hug from hug_website import controllers dual_output = hug.output_format.suffix({'/js': hug.output_format.json}, hug.output_format.html) app = hug.get(output=dual_output, on_invalid=hug.redirect.not_found).suffixes('/js') html = partial(hug.transform....
62.891304
122
0.604448
949498da3fb713cd56a8d3f8807411623ada0d27
5,509
py
Python
tests/factorization/test_implicit.py
BBiering/spotlight
e79c7eafbaff6e2ce2fabd7a348be3b93f5e6ee0
[ "MIT" ]
2,873
2017-07-12T00:39:49.000Z
2022-03-29T11:34:15.000Z
tests/factorization/test_implicit.py
BBiering/spotlight
e79c7eafbaff6e2ce2fabd7a348be3b93f5e6ee0
[ "MIT" ]
138
2017-07-13T05:45:44.000Z
2022-01-26T09:08:17.000Z
tests/factorization/test_implicit.py
BBiering/spotlight
e79c7eafbaff6e2ce2fabd7a348be3b93f5e6ee0
[ "MIT" ]
437
2017-07-13T06:36:24.000Z
2022-03-17T12:35:26.000Z
import os import numpy as np import pytest import torch from spotlight.cross_validation import random_train_test_split from spotlight.datasets import movielens from spotlight.evaluation import mrr_score from spotlight.factorization.implicit import ImplicitFactorizationModel from spotlight.factorization.representation...
33.387879
73
0.514975
9d61b51ca388454b737a09d37e7df8a9f235c4c4
850
py
Python
examples/delete_ports_vlan.py
open-switch/opx-docs
f448f3f3dc0de38822bbf16c1e173eb108925a40
[ "CC-BY-4.0" ]
122
2017-02-10T01:47:04.000Z
2022-03-23T20:11:11.000Z
examples/delete_ports_vlan.py
open-switch/opx-docs
f448f3f3dc0de38822bbf16c1e173eb108925a40
[ "CC-BY-4.0" ]
37
2017-03-01T07:07:22.000Z
2021-11-11T16:47:42.000Z
examples/delete_ports_vlan.py
open-switch/opx-docs
f448f3f3dc0de38822bbf16c1e173eb108925a40
[ "CC-BY-4.0" ]
39
2017-01-18T16:22:58.000Z
2020-11-18T13:23:43.000Z
#Python code block to delete port to VLAN import cps import cps_object #Create CPS object cps_obj = \ cps_object.CPSObject('dell-base-if-cmn/if/interfaces/interface') #Populate the VLAN attributes VLAN_ID='br100' VLAN_ID = 'br100' cps_obj.add_attr('if/interfaces/interface/name', VLAN_ID) #Delete the untagged-po...
29.310345
91
0.751765
ddfcb7e76e9ad5a7c61702aa9dfd6123acbb58ff
1,780
py
Python
Arquivo/2021-1/2021-1-uff-lab-jogos/PPlay/keyboard.py
joaog314/uff-projects
417895d5b7c6fd88e9c67c925e7c6a4abb6bb6f4
[ "MIT" ]
3
2020-04-19T15:08:50.000Z
2022-02-09T20:06:18.000Z
Mathias/PPlay/keyboard.py
AlanVilaca/Mathias
2d7d0e69b6093422a8c99911478ecbd9fa88859f
[ "MIT" ]
null
null
null
Mathias/PPlay/keyboard.py
AlanVilaca/Mathias
2d7d0e69b6093422a8c99911478ecbd9fa88859f
[ "MIT" ]
null
null
null
# coding= utf-8 import pygame from pygame.locals import * # Initializes pygame's modules pygame.init() class Keyboard(): """ Returns True if the key IS pressed, it means the press-check occurs every frame """ def key_pressed(self, key): key = self.to_pattern(key) keys = pygame.key...
31.785714
61
0.513483
828e34a74cf3f6c4ea6e50b0fe01a8798c411e3a
5,349
py
Python
src/run_carla.py
PhuongLe/PilotNet
28ebf1db0ed907d1ede219ec82dae657a947a12b
[ "MIT" ]
null
null
null
src/run_carla.py
PhuongLe/PilotNet
28ebf1db0ed907d1ede219ec82dae657a947a12b
[ "MIT" ]
null
null
null
src/run_carla.py
PhuongLe/PilotNet
28ebf1db0ed907d1ede219ec82dae657a947a12b
[ "MIT" ]
null
null
null
import tensorflow as tf import carla import scipy.misc from nets.pilotNet import PilotNet import cv2 from subprocess import call import random import time import numpy as np from multiprocessing import Queue FLAGS = tf.app.flags.FLAGS """model from nvidia's training""" # generated model after training tf.app.flags....
34.733766
152
0.583474
443c686ed283b1df9577b5a4508742bf799628c2
2,104
py
Python
examples/ad_manager/v201808/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.py
khanhnhk/googleads-python-lib
1e882141b8eb663b55dd582ce0f4fbf3cd2f672d
[ "Apache-2.0" ]
1
2021-12-30T15:21:42.000Z
2021-12-30T15:21:42.000Z
examples/ad_manager/v201808/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.py
benlistyg/googleads-python-lib
1e882141b8eb663b55dd582ce0f4fbf3cd2f672d
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v201808/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.py
benlistyg/googleads-python-lib
1e882141b8eb663b55dd582ce0f4fbf3cd2f672d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2016 Google Inc. 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 requir...
37.571429
78
0.73289
9d58739f5be7ae26deac7d1d5273fb84bcd7353c
232
py
Python
Spider/PocketLifeSpider/PocketLifeSpider/modify_src.py
wpwbb510582246/PocketFIlm
356d057810fd48a77197fe0f00b1f2adccb02d39
[ "MIT" ]
17
2019-09-11T08:37:26.000Z
2021-08-17T12:08:54.000Z
Spider/PocketLifeSpider/PocketLifeSpider/modify_src.py
wpwbb510582246/PocketFIlm
356d057810fd48a77197fe0f00b1f2adccb02d39
[ "MIT" ]
5
2019-10-26T00:28:35.000Z
2021-05-08T09:10:36.000Z
Spider/PocketLifeSpider/PocketLifeSpider/modify_src.py
wpwbb510582246/PocketFIlm
356d057810fd48a77197fe0f00b1f2adccb02d39
[ "MIT" ]
8
2020-03-17T08:17:35.000Z
2021-07-30T15:48:36.000Z
import sys import os curPath = os.path.abspath(os.path.dirname(__file__)) rootPath = os.path.split(curPath)[0] sys.path.append(rootPath) from PocketLifeSpider.util.CommonUtils import * if __name__ == '__main__': modify_src()
19.333333
52
0.75431
33a3ee095d9406fe660570aebe62ca788d5da6af
207
py
Python
modules/stage_1.py
ElijahBeach/C2-Server-Project
89e6d418790493aa222cca5b6ea7f3f519e4e478
[ "MIT" ]
3
2022-01-14T01:55:25.000Z
2022-03-30T01:08:16.000Z
modules/stage_1.py
ElijahBeach/C2-Server-Project
89e6d418790493aa222cca5b6ea7f3f519e4e478
[ "MIT" ]
null
null
null
modules/stage_1.py
ElijahBeach/C2-Server-Project
89e6d418790493aa222cca5b6ea7f3f519e4e478
[ "MIT" ]
2
2022-01-15T14:30:55.000Z
2022-01-15T16:04:15.000Z
import json def run(**args): print('[$] Enter stage 1') basic_config =json.dumps([{"module" : "dir_lister"},{"module" : "enviro"},{"module" : "sleep"},{"module" : "stage_2_qrw"}]) return basic_config
29.571429
125
0.63285
9ad17eb978c349a1b2e9134b077176a1d801cdfd
3,251
py
Python
src/test/tests/databases/singlemulti.py
cstatz/visit
f352f3984fa77392e81acbaa6943778a779f0435
[ "BSD-3-Clause" ]
null
null
null
src/test/tests/databases/singlemulti.py
cstatz/visit
f352f3984fa77392e81acbaa6943778a779f0435
[ "BSD-3-Clause" ]
null
null
null
src/test/tests/databases/singlemulti.py
cstatz/visit
f352f3984fa77392e81acbaa6943778a779f0435
[ "BSD-3-Clause" ]
1
2020-03-18T23:17:43.000Z
2020-03-18T23:17:43.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: singlemulti.py # # Tests: mesh - 3D, curvilinear, single domain # plots - Pseudocolor # databases - Silo # # Purpose: This test case tests the ability of VisIt...
27.786325
78
0.663488
dcba915f17526b50162640137aaf5e1c805a35b4
9,639
py
Python
litedram/frontend/dma.py
thirtythreeforty/litedram
db879ae3f7d591482e4665801c946241bb663bce
[ "OLDAP-2.6", "OLDAP-2.3", "OLDAP-2.7" ]
237
2016-08-09T05:53:09.000Z
2022-03-29T15:34:00.000Z
litedram/frontend/dma.py
thirtythreeforty/litedram
db879ae3f7d591482e4665801c946241bb663bce
[ "OLDAP-2.6", "OLDAP-2.3", "OLDAP-2.7" ]
280
2016-12-17T13:44:35.000Z
2022-03-31T10:17:57.000Z
litedram/frontend/dma.py
thirtythreeforty/litedram
db879ae3f7d591482e4665801c946241bb663bce
[ "OLDAP-2.6", "OLDAP-2.3", "OLDAP-2.7" ]
84
2016-05-23T08:58:46.000Z
2022-02-22T17:57:40.000Z
# # This file is part of LiteDRAM. # # Copyright (c) 2016-2021 Florent Kermarrec <florent@enjoy-digital.fr> # Copyright (c) 2015 Sebastien Bourdeauducq <sb@m-labs.hk> # Copyright (c) 2018 John Sully <john@csquare.ca> # Copyright (c) 2016 Tim 'mithro' Ansell <mithro@mithis.com> # SPDX-License-Identifier: BSD-2-Clause "...
34.923913
100
0.541861
10396818e5c97b3de009b5375a01071b270e8345
11,951
py
Python
yt/fields/derived_field.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
1
2021-11-29T21:59:06.000Z
2021-11-29T21:59:06.000Z
yt/fields/derived_field.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/fields/derived_field.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
null
null
null
""" Derived field base class. """ #----------------------------------------------------------------------------- # Copyright (c) 2013, yt Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------...
34.440922
93
0.601038
bbf50150ff14d4574eb27424c1dd059df89ef687
79
py
Python
fclpy/lispenv.py
fclpy/fclpy
30808a2e3f212b676ba30f6194d60d02659c8b43
[ "MIT" ]
1
2021-09-14T11:23:57.000Z
2021-09-14T11:23:57.000Z
fclpy/lispenv.py
fclpy/fclpy
30808a2e3f212b676ba30f6194d60d02659c8b43
[ "MIT" ]
null
null
null
fclpy/lispenv.py
fclpy/fclpy
30808a2e3f212b676ba30f6194d60d02659c8b43
[ "MIT" ]
null
null
null
import fclpy.lisptype current_environment = fclpy.lisptype.Environment()
15.8
50
0.78481
6109ed76cc8ad255dad468e5ec52defead6b32c9
2,940
py
Python
tests/test_environment.py
VeranosTech/alembic
7c352124d089c138bb063c9241eb55f929a06742
[ "MIT" ]
null
null
null
tests/test_environment.py
VeranosTech/alembic
7c352124d089c138bb063c9241eb55f929a06742
[ "MIT" ]
null
null
null
tests/test_environment.py
VeranosTech/alembic
7c352124d089c138bb063c9241eb55f929a06742
[ "MIT" ]
6
2018-05-10T01:19:33.000Z
2019-10-07T02:01:01.000Z
#!coding: utf-8 from alembic.environment import EnvironmentContext from alembic.migration import MigrationContext from alembic.script import ScriptDirectory from alembic.testing import eq_ from alembic.testing import is_ from alembic.testing.assertions import expect_warnings from alembic.testing.env import _no_sql_tes...
26.972477
72
0.65068
4c48b08afd7e310ca960170f0604b17070c88093
4,780
py
Python
ARGA/arga/layers.py
kaize0409/ARGA
cf06ae8a830bee142765395284e3b451d0c8e2d0
[ "MIT" ]
1
2020-07-25T08:25:49.000Z
2020-07-25T08:25:49.000Z
ARGA/arga/layers.py
kaize0409/ARGA
cf06ae8a830bee142765395284e3b451d0c8e2d0
[ "MIT" ]
null
null
null
ARGA/arga/layers.py
kaize0409/ARGA
cf06ae8a830bee142765395284e3b451d0c8e2d0
[ "MIT" ]
null
null
null
from initializations import * import tensorflow as tf flags = tf.app.flags FLAGS = flags.FLAGS # global unique layer ID dictionary for layer name assignment _LAYER_UIDS = {} def get_layer_uid(layer_name=''): """Helper function, assigns unique layer IDs """ if layer_name not in _LAYER_UIDS: _LAYE...
33.661972
107
0.638703
d8810c41ea0be83ca19ddca06ff946ed8968fb6c
468
py
Python
octane/api_resources/meter.py
zomglings/octane-python
e8e1bfeb7146e8cd2314359f2c3ddd280bf105a7
[ "MIT" ]
1
2022-01-06T13:02:11.000Z
2022-01-06T13:02:11.000Z
octane/api_resources/meter.py
zomglings/octane-python
e8e1bfeb7146e8cd2314359f2c3ddd280bf105a7
[ "MIT" ]
null
null
null
octane/api_resources/meter.py
zomglings/octane-python
e8e1bfeb7146e8cd2314359f2c3ddd280bf105a7
[ "MIT" ]
1
2021-05-10T06:00:32.000Z
2021-05-10T06:00:32.000Z
from __future__ import absolute_import, division, print_function from octane.api_resources.abstract import CreateableAPIResource from octane.api_resources.abstract import DeletableAPIResource from octane.api_resources.abstract import ListableAPIResource from octane.api_resources.abstract import UpdateableAPIResource ...
29.25
64
0.839744
6d7481c4e6ccb096c9f0012f2694340e3e6025e7
1,717
py
Python
assessments/migrations/0001_initial.py
Lukmanhakim112/bikom
eda795e15a46f3edcbeb21f9d87e75def0494dc4
[ "MIT" ]
null
null
null
assessments/migrations/0001_initial.py
Lukmanhakim112/bikom
eda795e15a46f3edcbeb21f9d87e75def0494dc4
[ "MIT" ]
null
null
null
assessments/migrations/0001_initial.py
Lukmanhakim112/bikom
eda795e15a46f3edcbeb21f9d87e75def0494dc4
[ "MIT" ]
null
null
null
# Generated by Django 3.2.11 on 2022-01-21 03:10 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='AssesmentModel', fields=[...
41.878049
133
0.614444
e3c23e0bb6e757cd037df1f959ee862b868aebd1
5,230
py
Python
src/poliastro/coordinates.py
nikita-astronaut/poliastro
7f675d76da413618f3bcc25317de750d74ea667e
[ "MIT" ]
1
2019-02-05T06:19:59.000Z
2019-02-05T06:19:59.000Z
src/poliastro/coordinates.py
nikita-astronaut/poliastro
7f675d76da413618f3bcc25317de750d74ea667e
[ "MIT" ]
null
null
null
src/poliastro/coordinates.py
nikita-astronaut/poliastro
7f675d76da413618f3bcc25317de750d74ea667e
[ "MIT" ]
null
null
null
"""Functions related to coordinate systems and transformations. This module complements :py:mod:`astropy.coordinates`. """ from math import sin, cos, sqrt import numpy as np import astropy.units as u from astropy.coordinates import get_body_barycentric_posvel, CartesianRepresentation, CartesianDifferential from p...
31.317365
107
0.649713
c15bb58894af3df960404cc1089a71f2f8ea55ad
7,322
py
Python
parsing.py
Undo1/SmellDetector
44dbecb150c32c928bc8721fcc311d868b2e8f44
[ "Apache-2.0", "MIT" ]
3
2019-04-23T02:59:15.000Z
2019-08-05T06:47:56.000Z
parsing.py
Undo1/SmellDetector
44dbecb150c32c928bc8721fcc311d868b2e8f44
[ "Apache-2.0", "MIT" ]
null
null
null
parsing.py
Undo1/SmellDetector
44dbecb150c32c928bc8721fcc311d868b2e8f44
[ "Apache-2.0", "MIT" ]
null
null
null
# coding=utf-8 # noinspection PyCompatibility import regex import globalvars import datahandling BAD_CHAR = "\u200c\u200b" # noinspection PyMissingTypeHints def rebuild_str(str): return ''.join(ch for ch in str if ch not in BAD_CHAR) # noinspection PyBroadException,PyMissingTypeHints def get_user_from_url(url)...
33.43379
119
0.561459
721b5cae75181033273f632c5d10427a3ed2625d
1,229
py
Python
test/test_forecast_api.py
chbndrhnns/ahoi-client
8bd25f541c05af17c82904fa250272514b7971f2
[ "MIT" ]
null
null
null
test/test_forecast_api.py
chbndrhnns/ahoi-client
8bd25f541c05af17c82904fa250272514b7971f2
[ "MIT" ]
null
null
null
test/test_forecast_api.py
chbndrhnns/ahoi-client
8bd25f541c05af17c82904fa250272514b7971f2
[ "MIT" ]
null
null
null
# coding: utf-8 """ [AHOI cookbook](/ahoi/docs/cookbook/index.html) [Data Privacy](/sandboxmanager/#/privacy) [Terms of Service](/sandboxmanager/#/terms) [Imprint](https://sparkassen-hub.com/impressum/) &copy; 2016&dash;2017 Starfinanz - Ein Unternehmen der Finanz Informatik # noqa: E501 OpenAPI sp...
25.081633
277
0.685924
44ced8cbc784dcffd5b77e8a71e96e874d860ac3
788
py
Python
dataent/patches/v11_0/fix_order_by_in_reports_json.py
dataent/dataent
c41bd5942ffe5513f4d921c4c0595c84bbc422b4
[ "MIT" ]
null
null
null
dataent/patches/v11_0/fix_order_by_in_reports_json.py
dataent/dataent
c41bd5942ffe5513f4d921c4c0595c84bbc422b4
[ "MIT" ]
6
2020-03-24T17:15:56.000Z
2022-02-10T18:41:31.000Z
dataent/patches/v11_0/fix_order_by_in_reports_json.py
dataent/dataent
c41bd5942ffe5513f4d921c4c0595c84bbc422b4
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import dataent, json def execute(): reports_data = dataent.get_all('Report', filters={'json': ['not like', '%%%"order_by": "`tab%%%'], 'report_type': 'Report Builder', 'is_standard': 'No'}, fields=['name']) for d in reports_data: doc = dataent.get_doc('Report', d.get('...
29.185185
81
0.635787
d946ef5b90ce1d72772ef2490f107c7810d86268
1,201
py
Python
app/errors/handlers.py
boerniee/project-mate
072b0e871525d527d438f2ec0238fa94c4547f85
[ "MIT" ]
2
2019-12-18T09:42:18.000Z
2019-12-20T13:16:52.000Z
app/errors/handlers.py
boerniee/project-mate
072b0e871525d527d438f2ec0238fa94c4547f85
[ "MIT" ]
17
2019-12-18T12:45:30.000Z
2021-02-06T14:44:36.000Z
app/errors/handlers.py
boerniee/project-mate
072b0e871525d527d438f2ec0238fa94c4547f85
[ "MIT" ]
null
null
null
from flask import render_template, request from app import db from app.errors import bp from app.api.errors import error_response as api_error_response def wants_json_response(): return request.accept_mimetypes['application/json'] >= \ request.accept_mimetypes['text/html'] @bp.app_errorhandler(403) def fo...
29.292683
63
0.742714
7218a0e1d5e7b250bc583b2e6c7890fbc62d3d74
11,200
py
Python
sentiment_analysis_ml.py
ruanyangry/Sentiment_Analysis_cnn_lstm_cnnlstm_textcnn_bilstm
fb9f2563ff8594ad98ed8fb14073ce8be7ee9aca
[ "Apache-2.0" ]
56
2019-01-19T13:34:39.000Z
2022-03-29T13:55:29.000Z
sentiment_analysis_ml.py
ColionX/Sentiment_Analysis_cnn_lstm_cnnlstm_textcnn_bilstm
fb9f2563ff8594ad98ed8fb14073ce8be7ee9aca
[ "Apache-2.0" ]
2
2019-11-24T13:56:26.000Z
2020-12-23T02:40:12.000Z
sentiment_analysis_ml.py
ColionX/Sentiment_Analysis_cnn_lstm_cnnlstm_textcnn_bilstm
fb9f2563ff8594ad98ed8fb14073ce8be7ee9aca
[ "Apache-2.0" ]
18
2019-03-04T14:37:46.000Z
2022-02-12T10:00:33.000Z
# _*_ coding:utf-8 _*_ ''' @Author: Ruan Yang @Date: 2018.12.16 @Purpose: 使用传统的机器学习的方法进行文本情感分析 ''' import codecs import jieba import numpy as np from gensim.models.word2vec import Word2Vec from sklearn.externals import joblib from sklearn.svm import SVC from sklearn.naive_bayes import GaussianNB from...
32.844575
108
0.63625
2875d0b4b1352c9d1dc8c58e5b0b90127e9c27d5
604
py
Python
setup.py
pbaksh/well_structured_repo
016c4f72c2ebabbc820dc160ce88b2b09654d34c
[ "Apache-2.0" ]
null
null
null
setup.py
pbaksh/well_structured_repo
016c4f72c2ebabbc820dc160ce88b2b09654d34c
[ "Apache-2.0" ]
null
null
null
setup.py
pbaksh/well_structured_repo
016c4f72c2ebabbc820dc160ce88b2b09654d34c
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as readme_file: readme = readme_file.read() requirements = ["numpy"] setup( name="well_structured_repo", version="0.0.1", author="PB", author_email="jpdbaksh@gmail.com", description="A template", long_description=read...
25.166667
75
0.665563
46d18e456d14081ecfea2fd33bd34dd18834b88f
636
py
Python
Introducao ao Python - DIO/Aula02.py
eduardaalvess/RepositorioPython
e6778e851942b97cd61143c6bcc34d0d5941392b
[ "MIT" ]
1
2021-08-31T22:48:53.000Z
2021-08-31T22:48:53.000Z
Introducao ao Python - DIO/Aula02.py
eduardaalvess/RepositorioPython
e6778e851942b97cd61143c6bcc34d0d5941392b
[ "MIT" ]
null
null
null
Introducao ao Python - DIO/Aula02.py
eduardaalvess/RepositorioPython
e6778e851942b97cd61143c6bcc34d0d5941392b
[ "MIT" ]
null
null
null
a = int(input('Entre com o primeiro valor: ')) b = int(input('Entre com o segundo valor: ')) print(type(a)) soma = a + b subtracao = a - b multiplicacao = a * b divisao = a / b resto = a % b resultado = ('Soma: {soma}. \nSubtração: {subtracao}. ' '\nMultiplicação: {multiplicacao}' '\nDivisão: {divisao}' ...
30.285714
60
0.512579
34738af3d56b057b8524b2c5df07f6ef3cde4377
1,185
py
Python
benchmark_portals.py
EvilRedHorse/SkyLive
698db51d1ffbe475c840a3283c675bc993f10064
[ "MIT" ]
null
null
null
benchmark_portals.py
EvilRedHorse/SkyLive
698db51d1ffbe475c840a3283c675bc993f10064
[ "MIT" ]
null
null
null
benchmark_portals.py
EvilRedHorse/SkyLive
698db51d1ffbe475c840a3283c675bc993f10064
[ "MIT" ]
null
null
null
import time from pubaccess import Pubaccess import os def time_to_str(value): if value == 20: time = 'timeout' elif value == 999: time = 'error' else: time = value return time print('Starting benchmark') f = open("2MBfile.txt", "w+") text = '' # generate 2MB text for i in range(262144): text += 'PubLive '...
21.160714
138
0.672574
9b2268facbdcae0415f4bff88d49195007828935
708
py
Python
02-work-queues/new_task.py
KirovVerst/rabbitmq-tutorial-async
85c6b76ec554f1ac81994cb4cd62d609cb5dc518
[ "MIT" ]
null
null
null
02-work-queues/new_task.py
KirovVerst/rabbitmq-tutorial-async
85c6b76ec554f1ac81994cb4cd62d609cb5dc518
[ "MIT" ]
null
null
null
02-work-queues/new_task.py
KirovVerst/rabbitmq-tutorial-async
85c6b76ec554f1ac81994cb4cd62d609cb5dc518
[ "MIT" ]
null
null
null
import asyncio import sys import aio_pika ROUTING_KEY = 'task_queue' QUEUE_NAME = 'task_queue' async def main(msg: str) -> None: conn = await aio_pika.connect(host='localhost') async with conn: channel: aio_pika.Channel = await conn.channel() await channel.declare_queue(QUEUE_NAME, durable=T...
25.285714
62
0.628531
a9c740b025a32372731a6dbaeae47962a27dec2e
1,305
py
Python
virtual/lib/python3.9/site-packages/pyuploadcare/transformations/base.py
alex-mu/Neighborhood-watch
13a4926a59a924f84c5560966ca686168efa054e
[ "MIT" ]
85
2015-01-14T21:37:58.000Z
2022-03-16T07:15:41.000Z
virtual/lib/python3.9/site-packages/pyuploadcare/transformations/base.py
alex-mu/Neighborhood-watch
13a4926a59a924f84c5560966ca686168efa054e
[ "MIT" ]
78
2015-01-15T23:44:15.000Z
2022-03-21T12:05:26.000Z
virtual/lib/python3.9/site-packages/pyuploadcare/transformations/base.py
alex-mu/Neighborhood-watch
13a4926a59a924f84c5560966ca686168efa054e
[ "MIT" ]
34
2015-01-13T16:06:29.000Z
2021-08-09T12:38:06.000Z
from enum import Enum from typing import List, Optional, Union class StrEnum(str, Enum): def __str__(self): return self.value class BaseTransformation: def __init__( self, transformation: Optional[Union[str, "BaseTransformation"]] = None ): if isinstance(transformation, BaseTrans...
25.096154
79
0.595402
c6f3e02010cb1913799b474d40bd9ee66b3a8e66
2,518
py
Python
virtool_workflow/hooks.py
eroberts9789/virtool-workflow
18219eec2b9b934cedd3770ac319f40305c165f2
[ "MIT" ]
5
2020-09-24T20:29:08.000Z
2022-03-17T14:50:56.000Z
virtool_workflow/hooks.py
eroberts9789/virtool-workflow
18219eec2b9b934cedd3770ac319f40305c165f2
[ "MIT" ]
126
2020-10-01T23:38:34.000Z
2022-03-31T08:26:28.000Z
virtool_workflow/hooks.py
eroberts9789/virtool-workflow
18219eec2b9b934cedd3770ac319f40305c165f2
[ "MIT" ]
5
2020-09-29T21:29:46.000Z
2021-07-27T20:34:58.000Z
""" Hooks provide a way to do things when events happen during the workflow lifecycle. """ from concurrent import futures import asyncio from virtool_workflow.execution.hooks.fixture_hooks import FixtureHook from virtool_workflow.execution.hooks.hooks import Hook from virtool_workflow.execution.hooks.workflow_hooks...
23.754717
111
0.726767
4653e2b4f796b80fe82482658fd8586c9b522752
7,831
py
Python
titan/common/titan_rpc.py
GoogleCloudPlatform/titan
150173af9b71bcc3a3946138bfd5a0c392eae9df
[ "Apache-2.0" ]
19
2015-01-28T05:10:54.000Z
2019-01-25T09:21:32.000Z
titan/common/titan_rpc.py
googlearchive/titan
150173af9b71bcc3a3946138bfd5a0c392eae9df
[ "Apache-2.0" ]
3
2015-10-03T17:03:46.000Z
2020-04-20T21:32:28.000Z
titan/common/titan_rpc.py
googlearchive/titan
150173af9b71bcc3a3946138bfd5a0c392eae9df
[ "Apache-2.0" ]
10
2015-01-14T00:34:23.000Z
2018-09-17T15:38:05.000Z
#!/usr/bin/env python # Copyright 2012 Google Inc. 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 ...
35.274775
80
0.695569
500f58a05a89cb04cc73cf5412aaf578985f4ee7
2,621
py
Python
utensor_cgen/transformer/pipeline.py
ufo2011/utensor_cgen
210bb530e7a532fbb9898f7df65f692e2f48f046
[ "Apache-2.0" ]
null
null
null
utensor_cgen/transformer/pipeline.py
ufo2011/utensor_cgen
210bb530e7a532fbb9898f7df65f692e2f48f046
[ "Apache-2.0" ]
null
null
null
utensor_cgen/transformer/pipeline.py
ufo2011/utensor_cgen
210bb530e7a532fbb9898f7df65f692e2f48f046
[ "Apache-2.0" ]
null
null
null
import re from ast import literal_eval from .base import Transformer class TransformerPipeline(object): TRANSFORMER_MAP = {} _trans_name_patrn = re.compile(r"(\w[\w]*)\(?") def __init__(self, methods): """ methods : list list of tuples of type Tuple[Type[Transformer], dict] or a string express...
31.202381
90
0.677222
67a33c5d8c5c1415de6eeb19bb0744bc9e77d39d
1,791
py
Python
storm_control/test/test_buffered_1.py
jeffmoffitt/storm-control
522add1e196e0b7964f574481fd90c20a74b575e
[ "MIT" ]
null
null
null
storm_control/test/test_buffered_1.py
jeffmoffitt/storm-control
522add1e196e0b7964f574481fd90c20a74b575e
[ "MIT" ]
null
null
null
storm_control/test/test_buffered_1.py
jeffmoffitt/storm-control
522add1e196e0b7964f574481fd90c20a74b575e
[ "MIT" ]
1
2020-11-10T06:39:18.000Z
2020-11-10T06:39:18.000Z
#!/usr/bin/env python """ A test of the BufferedFunctionality class. """ import sys import time from PyQt5 import QtCore, QtWidgets import storm_control.sc_hardware.baseClasses.hardwareModule as hardwareModule class TBWidget(QtWidgets.QWidget): processed = QtCore.pyqtSignal(str) def __init__(self, **kw...
28.428571
77
0.553881
bbc518a026201abdf151736831e3f37bf2f62a8d
3,177
py
Python
orc8r/gateway/python/setup.py
nstng/magma
dec2691450f4bdd9e25d1e2eb0a38dc893dfeb7f
[ "BSD-3-Clause" ]
null
null
null
orc8r/gateway/python/setup.py
nstng/magma
dec2691450f4bdd9e25d1e2eb0a38dc893dfeb7f
[ "BSD-3-Clause" ]
null
null
null
orc8r/gateway/python/setup.py
nstng/magma
dec2691450f4bdd9e25d1e2eb0a38dc893dfeb7f
[ "BSD-3-Clause" ]
null
null
null
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
29.971698
77
0.583884
511a369d6b8e2c8202b1603d4d1eb28ef8d03d3b
1,398
py
Python
dispel4py/__main__.py
AndreiFrunze/wrangler
076a07de00fc966dcf18ca6b6a6e804be5245ed9
[ "Apache-2.0" ]
22
2015-04-14T13:08:28.000Z
2020-04-23T11:56:52.000Z
dispel4py/__main__.py
AndreiFrunze/wrangler
076a07de00fc966dcf18ca6b6a6e804be5245ed9
[ "Apache-2.0" ]
4
2015-10-06T11:04:34.000Z
2019-03-27T10:50:10.000Z
dispel4py/__main__.py
AndreiFrunze/wrangler
076a07de00fc966dcf18ca6b6a6e804be5245ed9
[ "Apache-2.0" ]
19
2015-04-09T15:45:08.000Z
2022-02-28T06:58:02.000Z
# Copyright (c) The University of Edinburgh 2014-2015 # # 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...
31.772727
74
0.701717
4333c2bee3dfa32796e69d12bf0a5f10acfbc04c
6,004
py
Python
sb/Data/Packages/Default/Comment.py
luc4spas/SISGE-ACONCHEGO
77096a81f09b286a3793c7cb9cee9941c1fae803
[ "MIT" ]
null
null
null
sb/Data/Packages/Default/Comment.py
luc4spas/SISGE-ACONCHEGO
77096a81f09b286a3793c7cb9cee9941c1fae803
[ "MIT" ]
null
null
null
sb/Data/Packages/Default/Comment.py
luc4spas/SISGE-ACONCHEGO
77096a81f09b286a3793c7cb9cee9941c1fae803
[ "MIT" ]
null
null
null
import sublime, sublimeplugin def advanceToFirstNonWhitespaceOnLine(view, pt): while True: c = view.substr(sublime.Region(pt, pt + 1)) if c == " " or c == "\t": pt += 1 else: break return pt def hasNonWhitespaceOnLine(view, pt): while True: c = view.substr(sublime.Region(pt, pt + 1)) if c == " " ...
28.454976
77
0.701033
022d4565165dac2044573af270ffe573ddb50193
14,404
py
Python
sample-demo/venv/Lib/site-packages/PyQt6/lupdate/translation_file.py
rupc/bsp-protos
58833e7ab9ff53f3633708fb5f95edfdd152c5ea
[ "Apache-2.0" ]
null
null
null
sample-demo/venv/Lib/site-packages/PyQt6/lupdate/translation_file.py
rupc/bsp-protos
58833e7ab9ff53f3633708fb5f95edfdd152c5ea
[ "Apache-2.0" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
sample-demo/venv/Lib/site-packages/PyQt6/lupdate/translation_file.py
rupc/bsp-protos
58833e7ab9ff53f3633708fb5f95edfdd152c5ea
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com> # # This file is part of PyQt6. # # This file may be used under the terms of the GNU General Public License # version 3.0 as published by the Free Software Foundation and appearing in # the file LICENSE included in the packaging of this fi...
35.653465
82
0.568245
cd7d67ea848d74046d39420041c3e3c11ee0ac7f
9,222
py
Python
discord/ext/commands/cooldowns.py
Keith-Cancel/discord.py
aa55e762ae0ebbe2d6410c1275eddef9787ef4b5
[ "MIT" ]
3
2020-11-30T19:13:56.000Z
2020-11-30T23:08:53.000Z
discord/ext/commands/cooldowns.py
Keith-Cancel/discord.py
aa55e762ae0ebbe2d6410c1275eddef9787ef4b5
[ "MIT" ]
null
null
null
discord/ext/commands/cooldowns.py
Keith-Cancel/discord.py
aa55e762ae0ebbe2d6410c1275eddef9787ef4b5
[ "MIT" ]
1
2021-06-22T07:36:10.000Z
2021-06-22T07:36:10.000Z
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-present Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights t...
31.474403
108
0.624702
695daa8e40fb497f10ced0665122eb83bd79346e
5,282
py
Python
start_regtest.py
sergeyboyko0791/qrc20_docker_regtest
b5001f31cc0e08434809cb36326ad19e177f1958
[ "Apache-2.0" ]
null
null
null
start_regtest.py
sergeyboyko0791/qrc20_docker_regtest
b5001f31cc0e08434809cb36326ad19e177f1958
[ "Apache-2.0" ]
null
null
null
start_regtest.py
sergeyboyko0791/qrc20_docker_regtest
b5001f31cc0e08434809cb36326ad19e177f1958
[ "Apache-2.0" ]
null
null
null
import json import os import sys import subprocess from subprocess import PIPE import time import threading class Node: def __init__(self, node_root, bin_path, port, rpc_port): self.node_root = node_root self.bin_path = bin_path self.conf = self.node_root + '/qtum.conf' self.port = ...
36.937063
182
0.638016
4193ee1f3381733af777d1919dd4f8acee317bf7
4,475
py
Python
src/warhammer_leveling/converters/converter.py
Peilonrayz/warhammer
76610bf3c64418f914efb9ff3336daacdd6c5c4c
[ "MIT" ]
null
null
null
src/warhammer_leveling/converters/converter.py
Peilonrayz/warhammer
76610bf3c64418f914efb9ff3336daacdd6c5c4c
[ "MIT" ]
null
null
null
src/warhammer_leveling/converters/converter.py
Peilonrayz/warhammer
76610bf3c64418f914efb9ff3336daacdd6c5c4c
[ "MIT" ]
null
null
null
from datetime import datetime from typing import ( Any, Generic, List, Optional, Tuple, Type, TypeVar, Union, get_type_hints, ) __all__ = ["ron", "Converter", "Converters"] T = TypeVar("T") class BuilderObject: def __init__(self): super().__setattr__("__values", {}) ...
28.322785
104
0.595978
d5d371cf4e43cd17844507759409b10b2a9fc44a
9,269
py
Python
Assignment_03/cs231n/data_utils.py
andrewlstewart/CS231n-Convolutional-Neural-Networks-
3a6066d790bd654d5fe3ad670c2308e8b2c05d93
[ "Unlicense" ]
null
null
null
Assignment_03/cs231n/data_utils.py
andrewlstewart/CS231n-Convolutional-Neural-Networks-
3a6066d790bd654d5fe3ad670c2308e8b2c05d93
[ "Unlicense" ]
15
2020-11-18T23:05:49.000Z
2022-03-12T00:35:03.000Z
Assignment_03/cs231n/data_utils.py
andrewlstewart/CS231n-Convolutional-Neural-Networks
3a6066d790bd654d5fe3ad670c2308e8b2c05d93
[ "Unlicense" ]
null
null
null
from __future__ import print_function from builtins import range from six.moves import cPickle as pickle import numpy as np import os # from scipy.misc import imread from PIL import Image import platform def load_pickle(f): version = platform.python_version_tuple() if version[0] == '2': return pickle...
35.109848
79
0.615277
1676197584b75f7523916647cc75b6c4f830491e
3,834
py
Python
ticket/models.py
aman-roy/pune.pycon.org
f56cc948bd56767110d337c694ecbf5540bdf4b9
[ "MIT" ]
1
2021-02-14T13:02:19.000Z
2021-02-14T13:02:19.000Z
ticket/models.py
aman-roy/pune.pycon.org
f56cc948bd56767110d337c694ecbf5540bdf4b9
[ "MIT" ]
null
null
null
ticket/models.py
aman-roy/pune.pycon.org
f56cc948bd56767110d337c694ecbf5540bdf4b9
[ "MIT" ]
null
null
null
import uuid from django.db import models from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.utils.translation import ugettext as _ from symposion.conference.models import Conference from cauth.models import EventUser from root.model...
39.9375
80
0.681534
b9af5a8c105afde2d0dfa13e45bc7f725beebdc4
57
py
Python
clumpy/py3.py
bkimmig/clump
6c6c3f3ab26defc05965de10e6e50d9635a773e6
[ "MIT" ]
null
null
null
clumpy/py3.py
bkimmig/clump
6c6c3f3ab26defc05965de10e6e50d9635a773e6
[ "MIT" ]
null
null
null
clumpy/py3.py
bkimmig/clump
6c6c3f3ab26defc05965de10e6e50d9635a773e6
[ "MIT" ]
null
null
null
import sys if sys.version[0] == '3': xrange = range
11.4
25
0.596491
0cec6df670565034472da8c19b98bfdac4c58f2b
9,699
py
Python
tests/transforms/linear_test.py
Tennessee-Wallaceh/nflows
ac0bf432fc7904458a933ed14180f0ac26e3f93d
[ "MIT" ]
522
2020-02-26T16:51:51.000Z
2022-03-31T15:38:48.000Z
tests/transforms/linear_test.py
Tennessee-Wallaceh/nflows
ac0bf432fc7904458a933ed14180f0ac26e3f93d
[ "MIT" ]
47
2020-03-24T18:36:59.000Z
2022-03-25T09:47:18.000Z
tests/transforms/linear_test.py
Tennessee-Wallaceh/nflows
ac0bf432fc7904458a933ed14180f0ac26e3f93d
[ "MIT" ]
77
2020-03-21T21:00:44.000Z
2022-03-31T00:41:51.000Z
"""Tests for linear transforms.""" import unittest from unittest.mock import MagicMock import torch from nflows.transforms import linear from nflows.transforms.linear import Linear from nflows.utils import torchutils from tests.transforms.transform_test import TransformTest class LinearTest(TransformTest): def...
38.335968
84
0.700381
1073a7b047f32870df2d0639d6e5a6ae01b0f6da
34,832
py
Python
characters.py
theDrake/toads-adventure-py
d2871341a95f60261163f3cd297c3532ddcc4e70
[ "MIT" ]
null
null
null
characters.py
theDrake/toads-adventure-py
d2871341a95f60261163f3cd297c3532ddcc4e70
[ "MIT" ]
null
null
null
characters.py
theDrake/toads-adventure-py
d2871341a95f60261163f3cd297c3532ddcc4e70
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Filename: characters.py # # Author: David C. Drake (https://davidcdrake.com) # # Description: Manages player and non-player characters for Toad's Adventure. # Developed using Python 2.7 and Pygame 1.9. #-------------...
40.691589
80
0.45151
ddee7a1ba74ef0ae6a3a15088f53b3ab35e44552
2,022
py
Python
measures/coverage.py
markanewman/corpustools
9a100396474c48579ef98ba0db6f44b4efdfc6c8
[ "MIT" ]
null
null
null
measures/coverage.py
markanewman/corpustools
9a100396474c48579ef98ba0db6f44b4efdfc6c8
[ "MIT" ]
null
null
null
measures/coverage.py
markanewman/corpustools
9a100396474c48579ef98ba0db6f44b4efdfc6c8
[ "MIT" ]
null
null
null
import pathlib from ..utils.csvfile import read_dictionary, write_dictionary from ..utils.tarfile import file_in_corpus, read_lines_from_tar_file from statistics import mean def coverage(corpus, tokens, tokenizer = None): """ Calculates the Zif's law coverage of a given set of tokens on the corpus an a documen...
32.095238
108
0.656281
1b6897d34d934d3ce125ce99cf35292e0ec525ec
14,305
py
Python
exe/portable-python/App/Lib/test/test_sysconfig.py
jaredmusil/iawsc-data-toolbox
65b97d45e13813935017f8b3c5726784027b065f
[ "MIT" ]
null
null
null
exe/portable-python/App/Lib/test/test_sysconfig.py
jaredmusil/iawsc-data-toolbox
65b97d45e13813935017f8b3c5726784027b065f
[ "MIT" ]
1
2018-04-15T22:59:15.000Z
2018-04-15T22:59:15.000Z
exe/portable-python/App/Lib/test/test_sysconfig.py
jaredmusil/iawsc-data-toolbox
65b97d45e13813935017f8b3c5726784027b065f
[ "MIT" ]
null
null
null
"""Tests for sysconfig.""" import unittest import sys import os import subprocess import shutil from copy import copy, deepcopy from test.support import (run_unittest, TESTFN, unlink, captured_stdout, skip_unless_symlink) import sysconfig from sysconfig import (get_paths, get_platform, get_...
38.557951
97
0.561622
deac7816a6d9fa9eb9e1fadcd399f774fcf1e833
442
py
Python
src/299. Bulls and Cows.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
src/299. Bulls and Cows.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
src/299. Bulls and Cows.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
from itertools import izip from collections import Counter class Solution(object): def getHint(self, secret, guess): """ :type secret: str :type guess: str :rtype: str """ A = 0 B = 0 C = Counter() for a, b in izip(secret, guess): if a == b: A += 1 continue C[a] += 1 if C[a] <= 0: ...
15.241379
40
0.533937
212b1f74d559efa09c2081d2e79ce80e0137d265
4,900
py
Python
CampusMap-master/main.py
divineflatus/ICM
0d0aaa2a3433f9d25fc9c8c7fe90ccb970378032
[ "MIT" ]
null
null
null
CampusMap-master/main.py
divineflatus/ICM
0d0aaa2a3433f9d25fc9c8c7fe90ccb970378032
[ "MIT" ]
null
null
null
CampusMap-master/main.py
divineflatus/ICM
0d0aaa2a3433f9d25fc9c8c7fe90ccb970378032
[ "MIT" ]
null
null
null
import sys from PyQt5 import QtCore, QtGui, QtWidgets from welcome import Ui_WelcomeWindow from options import Ui_OptionWindow from HomeScreen import Ui_HomeScreen from MapScreen import Ui_MapScreen from mapConstructor import MapConstructor from event import Event from webServer import WebServer class Dialog(QtWidget...
31.818182
137
0.665102
ae1b1414ab4a96d0bc679073517a2bd61c05aa76
1,339
py
Python
genosha/main.py
marcioaug/genosha
756e70c835b82c70201ebd2aa458bc95a39e9c69
[ "MIT" ]
null
null
null
genosha/main.py
marcioaug/genosha
756e70c835b82c70201ebd2aa458bc95a39e9c69
[ "MIT" ]
null
null
null
genosha/main.py
marcioaug/genosha
756e70c835b82c70201ebd2aa458bc95a39e9c69
[ "MIT" ]
null
null
null
import os import json from hunor.main import Hunor from hunor.args import Options from genosha.utils import gen_export_dir def main(): config_file = '/home/marcioaug/PycharmProjects/genosha/examples/relational/relational/config.json' mutants_dir = '/home/marcioaug/PycharmProjects/genosha/examples/relationa...
27.326531
102
0.643764
b0509be8069691fb4ed99bde92b1d01fcd045dfa
945
py
Python
scraper/storage_spiders/giaynamcaonet.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
null
null
null
scraper/storage_spiders/giaynamcaonet.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
scraper/storage_spiders/giaynamcaonet.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//div[@class='infoProduct']/h1", 'price' : "//span[@class='color-red font-bigger']/text()", 'category' : "//ul[@class='bc-menu']/l...
35
79
0.621164
4f3de7e50db7522a212bee56c802121c8f92a70e
22,956
py
Python
src/manhole/__init__.py
jgarte/python-manhole
e71a91d138339aedf3778eebe8ccfd5b6c1a46f4
[ "BSD-2-Clause" ]
256
2015-02-11T08:06:43.000Z
2022-03-26T04:17:36.000Z
src/manhole/__init__.py
jgarte/python-manhole
e71a91d138339aedf3778eebe8ccfd5b6c1a46f4
[ "BSD-2-Clause" ]
29
2015-06-15T01:58:22.000Z
2022-01-04T04:54:30.000Z
src/manhole/__init__.py
jgarte/python-manhole
e71a91d138339aedf3778eebe8ccfd5b6c1a46f4
[ "BSD-2-Clause" ]
15
2015-06-15T01:53:49.000Z
2022-03-12T00:44:54.000Z
from __future__ import print_function import atexit import code import errno import os import signal import socket import struct import sys import traceback from contextlib import closing __version__ = '1.8.0' try: import signalfd except ImportError: signalfd = None try: string = basestring except NameEr...
35.86875
120
0.629726
3b3abeb1720d9cd48c02c2f3a49e70bf66a2b883
7,951
py
Python
graphs/basic_graphs.py
ELR424/Python
a212efee5b44312c8b4b626ae412bacc5f4117fd
[ "MIT" ]
1,568
2019-04-25T11:54:45.000Z
2022-03-31T23:35:23.000Z
graphs/basic_graphs.py
rayenough/Python
2fc2ae3f32fad16226c88358cb7c9e4e5c790a8f
[ "MIT" ]
58
2019-02-20T10:45:50.000Z
2020-09-30T12:18:45.000Z
graphs/basic_graphs.py
rayenough/Python
2fc2ae3f32fad16226c88358cb7c9e4e5c790a8f
[ "MIT" ]
464
2019-04-17T04:57:16.000Z
2022-03-31T04:12:57.000Z
from __future__ import print_function try: raw_input # Python 2 except NameError: raw_input = input # Python 3 try: xrange # Python 2 except NameError: xrange = range # Python 3 # Accept No. of Nodes and edges n, m = map(int, raw_input().split(" ")) # Initialising Dictionary of edges g = {} for ...
27.323024
86
0.353415
a9fa9643378a63b503aace876cc2c622a5e0de6f
1,183
py
Python
setup.py
Computational-Plant-Science/smart
852f9651555cc24ff3603b5b44937bf07ffe9480
[ "BSD-3-Clause" ]
3
2020-11-23T18:41:21.000Z
2020-11-24T22:13:06.000Z
setup.py
Computational-Plant-Science/smart
852f9651555cc24ff3603b5b44937bf07ffe9480
[ "BSD-3-Clause" ]
3
2020-11-23T17:03:31.000Z
2021-04-29T20:07:27.000Z
setup.py
Computational-Plant-Science/spg
852f9651555cc24ff3603b5b44937bf07ffe9480
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name='smart-arabidopsis-traits', version='0.5.2', description='Extract geometric traits from top-view images of plants.', long_description=long_description, long_descripti...
24.645833
75
0.578191
45e4280f02a61bdb05517c152f97a207280e10ec
17,721
py
Python
venv/Lib/site-packages/sklearn/impute/tests/test_knn.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/sklearn/impute/tests/test_knn.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/sklearn/impute/tests/test_knn.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
import numpy as np import pytest from sklearn import config_context from sklearn.impute import KNNImputer from sklearn.metrics.pairwise import nan_euclidean_distances from sklearn.metrics.pairwise import pairwise_distances from sklearn.neighbors import KNeighborsRegressor from sklearn.utils._testing import ass...
31.364602
89
0.526776
4dbcdafc75999b826871b0bee9623aed58f2f3a0
11,804
py
Python
scripts/scriptmgr.py
pgq/skytools
8b7e6c118572a605d28b7a3403c96aeecfd0d272
[ "0BSD" ]
23
2017-01-18T03:33:56.000Z
2021-02-15T18:51:23.000Z
scripts/scriptmgr.py
pgq/skytools
8b7e6c118572a605d28b7a3403c96aeecfd0d272
[ "0BSD" ]
2
2017-08-29T00:05:24.000Z
2018-07-23T13:33:52.000Z
scripts/scriptmgr.py
pgq/skytools
8b7e6c118572a605d28b7a3403c96aeecfd0d272
[ "0BSD" ]
12
2016-11-24T10:17:00.000Z
2020-06-30T01:18:32.000Z
#! /usr/bin/env python """Bulk start/stop of scripts. Reads a bunch of config files and maps them to scripts, then handles those. Config template: [scriptmgr] job_name = scriptmgr_cphdb5 config_list = ~/random/conf/*.ini logfile = ~/log/%(job_name)s.log pidfile = ~/pid/%(job_name)s.pid #use_...
29.808081
122
0.503643
98b8df0ae930b976c438af445dd16e42fa6d5927
3,254
py
Python
ftpsyncprogress.py
ashucg/SublimeText2-FTPSync
5893073bf081a0c7d51dff26fac77f2163d8d71f
[ "MIT" ]
178
2015-01-07T12:25:48.000Z
2022-03-02T18:27:34.000Z
ftpsyncprogress.py
ashucg/SublimeText2-FTPSync
5893073bf081a0c7d51dff26fac77f2163d8d71f
[ "MIT" ]
106
2015-01-06T12:39:24.000Z
2021-07-20T04:16:09.000Z
ftpsyncprogress.py
ashucg/SublimeText2-FTPSync
5893073bf081a0c7d51dff26fac77f2163d8d71f
[ "MIT" ]
47
2015-01-05T11:26:32.000Z
2022-01-08T10:21:52.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2012 Jiri "NoxArt" Petruzelka # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"), to deal in the Software without # restriction, including without limitation the rights to use,...
30.990476
92
0.632145
3b4edc6c1e78c3b6a4e19cd5f78516443ed0801c
971
py
Python
Python/statistics_with_Python/04_Exploring_Data_with_Graphs/Script_Files/07_linegraphs.py
snehilk1312/AppliedStatistics
0e2b9ca45b004f38f796fa6506270382ca3c95a0
[ "MIT" ]
null
null
null
Python/statistics_with_Python/04_Exploring_Data_with_Graphs/Script_Files/07_linegraphs.py
snehilk1312/AppliedStatistics
0e2b9ca45b004f38f796fa6506270382ca3c95a0
[ "MIT" ]
null
null
null
Python/statistics_with_Python/04_Exploring_Data_with_Graphs/Script_Files/07_linegraphs.py
snehilk1312/AppliedStatistics
0e2b9ca45b004f38f796fa6506270382ca3c95a0
[ "MIT" ]
null
null
null
import pandas as pd import seaborn as sns import matplotlib.pyplot as plt data = pd.read_csv('/home/atrides/Desktop/R/statistics_with_Python/04_Exploring_Data_with_Graphs/Data_Files/Hiccups.dat', sep='\s+') print(data.head()) print(data.describe()) data['id'] = data.index df = pd.melt(data, id_vars='id', value_va...
29.424242
135
0.725026
5ea853db43cb8dc6f4f374efa5f8688addf6774c
24,543
py
Python
src/olympia/search/tests/test_search_ranking.py
fdintino/nginxconf-2018-mozilla-addons-server
01643e0c8e24ae32a4de33ee99c0119e388a394b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/search/tests/test_search_ranking.py
fdintino/nginxconf-2018-mozilla-addons-server
01643e0c8e24ae32a4de33ee99c0119e388a394b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/search/tests/test_search_ranking.py
fdintino/nginxconf-2018-mozilla-addons-server
01643e0c8e24ae32a4de33ee99c0119e388a394b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import json from olympia import amo from olympia.amo.tests import ( APITestClient, ESTestCase, reverse_ns, create_switch) class TestRankingScenarios(ESTestCase): client_class = APITestClient def _check_scenario(self, query, expected, no_match=None): # Make sure things are...
40.836938
79
0.572057
140275f981addc767a8ed9b4412d0ac9a12ec112
4,380
py
Python
addons/io_sketchfab_plugin/pack_for_export.py
gorenje/blender-plugin
2d4d65e77bb9c35965bfc9714c947f9a10819462
[ "Apache-2.0" ]
2
2020-04-16T22:12:40.000Z
2022-01-22T17:18:45.000Z
addons/io_sketchfab_plugin/pack_for_export.py
gorenje/blender-plugin
2d4d65e77bb9c35965bfc9714c947f9a10819462
[ "Apache-2.0" ]
null
null
null
addons/io_sketchfab_plugin/pack_for_export.py
gorenje/blender-plugin
2d4d65e77bb9c35965bfc9714c947f9a10819462
[ "Apache-2.0" ]
2
2019-05-16T04:01:09.000Z
2020-08-25T11:42:26.000Z
""" Copyright 2019 Sketchfab 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 agreed to in writing, software dis...
33.692308
93
0.575114
b70946fb3838dd244b04287f8aab373e535e1d10
784
py
Python
api/v1/list/tests/test_list_item.py
RyanNoelk/OpenEats
dd015570cf07961b03525d256cd6d175bdb28ea2
[ "MIT" ]
113
2016-10-05T19:33:10.000Z
2020-12-28T15:25:02.000Z
api/v1/list/tests/test_list_item.py
RyanNoelk/OpenEats
dd015570cf07961b03525d256cd6d175bdb28ea2
[ "MIT" ]
151
2016-10-27T19:40:22.000Z
2018-03-02T22:58:41.000Z
api/v1/list/tests/test_list_item.py
RyanNoelk/OpenEats
dd015570cf07961b03525d256cd6d175bdb28ea2
[ "MIT" ]
47
2016-10-26T16:42:34.000Z
2020-05-25T12:38:34.000Z
#!/usr/bin/env python # encoding: utf-8 from __future__ import unicode_literals from django.test import TestCase from django.contrib.auth.models import AnonymousUser, User from rest_framework.test import APIRequestFactory from v1.list import views class ListTests(TestCase): fixtures = ['test/users.json', 'test/li...
32.666667
77
0.700255
9968ad5140db830a55a8784aaf6b74a44c151153
12,794
py
Python
Workshop1-2/ControlFlow.py
pythonsolidity/python-workshops
865867883dedaaf8ebcedd51add2ba05688af91c
[ "MIT" ]
null
null
null
Workshop1-2/ControlFlow.py
pythonsolidity/python-workshops
865867883dedaaf8ebcedd51add2ba05688af91c
[ "MIT" ]
null
null
null
Workshop1-2/ControlFlow.py
pythonsolidity/python-workshops
865867883dedaaf8ebcedd51add2ba05688af91c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Introduction to Python Statements # Let's create a simple statement that says: # "If a is greater than b, assign 2 to a and 4 to b" # # if a>b: # a = 2 # b = 4 # ## Indentation # Note how Python is so heavily driven by code indentation and whitespac...
23.389397
411
0.674769
e69887726933ed82daaeeaec610b72e7866a6b5f
2,325
py
Python
TSD_DeconvNet/data.py
KaiL4eK/keras_traffic_signs_localization
38d5f9b2a11c5db04850ddba3ae91f18dcb98066
[ "MIT" ]
4
2019-01-03T18:21:39.000Z
2022-01-25T00:24:07.000Z
TSD_DeconvNet/data.py
KaiL4eK/keras_traffic_signs_localization
38d5f9b2a11c5db04850ddba3ae91f18dcb98066
[ "MIT" ]
1
2020-09-26T00:37:57.000Z
2020-09-26T00:37:57.000Z
TSD_DeconvNet/data.py
KaiL4eK/keras_traffic_signs_localization
38d5f9b2a11c5db04850ddba3ae91f18dcb98066
[ "MIT" ]
null
null
null
import os from os.path import isfile, isdir, join, dirname, exists import pickle from sklearn.model_selection import train_test_split def image_preprocess(image): return normalize(image) def normalize(image): return image / 255. def create_training_instances( train_images, train_masks, ...
34.191176
102
0.665376
8f4671ab87b1ed77d5e33a579e56f423ad62ad04
3,579
py
Python
Exercise3/cfn_template_automation.py
n-fink/arcgis-python-serverless-example
8e07233f2175e8ed66bae5cb46a0128749ad8fcd
[ "MIT" ]
null
null
null
Exercise3/cfn_template_automation.py
n-fink/arcgis-python-serverless-example
8e07233f2175e8ed66bae5cb46a0128749ad8fcd
[ "MIT" ]
null
null
null
Exercise3/cfn_template_automation.py
n-fink/arcgis-python-serverless-example
8e07233f2175e8ed66bae5cb46a0128749ad8fcd
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ A python script utilizing the Troposphere library to generate a CloudFormation template to deploy a serverless ArcGIS data update stack """ __author__ = "Nick Fink" __contact__ = "nicholas.fink@nltgis.com" __copyright__ = "Copyright 2021 New Light Technologies, Inc." __date__ = "2021/01/26" _...
30.07563
114
0.649064
60152c13f13af904eddc7cbb8c9dba1a164c2f36
743
py
Python
web_manage/member/urls.py
chicken-noodle/mysite
6973edd1357a2490f7f47e5ce427af5b144fb50a
[ "bzip2-1.0.6" ]
1
2019-09-02T02:14:51.000Z
2019-09-02T02:14:51.000Z
web_manage/member/urls.py
chicken-noodle/mysite
6973edd1357a2490f7f47e5ce427af5b144fb50a
[ "bzip2-1.0.6" ]
null
null
null
web_manage/member/urls.py
chicken-noodle/mysite
6973edd1357a2490f7f47e5ce427af5b144fb50a
[ "bzip2-1.0.6" ]
1
2019-09-02T03:33:06.000Z
2019-09-02T03:33:06.000Z
from django.urls import path from . import views urlpatterns = [ path('com_manage/', views.com_manage, name='com_manage'), path('set_com_status/', views.set_com_status, name='set_com_status'), path('com_detail_manage/', views.com_detail_manage, name='com_detail_manage'), path('com_edit/', views.com_edit, name='com...
49.533333
106
0.781965
e3fa68534e94629435d3104a3799bf7f921114e8
4,471
py
Python
Network Simulations/Assignment 2/SW/client.py
neeladripal/bcse-lab
915d2f535ae95a062438fc85980419646a3951ad
[ "MIT" ]
null
null
null
Network Simulations/Assignment 2/SW/client.py
neeladripal/bcse-lab
915d2f535ae95a062438fc85980419646a3951ad
[ "MIT" ]
null
null
null
Network Simulations/Assignment 2/SW/client.py
neeladripal/bcse-lab
915d2f535ae95a062438fc85980419646a3951ad
[ "MIT" ]
1
2021-08-06T14:39:53.000Z
2021-08-06T14:39:53.000Z
import socket import select from sender import Sender from receiver import Receiver # Function to handle client operations def client(): # define server ip address SERVER_IP='127.0.0.1' # define server port address SERVER_PORT=12345 # start the client socket with socket.socket(socket.AF_INET,s...
36.950413
110
0.527622
0d9d27da66edc0b91653b7da267479ce332fe392
4,688
py
Python
process_raw_data.py
zadjii/github-analytics
9f0f82320a2606e8c838c475379e1b2943ffab4d
[ "MIT" ]
1
2021-05-12T13:01:35.000Z
2021-05-12T13:01:35.000Z
process_raw_data.py
zadjii/github-analytics
9f0f82320a2606e8c838c475379e1b2943ffab4d
[ "MIT" ]
null
null
null
process_raw_data.py
zadjii/github-analytics
9f0f82320a2606e8c838c475379e1b2943ffab4d
[ "MIT" ]
null
null
null
import sys import json import re import github from github import Github from common.Instance import get_github_token, get_github_repo, Instance from models.Issue import Issue from models.Comment import Comment def usage(): print("python list_dupes.py ") print(" <todo>") def _do_issue(db, ...
33.726619
90
0.627986
30fb96c18e497c359f6eaca0c9f3298ec777b572
1,532
py
Python
hub/views/public/exporters.py
ecila7290/exporterhub-be
07f5763586c10f8722fcb4c8411c0af097edc0d0
[ "Apache-2.0" ]
4
2020-11-25T00:27:30.000Z
2020-12-04T03:54:20.000Z
hub/views/public/exporters.py
ralfyang/exporterhub-be
47370f04207545f33949e2ce4c194ec24ad9d23c
[ "Apache-2.0" ]
null
null
null
hub/views/public/exporters.py
ralfyang/exporterhub-be
47370f04207545f33949e2ce4c194ec24ad9d23c
[ "Apache-2.0" ]
2
2020-11-25T00:27:31.000Z
2020-12-03T05:51:52.000Z
import json from django.views import View from django.http import JsonResponse from hub.models import Exporter class MainView(View): def get(self, request): try: exporters=Exporter.objects.select_related('category', 'official').prefetch_related('release_set').order_by('id') data={...
43.771429
124
0.484334
8afb40961a2e4795cdda20cb15b2ce4a2d5a33e8
1,893
py
Python
fhir/resources/STU3/codeableconcept.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
144
2019-05-08T14:24:43.000Z
2022-03-30T02:37:11.000Z
fhir/resources/STU3/codeableconcept.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
82
2019-05-13T17:43:13.000Z
2022-03-30T16:45:17.000Z
fhir/resources/STU3/codeableconcept.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
48
2019-04-04T14:14:53.000Z
2022-03-30T06:07:31.000Z
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/CodeableConcept Release: STU3 Version: 3.0.2 Revision: 11917 Last updated: 2019-10-24T11:53:00+11:00 """ import typing from pydantic import Field from . import element, fhirtypes class CodeableConcept(element.Element): """Disclaimer: A...
31.55
82
0.663497
7462be138cbc44f9e4c9c8994dc9595ab5a57890
1,702
py
Python
configs/_base_/datasets/coco_detection.py
ruiningTang/mmdetection
100b0b5e0edddc45af0812b9f1474493c61671ef
[ "Apache-2.0" ]
null
null
null
configs/_base_/datasets/coco_detection.py
ruiningTang/mmdetection
100b0b5e0edddc45af0812b9f1474493c61671ef
[ "Apache-2.0" ]
null
null
null
configs/_base_/datasets/coco_detection.py
ruiningTang/mmdetection
100b0b5e0edddc45af0812b9f1474493c61671ef
[ "Apache-2.0" ]
null
null
null
dataset_type = 'CocoDataset' data_root = '/home/amax/coco2017/' img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) train_pipeline = [ dict(type='LoadImageFromFile'), dict(type='LoadAnnotations', with_bbox=True), dict(type='Resize', img_scale=(1333, 800), keep_...
34.734694
77
0.62691
9c4c5ee997a1319b889e41ab9d83c48894e62ebb
349
py
Python
astropy/utils/setup_package.py
jayvdb/astropy
bc6d8f106dd5b60bf57a8e6e29c4e2ae2178991f
[ "BSD-3-Clause" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
astropy/utils/setup_package.py
jayvdb/astropy
bc6d8f106dd5b60bf57a8e6e29c4e2ae2178991f
[ "BSD-3-Clause" ]
242
2019-01-29T15:48:27.000Z
2022-03-31T22:09:21.000Z
astropy/utils/setup_package.py
jayvdb/astropy
bc6d8f106dd5b60bf57a8e6e29c4e2ae2178991f
[ "BSD-3-Clause" ]
31
2019-03-10T09:51:27.000Z
2022-02-14T23:11:12.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst from distutils.core import Extension from os.path import dirname, join, relpath ASTROPY_UTILS_ROOT = dirname(__file__) def get_extensions(): return [ Extension('astropy.utils._compiler', [relpath(join(ASTROPY_UTILS_ROOT, '...
24.928571
75
0.69341
87cfe878e415773590706e787c65e21aacfa1148
978
py
Python
blasteroids/lib/client_messages/welcome.py
smallarmyofnerds/blasteroids
082bc010ed6d2ec6098a8848edcbee433a5b6961
[ "MIT" ]
null
null
null
blasteroids/lib/client_messages/welcome.py
smallarmyofnerds/blasteroids
082bc010ed6d2ec6098a8848edcbee433a5b6961
[ "MIT" ]
7
2021-09-04T18:49:13.000Z
2021-09-05T19:37:39.000Z
blasteroids/lib/client_messages/welcome.py
smallarmyofnerds/blasteroids
082bc010ed6d2ec6098a8848edcbee433a5b6961
[ "MIT" ]
null
null
null
from .message import Message from ..constants import WELCOME_MESSAGE_ID class WelcomeMessage(Message): def __init__(self, world_width, world_height, boundary): super(WelcomeMessage, self).__init__(WELCOME_MESSAGE_ID) self.world_width = world_width self.world_height = world_height s...
37.615385
97
0.729039
059aeac8dbd988fc40efa7fa5e9ea760d8deab56
1,110
py
Python
pandas-iris/{{ cookiecutter.repo_name }}/src/tests/test_run.py
kedro-org/kedro-starters
6f22cc804bdc9ca7e800a950de4cade6d7b942af
[ "Apache-2.0" ]
5
2022-01-21T07:33:52.000Z
2022-03-06T11:32:10.000Z
pandas-iris/{{ cookiecutter.repo_name }}/src/tests/test_run.py
kedro-org/kedro-starters
6f22cc804bdc9ca7e800a950de4cade6d7b942af
[ "Apache-2.0" ]
15
2022-01-17T09:32:18.000Z
2022-03-30T17:22:35.000Z
pandas-iris/{{ cookiecutter.repo_name }}/src/tests/test_run.py
kedro-org/kedro-starters
6f22cc804bdc9ca7e800a950de4cade6d7b942af
[ "Apache-2.0" ]
7
2022-01-10T10:03:54.000Z
2022-03-28T07:27:00.000Z
""" This module contains an example test. Tests should be placed in ``src/tests``, in modules that mirror your project's structure, and in files named test_*.py. They are simply functions named ``test_*`` which test a unit of logic. To run the tests, run ``kedro test`` from the project root directory. """ from pathl...
27.75
76
0.754955
3b561d32cb3b6724e6935e6978791bccbd4f9edb
3,176
py
Python
cli/setup.py
hanwen-pcluste/aws-parallelcluster
9bc1fe4df528da0e81393e4eee9c736b52db54d4
[ "Apache-2.0" ]
null
null
null
cli/setup.py
hanwen-pcluste/aws-parallelcluster
9bc1fe4df528da0e81393e4eee9c736b52db54d4
[ "Apache-2.0" ]
34
2022-02-03T03:14:37.000Z
2022-03-28T03:32:22.000Z
cli/setup.py
hanwen-pcluste/aws-parallelcluster
9bc1fe4df528da0e81393e4eee9c736b52db54d4
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2016 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file ...
37.809524
119
0.649874
74ae0981104d59638c188fd5c170dc14a8163916
519
py
Python
profiles_api/urls.py
geraldini/profiles-rest-api
104fb06da1af1de659bc0e85e802626775dd4253
[ "MIT" ]
null
null
null
profiles_api/urls.py
geraldini/profiles-rest-api
104fb06da1af1de659bc0e85e802626775dd4253
[ "MIT" ]
null
null
null
profiles_api/urls.py
geraldini/profiles-rest-api
104fb06da1af1de659bc0e85e802626775dd4253
[ "MIT" ]
null
null
null
from django.urls import include from django.urls import path from rest_framework.routers import DefaultRouter from profiles_api import views router = DefaultRouter() router.register('hello-viewset', views.HelloViewSet, base_name='hello-viewset') router.register('profile', views.UserProfileViewSet) router.register('f...
28.833333
79
0.770713
520ff401a7000cee0a99e69951e7d0e909021823
1,132
py
Python
tests/flytekit/loadtests/dynamic_job.py
slai/flytekit
9d73d096b748d263a638e6865d15db4880845305
[ "Apache-2.0" ]
null
null
null
tests/flytekit/loadtests/dynamic_job.py
slai/flytekit
9d73d096b748d263a638e6865d15db4880845305
[ "Apache-2.0" ]
2
2021-06-26T04:32:43.000Z
2021-07-14T04:47:52.000Z
tests/flytekit/loadtests/dynamic_job.py
slai/flytekit
9d73d096b748d263a638e6865d15db4880845305
[ "Apache-2.0" ]
null
null
null
import time from six.moves import range from flytekit.sdk.tasks import dynamic_task, inputs, outputs, python_task from flytekit.sdk.types import Types from flytekit.sdk.workflow import Input, workflow_class @inputs(value1=Types.Integer) @outputs(out=Types.Integer) @python_task(cpu_request="1", cpu_limit="1", memory...
27.609756
86
0.719081
be86dd9e1c30547a9cfea3c021e5ca80ec9a5d5e
609
py
Python
rest-api-example-server/note_model.py
doctor-blue/retrofit-tutorial
2f067d2b94b401cf6f2edd30aced0fc692405526
[ "MIT" ]
null
null
null
rest-api-example-server/note_model.py
doctor-blue/retrofit-tutorial
2f067d2b94b401cf6f2edd30aced0fc692405526
[ "MIT" ]
null
null
null
rest-api-example-server/note_model.py
doctor-blue/retrofit-tutorial
2f067d2b94b401cf6f2edd30aced0fc692405526
[ "MIT" ]
null
null
null
class NoteModel: def __init__( self, note_id=0, title="", description="" ): self.title = title self.description = description self.id = note_id def set_data(self, data): self.title = data["title"] self.description = data["description"] return self ...
24.36
65
0.56486
8c8943d7324560263fb5cfa8f6c5938b8e2c37d9
10,710
py
Python
sdks/python/apache_beam/dataframe/transforms.py
shitanshu-google/beam
9cd959f61d377874ee1839c2de4bb8f65a948ecc
[ "Apache-2.0" ]
1
2019-01-16T10:14:33.000Z
2019-01-16T10:14:33.000Z
sdks/python/apache_beam/dataframe/transforms.py
shitanshu-google/beam
9cd959f61d377874ee1839c2de4bb8f65a948ecc
[ "Apache-2.0" ]
2
2018-10-17T23:20:08.000Z
2019-09-25T02:30:43.000Z
sdks/python/apache_beam/dataframe/transforms.py
shitanshu-google/beam
9cd959f61d377874ee1839c2de4bb8f65a948ecc
[ "Apache-2.0" ]
1
2018-12-18T03:44:31.000Z
2018-12-18T03:44:31.000Z
# # 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 "License"); you may not us...
34.326923
80
0.660971