hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
ff7bbecb2a03903320fce42c66b4bfb67a2b9ae5
860
py
Python
experiments/vitchyr/goal_distribution/representation_learning/offline_training/pygame_1obj/generate_trajectory_with_learned_policy.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/goal_distribution/representation_learning/offline_training/pygame_1obj/generate_trajectory_with_learned_policy.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/goal_distribution/representation_learning/offline_training/pygame_1obj/generate_trajectory_with_learned_policy.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import numpy as np from rlkit.misc.asset_loader import get_relative_path from rlkit.torch.sets.offline_rl_launcher import generate_trajectories def main(): # snapshot = 'manual-upload/disco-policy/snapshot_for_hand2xy_hand2x_1obj2xy_1obj2x.pkl' snapshot = 'manual-upload/disco-policy/snapshot_for_hand2xy_hand2...
34.4
111
0.75814
ff7be56a2339f9b20bb259374d660b3669d37b94
2,529
py
Python
twister2/python-support/src/main/python/twister2/utils.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
63
2017-08-31T10:02:52.000Z
2021-12-18T21:42:14.000Z
twister2/python-support/src/main/python/twister2/utils.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
284
2017-10-20T15:35:26.000Z
2020-09-11T15:25:40.000Z
twister2/python-support/src/main/python/twister2/utils.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
44
2017-08-21T19:47:57.000Z
2020-11-22T22:45:50.000Z
import numpy as np from twister2.TSetContext import TSetContext class IteratorWrapper: def __init__(self, java_ref, numpy_builder = None): self.__java_ref = java_ref self.__numpy_builder = numpy_builder def __iter__(self): return self def __next__(self): if self.__java_r...
30.107143
113
0.639383
ff7c271d37b123be9569afcf66d04a9350e611a1
565
py
Python
examples/coadd/coadd_2d_pipe/coadd_2d.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
150
2015-01-16T12:24:13.000Z
2022-03-03T18:01:18.000Z
examples/coadd/coadd_2d_pipe/coadd_2d.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
129
2015-01-13T04:58:56.000Z
2022-03-02T13:39:16.000Z
examples/coadd/coadd_2d_pipe/coadd_2d.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
88
2015-02-16T20:04:12.000Z
2022-03-10T06:50:30.000Z
#! /usr/bin/env python import nmrglue as ng import numpy as np import glob # create a list of files to coadd flist = glob.glob("test*.fid") flist.sort() # initilize the new data dic, data = ng.pipe.read(flist[0]) coadd_data = np.zeros_like(data) coadd_dic = dict(dic) # loop over the files, adding them to the coadde...
22.6
67
0.709735
ff7c3d6a8cece349d02e64e8d9c9e4df2e37253a
9,391
py
Python
leetcode_python/Backtracking/restore-ip-addresses.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Backtracking/restore-ip-addresses.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Backtracking/restore-ip-addresses.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" 93. Restore IP Addresses Medium A valid IP address consists of exactly four integers separated by single dots. Each integer is between 0 and 255 (inclusive) and cannot have leading zeros. For example, "0.1.2.201" and "192.168.1.1" are valid IP addresses, but "0.011.255.245", "192.168.1.312" and "192.168@1.1" are...
32.051195
234
0.502396
ff7c995308485548873ddfb7fbc431817b829c17
4,566
py
Python
sumo/loss/loss.py
dslaborg/sumo
1e9bfedaff201d4bd37b4889b6091cc4b9c8ad01
[ "MIT" ]
3
2022-02-03T22:54:14.000Z
2022-03-31T09:59:02.000Z
sumo/loss/loss.py
dslaborg/sumo
1e9bfedaff201d4bd37b4889b6091cc4b9c8ad01
[ "MIT" ]
null
null
null
sumo/loss/loss.py
dslaborg/sumo
1e9bfedaff201d4bd37b4889b6091cc4b9c8ad01
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class GeneralizedDiceLoss(nn.Module): """ Compute the generalised Dice loss defined in: Sudre, C. et al. (2017) Generalised Dice overlap as a deep learning loss function for highly unbalanced segmentations. DLMIA 2017. https://...
40.40708
120
0.608848
ff7cfdadf9efe73eda4d3de2a6b5b26b12d75c0d
323
py
Python
examples/one/ephys/docs_get_first_pass_map_sessions.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
38
2018-08-07T21:55:29.000Z
2022-03-21T14:49:03.000Z
examples/one/ephys/docs_get_first_pass_map_sessions.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
207
2018-07-25T15:10:48.000Z
2022-03-08T13:23:08.000Z
examples/one/ephys/docs_get_first_pass_map_sessions.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
35
2018-09-04T14:49:56.000Z
2022-01-06T21:17:51.000Z
""" Get first pass map sessions =========================== Use ONE to get information about sessions included in first pass map """ from one.api import ONE one = ONE(base_url='https://openalyx.internationalbrainlab.org', silent=True) first_pass_map_sessions = one.search(project='ibl_neuropixel_brainwide_01'...
29.363636
78
0.69969
ff7d010bda0feccb476c74ed0f706a72839e805d
1,888
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/xstatic/pkg/termjs/__init__.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/xstatic/pkg/termjs/__init__.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/xstatic/pkg/termjs/__init__.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
""" XStatic resource package See package 'XStatic' for documentation and basic tools. """ DISPLAY_NAME = 'term.js' # official name, upper/lowercase allowed, no spaces PACKAGE_NAME = 'XStatic-%s' % DISPLAY_NAME # name used for PyPi NAME = __name__.split('.')[-1] # package name (e.g. 'foo' or 'foo_bar') ...
34.962963
77
0.688559
ff7d27c4938882eecd8ba30d4969031de5017eb0
15,940
py
Python
custom_components/garbage_collection/sensor.py
aolley/Garbage-Collection
06c8c48f737339a9350c6c1d2909f95d4248ad26
[ "MIT" ]
null
null
null
custom_components/garbage_collection/sensor.py
aolley/Garbage-Collection
06c8c48f737339a9350c6c1d2909f95d4248ad26
[ "MIT" ]
null
null
null
custom_components/garbage_collection/sensor.py
aolley/Garbage-Collection
06c8c48f737339a9350c6c1d2909f95d4248ad26
[ "MIT" ]
null
null
null
"""Sensor platform for garbage_collection.""" from homeassistant.helpers.entity import Entity import logging from datetime import datetime, date, timedelta from homeassistant.core import HomeAssistant, State from typing import List, Any import homeassistant.util.dt as dt_util _LOGGER = logging.getLogger(__name__) SC...
38.973105
88
0.563488
ff7d29a4c96eda47a40742d9ac24f3fede9bc49a
629
py
Python
pccommon/tracing.py
jisantuc/planetary-computer-apis-1
81a666e843cd0d8592708b35e1360fb68815816d
[ "MIT" ]
1
2021-11-02T16:13:43.000Z
2021-11-02T16:13:43.000Z
pccommon/tracing.py
moradology/planetary-computer-apis-1
81a666e843cd0d8592708b35e1360fb68815816d
[ "MIT" ]
null
null
null
pccommon/tracing.py
moradology/planetary-computer-apis-1
81a666e843cd0d8592708b35e1360fb68815816d
[ "MIT" ]
null
null
null
from opencensus.ext.azure.trace_exporter import AzureExporter from opencensus.trace.attributes_helper import COMMON_ATTRIBUTES from pccommon.config import CommonConfig config = CommonConfig.from_environment() HTTP_PATH = COMMON_ATTRIBUTES["HTTP_PATH"] HTTP_URL = COMMON_ATTRIBUTES["HTTP_URL"] HTTP_STATUS_CODE = COMM...
27.347826
75
0.782194
ff7d2d0c3f7aed66a01a8040578500ffc3988a54
245
py
Python
PyChat/info.py
leosartaj/PyChat
9c22edc6ca89e2ff636b74a9cbd0a31bb44b1667
[ "MIT" ]
7
2015-02-06T16:53:45.000Z
2018-09-22T10:11:44.000Z
PyChat/info.py
leosartaj/PyChat
9c22edc6ca89e2ff636b74a9cbd0a31bb44b1667
[ "MIT" ]
3
2016-12-03T17:01:21.000Z
2021-07-08T23:03:08.000Z
PyChat/info.py
leosartaj/PyChat
9c22edc6ca89e2ff636b74a9cbd0a31bb44b1667
[ "MIT" ]
2
2016-12-03T17:01:58.000Z
2016-12-26T10:46:20.000Z
#!/usr/bin/env python2 ## # PyChat # https://github.com/leosartaj/PyChat.git # # Copyright (c) 2014 Sartaj Singh # Licensed under the MIT license. ## """ Information Variables """ __version__ = '1.5.0-beta' __desc__ = 'PyChat ' + __version__
14.411765
41
0.685714
ff7d4867731932493f724838abf079cb09254a9a
893
py
Python
setup.py
kangfend/py-jne
622643f0ab0e4c848a2e8578ec9946716984da34
[ "MIT" ]
15
2015-06-13T22:39:10.000Z
2016-10-09T05:03:27.000Z
setup.py
kangfend/py-jne
622643f0ab0e4c848a2e8578ec9946716984da34
[ "MIT" ]
2
2015-08-28T13:44:18.000Z
2016-01-23T10:06:31.000Z
setup.py
kangfend/py-jne
622643f0ab0e4c848a2e8578ec9946716984da34
[ "MIT" ]
10
2015-03-28T04:34:45.000Z
2021-09-04T09:12:03.000Z
from setuptools import setup setup( name='py-jne', packages=['jne'], version='0.1.3', description='PyJNE is a tool to simplify the user in using the JNE API such as tracking stuff, check tariffs and others.', license='MIT', author='Sutrisno Efendi', author_email='kangfend@gmail.com', ur...
35.72
126
0.629339
ff7d6cf682fdfe02624faa808bd4f9c9e8841263
17,171
py
Python
applications/nightly_build/test_nasnet_mobile.py
xadupre/keras-onnx
17559f987ecce7ec40ab8a36a9596eb950f9b332
[ "MIT" ]
1
2020-10-26T03:03:02.000Z
2020-10-26T03:03:02.000Z
applications/nightly_build/test_nasnet_mobile.py
xadupre/keras-onnx
17559f987ecce7ec40ab8a36a9596eb950f9b332
[ "MIT" ]
null
null
null
applications/nightly_build/test_nasnet_mobile.py
xadupre/keras-onnx
17559f987ecce7ec40ab8a36a9596eb950f9b332
[ "MIT" ]
null
null
null
############################################################################### # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. ############################################################################### imp...
45.425926
118
0.609749
ff7da56fb8f27989ce3ba8c4a6e13ec7212a308e
420
py
Python
shared_encoder/preprocess.py
shahrukhx01/multitask-learning-transformers
d4a00b57abae0b5c166d066b89614f97502446c7
[ "Apache-2.0" ]
29
2021-09-27T13:40:07.000Z
2022-03-25T12:31:27.000Z
shared_encoder/preprocess.py
shahrukhx01/multitask-learning-transformers
d4a00b57abae0b5c166d066b89614f97502446c7
[ "Apache-2.0" ]
2
2021-10-04T16:25:09.000Z
2022-02-23T10:27:43.000Z
shared_encoder/preprocess.py
shahrukhx01/multitask-learning-transformers
d4a00b57abae0b5c166d066b89614f97502446c7
[ "Apache-2.0" ]
2
2021-12-02T01:01:23.000Z
2021-12-19T09:54:09.000Z
import transformers def convert_to_features(example_batch, model_name="roberta-base", max_length=512): tokenizer = transformers.AutoTokenizer.from_pretrained(model_name) inputs = list(example_batch["doc"]) features = tokenizer( inputs, max_length=max_length, truncation=True, ...
26.25
82
0.697619
ff7dca001e9a04cab03f0ce7e9ea80b97174b002
1,892
py
Python
alipay/aop/api/domain/AlipaySocialBaseBcgroupJoinedConsultModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipaySocialBaseBcgroupJoinedConsultModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipaySocialBaseBcgroupJoinedConsultModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipaySocialBaseBcgroupJoinedConsultModel(object): def __init__(self): self._business_id = None self._tenant_id = None self._user_id = None @property def business...
26.647887
73
0.588795
ff7de0377fadbbffb10312bf81af12face4050cd
3,143
py
Python
heat/tests/functional/test_AutoScalingMultiAZSample.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
1
2020-08-15T14:29:15.000Z
2020-08-15T14:29:15.000Z
heat/tests/functional/test_AutoScalingMultiAZSample.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
null
null
null
heat/tests/functional/test_AutoScalingMultiAZSample.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
38.802469
78
0.678015
ff7e002d102b2df2e5d0ed3833d315a50657e4de
989
py
Python
microfreshener/core/helper/decorator.py
di-unipi-socc/micro-tosca
5d5c9361b34eeabaed8955ddc62282607672bd81
[ "MIT" ]
null
null
null
microfreshener/core/helper/decorator.py
di-unipi-socc/micro-tosca
5d5c9361b34eeabaed8955ddc62282607672bd81
[ "MIT" ]
3
2019-05-07T07:33:49.000Z
2019-05-15T14:02:51.000Z
microfreshener/core/helper/decorator.py
di-unipi-socc/microFreshener-core
5d5c9361b34eeabaed8955ddc62282607672bd81
[ "MIT" ]
null
null
null
# A couple helper functions first def _qualname(obj): """Get the fully-qualified name of an object (including module).""" return obj.__module__ + '.' + obj.__qualname__ def _declaring_class(obj): """Get the name of the class that declared an object.""" name = _qualname(obj) return name[:name.rfi...
29.969697
71
0.680485
ff7e277eb6d548ca679c18ad0c9830feacfaaa04
2,706
py
Python
gquant/dataframe_flow/taskSpecSchema.py
goosen78/gQuant
cc0bff4ac524ccfbe8097acd647a8b3fad5fe578
[ "Apache-2.0" ]
null
null
null
gquant/dataframe_flow/taskSpecSchema.py
goosen78/gQuant
cc0bff4ac524ccfbe8097acd647a8b3fad5fe578
[ "Apache-2.0" ]
null
null
null
gquant/dataframe_flow/taskSpecSchema.py
goosen78/gQuant
cc0bff4ac524ccfbe8097acd647a8b3fad5fe578
[ "Apache-2.0" ]
null
null
null
from ._node import _Node __all__ = ['TaskSpecSchema'] class TaskSpecSchema(object): '''Outline fields expected in a dictionary specifying a task node. :cvar task_id: unique id or name for the node :cvar node_type: Plugin class i.e. subclass of Node. Specified as string or subclass of Node :cv...
36.08
77
0.574649
ff7e3795ae8aa2210ac20435408538235fbcc155
529
py
Python
setup.py
Ap0c/simple-sqlite3
c7eb98d10a4bd64e56861370f04b859d207a576f
[ "MIT" ]
null
null
null
setup.py
Ap0c/simple-sqlite3
c7eb98d10a4bd64e56861370f04b859d207a576f
[ "MIT" ]
1
2016-06-18T17:22:35.000Z
2016-06-18T17:22:35.000Z
setup.py
Ap0c/simple-sqlite3
c7eb98d10a4bd64e56861370f04b859d207a576f
[ "MIT" ]
null
null
null
# ----- Imports ----- # from setuptools import setup # ----- Setup ----- # setup(name='simple_sqlite3', version='0.1.0', description='A simple library for interacting with sqlite3 in Python.', url='https://github.com/Ap0c/simple-sqlite3', author='Ap0c', license='MIT', packages=['simple_sqlite3'], classifiers...
24.045455
72
0.652174
ff7e4f8c63800426f29ee021d9718ca9e872ca5d
1,652
py
Python
sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/word_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/word_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/word_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "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 ...
35.913043
95
0.615012
ff7e53ce82c4083969429c20e0f3103ed5236a1f
1,933
py
Python
rally/plugins/common/sla/max_average_duration.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/common/sla/max_average_duration.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/common/sla/max_average_duration.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
1
2015-02-07T09:44:47.000Z
2015-02-07T09:44:47.000Z
# Copyright 2014: Mirantis 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 b...
36.471698
78
0.684428
ff7e66557c6879b02ea084602274bc66c765de16
3,807
py
Python
sciwing/modules/lstm2seq_attncontext_encoder.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
null
null
null
sciwing/modules/lstm2seq_attncontext_encoder.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
null
null
null
sciwing/modules/lstm2seq_attncontext_encoder.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
null
null
null
import torch.nn as nn from sciwing.utils.class_nursery import ClassNursery from sciwing.data.contextual_lines import LineWithContext from sciwing.modules.lstm2seqencoder import Lstm2SeqEncoder from sciwing.modules.embedders.base_embedders import BaseEmbedder from typing import List, Union import torch class Lstm2SeqA...
38.846939
85
0.675072
ff7ed96b3a3c85e727253bffd70fca1dc0e1b4b4
140
py
Python
algorithms/arrays/remove_duplicates/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
algorithms/arrays/remove_duplicates/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
algorithms/arrays/remove_duplicates/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
from typing import List def remove_duplicates(nums: List[int]) -> int: nums[:] = list(set(nums)) nums.sort() return len(nums)
17.5
46
0.642857
ff7edf394ea7d1e7d84319cda207d377b005fb5c
17,526
py
Python
mitmproxy/options.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
null
null
null
mitmproxy/options.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
null
null
null
mitmproxy/options.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
null
null
null
from typing import Optional, Sequence from mitmproxy import optmanager from mitmproxy import contentviews from mitmproxy.net import tls log_verbosity = [ "error", "warn", "info", "alert", "debug", ] APP_HOST = "mitm.it" APP_PORT = 80 CA_DIR = "~/.mitmproxy" LISTEN_PORT = 8080 # Some help text st...
37.052854
102
0.557115
ff7ef7179caf60cc6f608b60f9a11751c8cd8323
272
py
Python
Python/ex019_import_random.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
1
2021-02-16T17:36:53.000Z
2021-02-16T17:36:53.000Z
Python/ex019_import_random.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
null
null
null
Python/ex019_import_random.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
null
null
null
from random import choice n1 = str(input('Primeiro aluno: ')) n2 = str(input('Segundo aluno: ')) n3 = str(input('Terceiro aluno: ')) n4 = str(input('Quarto aluno: ')) lista = [n1, n2, n3, n4] escolhido = choice(lista) print('O aluno escolhido foi {} '.format(escolhido))
27.2
52
0.669118
ff7f0b93ffb1c6e4f336e06e8804d220ea5eba69
6,020
py
Python
sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_credential_entities.py
jiriburant/azure-sdk-for-python
a3b20fd3cf30145ee74fa3dfafbdce98ea9f6ef0
[ "MIT" ]
null
null
null
sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_credential_entities.py
jiriburant/azure-sdk-for-python
a3b20fd3cf30145ee74fa3dfafbdce98ea9f6ef0
[ "MIT" ]
1
2021-05-31T08:56:01.000Z
2021-05-31T08:56:01.000Z
sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_credential_entities.py
jiriburant/azure-sdk-for-python
a3b20fd3cf30145ee74fa3dfafbdce98ea9f6ef0
[ "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. # --------------------------------------------------------------------...
41.232877
113
0.741196
ff7f6d6073517ca900022726beb789f05df0d3d0
3,687
py
Python
benchmarks/CNN/13x10/ab_cnn_13x10.py
Blaok/AutoBridge
e296a6d5ffe96ddf7ee35bd239ce1cd4a41f3670
[ "MIT" ]
76
2020-12-30T05:47:35.000Z
2022-02-21T20:05:20.000Z
benchmarks/CNN/13x10/ab_cnn_13x10.py
Blaok/AutoBridge
e296a6d5ffe96ddf7ee35bd239ce1cd4a41f3670
[ "MIT" ]
16
2021-01-08T23:49:08.000Z
2022-03-28T22:08:31.000Z
benchmarks/CNN/13x10/ab_cnn_13x10.py
Blaok/AutoBridge
e296a6d5ffe96ddf7ee35bd239ce1cd4a41f3670
[ "MIT" ]
15
2021-03-02T05:56:58.000Z
2021-12-23T01:28:25.000Z
#! /usr/bin/python3.6 import sys sys.path.append('../../../src') import graph from formator import FormatHLS import collections import os import subprocess project_path = './kernel3_u250' solution_path = f'{project_path}/solution/' project_name = 'kernel3_u250' top_name = 'kernel3' rpt_path = f'{solution_path}/syn/...
31.784483
120
0.735829
ff7f8712647ece8275b04b059eecbb87bfbc143d
4,234
py
Python
oscar/lib/python2.7/site-packages/IPython/external/decorators/_numpy_testing_utils.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/external/decorators/_numpy_testing_utils.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/external/decorators/_numpy_testing_utils.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# IPython: modified copy of numpy.testing.utils, so # IPython.external._decorators works without numpy being installed. """ Utility function to facilitate testing. """ import sys import warnings # The following two classes are copied from python 2.6 warnings module (context # manager) class WarningMessage(...
37.469027
80
0.619981
ff7faf35e5c418a88246cdeb312eccc29ecd764a
1,365
py
Python
Userbot/plugins/hack.py
thecpumaster/Uniborg_repo
d743d544287ba113db1bfc5f463bf55b7923939b
[ "MIT" ]
5
2020-04-19T21:02:49.000Z
2020-08-02T14:02:53.000Z
Userbot/plugins/hack.py
thecpumaster/Uniborg_repo
d743d544287ba113db1bfc5f463bf55b7923939b
[ "MIT" ]
null
null
null
Userbot/plugins/hack.py
thecpumaster/Uniborg_repo
d743d544287ba113db1bfc5f463bf55b7923939b
[ "MIT" ]
6
2020-06-18T19:37:43.000Z
2021-12-27T17:12:15.000Z
"""Emoji Available Commands: .emoji shrug .emoji apple .emoji :/ .emoji -_-""" from telethon import events import asyncio @borg.on(events.NewMessage(pattern=r"\.(.*)", outgoing=True)) async def _(event): if event.fwd_from: return animation_interval = 2 animation_...
25.277778
124
0.432234
ff7fb3086b04baf1428979da2440e3ec98c603bd
3,613
py
Python
oculy/plotting/plots/plot_1d.py
MatthieuDartiailh/oculy
0cdae49aa1b546f26b31d14e944c7d481d368361
[ "BSD-3-Clause" ]
null
null
null
oculy/plotting/plots/plot_1d.py
MatthieuDartiailh/oculy
0cdae49aa1b546f26b31d14e944c7d481d368361
[ "BSD-3-Clause" ]
null
null
null
oculy/plotting/plots/plot_1d.py
MatthieuDartiailh/oculy
0cdae49aa1b546f26b31d14e944c7d481d368361
[ "BSD-3-Clause" ]
1
2022-03-21T12:14:19.000Z
2022-03-21T12:14:19.000Z
# -------------------------------------------------------------------------------------- # Copyright 2020-2021 by Oculy Authors, see git history for more details. # # Distributed under the terms of the BSD license. # # The full license is in the file LICENCE, distributed with this software. # --------------------------...
23.309677
88
0.568226
ff7fb76398e710e5010710627a735153e965718a
8,740
py
Python
tests/tests.py
ejesse/gobblegobble
3958f9257a58e15a6c89dd6075739fa7edb150e9
[ "MIT" ]
1
2016-04-04T23:39:35.000Z
2016-04-04T23:39:35.000Z
tests/tests.py
ejesse/gobblegobble
3958f9257a58e15a6c89dd6075739fa7edb150e9
[ "MIT" ]
null
null
null
tests/tests.py
ejesse/gobblegobble
3958f9257a58e15a6c89dd6075739fa7edb150e9
[ "MIT" ]
null
null
null
import json import time from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.test import TestCase from django.test.utils import override_settings from gobblegobble.bot import GobbleBot, Message from gobblegobble.exceptions import GobbleError from gobblegobble.mock_slack...
56.025641
182
0.672426
ff7fc58beaa058f016a093774ed1a810b30def62
8,025
py
Python
ads/dataset/correlation.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
20
2022-02-22T19:07:09.000Z
2022-03-16T17:21:42.000Z
ads/dataset/correlation.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
ads/dataset/correlation.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8; -*- # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ from __future__ import print_function, absolute_import import numpy as np import pandas as pd from ads.comm...
35.352423
122
0.661931
ff7fc7f39f7021dc966ee6a147e797c1d0a707fc
4,847
py
Python
msicontroller/analogjoystick.py
mrsl/MSI-Exhibit
78eb413924e2153ec46cc70b1c3495d396522079
[ "MIT" ]
null
null
null
msicontroller/analogjoystick.py
mrsl/MSI-Exhibit
78eb413924e2153ec46cc70b1c3495d396522079
[ "MIT" ]
null
null
null
msicontroller/analogjoystick.py
mrsl/MSI-Exhibit
78eb413924e2153ec46cc70b1c3495d396522079
[ "MIT" ]
null
null
null
import threading import glob DM = 0.4 class AnalogJoystick: status = {} stick = { 'x' : 0, 'y' : 0 } maxs = { 'x' : DM, 'y' : DM } mins = { 'x' : -DM, 'y' : -DM } cens = { 'x' : 0, 'y' : 0 } active = False device = None # USB Device thread = None # Monitor thread. x = 0 def __init__(self): for c in ...
20.280335
55
0.545492
ff7fcbb0bfdbde3d1f79a429a9fe598acfe02aeb
206
py
Python
astetik/style/random_colors.py
meirm/astetik
ea05ce57a0bf1e8bd7ef18c4d5ca8d7ad3fb4be7
[ "MIT" ]
8
2019-05-14T07:26:40.000Z
2021-12-21T12:05:20.000Z
astetik/style/random_colors.py
meirm/astetik
ea05ce57a0bf1e8bd7ef18c4d5ca8d7ad3fb4be7
[ "MIT" ]
33
2018-04-04T20:45:59.000Z
2019-03-07T12:54:37.000Z
astetik/style/random_colors.py
meirm/astetik
ea05ce57a0bf1e8bd7ef18c4d5ca8d7ad3fb4be7
[ "MIT" ]
3
2020-02-09T14:35:00.000Z
2020-12-19T13:47:23.000Z
import numpy as np def randomcolor(): ''' PICKS COLORS RANDOMLY ''' colors = [] for i in range(20): colors.append(list((np.random.randint(0, 255, 3) / 255))) return colors
13.733333
65
0.572816
ff7ffe706e2750da366b72e287da255c39dbc0f2
591
py
Python
tests/puzzles/test_name_score.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
tests/puzzles/test_name_score.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
tests/puzzles/test_name_score.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
import unittest from puzzles.name_score import name_score class NameScoreTest(unittest.TestCase): def test1(self): self.assertEqual(name_score('Mary Jane'), {"Mary Jane": 20}) def test2(self): self.assertEqual(name_score('Luke Skywalker'), {"Luke Skywalker": 41}) def test3(self): ...
28.142857
82
0.663283
ff8014bb6a96eaaa837b6a7976cb1bd9af21e4a0
5,648
py
Python
taf/testlib/TRex/TrexHLT.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
10
2016-12-16T00:05:58.000Z
2018-10-30T17:48:25.000Z
taf/testlib/TRex/TrexHLT.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
40
2017-01-04T23:07:05.000Z
2018-04-16T19:52:02.000Z
taf/testlib/TRex/TrexHLT.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
23
2016-12-30T05:03:53.000Z
2020-04-01T08:40:24.000Z
# Copyright (c) 2011 - 2017, Intel 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 applicable law or agre...
26.895238
128
0.613137
ff8033f8f27f43507daff54c8e92dc6270ed8bc2
6,512
py
Python
baselines/common/notebook_utils.py
T3p/baselines
5623c9160d1e86ebca3e673f142fe6b14a1db06c
[ "MIT" ]
2
2020-08-01T18:19:05.000Z
2021-06-30T06:37:23.000Z
baselines/common/notebook_utils.py
T3p/baselines
5623c9160d1e86ebca3e673f142fe6b14a1db06c
[ "MIT" ]
null
null
null
baselines/common/notebook_utils.py
T3p/baselines
5623c9160d1e86ebca3e673f142fe6b14a1db06c
[ "MIT" ]
5
2018-11-24T16:29:39.000Z
2021-12-10T03:07:07.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue May 1 11:57:26 2018 @author: matteo """ import numpy as np import pandas as pd import matplotlib.pyplot as plt import scipy.stats as sts import math def bootstrap_ci(x, conf=0.95, resamples=10000): means = [np.mean(x[np.random.choice(x.shape[0], ...
38.532544
186
0.607033
ff803a08f94e727436932fd1478d38c2cd0b4e2c
43,483
py
Python
functions/Plot_2D.py
NCAR/musica-tutorial
87e8adbfd57cd27f9b31552f480fc251c988fa91
[ "Apache-2.0" ]
5
2021-11-08T19:19:13.000Z
2022-03-06T01:02:50.000Z
functions/Plot_2D.py
NCAR/musica-tutorial
87e8adbfd57cd27f9b31552f480fc251c988fa91
[ "Apache-2.0" ]
null
null
null
functions/Plot_2D.py
NCAR/musica-tutorial
87e8adbfd57cd27f9b31552f480fc251c988fa91
[ "Apache-2.0" ]
null
null
null
''' Plot_2D.py this code is designed for plotting CESM output can be used for either finite volume or spectral element (+ regional refinement) (1) 2D map plotting (class Plot_2D) MODIFICATION HISTORY: Duseong Jo, 19, JAN, 2021: VERSION 1.00 - Initial version Duseong Jo, 20, JAN, 2021: VERSION 1.10 - A...
48.314444
127
0.451096
ff80863b8805e4b38233b07a5b854fcecf61ffb9
377
py
Python
tests/testing_resources.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
3
2019-09-29T20:48:46.000Z
2021-03-31T10:16:07.000Z
tests/testing_resources.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
148
2019-02-08T12:30:58.000Z
2021-03-11T15:31:55.000Z
tests/testing_resources.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
1
2020-11-18T14:10:05.000Z
2020-11-18T14:10:05.000Z
MOCK_SETTINGS = { "index_connections": { "elastic_host": "https://es-index.no", "index": "index-name" }, "bucket_storage": { "github": { "publish": "True", "host": "https://raw.githubusercontent.com" } }, } MOCK_METADATA = { "bucket": "my-bucket", "id": "my-package...
17.136364
49
0.525199
ff80c021e5888f47abf714fa82320aba29f6bf13
1,807
py
Python
examples/voigt.py
migueldvb/pyspeckit
fa7d875da7c684c8f6aaa3ba206ef3ff2e196652
[ "MIT", "BSD-3-Clause" ]
null
null
null
examples/voigt.py
migueldvb/pyspeckit
fa7d875da7c684c8f6aaa3ba206ef3ff2e196652
[ "MIT", "BSD-3-Clause" ]
null
null
null
examples/voigt.py
migueldvb/pyspeckit
fa7d875da7c684c8f6aaa3ba206ef3ff2e196652
[ "MIT", "BSD-3-Clause" ]
null
null
null
import pyspeckit import numpy as np from pyspeckit.spectrum.models import inherited_voigtfitter # technically, the voigt fitter works as a singlefitter (i.e., you can fit the # background level and the peak simultaneously) # in practice, however, you need to fit the background independently except for # gaussians. I...
54.757576
148
0.773658
ff80ce46dec5775156b4c03eeadbdbf0679a324f
1,343
py
Python
ic-os/guestos/tests/interactive.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
941
2021-05-10T08:14:14.000Z
2022-03-31T11:40:24.000Z
ic-os/guestos/tests/interactive.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
4
2021-12-22T22:34:51.000Z
2022-03-31T07:34:19.000Z
ic-os/guestos/tests/interactive.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
122
2021-05-10T08:21:23.000Z
2022-03-25T20:34:12.000Z
#!/usr/bin/env python3 # This script starts a minimal IC instance consisting of a single VM node # and makes its serial console accessible interactively. Use it in the # following way: # # interactive --disk_image=<your VM disk image> --version=<version> --ic_prep_bin=<path/to/ic-prep> # # The given disk image is first...
27.979167
115
0.704393
ff811c221fc467aa8ef2780caf82de5a46b1fac4
17,636
py
Python
nova/virt/libvirt/utils.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/virt/libvirt/utils.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/virt/libvirt/utils.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright (c) 2010 Citrix Systems, Inc. # Copyright (c) 2011 Piston Cloud Computing, Inc # Copyright (c) 2011 OpenStack Foundation # (c) Cop...
33.720841
79
0.640848
ff813a05a51a7878268bbc8789223deeb642852d
600
py
Python
workflows/consumers.py
xflows/clowdflows-backend
9fae3a27d16035147bebac6efcd7617aec35e0f3
[ "MIT" ]
4
2017-12-13T10:59:42.000Z
2019-11-03T17:26:19.000Z
workflows/consumers.py
xflows/clowdflows-backend
9fae3a27d16035147bebac6efcd7617aec35e0f3
[ "MIT" ]
21
2017-04-05T08:03:54.000Z
2022-03-11T23:16:03.000Z
workflows/consumers.py
xflows/clowdflows-backend
9fae3a27d16035147bebac6efcd7617aec35e0f3
[ "MIT" ]
null
null
null
from urllib.parse import parse_qs from channels import Group from channels.sessions import channel_session @channel_session def ws_add(message): message.reply_channel.send({"accept": True}) qs = parse_qs(message['query_string']) workflow_pk = qs[b'workflow_pk'][0].decode('utf-8') message.channel_sessi...
31.578947
73
0.758333
ff815e35c0ebb173ae564e584097694b5de6c257
893
py
Python
setup.py
emissible/emissilbe
5537e787ccb883a101d2d40b38d480e257ac9755
[ "MIT" ]
1
2019-02-20T05:11:16.000Z
2019-02-20T05:11:16.000Z
setup.py
emissible/emissilbe
5537e787ccb883a101d2d40b38d480e257ac9755
[ "MIT" ]
null
null
null
setup.py
emissible/emissilbe
5537e787ccb883a101d2d40b38d480e257ac9755
[ "MIT" ]
null
null
null
#!/bin/python import os from setuptools import setup # Get version and release info, which is all stored in speedcom/version.py ver_file = os.path.join('speedcom', 'version.py') with open(ver_file) as f: exec(f.read()) opts = dict(name=NAME, maintainer=MAINTAINER, maintainer_email=MAINTAIN...
28.806452
74
0.617021
ff8181bef4fa13cd017b1c898c0126484f22b285
452
py
Python
migrations/0003_task_queue.py
audaciouscode/Quicksilver-Django
81d09b82306171c7d049975c8c6944f56b60eaf0
[ "Apache-2.0" ]
null
null
null
migrations/0003_task_queue.py
audaciouscode/Quicksilver-Django
81d09b82306171c7d049975c8c6944f56b60eaf0
[ "Apache-2.0" ]
3
2021-04-08T21:49:10.000Z
2021-06-10T20:21:36.000Z
migrations/0003_task_queue.py
audacious-software/Quicksilver-Django
782be842e0ebec797e4cc74f77f3c1378d98b778
[ "Apache-2.0" ]
null
null
null
# pylint: skip-file # -*- coding: utf-8 -*- # Generated by Django 1.11.28 on 2020-05-15 20:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('quicksilver', '0002_auto_20200514_2210'), ] operations = [ migrations.AddField( m...
20.545455
70
0.599558
ff8182f7a960a5f86c67d9fca95ececa58d54cfa
1,538
py
Python
psak_src/psak_src/exploit_modules/internal_utils/__init__.py
Syslog777/psak
da9fd58a2e90adf8882019a04ddbdc2eede872cd
[ "BSD-3-Clause" ]
28
2017-12-12T12:16:13.000Z
2022-02-23T04:34:35.000Z
psak_src/psak_src/exploit_modules/internal_utils/__init__.py
Syslog777/psak
da9fd58a2e90adf8882019a04ddbdc2eede872cd
[ "BSD-3-Clause" ]
7
2017-12-12T11:53:20.000Z
2020-01-25T10:13:40.000Z
psak_src/psak_src/exploit_modules/internal_utils/__init__.py
Syslog777/psak
da9fd58a2e90adf8882019a04ddbdc2eede872cd
[ "BSD-3-Clause" ]
10
2018-01-02T20:30:07.000Z
2020-05-06T20:26:08.000Z
""" Copyright (c) 2017, Syslog777 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and...
53.034483
81
0.776983
ff81ba6715120448a54444c938cad54c6da60a56
2,969
py
Python
alipay/aop/api/domain/OrderPageQueryDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/OrderPageQueryDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/OrderPageQueryDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.ApplyOrderData import ApplyOrderData class OrderPageQueryDTO(object): def __init__(self): self._page_data = None self._page_num = None self._page_size...
30.295918
78
0.574267
ff81bae523717baf6255e6df8010bcbc23e03dc0
731
py
Python
scenarios/init_notebook.py
adhocmaster/pyns
607feb56baf0900535130195163eac331e131a2e
[ "MIT" ]
1
2021-06-15T06:21:14.000Z
2021-06-15T06:21:14.000Z
scenarios/init_notebook.py
adhocmaster/pyns
607feb56baf0900535130195163eac331e131a2e
[ "MIT" ]
null
null
null
scenarios/init_notebook.py
adhocmaster/pyns
607feb56baf0900535130195163eac331e131a2e
[ "MIT" ]
1
2021-06-15T06:21:18.000Z
2021-06-15T06:21:18.000Z
import os, sys currentFolder = os.path.abspath('') try: sys.path.remove(str(currentFolder)) except ValueError: # Already removed pass projectFolder = 'C:\\Users\\adhocmaster\\Documents\\GitHub\\pyns' sys.path.append(str(projectFolder)) os.chdir(projectFolder) print( f"current working dir{os.getcwd()}") import...
29.24
65
0.815321
ff81c04f9ee52b2487c5dc46648dc1512fcbbe49
3,099
py
Python
tests/oauth/test_api_router.py
ethyca/fideslib
4e302f996707840463afbfecdc4bfcd72624ef62
[ "Apache-2.0" ]
null
null
null
tests/oauth/test_api_router.py
ethyca/fideslib
4e302f996707840463afbfecdc4bfcd72624ef62
[ "Apache-2.0" ]
1
2022-01-27T17:18:39.000Z
2022-02-15T23:26:24.000Z
tests/oauth/test_api_router.py
ethyca/fideslib
4e302f996707840463afbfecdc4bfcd72624ef62
[ "Apache-2.0" ]
null
null
null
# pylint: disable=missing-function-docstring from fastapi import FastAPI, status from fastapi.testclient import TestClient from sqlalchemy.orm import sessionmaker import fideslib.oauth.api.endpoints as endpoints from fideslib.oauth.api.router import OAuthRouter def get_dummy_db(): db = sessionmaker()() try:...
34.433333
77
0.737657
ff81c81903498f5d824369f6ec28241e4053a48d
1,076
py
Python
bibserver/config.py
jgoldfar/bibserver
ccf0e60f1983bb5db4c2594bbd8187139556be90
[ "MIT" ]
47
2015-01-07T06:53:22.000Z
2021-02-27T08:48:43.000Z
bibserver/config.py
dartar/bibserver
0640592200476bd97dfe9678173d30759bdbce30
[ "OML" ]
10
2015-02-08T12:48:27.000Z
2018-11-08T02:47:19.000Z
bibserver/config.py
dartar/bibserver
0640592200476bd97dfe9678173d30759bdbce30
[ "OML" ]
21
2015-01-16T06:31:43.000Z
2021-02-27T08:49:18.000Z
import os import json '''read the config.json file and make available as a config dict''' def load_config(path): fileobj = open(path) c = "" for line in fileobj: if line.strip().startswith("#"): continue else: c += line out = json.loads(c) # add some critic...
23.391304
74
0.642193
ff81df44fc7915212bfb536d2efdc24a292ce741
25,866
py
Python
packages/galapagos_v2/scripts/processor.py
100kimch/ros_galapagos
8f92cb93246c263b61199aef113e43cefc5f3939
[ "MIT" ]
2
2020-10-26T05:01:35.000Z
2022-02-14T10:37:17.000Z
packages/galapagos_v2/scripts/processor.py
100kimch/ros_galapagos
8f92cb93246c263b61199aef113e43cefc5f3939
[ "MIT" ]
null
null
null
packages/galapagos_v2/scripts/processor.py
100kimch/ros_galapagos
8f92cb93246c263b61199aef113e43cefc5f3939
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # NOTE: should only use "log functions" of rospy in processor.py import rospy from lib_eye import EYE from lib_frontcam import * from lib_lidar import * from scheduler import SCHEDULER from turtlebot import TURTLE import timeit import math import requests # * Variables LANE_TO = "left" STEP = ...
30.39483
112
0.537772
ff8214ce5dbcca291a9af7e13cf4f395ce25410b
6,167
py
Python
api/integrations/hg/zulip-changegroup.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2017-07-27T19:49:12.000Z
2017-07-27T19:49:12.000Z
api/integrations/hg/zulip-changegroup.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
9
2021-02-08T20:22:36.000Z
2022-03-11T23:22:45.000Z
api/integrations/hg/zulip-changegroup.py
tobby2002/zulip
66e7c455759f9368bae16b9a604cf63f8e3524cd
[ "Apache-2.0" ]
1
2021-04-09T05:50:23.000Z
2021-04-09T05:50:23.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Zulip hook for Mercurial changeset pushes. # Copyright © 2012-2014 Zulip, Inc. # # 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 res...
35.647399
87
0.660126
ff82356d020a2697d2a9a532ab7146a50843702c
5,815
py
Python
buildscripts/resmokelib/testing/fixtures/standalone.py
tychoish/mongo
0c695aa1e879af482dc3aea4768dbda223ff4592
[ "Apache-2.0" ]
null
null
null
buildscripts/resmokelib/testing/fixtures/standalone.py
tychoish/mongo
0c695aa1e879af482dc3aea4768dbda223ff4592
[ "Apache-2.0" ]
1
2015-05-29T16:12:10.000Z
2015-05-29T16:12:10.000Z
buildscripts/resmokelib/testing/fixtures/standalone.py
tychoish/mongo
0c695aa1e879af482dc3aea4768dbda223ff4592
[ "Apache-2.0" ]
1
2015-05-26T20:33:29.000Z
2015-05-26T20:33:29.000Z
""" Standalone mongod fixture for executing JSTests against. """ from __future__ import absolute_import import os import os.path import shutil import time import pymongo from . import interface from ... import config from ... import core from ... import errors from ... import utils class MongoDFixture(interface.F...
38.256579
100
0.586071
ff8243ee01e91dfe8c10e4e2b5a296b9a4e83c15
1,401
py
Python
showroomeventscheduler/google/token_manager.py
road-master/showroom-event-scheduler
5dd0bfa9ad8529855d3e196a311470fa2025fbc5
[ "MIT" ]
null
null
null
showroomeventscheduler/google/token_manager.py
road-master/showroom-event-scheduler
5dd0bfa9ad8529855d3e196a311470fa2025fbc5
[ "MIT" ]
2
2021-08-02T16:47:05.000Z
2021-08-02T16:47:22.000Z
showroomeventscheduler/google/token_manager.py
road-master/showroom-event-scheduler
5dd0bfa9ad8529855d3e196a311470fa2025fbc5
[ "MIT" ]
null
null
null
"""Token manager.""" from pathlib import Path from typing import List, Optional from google.auth.transport.requests import Request from google.oauth2.credentials import Credentials from showroomeventscheduler.google import DIRECTORY_GCP_SECRET class TokenManager: """Token manager.""" PATH_TO_TOKEN = DIRECT...
34.170732
91
0.675946
ff824c21b15b8c4fc81f6dbe95ee8758eed11b3c
138
py
Python
snmp/datadog_checks/snmp/__about__.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
1
2021-06-06T23:49:17.000Z
2021-06-06T23:49:17.000Z
snmp/datadog_checks/snmp/__about__.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
snmp/datadog_checks/snmp/__about__.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) __version__ = '5.2.0'
23
59
0.717391
ff82623bdfc88005b8e2fa25c12016cda0afea9c
2,743
py
Python
rlalgos/ppo/run_cartpole.py
Purple-PI/rlstructures
9b201b083715bbda2f3534b010c84e11dfc0a1c7
[ "MIT" ]
281
2021-01-13T14:20:23.000Z
2022-03-23T08:46:56.000Z
rlalgos/ppo/run_cartpole.py
Purple-PI/rlstructures
9b201b083715bbda2f3534b010c84e11dfc0a1c7
[ "MIT" ]
2
2021-01-22T23:28:34.000Z
2021-04-29T22:05:42.000Z
rlalgos/ppo/run_cartpole.py
Purple-PI/rlstructures
9b201b083715bbda2f3534b010c84e11dfc0a1c7
[ "MIT" ]
13
2021-01-15T14:53:32.000Z
2022-03-22T11:12:54.000Z
# # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # from rlstructures import logging from rlstructures.env_wrappers import GymEnv, GymEnvInf from rlstructures.tools import weight_init impor...
28.278351
82
0.668246
ff828fee0339a8c55551a5966bea83f72b59a756
308
py
Python
django-backend/notifications/api_urls.py
isystematics/SoarCast
6ba8d7db76e2ba1ad5fd1ab3636dd202b11450b0
[ "Apache-2.0" ]
2
2021-06-08T16:35:30.000Z
2022-03-18T16:04:48.000Z
django-backend/notifications/api_urls.py
isystematics/SoarCast
6ba8d7db76e2ba1ad5fd1ab3636dd202b11450b0
[ "Apache-2.0" ]
4
2022-02-22T18:43:07.000Z
2022-02-22T18:45:25.000Z
django-backend/notifications/api_urls.py
isystematics/SoarCast
6ba8d7db76e2ba1ad5fd1ab3636dd202b11450b0
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import ( NotificationView, UpdateNotificationReadView ) urlpatterns = [ path('list/', NotificationView.as_view(), name='api-notifications-list'), path('mark-as-read/', UpdateNotificationReadView.as_view(), name='api-notifications-mark-as-read'), ]
23.692308
103
0.727273
ff82ea744864103afdb53b555821d90656248eb7
27,311
py
Python
bmediacenter/src/MC_PictureViewer.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
bmediacenter/src/MC_PictureViewer.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
bmediacenter/src/MC_PictureViewer.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
from enigma import ePicLoad, eTimer, getDesktop, iPlayableService, eServiceReference from Screens.Screen import Screen from Screens.ServiceInfo import ServiceInfoList, ServiceInfoListEntry from Components.ActionMap import ActionMap, HelpableActionMap from Components.Pixmap import Pixmap, MovingPixmap from Components.La...
40.946027
407
0.672147
ff82feb4048f99ad21849a0dd2e828acef565ccb
326
py
Python
examples/tutorial/Geosoft modules - gxapi and gxpy/grid_dimensions_gxpy.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
25
2017-07-14T06:39:37.000Z
2022-03-09T21:39:51.000Z
examples/tutorial/Geosoft modules - gxapi and gxpy/grid_dimensions_gxpy.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
100
2016-12-13T17:30:41.000Z
2021-08-01T20:21:13.000Z
examples/tutorial/Geosoft modules - gxapi and gxpy/grid_dimensions_gxpy.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
28
2016-12-12T17:34:40.000Z
2022-03-16T15:39:39.000Z
import geosoft.gxpy as gxpy gxc = gxpy.gx.GXpy() grid = gxpy.grid.Grid.open('test.grd(GRD)') print(' dimension (nx, ny): ({}, {})'.format(grid.nx, grid.ny), '\n separation (x, y): ({}, {})'.format(grid.dx, grid.dy), '\n origin (x, y): ({}, {})'.format(grid.x0, grid.y0), '\n rotation: {}'.format(grid....
36.222222
64
0.558282
ff82ff6653625ab138ba3abe570b789678844644
4,558
py
Python
xpython/byteop/byteop39.py
rocky/xpython
ce4ed4329cee2af0aab94254276f5a5687dd25f9
[ "MIT" ]
1
2020-04-28T13:18:13.000Z
2020-04-28T13:18:13.000Z
xpython/byteop/byteop39.py
rocky/xbyterun
fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9
[ "MIT" ]
null
null
null
xpython/byteop/byteop39.py
rocky/xbyterun
fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2021 Rocky Bernstein # This program comes with ABSOLUTELY NO WARRANTY. # This is free software, and you are welcome to redistribute it # under certain conditions. # See the documentation for the full license. """Bytecode Interpreter operations for Python 3.9 """ from xpython.byt...
33.514706
82
0.618473
ff83031377ae2b4baef2672e3b01539ce948e492
2,738
py
Python
Evaluation/Reddit/CommunitySizesGenerator.py
lapidshay/GenericAnomalousCommunitiesDetection
eae7b58bb427828abb9baa64d097114089b80af5
[ "BSD-2-Clause" ]
null
null
null
Evaluation/Reddit/CommunitySizesGenerator.py
lapidshay/GenericAnomalousCommunitiesDetection
eae7b58bb427828abb9baa64d097114089b80af5
[ "BSD-2-Clause" ]
null
null
null
Evaluation/Reddit/CommunitySizesGenerator.py
lapidshay/GenericAnomalousCommunitiesDetection
eae7b58bb427828abb9baa64d097114089b80af5
[ "BSD-2-Clause" ]
null
null
null
__author__ = 'Shay Lapid' __email__ = 'lapidshay@gmail.com' ################################## # Imports ################################## import numpy as np ################################## # CommunitySizesGenerator ################################## class CommunitySizesGenerator: def __init__(self, partition...
29.12766
120
0.654858
ff832ca6640c2880c0f253833e6865afbbc4e7f1
613
py
Python
Layers/CopyCurrentLayerToOthers.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
2
2021-02-12T20:36:29.000Z
2021-11-03T08:04:01.000Z
Layers/CopyCurrentLayerToOthers.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
null
null
null
Layers/CopyCurrentLayerToOthers.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
null
null
null
# MenuTitle: Copy Current Layer to Others # -*- coding: utf-8 -*- __doc__ = """ Replaces the contents of all other layers in the selected glyphs with the contents of the currently selected layer. """ import copy Glyphs.clearLog() # Glyphs.showMacroWindow() Glyphs.font.disableUpdateInterface() for sl in Glyphs.font....
24.52
115
0.67863
ff833ba21936272613b7cf52ad0405a474ff7eaa
23,907
py
Python
source/interpreter.py
sogno-platform/proloaf
2c9350a291056e7a56c115ccbda3aaa019f12bbe
[ "Apache-2.0" ]
4
2021-06-08T20:43:08.000Z
2021-09-22T00:25:26.000Z
source/interpreter.py
sogno-platform/proloaf
2c9350a291056e7a56c115ccbda3aaa019f12bbe
[ "Apache-2.0" ]
null
null
null
source/interpreter.py
sogno-platform/proloaf
2c9350a291056e7a56c115ccbda3aaa019f12bbe
[ "Apache-2.0" ]
2
2021-07-08T17:41:54.000Z
2021-07-14T09:57:25.000Z
""" evaluates a trained Neural Network on its salient features regarding the time and feature dimension creates a saliency heatmap model should be trained beforehand """ import pandas import pandas as pd import torch import numpy as np import matplotlib.pyplot as plt from matplotlib.pyplot import step from statsmodels....
40.658163
169
0.637177
ff8351718c4677e4fdff2a23d13a943437a674ca
873
py
Python
src/flask_state/conf/config.py
XiaoyueCai/flask-state
babacbe155318c8433fa78077a972684760a7bbb
[ "BSD-3-Clause" ]
688
2020-08-25T02:27:43.000Z
2022-03-09T13:34:30.000Z
src/flask_state/conf/config.py
XiaoyueCai/flask-state
babacbe155318c8433fa78077a972684760a7bbb
[ "BSD-3-Clause" ]
33
2020-08-29T04:42:31.000Z
2021-12-15T07:52:45.000Z
src/flask_state/conf/config.py
XiaoyueCai/flask-state
babacbe155318c8433fa78077a972684760a7bbb
[ "BSD-3-Clause" ]
66
2020-09-01T08:40:37.000Z
2022-02-08T07:21:41.000Z
class Config: """ Config """ REDIS_CONNECT_TIMEOUT = 3 # Redis socket connection timeout REDIS_TIMEOUT = 5 # Redis socket timeout CPU_PERCENT_INTERVAL = ( 0 # Time interval to calculate CPU utilization using psutil ) DEFAULT_BIND_SQLITE = ( "flask_state_sqlite" # Default bin...
39.681818
72
0.699885
ff8375fcf30cb608578ca421bc3fe734dc09642a
3,754
py
Python
invenio_explicit_acls/actors/record_user.py
oarepo/invenio-acls
a649b2e71e729e3bcfa44110afeb73358aa6034a
[ "MIT" ]
null
null
null
invenio_explicit_acls/actors/record_user.py
oarepo/invenio-acls
a649b2e71e729e3bcfa44110afeb73358aa6034a
[ "MIT" ]
7
2019-05-08T08:35:01.000Z
2021-06-25T15:21:34.000Z
invenio_explicit_acls/actors/record_user.py
oarepo/invenio-explicit-acls
a649b2e71e729e3bcfa44110afeb73358aa6034a
[ "MIT" ]
2
2019-03-31T19:07:30.000Z
2019-05-06T08:11:45.000Z
# # Copyright (c) 2019 UCT Prague. # # user.py is part of Invenio Explicit ACLs # (see https://github.com/oarepo/invenio-explicit-acls). # # 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 w...
37.54
107
0.691795
ff8378ccd0c18e9d494d584df08ab042b0f39f96
3,393
py
Python
source/backend/event_completion_handler/runtime/lambda/lambda_function.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
22
2021-11-24T01:23:07.000Z
2022-03-26T23:24:46.000Z
source/backend/event_completion_handler/runtime/lambda/lambda_function.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
null
null
null
source/backend/event_completion_handler/runtime/lambda/lambda_function.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
3
2021-12-10T09:42:51.000Z
2022-02-16T02:22:50.000Z
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 ############################################################################## # # PURPOSE: # Update the status of an MRE event to Complete based on the # configured CloudWatch EventBridge triggers. Optio...
39
128
0.604775
ff83898f83ed3010771e9a4a6761bd15999ad74d
3,371
py
Python
beacon/__main__.py
CINECA-project/beacon-2.x
986214fc910491206cb3b17ad4d14f00890e888d
[ "Apache-2.0" ]
null
null
null
beacon/__main__.py
CINECA-project/beacon-2.x
986214fc910491206cb3b17ad4d14f00890e888d
[ "Apache-2.0" ]
null
null
null
beacon/__main__.py
CINECA-project/beacon-2.x
986214fc910491206cb3b17ad4d14f00890e888d
[ "Apache-2.0" ]
null
null
null
""" Beacon API Web Server. Designed with async/await programming model. """ import logging import os from pathlib import Path from time import strftime import base64 from aiohttp import web import aiohttp_jinja2 import jinja2 from jinja2_pluralize import pluralize_dj from . import conf, load_logger, endpoints from ....
30.098214
118
0.675467
ff83ad0c2e3242985c1794ab3697fec366500bd8
8,037
py
Python
doc/conf.py
jwerdec/lmfit
ebd687735e5d388f4931d7b74fe28a0964b18144
[ "MIT" ]
null
null
null
doc/conf.py
jwerdec/lmfit
ebd687735e5d388f4931d7b74fe28a0964b18144
[ "MIT" ]
null
null
null
doc/conf.py
jwerdec/lmfit
ebd687735e5d388f4931d7b74fe28a0964b18144
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # lmfit documentation build configuration file, created by # sphinx-quickstart on Fri Sep 27 20:00:56 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
32.538462
204
0.714695
ff83aeef958f9deb4ea612bfad779cbb247a0a7d
6,152
py
Python
my_model_selectors.py
randomprimate/aind-asl-recognizer
75dab85ea3380b688c0f36b290edc8a191b5ba43
[ "MIT" ]
null
null
null
my_model_selectors.py
randomprimate/aind-asl-recognizer
75dab85ea3380b688c0f36b290edc8a191b5ba43
[ "MIT" ]
null
null
null
my_model_selectors.py
randomprimate/aind-asl-recognizer
75dab85ea3380b688c0f36b290edc8a191b5ba43
[ "MIT" ]
null
null
null
import math import statistics import warnings import numpy as np from hmmlearn.hmm import GaussianHMM from sklearn.model_selection import KFold from asl_utils import combine_sequences class ModelSelector(object): ''' base class for model selection (strategy design pattern) ''' def __init__(self, all...
37.512195
108
0.619473
ff83ee5aaabbd8bbc9e6a97698f49d5b33f6b070
5,402
py
Python
happy_slot_machine.py
breard-r/happy_slot_machine
2151de36d92671c96805b1babec692de636b946f
[ "0BSD" ]
null
null
null
happy_slot_machine.py
breard-r/happy_slot_machine
2151de36d92671c96805b1babec692de636b946f
[ "0BSD" ]
null
null
null
happy_slot_machine.py
breard-r/happy_slot_machine
2151de36d92671c96805b1babec692de636b946f
[ "0BSD" ]
1
2021-06-18T15:18:09.000Z
2021-06-18T15:18:09.000Z
#!/bin/env python # # Copyright (c) 2015 Rodolphe Breard # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE ...
25.601896
76
0.642355
ff840cdb730f5ae942d21a4d306494cfc33ac406
681
py
Python
tests/grab_sigint.py
dimichxp/grab
5fedee3009c18c8a1139b0f82736ebe473021b46
[ "MIT" ]
2,266
2015-01-01T08:47:33.000Z
2022-03-21T05:02:55.000Z
tests/grab_sigint.py
dimichxp/grab
5fedee3009c18c8a1139b0f82736ebe473021b46
[ "MIT" ]
221
2015-01-13T01:55:57.000Z
2022-02-25T23:23:35.000Z
tests/grab_sigint.py
dimichxp/grab
5fedee3009c18c8a1139b0f82736ebe473021b46
[ "MIT" ]
315
2015-01-23T06:38:55.000Z
2022-03-27T08:33:33.000Z
# coding: utf-8 from tests.util import BaseGrabTestCase from tests.spider_sigint import BaseKeyboardInterruptTestCase SCRIPT_TPL = ''' import sys import logging try: from grab import Grab import os import grab #logging.error('PATH: ' + grab.__file__) #logging.error('PID: ' + str(os.getpid())) g...
23.482759
66
0.659325
ff843c5dd739a0b289c9f45832b16c720ab8487c
2,265
py
Python
25dflipper/flipper25d/exp/process/bag2mat.py
STAR-Center/flipperplanning3DTerrain
fcbe076446bbc6cb10da67b81c9a6349b4c51b66
[ "MIT" ]
null
null
null
25dflipper/flipper25d/exp/process/bag2mat.py
STAR-Center/flipperplanning3DTerrain
fcbe076446bbc6cb10da67b81c9a6349b4c51b66
[ "MIT" ]
null
null
null
25dflipper/flipper25d/exp/process/bag2mat.py
STAR-Center/flipperplanning3DTerrain
fcbe076446bbc6cb10da67b81c9a6349b4c51b66
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python2 ''' actually, when record the bag, I miss recog the node. the recorded [fl,fr,bl,br] should actually be [bl, fl, br, fr] ''' import rospy import numpy as np from message_filters import Subscriber,ApproximateTimeSynchronizer from geometry_msgs.msg import PoseStampe...
31.027397
188
0.678587
ff84430c037f2c19ee944690dc7034a1f6ac6d3c
1,419
py
Python
office365/graph/directory/directory.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
office365/graph/directory/directory.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
office365/graph/directory/directory.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
from office365.graph.directory.directoryObjectCollection import DirectoryObjectCollection from office365.graph.entity import Entity from office365.runtime.resource_path import ResourcePath class Directory(Entity): """Represents a deleted item in the directory. When an item is deleted, it is added to the deleted i...
40.542857
111
0.706131
ff845e24f86f2a62244da0dbb2f61cfcc5b78444
765
py
Python
src/data_utils/gtea_writer.py
knmac/LCDC_release
f977ca1cda972983cac7e33b324f07f2e1463a19
[ "MIT" ]
24
2019-09-18T09:22:08.000Z
2022-03-08T06:47:33.000Z
src/data_utils/gtea_writer.py
knmac/LCDC_release
f977ca1cda972983cac7e33b324f07f2e1463a19
[ "MIT" ]
6
2019-09-18T09:21:02.000Z
2022-02-09T23:31:48.000Z
src/data_utils/gtea_writer.py
knmac/LCDC_release
f977ca1cda972983cac7e33b324f07f2e1463a19
[ "MIT" ]
4
2020-08-06T02:05:36.000Z
2021-12-12T07:19:17.000Z
"""tfrecord writer for GTEA shopping dataset """ from __future__ import absolute_import from __future__ import print_function from __future__ import division import os import sys sys.path.insert( 0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'src'))) from data_utils.salads_writer i...
25.5
78
0.673203
ff847769f0be6f843b3ef4eae6f248885c43564e
828
py
Python
scripts/cat_replay_pools.py
simonr98/Reinforcement-Learning-with-Videos
e40cec6b8d817276375e940696b290fc4e1e8bc7
[ "MIT" ]
25
2020-12-02T23:13:29.000Z
2022-02-25T07:57:30.000Z
scripts/cat_replay_pools.py
simonr98/Reinforcement-Learning-with-Videos
e40cec6b8d817276375e940696b290fc4e1e8bc7
[ "MIT" ]
8
2020-12-12T14:11:58.000Z
2021-12-10T20:06:04.000Z
scripts/cat_replay_pools.py
simonr98/Reinforcement-Learning-with-Videos
e40cec6b8d817276375e940696b290fc4e1e8bc7
[ "MIT" ]
8
2020-12-25T19:43:15.000Z
2021-10-13T02:53:58.000Z
import gzip import pickle import numpy as np import argparse from os.path import join def combine_replay_pools(args): with gzip.open(args.path_1, 'rb') as f: data_1 = pickle.load(f) with gzip.open(args.path_2, 'rb') as f: data_2 = pickle.load(f) combined_data = {} for k in data_1...
25.875
74
0.661836
ff8489b56b566ab7a33c6561f539b6a64c9dd075
9,304
py
Python
neuro-cli/tests/e2e/test_e2e_images.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
11
2020-10-11T15:38:11.000Z
2021-11-09T11:29:50.000Z
neuro-cli/tests/e2e/test_e2e_images.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
611
2020-09-30T21:27:52.000Z
2022-01-10T10:44:44.000Z
neuro-cli/tests/e2e/test_e2e_images.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
1
2020-10-05T15:10:24.000Z
2020-10-05T15:10:24.000Z
import asyncio import re import subprocess import time from dataclasses import replace from pathlib import Path from typing import Any, AsyncIterator, Set from uuid import uuid4 as uuid import aiodocker import pytest from yarl import URL from neuro_sdk import CONFIG_ENV_NAME, DEFAULT_CONFIG_PATH, JobStatus from test...
32.876325
88
0.677021
ff84900e80d46a39a755b95fb841034244542f50
411
py
Python
home/migrations/0003_homepage_body.py
SyahmiAmin/belikilo
0a26dadb514683456ea0dbdcbcfcbf65e09d5dbb
[ "bzip2-1.0.6" ]
null
null
null
home/migrations/0003_homepage_body.py
SyahmiAmin/belikilo
0a26dadb514683456ea0dbdcbcfcbf65e09d5dbb
[ "bzip2-1.0.6" ]
null
null
null
home/migrations/0003_homepage_body.py
SyahmiAmin/belikilo
0a26dadb514683456ea0dbdcbcfcbf65e09d5dbb
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.2.9 on 2020-01-19 15:56 from django.db import migrations import wagtail.core.fields class Migration(migrations.Migration): dependencies = [ ('home', '0002_create_homepage'), ] operations = [ migrations.AddField( model_name='homepage', name...
20.55
64
0.613139
ff8490649306cab072b8dceb51662289e2deda8d
720
py
Python
indecisive/game/client/scenes/util/elements.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
15
2020-04-17T12:02:14.000Z
2022-03-16T03:01:34.000Z
indecisive/game/client/scenes/util/elements.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
9
2020-04-25T01:57:16.000Z
2020-04-29T11:42:34.000Z
indecisive/game/client/scenes/util/elements.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
55
2020-04-17T12:01:11.000Z
2021-12-28T10:14:02.000Z
import arcade class SimpleButton(arcade.TextButton): def __init__(self, action, text="", x=0, y=0, width=100, height=40, font_size=18, font="Arial", font_color=(255, 255, 255), face_color=(50, 50, 50), highlight_color=(75, 75, 75), shadow_color=(150, 150, 150), t...
30
101
0.552778
ff84ae09b4241f35014fc9f4c06090681d6c81f2
55,705
py
Python
nova/tests/api/openstack/compute/test_server_actions.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/compute/test_server_actions.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/compute/test_server_actions.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 OpenStack Foundation # 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 requ...
38.311554
79
0.575801
ff85277fa20e627690fe5ef099dbca1086ecaade
1,196
py
Python
app/modules/logs/model.py
DsCodeStudio98m0f/DTia-Nugrahab
218ef140727849206fe76f42f43a5a231cfda9d9
[ "Apache-2.0" ]
16
2020-03-26T13:21:15.000Z
2021-07-25T18:49:05.000Z
app/modules/logs/model.py
DsCodeStudio98m0f/DTia-Nugrahab
218ef140727849206fe76f42f43a5a231cfda9d9
[ "Apache-2.0" ]
13
2020-03-24T18:19:48.000Z
2022-03-12T00:18:59.000Z
app/modules/logs/model.py
DsCodeStudio98m0f/DTia-Nugrahab
218ef140727849206fe76f42f43a5a231cfda9d9
[ "Apache-2.0" ]
14
2020-03-31T01:02:38.000Z
2021-09-17T01:10:36.000Z
"""model Database Table Model PROJECT: BaoAI Backend AUTHOR: henry <703264459@qq.com> WEBSITE: http://www.baoai.co COPYRIGHT: Copyright © 2016-2020 广州源宝网络有限公司 Guangzhou Yuanbao Network Co., Ltd. ( http://www.ybao.org ) LICENSE: Apache-2.0 """ from app import db from app.common.mixin import * class Logs(TableMixin,...
24.916667
103
0.614548
ff858f456610f129a85bf9f01ca80dc7ff5c392b
75,601
py
Python
active_projects/eola2/cramer.py
dezren39/manim
80d7742446c588dc296bd3afb3465a63b63383db
[ "MIT" ]
1
2020-07-05T12:56:31.000Z
2020-07-05T12:56:31.000Z
active_projects/eola2/cramer.py
smithea3/manim
1d23a01a3ab8a5aab14163ec5c38e7b30e536e54
[ "MIT" ]
3
2021-09-08T02:19:38.000Z
2022-03-12T00:41:00.000Z
active_projects/eola2/cramer.py
dezren39/manim
80d7742446c588dc296bd3afb3465a63b63383db
[ "MIT" ]
1
2020-07-05T12:56:33.000Z
2020-07-05T12:56:33.000Z
from big_ol_pile_of_manim_imports import * X_COLOR = GREEN Y_COLOR = RED Z_COLOR = BLUE OUTPUT_COLOR = YELLOW INPUT_COLOR = MAROON_B def get_cramer_matrix(matrix, output_vect, index=0): """ The inputs matrix and output_vect should be Matrix mobjects """ new_matrix = np.array(matrix.mob_matrix) ne...
34.984267
98
0.594701
ff85970d223687aadf8a33f335dc11e7f414cddc
3,421
py
Python
models/mnist_lenet5.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
9
2021-03-30T20:43:26.000Z
2021-12-28T06:25:17.000Z
models/mnist_lenet5.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
null
null
null
models/mnist_lenet5.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
2
2021-03-31T01:19:48.000Z
2021-08-02T13:41:32.000Z
# 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 torch.nn as nn import torch.nn.functional as F from foundations import hparams from lottery.desc import LotteryDesc from models import ...
30.81982
97
0.62321
ff85ce76bd7a8910286eed0c821dfcb43d9220ab
3,041
py
Python
tme2/Weighter.py
raoufkeskes/SearchEngine_FromScratch
3e8d760efa3673b279b7f5cf61957c71a766cdd8
[ "MIT" ]
1
2021-03-27T14:14:33.000Z
2021-03-27T14:14:33.000Z
tme2/Weighter.py
raoufkeskes/SearchEngine_FromScratch
3e8d760efa3673b279b7f5cf61957c71a766cdd8
[ "MIT" ]
null
null
null
tme2/Weighter.py
raoufkeskes/SearchEngine_FromScratch
3e8d760efa3673b279b7f5cf61957c71a766cdd8
[ "MIT" ]
1
2021-05-14T20:30:05.000Z
2021-05-14T20:30:05.000Z
import numpy as np from tme1.TextRepresenter import PorterStemmer from collections import Counter class Weighter(object): def __init__( self , indexer ): ''' Constructor ''' self.indexer = indexer # abstract method def getWeightsForDoc ( self , idDoc ) : ...
33.788889
98
0.595528
ff85e03b464564b4fe88a044472ff3b9e7276b63
3,371
py
Python
arc/ts/run_autotst.py
amarkpayne/ARC
fcc3bc0050f50a81c02192f72aaa31ea47d29818
[ "MIT" ]
null
null
null
arc/ts/run_autotst.py
amarkpayne/ARC
fcc3bc0050f50a81c02192f72aaa31ea47d29818
[ "MIT" ]
null
null
null
arc/ts/run_autotst.py
amarkpayne/ARC
fcc3bc0050f50a81c02192f72aaa31ea47d29818
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # encoding: utf-8 """ AutoTST could not be run directly from ARC since it cases a `Segmentation Fault (core dump)` error The error was traced to be related to a compiled C file of RDKit: in autotst.reaction.py L 356: bm = rdkit.Chem.rdDistGeom.GetMoleculeBoundsMatrix(combined) This is likel...
37.455556
115
0.705725
ff85fb670775c6af05bf2c69c749b747e59d9b0e
6,793
py
Python
tests/test_model_mode.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
750
2020-06-23T08:36:34.000Z
2022-03-30T22:53:18.000Z
tests/test_model_mode.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
691
2020-06-22T11:56:28.000Z
2022-03-31T16:07:32.000Z
tests/test_model_mode.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
122
2020-06-26T14:37:56.000Z
2022-03-23T08:25:22.000Z
# -*- coding: utf-8 -*- """Test that models are set in the right mode when they're training.""" import unittest from dataclasses import dataclass import torch from torch import nn from pykeen.datasets import Nations from pykeen.models import EntityRelationEmbeddingModel, Model, TransE from pykeen.nn.emb import Embe...
35.015464
104
0.620786
ff8602c0a642594219bb83ee679283d491c8266e
7,267
py
Python
pulumi/infra/network.py
grapl-security/grapl
24caa7fb4424645495d99fb338e2231fc4f66712
[ "Apache-2.0" ]
291
2020-04-24T03:40:06.000Z
2022-03-29T02:47:16.000Z
pulumi/infra/network.py
silocityit/grapl
3ec918cc4c0ce18fafff0a2917c726fa0fd0f1d0
[ "Apache-2.0" ]
848
2020-04-26T19:23:37.000Z
2022-03-31T16:57:39.000Z
pulumi/infra/network.py
silocityit/grapl
3ec918cc4c0ce18fafff0a2917c726fa0fd0f1d0
[ "Apache-2.0" ]
43
2020-04-27T20:59:18.000Z
2022-03-29T21:56:09.000Z
import ipaddress import math from typing import Optional import pulumi_aws as aws from infra.config import DEPLOYMENT_NAME import pulumi # TODO: Add policy requiring that each networking-related # infrastructure component have a "Name" (note capitalization) tag, # since this is how these objects get their names. Oth...
37.266667
114
0.564057
ff8610fdbdf8128107ce1cf24f4e14c67238ebd6
6,947
py
Python
src/kmol/data/streamers.py
elix-tech/kmol
f7fb610d0cbe958891ed15032bb301fb664e4e25
[ "MIT" ]
27
2021-11-18T12:12:38.000Z
2022-03-15T06:34:55.000Z
src/kmol/data/streamers.py
elix-tech/kmol
f7fb610d0cbe958891ed15032bb301fb664e4e25
[ "MIT" ]
3
2022-01-25T05:19:54.000Z
2022-02-03T01:30:29.000Z
src/kmol/data/streamers.py
elix-tech/kmol
f7fb610d0cbe958891ed15032bb301fb664e4e25
[ "MIT" ]
3
2022-02-08T16:12:14.000Z
2022-03-31T05:47:57.000Z
import logging import operator import os from abc import ABCMeta, abstractmethod from copy import copy from enum import Enum from functools import reduce from joblib import Parallel, delayed from typing import List, Dict, Union from torch.utils.data import DataLoader, Subset from tqdm import tqdm from .featurizers im...
33.080952
86
0.626457
ff861940d4de8c19ac0bbf0d8d0abe53a264fba8
139
py
Python
py/cidoc_crm_types/properties/p191i_was_duration_of.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p191i_was_duration_of.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p191i_was_duration_of.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass @dataclass class P191iWasDurationOf: URI = "http://erlangen-crm.org/current/P191i_was_duration_of"
19.857143
65
0.798561
ff8625aede60ef3bba778a100675d0b5ce8f847e
1,656
py
Python
webservices/spec.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
null
null
null
webservices/spec.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
null
null
null
webservices/spec.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
1
2020-03-04T00:21:16.000Z
2020-03-04T00:21:16.000Z
from apispec import APISpec from webservices import docs from webservices import __API_VERSION__ spec = APISpec( title='OpenFEC', version=__API_VERSION__, info={'description': docs.API_DESCRIPTION}, basePath='/v1', produces=['application/json'], plugins=['apispec.ext.marshmallow'], securi...
24
50
0.469203
ff864fb58acde420fb4f47854d059ce30d325d4f
5,078
py
Python
api/base/urls.py
sergiy-neurohub/osf.io
bd12fdd4efc2eb58c0a3c805c33aaeb8672f0293
[ "Apache-2.0" ]
null
null
null
api/base/urls.py
sergiy-neurohub/osf.io
bd12fdd4efc2eb58c0a3c805c33aaeb8672f0293
[ "Apache-2.0" ]
null
null
null
api/base/urls.py
sergiy-neurohub/osf.io
bd12fdd4efc2eb58c0a3c805c33aaeb8672f0293
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import include, url from django.views.generic.base import RedirectView from api.base import views from api.base import settings from api.base import versioning default_version = versioning.decimal_version_to_url_path(settings.REST_FRAMEWORK['DEFAULT_VERSION']) # Please keep URLs alphabetized f...
55.195652
140
0.590981
ff86603fbcc252d42ee7cd17c8bc02d522bd001b
868
py
Python
data/transcoder_evaluation_gfg/python/COUNT_WAYS_DIVIDE_CIRCLE_USING_N_NON_INTERSECTING_CHORDS.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/COUNT_WAYS_DIVIDE_CIRCLE_USING_N_NON_INTERSECTING_CHORDS.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/COUNT_WAYS_DIVIDE_CIRCLE_USING_N_NON_INTERSECTING_CHORDS.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( A ) : n = 2 * A dpArray = [ 0 ] * ( n + 1 ) dpArray [ 0 ] = 1 dpArray [ 2 ] = 1 for i in range ...
23.459459
70
0.501152
ff867914187065b5f5f4e2a5c885ec07728d40cc
16,935
py
Python
twilio/rest/taskrouter/v1/workspace/event.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
1
2021-02-24T04:59:03.000Z
2021-02-24T04:59:03.000Z
twilio/rest/taskrouter/v1/workspace/event.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
twilio/rest/taskrouter/v1/workspace/event.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
1
2018-12-09T00:53:21.000Z
2018-12-09T00:53:21.000Z
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import serialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import ...
32.073864
92
0.60313
ff86b3c7567b8c4a3bb84e03baa2d0a57423cf0e
9,686
py
Python
pontoon/lib/Manager.py
duggan/pontoon
209d72efe28997ea08b16bd3896e49d8600fecc8
[ "MIT" ]
24
2015-01-02T23:55:09.000Z
2020-04-06T12:25:37.000Z
pontoon/lib/Manager.py
duggan/pontoon
209d72efe28997ea08b16bd3896e49d8600fecc8
[ "MIT" ]
35
2015-09-30T19:44:34.000Z
2018-12-12T16:08:56.000Z
pontoon/lib/Manager.py
duggan/pontoon
209d72efe28997ea08b16bd3896e49d8600fecc8
[ "MIT" ]
10
2015-09-30T15:55:01.000Z
2020-11-04T05:15:18.000Z
# -*- coding: utf-8 -*- try: from urlparse import urlparse, parse_qs except: from urllib.parse import urlparse, parse_qs from .baseapi import BaseAPI from .Droplet import Droplet from .Region import Region from .Size import Size from .Image import Image from .Domain import Domain from .SSHKey import SSHKey fro...
32.612795
79
0.559571
ff86bb745e4feb95fc972ca62c13c73644440f59
140,603
py
Python
fugue_sql/_antlr/fugue_sqlLexer.py
LaurentErreca/fugue
73d551b4d25b50b3d9051dd765e6111db2e3fc76
[ "Apache-2.0" ]
null
null
null
fugue_sql/_antlr/fugue_sqlLexer.py
LaurentErreca/fugue
73d551b4d25b50b3d9051dd765e6111db2e3fc76
[ "Apache-2.0" ]
null
null
null
fugue_sql/_antlr/fugue_sqlLexer.py
LaurentErreca/fugue
73d551b4d25b50b3d9051dd765e6111db2e3fc76
[ "Apache-2.0" ]
null
null
null
# Generated from fugue_sql/_antlr/fugue_sql.g4 by ANTLR 4.9 from antlr4 import * from io import StringIO from typing.io import TextIO import sys def serializedATN(): with StringIO() as buf: buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\u0156") buf.write("\u0c3c\b\1\4\2\t\2\4\3\t...
65.335967
109
0.599852
ff86bf26aeefe6033d61e9fe318118ae95c482f4
887
py
Python
models/clone_model.py
Tabrizian/learning-to-quantize
545ef7075ff01cbb218600878943554954cef53f
[ "Apache-2.0" ]
16
2020-10-16T16:21:50.000Z
2021-12-15T06:45:12.000Z
models/clone_model.py
Tabrizian/learning-to-quantize
545ef7075ff01cbb218600878943554954cef53f
[ "Apache-2.0" ]
null
null
null
models/clone_model.py
Tabrizian/learning-to-quantize
545ef7075ff01cbb218600878943554954cef53f
[ "Apache-2.0" ]
4
2020-10-27T12:32:28.000Z
2021-04-25T04:43:45.000Z
import torch import torch.nn as nn import copy from torch.nn.parallel.parallel_apply import parallel_apply class CloneModel(nn.Module): def __init__(self, module, batch_size): super(CloneModel, self).__init__() self.replicas = [module] self.batch_size = batch_size for i in range(ba...
29.566667
75
0.639233
ff86c26fd9ac97dedee2a26695b73fb878afc180
1,012
py
Python
supriya/ugens/DetectSilence.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/DetectSilence.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/DetectSilence.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya import CalculationRate from supriya.ugens.Filter import Filter class DetectSilence(Filter): """ Evaluates `done_action` when input falls below `threshold`. :: >>> source = supriya.ugens.WhiteNoise.ar() >>> source *= supriya.ugens.Line.kr(start=1, stop=0) ...
25.3
84
0.613636
ff86c660f3b4b6ee88020349396611e9d80a7a5c
5,482
py
Python
ryu/flags.py
zspcchinu/-Optimal-routing-using-RL-with-SDN
b7993c7f328ab6bafdcb6dab56f4ecd83ef0fe14
[ "Apache-2.0" ]
8
2020-09-08T01:34:38.000Z
2022-02-19T07:46:06.000Z
ryu/flags.py
zspcchinu/-Optimal-routing-using-RL-with-SDN
b7993c7f328ab6bafdcb6dab56f4ecd83ef0fe14
[ "Apache-2.0" ]
null
null
null
ryu/flags.py
zspcchinu/-Optimal-routing-using-RL-with-SDN
b7993c7f328ab6bafdcb6dab56f4ecd83ef0fe14
[ "Apache-2.0" ]
3
2020-12-02T18:30:54.000Z
2022-03-21T08:02:50.000Z
# Copyright (C) 2011 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2011 Isaku Yamahata <yamahata at valinux co jp> # # 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://...
40.014599
77
0.655783
ff86d71d2042145f2e89b69b2fa15f0410898d24
9,584
py
Python
examples/utils.py
JiazhengChai/synergy_DRL
c08e78e5fe39d9d46213e1bf07b8dafc2195b05a
[ "MIT" ]
2
2020-01-07T04:12:42.000Z
2021-12-21T22:25:31.000Z
examples/utils.py
JiazhengChai/synergy_DRL
c08e78e5fe39d9d46213e1bf07b8dafc2195b05a
[ "MIT" ]
11
2019-11-29T02:59:34.000Z
2022-03-12T00:07:28.000Z
examples/utils.py
JiazhengChai/synergy_DRL
c08e78e5fe39d9d46213e1bf07b8dafc2195b05a
[ "MIT" ]
1
2020-04-28T12:06:40.000Z
2020-04-28T12:06:40.000Z
import multiprocessing import argparse from distutils.util import strtobool import json from ray.tune import sample_from import softlearning.algorithms.utils as alg_utils import softlearning.environments.utils as env_utils from softlearning.misc.utils import datetimestamp DEFAULT_UNIVERSE = 'gym' DEFAULT_DOMAIN = '...
30.329114
80
0.608827
ff87154afeb116a7682b854d0740b7b6979a1dce
89
py
Python
app/auth/__init__.py
Monroe100/personalblog
d4fc0cee23adc8927814077f734413efb8dad21d
[ "MIT" ]
null
null
null
app/auth/__init__.py
Monroe100/personalblog
d4fc0cee23adc8927814077f734413efb8dad21d
[ "MIT" ]
null
null
null
app/auth/__init__.py
Monroe100/personalblog
d4fc0cee23adc8927814077f734413efb8dad21d
[ "MIT" ]
null
null
null
from flask import Blueprint auth = Blueprint('auth',__name__) from . import views, forms
22.25
33
0.775281
ff87237b7908e26f63361b74cea41042642e20b0
7,610
py
Python
apps/blog/migrations/0001_initial.py
Profeel/django_blog
6c86c0e4c3b3b122317bbb24a43ded4cb32724d9
[ "Apache-2.0" ]
1
2016-03-07T00:38:52.000Z
2016-03-07T00:38:52.000Z
apps/blog/migrations/0001_initial.py
Profeel/django_blog
6c86c0e4c3b3b122317bbb24a43ded4cb32724d9
[ "Apache-2.0" ]
null
null
null
apps/blog/migrations/0001_initial.py
Profeel/django_blog
6c86c0e4c3b3b122317bbb24a43ded4cb32724d9
[ "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 'Blog' db.create_table(u'blog_blog', ( ...
61.869919
196
0.568988
ff875bf2d17a528fe3eaa60727787664d0bf4060
2,099
py
Python
netbox/settings/development.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
2
2016-09-02T12:45:31.000Z
2018-02-10T10:18:11.000Z
netbox/settings/development.py
Socialsquare/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
17
2020-03-24T15:58:05.000Z
2022-02-10T08:08:57.000Z
netbox/settings/development.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
1
2018-01-05T08:02:18.000Z
2018-01-05T08:02:18.000Z
import os import sys from .base import * SECRET_KEY = 'secret key' EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' INSTALLED_APPS += ('django_nose',) TEST_RUNNER = 'django_nose.NoseTestSuiteRunner' NOSE_ARGS = [ '--verbosity=2', '--with-yanc', '--cover-branches', '--with-cove...
20.182692
64
0.450214