hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
794ea23ccef3098f4853ec0712ad36bd4fc2acca
285
py
Python
metaflow/datastore/__init__.py
RobBlumberg/metaflow
9f737e6026eee250c1593a2cb1d1c4b19a00adf4
[ "Apache-2.0" ]
null
null
null
metaflow/datastore/__init__.py
RobBlumberg/metaflow
9f737e6026eee250c1593a2cb1d1c4b19a00adf4
[ "Apache-2.0" ]
null
null
null
metaflow/datastore/__init__.py
RobBlumberg/metaflow
9f737e6026eee250c1593a2cb1d1c4b19a00adf4
[ "Apache-2.0" ]
null
null
null
from .inputs import Inputs from .flow_datastore import FlowDataStore from .datastore_set import TaskDataStoreSet from .task_datastore import TaskDataStore from .local_storage import LocalStorage from .s3_storage import S3Storage DATASTORES = {"local": LocalStorage, "s3": S3Storage}
28.5
53
0.831579
794ea43c6b915563d1c542455f60e2c2757c931f
272
py
Python
DataStorageSystems/BST.py
Nezgun/Exploring-Bees
25b6028b55a9dacd0d65c165848da2fe57c39a5a
[ "MIT" ]
null
null
null
DataStorageSystems/BST.py
Nezgun/Exploring-Bees
25b6028b55a9dacd0d65c165848da2fe57c39a5a
[ "MIT" ]
1
2019-07-26T04:52:12.000Z
2019-07-26T04:52:12.000Z
DataStorageSystems/BST.py
Nezgun/Exploring-Bees
25b6028b55a9dacd0d65c165848da2fe57c39a5a
[ "MIT" ]
null
null
null
class BST: def __init__(self): self.head = None self.size = 0 def addNode(self, data): return def deleteNode(self, Node): return def search(self, data): return def getSize(self): return self.size
16
31
0.536765
794ea514a735a14e95adaca4e39081ad1b9c7cf8
10,989
py
Python
build/lib/preview_generator/preview/builder/office__libreoffice.py
alounko/preview-generator-py2
604734ee3c18b0fcf87360022871b884132f71a0
[ "MIT" ]
null
null
null
build/lib/preview_generator/preview/builder/office__libreoffice.py
alounko/preview-generator-py2
604734ee3c18b0fcf87360022871b884132f71a0
[ "MIT" ]
null
null
null
build/lib/preview_generator/preview/builder/office__libreoffice.py
alounko/preview-generator-py2
604734ee3c18b0fcf87360022871b884132f71a0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from io import BytesIO import logging import os from subprocess import check_call from subprocess import DEVNULL from subprocess import STDOUT import time import typing from PyPDF2 import PdfFileReader from PyPDF2 import PdfFileWriter from preview_generator.exception import BuilderDependencyN...
36.267327
98
0.590045
794ea607ea15bc54b31800cbb68c1934c3b54946
2,660
py
Python
scripts/plotNetWTP.py
aerospike/aerospike-benchmarks
97a18f669a8141d007a9458b750a102a89d1c4eb
[ "Apache-2.0" ]
3
2017-04-06T06:27:33.000Z
2019-02-09T15:36:24.000Z
scripts/plotNetWTP.py
aerospike-examples/aerospike-benchmarks
97a18f669a8141d007a9458b750a102a89d1c4eb
[ "Apache-2.0" ]
null
null
null
scripts/plotNetWTP.py
aerospike-examples/aerospike-benchmarks
97a18f669a8141d007a9458b750a102a89d1c4eb
[ "Apache-2.0" ]
1
2017-11-27T21:43:07.000Z
2017-11-27T21:43:07.000Z
#!/usr/bin/env /usr/local/bin/python # # Copyright 2012-2016 Aerospike, Inc. # # Portions may be licensed to Aerospike, Inc. under one or more contributor # license agreements WHICH ARE COMPATIBLE WITH THE APACHE LICENSE, VERSION 2.0. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not #...
27.142857
81
0.615038
794ea63f4952f74c669dcb01993e9bea1484b1fe
31
py
Python
module/__init__.py
TauWu/monitor_bot
637a13266a4841ecfdbcc455ecc9b094c07ffd94
[ "Apache-2.0" ]
3
2018-09-25T08:01:21.000Z
2021-02-02T10:12:41.000Z
module/__init__.py
TauWu/monitor_bot
637a13266a4841ecfdbcc455ecc9b094c07ffd94
[ "Apache-2.0" ]
null
null
null
module/__init__.py
TauWu/monitor_bot
637a13266a4841ecfdbcc455ecc9b094c07ffd94
[ "Apache-2.0" ]
1
2018-11-14T07:52:06.000Z
2018-11-14T07:52:06.000Z
# -*- coding:utf-8 -*- # module
15.5
22
0.516129
794ea6c316fa08eecd473a8133c03d68232b47a1
464
py
Python
data/scripts/templates/object/draft_schematic/bio_engineer/creature/shared_creature_roba.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/draft_schematic/bio_engineer/creature/shared_creature_roba.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/draft_schematic/bio_engineer/creature/shared_creature_roba.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Intangible() result.template = "object/draft_schematic/bio_engineer/creature/shared_creature_roba.iff" result.att...
27.294118
90
0.734914
794ea70638fda491863f96e6ae7938ec44ce71dc
3,464
py
Python
imwievaluation/semester_old.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
imwievaluation/semester_old.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
imwievaluation/semester_old.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
1
2019-10-19T10:11:17.000Z
2019-10-19T10:11:17.000Z
""" Copyrigh 2018 Author Elke Schaechtele """ from csv import DictReader from imwievaluation.utils import clean_string class Semester(object): def __init__(self, term): self.term = term self.lectures = [] self.lecturers = [] def read_survey_file(self, survey_file): with ope...
34.29703
79
0.565242
794ea70b51519ab8081f7f0963fc8960bbe9dc02
1,034
py
Python
jp.atcoder/abc252/abc252_d/31857223.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc252/abc252_d/31857223.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc252/abc252_d/31857223.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import collections import bisect def main() -> None: n = int(input()) a = list(map(int, input().split())) b = list(collections.Counter(a).values()) origin = sorted(set(b)) b = [bisect.bisect_left(origin, x) for x in b] mx = max(b) cc = [0] * (mx + 1) for c in b: ...
21.541667
56
0.421663
794ea7326037da48e5aafbaf02f97d16015ff472
8,591
py
Python
spyder/app/solver.py
CodedX-cyber/spyder
57a0e206562b566ee565221ea20f46941bc00e00
[ "MIT" ]
1
2021-04-11T00:32:35.000Z
2021-04-11T00:32:35.000Z
spyder/app/solver.py
CodedX-cyber/spyder
57a0e206562b566ee565221ea20f46941bc00e00
[ "MIT" ]
null
null
null
spyder/app/solver.py
CodedX-cyber/spyder
57a0e206562b566ee565221ea20f46941bc00e00
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Plugin dependency solver. """ import ast import importlib import logging import os import traceback import pkg_resources from spyder.api.exceptions import Spyde...
37.515284
79
0.598533
794ea842b0507dd37e2eaa693caec1e4e40f8d6a
32,052
py
Python
dgp_graph/impl_parallel.py
naiqili/DGPG-MLJ
65d566cc666a7ed43b5211e9b9c1af43ec8c0216
[ "MIT" ]
1
2022-01-05T11:17:44.000Z
2022-01-05T11:17:44.000Z
dgp_graph/impl_parallel.py
naiqili/DGPG-journal
2770ce58185091afff5eca8e295086b42f4d874e
[ "MIT" ]
null
null
null
dgp_graph/impl_parallel.py
naiqili/DGPG-journal
2770ce58185091afff5eca8e295086b42f4d874e
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from gpflow.mean_functions import Identity, Linear from gpflow import settings from gpflow import transforms from gpflow.misc import _broadcasting_elementwise_op float_type = settings.float_type from gpflow import params_as_tensors, params_as_tensors_for, ParamList from gpflow...
42.793057
146
0.588887
794ea932050165867b6b9d8983e1375f81ffd90b
9,538
py
Python
cryptofeed_werks/tests/test_calendar.py
globophobe/django-quant-werks
fc2f3eefccf03f4cb4df0abe6bb6c54cbd2e998d
[ "MIT" ]
7
2021-12-30T02:38:17.000Z
2022-03-08T16:14:35.000Z
cryptofeed_werks/tests/test_calendar.py
globophobe/fastapi-quant-candles
0bc95f6bb32071aa32a4951ca0a15521f67f7f97
[ "MIT" ]
null
null
null
cryptofeed_werks/tests/test_calendar.py
globophobe/fastapi-quant-candles
0bc95f6bb32071aa32a4951ca0a15521f67f7f97
[ "MIT" ]
1
2022-01-28T00:18:45.000Z
2022-01-28T00:18:45.000Z
from datetime import datetime, time, timezone from typing import List import pandas as pd from django.test import TestCase from cryptofeed_werks.lib import ( get_current_time, get_min_time, get_next_time, get_range, iter_missing, iter_timeframe, iter_window, parse_period_from_to, ) c...
37.849206
87
0.626337
794ea9d751c4f4e3f296f813809dd78ea7a413b9
16,287
py
Python
app/env/lib/python3.7/site-packages/twilio/rest/preview/sync/service/sync_map/sync_map_permission.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
30
2018-06-12T12:00:53.000Z
2021-05-02T01:27:16.000Z
app/env/lib/python3.7/site-packages/twilio/rest/preview/sync/service/sync_map/sync_map_permission.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
11
2019-12-26T17:21:03.000Z
2022-03-21T22:17:07.000Z
app/env/lib/python3.7/site-packages/twilio/rest/preview/sync/service/sync_map/sync_map_permission.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
4
2018-06-12T14:14:20.000Z
2018-06-19T16:01:49.000Z
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import ListResource fr...
35.561135
109
0.639958
794ea9ee2cf6ac4e80716ddddb5c293e77263be9
94,806
py
Python
sdks/python/apache_beam/dataframe/frames.py
elharo/beam
a86dc0609f0b1bcc0c450979363b27b2657418af
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
sdks/python/apache_beam/dataframe/frames.py
elharo/beam
a86dc0609f0b1bcc0c450979363b27b2657418af
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
sdks/python/apache_beam/dataframe/frames.py
elharo/beam
a86dc0609f0b1bcc0c450979363b27b2657418af
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# # 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...
37.193409
98
0.656963
794eaad4cf24445c88cfb64a7f65072873f8d267
11,587
py
Python
scvi/module/_scanvae.py
jules-samaran/scvi-tools
7dcbb819cdc6a7991469fdca6b292276c59a946d
[ "BSD-3-Clause" ]
280
2020-09-18T06:26:28.000Z
2022-03-01T20:28:14.000Z
scvi/module/_scanvae.py
jules-samaran/scvi-tools
7dcbb819cdc6a7991469fdca6b292276c59a946d
[ "BSD-3-Clause" ]
594
2020-09-17T00:03:34.000Z
2022-03-02T21:45:17.000Z
scvi/module/_scanvae.py
jules-samaran/scvi-tools
7dcbb819cdc6a7991469fdca6b292276c59a946d
[ "BSD-3-Clause" ]
96
2020-09-19T21:26:00.000Z
2022-02-25T05:38:05.000Z
from typing import Iterable, Optional, Sequence import numpy as np import torch from torch.distributions import Categorical, Normal from torch.distributions import kl_divergence as kl from torch.nn import functional as F from scvi import _CONSTANTS from scvi._compat import Literal from scvi.module.base import LossRec...
35.32622
88
0.590144
794eab1e146f8bd58d37afd22c84ccfe2d55d393
4,589
py
Python
airflow/operators/presto_check_operator.py
shuva10v/airflow
a6daeb544e815fe350a96d24ae3bb14aee4079a7
[ "Apache-2.0" ]
3
2019-10-03T21:38:59.000Z
2019-10-04T00:39:03.000Z
airflow/operators/presto_check_operator.py
shuva10v/airflow
a6daeb544e815fe350a96d24ae3bb14aee4079a7
[ "Apache-2.0" ]
7
2019-03-27T07:58:14.000Z
2020-02-12T17:42:33.000Z
airflow/operators/presto_check_operator.py
upjohnc/airflow-upjohn-k8s
caadbc1618d73e054de99138b0892cea3a9327c4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
5
2017-06-19T19:55:47.000Z
2020-10-10T00:49:20.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
35.851563
75
0.695141
794eabbf04d496b50b2312950c483aa22958e82e
1,481
py
Python
1M/W4/11.py
allenalvin333/Hackerrank_Prep
26ed5b874daba4775d006824d36f9e82ea5ff1ea
[ "MIT" ]
2
2021-11-25T13:38:36.000Z
2021-11-25T13:42:56.000Z
1M/W4/11.py
allenalvin333/Hackerrank_Prep
26ed5b874daba4775d006824d36f9e82ea5ff1ea
[ "MIT" ]
null
null
null
1M/W4/11.py
allenalvin333/Hackerrank_Prep
26ed5b874daba4775d006824d36f9e82ea5ff1ea
[ "MIT" ]
1
2021-11-25T13:38:43.000Z
2021-11-25T13:38:43.000Z
# https://www.hackerrank.com/challenges/one-month-preparation-kit-tree-preorder-traversal/problem class Node: def __init__(self, info): self.info = info self.left = None self.right = None self.level = None def __str__(self): return str(self.info) class BinarySe...
24.278689
97
0.501013
794eacbbf1f2cf1daf87d03af26460d9916ffd21
3,138
py
Python
xeneta_qualifier/nn.py
xeneta/LeadQualifier
931fa2ffc65625f6d61ffcd299b0679864449d8d
[ "MIT" ]
664
2016-06-07T14:23:32.000Z
2022-03-01T15:03:00.000Z
xeneta_qualifier/nn.py
VovkaZy/LeadQualifier
931fa2ffc65625f6d61ffcd299b0679864449d8d
[ "MIT" ]
8
2016-06-08T13:19:16.000Z
2021-02-04T02:12:59.000Z
xeneta_qualifier/nn.py
VovkaZy/LeadQualifier
931fa2ffc65625f6d61ffcd299b0679864449d8d
[ "MIT" ]
133
2016-06-03T13:40:58.000Z
2021-09-20T11:03:54.000Z
import tensorflow as tf import csv import numpy as np from random import randrange # This net is not working, as it predicts all 0's or all 1's at the moment. # variables for the net SEED = 3 FIRST_HIDDEN = 500 SECOND_HIDDEN = 50 FINAL_LAYER = 2 BATCH_SIZE = 100 def convertToFloat(lst): return np.array(lst).asty...
25.933884
86
0.695029
794ead6b57ac78738a56ff8dfa67ae4a6adf6cac
1,867
py
Python
actions/replaceCoreV1NamespacedServiceStatus.py
blinkops/stackstorm-kubernetes
3b4a15d42f603f3e700efaf534169e2ec361f5d2
[ "Apache-2.0" ]
20
2016-12-24T01:35:41.000Z
2022-03-06T08:32:16.000Z
actions/replaceCoreV1NamespacedServiceStatus.py
blinkops/stackstorm-kubernetes
3b4a15d42f603f3e700efaf534169e2ec361f5d2
[ "Apache-2.0" ]
16
2017-05-02T19:38:57.000Z
2021-06-17T08:31:17.000Z
actions/replaceCoreV1NamespacedServiceStatus.py
blinkops/stackstorm-kubernetes
3b4a15d42f603f3e700efaf534169e2ec361f5d2
[ "Apache-2.0" ]
18
2017-06-20T00:44:12.000Z
2022-03-30T08:41:42.000Z
import json from lib.k8s import K8sClient class replaceCoreV1NamespacedServiceStatus(K8sClient): def run( self, body, name, namespace, pretty=None, config_override=None): ret = False args = {} args['config_override...
30.606557
187
0.552758
794eadbd3e376b7a1d6e2fb64ec0948283f72726
16,706
py
Python
examples/remarketing/set_up_remarketing.py
claudiapaveljlp/google-ads-python
c143e81804e237a9549dd5936503d921033c4e5a
[ "Apache-2.0" ]
null
null
null
examples/remarketing/set_up_remarketing.py
claudiapaveljlp/google-ads-python
c143e81804e237a9549dd5936503d921033c4e5a
[ "Apache-2.0" ]
null
null
null
examples/remarketing/set_up_remarketing.py
claudiapaveljlp/google-ads-python
c143e81804e237a9549dd5936503d921033c4e5a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
38.941725
90
0.717167
794eaec13ec1ac42a7aaf4aa60bab50131342446
5,259
py
Python
external_apps/docutils-snapshot/test/test_publisher.py
spreeker/democracygame
525139955cb739c295051f317ab670049511bcf8
[ "BSD-3-Clause" ]
2
2016-05-09T04:57:34.000Z
2017-03-03T14:22:24.000Z
external_apps/docutils-snapshot/test/test_publisher.py
spreeker/democracygame
525139955cb739c295051f317ab670049511bcf8
[ "BSD-3-Clause" ]
null
null
null
external_apps/docutils-snapshot/test/test_publisher.py
spreeker/democracygame
525139955cb739c295051f317ab670049511bcf8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # $Id: test_publisher.py 5889 2009-04-01 20:00:21Z gbrandl $ # Author: Martin Blais <blais@furius.ca> # Copyright: This module has been placed in the public domain. """ Test the `Publisher` facade and the ``publish_*`` convenience functions. """ import pickle import DocutilsTestSupport ...
37.035211
174
0.637764
794eaecb023e41ad2a04293753ad51a10f7f910a
8,532
py
Python
lib/tool_shed/webapp/api/tools.py
maikenp/galaxy
eb3f3c816f1f94bc328d092f30c8966d41a56a0d
[ "CC-BY-3.0" ]
1
2021-10-08T02:14:24.000Z
2021-10-08T02:14:24.000Z
lib/tool_shed/webapp/api/tools.py
maikenp/galaxy
eb3f3c816f1f94bc328d092f30c8966d41a56a0d
[ "CC-BY-3.0" ]
null
null
null
lib/tool_shed/webapp/api/tools.py
maikenp/galaxy
eb3f3c816f1f94bc328d092f30c8966d41a56a0d
[ "CC-BY-3.0" ]
null
null
null
import json import logging from collections import namedtuple from galaxy import ( exceptions, util, web ) from galaxy.tools.parameters import params_to_strings from galaxy.tools.repositories import ValidationContext from galaxy.web import expose_api_raw_anonymous_and_sessionless from galaxy.webapps.base.c...
45.142857
147
0.597867
794eaeef5ccadd77634b7869f9f521a337446e86
11,687
py
Python
tensorflow_probability/python/distributions/plackett_luce.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
3,670
2018-02-14T03:29:40.000Z
2022-03-30T01:19:52.000Z
tensorflow_probability/python/distributions/plackett_luce.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,395
2018-02-24T02:28:49.000Z
2022-03-31T16:12:06.000Z
tensorflow_probability/python/distributions/plackett_luce.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,135
2018-02-14T01:51:10.000Z
2022-03-28T02:24:11.000Z
# Copyright 2019 The TensorFlow Probability 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 o...
37.338658
81
0.676735
794eb01f6087a7212cfeffbfc66120c9ffe00f3b
6,652
py
Python
bindings/python/ensmallen_graph/datasets/string/brucellamelitensis.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/brucellamelitensis.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/brucellamelitensis.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Brucella melitensis. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2021-02...
35.195767
223
0.702195
794eb23a22817bb625551efaa59bd747dcc3650a
3,229
py
Python
scripts/gen_fh.py
ziqing26/nushackers-site
8d1d7814a7aa4df87829e5047f0c321d52bbbaa6
[ "MIT" ]
31
2015-02-19T17:51:52.000Z
2022-01-31T23:04:25.000Z
scripts/gen_fh.py
ziqing26/nushackers-site
8d1d7814a7aa4df87829e5047f0c321d52bbbaa6
[ "MIT" ]
278
2015-08-27T16:11:39.000Z
2022-01-26T03:41:24.000Z
scripts/gen_fh.py
ziqing26/nushackers-site
8d1d7814a7aa4df87829e5047f0c321d52bbbaa6
[ "MIT" ]
46
2015-10-08T13:20:13.000Z
2022-03-18T07:23:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Generate this week's friday hack # To generate some other FH pass in a number as argument # e.g python gen_fh.py 1 generates next week's # e.g python gen_fh.py 3 generates next next next week's # As for numbering, it will take the next number # (e.g. if the previous post...
26.252033
85
0.574172
794eb2a2521df23dca19204064241e74c2447439
6,416
py
Python
pytorch_lightning/accelerators/horovod_backend.py
GimmickNG/pytorch-lightning
b36c5e86d014671b0fa922d750b27420bc73b6f9
[ "Apache-2.0" ]
1
2021-03-10T20:13:50.000Z
2021-03-10T20:13:50.000Z
pytorch_lightning/accelerators/horovod_backend.py
GimmickNG/pytorch-lightning
b36c5e86d014671b0fa922d750b27420bc73b6f9
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/accelerators/horovod_backend.py
GimmickNG/pytorch-lightning
b36c5e86d014671b0fa922d750b27420bc73b6f9
[ "Apache-2.0" ]
1
2020-09-11T22:53:18.000Z
2020-09-11T22:53:18.000Z
# Copyright The PyTorch Lightning team. # # 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 i...
38.190476
113
0.672537
794eb2d38319bf9366c3260216c46c9da1cab796
47,089
py
Python
decoding/IAD/fairseq/fairseq/models/transformer.py
maxpark/unilm
cd0cc7e7207dd029db9c8f11e3568fb385be6a29
[ "MIT" ]
1
2021-11-07T00:30:05.000Z
2021-11-07T00:30:05.000Z
decoding/IAD/fairseq/fairseq/models/transformer.py
maxpark/unilm
cd0cc7e7207dd029db9c8f11e3568fb385be6a29
[ "MIT" ]
null
null
null
decoding/IAD/fairseq/fairseq/models/transformer.py
maxpark/unilm
cd0cc7e7207dd029db9c8f11e3568fb385be6a29
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math from typing import Any, Dict, List, Optional, Tuple import torch import torch.nn as nn from fairseq import utils from fairseq.mod...
43.600926
159
0.629553
794eb41377388ff6c5f36125fde35b8a7c9daf7c
539
py
Python
models/field/dict.py
RaenonX/Jelly-Bot-API
c7da1e91783dce3a2b71b955b3a22b68db9056cf
[ "MIT" ]
5
2020-08-26T20:12:00.000Z
2020-12-11T16:39:22.000Z
models/field/dict.py
RaenonX/Jelly-Bot
c7da1e91783dce3a2b71b955b3a22b68db9056cf
[ "MIT" ]
234
2019-12-14T03:45:19.000Z
2020-08-26T18:55:19.000Z
models/field/dict.py
RaenonX/Jelly-Bot-API
c7da1e91783dce3a2b71b955b3a22b68db9056cf
[ "MIT" ]
2
2019-10-23T15:21:15.000Z
2020-05-22T09:35:55.000Z
from ._base import BaseField class DictionaryField(BaseField): def __init__(self, key, **kwargs): """ Default Properties Overrided: - ``allow_none`` - ``False`` .. seealso:: Check the document of :class:`BaseField` for other default properties. """ if ...
21.56
82
0.571429
794eb473f4efedff2f7988fadee49a633ce4c593
1,158
py
Python
src/plot_simulation.py
millengustavo/covid19-analytics
a4dfc0edd56b8a498c7fb318c9b3e75ed858dd9c
[ "MIT" ]
null
null
null
src/plot_simulation.py
millengustavo/covid19-analytics
a4dfc0edd56b8a498c7fb318c9b3e75ed858dd9c
[ "MIT" ]
null
null
null
src/plot_simulation.py
millengustavo/covid19-analytics
a4dfc0edd56b8a498c7fb318c9b3e75ed858dd9c
[ "MIT" ]
null
null
null
import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import streamlit as st # plt.style.use("seaborn-whitegrid") def plot_simulation_output(df_simulated_data): df_simulated_data = df_simulated_data[["S", "E", "I", "R", "E+I", "E+I+R"]] fig1 = plt.figure() sns.despine() plt.grid(...
29.692308
81
0.65544
794eb54cdd64125d408be9ba90b7f78a7b4a0277
22,372
py
Python
electrum/bitcoin.py
IHIHIKI/electrum
5f527720cf2ae4c7aef1cfdcf4244dbceb54a5bc
[ "MIT" ]
1
2020-09-10T21:33:38.000Z
2020-09-10T21:33:38.000Z
electrum/bitcoin.py
lukechilds/electrum
7bcb59ffb5a30d3a116b086c9ae291bf4bb788f3
[ "MIT" ]
null
null
null
electrum/bitcoin.py
lukechilds/electrum
7bcb59ffb5a30d3a116b086c9ae291bf4bb788f3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Electrum - lightweight Bitcoin client # Copyright (C) 2011 thomasv@gitorious # # 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 wit...
30.857931
125
0.655596
794eb60bd2fa12dce74139bbb540ecd554888ec0
67,691
py
Python
armi/reactor/tests/test_blocks.py
crisobg1/armi
38d9febdbec7ab8a67dd9b8e50780e11ea127022
[ "Apache-2.0" ]
1
2020-07-07T16:58:43.000Z
2020-07-07T16:58:43.000Z
armi/reactor/tests/test_blocks.py
crisobg1/armi
38d9febdbec7ab8a67dd9b8e50780e11ea127022
[ "Apache-2.0" ]
null
null
null
armi/reactor/tests/test_blocks.py
crisobg1/armi
38d9febdbec7ab8a67dd9b8e50780e11ea127022
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 TerraPower, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
34.946309
134
0.601631
794eb619f3b50a8fd8d5302c7fc00901f29e9b6f
113
py
Python
src/pycounts_rr/__init__.py
rrrohit1/pycounts_rr
c86167bf0175bf82fcd470526cdb780e74907c13
[ "MIT" ]
null
null
null
src/pycounts_rr/__init__.py
rrrohit1/pycounts_rr
c86167bf0175bf82fcd470526cdb780e74907c13
[ "MIT" ]
null
null
null
src/pycounts_rr/__init__.py
rrrohit1/pycounts_rr
c86167bf0175bf82fcd470526cdb780e74907c13
[ "MIT" ]
null
null
null
# read version from installed package from importlib.metadata import version __version__ = version("pycounts_rr")
37.666667
38
0.831858
794eb6b0f0e36d35c78cafd7d5c4c2e15356e667
2,628
py
Python
play/number_theory/utils.py
MuggleWei/Hakuna_Matata
6a3a012dc2a5942599098d94e90e9381d660500d
[ "WTFPL" ]
null
null
null
play/number_theory/utils.py
MuggleWei/Hakuna_Matata
6a3a012dc2a5942599098d94e90e9381d660500d
[ "WTFPL" ]
30
2020-03-04T21:59:09.000Z
2022-01-04T16:46:52.000Z
play/number_theory/utils.py
MuggleWei/Hakuna_Matata
6a3a012dc2a5942599098d94e90e9381d660500d
[ "WTFPL" ]
null
null
null
from sympy import symbols, Poly def is_square(n): """ 判断n是否是平方数 :param n: :return: True或False """ low = 1 high = n while low <= high: mid = int((low + high) / 2) power = mid * mid if power > n: high = mid - 1 elif power < n: low =...
21.719008
96
0.465753
794eb7d6cd9290dbe957f861502a7db156fe7366
59,861
py
Python
official/benchmark/keras_imagenet_benchmark.py
MaverickLegacy/FollowDetect
29331b13fa74e6fe1a8efa370f2e3de082b20fc6
[ "Apache-2.0" ]
1
2020-08-14T18:16:22.000Z
2020-08-14T18:16:22.000Z
official/benchmark/keras_imagenet_benchmark.py
MaverickLegacy/FollowDetect
29331b13fa74e6fe1a8efa370f2e3de082b20fc6
[ "Apache-2.0" ]
7
2020-09-26T01:03:33.000Z
2022-02-10T01:30:14.000Z
official/benchmark/keras_imagenet_benchmark.py
MaverickLegacy/FollowDetect
29331b13fa74e6fe1a8efa370f2e3de082b20fc6
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
34.863716
80
0.705551
794eb8898f5e374d904e881a3263ce190b882e25
3,108
py
Python
spyne/util/__init__.py
PyGuDev/spyne
1076f5301c2381b8c077577e3c87855bbe9541fd
[ "BSD-3-Clause" ]
786
2015-01-04T10:46:28.000Z
2022-03-31T19:24:35.000Z
spyne/util/__init__.py
uallasleles/spyne
1076f5301c2381b8c077577e3c87855bbe9541fd
[ "BSD-3-Clause" ]
248
2015-01-01T21:52:47.000Z
2022-03-09T08:55:04.000Z
spyne/util/__init__.py
uallasleles/spyne
1076f5301c2381b8c077577e3c87855bbe9541fd
[ "BSD-3-Clause" ]
210
2015-01-10T14:20:31.000Z
2022-03-09T08:38:43.000Z
# # spyne - Copyright (C) Spyne contributors. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This libra...
27.026087
75
0.682754
794ebb0850ab5b204f40200028f5352af96f80ec
1,284
py
Python
recipes/sota/2019/raw_lm_corpus/filter_distances.py
Zilv1128/test1
49fbb1392e69b5194c077df9847505ec995b4e3d
[ "BSD-3-Clause" ]
5,921
2017-12-29T17:04:46.000Z
2021-04-16T00:37:35.000Z
recipes/sota/2019/raw_lm_corpus/filter_distances.py
piEYj/wav2letter
49fbb1392e69b5194c077df9847505ec995b4e3d
[ "BSD-3-Clause" ]
949
2018-01-01T06:36:58.000Z
2021-04-16T06:49:05.000Z
recipes/sota/2019/raw_lm_corpus/filter_distances.py
piEYj/wav2letter
49fbb1392e69b5194c077df9847505ec995b4e3d
[ "BSD-3-Clause" ]
1,032
2017-12-30T09:47:51.000Z
2021-04-11T11:40:00.000Z
import argparse import os import sys def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) def run(filename, score, distance_ratio): eprint("Starting with filename ", filename) with open(filename, "r") as f: done = 0 for line in f: done += 1 str1, s...
30.571429
83
0.588006
794ebc26607374dd7365ea54c929b5620dbb5993
14,294
py
Python
tests/inspectdb/tests.py
JayTechX/django
cede5111bbeea1f02a7d35941a4264c7ff95df0a
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/inspectdb/tests.py
JayTechX/django
cede5111bbeea1f02a7d35941a4264c7ff95df0a
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/inspectdb/tests.py
JayTechX/django
cede5111bbeea1f02a7d35941a4264c7ff95df0a
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
import re from io import StringIO from unittest import mock, skipUnless from django.core.management import call_command from django.db import connection from django.db.backends.base.introspection import TableInfo from django.test import TestCase, TransactionTestCase, skipUnlessDBFeature from .models import ColumnType...
48.454237
111
0.673779
794ebc357b4d1f0900f6df7bc0c1a4ed3fdc3c63
5,903
py
Python
tests/test_appelb.py
nyetsche/cloud-custodian
e4e3e538f1242a7f5516b557f91d269035141b06
[ "Apache-2.0" ]
null
null
null
tests/test_appelb.py
nyetsche/cloud-custodian
e4e3e538f1242a7f5516b557f91d269035141b06
[ "Apache-2.0" ]
null
null
null
tests/test_appelb.py
nyetsche/cloud-custodian
e4e3e538f1242a7f5516b557f91d269035141b06
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
38.835526
80
0.579028
794ebc837fd4165c92820a7ecf52810baf357cb9
6,403
py
Python
examples/offline/atari_cql.py
BFAnas/tianshou
6e86a0bed7d1117c5ad6a421b483b45a6adfe336
[ "MIT" ]
null
null
null
examples/offline/atari_cql.py
BFAnas/tianshou
6e86a0bed7d1117c5ad6a421b483b45a6adfe336
[ "MIT" ]
null
null
null
examples/offline/atari_cql.py
BFAnas/tianshou
6e86a0bed7d1117c5ad6a421b483b45a6adfe336
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import datetime import os import pickle import pprint import numpy as np import torch from torch.utils.tensorboard import SummaryWriter from examples.atari.atari_network import QRDQN from examples.atari.atari_wrapper import make_atari_env from examples.offline.utils import load...
34.058511
87
0.658129
794ebda12bc12785e1d67a516bc488f2cac0229b
424
py
Python
setup_s3_bucket.py
chambridge/aws-cost-mgmt-access
994d3ed62601469d2d68a67e6806a3601178328a
[ "MIT" ]
null
null
null
setup_s3_bucket.py
chambridge/aws-cost-mgmt-access
994d3ed62601469d2d68a67e6806a3601178328a
[ "MIT" ]
null
null
null
setup_s3_bucket.py
chambridge/aws-cost-mgmt-access
994d3ed62601469d2d68a67e6806a3601178328a
[ "MIT" ]
null
null
null
import os from cloud.aws_service import AwsService def main(): """Execute script.""" region = os.environ.get('REGION', 'us-east-1') s3_bucket = os.environ.get('S3_BUCKET', 'costmgmtacct1234') aws = AwsService() result = aws.create_bucket(s3_bucket, region) if result: print(f'S3 bucke...
22.315789
63
0.653302
794ebdfc927609f7662ade182d468e4428489b2d
2,839
py
Python
test/SConscript/SConscriptChdir.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
1
2019-09-18T06:37:02.000Z
2019-09-18T06:37:02.000Z
test/SConscript/SConscriptChdir.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
null
null
null
test/SConscript/SConscriptChdir.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2001 - 2016 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to us...
31.197802
108
0.704826
794ebea621c445d8ac4a72921d8c8a8062157255
719
py
Python
tests/__init__.py
gwu-libraries/sfm-web-harvester
6959cae698328cd344f569dead594d70749aea39
[ "MIT" ]
3
2016-03-15T20:22:02.000Z
2020-09-15T12:25:20.000Z
tests/__init__.py
gwu-libraries/sfm-web-harvester
6959cae698328cd344f569dead594d70749aea39
[ "MIT" ]
3
2016-10-09T23:23:10.000Z
2017-04-05T15:15:55.000Z
tests/__init__.py
gwu-libraries/sfm-web-harvester
6959cae698328cd344f569dead594d70749aea39
[ "MIT" ]
1
2020-09-15T09:43:28.000Z
2020-09-15T09:43:28.000Z
import logging import unittest import os import socket mq_port_available = True s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: s.connect(("mq", 5672)) except socket.error: mq_port_available = False heritrix_port_available = True s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: s.con...
23.966667
73
0.781641
794ebf3929e8f6b93cd25f1f5794264c90269d3e
1,612
py
Python
instructions/base/instruction.py
kimi641/pyJVM
9e2b2392044a8ddd41ff8dda18a26e307776ae34
[ "MIT" ]
null
null
null
instructions/base/instruction.py
kimi641/pyJVM
9e2b2392044a8ddd41ff8dda18a26e307776ae34
[ "MIT" ]
1
2021-01-21T09:38:24.000Z
2021-01-21T09:38:24.000Z
instructions/base/instruction.py
kimi641/pyJVM
9e2b2392044a8ddd41ff8dda18a26e307776ae34
[ "MIT" ]
null
null
null
import struct from abc import ABCMeta, abstractmethod class BytecodeReader: def Reset(self, code, pc:int): self.code = code self.pc = pc def ReadUint8(self): i = self.code[self.pc] self.pc += 1 return i def ReadInt8(self): byte = struct.pack('>B',self.ReadU...
23.705882
51
0.625931
794ebff01c952c7fa43eb426af3eabb14b3e914d
1,777
py
Python
src/rogerthat/bizz/communities/homescreen/models.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/bizz/communities/homescreen/models.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/bizz/communities/homescreen/models.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley NV # # 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 l...
31.175439
86
0.728194
794ec05fbfab3684fd001f166134ec61a8324527
250
py
Python
FS/Pre-FS_programs/Day11~26Oct-2021_Mon/tep.py
Balaji-Ganesh/CompetitiveProgramming
8a5b44202e3d98e507a6ac27007273145d7fd56f
[ "MIT" ]
null
null
null
FS/Pre-FS_programs/Day11~26Oct-2021_Mon/tep.py
Balaji-Ganesh/CompetitiveProgramming
8a5b44202e3d98e507a6ac27007273145d7fd56f
[ "MIT" ]
null
null
null
FS/Pre-FS_programs/Day11~26Oct-2021_Mon/tep.py
Balaji-Ganesh/CompetitiveProgramming
8a5b44202e3d98e507a6ac27007273145d7fd56f
[ "MIT" ]
null
null
null
#`num_salaries = int(input()); salaries = sorted(set(input().split(' '))); print(salaries[::-1]); if(len(salaries) < 3): print(salaries[::-1][-1]); else: print(salaries[::-1][2]); """ Integer n1 = 10 n2 = 10 n1 = n1+ 5 sol(n1+n2); """
15.625
43
0.544
794ec05ff421e48eb7607244e84d071e3411a7d6
667
py
Python
backend/manage.py
DRP-33/drp-name-in-progress
47518bb77090a9fbd87561c4fc37850008e1c782
[ "MIT" ]
null
null
null
backend/manage.py
DRP-33/drp-name-in-progress
47518bb77090a9fbd87561c4fc37850008e1c782
[ "MIT" ]
null
null
null
backend/manage.py
DRP-33/drp-name-in-progress
47518bb77090a9fbd87561c4fc37850008e1c782
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'website.settings.dev') try: from django.core.management import execute_from_command_line except ...
29
75
0.67916
794ec0eb75dd5e81b6891e29ada939c059b4aeef
533
py
Python
server/insertHabit.py
asaadielhassan/revue
ed12d2d63db35f6bb510c88660d904a0eb0e916d
[ "MIT" ]
null
null
null
server/insertHabit.py
asaadielhassan/revue
ed12d2d63db35f6bb510c88660d904a0eb0e916d
[ "MIT" ]
null
null
null
server/insertHabit.py
asaadielhassan/revue
ed12d2d63db35f6bb510c88660d904a0eb0e916d
[ "MIT" ]
1
2021-04-06T22:44:30.000Z
2021-04-06T22:44:30.000Z
import pymongo import habits def connectDB(): try: conn = MongoClient() print("Successfully connected") except: print("Could not connect") db = conn.database def insertHabit(user, habit): entry = { "user":user, "name":habit.getName(), "description":habi...
21.32
45
0.594747
794ec1ba4396ff8166481d09f4b4546fb2363f10
1,208
py
Python
grouper/fe/handlers/group_leave.py
lfaraone/grouper
7df5eda8003a0b4a9ba7f0dcb044ae1e4710b171
[ "Apache-2.0" ]
null
null
null
grouper/fe/handlers/group_leave.py
lfaraone/grouper
7df5eda8003a0b4a9ba7f0dcb044ae1e4710b171
[ "Apache-2.0" ]
1
2016-02-18T18:55:29.000Z
2016-02-18T18:55:29.000Z
grouper/fe/handlers/group_leave.py
lfaraone/grouper
7df5eda8003a0b4a9ba7f0dcb044ae1e4710b171
[ "Apache-2.0" ]
null
null
null
from grouper.fe.util import GrouperHandler from grouper.model_soup import Group from grouper.models.audit_log import AuditLog from grouper.user import user_role class GroupLeave(GrouperHandler): def get(self, group_id=None, name=None): group = Group.get(self.session, group_id, name) if not group: ...
32.648649
87
0.640728
794ec449bd8ecfc16514c7942b9e9f20b2fee367
6,385
py
Python
rest_framework_datatables/filters.py
BenjiWilson/django-rest-framework-datatables
213b344b8159445703152b93856d034a59bb56eb
[ "MIT" ]
null
null
null
rest_framework_datatables/filters.py
BenjiWilson/django-rest-framework-datatables
213b344b8159445703152b93856d034a59bb56eb
[ "MIT" ]
null
null
null
rest_framework_datatables/filters.py
BenjiWilson/django-rest-framework-datatables
213b344b8159445703152b93856d034a59bb56eb
[ "MIT" ]
null
null
null
import re from copy import deepcopy from django.db.models import Q from rest_framework.filters import BaseFilterBackend class DatatablesFilterBackend(BaseFilterBackend): """ Filter that works with datatables params. """ def filter_queryset(self, request, queryset, view): if request.accepted_...
38.463855
78
0.499139
794ec4d645a1941953fc6cc2596c347f252cf4c4
2,388
py
Python
roblox/members.py
Warhawk947/ro.py
dac29116ef72f577d2e086e3297a79201d58c895
[ "MIT" ]
1
2021-11-25T02:29:12.000Z
2021-11-25T02:29:12.000Z
roblox/members.py
Warhawk947/ro.py
dac29116ef72f577d2e086e3297a79201d58c895
[ "MIT" ]
null
null
null
roblox/members.py
Warhawk947/ro.py
dac29116ef72f577d2e086e3297a79201d58c895
[ "MIT" ]
null
null
null
""" This module contains classes intended to parse and deal with data from Roblox group member endpoints. """ from __future__ import annotations from typing import Union, TYPE_CHECKING from .bases.baseuser import BaseUser from .partials.partialrole import PartialRole from .utilities.shared import ClientSharedObjec...
28.094118
109
0.646566
794ec4ef4bb22ee9ec8b1c2f9e55232e581736c8
40,998
py
Python
RecoLuminosity/LumiDB/python/matplotRender.py
bisnupriyasahu/cmssw
6cf37ca459246525be0e8a6f5172c6123637d259
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
RecoLuminosity/LumiDB/python/matplotRender.py
bisnupriyasahu/cmssw
6cf37ca459246525be0e8a6f5172c6123637d259
[ "Apache-2.0" ]
3
2018-08-23T13:40:24.000Z
2019-12-05T21:16:03.000Z
RecoLuminosity/LumiDB/python/matplotRender.py
bisnupriyasahu/cmssw
6cf37ca459246525be0e8a6f5172c6123637d259
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
''' Specs: -- We use matplotlib OO class level api, we do not use its high-level helper modules. Favor endured stability over simplicity. -- PNG as default batch file format -- we support http mode by sending string buf via meme type image/png. Sending a premade static plot to webserver is considered a uploading proce...
46.273138
237
0.614371
794ec531581a19d82a65bb898d97840d53fcbb69
2,511
py
Python
app/migrations/0002_auto_20210405_1851.py
dorothymuhonja/awwards
3e689e2f6dc059cc146d577327ee45b170115f92
[ "MIT" ]
null
null
null
app/migrations/0002_auto_20210405_1851.py
dorothymuhonja/awwards
3e689e2f6dc059cc146d577327ee45b170115f92
[ "MIT" ]
null
null
null
app/migrations/0002_auto_20210405_1851.py
dorothymuhonja/awwards
3e689e2f6dc059cc146d577327ee45b170115f92
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-05 15:51 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('app', '0001_initial'), ...
35.871429
173
0.526483
794ec5ec452833a4487441a0ef9c0daeead18fca
390
py
Python
gerapy/server/server/wsgi.py
toyourheart163/Gerapy
de1971ab953b09225072bb9f895492f9f51a0f60
[ "MIT" ]
null
null
null
gerapy/server/server/wsgi.py
toyourheart163/Gerapy
de1971ab953b09225072bb9f895492f9f51a0f60
[ "MIT" ]
null
null
null
gerapy/server/server/wsgi.py
toyourheart163/Gerapy
de1971ab953b09225072bb9f895492f9f51a0f60
[ "MIT" ]
null
null
null
''' WSGI config for server project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ ''' import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTI...
22.941176
78
0.787179
794ec71cb75c10e56b8d4fe48d94e208d97eb568
4,584
py
Python
penguindome/client.py
jikamens/PenguinDome
4efd8c6cb758a78857a5dbd5817b78eef79e7f32
[ "Apache-2.0" ]
81
2017-07-30T18:40:13.000Z
2022-02-23T23:04:54.000Z
penguindome/client.py
jikamens/PenguinDome
4efd8c6cb758a78857a5dbd5817b78eef79e7f32
[ "Apache-2.0" ]
18
2017-10-24T00:20:49.000Z
2021-06-08T12:12:34.000Z
penguindome/client.py
jikamens/PenguinDome
4efd8c6cb758a78857a5dbd5817b78eef79e7f32
[ "Apache-2.0" ]
22
2017-09-12T20:22:29.000Z
2021-11-11T18:45:04.000Z
# Quantopian, Inc. licenses this file to you 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,...
33.955556
79
0.657286
794ec76515f83520494079e4287d157782ae3f2f
4,461
py
Python
Google/benchmarks/ssd/implementations/tpu-v3-512-ssd/ssd/utils.py
mengkai94/training_results_v0.6
43dc3e250f8da47b5f8833197d74cb8cf1004fc9
[ "Apache-2.0" ]
42
2019-07-11T18:23:52.000Z
2021-09-14T08:21:09.000Z
Google/benchmarks/ssd/implementations/tpu-v3-512-ssd/ssd/utils.py
mengkai94/training_results_v0.6
43dc3e250f8da47b5f8833197d74cb8cf1004fc9
[ "Apache-2.0" ]
23
2019-07-29T05:21:52.000Z
2020-08-31T18:51:42.000Z
Google/benchmarks/ssd/implementations/tpu-v3-512-ssd/ssd/utils.py
mengkai94/training_results_v0.6
43dc3e250f8da47b5f8833197d74cb8cf1004fc9
[ "Apache-2.0" ]
51
2019-07-12T05:10:25.000Z
2021-07-28T16:19:06.000Z
# Copyright 2018 Google. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
35.404762
80
0.694239
794ec7fe10f3be35e04670c341fbde6db91a82e5
400
py
Python
examples/move_husky.py
Robotics-Club-IIT-BHU/LaRoboLiga_PS2Arena
8fddadb7b7078368ec2e8d6c99d7a5c4a60e8f44
[ "MIT" ]
1
2022-02-14T11:01:48.000Z
2022-02-14T11:01:48.000Z
examples/move_husky.py
Robotics-Club-IIT-BHU/LaRoboLiga_PS2Arena
8fddadb7b7078368ec2e8d6c99d7a5c4a60e8f44
[ "MIT" ]
null
null
null
examples/move_husky.py
Robotics-Club-IIT-BHU/LaRoboLiga_PS2Arena
8fddadb7b7078368ec2e8d6c99d7a5c4a60e8f44
[ "MIT" ]
13
2022-02-14T12:57:06.000Z
2022-03-02T11:57:23.000Z
# Example to use the move_husky() function import gym import LRL_main_arena import time import pybullet as p import pybullet_data import cv2 import os if __name__ == "__main__": parent_path = os.path.dirname(os.getcwd()) os.chdir(parent_path) env = gym.make("la_robo_liga_arena-v0") time.sleep(2) w...
22.222222
46
0.695
794ec9884a93f96ca6dafa1b90d61c95c5835060
149
py
Python
configs/hrnet/htc_hrnetv2p_w40_28e_coco_05.py
anley1/Swin-Transformer-Object-Detection
0f26c7979ee2360acd359a5789cd8d52527e0d64
[ "Apache-2.0" ]
null
null
null
configs/hrnet/htc_hrnetv2p_w40_28e_coco_05.py
anley1/Swin-Transformer-Object-Detection
0f26c7979ee2360acd359a5789cd8d52527e0d64
[ "Apache-2.0" ]
null
null
null
configs/hrnet/htc_hrnetv2p_w40_28e_coco_05.py
anley1/Swin-Transformer-Object-Detection
0f26c7979ee2360acd359a5789cd8d52527e0d64
[ "Apache-2.0" ]
null
null
null
_base_ = './htc_hrnetv2p_w40_20e_coco_05.py' # learning policy lr_config = dict(step=[24, 27]) runner = dict(type='EpochBasedRunner', max_epochs=28)
29.8
53
0.758389
794ecbbac52bbc61e3c69a373b79ae4333d01901
2,912
py
Python
transform_funcs.py
Institute-Web-Science-and-Technologies/community-trust-opensourced
704185c6bc40564815b39d024a829b077bf65777
[ "Apache-2.0" ]
null
null
null
transform_funcs.py
Institute-Web-Science-and-Technologies/community-trust-opensourced
704185c6bc40564815b39d024a829b077bf65777
[ "Apache-2.0" ]
null
null
null
transform_funcs.py
Institute-Web-Science-and-Technologies/community-trust-opensourced
704185c6bc40564815b39d024a829b077bf65777
[ "Apache-2.0" ]
null
null
null
from __future__ import division import igraph import numpy as np import powerlaw from scipy.stats import binom # no transformation def no_transform(feature, **kwargs): return np.array(feature) # tranform feature to quantile def quantile_transform(feature, **kwargs): total = len(feature) feature = np.arra...
25.769912
87
0.562157
794ecc208ee65d310b2573f32ab437d91072efe4
2,500
py
Python
aliyun-python-sdk-openanalytics-open/aliyunsdkopenanalytics_open/request/v20180619/ResetMainPasswordRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-openanalytics-open/aliyunsdkopenanalytics_open/request/v20180619/ResetMainPasswordRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-openanalytics-open/aliyunsdkopenanalytics_open/request/v20180619/ResetMainPasswordRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.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 u...
36.764706
101
0.7796
794eccb14075105cb5351c1591f40de421114620
426
py
Python
macropy/logging.py
CyberFlameGO/macropy
a815f5a58231d8fa65386cd71ff0d15d09fe9fa3
[ "Unlicense", "MIT" ]
2,061
2015-01-02T16:53:18.000Z
2022-03-31T12:01:07.000Z
macropy/logging.py
CyberFlameGO/macropy
a815f5a58231d8fa65386cd71ff0d15d09fe9fa3
[ "Unlicense", "MIT" ]
41
2015-02-25T02:54:46.000Z
2022-01-28T19:08:45.000Z
macropy/logging.py
CyberFlameGO/macropy
a815f5a58231d8fa65386cd71ff0d15d09fe9fa3
[ "Unlicense", "MIT" ]
151
2015-01-01T22:07:55.000Z
2022-03-03T07:55:20.000Z
# -*- coding: utf-8 -*- # :Project: macropy3 -- enable basic logging # :Created: gio 01 mar 2018 02:43:14 CET # :Author: Alberto Berti <alberto@metapensiero.it> # :License: GNU General Public License version 3 or later # :Copyright: © 2018 Alberto Berti # import logging log = logging.getLogger(__name__) logg...
28.4
59
0.725352
794ecd1e2deaca7603bcf2c33f35adcbc7f451db
3,434
py
Python
desktop/core/ext-py/parquet-1.3.1/parquet/converted_types.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/parquet-1.3.1/parquet/converted_types.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/parquet-1.3.1/parquet/converted_types.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
# -#- coding: utf-8 -#- """ Deal with parquet logical types (aka converted types), higher-order things built from primitive types. The implementations in this class are pure python for the widest compatibility, but they're not necessarily the most performant. """ from __future__ import (absolute_import, division, pri...
37.736264
110
0.699767
794ecd1eb6a41ac96430052375378ebc1b7ebd57
117
py
Python
tasks/admin.py
Hernandes-Silva/To-do-list-API
fff8e4c3a795285f659d63363d1d0c66f018b357
[ "MIT" ]
null
null
null
tasks/admin.py
Hernandes-Silva/To-do-list-API
fff8e4c3a795285f659d63363d1d0c66f018b357
[ "MIT" ]
null
null
null
tasks/admin.py
Hernandes-Silva/To-do-list-API
fff8e4c3a795285f659d63363d1d0c66f018b357
[ "MIT" ]
null
null
null
from django.contrib import admin from tasks.models import Task # Register your models here. admin.site.register(Task)
29.25
32
0.820513
794ecec1c3a19c7a20ffb850054b220fda3ed946
919
py
Python
user/vistas/widgets/header.py
ZerpaTechnology/occoa
a8c0bd2657bc058801a883109c0ec0d608d04ccc
[ "Apache-2.0" ]
null
null
null
user/vistas/widgets/header.py
ZerpaTechnology/occoa
a8c0bd2657bc058801a883109c0ec0d608d04ccc
[ "Apache-2.0" ]
null
null
null
user/vistas/widgets/header.py
ZerpaTechnology/occoa
a8c0bd2657bc058801a883109c0ec0d608d04ccc
[ "Apache-2.0" ]
null
null
null
doc+=''' <header id="header" style="background-image: url(''' try: doc+=str(data['base_url']+'static/img/') except Exception, e: doc+=str(e) doc+='''logo_unexpo_blanco.png) !important;"> <!--Menu--> <div class="content-menu"> <div class="container"> <div class="row web-cross-center"> <div clas...
29.645161
58
0.508161
794ecf0d4e6d1f337d24f44f9d8055f22b72f867
18,073
py
Python
cloud_storage/YandexDisk.py
coolworld2049/Social-media-file-downloader
45d2238f29dfcd049f4ecf610390b67af7dc8827
[ "MIT" ]
1
2022-03-28T02:49:56.000Z
2022-03-28T02:49:56.000Z
cloud_storage/YandexDisk.py
coolworld2049/Social-media-file-downloader
45d2238f29dfcd049f4ecf610390b67af7dc8827
[ "MIT" ]
1
2022-03-28T03:14:37.000Z
2022-03-28T03:15:02.000Z
cloud_storage/YandexDisk.py
coolworld2049/Social-media-file-downloader
45d2238f29dfcd049f4ecf610390b67af7dc8827
[ "MIT" ]
null
null
null
import asyncio import os import time from abc import abstractmethod from typing import TextIO import nest_asyncio from aiohttp import ClientSession as clientSession, ClientConnectorError from tqdm.contrib.telegram import tqdm from core import users_db, logger class YandexDisk: def __init__(self): self._...
50.909859
126
0.44857
794ecf75475e6a86e7d2b17bb6b8396ce12af170
108
py
Python
chevah/compat/tests/elevated/testing/__init__.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
5
2016-12-03T22:54:50.000Z
2021-11-17T11:17:39.000Z
chevah/compat/tests/elevated/testing/__init__.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
76
2015-01-22T16:00:31.000Z
2022-02-09T22:13:34.000Z
chevah/compat/tests/elevated/testing/__init__.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
1
2016-12-10T15:57:31.000Z
2016-12-10T15:57:31.000Z
# Copyright (c) 2012 Adi Roiban. # See LICENSE for details. """ Tests executed under elevated accounts. """
18
39
0.712963
794ed1041eb290b3474b38d9361d8918f8ff488c
2,087
py
Python
may-solution/generator.py
maygnificent/story-prompt
ed6af00532bd76dc0187504830f8c5f735661f15
[ "Apache-2.0" ]
null
null
null
may-solution/generator.py
maygnificent/story-prompt
ed6af00532bd76dc0187504830f8c5f735661f15
[ "Apache-2.0" ]
null
null
null
may-solution/generator.py
maygnificent/story-prompt
ed6af00532bd76dc0187504830f8c5f735661f15
[ "Apache-2.0" ]
null
null
null
import sys import json if __name__ == '__main__': # convert input to dictionary inputString = sys.argv[1] inputDict = json.loads(inputString) # check for missing inputs while len(inputDict) < 5: missingInput = '' try: if 'number' not in inputDict: missi...
37.267857
201
0.576425
794ed13c13414d3d48bcf2ada5953841f44a0871
1,038
py
Python
Python3/0407-Trapping-Rain-Water-II/soln.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/0407-Trapping-Rain-Water-II/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/0407-Trapping-Rain-Water-II/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution: def trapRainWater(self, heightMap): """ :type heightMap: List[List[int]] :rtype: int """ if not heightMap or not heightMap[0]: return 0 heap = [] m, n = len(heightMap), len(heightMap[0]) seen = [[0] * n for _ in range(m)] ...
38.444444
90
0.425819
794ed1729fc71aa3a2ae360ec2116df2220db6c0
18,823
py
Python
jase_im/blog/views.py
chenomg/blog.jase.im_v0.1
41e77fae1435f2c16701d982bd71fddbd399508e
[ "MIT" ]
2
2019-02-22T16:09:35.000Z
2019-11-27T10:22:49.000Z
jase_im/blog/views.py
chenomg/blog.jase.im_v0.1
41e77fae1435f2c16701d982bd71fddbd399508e
[ "MIT" ]
3
2018-12-22T13:40:15.000Z
2020-06-05T19:26:48.000Z
jase_im/blog/views.py
chenomg/blog.jase.im_v0.1
41e77fae1435f2c16701d982bd71fddbd399508e
[ "MIT" ]
null
null
null
import datetime import json import logging from markdown import markdown, Markdown from markdown.extensions.toc import TocExtension from django.core.paginator import Paginator from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from django.core.urlresolvers...
39.963907
86
0.593582
794ed1796a22358b940d6bfa87af1ebd8c0a419d
9,236
py
Python
test/performance/legion/analysis_performance/process.py
stkaplan/legion
ad82a1c1f39ed20a16df29aa331428d42c0ecfb6
[ "Apache-2.0" ]
null
null
null
test/performance/legion/analysis_performance/process.py
stkaplan/legion
ad82a1c1f39ed20a16df29aa331428d42c0ecfb6
[ "Apache-2.0" ]
null
null
null
test/performance/legion/analysis_performance/process.py
stkaplan/legion
ad82a1c1f39ed20a16df29aa331428d42c0ecfb6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2020 NVIDIA Corporation # # 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 applicab...
33.585455
88
0.647791
794ed4a30826674e9f19b8dc49db55c1bada5aca
2,891
py
Python
tb_rest_client/models/models_ce/user_id.py
jernkuan/thingsboard-python-rest-client
3fb25272507494e6d494b27ca2380d3c543562e5
[ "Apache-2.0" ]
null
null
null
tb_rest_client/models/models_ce/user_id.py
jernkuan/thingsboard-python-rest-client
3fb25272507494e6d494b27ca2380d3c543562e5
[ "Apache-2.0" ]
null
null
null
tb_rest_client/models/models_ce/user_id.py
jernkuan/thingsboard-python-rest-client
3fb25272507494e6d494b27ca2380d3c543562e5
[ "Apache-2.0" ]
1
2021-11-26T11:24:56.000Z
2021-11-26T11:24:56.000Z
# coding: utf-8 """ ThingsBoard REST API For instructions how to authorize requests please visit <a href='http://thingsboard.io/docs/reference/rest-api/'>REST API documentation page</a>. # noqa: E501 OpenAPI spec version: 2.0 Contact: info@thingsboard.io Generated by: https://github.com/swagger-...
28.067961
163
0.55275
794ed4d13a26a83e374c41157fab1fed5e2490cc
11,968
py
Python
sdks/python/apache_beam/runners/worker/data_plane.py
mwylde/beam
9d0b03ad736797c33fbd6a4eb13155fa91367779
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/runners/worker/data_plane.py
mwylde/beam
9d0b03ad736797c33fbd6a4eb13155fa91367779
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/runners/worker/data_plane.py
mwylde/beam
9d0b03ad736797c33fbd6a4eb13155fa91367779
[ "Apache-2.0" ]
null
null
null
# # 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...
32.699454
80
0.709726
794ed5066cd6e20f53cb7138a64a5abec58d4392
1,694
py
Python
csxextract/extractors/parscit.py
SeerLabs/new-csx-extractor
84de9276988e7d61cdf24a410d9fe1724dfaea9d
[ "Apache-2.0" ]
9
2015-04-17T22:19:21.000Z
2021-08-03T08:27:30.000Z
csxextract/extractors/parscit.py
SeerLabs/new-csx-extractor
84de9276988e7d61cdf24a410d9fe1724dfaea9d
[ "Apache-2.0" ]
2
2015-06-02T12:47:51.000Z
2015-06-26T18:45:47.000Z
csxextract/extractors/parscit.py
SeerLabs/new-csx-extractor
84de9276988e7d61cdf24a410d9fe1724dfaea9d
[ "Apache-2.0" ]
8
2015-04-10T18:11:11.000Z
2018-07-14T21:09:37.000Z
from extraction.runnables import Extractor, RunnableError, ExtractorResult import extraction.utils import csxextract.config as config import csxextract.interfaces as interfaces import csxextract.filters as filters import csxextract.utils as utils import defusedxml.ElementTree as safeET import xml.etree.ElementTree as E...
36.042553
126
0.762692
794ed574fe6b6e9fb13fbae99c5c88b921952a8b
2,442
py
Python
gen_dataset.py
soravux/jambokoko
e9b2460cf0dcd5eab397aeefc60cfd4bc4821028
[ "0BSD" ]
null
null
null
gen_dataset.py
soravux/jambokoko
e9b2460cf0dcd5eab397aeefc60cfd4bc4821028
[ "0BSD" ]
null
null
null
gen_dataset.py
soravux/jambokoko
e9b2460cf0dcd5eab397aeefc60cfd4bc4821028
[ "0BSD" ]
null
null
null
# coding: utf-8 import fnmatch import os import random import pickle import numpy as np from hdrio import imread, imsave from envmap import EnvironmentMap from scipy.ndimage.interpolation import zoom from matplotlib import pyplot as plt STACK_FILENAME = 'stack.exr' TARGET_SIZE = (256, 256) def getAvailableData(ro...
28.729412
82
0.634316
794ed6fd770032e7c934c61f166f0aeed9329dbf
10,209
py
Python
tests/inspectdb/tests.py
deployed/django
9db4271bd11ac23a5a5652bbcdf8fb6d4b997651
[ "BSD-3-Clause" ]
1
2018-12-10T12:21:40.000Z
2018-12-10T12:21:40.000Z
tests/inspectdb/tests.py
avkryukov/django
f90be002d9d3c10b87c74741986e2cbf9f2b858e
[ "BSD-3-Clause" ]
null
null
null
tests/inspectdb/tests.py
avkryukov/django
f90be002d9d3c10b87c74741986e2cbf9f2b858e
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- from __future__ import unicode_literals import re from unittest import expectedFailure, skipUnless from django.core.management import call_command from django.db import connection from django.test import TestCase, skipUnlessDBFeature from django.utils.six import PY3, StringIO if connection....
50.539604
107
0.654325
794ed8eb6af4aee3be2d7005206a89256d50c0bd
1,584
py
Python
pyforce/memory/memory.py
olemeyer/pyforce
f0432ada7974419d40cce229cd875ce6ae4270b9
[ "Apache-2.0" ]
4
2020-03-27T06:46:49.000Z
2020-07-01T20:55:32.000Z
pyforce/memory/memory.py
olemeyer/pyforce
f0432ada7974419d40cce229cd875ce6ae4270b9
[ "Apache-2.0" ]
null
null
null
pyforce/memory/memory.py
olemeyer/pyforce
f0432ada7974419d40cce229cd875ce6ae4270b9
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch class Memory(): def __init__(self,device="cpu",data=None,ordered=True): self.device=device self.data=data if data is not None else {} self.ordered=ordered def clear(self): self.data={} def __len__(self): keys=self.keys() if len(keys)==0: return 0 ...
26.4
80
0.613005
794ed900b185270d20a04d8954dada28c961cdc9
8,219
py
Python
assignment2/q1_classifier.py
tavaresdong/stanford_cs224n
09936ce5d994bb25bb45d19fd363c37198b6eda2
[ "MIT" ]
null
null
null
assignment2/q1_classifier.py
tavaresdong/stanford_cs224n
09936ce5d994bb25bb45d19fd363c37198b6eda2
[ "MIT" ]
null
null
null
assignment2/q1_classifier.py
tavaresdong/stanford_cs224n
09936ce5d994bb25bb45d19fd363c37198b6eda2
[ "MIT" ]
null
null
null
import time import numpy as np import tensorflow as tf from q1_softmax import softmax from q1_softmax import cross_entropy_loss from model import Model from utils.general_utils import get_minibatches class Config(object): """Holds model hyperparams and data information. The config class is used to store va...
36.691964
115
0.639129
794ed90cecf5388cb3cf5ec69902d1270f94139e
1,604
py
Python
python/problems/minimum_cost_for_tickets.py
vivaxy/algorithms
b2e49476ed2ad1fd82a1183f656d1907a666c347
[ "MIT" ]
1
2019-05-04T13:21:41.000Z
2019-05-04T13:21:41.000Z
python/problems/minimum_cost_for_tickets.py
vivaxy/algorithms
b2e49476ed2ad1fd82a1183f656d1907a666c347
[ "MIT" ]
1
2021-08-30T09:34:58.000Z
2021-08-30T09:34:58.000Z
python/problems/minimum_cost_for_tickets.py
vivaxy/algorithms
b2e49476ed2ad1fd82a1183f656d1907a666c347
[ "MIT" ]
null
null
null
from functools import lru_cache import unittest """ https://leetcode.com/problems/minimum-cost-for-tickets/ https://leetcode.com/submissions/detail/227086131/ """ from typing import List class Solution1: def mincostTickets(self, days: List[int], costs: List[int]) -> int: self.memo = dict() # dp(...
28.140351
99
0.503741
794eda182f9e0dac032216b095e8a6fcdd126eb0
2,532
py
Python
vnpy/gateway/loopringv36/exceptions.py
dos2004/vnpy
8f2af5ff8c737adf32aaf4021ceb5bea1eea6ec4
[ "MIT" ]
21
2020-07-15T07:06:25.000Z
2021-12-19T07:33:02.000Z
vnpy/gateway/loopringv36/exceptions.py
dos2004/vnpy
8f2af5ff8c737adf32aaf4021ceb5bea1eea6ec4
[ "MIT" ]
2
2020-08-25T08:04:49.000Z
2020-10-04T11:55:07.000Z
vnpy/gateway/loopringv36/exceptions.py
dos2004/vnpy
8f2af5ff8c737adf32aaf4021ceb5bea1eea6ec4
[ "MIT" ]
5
2020-08-03T02:46:19.000Z
2021-09-19T15:35:44.000Z
# coding=utf-8 class LoopringAPIException(Exception): def __init__(self, response): # self.code = 0 # try: # json_res = response.json() # except ValueError: # self.message = 'Invalid JSON error message from Loopring: {}'.format(response.text) # else: ...
30.142857
97
0.68207
794eda383f6f8c6d4e88e020290bc1b8a0d35af1
6,426
py
Python
test/functional/rpc_bind.py
eloncoingit/eloncoin
20c0d1166e8c1e094f684654e8b4c80fc0c89ef7
[ "MIT" ]
1
2021-02-28T07:14:09.000Z
2021-02-28T07:14:09.000Z
test/functional/rpc_bind.py
eloncoingit/eloncoin
20c0d1166e8c1e094f684654e8b4c80fc0c89ef7
[ "MIT" ]
null
null
null
test/functional/rpc_bind.py
eloncoingit/eloncoin
20c0d1166e8c1e094f684654e8b4c80fc0c89ef7
[ "MIT" ]
1
2021-05-01T00:14:29.000Z
2021-05-01T00:14:29.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test running eloncoind with the -rpcbind and -rpcallowip options.""" import sys from test_framework.n...
49.430769
172
0.633209
794edb1576915509131366ea42a0d0ed8d685fed
6,929
py
Python
project/social_login.py
tomjuggler/login_system
c3341e218a1a7e5da033b52fb56416521fd256e3
[ "MIT" ]
28
2020-12-30T23:54:35.000Z
2022-03-26T07:37:00.000Z
project/social_login.py
tomjuggler/login_system
c3341e218a1a7e5da033b52fb56416521fd256e3
[ "MIT" ]
1
2021-05-31T19:14:20.000Z
2021-05-31T21:00:08.000Z
project/social_login.py
tomjuggler/login_system
c3341e218a1a7e5da033b52fb56416521fd256e3
[ "MIT" ]
10
2021-02-02T00:59:41.000Z
2022-03-02T09:35:06.000Z
from flask import Flask, render_template, redirect, url_for, flash, Blueprint from flask_login import current_user, login_user, login_required from flask_dance.contrib.github import make_github_blueprint, github from flask_dance.contrib.google import make_google_blueprint, google from flask_dance.contrib.facebook impor...
35.352041
120
0.634002
794edb7f62435552f6580e7977fb459be4fde2a0
4,229
py
Python
city_scrapers/spiders/pa_liquorboard.py
maxachis/city-scrapers-pitt
63150a522a512d35b64e4068e25169cf46875598
[ "MIT" ]
16
2019-02-22T23:43:06.000Z
2020-01-13T04:41:50.000Z
city_scrapers/spiders/pa_liquorboard.py
maxachis/city-scrapers-pitt
63150a522a512d35b64e4068e25169cf46875598
[ "MIT" ]
109
2020-02-09T21:42:36.000Z
2021-03-06T21:41:18.000Z
city_scrapers/spiders/pa_liquorboard.py
maxachis/city-scrapers-pitt
63150a522a512d35b64e4068e25169cf46875598
[ "MIT" ]
62
2019-01-25T23:55:58.000Z
2020-01-17T00:53:55.000Z
import re from datetime import datetime from city_scrapers_core.constants import BOARD from city_scrapers_core.items import Meeting from city_scrapers_core.spiders import CityScrapersSpider class PaLiquorboardSpider(CityScrapersSpider): """Spider is a class that scapy provides to us, this spider will inh...
37.758929
88
0.624261
794edba706aa6e447e89d1034059e591be3cfa3e
1,190
py
Python
chinilla/wallet/settings/user_settings.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
chinilla/wallet/settings/user_settings.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
chinilla/wallet/settings/user_settings.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict from chinilla.wallet.key_val_store import KeyValStore from chinilla.wallet.settings.default_settings import default_settings from chinilla.wallet.settings.settings_objects import BackupInitialized class UserSettings: settings: Dict[str, Any] basic_store: KeyValStore @staticm...
28.333333
79
0.652941
794ee016c60f657148360bcf8a5e6f91e778f00d
378
py
Python
Lab1/q3.py
ViniciusRCortez/Monitoria-de-metodos-numericos-com-python
85678fe8907752533d0dc97dc83550411ba079f0
[ "MIT" ]
null
null
null
Lab1/q3.py
ViniciusRCortez/Monitoria-de-metodos-numericos-com-python
85678fe8907752533d0dc97dc83550411ba079f0
[ "MIT" ]
null
null
null
Lab1/q3.py
ViniciusRCortez/Monitoria-de-metodos-numericos-com-python
85678fe8907752533d0dc97dc83550411ba079f0
[ "MIT" ]
null
null
null
""" Objetivo: Resolver questão 3 do primeiro laboratorio. """ def conta(a): #retorna a expressão desejada para cada valor de i numerador = ((a ** 3) + 1) ** 2 denominador = (a ** 2) + 2 return numerador / denominador x = [-1.6, -1.2, -0.8, -0.4, 0, 0.4, 0.8, 1.2] for i in x: #i = cada valor de...
23.625
70
0.566138
794ee06e7bd109b02f0212d0caf7b66d2ab5db80
4,524
py
Python
examples/run_sim_and_calc_resp_v2.py
willdickson/sys_id_utils
5dbf95e04e27377dcabed2f672f5fa788b0860d3
[ "MIT" ]
null
null
null
examples/run_sim_and_calc_resp_v2.py
willdickson/sys_id_utils
5dbf95e04e27377dcabed2f672f5fa788b0860d3
[ "MIT" ]
null
null
null
examples/run_sim_and_calc_resp_v2.py
willdickson/sys_id_utils
5dbf95e04e27377dcabed2f672f5fa788b0860d3
[ "MIT" ]
null
null
null
import warnings import numpy as np import scipy as sp import matplotlib.pyplot as plt import sys_id_utils num_pts = 5000 t0 = 0.0 # Start time t1 = 20.0 # End time # Yaw dynamics + controller model parameters model_param = { 'inertia' : 1.0, 'damping' : 0.0, 'pro_gain' : 5.0, 'in...
35.069767
129
0.612953
794ee1a767ccb5aa4e8a8cd6047727bb5d676853
5,990
py
Python
bg_biz/service/user_service.py
sluggard6/bgirl
3c9fa895189ef16442694830d0c05cf60ee5187b
[ "Apache-2.0" ]
null
null
null
bg_biz/service/user_service.py
sluggard6/bgirl
3c9fa895189ef16442694830d0c05cf60ee5187b
[ "Apache-2.0" ]
null
null
null
bg_biz/service/user_service.py
sluggard6/bgirl
3c9fa895189ef16442694830d0c05cf60ee5187b
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- from datetime import datetime, timedelta from bg_biz.orm.sysconfig import SysConfig from bg_biz.orm.user import User, UserVcode, ExchangeWifiRecord, UserHit from bg_biz.service.tool_service import ToolService from sharper.flaskapp.orm.base import transaction, db from sharper.lib.error imp...
37.911392
182
0.611352
794ee1cb7e573cec9fa7f6a6e54bc6cb6800d725
4,352
py
Python
customSDK/servicefabric/models/application_upgrade_rollback_started_event.py
hans-olav/service-fabric-cli
baf27342ad4b9f74dee1954e60ed5b40ebcf039d
[ "MIT" ]
null
null
null
customSDK/servicefabric/models/application_upgrade_rollback_started_event.py
hans-olav/service-fabric-cli
baf27342ad4b9f74dee1954e60ed5b40ebcf039d
[ "MIT" ]
null
null
null
customSDK/servicefabric/models/application_upgrade_rollback_started_event.py
hans-olav/service-fabric-cli
baf27342ad4b9f74dee1954e60ed5b40ebcf039d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
51.809524
248
0.697151
794ee1e97c43619c87f8fdc20a2ec5574e9e57d6
5,755
py
Python
testfile/test_CornerNetPureBar.py
Yunnglin/Chart-to-text
86f3291930289a4739f658c590e208771759ee50
[ "BSD-3-Clause" ]
30
2021-03-03T02:16:30.000Z
2022-02-23T10:46:36.000Z
testfile/test_CornerNetPureBar.py
Yunnglin/Chart-to-text
86f3291930289a4739f658c590e208771759ee50
[ "BSD-3-Clause" ]
16
2021-03-30T07:50:03.000Z
2022-03-03T04:56:30.000Z
testfile/test_CornerNetPureBar.py
Yunnglin/Chart-to-text
86f3291930289a4739f658c590e208771759ee50
[ "BSD-3-Clause" ]
15
2021-03-03T06:21:19.000Z
2022-02-25T10:01:36.000Z
import os import cv2 import json import numpy as np import torch import matplotlib.pyplot as plt from tqdm import tqdm from config import system_configs from utils import crop_image, normalize_ import external.nms as nms def _rescale_points(dets, ratios, borders, sizes): xs, ys = dets[:, :, 2], dets[:, :, 3] x...
36.424051
133
0.618593
794ee295d6220f6577f353b0a518e9ecdf243583
430
py
Python
tests/nlu_core_tests/component_tests/classifier_tests/cyber_tests.py
milyiyo/nlu
d209ed11c6a84639c268f08435552248391c5573
[ "Apache-2.0" ]
480
2020-08-24T02:36:40.000Z
2022-03-30T08:09:43.000Z
tests/nlu_core_tests/component_tests/classifier_tests/cyber_tests.py
milyiyo/nlu
d209ed11c6a84639c268f08435552248391c5573
[ "Apache-2.0" ]
28
2020-09-26T18:55:43.000Z
2022-03-26T01:05:45.000Z
tests/nlu_core_tests/component_tests/classifier_tests/cyber_tests.py
milyiyo/nlu
d209ed11c6a84639c268f08435552248391c5573
[ "Apache-2.0" ]
76
2020-09-25T22:55:12.000Z
2022-03-17T20:25:52.000Z
import unittest from nlu import * class TestCyber(unittest.TestCase): def test_cyber_model(self): import pandas as pd pipe = nlu.load('cyberbullying',verbose=True) df = pipe.predict(['Peter love pancaces. I hate Mondays', 'I love Fridays'], output_level='token',drop_irrelevant_cols=False...
25.294118
150
0.67907
794ee3a32ede6449a2c1c65a30d241f886e1bc64
791
py
Python
python/hw2/bfs.py
jeremy24/494-graph-algos
031a90e46304f405829bad7658965aae215833e1
[ "MIT" ]
null
null
null
python/hw2/bfs.py
jeremy24/494-graph-algos
031a90e46304f405829bad7658965aae215833e1
[ "MIT" ]
null
null
null
python/hw2/bfs.py
jeremy24/494-graph-algos
031a90e46304f405829bad7658965aae215833e1
[ "MIT" ]
null
null
null
from __future__ import print_function import sys from graph import Graph from graph import make from graph import GraphException from graph import Matrix def go(): if ( len(sys.argv) == 3 ): filename = str(sys.argv[1]) start = int (sys.argv[2]) graph = make( filename ) ...
21.378378
69
0.533502
794ee3cce054643651dd16950e32464e9de8e074
401
py
Python
torch2trt/__init__.py
NVIDIA-AI-IOT-private/torch2trt
953d60039e0c81e90eea467c3df2e6e3f7040242
[ "MIT" ]
null
null
null
torch2trt/__init__.py
NVIDIA-AI-IOT-private/torch2trt
953d60039e0c81e90eea467c3df2e6e3f7040242
[ "MIT" ]
null
null
null
torch2trt/__init__.py
NVIDIA-AI-IOT-private/torch2trt
953d60039e0c81e90eea467c3df2e6e3f7040242
[ "MIT" ]
null
null
null
from .torch2trt import * from .converters import * import tensorrt as trt def load_plugins(): import torch2trt.torch_plugins registry = trt.get_plugin_registry() torch2trt_creators = [c for c in registry.plugin_creator_list if c.plugin_namespace == 'torch2trt'] for c in torch2trt_creators: reg...
23.588235
103
0.733167
794ee3f47f77570be81f168a9fa8735017a7898a
11,448
py
Python
data/molecules.py
ihounie/benchmarking-gnns
b62268b162b2506630028d92123826694f6bb018
[ "MIT" ]
null
null
null
data/molecules.py
ihounie/benchmarking-gnns
b62268b162b2506630028d92123826694f6bb018
[ "MIT" ]
null
null
null
data/molecules.py
ihounie/benchmarking-gnns
b62268b162b2506630028d92123826694f6bb018
[ "MIT" ]
null
null
null
import torch import pickle import torch.utils.data import time import os import numpy as np import csv import dgl from scipy import sparse as sp import numpy as np # *NOTE # The dataset pickle and index files are in ./zinc_molecules/ dir # [<split>.pickle and <split>.index; for split 'train', 'val' and 'test'] ...
39.475862
127
0.604385
794ee47bbdd20abbf3c979aa78624ea349e97ef7
1,614
py
Python
nexus/examples/qmcpack/afqmc_pyscf/08_diamond_2x2x2_kpoint_sym/diamond_afqmc.py
prckent/qmcpack
127caf219ee99c2449b803821fcc8b1304b66ee1
[ "NCSA" ]
null
null
null
nexus/examples/qmcpack/afqmc_pyscf/08_diamond_2x2x2_kpoint_sym/diamond_afqmc.py
prckent/qmcpack
127caf219ee99c2449b803821fcc8b1304b66ee1
[ "NCSA" ]
null
null
null
nexus/examples/qmcpack/afqmc_pyscf/08_diamond_2x2x2_kpoint_sym/diamond_afqmc.py
prckent/qmcpack
127caf219ee99c2449b803821fcc8b1304b66ee1
[ "NCSA" ]
null
null
null
#! /usr/bin/env python from nexus import settings,job,run_project,obj from nexus import generate_physical_system from nexus import generate_pyscf from nexus import generate_pyscf_to_afqmc from nexus import generate_qmcpack settings( results = '', sleep = 3, machine = 'ws16', ) a = 3.6 system = gen...
23.735294
46
0.475217
794ee4bef4e62bc5a0149e39d2c7342882b1765d
1,559
py
Python
bglcapi/bgapi/gatt/parse.py
edgebr/python-bgapi
0aeb525edf605e892b20f5c3fb11269cce0c5bdf
[ "MIT" ]
null
null
null
bglcapi/bgapi/gatt/parse.py
edgebr/python-bgapi
0aeb525edf605e892b20f5c3fb11269cce0c5bdf
[ "MIT" ]
null
null
null
bglcapi/bgapi/gatt/parse.py
edgebr/python-bgapi
0aeb525edf605e892b20f5c3fb11269cce0c5bdf
[ "MIT" ]
null
null
null
from struct import (unpack_from, calcsize) from bglcapi.types import MessageType from . import rsp from . import evt PARSE_MAP = { MessageType.COMMAND_RESPONSE: { 0x03: rsp.discover_characteristics, 0x04: rsp.discover_characteristics_by_uuid, 0x06: rsp.discover_descriptors, 0x01: ...
34.644444
70
0.710712
794ee50af211b2ef7d89826609589befe66e556d
6,869
py
Python
uibcdf_systems/systems/attic/alanine_dipeptide.py
uibcdf/Molecular-Systems
74c4313ae25584ad24bea65f961280f187eda9cb
[ "MIT" ]
null
null
null
uibcdf_systems/systems/attic/alanine_dipeptide.py
uibcdf/Molecular-Systems
74c4313ae25584ad24bea65f961280f187eda9cb
[ "MIT" ]
null
null
null
uibcdf_systems/systems/attic/alanine_dipeptide.py
uibcdf/Molecular-Systems
74c4313ae25584ad24bea65f961280f187eda9cb
[ "MIT" ]
null
null
null
import openmm.unit as unit class AlanineDipeptideVacuum(): """Alanine dipeptide in vacuum Alanine dipeptide same as OpenMMTools Attributes ---------- system Xxx xxx Methods ------- """ def __init__(self, forcefield='AMBER14', constraints='h_bonds', hydrogen_mass=None)...
27.697581
136
0.614646
794ee5d664506e2c6c727910a769443e84d644a0
459
py
Python
client/core/movement/__init__.py
krerkkiat/space-invader
428b1041c9246b55cb63bc6c0b2ec20beb7a32ed
[ "MIT" ]
null
null
null
client/core/movement/__init__.py
krerkkiat/space-invader
428b1041c9246b55cb63bc6c0b2ec20beb7a32ed
[ "MIT" ]
null
null
null
client/core/movement/__init__.py
krerkkiat/space-invader
428b1041c9246b55cb63bc6c0b2ec20beb7a32ed
[ "MIT" ]
null
null
null
from core.movement.paths import SpiralPath class Movement: def __init__(self, path, start=0): self._path = path self._currentPos = start-1 def move(self): self._currentPos += 1 if self._currentPos >= self._path.length: self._currentPos = 0 if self._current...
27
83
0.59695
794ee746a270782dd0d78013bf73b6ea5b0b1a33
2,664
py
Python
src/japronto/protocol/tracing.py
kzh3ka/japronto
a526277a2f59100388c9f39d4ca22bfb4909955b
[ "MIT" ]
9,472
2017-01-31T13:22:02.000Z
2022-03-31T13:15:46.000Z
src/japronto/protocol/tracing.py
zishenWang/japronto
f501c9f59fc83d0e4ab928ecdacf1735a2cc5cb6
[ "MIT" ]
170
2017-01-31T18:50:13.000Z
2022-03-17T13:32:04.000Z
src/japronto/protocol/tracing.py
zishenWang/japronto
f501c9f59fc83d0e4ab928ecdacf1735a2cc5cb6
[ "MIT" ]
739
2017-01-31T17:42:03.000Z
2022-02-24T05:10:32.000Z
from functools import partial from parser.libpicohttpparser import ffi from request import HttpRequest class TracingProtocol: def __init__(self, on_headers_adapter: callable, on_body_adapter: callable): self.requests = [] self.error = None self.on_headers_adapter = on_he...
29.6
79
0.683934
794ee96595b1601bbcd3f60c4dfd2af5ee969ab3
40,294
py
Python
tests/orm/test_model.py
fenestron/lorator
1966f095a67ae65e816b1c8f7359b9f203cd5c4f
[ "MIT" ]
null
null
null
tests/orm/test_model.py
fenestron/lorator
1966f095a67ae65e816b1c8f7359b9f203cd5c4f
[ "MIT" ]
null
null
null
tests/orm/test_model.py
fenestron/lorator
1966f095a67ae65e816b1c8f7359b9f203cd5c4f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import simplejson as json import hashlib import time import datetime from pendulum import Pendulum from flexmock import flexmock, flexmock_teardown from .. import OratorTestCase, mock from ..utils import MockModel, MockQueryBuilder, MockConnection, MockProcessor from lorator.query.builder impo...
34.118544
88
0.628257
794eea13e6104bcf2bfc238686d4c884b7f954e0
166
py
Python
src/smart_beta_strategies/algo_type.py
WQU-MScFE-Capstone-MGS/retail-investor-strategies
b8e9c791b3bd71cbe0d0f2c6c9b7de30a9b72100
[ "MIT" ]
12
2020-01-25T12:53:50.000Z
2021-09-21T18:02:16.000Z
src/smart_beta_strategies/algo_type.py
WQU-MScFE-Capstone-MGS/retail-investor-strategies
b8e9c791b3bd71cbe0d0f2c6c9b7de30a9b72100
[ "MIT" ]
null
null
null
src/smart_beta_strategies/algo_type.py
WQU-MScFE-Capstone-MGS/retail-investor-strategies
b8e9c791b3bd71cbe0d0f2c6c9b7de30a9b72100
[ "MIT" ]
13
2020-01-23T11:45:18.000Z
2021-09-12T22:06:07.000Z
from enum import Enum class MLAlgoType(Enum): ''' Enum to define ML algorithms which are supported by strategy ''' ADABOOST = 1 RANDOMFOREST = 2
18.444444
64
0.662651
794eeb0976cce9226b6d404dcd7d34223a0c3d83
585
py
Python
work/find-unknowns.py
tuomassalo/wikipedia-voikko-analyzer
712b6f14a2cac3a15f940c671f4d462c46417d67
[ "MIT" ]
null
null
null
work/find-unknowns.py
tuomassalo/wikipedia-voikko-analyzer
712b6f14a2cac3a15f940c671f4d462c46417d67
[ "MIT" ]
null
null
null
work/find-unknowns.py
tuomassalo/wikipedia-voikko-analyzer
712b6f14a2cac3a15f940c671f4d462c46417d67
[ "MIT" ]
null
null
null
import regex # from extractor import extract_words from analyzer import analyze_word from plaintextreader import get_split_articles for (page_id, occurrences) in get_split_articles(): # count the number of occurrence in this article word_occurrence = dict() for (word, properness, sentence) in occurrence...
29.25
72
0.675214
794eec3ba823777a1df9aafbd546d3347ce193d7
18,017
py
Python
tensorflow_addons/image/dense_image_warp.py
stnava/addons
faa5cee641127926c266932296d4ece60783f62a
[ "Apache-2.0" ]
null
null
null
tensorflow_addons/image/dense_image_warp.py
stnava/addons
faa5cee641127926c266932296d4ece60783f62a
[ "Apache-2.0" ]
null
null
null
tensorflow_addons/image/dense_image_warp.py
stnava/addons
faa5cee641127926c266932296d4ece60783f62a
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
42.897619
108
0.607371
794eee26125bb42e95137792eca3db452f524b65
4,271
py
Python
tests/test/generic/basic.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
6
2019-01-09T11:55:15.000Z
2021-06-25T19:52:42.000Z
tests/test/generic/basic.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
65
2018-12-12T08:40:38.000Z
2022-02-28T09:19:45.000Z
tests/test/generic/basic.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
9
2018-11-23T08:59:09.000Z
2020-02-04T12:56:35.000Z
#!/usr/bin/env python2.7 import os import sys sys.path.append(os.path.realpath(__file__ + '/../../../lib')) import udf from udf import requires class BasicTest(udf.TestCase): @requires('BASIC_RANGE') def test_basic_scalar_emits(self): rows = self.query(''' SELECT fn1.basic_range(3) ...
32.112782
112
0.592835