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
4a0424359ee56e9ca81be3c2d281dace766fe63d
734
py
Python
LC/165.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/165.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/165.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def compareVersion(self, version1, version2): """ :type version1: str :type version2: str :rtype: int """ l1=version1.split('.') l2=version2.split('.') l=min(len(l1),len(l2)) for x in range(l): if in...
26.214286
49
0.385559
4a042488cd7111975885ea70983ebfa68b2b01b9
2,182
py
Python
share/qt/extract_strings_qt.py
bitcoininvestproject/BitcoinInvestCore
ec42975bcd981d73e2f17983159fa39ff7660622
[ "MIT" ]
null
null
null
share/qt/extract_strings_qt.py
bitcoininvestproject/BitcoinInvestCore
ec42975bcd981d73e2f17983159fa39ff7660622
[ "MIT" ]
null
null
null
share/qt/extract_strings_qt.py
bitcoininvestproject/BitcoinInvestCore
ec42975bcd981d73e2f17983159fa39ff7660622
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' Extract _("...") strings for translation and convert to Qt stringdefs so that they can be picked up by Qt linguist. ''' from __future__ import division,print_function,unicode_literals from subprocess import Popen, PIPE import glob import operator import os import sys OUT_CPP="qt/bitcoininveststri...
25.97619
105
0.622823
4a042499047c85646dda8324a18089a119d04d67
12,482
py
Python
enstop/distributed_plsa.py
TIMC-Workshops/enstop
708825a42be2aa5278382cd623e3ea468148fad9
[ "BSD-2-Clause" ]
null
null
null
enstop/distributed_plsa.py
TIMC-Workshops/enstop
708825a42be2aa5278382cd623e3ea468148fad9
[ "BSD-2-Clause" ]
null
null
null
enstop/distributed_plsa.py
TIMC-Workshops/enstop
708825a42be2aa5278382cd623e3ea468148fad9
[ "BSD-2-Clause" ]
null
null
null
import numpy as np import numba from sklearn.base import BaseEstimator, TransformerMixin from sklearn.utils import check_array, check_random_state from scipy.sparse import issparse, csr_matrix, coo_matrix from enstop.utils import normalize, coherence, mean_coherence, log_lift, mean_log_lift from enstop.plsa import pl...
29.508274
87
0.613283
4a0424a4b7359d76c35213412dcc12863bcf7e94
905
py
Python
qiskit/quantum_info/operators/channel/__init__.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
1,599
2018-07-10T10:59:12.000Z
2022-03-31T23:56:25.000Z
qiskit/quantum_info/operators/channel/__init__.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
5,244
2018-07-10T06:20:13.000Z
2022-03-31T22:18:48.000Z
qiskit/quantum_info/operators/channel/__init__.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
1,409
2018-07-10T02:16:12.000Z
2022-03-31T09:01:32.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
31.206897
83
0.743646
4a04259a2fcb4692c4e07bd4dd516f4848ba597f
24,619
py
Python
tools/harness-thci/OpenThread_BR.py
marius-preda/openthread
442b7e82f67617cf754ed905d8e1dec9e1f9de80
[ "BSD-3-Clause" ]
8
2021-03-20T02:39:22.000Z
2022-03-18T23:07:44.000Z
tools/harness-thci/OpenThread_BR.py
marius-preda/openthread
442b7e82f67617cf754ed905d8e1dec9e1f9de80
[ "BSD-3-Clause" ]
null
null
null
tools/harness-thci/OpenThread_BR.py
marius-preda/openthread
442b7e82f67617cf754ed905d8e1dec9e1f9de80
[ "BSD-3-Clause" ]
5
2021-06-18T03:29:42.000Z
2022-03-31T10:40:00.000Z
#!/usr/bin/env python # # Copyright (c) 2020, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # notic...
32.564815
124
0.586986
4a04267160a84ec20a926e71ad66700c3ab47b4f
4,345
py
Python
controlm_py/models/monitoring_privilege_category.py
dcompane/controlm_py
c521208be2f00303383bb32ca5eb2b7ff91999d3
[ "MIT" ]
2
2020-03-20T18:24:23.000Z
2021-03-05T22:05:04.000Z
controlm_py/models/monitoring_privilege_category.py
dcompane/controlm_py
c521208be2f00303383bb32ca5eb2b7ff91999d3
[ "MIT" ]
null
null
null
controlm_py/models/monitoring_privilege_category.py
dcompane/controlm_py
c521208be2f00303383bb32ca5eb2b7ff91999d3
[ "MIT" ]
1
2021-05-27T15:54:37.000Z
2021-05-27T15:54:37.000Z
# coding: utf-8 """ Control-M Services Provides access to BMC Control-M Services # noqa: E501 OpenAPI spec version: 9.20.220 Contact: customer_support@bmc.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class Monitoring...
30.815603
106
0.597238
4a04275a12d37dfa44bc43d7801f5844a8e11dba
989
py
Python
aries_cloudcontroller/model/publish_revocations.py
didx-xyz/aries-cloudcontroller-pyton
88faf35052820e28606f1a2231fc756c5c7ea268
[ "Apache-2.0" ]
5
2021-04-07T17:48:41.000Z
2022-03-27T17:53:48.000Z
aries_cloudcontroller/model/publish_revocations.py
didx-xyz/aries-cloudcontroller-pyton
88faf35052820e28606f1a2231fc756c5c7ea268
[ "Apache-2.0" ]
66
2021-04-12T13:45:05.000Z
2022-03-30T21:09:25.000Z
aries_cloudcontroller/model/publish_revocations.py
didx-xyz/aries-cloudcontroller-pyton
88faf35052820e28606f1a2231fc756c5c7ea268
[ "Apache-2.0" ]
1
2021-06-02T06:58:06.000Z
2021-06-02T06:58:06.000Z
# coding: utf-8 from __future__ import annotations from datetime import date, datetime # noqa: F401 import re # noqa: F401 from typing import Any, Dict, List, Optional, Union, Literal # noqa: F401 from pydantic import AnyUrl, BaseModel, EmailStr, validator, Field, Extra # noqa: F401 class PublishRevocations(B...
24.725
96
0.665319
4a042876bfb516c170b9e3fc17a008bfa872c37f
2,079
py
Python
elasticapm/instrumentation/packages/zlib.py
trancee/apm-agent-python
04f014661f18b871b8b1970978b639b92f627e5f
[ "BSD-3-Clause" ]
1
2019-04-01T10:23:45.000Z
2019-04-01T10:23:45.000Z
elasticapm/instrumentation/packages/zlib.py
alirezarezvani/apm-agent-python
5a287a4968dcaf1d5ea84f15f9793df24cf39a3d
[ "BSD-3-Clause" ]
null
null
null
elasticapm/instrumentation/packages/zlib.py
alirezarezvani/apm-agent-python
5a287a4968dcaf1d5ea84f15f9793df24cf39a3d
[ "BSD-3-Clause" ]
2
2020-02-04T22:03:00.000Z
2021-03-23T13:17:14.000Z
# BSD 3-Clause License # # Copyright (c) 2019, Elasticsearch BV # 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, t...
48.348837
81
0.759019
4a0429bbff48c89628ccdbb6f74b5a63736e69f5
259
py
Python
62. Unique Paths.py
viewv/leetcode
b31e643846bb38978746342e3e3a94991178565a
[ "MIT" ]
2
2018-02-26T09:12:19.000Z
2019-06-07T13:38:10.000Z
62. Unique Paths.py
viewv/leetcode
b31e643846bb38978746342e3e3a94991178565a
[ "MIT" ]
1
2018-12-24T07:03:34.000Z
2018-12-24T07:03:34.000Z
62. Unique Paths.py
viewv/leetcode
b31e643846bb38978746342e3e3a94991178565a
[ "MIT" ]
2
2018-12-24T07:01:03.000Z
2019-06-07T13:38:07.000Z
class Solution(object): def uniquePaths(self, m, n): dp = [[1 for x in range(m)] for y in range(n)] for x in range(1, n): for y in range(1, m): dp[x][y] = dp[x - 1][y] + dp[x][y - 1] return dp[n-1][m-1]
32.375
54
0.455598
4a042aaaafcbe3e1cd7b10bfa79745f3444fbc86
3,494
py
Python
test/test_config.py
by46/simplekit
33f3ce6de33accc185e1057f096af41859db5976
[ "MIT" ]
null
null
null
test/test_config.py
by46/simplekit
33f3ce6de33accc185e1057f096af41859db5976
[ "MIT" ]
null
null
null
test/test_config.py
by46/simplekit
33f3ce6de33accc185e1057f096af41859db5976
[ "MIT" ]
null
null
null
import os import os.path import tempfile import unittest from simplekit.config import SQLiteConfig, Config class SQLiteConfigTestCase(unittest.TestCase): filename = 'config.db' def test_config_normal(self): tmp = tempfile.mktemp(prefix='cabinet', suffix='testing') os.makedirs(tm...
32.351852
116
0.61763
4a042b4c41f61cf7d79799b3093f53c77f421a15
4,551
py
Python
reward_test.py
zachary2wave/UAV
df9f46a54b842504f13a4bb257f249b094addc0b
[ "MIT" ]
null
null
null
reward_test.py
zachary2wave/UAV
df9f46a54b842504f13a4bb257f249b094addc0b
[ "MIT" ]
null
null
null
reward_test.py
zachary2wave/UAV
df9f46a54b842504f13a4bb257f249b094addc0b
[ "MIT" ]
null
null
null
import numpy as np import gym import matplotlib.pyplot as plt import scipy.io as sio from mpl_toolkits.mplot3d.axes3d import Axes3D import sys import csv ENV_NAME = 'uav-downlink-2d-v3' # Get the environment and extract the number of actions. env = gym.make(ENV_NAME) ###########################3 def policy(env, pol...
37.303279
115
0.488464
4a042b5b47bf250a39c7c9176ee25af5cbfed53b
14,080
py
Python
code/alex/OTHER/charel_ca_VFri.py
charelF/ComplexSystems
3efc9b577ec777fcecbd5248bbbaf77b7d90fc65
[ "MIT" ]
null
null
null
code/alex/OTHER/charel_ca_VFri.py
charelF/ComplexSystems
3efc9b577ec777fcecbd5248bbbaf77b7d90fc65
[ "MIT" ]
null
null
null
code/alex/OTHER/charel_ca_VFri.py
charelF/ComplexSystems
3efc9b577ec777fcecbd5248bbbaf77b7d90fc65
[ "MIT" ]
null
null
null
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% import numpy as np import matplotlib.pyplot as plt import pandas as pd import math import random from mpl_toolkits.axes_grid1 import make_axes_locatable import warnings warnings.simplefilter("ignore") np.random.seed(1) random.seed(1) #%%%%%%%%%%%%%%%%%%%%%%...
33.444181
125
0.530469
4a042b764b9010500cbaf643b23ce89e4b726a1c
21,644
py
Python
ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_fastl4_tcp.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2019-04-16T21:23:15.000Z
2019-04-16T21:23:15.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_fastl4_tcp.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
5
2020-02-26T20:10:50.000Z
2021-09-23T23:23:18.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_fastl4_tcp.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2018, F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
31.505095
146
0.593975
4a042c2ca047f0969990d728e6be0094445b4950
293
py
Python
test/fasta/file.py
rroutsong/rosalind
e1bd2765261afeab0fd7c71808ebd71bf43f24b8
[ "Unlicense" ]
null
null
null
test/fasta/file.py
rroutsong/rosalind
e1bd2765261afeab0fd7c71808ebd71bf43f24b8
[ "Unlicense" ]
null
null
null
test/fasta/file.py
rroutsong/rosalind
e1bd2765261afeab0fd7c71808ebd71bf43f24b8
[ "Unlicense" ]
null
null
null
# parse fasta, determine highest gc_content and return results import dna fidna = dna.fasta_parse('FASTA.fas') gc_highest = ['', 0] for i in fidna: if(dna.gc_content(i[1])>gc_highest[1]): gc_highest = [i[0], dna.gc_content(i[1])] print gc_highest[0] + '\n' + str(gc_highest[1])
24.416667
62
0.668942
4a042c48bb1f8c524cc6538913de33ac47dc1f51
17,035
py
Python
src/nanoemoji/color_glyph.py
rsheeter/nanoemoji
d65a6271541304db60e65accd6e81f7f5a20a381
[ "Apache-2.0" ]
3
2020-04-05T08:39:30.000Z
2020-04-05T12:51:18.000Z
src/nanoemoji/color_glyph.py
rsheeter/nanoemoji
d65a6271541304db60e65accd6e81f7f5a20a381
[ "Apache-2.0" ]
2
2020-04-16T18:50:33.000Z
2020-04-17T18:19:37.000Z
src/nanoemoji/color_glyph.py
rsheeter/nanoemoji
d65a6271541304db60e65accd6e81f7f5a20a381
[ "Apache-2.0" ]
1
2020-04-16T18:46:50.000Z
2020-04-16T18:46:50.000Z
# 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.013566
117
0.629704
4a042cb927b64ffa3f9ae39d7363f371014e42dc
153
py
Python
stock_links/apps.py
ericpesto/Archeon-Django-REST-API
e02b871b95c5247d83580acfe25f6ec299fdb9b1
[ "MIT" ]
1
2021-06-07T17:31:23.000Z
2021-06-07T17:31:23.000Z
stock_links/apps.py
ericpesto/Archeon-Django-REST-API
e02b871b95c5247d83580acfe25f6ec299fdb9b1
[ "MIT" ]
null
null
null
stock_links/apps.py
ericpesto/Archeon-Django-REST-API
e02b871b95c5247d83580acfe25f6ec299fdb9b1
[ "MIT" ]
null
null
null
from django.apps import AppConfig class StockLinksConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'stock_links'
21.857143
56
0.771242
4a042cd9643e45820524476a7a86a40dc229857a
727
py
Python
backend/server/migrations/0001_initial.py
yacf/yacf
805bd0e077f39e4351d497c7cc2c7937b7def43f
[ "MIT" ]
null
null
null
backend/server/migrations/0001_initial.py
yacf/yacf
805bd0e077f39e4351d497c7cc2c7937b7def43f
[ "MIT" ]
22
2019-12-09T20:24:23.000Z
2022-02-26T18:43:46.000Z
backend/server/migrations/0001_initial.py
yacf/yacf
805bd0e077f39e4351d497c7cc2c7937b7def43f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.9 on 2021-01-02 20:34 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Theme', fields=[ ('id', models.AutoField(au...
27.961538
114
0.56121
4a042d9959a120b1ea284c7ee1ec4fb58f2ad932
11,754
py
Python
utils/data_builder.py
Devwalkar/BOC-KD
a19bab41ec450a8d933371501ff1f1db934be5f3
[ "MIT" ]
2
2020-09-15T11:46:21.000Z
2020-09-25T13:35:22.000Z
utils/data_builder.py
Devwalkar/BOC-KD
a19bab41ec450a8d933371501ff1f1db934be5f3
[ "MIT" ]
null
null
null
utils/data_builder.py
Devwalkar/BOC-KD
a19bab41ec450a8d933371501ff1f1db934be5f3
[ "MIT" ]
2
2020-11-09T13:40:45.000Z
2020-11-27T02:17:27.000Z
import torchvision.datasets as Data import torchvision.transforms as transforms import torch.utils.data as TD import torch import os from .Caltech_loader import Caltech256 from .ImageNet_loader import ImageNetDataset from .CUB2011_loader import Cub2011 device = 'cuda' if torch.cuda.is_available() else 'cp...
49.805085
139
0.536498
4a0430582bed0ae9b0e498430d1391c8f171889f
411
py
Python
congress/migrations/0010_alter_summarystat_timeframe.py
InsiderUnlocked/Backend
efd71d3eb874b9bfdbca89d0aa9e610338f9fa52
[ "blessing" ]
3
2022-01-22T06:53:52.000Z
2022-02-13T10:16:29.000Z
congress/migrations/0010_alter_summarystat_timeframe.py
InsiderUnlocked/Backend
efd71d3eb874b9bfdbca89d0aa9e610338f9fa52
[ "blessing" ]
null
null
null
congress/migrations/0010_alter_summarystat_timeframe.py
InsiderUnlocked/Backend
efd71d3eb874b9bfdbca89d0aa9e610338f9fa52
[ "blessing" ]
null
null
null
# Generated by Django 3.2.6 on 2022-01-19 03:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('congress', '0009_alter_summarystat_unique_together'), ] operations = [ migrations.AlterField( model_name='summarystat', ...
21.631579
63
0.622871
4a0431558737604a3f07a97907ac9cbe60ced0b0
19,225
py
Python
tests/store/tracking/test_rest_store.py
ericgosno91/mlflow
8d1a9e354b22919423e5295afd650e39191f701a
[ "Apache-2.0" ]
1
2021-09-02T01:46:17.000Z
2021-09-02T01:46:17.000Z
tests/store/tracking/test_rest_store.py
ericgosno91/mlflow
8d1a9e354b22919423e5295afd650e39191f701a
[ "Apache-2.0" ]
null
null
null
tests/store/tracking/test_rest_store.py
ericgosno91/mlflow
8d1a9e354b22919423e5295afd650e39191f701a
[ "Apache-2.0" ]
null
null
null
import json import unittest from unittest import mock import pytest import mlflow from mlflow.entities import ( Param, Metric, RunTag, SourceType, ViewType, ExperimentTag, Experiment, LifecycleStage, ) from mlflow.exceptions import MlflowException from mlflow.models import Model from m...
40.219665
100
0.591209
4a0431924c7638390a8a1bad061597199381d650
1,361
py
Python
aliyun-python-sdk-csb/aliyunsdkcsb/request/v20171118/CommitSuccessedServicesRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-csb/aliyunsdkcsb/request/v20171118/CommitSuccessedServicesRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-csb/aliyunsdkcsb/request/v20171118/CommitSuccessedServicesRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "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 u...
35.815789
76
0.761205
4a04324212d68a0401c4a878ccf1c0f623b69acd
5,123
py
Python
org/apache/helix/HelixManager.py
davzhang/helix-python-binding
11a9ecf730bce07720e0b0bcf7f0ec1cd2b25878
[ "Apache-2.0" ]
3
2015-04-08T22:51:04.000Z
2015-05-03T06:42:35.000Z
org/apache/helix/HelixManager.py
zzhang5/helix-python-binding
11a9ecf730bce07720e0b0bcf7f0ec1cd2b25878
[ "Apache-2.0" ]
null
null
null
org/apache/helix/HelixManager.py
zzhang5/helix-python-binding
11a9ecf730bce07720e0b0bcf7f0ec1cd2b25878
[ "Apache-2.0" ]
1
2020-03-31T21:43:01.000Z
2020-03-31T21:43:01.000Z
# package org.apache.helix #from org.apache.helix import * #from java.util import List # do not include controller stuff: dzhang #from org.apache.helix.controller.GenericHelixController import GenericHelixController #from org.apache.helix.healthcheck.ParticipantHealthReportCollector import ParticipantHealthReportColle...
15.292537
107
0.543432
4a0432986afd17bf20f55ee8c8c6e6ca3489b7b5
1,161
py
Python
app.py
potados99/mass-slide
58ab8aafcc239c7ce112fcbc33314038fc8e25db
[ "MIT" ]
2
2019-04-18T07:36:54.000Z
2021-03-01T13:53:46.000Z
app.py
potados99/Mass-slide
58ab8aafcc239c7ce112fcbc33314038fc8e25db
[ "MIT" ]
null
null
null
app.py
potados99/Mass-slide
58ab8aafcc239c7ce112fcbc33314038fc8e25db
[ "MIT" ]
1
2021-12-28T20:44:28.000Z
2021-12-28T20:44:28.000Z
#-*- coding: utf-8 -*- import pkg_resources import sys reload(sys) sys.setdefaultencoding('utf-8') from datetime import datetime from modules import IOModule from modules import processModule from modules import pptxModule #PR = pkg_resources.resource_filename('__main__','') PR = '/Users/potados/Documents/GitHub/mas...
27.642857
85
0.800172
4a04329926af1e77384ba96cef7476052fc8e768
2,394
py
Python
spiders/a402.py
senlyu163/crawler
ecf95f7b356c726922b5e5d90000fda3e16ae90d
[ "Apache-2.0" ]
null
null
null
spiders/a402.py
senlyu163/crawler
ecf95f7b356c726922b5e5d90000fda3e16ae90d
[ "Apache-2.0" ]
null
null
null
spiders/a402.py
senlyu163/crawler
ecf95f7b356c726922b5e5d90000fda3e16ae90d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Rule from ..utils import extract_CN_from_content from ..items import ScrapySpiderItem import re from scrapy_splash import SplashRequest class A402Spider(CrawlSpider): name = '402' allow...
45.169811
224
0.648287
4a0433a088ed7245b0d7888535f05914a1b676f0
1,340
py
Python
Support/Fuego/Pythia/pythia-0.4/packages/fuego/fuego/serialization/mechanisms/Entity.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
1
2019-04-24T13:32:23.000Z
2019-04-24T13:32:23.000Z
Support/Fuego/Pythia/pythia-0.4/packages/fuego/fuego/serialization/mechanisms/Entity.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
null
null
null
Support/Fuego/Pythia/pythia-0.4/packages/fuego/fuego/serialization/mechanisms/Entity.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
null
null
null
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 1998-2003 All Rights Reserved # # <LicenseText> # # ~~~~~~~~~~~~~~~~...
23.928571
82
0.446269
4a0433b6ea4d1688243908ac5a535709f0b61588
269
py
Python
backend/api/post/permissions.py
spider1119/django-vue-template
b16247f09b11d0014cd67a7d361c076708ea7360
[ "MIT" ]
null
null
null
backend/api/post/permissions.py
spider1119/django-vue-template
b16247f09b11d0014cd67a7d361c076708ea7360
[ "MIT" ]
null
null
null
backend/api/post/permissions.py
spider1119/django-vue-template
b16247f09b11d0014cd67a7d361c076708ea7360
[ "MIT" ]
1
2022-02-07T02:42:14.000Z
2022-02-07T02:42:14.000Z
from rest_framework import permissions class IsOwnerOrReadOnly(permissions.BasePermission): def has_object_permission(self,request, view, obj): if request.method in permissions.SAFE_METHODS: return True return obj.owner == request.user
33.625
55
0.739777
4a0434a31800010ead7633ee3145bff766977e84
1,059
py
Python
pymoo/model/individual.py
AIasd/pymoo
08705ca866367d9fab675c30ffe585c837df9654
[ "Apache-2.0" ]
5
2022-01-06T01:10:47.000Z
2022-03-18T15:39:43.000Z
pymoo/model/individual.py
AIasd/pymoo
08705ca866367d9fab675c30ffe585c837df9654
[ "Apache-2.0" ]
15
2022-01-03T19:36:36.000Z
2022-03-30T03:57:58.000Z
pymoo/model/individual.py
AIasd/pymoo
08705ca866367d9fab675c30ffe585c837df9654
[ "Apache-2.0" ]
3
2021-11-22T08:01:47.000Z
2022-03-11T08:53:58.000Z
import copy class Individual: def __init__(self, X=None, F=None, CV=None, G=None, feasible=None, **kwargs) -> None: self.X = X self.F = F self.CV = CV self.G = G self.feasible = feasible self.data = kwargs self.attr = set(self.__dict__.keys()) def has(...
22.0625
89
0.491029
4a0435051a2ba13dfc34983c1a1d97a1c3507e42
49,824
py
Python
src/sage/interfaces/interface.py
qedhandle/sage
8453ffb849b047893b6c61dd09176a84c9133342
[ "BSL-1.0" ]
1
2021-03-15T21:45:56.000Z
2021-03-15T21:45:56.000Z
src/sage/interfaces/interface.py
qedhandle/sage
8453ffb849b047893b6c61dd09176a84c9133342
[ "BSL-1.0" ]
null
null
null
src/sage/interfaces/interface.py
qedhandle/sage
8453ffb849b047893b6c61dd09176a84c9133342
[ "BSL-1.0" ]
null
null
null
r""" Common Interface Functionality See the examples in the other sections for how to use specific interfaces. The interface classes all derive from the generic interface that is described in this section. AUTHORS: - William Stein (2005): initial version - William Stein (2006-03-01): got rid of infinite loop on sta...
30.086957
316
0.532093
4a04353e29e96274ea79aab845de6c692d22e3e6
503
py
Python
light_meter.py
tchamberlin/odroid_prometheus
204ff88693436777a643e16da0ca9c2e1c8a4611
[ "MIT" ]
null
null
null
light_meter.py
tchamberlin/odroid_prometheus
204ff88693436777a643e16da0ca9c2e1c8a4611
[ "MIT" ]
1
2020-03-02T16:01:58.000Z
2020-03-02T16:01:58.000Z
light_meter.py
tchamberlin/odroid_prometheus
204ff88693436777a643e16da0ca9c2e1c8a4611
[ "MIT" ]
null
null
null
"""Real-time monitor of light level""" import math import os import sys import time import prometheus_client as prom import SI1132 import BME280 I2C_DEVICE_FILE = "/dev/i2c-2" def main(): verbose = len(sys.argv) > 1 si1132 = SI1132.SI1132(I2C_DEVICE_FILE) while True: light_visible_lux = si113...
15.71875
48
0.642147
4a0438ddbfaa1446af2969b28b67b8189fff95f4
136,175
py
Python
madgraph/loop/loop_helas_objects.py
madnklo/madnklo
646a3db9c8efd7b4cb00e9d89b9197cd5394c01b
[ "NCSA" ]
1
2019-12-14T15:25:38.000Z
2019-12-14T15:25:38.000Z
madgraph/loop/loop_helas_objects.py
madnklo/madnklo
646a3db9c8efd7b4cb00e9d89b9197cd5394c01b
[ "NCSA" ]
26
2018-10-08T15:49:32.000Z
2020-05-15T13:33:36.000Z
madgraph/loop/loop_helas_objects.py
madnklo/madnklo
646a3db9c8efd7b4cb00e9d89b9197cd5394c01b
[ "NCSA" ]
2
2019-03-25T17:28:48.000Z
2021-04-21T12:15:53.000Z
################################################################################ # # Copyright (c) 2009 The MadGraph5_aMC@NLO Development team and Contributors # # This file is a part of the MadGraph5_aMC@NLO project, an application which # automatically generates Feynman diagrams and matrix elements for arbitrary # h...
50.641502
201
0.562776
4a04399602b824a499a6110729c9b718b54b8b28
1,039
py
Python
LeetCode/InterviewQuestions/ZS Associates/interview.py
shrey199325/LeetCodeSolution
fede0d98d2aeeedc3cd501ac5042f2217494f4c6
[ "Unlicense" ]
null
null
null
LeetCode/InterviewQuestions/ZS Associates/interview.py
shrey199325/LeetCodeSolution
fede0d98d2aeeedc3cd501ac5042f2217494f4c6
[ "Unlicense" ]
null
null
null
LeetCode/InterviewQuestions/ZS Associates/interview.py
shrey199325/LeetCodeSolution
fede0d98d2aeeedc3cd501ac5042f2217494f4c6
[ "Unlicense" ]
1
2020-09-18T09:38:26.000Z
2020-09-18T09:38:26.000Z
""" Technical round arr1 = ["apple", "mango", "mango" "grapes"] -> n arr2 = ["mango", "papaya", "papaya"] -> m output -> ["apple", "mango", "mango", "grapes", "papaya"] """ def solution(arr1, arr2): solution_set1 = set() solution_set1.update(arr1) # O(n) sol_set2 = [] for elem in arr2: ...
25.975
59
0.526468
4a043a0a481189e0154f283acf2fa2e8a0aa7bbc
10,636
py
Python
huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_v2_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_v2_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_v2_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class ListApisV2Request: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value ...
24.506912
212
0.565062
4a043a5eee98476c772f49915d96171598e46c14
14,399
py
Python
openstack_dashboard/dashboards/project/images/images/forms.py
hemantsonawane95/horizon-apelby
01a5e72219aeca8c1451701ee85e232ed0618751
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/images/images/forms.py
hemantsonawane95/horizon-apelby
01a5e72219aeca8c1451701ee85e232ed0618751
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/images/images/forms.py
hemantsonawane95/horizon-apelby
01a5e72219aeca8c1451701ee85e232ed0618751
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
40.22067
79
0.583096
4a043b9e857a6f16915a3f2d05fce82779dbb5ec
54
py
Python
py-remote/gui/__init__.py
Bulkin/servo-ctl
54818a21ad4bd2a7d97e265054318fb050c49c0a
[ "BSD-2-Clause" ]
null
null
null
py-remote/gui/__init__.py
Bulkin/servo-ctl
54818a21ad4bd2a7d97e265054318fb050c49c0a
[ "BSD-2-Clause" ]
null
null
null
py-remote/gui/__init__.py
Bulkin/servo-ctl
54818a21ad4bd2a7d97e265054318fb050c49c0a
[ "BSD-2-Clause" ]
null
null
null
__all__ = ["renderer", "twoaxiswidget", "input_devs"]
27
53
0.703704
4a043cb54bce8962b79eb571029d43a41fb25dd2
37,711
py
Python
test/test_core_pipeline.py
gbdrt/lale
291f824a6b96f088e787979ca768f50d7758424e
[ "Apache-2.0" ]
null
null
null
test/test_core_pipeline.py
gbdrt/lale
291f824a6b96f088e787979ca768f50d7758424e
[ "Apache-2.0" ]
null
null
null
test/test_core_pipeline.py
gbdrt/lale
291f824a6b96f088e787979ca768f50d7758424e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 IBM 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 agreed to in writing, ...
42.853409
107
0.663122
4a043cc49a5fe70cafc395fa264c7897ad690ba3
4,053
py
Python
kubernetes/client/models/v1_capabilities.py
pllsxyc/python
442ebc019056c2dc246be94f85cf61f1e1d26a88
[ "Apache-2.0" ]
1
2019-10-07T13:54:36.000Z
2019-10-07T13:54:36.000Z
kubernetes/client/models/v1_capabilities.py
pllsxyc/python
442ebc019056c2dc246be94f85cf61f1e1d26a88
[ "Apache-2.0" ]
8
2020-10-28T01:18:36.000Z
2021-06-11T01:06:15.000Z
kubernetes/client/models/v1_capabilities.py
pllsxyc/python
442ebc019056c2dc246be94f85cf61f1e1d26a88
[ "Apache-2.0" ]
1
2021-03-16T16:05:33.000Z
2021-03-16T16:05:33.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
26.84106
124
0.564027
4a043d42b4b6c96db8577ea2b62bea1237993d8c
4,306
py
Python
hw4_1.py
hollylessthan/ML-3
02a11e868d8eb12d02196636e9fa2c27cc62af76
[ "Apache-2.0" ]
null
null
null
hw4_1.py
hollylessthan/ML-3
02a11e868d8eb12d02196636e9fa2c27cc62af76
[ "Apache-2.0" ]
null
null
null
hw4_1.py
hollylessthan/ML-3
02a11e868d8eb12d02196636e9fa2c27cc62af76
[ "Apache-2.0" ]
null
null
null
import random as rd import numpy as np desk ="/Users/lofangyu/Desktop/" f = open(desk + "hw4_dataset.txt", "r") list = f.readlines() new_list=[] for i in range(len(list)-1): m = list[i] n = m.replace(","," ") new_list.append(n.split()) initial = [] initial1 = [] initial2 = [] learn_rate = 0.1 for i i...
34.725806
162
0.513934
4a043d8b46e597fee5d445e46388bdf0e8ad96d7
159,005
py
Python
ClointFusion/ClointFusion.py
tlynx538/ClointFusion
4f55139cf9177105a5712ea34d6b511b5059858f
[ "BSD-4-Clause" ]
null
null
null
ClointFusion/ClointFusion.py
tlynx538/ClointFusion
4f55139cf9177105a5712ea34d6b511b5059858f
[ "BSD-4-Clause" ]
null
null
null
ClointFusion/ClointFusion.py
tlynx538/ClointFusion
4f55139cf9177105a5712ea34d6b511b5059858f
[ "BSD-4-Clause" ]
null
null
null
# Project Name: ClointFusion # Project Description: A Python based RPA Automation Framework for Desktop GUI, Citrix, Web and basic Excel operations. # Project Structure # 1. All imports # 2. All global variables # 3. All function definitions # 4. All test cases # 5. All default services # 1. All imports import subpr...
39.910894
348
0.621817
4a043dd92f3a6dd8c1e0aef19a71dbbe07234bd2
598
py
Python
python-pass.py
R1vEnCS/GIZ-pass-python
9e90d911febe1f74c72d8006f762f0b994a1597f
[ "MIT" ]
null
null
null
python-pass.py
R1vEnCS/GIZ-pass-python
9e90d911febe1f74c72d8006f762f0b994a1597f
[ "MIT" ]
null
null
null
python-pass.py
R1vEnCS/GIZ-pass-python
9e90d911febe1f74c72d8006f762f0b994a1597f
[ "MIT" ]
null
null
null
class Solution: def longestPalindrome(self, s: str) -> str: def isPalindrome(s): if s is "": return False for i in range(len(s)//2): if s[i] != s[-1-i]: return False return True common_subs = {} ...
27.181818
53
0.414716
4a043e70e5ca36bffe125eff8339b3e63530466c
9,314
py
Python
testing/test_remote.py
ohmu/pytest-xdist
aac3941500e5502b392662611448c5165e2506c8
[ "MIT" ]
null
null
null
testing/test_remote.py
ohmu/pytest-xdist
aac3941500e5502b392662611448c5165e2506c8
[ "MIT" ]
null
null
null
testing/test_remote.py
ohmu/pytest-xdist
aac3941500e5502b392662611448c5165e2506c8
[ "MIT" ]
null
null
null
import py from xdist.slavemanage import SlaveController, unserialize_report from xdist.remote import serialize_report import execnet queue = py.builtin._tryimport("queue", "Queue") import marshal WAIT_TIMEOUT = 10.0 def check_marshallable(d): try: marshal.dumps(d) except ValueError: py.std.ppr...
37.405622
72
0.602963
4a043f29fb80d515781f563f0d983cc2f2a5c0cc
846
py
Python
src/examples/gpiozero/servo_example.py
grayerbeard/aiy
1a9868d90b8dfcdde2d2fde81e415a222f2642b1
[ "Apache-2.0" ]
null
null
null
src/examples/gpiozero/servo_example.py
grayerbeard/aiy
1a9868d90b8dfcdde2d2fde81e415a222f2642b1
[ "Apache-2.0" ]
null
null
null
src/examples/gpiozero/servo_example.py
grayerbeard/aiy
1a9868d90b8dfcdde2d2fde81e415a222f2642b1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """Demonstrates simultaneous control of two servos on the hat. One servo uses the simple default configuration, the other servo is tuned to ensure the full range is reachable. """ from time import sleep from gpiozero import Servo from aiy.pins import PIN_A from aiy.pins import PIN_B ...
29.172414
77
0.72104
4a043f8d308651ecdd1ba69996a099c0ab70c191
825
py
Python
scripts/stl/hlt/hlt_4vlans.py
timgates42/trex-core
efe94752fcb2d0734c83d4877afe92a3dbf8eccd
[ "Apache-2.0" ]
956
2015-06-24T15:04:55.000Z
2022-03-30T06:25:04.000Z
scripts/stl/hlt/hlt_4vlans.py
angelyouyou/trex-core
fddf78584cae285d9298ef23f9f5c8725e16911e
[ "Apache-2.0" ]
782
2015-09-20T15:19:00.000Z
2022-03-31T23:52:05.000Z
scripts/stl/hlt/hlt_4vlans.py
angelyouyou/trex-core
fddf78584cae285d9298ef23f9f5c8725e16911e
[ "Apache-2.0" ]
429
2015-06-27T19:34:21.000Z
2022-03-23T11:02:51.000Z
from trex.stl.trex_stl_hltapi import STLHltStream class STLS1(object): ''' Eth/802.1Q/802.1Q/802.1Q/802.1Q/IPv6/TCP stream without VM Missing values will be filled with defaults ''' def get_streams (self, direction = 0, **kwargs): return STLHltStream(frame_size = 100, ...
33
103
0.557576
4a0442a0a632b1a13dad638bb9730b69df3d9a9d
9,974
py
Python
playground/analysis/analysis.py
murlokito/playground
405a7091bbfd6705db967e872ed6c4591bd892e6
[ "MIT" ]
null
null
null
playground/analysis/analysis.py
murlokito/playground
405a7091bbfd6705db967e872ed6c4591bd892e6
[ "MIT" ]
null
null
null
playground/analysis/analysis.py
murlokito/playground
405a7091bbfd6705db967e872ed6c4591bd892e6
[ "MIT" ]
null
null
null
__title__ = "playground" __author__ = "murlux" __copyright__ = "Copyright 2019, " + __author__ __credits__ = (__author__, ) __license__ = "MIT" __email__ = "murlux@protonmail.com" import pandas as pd from queue import Queue from logging import Logger from talib import abstract as abstract_ta from talib import MA_Type ...
45.543379
175
0.64237
4a04448e8049fb6d6b10300165ace61a96ce682f
7,274
py
Python
PolygonLineTools/Scripts/split_by_sector.py
Dan-Patterson/Tools_for_ArcGIS_Pro
b5c253d59d57bd1abe7e2433a77aed7d3ea22567
[ "Info-ZIP" ]
23
2020-05-15T18:40:25.000Z
2022-03-31T08:44:39.000Z
PolygonLineTools/Scripts/split_by_sector.py
Dan-Patterson/Tools_for_ArcGIS_Pro
b5c253d59d57bd1abe7e2433a77aed7d3ea22567
[ "Info-ZIP" ]
1
2021-12-14T16:47:00.000Z
2021-12-15T03:06:26.000Z
PolygonLineTools/Scripts/split_by_sector.py
Dan-Patterson/Tools_for_ArcGIS_Pro
b5c253d59d57bd1abe7e2433a77aed7d3ea22567
[ "Info-ZIP" ]
3
2021-08-09T05:42:19.000Z
2022-03-31T08:44:59.000Z
# -*- coding: UTF-8 -*- """ split_by_sector =============== Script : split_by_sector.py Author : Dan.Patterson@carleton.ca Modified : 2018-08-30 Purpose : tools for working with numpy arrays Source : References: ---------- `<https://stackoverflow.com/questions/3252194/numpy-and-line-in...
31.626087
79
0.569425
4a0444f56c1f77b529aa07e01eff517d53a83b93
4,951
py
Python
pogom/models.py
charbec1/pokemapfuntimesyay
d8301930c7733041114ca33fe26117d7157d9149
[ "MIT" ]
null
null
null
pogom/models.py
charbec1/pokemapfuntimesyay
d8301930c7733041114ca33fe26117d7157d9149
[ "MIT" ]
null
null
null
pogom/models.py
charbec1/pokemapfuntimesyay
d8301930c7733041114ca33fe26117d7157d9149
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import logging from peewee import Model, SqliteDatabase, InsertQuery, IntegerField,\ CharField, FloatField, BooleanField, DateTimeField from datetime import datetime from base64 import b64encode from .utils import get_pokemon_name db = SqliteDatabase('pog...
32.572368
96
0.561907
4a0445052b1ded1ea39bbd737a8822710f41140c
2,525
py
Python
bikeshed/shorthands/section.py
svgeesus/bikeshed
d994f2176e9af0cdea0bf01899356b5c50cdedca
[ "CC0-1.0" ]
null
null
null
bikeshed/shorthands/section.py
svgeesus/bikeshed
d994f2176e9af0cdea0bf01899356b5c50cdedca
[ "CC0-1.0" ]
null
null
null
bikeshed/shorthands/section.py
svgeesus/bikeshed
d994f2176e9af0cdea0bf01899356b5c50cdedca
[ "CC0-1.0" ]
null
null
null
import re from ..h import E, outerHTML from . import steps class SectionShorthand: def __init__(self): self.stage = "start" self.escapedText = None self.linkText = [] self.bsAutolink = "" def respond(self, match, dom=None): if self.stage == "start": return...
27.747253
84
0.503762
4a04454d0a5d8d79c54fa54896b04e467e485546
1,142
py
Python
RTK/scripts/alvinxy/gpstoxy.py
ScarecrowStraw/JunFlyBot
0bdd27fdcfff3972941538730f390ce2a27595d8
[ "MIT" ]
null
null
null
RTK/scripts/alvinxy/gpstoxy.py
ScarecrowStraw/JunFlyBot
0bdd27fdcfff3972941538730f390ce2a27595d8
[ "MIT" ]
null
null
null
RTK/scripts/alvinxy/gpstoxy.py
ScarecrowStraw/JunFlyBot
0bdd27fdcfff3972941538730f390ce2a27595d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import String from data_collection.msg import rtk from geometry_msgs.msg import Point import alvinxy reload(alvinxy) # Specify an origin origin = [21.0454563, 105.7859686] def callback(data): rospy.loginfo(rospy.get_caller_id() + 'I heard %s %s %s', str(data.l...
29.282051
122
0.704904
4a0445f8b36bb42e908d982d7de9cbd128d8631d
14,783
py
Python
airmozilla/manage/tests/views/test_eventtweets.py
mozilla/airmozilla
fa6acbbbacc1e22553457807bcea7ce7a9ef6fe3
[ "BSD-3-Clause" ]
115
2015-01-06T18:45:39.000Z
2022-02-07T10:56:49.000Z
airmozilla/manage/tests/views/test_eventtweets.py
april/airmozilla
ee357f5396cdcb50147c72ff1e81a610f9cb292c
[ "BSD-3-Clause" ]
321
2015-01-02T15:19:25.000Z
2018-07-05T14:58:50.000Z
airmozilla/manage/tests/views/test_eventtweets.py
april/airmozilla
ee357f5396cdcb50147c72ff1e81a610f9cb292c
[ "BSD-3-Clause" ]
101
2015-01-13T17:59:15.000Z
2020-12-15T02:58:38.000Z
import datetime import json from nose.tools import eq_, ok_ import mock from django.conf import settings from django.contrib.auth.models import Group from django.utils import timezone from django.core.urlresolvers import reverse from airmozilla.main.models import ( Event, EventTweet, Location, Approv...
34.783529
75
0.575797
4a044707b5aab87dfb243a87b64f27e4829c1a61
1,904
py
Python
worldmap/utils/zip_extract.py
jvzsec/worldmap
437364e3814e6775d3b25da64afb583a4d6dbd6c
[ "MIT" ]
1
2022-02-18T00:13:30.000Z
2022-02-18T00:13:30.000Z
worldmap/utils/zip_extract.py
jvzsec/worldmap
437364e3814e6775d3b25da64afb583a4d6dbd6c
[ "MIT" ]
3
2020-03-29T22:24:39.000Z
2022-03-12T11:03:24.000Z
worldmap/utils/zip_extract.py
jvzsec/worldmap
437364e3814e6775d3b25da64afb583a4d6dbd6c
[ "MIT" ]
3
2020-03-22T14:49:52.000Z
2021-04-28T13:27:05.000Z
""" This function extracts the content of a zipfile into a tmp directory A= zip_extract(path_of_file, <optional>) INPUT: path_of_file: String, e.g., './my_directory/deeper/myfile.zip' OPTIONAL verbose: Boolean [True,False] False: No (default) ...
27.594203
113
0.578256
4a0447e2337b554ed6c6cc3472497ba114121ec8
967
py
Python
src/olympia/translations/tests/test_widgets.py
Osmose/olympia
774c3b927ec05ef971e4206e2669b4291b8b4f17
[ "BSD-3-Clause" ]
1
2020-04-07T07:21:25.000Z
2020-04-07T07:21:25.000Z
src/olympia/translations/tests/test_widgets.py
Osmose/olympia
774c3b927ec05ef971e4206e2669b4291b8b4f17
[ "BSD-3-Clause" ]
null
null
null
src/olympia/translations/tests/test_widgets.py
Osmose/olympia
774c3b927ec05ef971e4206e2669b4291b8b4f17
[ "BSD-3-Clause" ]
2
2018-03-04T00:11:22.000Z
2019-12-14T09:45:55.000Z
from pyquery import PyQuery as pq from olympia.amo.tests import TestCase from olympia.translations import models, widgets class TestWidget(TestCase): def test_avoid_purified_translation(self): # Even if we pass in a LinkifiedTranslation the widget switches to a # normal Translation before render...
35.814815
78
0.611169
4a0449ab42da70dcfbe3481b4f0dd2641d60d8a8
4,066
py
Python
tutorials/plot_brainstorm_phantom_elekta.py
britta-wstnr/mne-python
b69afd1ff3337ac84f219b26c53537a5c8ceb1b9
[ "BSD-3-Clause" ]
null
null
null
tutorials/plot_brainstorm_phantom_elekta.py
britta-wstnr/mne-python
b69afd1ff3337ac84f219b26c53537a5c8ceb1b9
[ "BSD-3-Clause" ]
1
2020-10-29T19:53:46.000Z
2020-10-29T19:53:46.000Z
tutorials/plot_brainstorm_phantom_elekta.py
Sinaxist/mne-python
33146156f2660f122ecc04fa0d5b3fd3c34b549e
[ "BSD-3-Clause" ]
1
2017-12-05T05:13:56.000Z
2017-12-05T05:13:56.000Z
# -*- coding: utf-8 -*- """ ========================================== Brainstorm Elekta phantom tutorial dataset ========================================== Here we compute the evoked from raw for the Brainstorm Elekta phantom tutorial dataset. For comparison, see [1]_ and: http://neuroimage.usc.edu/brainstorm/Tu...
38.358491
79
0.593458
4a044a65b116cdf1316c8d998185773ac39ec7d0
1,570
py
Python
tips/management/commands/createtips.py
Ichinga-Samuel/Python-Tips-API
65f5d6bae6fe1f9b45285cbdfd0410190b73ec6d
[ "MIT" ]
null
null
null
tips/management/commands/createtips.py
Ichinga-Samuel/Python-Tips-API
65f5d6bae6fe1f9b45285cbdfd0410190b73ec6d
[ "MIT" ]
null
null
null
tips/management/commands/createtips.py
Ichinga-Samuel/Python-Tips-API
65f5d6bae6fe1f9b45285cbdfd0410190b73ec6d
[ "MIT" ]
null
null
null
import re import csv from django.core.management.base import BaseCommand, CommandError from datetime import datetime as dt from tips.models import Tips, Links, Tags link = re.compile(r"\bhttp(?:s)?:\S*\b") tag = re.compile(r"#\b.+?\b") class Command(BaseCommand): def add_arguments(self, parser): pass ...
40.25641
144
0.506369
4a044b2de3ee7f6d19e778b1405927b3df36ee09
2,896
py
Python
parsers/pyBSRP/build/lib/bsrp/protocols/bysykkel.py
uky-transport-data-science/BSR_parsers
2d3a34b76481b94c74df8ab406340eb62aac28ab
[ "Apache-2.0" ]
4
2019-12-27T13:33:33.000Z
2022-01-20T14:08:22.000Z
parsers/pyBSRP/build/lib/bsrp/protocols/bysykkel.py
uky-transport-data-science/BSR_parsers
2d3a34b76481b94c74df8ab406340eb62aac28ab
[ "Apache-2.0" ]
null
null
null
parsers/pyBSRP/build/lib/bsrp/protocols/bysykkel.py
uky-transport-data-science/BSR_parsers
2d3a34b76481b94c74df8ab406340eb62aac28ab
[ "Apache-2.0" ]
1
2021-03-16T16:20:40.000Z
2021-03-16T16:20:40.000Z
# gbfs.py # Parser: General Bikeshare Feed Specification import json, re, urllib2, requests from bsrp import bsrputil def scrape(df, apikey): # get the GBFS 'pointer' file that indicates paths to the key files try: info_req = requests.get( df['feedurl'] ) info_json = json.loads(inf...
40.788732
170
0.618094
4a044c201f91a9b47184c03e6a3e7c25204549bd
908
py
Python
Python/Sorting/rooms.py
mukulgarg10/DataStruture-and-algroithms-program
f772db82cd41bbe8f1ae85eef8c0bdba02d716a2
[ "MIT" ]
1
2021-11-09T10:46:57.000Z
2021-11-09T10:46:57.000Z
Python/Sorting/rooms.py
mukulgarg10/DataStruture-and-algroithms-program
f772db82cd41bbe8f1ae85eef8c0bdba02d716a2
[ "MIT" ]
2
2021-10-07T20:06:45.000Z
2021-11-18T16:26:25.000Z
Python/Sorting/rooms.py
mukulgarg10/DataStruture-and-algroithms-program
f772db82cd41bbe8f1ae85eef8c0bdba02d716a2
[ "MIT" ]
1
2022-02-25T19:06:08.000Z
2022-02-25T19:06:08.000Z
""" Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei)], determine if a person could attend all meetings. Soluion We will sort by end time of all the meetings then check if there is a case where one meeting starts before the previous meeting stops. If such a c...
22.7
90
0.678414
4a044d401e11fb7f386b8f382c039031c5464e99
66,665
py
Python
mip.py
mkiol/MobileIP
85eb4262a02ab94a85d45d093564201586c6ffbd
[ "MIT" ]
8
2017-01-13T15:58:19.000Z
2020-11-27T18:21:44.000Z
mip.py
mkiol/MobileIP
85eb4262a02ab94a85d45d093564201586c6ffbd
[ "MIT" ]
null
null
null
mip.py
mkiol/MobileIP
85eb4262a02ab94a85d45d093564201586c6ffbd
[ "MIT" ]
3
2018-09-10T17:07:46.000Z
2020-11-27T18:21:53.000Z
# The MIT License (MIT) # # Copyright (C) 2016 Michal Kosciesza <michal@mkiol.net> # # 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 righ...
36.349509
111
0.604905
4a044d493dbe665fcf7dd895e4e0dc60579654bf
1,117
py
Python
python/pyxir/contrib/target/DPUCVDX8G.py
Xilinx/pyxir
bef661d6d77adcdbd2cf4163f2cf3a1d31d40406
[ "Apache-2.0" ]
25
2020-06-17T22:41:13.000Z
2022-03-22T16:28:22.000Z
python/pyxir/contrib/target/DPUCVDX8G.py
Xilinx/pyxir
bef661d6d77adcdbd2cf4163f2cf3a1d31d40406
[ "Apache-2.0" ]
25
2021-03-16T06:26:44.000Z
2022-03-18T11:28:33.000Z
python/pyxir/contrib/target/DPUCVDX8G.py
Xilinx/pyxir
bef661d6d77adcdbd2cf4163f2cf3a1d31d40406
[ "Apache-2.0" ]
19
2020-07-30T10:03:02.000Z
2021-06-29T01:18:16.000Z
# Copyright 2021 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.914286
74
0.79051
4a044e312836b61e6a92e1fece0daa1d977fa5f6
80
py
Python
Python-Course/Workshops/October3rd/factorial.py
cmlimm/uni-projects
b63ac71cc0b971c7f035096a6bd15b0cbb5bb9f6
[ "MIT" ]
null
null
null
Python-Course/Workshops/October3rd/factorial.py
cmlimm/uni-projects
b63ac71cc0b971c7f035096a6bd15b0cbb5bb9f6
[ "MIT" ]
null
null
null
Python-Course/Workshops/October3rd/factorial.py
cmlimm/uni-projects
b63ac71cc0b971c7f035096a6bd15b0cbb5bb9f6
[ "MIT" ]
1
2020-10-29T18:31:32.000Z
2020-10-29T18:31:32.000Z
def factorial(n): if n == 0: return 1 return factorial(n-1) * n
16
29
0.525
4a044e9f2f7a90bbf3ed4e6cc118b16a47a52af7
2,446
py
Python
doc/source/conf.py
mcx/ADS
b2f94f4daff02438f0b2cffd670be8051244ceec
[ "MIT" ]
null
null
null
doc/source/conf.py
mcx/ADS
b2f94f4daff02438f0b2cffd670be8051244ceec
[ "MIT" ]
null
null
null
doc/source/conf.py
mcx/ADS
b2f94f4daff02438f0b2cffd670be8051244ceec
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
30.962025
81
0.670482
4a044f8a279b74293bbad722b55535394ed7fd02
2,353
py
Python
sgui/Examples/layoutExample.py
DGriffin91/sgui
43e4d5142a8d5e967de4792c93d1b5d40db1511d
[ "MIT" ]
null
null
null
sgui/Examples/layoutExample.py
DGriffin91/sgui
43e4d5142a8d5e967de4792c93d1b5d40db1511d
[ "MIT" ]
2
2020-02-08T05:20:44.000Z
2020-02-08T05:21:40.000Z
sgui/Examples/layoutExample.py
DGriffin91/sgui
43e4d5142a8d5e967de4792c93d1b5d40db1511d
[ "MIT" ]
null
null
null
import sgui #Start TK window window = sgui.Tk() #Layout frame mainBox = sgui.HBox(window) # --- Callback functions --- def buttonPress(btn): print(btn.string + " pressed!") print(testCheckbox.checked) testCheckbox.checked = not testCheckbox.checked def checkBoxed(chb): print(chb.st...
23.29703
98
0.681258
4a0450d915784ec1f5bd67963bbb27a743e71044
2,974
py
Python
mmdet/core/bbox/bbox_target.py
droseger/mmdetection
355da53ea7c4b061c62c5a8430adce7641bc2894
[ "Apache-2.0" ]
632
2019-04-10T02:05:03.000Z
2022-03-29T01:58:55.000Z
mmdet/core/bbox/bbox_target.py
droseger/mmdetection
355da53ea7c4b061c62c5a8430adce7641bc2894
[ "Apache-2.0" ]
49
2019-04-12T14:42:39.000Z
2022-01-22T07:59:51.000Z
mmdet/core/bbox/bbox_target.py
droseger/mmdetection
355da53ea7c4b061c62c5a8430adce7641bc2894
[ "Apache-2.0" ]
112
2019-04-10T12:01:44.000Z
2022-03-29T01:58:49.000Z
import torch from .transforms import bbox2delta from ..utils import multi_apply def bbox_target(pos_bboxes_list, neg_bboxes_list, pos_gt_bboxes_list, pos_gt_labels_list, cfg, reg_classes=1, target_means=[.0, .0, .0, .0], ...
38.623377
78
0.589442
4a04526f23e292762af03a8d7702203476bafe27
8,919
py
Python
docs/conf.py
TariqTNO/OpenQL
8da802cae3a7b8c244edb4d3b74be9e60250528c
[ "Apache-2.0" ]
61
2019-04-24T08:25:41.000Z
2022-03-01T22:23:23.000Z
docs/conf.py
TariqTNO/OpenQL
8da802cae3a7b8c244edb4d3b74be9e60250528c
[ "Apache-2.0" ]
141
2019-03-27T16:19:06.000Z
2022-03-03T10:11:47.000Z
docs/conf.py
TariqTNO/OpenQL
8da802cae3a7b8c244edb4d3b74be9e60250528c
[ "Apache-2.0" ]
43
2019-03-27T13:40:45.000Z
2022-01-14T12:48:51.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
33.033333
115
0.625743
4a045297e9891e1cfb61219082a89bf9c316a946
2,756
py
Python
sdk/python/lib/pulumi/automation/_cmd.py
alex-shafer-1001/pulumi
5ec0b2ffe6db08290a5c680f86e8e6b8ccf7d9b5
[ "Apache-2.0" ]
12,004
2018-06-17T23:56:29.000Z
2022-03-31T18:00:09.000Z
sdk/python/lib/pulumi/automation/_cmd.py
alex-shafer-1001/pulumi
5ec0b2ffe6db08290a5c680f86e8e6b8ccf7d9b5
[ "Apache-2.0" ]
6,263
2018-06-17T23:27:24.000Z
2022-03-31T19:20:35.000Z
sdk/python/lib/pulumi/automation/_cmd.py
alex-shafer-1001/pulumi
5ec0b2ffe6db08290a5c680f86e8e6b8ccf7d9b5
[ "Apache-2.0" ]
706
2018-06-17T23:56:50.000Z
2022-03-31T11:20:23.000Z
# Copyright 2016-2021, Pulumi 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 agreed t...
34.886076
99
0.615747
4a0452f053f0f824c9924afec7b8efbcf9a837d5
7,792
py
Python
lc5/lc4_rand_test.py
sqf-ice/ECC-Verilog
415639c467f1d5865e974139a1a5ab3f629e399f
[ "MIT" ]
2
2021-06-14T09:18:11.000Z
2021-08-02T10:52:51.000Z
lc5/lc4_rand_test.py
sqf-ice/ECC-Verilog
415639c467f1d5865e974139a1a5ab3f629e399f
[ "MIT" ]
null
null
null
lc5/lc4_rand_test.py
sqf-ice/ECC-Verilog
415639c467f1d5865e974139a1a5ab3f629e399f
[ "MIT" ]
1
2021-06-26T06:39:30.000Z
2021-06-26T06:39:30.000Z
#!/usr/bin/python # --------------- # Address Spaces: # --------------- # USER_MIN = 0x0000 # USER_MAX = 0x7FFF # USER_CODE_MIN = 0x0000 # USER_CODE_MAX = 0x1FFF # OS_MIN = 0x8000 # OS_MAX = 0xFFFF # OS_CODE_MIN 0x8000 # OS_CODE_MAX 0x9FFF import sys, os, random addr_lst = (0xB010, 0xC010, 0xD010) addr_regs = rang...
29.403774
93
0.558008
4a04549a20b9866037880833e67a5ebcd0601836
10,861
py
Python
DotsAndBoxes/DotsAndBoxes/dots_and_boxes/dots_and_boxes.py
SCIJLab/Dots-and-Boxes-GUI
28b0af7a34cb3345b38088d0d479020bc2372b7d
[ "MIT" ]
4
2020-02-01T02:08:37.000Z
2020-07-21T01:09:39.000Z
DotsAndBoxes/DotsAndBoxes/dots_and_boxes/dots_and_boxes.py
Everyb0dyLies/Dots-and-Boxes
28b0af7a34cb3345b38088d0d479020bc2372b7d
[ "MIT" ]
null
null
null
DotsAndBoxes/DotsAndBoxes/dots_and_boxes/dots_and_boxes.py
Everyb0dyLies/Dots-and-Boxes
28b0af7a34cb3345b38088d0d479020bc2372b7d
[ "MIT" ]
5
2018-07-31T15:29:00.000Z
2019-07-01T05:54:32.000Z
# -*- coding: UTF-8 -*- import json, time from .game import * from .player import * class DotsAndBoxes: def __init__(self, window_controller=None): self._current_game = None self._history = None self._current_step = None self._red_player = None self._blue_player = None ...
35.963576
172
0.56063
4a04549e7c58d5285ad1bb454f04e5dedc213040
2,264
py
Python
cas/registration/registration.py
ced-mos/cas-assignment
0b72c69afd6d91a0da554db99d6897cd7ffd7052
[ "MIT" ]
null
null
null
cas/registration/registration.py
ced-mos/cas-assignment
0b72c69afd6d91a0da554db99d6897cd7ffd7052
[ "MIT" ]
null
null
null
cas/registration/registration.py
ced-mos/cas-assignment
0b72c69afd6d91a0da554db99d6897cd7ffd7052
[ "MIT" ]
null
null
null
import os import sys sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]), '../..')) import numpy as np np.set_printoptions(suppress=True) from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import cas.registration.util as util from assignments.registration import registration def test_i...
27.950617
108
0.681537
4a0455214db3427bbe58794f93de468d74de9e7d
14,022
py
Python
docs/conf.py
lhutton1/tvm
e9380e47f0b97c0b98b97f082b075eaa1308038b
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
1
2021-06-03T20:20:24.000Z
2021-06-03T20:20:24.000Z
docs/conf.py
lhutton1/tvm
e9380e47f0b97c0b98b97f082b075eaa1308038b
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
docs/conf.py
lhutton1/tvm
e9380e47f0b97c0b98b97f082b075eaa1308038b
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
# -*- 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 # ...
31.510112
96
0.671659
4a0456420903c9d13fc95aa7b478dc9a183f1780
4,505
bzl
Python
def.bzl
howson/bazel-gazelle
f3d57a478ca0043905f818766b60bb21674eaaad
[ "Apache-2.0" ]
null
null
null
def.bzl
howson/bazel-gazelle
f3d57a478ca0043905f818766b60bb21674eaaad
[ "Apache-2.0" ]
null
null
null
def.bzl
howson/bazel-gazelle
f3d57a478ca0043905f818766b60bb21674eaaad
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
31.503497
89
0.611765
4a045896c6bcb4974698ffe2d97561f28ec9e2fe
2,361
py
Python
python-project/experiments/continuous/Exp_Geo_music.py
ferjorosa/bayesian-latent-forests
3d9e19f1d0be1e4cca0b390866589061a670cc20
[ "Apache-2.0" ]
null
null
null
python-project/experiments/continuous/Exp_Geo_music.py
ferjorosa/bayesian-latent-forests
3d9e19f1d0be1e4cca0b390866589061a670cc20
[ "Apache-2.0" ]
null
null
null
python-project/experiments/continuous/Exp_Geo_music.py
ferjorosa/bayesian-latent-forests
3d9e19f1d0be1e4cca0b390866589061a670cc20
[ "Apache-2.0" ]
null
null
null
from experiments.continuous import ContinuousExperiment from spn.structure.StatisticalTypes import MetaType class Exp_Geo_music(ContinuousExperiment.ContinuousExperiment): # 70 data attributes after filtering with 10 folds meta_types = [MetaType.REAL, MetaType.REAL, MetaType.REAL, MetaType.REAL, MetaType.REA...
50.234043
95
0.573062
4a0458ac5fc6af149aaebba28b53b613103ed7f4
862
py
Python
isi_sdk_8_2_0/test/test_copy_errors.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_0/test/test_copy_errors.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_0/test/test_copy_errors.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 7 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_2_0 from i...
21.02439
79
0.691415
4a0458f87288d9d46da985cf5037f62d9ac3bd4b
12,749
py
Python
example/ssd/symbol/common.py
xudong-sun/mxnet
fe42d30d5885dd576cb871fd70594c53efce9b42
[ "Apache-2.0" ]
399
2017-05-30T05:12:48.000Z
2022-01-29T05:53:08.000Z
example/ssd/symbol/common.py
greenpea0104/incubator-mxnet
fc9e70bf2d349ad4c6cb65ff3f0958e23a7410bf
[ "Apache-2.0" ]
58
2017-05-30T23:25:32.000Z
2019-11-18T09:30:54.000Z
example/ssd/symbol/common.py
greenpea0104/incubator-mxnet
fc9e70bf2d349ad4c6cb65ff3f0958e23a7410bf
[ "Apache-2.0" ]
107
2017-05-30T05:53:22.000Z
2021-06-24T02:43:31.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
42.215232
98
0.631893
4a0459ef87df6d749469b3cc0c2fc53ecc82feb4
2,259
py
Python
modules/video_encoder.py
AIM3-RUC/video-paragraph
072e7447a6bc12080f0baa3d41e9e96d3d240221
[ "MIT" ]
53
2021-05-31T10:20:57.000Z
2022-03-30T02:48:42.000Z
modules/video_encoder.py
AIM3-RUC/video-paragraph
072e7447a6bc12080f0baa3d41e9e96d3d240221
[ "MIT" ]
13
2021-06-21T08:46:54.000Z
2022-03-14T08:31:10.000Z
modules/video_encoder.py
AIM3-RUC/video-paragraph
072e7447a6bc12080f0baa3d41e9e96d3d240221
[ "MIT" ]
3
2021-09-21T13:12:28.000Z
2022-03-09T04:47:16.000Z
from __future__ import print_function from __future__ import division import torch import torch.nn as nn import numpy as np import framework.ops from framework.ops import l2norm import framework.configbase class VideoEncoderConfig(framework.configbase.ModuleConfig): def __init__(self): super(VideoEncoderConfi...
35.857143
100
0.718459
4a0459fedb96c6dacddab3e092b12112130de29e
1,926
py
Python
tool/model/transformers_model.py
GoniaW/protagonist_tagger
68451cf5e0fc671510188cd439f888ffbdad6722
[ "BSD-3-Clause" ]
null
null
null
tool/model/transformers_model.py
GoniaW/protagonist_tagger
68451cf5e0fc671510188cd439f888ffbdad6722
[ "BSD-3-Clause" ]
null
null
null
tool/model/transformers_model.py
GoniaW/protagonist_tagger
68451cf5e0fc671510188cd439f888ffbdad6722
[ "BSD-3-Clause" ]
null
null
null
from transformers import pipeline from transformers import AutoTokenizer, AutoModelForTokenClassification import numpy as np from tool.model.ner_model import NERModel class TransformerModel(NERModel): def __init__(self, model_path, save_personal_titles, fix_personal_titles): super().__init__(save_perso...
40.125
79
0.553479
4a045c3389205574764d51b6e1830fbb9dc00520
6,429
py
Python
app/app/settings.py
sudodoki/doccano
4bfa60185dd40b477b1941e590e530250d13a8e1
[ "MIT" ]
2
2019-04-01T03:55:10.000Z
2020-05-06T01:39:24.000Z
app/app/settings.py
sudodoki/doccano
4bfa60185dd40b477b1941e590e530250d13a8e1
[ "MIT" ]
null
null
null
app/app/settings.py
sudodoki/doccano
4bfa60185dd40b477b1941e590e530250d13a8e1
[ "MIT" ]
1
2021-02-04T14:52:58.000Z
2021-02-04T14:52:58.000Z
""" Django settings for app project. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ Any setting that is configured via an environment variable may also be set in a `....
29.490826
91
0.713175
4a045d6909aa525ec2c6af87ff3fdbf9a8b3aef3
4,996
py
Python
tests/test_result.py
shawnbrown/squint
a9d326ff8edb2e2b740c4355fd953edd2c0cf114
[ "Apache-2.0" ]
3
2020-01-11T23:29:15.000Z
2020-05-30T09:39:15.000Z
tests/test_result.py
shawnbrown/squint
a9d326ff8edb2e2b740c4355fd953edd2c0cf114
[ "Apache-2.0" ]
3
2019-10-15T13:23:31.000Z
2020-07-23T22:13:11.000Z
tests/test_result.py
shawnbrown/squint
a9d326ff8edb2e2b740c4355fd953edd2c0cf114
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import sys from .common import unittest from squint._compatibility.itertools import islice from squint._utils import IterItems from squint.result import Result class TestFetch(unittest.TestCase): def test_nonmappings(self): """Check collection...
33.986395
87
0.571257
4a045e593e12cc45f27eff7a772acb061a78cdc8
668
py
Python
Python3/35.search-insert-position.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/35.search-insert-position.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/35.search-insert-position.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=35 lang=python3 # # [35] Search Insert Position # # @lc code=start class Solution: def searchInsert(self, nums: List[int], target: int): if not nums: return 0 if target <= nums[0]: return 0 if target > nums[-1]: return len(nums) ...
20.875
57
0.420659
4a045f03611fd776f535e4938d4e72a3a2189691
7,084
py
Python
mmn.py
uwmadison-chm/paper-fin-lott-2020
81e30126981e73883dfd630c4e3915445dfbf97b
[ "MIT" ]
null
null
null
mmn.py
uwmadison-chm/paper-fin-lott-2020
81e30126981e73883dfd630c4e3915445dfbf97b
[ "MIT" ]
null
null
null
mmn.py
uwmadison-chm/paper-fin-lott-2020
81e30126981e73883dfd630c4e3915445dfbf97b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import argparse import logging import coloredlogs import mne from mne.preprocessing import ICA, create_ecg_epochs import matplotlib.pyplot as plt from eeg_shared import BDFWithMetadata parser = argparse.ArgumentParser(description='Automate FMed study artifact rejection and analysis ...
42.166667
240
0.691982
4a045faf3aeb7010cea9b148af307e4f53bed60e
1,829
py
Python
demo/experiment.py
DAIRLab/contact-nets
b0e197cbb0ab5550628d71d851a6de1dab616fb6
[ "BSD-3-Clause" ]
16
2020-11-18T01:33:05.000Z
2022-02-15T17:52:55.000Z
demo/experiment.py
DAIRLab/contact-nets
b0e197cbb0ab5550628d71d851a6de1dab616fb6
[ "BSD-3-Clause" ]
null
null
null
demo/experiment.py
DAIRLab/contact-nets
b0e197cbb0ab5550628d71d851a6de1dab616fb6
[ "BSD-3-Clause" ]
1
2021-01-27T20:48:46.000Z
2021-01-27T20:48:46.000Z
"""Provide a simple way to run different Block3D methods.""" import distutils.dir_util import pdb # noqa import click from contactnets.experiments import split from contactnets.experiments.block3d import train from contactnets.experiments.block3d.train import Block3DTraining from contactnets.utils import dirs @cl...
37.326531
93
0.667578
4a045fe386f751f87914dd905714ce7528b34060
49,050
bzl
Python
tensorflow/workspace.bzl
stagedml/tensorflow
2ffb2fbed31bd0e43673b767bf4622d737bfab62
[ "Apache-2.0" ]
null
null
null
tensorflow/workspace.bzl
stagedml/tensorflow
2ffb2fbed31bd0e43673b767bf4622d737bfab62
[ "Apache-2.0" ]
null
null
null
tensorflow/workspace.bzl
stagedml/tensorflow
2ffb2fbed31bd0e43673b767bf4622d737bfab62
[ "Apache-2.0" ]
1
2021-01-29T08:12:57.000Z
2021-01-29T08:12:57.000Z
# TensorFlow external dependencies that can be loaded in WORKSPACE files. load("//third_party/gpus:cuda_configure.bzl", "cuda_configure") load("//third_party/gpus:rocm_configure.bzl", "rocm_configure") load("//third_party/tensorrt:tensorrt_configure.bzl", "tensorrt_configure") load("//third_party/nccl:nccl_configure.b...
47.027804
203
0.684098
4a046145fe958c902e50f8d0e4ef11add52b81e8
1,109
py
Python
topology/simple.py
lsk567/Serverlessnet
63ddc3d0a340284e9c81595ce89d43c5d3a9820f
[ "MIT" ]
null
null
null
topology/simple.py
lsk567/Serverlessnet
63ddc3d0a340284e9c81595ce89d43c5d3a9820f
[ "MIT" ]
null
null
null
topology/simple.py
lsk567/Serverlessnet
63ddc3d0a340284e9c81595ce89d43c5d3a9820f
[ "MIT" ]
null
null
null
""" Simple topology to simulate three containers (d1, d2, d3), 1 switch, and one controller: (c) | - (s1)- | | | (d1) (d2) (d3) sender open receiver lambda """ from mininet.net import Containernet from mininet.node import Controller from mininet.cl...
27.725
65
0.65284
4a0461b9d1e1e339d40ba735fde2f017c0da01e2
9,511
py
Python
scripts/53_denovo.py
xiamaz/flowCat
5fea92eff3112ea3bb669595b469735b2bfa3938
[ "MIT" ]
4
2020-03-06T14:06:12.000Z
2021-06-25T15:03:54.000Z
scripts/53_denovo.py
xiamaz/flowCat
5fea92eff3112ea3bb669595b469735b2bfa3938
[ "MIT" ]
3
2020-03-25T10:54:52.000Z
2020-11-26T19:06:23.000Z
scripts/53_denovo.py
xiamaz/flowCat
5fea92eff3112ea3bb669595b469735b2bfa3938
[ "MIT" ]
2
2020-04-14T11:26:25.000Z
2021-04-02T19:25:52.000Z
#!/usr/bin/env python3 """ Train de-novo classifier for berlin som data. """ import numpy as np from sklearn import metrics from sklearn.preprocessing import LabelBinarizer from tensorflow import keras from tensorflow.keras import layers, regularizers, models # pylint: disable=import-error # from keras import layers, ...
32.571918
95
0.642835
4a04629f22426dfb22953f08abfe6e6050028667
468
py
Python
MECboard/migrations/0015_auto_20190803_1538.py
mec-by-shp-wbl-hjk/MEC
da722701ee1673bf3477219f81208c28fa0a3d18
[ "MIT" ]
1
2019-07-18T15:43:12.000Z
2019-07-18T15:43:12.000Z
MECboard/migrations/0015_auto_20190803_1538.py
mec-by-shp-wbl-hjk/MEC
da722701ee1673bf3477219f81208c28fa0a3d18
[ "MIT" ]
null
null
null
MECboard/migrations/0015_auto_20190803_1538.py
mec-by-shp-wbl-hjk/MEC
da722701ee1673bf3477219f81208c28fa0a3d18
[ "MIT" ]
6
2019-07-17T07:59:14.000Z
2019-09-12T04:08:37.000Z
# Generated by Django 2.2.3 on 2019-08-03 06:38 from django.db import migrations import imagekit.models.fields class Migration(migrations.Migration): dependencies = [ ('MECboard', '0014_auto_20190803_1512'), ] operations = [ migrations.AlterField( model_name='board', ...
23.4
101
0.647436
4a04631b991f0d8a8be89b7f6360d2fd4efcd897
3,839
py
Python
SDis_Self-Training/plotting/plotBoxPlot.py
mgeorgati/DasymetricMapping
d87b97a076cca3e03286c6b27b118904e03315c0
[ "BSD-3-Clause" ]
null
null
null
SDis_Self-Training/plotting/plotBoxPlot.py
mgeorgati/DasymetricMapping
d87b97a076cca3e03286c6b27b118904e03315c0
[ "BSD-3-Clause" ]
null
null
null
SDis_Self-Training/plotting/plotBoxPlot.py
mgeorgati/DasymetricMapping
d87b97a076cca3e03286c6b27b118904e03315c0
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd import geopandas as gpd import matplotlib.pyplot as plt import seaborn as sns from pathlib import Path import numpy as np def compareCounts(fileList, column): df = pd.DataFrame() for i in fileList: path =Path(i) name = path.stem src = gpd.read_file(i) #print(...
40.840426
150
0.586351
4a04631bad94205ac2535fc5b1fe99e7ebe67272
27
py
Python
intake/catalog/tests/catalog_search/example_packages/ep/__init__.py
raybellwaves/intake
8acc70d9adb19344ca15dee948315828b61e87b2
[ "BSD-2-Clause" ]
578
2019-02-22T11:45:28.000Z
2022-03-31T08:32:22.000Z
intake/catalog/tests/catalog_search/example_packages/ep/__init__.py
raybellwaves/intake
8acc70d9adb19344ca15dee948315828b61e87b2
[ "BSD-2-Clause" ]
336
2019-02-21T16:24:33.000Z
2022-03-30T09:23:53.000Z
intake/catalog/tests/catalog_search/example_packages/ep/__init__.py
raybellwaves/intake
8acc70d9adb19344ca15dee948315828b61e87b2
[ "BSD-2-Clause" ]
99
2019-02-22T18:31:09.000Z
2022-03-22T03:27:54.000Z
class TestCatalog: ...
9
18
0.592593
4a0463a0b67c6a7beba7178a88654ec77a74b29a
7,866
py
Python
modules/dials/command_line/plot_Fo_vs_Fc.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
null
null
null
modules/dials/command_line/plot_Fo_vs_Fc.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
null
null
null
modules/dials/command_line/plot_Fo_vs_Fc.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
1
2020-02-04T15:39:06.000Z
2020-02-04T15:39:06.000Z
# LIBTBX_SET_DISPATCHER_NAME dials.plot_Fo_vs_Fc """ Create a plot of Fo vs Fc similar to that shown by Figure 6 in https://doi.org/10.1107/S2059798317010348 Usage: dials.plot_Fo_vs_Fc hklin=refined.mtz """ from __future__ import absolute_import, division, print_function import sys from dials.util import Sorry, show_...
31.338645
88
0.569794
4a04641d89ce30c0b1fa07bb4746e2cb1afe1765
173,392
py
Python
electroncash/wallet.py
damascene/Electron-Cash-SLP
3819046ecbd585aa8f5fac1c58550046dd027266
[ "MIT" ]
null
null
null
electroncash/wallet.py
damascene/Electron-Cash-SLP
3819046ecbd585aa8f5fac1c58550046dd027266
[ "MIT" ]
null
null
null
electroncash/wallet.py
damascene/Electron-Cash-SLP
3819046ecbd585aa8f5fac1c58550046dd027266
[ "MIT" ]
null
null
null
# Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights t...
43.686571
234
0.582876
4a046420cd0114f5633a25bd95664c666f577e31
1,253
py
Python
Cryptography/CAPTCHA Simulation/1411113_CAPTCHA.py
kartik2112/Interesting-Codes
423c93b7b2b66ab46d3c188e357d1f8af31251b2
[ "MIT" ]
null
null
null
Cryptography/CAPTCHA Simulation/1411113_CAPTCHA.py
kartik2112/Interesting-Codes
423c93b7b2b66ab46d3c188e357d1f8af31251b2
[ "MIT" ]
null
null
null
Cryptography/CAPTCHA Simulation/1411113_CAPTCHA.py
kartik2112/Interesting-Codes
423c93b7b2b66ab46d3c188e357d1f8af31251b2
[ "MIT" ]
null
null
null
# Prerequisite: # 1. # captcha must be installed before running this program # To do this type in terminal / Powershell: # pip3 install captcha # If this doesnt work # Type these: # python3 # import pip # pip.main(['install','captcha']) # 2. # Image module must also be installed # To do this type i...
22.781818
96
0.674381
4a046501f769bc555dd395e891b322e311e3c8d6
6,324
py
Python
backend/test/test_models.py
romic-kid/project-kfsystem
3ed63c5c063493dc0dd7e0c4b62ba7481bf63311
[ "BSD-3-Clause" ]
2
2018-03-22T08:42:41.000Z
2018-07-03T09:22:28.000Z
backend/test/test_models.py
romic-kid/project-kfsystem
3ed63c5c063493dc0dd7e0c4b62ba7481bf63311
[ "BSD-3-Clause" ]
2
2019-04-25T02:10:10.000Z
2022-03-02T01:11:28.000Z
backend/test/test_models.py
romic-kid/project-kfsystem
3ed63c5c063493dc0dd7e0c4b62ba7481bf63311
[ "BSD-3-Clause" ]
1
2019-03-14T03:13:05.000Z
2019-03-14T03:13:05.000Z
from django.test import TestCase from django.test import Client from ..models import Admin, CustomerService, ChattingLog, SerialNumber, EnterpriseDisplayInfo, RobotInfo from django.utils import timezone class TestModelAdmin(TestCase): def test(self): time_now = timezone.now() Admin.objects.create(...
56.972973
242
0.726913
4a04661abec5965df908fff5697dcff4e2d50b44
463
py
Python
server/utils/frozen.py
griseduardo/Facial-Recognition-Database-Management-System
5d451791cb131164930cc4f886ec6300d88a8c67
[ "MIT" ]
6
2021-09-13T13:45:49.000Z
2021-12-20T15:36:10.000Z
server/utils/frozen.py
griseduardo/Facial-Recognition-Database-Management-System
5d451791cb131164930cc4f886ec6300d88a8c67
[ "MIT" ]
31
2021-09-11T05:52:56.000Z
2021-11-07T14:35:41.000Z
server/utils/frozen.py
griseduardo/Facial-Recognition-Database-Management-System
5d451791cb131164930cc4f886ec6300d88a8c67
[ "MIT" ]
2
2021-09-13T04:08:05.000Z
2021-09-26T04:06:53.000Z
import os import sys def isfrozen(): """Check if program is running from a Pyinstaller bundle.""" if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"): return True else: return False def frozen_basedir(): """Get base directory of the executable when running in frozen mode.""...
24.368421
75
0.654428
4a0466645ae0156bcf4ad4c967955d51d7aa6e86
861
py
Python
python/1094_car_pooling.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
17
2016-03-01T22:40:53.000Z
2021-04-19T02:15:03.000Z
python/1094_car_pooling.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
null
null
null
python/1094_car_pooling.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
3
2019-03-07T03:48:43.000Z
2020-04-05T01:11:36.000Z
class Solution: def carPooling(self, trips: List[List[int]], capacity: int) -> bool: capacity_changes = [] for psg, start, end in trips: # capacity decrease at pickup and increase at dropoff # for overlapping intervals, we should drop-off first then pickup. # ...
31.888889
82
0.620209
4a0466ed4ff054354ea0048f6e7d8fbf51957214
18,873
py
Python
hphp/hack/test/integration/test_save_state.py
compositor/hhvm
ac037244608e96b461b2d95cbc1ab95cbfa7cc88
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/test/integration/test_save_state.py
compositor/hhvm
ac037244608e96b461b2d95cbc1ab95cbfa7cc88
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/test/integration/test_save_state.py
compositor/hhvm
ac037244608e96b461b2d95cbc1ab95cbfa7cc88
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
# pyre-strict from __future__ import absolute_import, division, print_function, unicode_literals import json import os import shlex import shutil import sqlite3 import stat import sys import time import unittest from typing import Optional, TextIO import common_tests import hierarchy_tests from hh_paths import hh_cl...
37.520875
88
0.63816
4a046737a56637b08a3295c7e9bcd5ad9d80f5e2
5,430
py
Python
monte-carlo/first_visit_mc.py
RaphSku/Reinforcement-Learning
fe043864dea0f22ad4afc58962cdbe8d018cdb11
[ "MIT-0" ]
null
null
null
monte-carlo/first_visit_mc.py
RaphSku/Reinforcement-Learning
fe043864dea0f22ad4afc58962cdbe8d018cdb11
[ "MIT-0" ]
null
null
null
monte-carlo/first_visit_mc.py
RaphSku/Reinforcement-Learning
fe043864dea0f22ad4afc58962cdbe8d018cdb11
[ "MIT-0" ]
null
null
null
import numpy as np from typing import Sequence class LinearWorld: """A 1D world where the agent can only go left or right Parameters ---------- number_of_fields : int The linear world consists of fields, each field has a state value Attributes ---------- states : ...
33.9375
103
0.585267
4a0467e0da7d42ca62866e1db0787ed404a6affc
102
py
Python
django_full_stack/favorite_books_project/apps/favorite_books/apps.py
gfhuertac/coding_dojo_python
4d17bb63fb2b9669216a0f60326d4a4b9055af7e
[ "MIT" ]
null
null
null
django_full_stack/favorite_books_project/apps/favorite_books/apps.py
gfhuertac/coding_dojo_python
4d17bb63fb2b9669216a0f60326d4a4b9055af7e
[ "MIT" ]
6
2020-06-06T01:50:21.000Z
2022-02-10T11:33:02.000Z
django_full_stack/favorite_books_project/apps/favorite_books/apps.py
gfhuertac/coding_dojo_python
4d17bb63fb2b9669216a0f60326d4a4b9055af7e
[ "MIT" ]
null
null
null
from django.apps import AppConfig class FavoriteBooksConfig(AppConfig): name = 'favorite_books'
17
37
0.784314
4a0469dea62b70a8da8b0decf60c7acf695fe592
7,257
py
Python
codegen_workspace/detection2onnx.py
gbxu/vision
b9f963d7b0af8b4c7e904d16493c5fb0b30bd457
[ "BSD-3-Clause" ]
null
null
null
codegen_workspace/detection2onnx.py
gbxu/vision
b9f963d7b0af8b4c7e904d16493c5fb0b30bd457
[ "BSD-3-Clause" ]
null
null
null
codegen_workspace/detection2onnx.py
gbxu/vision
b9f963d7b0af8b4c7e904d16493c5fb0b30bd457
[ "BSD-3-Clause" ]
null
null
null
import torch import sys # import os # sys.path.append(os.environ["HOME"]+"/vision/") import torchvision # https://pytorch.org/vision/stable/models.html from pathlib import Path from torch.onnx import TrainingMode import onnx import argparse import warnings get_model={ # Object Detection, Instance Segmentation and ...
47.743421
256
0.652611
4a046a307a11574e4e326e13e25091f3a8c201c1
131
py
Python
transformer/executor/__init__.py
SimpleConstructs/fixed-width-parser
b9bb4953e66dcea2b6ce3aeb2fed58a3f34a784b
[ "Apache-2.0" ]
null
null
null
transformer/executor/__init__.py
SimpleConstructs/fixed-width-parser
b9bb4953e66dcea2b6ce3aeb2fed58a3f34a784b
[ "Apache-2.0" ]
3
2021-07-18T14:34:38.000Z
2021-07-25T12:49:09.000Z
transformer/executor/__init__.py
SimpleConstructs/fixed-width-transformer
b9bb4953e66dcea2b6ce3aeb2fed58a3f34a784b
[ "Apache-2.0" ]
null
null
null
from transformer.executor.executor_config import ExecutorConfig from transformer.executor.executor import LambdaFixedWidthExecutor
43.666667
66
0.908397
4a046b432c9c43a85cecf0f3899b72c7600c4890
1,866
py
Python
test/homemade/bank.py
kesaribath47/imPENNetrables
499cf4e4e38c99391ef309865bb0f0382e738ef1
[ "MIT" ]
1
2019-07-19T14:55:57.000Z
2019-07-19T14:55:57.000Z
test/homemade/bank.py
kesaribath47/imPENNetrables
499cf4e4e38c99391ef309865bb0f0382e738ef1
[ "MIT" ]
null
null
null
test/homemade/bank.py
kesaribath47/imPENNetrables
499cf4e4e38c99391ef309865bb0f0382e738ef1
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "Hung Nguyen" import select import subprocess import threading import time class Bank: BANK_PATH = '../../bin/bank' class BankThread(threading.Thread): def __init__(self, path, port, auth): self.path = path self.port = port self...
29.15625
83
0.535906
4a046c0529743795a350b2c1315c5eb134c8f5ca
1,174
py
Python
backend/tests/integration/test_changgung_chiayi.py
msunji/vaccinate
60c41fc8302b285b849c6b0ad4e87125dd86e623
[ "MIT" ]
1
2021-05-21T22:15:50.000Z
2021-05-21T22:15:50.000Z
backend/tests/integration/test_changgung_chiayi.py
circlebeams/vaccinate
3c8105a3a4b7604e3e8d6843be46e12c13736ab3
[ "MIT" ]
null
null
null
backend/tests/integration/test_changgung_chiayi.py
circlebeams/vaccinate
3c8105a3a4b7604e3e8d6843be46e12c13736ab3
[ "MIT" ]
null
null
null
import unittest import os from Parsers.changgung_chiayi import * from hospital_types import AppointmentAvailability, HospitalAvailabilitySchema class TestChanggungChiayi(unittest.TestCase): def test_full(self) -> None: with open("backend/tests/saved_pages/changgung_chiayi_full.html") as html_file: ...
41.928571
87
0.693356
4a046d2c3a8df918366d524e739923a9d7ee0f91
2,123
py
Python
runtime/models/api/optim_request.py
onap/optf-osdf
2b9e7f4fca3d510a201283a8561f6ff3424f5fd6
[ "Apache-2.0" ]
3
2019-04-15T13:33:57.000Z
2019-10-21T17:19:19.000Z
runtime/models/api/optim_request.py
onap/optf-osdf
2b9e7f4fca3d510a201283a8561f6ff3424f5fd6
[ "Apache-2.0" ]
null
null
null
runtime/models/api/optim_request.py
onap/optf-osdf
2b9e7f4fca3d510a201283a8561f6ff3424f5fd6
[ "Apache-2.0" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) 2020 AT&T Intellectual Property # # 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 # # h...
34.803279
85
0.671691
4a046e354dd8ad09554437e7b18e91763cc153c9
1,043
py
Python
awx/playbooks/library/project_archive.py
sumit-21/awx
966a62c6bf2ec0c672e076684341bc6bd75827af
[ "Apache-2.0" ]
17
2021-04-03T01:40:17.000Z
2022-03-03T11:45:20.000Z
awx/playbooks/library/project_archive.py
Saurabh-Thakre/awx
8eb377a3ea8303c394ad4c958cc828c7239c1e11
[ "Apache-2.0" ]
24
2021-05-18T21:13:35.000Z
2022-03-29T10:23:52.000Z
awx/playbooks/library/project_archive.py
Saurabh-Thakre/awx
8eb377a3ea8303c394ad4c958cc828c7239c1e11
[ "Apache-2.0" ]
24
2020-11-27T08:37:35.000Z
2021-03-08T13:27:15.000Z
ANSIBLE_METADATA = { "metadata_version": "1.0", "status": ["stableinterface"], "supported_by": "community", } DOCUMENTATION = """ --- module: project_archive short_description: unpack a project archive description: - Unpacks an archive that contains a project, in order to support handling versioned ...
25.439024
87
0.698945
4a046ea68edc436df0274492f659b670edd210d3
32,351
py
Python
quex/engine/state_machine/character_counter.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
quex/engine/state_machine/character_counter.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
quex/engine/state_machine/character_counter.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
# (C) 2012 Frank-Rene Schaefer from quex.engine.counter import CountActionMap from quex.engine.misc.tree_walker import TreeWalker from quex.engine.misc.tools import typed from quex.constants import E_Count from quex.engine.operations.operation_list import Op from quex.blackboar...
46.149786
131
0.61386
4a046edee8dbc75af494805568b2f0152a4377e2
1,645
py
Python
metaparser/demo_metaparser_nxos.py
xiaoxinz-cisco/examples
ce1d1526346665bf797effb7b372a5030d2f9bfd
[ "Apache-2.0" ]
81
2019-08-07T09:00:15.000Z
2022-03-17T23:23:51.000Z
metaparser/demo_metaparser_nxos.py
xiaoxinz-cisco/examples
ce1d1526346665bf797effb7b372a5030d2f9bfd
[ "Apache-2.0" ]
2
2019-07-30T03:09:50.000Z
2021-09-28T13:08:00.000Z
metaparser/demo_metaparser_nxos.py
xiaoxinz-cisco/examples
ce1d1526346665bf797effb7b372a5030d2f9bfd
[ "Apache-2.0" ]
41
2019-08-21T22:43:11.000Z
2022-03-30T03:22:35.000Z
# # imports # import pprint import argparse from pyats.topology import loader from genie.libs.parser.nxos.show_bgp import ShowBgpProcessVrfAll def load(testbed, device_name): tb = loader.load(testbed) try: return tb.devices[device_name] except KeyError as e: raise KeyError("Could not find...
28.859649
71
0.646201