hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
11fd108bc639c00e56343449b15b63cee71ed98f
27,541
py
Python
talent/google/cloud/talent_v4beta1/gapic/company_service_client.py
DaveCheez/google-cloud-python
fc03d4d41f13e9d13db7206438163b3a471fdabd
[ "Apache-2.0" ]
null
null
null
talent/google/cloud/talent_v4beta1/gapic/company_service_client.py
DaveCheez/google-cloud-python
fc03d4d41f13e9d13db7206438163b3a471fdabd
[ "Apache-2.0" ]
null
null
null
talent/google/cloud/talent_v4beta1/gapic/company_service_client.py
DaveCheez/google-cloud-python
fc03d4d41f13e9d13db7206438163b3a471fdabd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
41.53997
151
0.612033
6c14cccfb30e297b0d006cf699609b330d4f4f0d
6,118
py
Python
esrally/log.py
alexsapran/rally
6c4164bcc681b267feac969c100809964aac9c8f
[ "Apache-2.0" ]
2
2019-04-11T10:45:11.000Z
2019-06-05T15:24:05.000Z
esrally/log.py
alexsapran/rally
6c4164bcc681b267feac969c100809964aac9c8f
[ "Apache-2.0" ]
null
null
null
esrally/log.py
alexsapran/rally
6c4164bcc681b267feac969c100809964aac9c8f
[ "Apache-2.0" ]
null
null
null
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
40.25
139
0.680615
a3725bdc3f12580b8310b1115e34abf0f1e083ca
674
py
Python
students/K33401/Klishin_Nikita/Lr_3/peer_review_system/manage.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
4
2020-09-03T15:41:42.000Z
2021-12-24T15:28:20.000Z
students/K33401/Klishin_Nikita/Lr_3/peer_review_system/manage.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
48
2020-09-13T20:22:42.000Z
2021-04-30T11:13:30.000Z
students/K33401/Klishin_Nikita/Lr_3/peer_review_system/manage.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
69
2020-09-06T10:32:37.000Z
2021-11-28T18:13:17.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'peer_review_system.settings') try: from django.core.management import execute_from_command_line ...
29.304348
82
0.683976
44523a50564b4376c24be98aad1f8b2090959c7f
7,638
py
Python
chrome/common/extensions/docs/server2/api_list_data_source_test.py
shaochangbin/chromium-crosswalk
634d34e4cf82b4f7400357c53ec12efaffe94add
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-16T03:57:28.000Z
2021-01-23T15:29:45.000Z
chrome/common/extensions/docs/server2/api_list_data_source_test.py
shaochangbin/chromium-crosswalk
634d34e4cf82b4f7400357c53ec12efaffe94add
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/common/extensions/docs/server2/api_list_data_source_test.py
shaochangbin/chromium-crosswalk
634d34e4cf82b4f7400357c53ec12efaffe94add
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2017-03-15T13:21:38.000Z
2017-03-15T13:21:38.000Z
#!/usr/bin/env python # Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest import json from api_list_data_source import APIListDataSource from extensions_paths import CHROME_EXTENSIONS from ser...
31.17551
80
0.567819
641aad101b3666e6b27e675bc56de8904532fbbb
7,134
py
Python
contexto/utils/stanza_funcs.py
sergiomora03/ConTexto
6e67f13222c9b6310b4c3d112bd5c7fead7fe100
[ "X11" ]
null
null
null
contexto/utils/stanza_funcs.py
sergiomora03/ConTexto
6e67f13222c9b6310b4c3d112bd5c7fead7fe100
[ "X11" ]
null
null
null
contexto/utils/stanza_funcs.py
sergiomora03/ConTexto
6e67f13222c9b6310b4c3d112bd5c7fead7fe100
[ "X11" ]
null
null
null
import os import stanza import torch def stanza_pipeline(lenguaje, procesadores='tokenize, pos, lemma', modelo_lemas='', modelo_ner='', modelo_pos=''): """ Carga y retorna un pipeline, o flujo de trabajo, de Stanza del y lenguaje y con los procesos \ especificados por el usuario. L...
57.532258
121
0.695402
7eeb4d9cc91b04bdce54dd0fdf76feb816774470
7,147
py
Python
common_files/slack_helpers.py
ycaoT/socless-slack
887a486eb5ff29e168d4dba183193f4920a52247
[ "Apache-2.0" ]
8
2019-10-21T03:53:53.000Z
2020-05-21T23:53:31.000Z
common_files/slack_helpers.py
ycaoT/socless-slack
887a486eb5ff29e168d4dba183193f4920a52247
[ "Apache-2.0" ]
11
2019-10-23T22:02:56.000Z
2021-08-04T19:14:10.000Z
common_files/slack_helpers.py
ycaoT/socless-slack
887a486eb5ff29e168d4dba183193f4920a52247
[ "Apache-2.0" ]
12
2019-10-03T20:45:52.000Z
2021-12-07T19:08:17.000Z
import os import boto3 from slack_sdk import WebClient from slack_sdk.signature import SignatureVerifier from slack_sdk.web.slack_response import SlackResponse CACHE_USERS_TABLE = os.environ.get("CACHE_USERS_TABLE") SOCLESS_BOT_TOKEN = os.environ["SOCLESS_BOT_TOKEN"] class SlackError(Exception): pass def is_ev...
36.09596
122
0.613404
59e76e2cd233cf99cdb241fb7d26926426a14dc4
7,236
py
Python
src/cogent3/maths/stats/period.py
tla256/cogent3
58533d11852d0cafbc0cfc6ae26429a6c0b2cb75
[ "BSD-3-Clause" ]
null
null
null
src/cogent3/maths/stats/period.py
tla256/cogent3
58533d11852d0cafbc0cfc6ae26429a6c0b2cb75
[ "BSD-3-Clause" ]
null
null
null
src/cogent3/maths/stats/period.py
tla256/cogent3
58533d11852d0cafbc0cfc6ae26429a6c0b2cb75
[ "BSD-3-Clause" ]
null
null
null
from random import choice, random, shuffle import numpy from cogent3.maths.stats.special import igam try: from math import factorial except ImportError: # python version < 2.6 from cogent3.maths.stats.special import Gamma factorial = lambda x: Gamma(x + 1) __author__ = "Hua Ying, Julien Epps and Gav...
28.046512
88
0.61194
ca1d27b8cc6cdac0f667035199bf809c88b3e5b1
4,013
py
Python
yoyo/tests/test_connections.py
Varriount/Yoyo
4530c575af6e749875ca12aeaba574d1c8ac21e4
[ "Apache-2.0" ]
null
null
null
yoyo/tests/test_connections.py
Varriount/Yoyo
4530c575af6e749875ca12aeaba574d1c8ac21e4
[ "Apache-2.0" ]
null
null
null
yoyo/tests/test_connections.py
Varriount/Yoyo
4530c575af6e749875ca12aeaba574d1c8ac21e4
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Oliver Cope # # 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, ...
30.172932
79
0.57837
a9bccb9c56473a7c84d744f92e85edb4d9714d6b
7,808
py
Python
insights/util/__init__.py
akshay196/insights-core
598865e6563119089c77152599300de38a77c72c
[ "Apache-2.0" ]
null
null
null
insights/util/__init__.py
akshay196/insights-core
598865e6563119089c77152599300de38a77c72c
[ "Apache-2.0" ]
10
2018-04-16T15:38:04.000Z
2018-05-15T18:43:02.000Z
insights/util/__init__.py
akshay196/insights-core
598865e6563119089c77152599300de38a77c72c
[ "Apache-2.0" ]
null
null
null
import collections import inspect import logging import functools import platform import os import warnings TMP_DIR = os.path.join("/tmp", "insights-web") logger = logging.getLogger(__name__) TRUTH = { "true": True, "false": False, "yes": True, "no": False, "1": True, "0": False } def parse_...
28.49635
97
0.604892
1eef578a496b10f4f5962426bb1cfdb80ec976b5
3,868
py
Python
blink/identify.py
S-Anmol/MishMash
6b260cf61c3a960d06a47dbf64b78332c68d3229
[ "MIT" ]
null
null
null
blink/identify.py
S-Anmol/MishMash
6b260cf61c3a960d06a47dbf64b78332c68d3229
[ "MIT" ]
18
2020-06-06T01:00:30.000Z
2022-03-29T22:29:04.000Z
blink/identify.py
S-Anmol/MishMash
6b260cf61c3a960d06a47dbf64b78332c68d3229
[ "MIT" ]
null
null
null
import face_recognition import cv2 import numpy as np # This is a demo of running face recognition on live video from your webcam. It's a little more complicated than the # other example, but it includes some basic performance tweaks to make things run a lot faster: # 1. Process each video frame at 1/4 resolution (t...
38.68
116
0.691055
3839e69ccbfad005398b3eb8a3c198cb1adfb097
4,579
py
Python
ryu/lib/packet/packet_utils.py
umkcdcrg01/ryu_openflow
37ed5b88f7d119344e07c95314a7450235c037a8
[ "Apache-2.0" ]
269
2015-03-08T11:32:45.000Z
2022-03-30T11:18:16.000Z
ryu/lib/packet/packet_utils.py
umkcdcrg01/ryu_openflow
37ed5b88f7d119344e07c95314a7450235c037a8
[ "Apache-2.0" ]
2
2018-12-23T13:52:26.000Z
2021-10-31T13:01:43.000Z
ryu/lib/packet/packet_utils.py
umkcdcrg01/ryu_openflow
37ed5b88f7d119344e07c95314a7450235c037a8
[ "Apache-2.0" ]
205
2015-01-13T04:52:25.000Z
2022-03-30T13:37:33.000Z
# Copyright (C) 2012 Nippon Telegraph and Telephone 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 appli...
33.423358
72
0.389168
5eadc7c231376ea282676802b0603e744ee7faab
4,994
py
Python
src/neocities_sync/cmdline.py
kugland/neocities-sync
35b75871b8a0c1fce793ea82a2641a24d1a959e0
[ "MIT" ]
2
2021-11-30T17:39:56.000Z
2021-12-05T02:00:36.000Z
src/neocities_sync/cmdline.py
kugland/neocities-sync
35b75871b8a0c1fce793ea82a2641a24d1a959e0
[ "MIT" ]
null
null
null
src/neocities_sync/cmdline.py
kugland/neocities-sync
35b75871b8a0c1fce793ea82a2641a24d1a959e0
[ "MIT" ]
null
null
null
"""Parse command line arguments.""" from argparse import ArgumentParser from dataclasses import dataclass from typing import List from .config import config_file_path, config_file_path_unexpanded @dataclass class CmdlineOptions: """Command line options.""" sites: List[str] = None quietness: int = 0 ...
30.45122
111
0.588706
88026160ff81ab0d77d58fba18f73fa09f515df5
460
py
Python
data/scripts/templates/object/tangible/lair/base/shared_poi_all_lair_warren_large_fog_red.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/lair/base/shared_poi_all_lair_warren_large_fog_red.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/lair/base/shared_poi_all_lair_warren_large_fog_red.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/lair/base/shared_poi_all_lair_warren_large_fog_red.iff" result.attr...
27.058824
91
0.732609
649ec0ac2cdb92cbf61a4d2da6320d334cbc683f
2,097
py
Python
color_recognition/scripts/color_recognition_server.py
Nishida-Lab/motoman_interaction
bbe5119c08ef4e84d5559e243dcc19e19de55c77
[ "BSD-3-Clause" ]
1
2018-08-20T07:16:23.000Z
2018-08-20T07:16:23.000Z
color_recognition/scripts/color_recognition_server.py
Nishida-Lab/motoman_interaction
bbe5119c08ef4e84d5559e243dcc19e19de55c77
[ "BSD-3-Clause" ]
4
2018-01-16T14:40:11.000Z
2018-02-02T03:58:08.000Z
color_recognition/scripts/color_recognition_server.py
Nishida-Lab/motoman_interaction
bbe5119c08ef4e84d5559e243dcc19e19de55c77
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import rospy from motoman_interaction_msgs.msg import StringArrayWithStatus from motoman_interaction_msgs.msg import ImageArray from motoman_interaction_msgs.srv import * from cv_bridge import CvBridge, CvBridgeError import cv2 from recognition_class_ import * class ColorRecognitionServer: ...
27.592105
91
0.671435
948807f69e7efeb733ce61c512217dfe6e7038b7
5,186
py
Python
var/spack/repos/builtin/packages/pocl/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/pocl/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2021-01-08T22:23:53.000Z
2022-03-30T11:08:17.000Z
var/spack/repos/builtin/packages/pocl/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os from spack import * from spack.package_test import compile_c_and_execute, compare_output_file class Pocl(CMak...
44.324786
94
0.653876
a8eadf9e95926072e2a30c69aa323df0f81d3ae3
5,620
py
Python
tests/test_randomized_propensity.py
zoltuz/bioscrape
bf0f1d4b6f68f265fc208733b75ec16c36a28688
[ "MIT" ]
16
2017-11-16T02:22:25.000Z
2020-06-15T20:36:44.000Z
tests/test_randomized_propensity.py
zoltuz/bioscrape
bf0f1d4b6f68f265fc208733b75ec16c36a28688
[ "MIT" ]
39
2018-10-11T18:01:53.000Z
2020-06-08T19:13:16.000Z
tests/test_randomized_propensity.py
zoltuz/bioscrape
bf0f1d4b6f68f265fc208733b75ec16c36a28688
[ "MIT" ]
15
2018-04-18T03:09:07.000Z
2020-06-26T18:02:23.000Z
import warnings, os # We don't want warnings in dependencies to show up in bioscrape's tests. with warnings.catch_warnings(): warnings.simplefilter("ignore") import numpy as np import pylab as plt import random import pytest import test_utils from bioscrape.simulator import * from bioscrape.types import * # See...
31.049724
119
0.698577
a03b1098e2b08062c34ae83892b66e60509e74fb
34
py
Python
sdk/template/azure-template/azure/template/_version.py
16pierre/azure-sdk-for-python
1505d348c6660c1d5a39630522a059a2e3e38839
[ "MIT" ]
1
2020-05-12T23:29:15.000Z
2020-05-12T23:29:15.000Z
sdk/template/azure-template/azure/template/_version.py
16pierre/azure-sdk-for-python
1505d348c6660c1d5a39630522a059a2e3e38839
[ "MIT" ]
null
null
null
sdk/template/azure-template/azure/template/_version.py
16pierre/azure-sdk-for-python
1505d348c6660c1d5a39630522a059a2e3e38839
[ "MIT" ]
null
null
null
# matches SEMVER VERSION = "0.0.3"
17
17
0.676471
6e27cf1e12d65217cd89d7b4e2f1ee181ecfda68
1,896
py
Python
2021/day14.py
astonshane/AdventOfCode
25c7380e73eede3f79287de6a9dedc8314ab7965
[ "MIT" ]
null
null
null
2021/day14.py
astonshane/AdventOfCode
25c7380e73eede3f79287de6a9dedc8314ab7965
[ "MIT" ]
null
null
null
2021/day14.py
astonshane/AdventOfCode
25c7380e73eede3f79287de6a9dedc8314ab7965
[ "MIT" ]
null
null
null
from pprint import pprint import math def factorize(base): pairs = {} for i in range(0, len(base)-1): pair = base[i:i+2] pairs[pair] = pairs.get(pair, 0) + 1 return pairs def iterate(base, rules, steps): pairs = factorize(base) for i in range(0, steps): new_pairs = {} ...
26.333333
124
0.553797
b90a5b1ffd56522eaaa1c63b6798d07be85e5f3f
2,789
py
Python
jmapi/routes/data.py
genwch/jmapi
7a473801dc2f7c487f6cf59046a2dbeaa93e4c2c
[ "MIT" ]
null
null
null
jmapi/routes/data.py
genwch/jmapi
7a473801dc2f7c487f6cf59046a2dbeaa93e4c2c
[ "MIT" ]
null
null
null
jmapi/routes/data.py
genwch/jmapi
7a473801dc2f7c487f6cf59046a2dbeaa93e4c2c
[ "MIT" ]
null
null
null
from abc import ABC from fastapi_pagination import Page, paginate, add_pagination from typing import Optional from fastapi import APIRouter, Depends from .auth import oauth2_scheme, token2user import models as mod from jmapi import lib as lib class data_rt(ABC): def __init__(self, mod_name, debug=False): ...
40.42029
101
0.617784
b838bed42a05bbe4d6e29cc3a6eeb85890dfcc73
673
py
Python
bin/rst2s5.py
incognitoRepo/hdlogger
c738161ef3144469ba0f47caf89770613031e96e
[ "BSD-2-Clause" ]
null
null
null
bin/rst2s5.py
incognitoRepo/hdlogger
c738161ef3144469ba0f47caf89770613031e96e
[ "BSD-2-Clause" ]
null
null
null
bin/rst2s5.py
incognitoRepo/hdlogger
c738161ef3144469ba0f47caf89770613031e96e
[ "BSD-2-Clause" ]
null
null
null
#!/Users/alberthan/VSCodeProjects/hdlogger/bin/python3 # $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: Chris Liechti <cliechti@gmx.net> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML slides using the S5 template system. "...
26.92
74
0.7474
3291b3f7d3f248276f426e76c152f45a7aa6e8a8
14,039
py
Python
neural_compressor/ux/utils/workload/workload.py
mdfaijul/neural-compressor
e1d59da3790f9ff9647a21d2ff23da98c78a9682
[ "Apache-2.0" ]
100
2020-12-01T02:40:12.000Z
2021-09-09T08:14:22.000Z
neural_compressor/ux/utils/workload/workload.py
mdfaijul/neural-compressor
e1d59da3790f9ff9647a21d2ff23da98c78a9682
[ "Apache-2.0" ]
25
2021-01-05T00:16:17.000Z
2021-09-10T03:24:01.000Z
neural_compressor/ux/utils/workload/workload.py
mdfaijul/neural-compressor
e1d59da3790f9ff9647a21d2ff23da98c78a9682
[ "Apache-2.0" ]
25
2020-12-01T19:07:08.000Z
2021-08-30T14:20:07.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021 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 applicab...
37.140212
97
0.630387
b5318e367ba3b13c80e226b40ff7c29cc7d4fc2d
573
py
Python
diventi/landing/migrations/0076_auto_20190524_0740.py
flavoi/diven
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
[ "Apache-2.0" ]
2
2019-06-27T16:00:17.000Z
2020-08-14T07:46:05.000Z
diventi/landing/migrations/0076_auto_20190524_0740.py
flavoi/diven
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
[ "Apache-2.0" ]
26
2020-02-15T22:39:35.000Z
2022-02-19T21:09:01.000Z
diventi/landing/migrations/0076_auto_20190524_0740.py
flavoi/diven
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
[ "Apache-2.0" ]
1
2021-11-12T22:30:15.000Z
2021-11-12T22:30:15.000Z
# Generated by Django 2.2.1 on 2019-05-24 05:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('landing', '0075_auto_20190524_0738'), ] operations = [ migrations.AlterField( model_name='feature', name='color', ...
30.157895
237
0.596859
bf9a2fc56e674683ec4c009f32bf55ff63e08fc7
5,425
py
Python
glance/common/scripts/api_image_import/main.py
bwLehrpool/glance
d4119be0543bdaefe78fc11e16c3a01b55aa9e3a
[ "Apache-2.0" ]
null
null
null
glance/common/scripts/api_image_import/main.py
bwLehrpool/glance
d4119be0543bdaefe78fc11e16c3a01b55aa9e3a
[ "Apache-2.0" ]
null
null
null
glance/common/scripts/api_image_import/main.py
bwLehrpool/glance
d4119be0543bdaefe78fc11e16c3a01b55aa9e3a
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 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...
39.889706
79
0.640737
0ba76c194fbedcd7c1f5b9e6978060d2039b1ff2
23,824
py
Python
elephant/test/test_statistics.py
mer0mingian/elephant
28e37f7e7769b67023361236d59692056c564815
[ "BSD-3-Clause" ]
2
2015-07-21T12:29:50.000Z
2021-07-27T12:54:10.000Z
elephant/test/test_statistics.py
mer0mingian/elephant
28e37f7e7769b67023361236d59692056c564815
[ "BSD-3-Clause" ]
2
2017-01-23T12:33:33.000Z
2017-04-24T09:49:24.000Z
elephant/test/test_statistics.py
ccluri/elephant
f2af72cac2c65ee01ecf5ae1de1a1ef624b042ee
[ "BSD-3-Clause" ]
1
2019-04-11T08:22:24.000Z
2019-04-11T08:22:24.000Z
# -*- coding: utf-8 -*- """ Unit tests for the statistics module. :copyright: Copyright 2014-2016 by the Elephant team, see AUTHORS.txt. :license: Modified BSD, see LICENSE.txt for details. """ import unittest import neo import numpy as np from numpy.testing.utils import assert_array_almost_equal, assert_array_equal...
43.00361
101
0.594317
bd84c11e13b68e5d17369d37e755648c2c02f6df
655
py
Python
.history/my_classes/FirstClassFunctions/reducing_functions_20210707135727.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FirstClassFunctions/reducing_functions_20210707135727.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FirstClassFunctions/reducing_functions_20210707135727.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
"""Reducing Functions in Python These are functions that recombine an iterable recursively, ending up with a single return value Also called accumulators, aggregators, or folding functions Example: Finding the maximum value in an iterable a0, a1, a2, ...,, aN-1 max(a, b) _> maximum of a and b result =a0 r...
21.833333
96
0.679389
331efde6c68516999db7065bdbbada22ce0ad7c4
1,648
py
Python
departure/provider/transilien/transilien.py
Woll78/departure-python
86eccd40291ad560d5859a120dd6c99aa5c4bd12
[ "MIT" ]
4
2020-10-18T18:12:04.000Z
2022-03-31T19:13:08.000Z
departure/provider/transilien/transilien.py
Woll78/departure-python
86eccd40291ad560d5859a120dd6c99aa5c4bd12
[ "MIT" ]
null
null
null
departure/provider/transilien/transilien.py
Woll78/departure-python
86eccd40291ad560d5859a120dd6c99aa5c4bd12
[ "MIT" ]
1
2021-11-19T10:37:26.000Z
2021-11-19T10:37:26.000Z
from . import data, commons, api def check_params(station_id: str = None): if not any((station_id)): return stations = data.STATIONS if station_id is not None: try: _ = stations[station_id] except Exception as e: raise commons.TransilienException( ...
24.235294
74
0.595267
19901ce297d369045adc63a67a17fc1fce71744a
6,494
py
Python
homeassistant/components/wled/__init__.py
timmillwood/core
7737387efe8f592a913fe8c39a6991f9266a0b78
[ "Apache-2.0" ]
null
null
null
homeassistant/components/wled/__init__.py
timmillwood/core
7737387efe8f592a913fe8c39a6991f9266a0b78
[ "Apache-2.0" ]
null
null
null
homeassistant/components/wled/__init__.py
timmillwood/core
7737387efe8f592a913fe8c39a6991f9266a0b78
[ "Apache-2.0" ]
null
null
null
"""Support for WLED.""" import asyncio from datetime import timedelta import logging from typing import Any, Dict from wled import WLED, Device as WLEDDevice, WLEDConnectionError, WLEDError from homeassistant.components.light import DOMAIN as LIGHT_DOMAIN from homeassistant.components.sensor import DOMAIN as SENSOR_D...
31.371981
93
0.68494
10ad1a608f82daaf34cfd2e062e80a1ceae562cd
8,329
py
Python
iaso/management/commands/tree_importer.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
29
2020-12-26T07:22:19.000Z
2022-03-07T13:40:09.000Z
iaso/management/commands/tree_importer.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
150
2020-11-09T15:03:27.000Z
2022-03-07T15:36:07.000Z
iaso/management/commands/tree_importer.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
4
2020-11-09T10:38:13.000Z
2021-10-04T09:42:47.000Z
from django.core.management.base import BaseCommand import csv from iaso.models import OrgUnit, OrgUnitType, DataSource, SourceVersion, Project from django.contrib.gis.geos import Point from uuid import uuid4 from django.db import models, transaction from unidecode import unidecode import json DEFAULT_DATA_DICT = { ...
39.473934
112
0.509425
963186328c814088eb97a706d1fb4565adc03501
1,370
py
Python
src/molecule/status.py
prity-k/molecule
4fe7e046b8d24dda91c783e7477331ea66b7dbc1
[ "MIT" ]
1,599
2015-11-18T01:40:26.000Z
2018-10-29T16:42:52.000Z
src/molecule/status.py
prity-k/molecule
4fe7e046b8d24dda91c783e7477331ea66b7dbc1
[ "MIT" ]
1,232
2015-11-18T16:56:02.000Z
2018-10-27T03:51:50.000Z
src/molecule/status.py
prity-k/molecule
4fe7e046b8d24dda91c783e7477331ea66b7dbc1
[ "MIT" ]
290
2015-11-19T18:16:41.000Z
2018-10-29T18:09:13.000Z
# Copyright (c) 2015-2018 Cisco Systems, 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 restriction, including without limitation the # rights to use, copy, modify, merge...
40.294118
79
0.753285
77711f14c4c39b1345e46a393f5f0ac1712717ca
3,850
py
Python
database_helper.py
Bluewolf787/Terminal-Login
bbbdabd7714e70cab99d8c93cdda5ca867823e49
[ "MIT" ]
null
null
null
database_helper.py
Bluewolf787/Terminal-Login
bbbdabd7714e70cab99d8c93cdda5ca867823e49
[ "MIT" ]
null
null
null
database_helper.py
Bluewolf787/Terminal-Login
bbbdabd7714e70cab99d8c93cdda5ca867823e49
[ "MIT" ]
null
null
null
import sqlite3 # This function is used to connect to the DB def connect(): try: return sqlite3.connect('test.db') # Return the connection except (Exception, sqlite3.ProgrammingError) as error: print(error) # This function is used to create a users table in the DB def create_users_table(): ...
42.307692
108
0.660779
78c5b7831b043d1cffd421202252cb6ca0acc2ad
1,091
py
Python
jirani/migrations/0010_auto_20181018_1212.py
samsoluoch/Neighborhood
8a05b3882290765e06c72c1609767ec36056ba24
[ "MIT" ]
null
null
null
jirani/migrations/0010_auto_20181018_1212.py
samsoluoch/Neighborhood
8a05b3882290765e06c72c1609767ec36056ba24
[ "MIT" ]
null
null
null
jirani/migrations/0010_auto_20181018_1212.py
samsoluoch/Neighborhood
8a05b3882290765e06c72c1609767ec36056ba24
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-10-18 09:12 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('jirani', '0009_auto_20181018_0906'), ] operations = [ migrations.RenameModel(...
25.372093
61
0.543538
d70f28ae827fcc4ac75638c153aa7765f4116496
19,652
py
Python
trainval_net_ori.py
yangdb/RD-IOD
64beb2e1efe823185adc0feb338a900f1a7df7a7
[ "AFL-1.1" ]
1
2022-03-11T03:08:04.000Z
2022-03-11T03:08:04.000Z
trainval_net_ori.py
yangdb/RD-IOD
64beb2e1efe823185adc0feb338a900f1a7df7a7
[ "AFL-1.1" ]
3
2022-03-07T03:04:34.000Z
2022-03-25T12:28:09.000Z
trainval_net_ori.py
yangdb/RD-IOD
64beb2e1efe823185adc0feb338a900f1a7df7a7
[ "AFL-1.1" ]
null
null
null
# -------------------------------------------------------- # Pytorch multi-GPU Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Jiasen Lu, Jianwei Yang, based on code from Ross Girshick # -------------------------------------------------------- from __future__ import absolute_import ...
41.812766
162
0.631539
3c9238ce7c081f48a1efefb84c3e4c3e6b9b232b
1,781
py
Python
htdocs/views.py
aodarc/bysines_blog
c860af7a9625f454964baf8eae4b5f4a4586cf76
[ "Apache-2.0" ]
1
2016-09-16T23:38:02.000Z
2016-09-16T23:38:02.000Z
htdocs/views.py
aodarc/bysines_blog
c860af7a9625f454964baf8eae4b5f4a4586cf76
[ "Apache-2.0" ]
null
null
null
htdocs/views.py
aodarc/bysines_blog
c860af7a9625f454964baf8eae4b5f4a4586cf76
[ "Apache-2.0" ]
null
null
null
from django import http from django.conf import settings from django.core.urlresolvers import translate_url from django.utils.http import is_safe_url from django.utils.translation import ( LANGUAGE_SESSION_KEY, check_for_language, ) LANGUAGE_QUERY_PARAMETER = 'language' def set_language(request): """ Red...
41.418605
79
0.663111
bbfcfd4d55373439b19ca12bc74f00deb402c8ad
229
py
Python
screen.py
Zmotive/xArm_Control
cf0c03fe320772ba8118d29b56c891e63ecca9c3
[ "MIT" ]
3
2021-01-05T21:57:48.000Z
2021-03-12T18:15:53.000Z
screen.py
Zmotive/xArm_Control
cf0c03fe320772ba8118d29b56c891e63ecca9c3
[ "MIT" ]
null
null
null
screen.py
Zmotive/xArm_Control
cf0c03fe320772ba8118d29b56c891e63ecca9c3
[ "MIT" ]
1
2021-07-29T12:53:29.000Z
2021-07-29T12:53:29.000Z
from os import system, name # define our clear function def clear(): # for windows if name == 'nt': _ = system('cls') # for mac and linux(here, os.name is 'posix') else: _ = system('clear')
17.615385
53
0.554585
d88e2162f150b2a0e26435c730962a68ce3d3693
6,324
py
Python
src/indra_cogex/sources/cbioportal/__init__.py
STIRLIN6/indra_cogex
552cefd71431b08b8118b2cc0428fd8681e6fc83
[ "BSD-2-Clause" ]
null
null
null
src/indra_cogex/sources/cbioportal/__init__.py
STIRLIN6/indra_cogex
552cefd71431b08b8118b2cc0428fd8681e6fc83
[ "BSD-2-Clause" ]
null
null
null
src/indra_cogex/sources/cbioportal/__init__.py
STIRLIN6/indra_cogex
552cefd71431b08b8118b2cc0428fd8681e6fc83
[ "BSD-2-Clause" ]
null
null
null
import re import logging import pandas as pd from collections import defaultdict from pathlib import Path from typing import Union import gilda import pystow from indra.databases import hgnc_client from indra_cogex.representation import Node, Relation from indra_cogex.sources.processor import Processor logger = lo...
33.109948
82
0.528937
abb8ebf97cc206ff0ba62a48c6add688ee06c5a4
8,731
py
Python
marcottievents/models/common/overview.py
soccermetrics/marcotti-events
759f3a4ee130fa155fd48e216ef6197a69ee2a33
[ "MIT" ]
22
2015-12-14T20:38:32.000Z
2020-12-26T07:40:26.000Z
marcottievents/models/common/overview.py
soccermetrics/marcotti-events
759f3a4ee130fa155fd48e216ef6197a69ee2a33
[ "MIT" ]
null
null
null
marcottievents/models/common/overview.py
soccermetrics/marcotti-events
759f3a4ee130fa155fd48e216ef6197a69ee2a33
[ "MIT" ]
6
2015-12-20T05:08:57.000Z
2020-06-28T23:57:31.000Z
import uuid from datetime import date from sqlalchemy import (case, select, cast, Column, Integer, Numeric, Date, String, Sequence, ForeignKey, Unicode, Index) from sqlalchemy.orm import relationship, backref from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.schema import CheckC...
36.839662
118
0.640133
89e4859ceed12595af12487412a2e2e34f34b6a9
130
py
Python
python/coursera_python/MICHIGAN/WEB/test/find_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/WEB/test/find_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/WEB/test/find_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# To use the find function hand = open('test.txt') for line in hand: line=line.rstrip() if line.find("from")>=0: print(line)
16.25
26
0.661538
68b93f53a5d3ddeee03146793b4dd4e86f49d96a
9,764
py
Python
machine_learning_course/LAB03/main.py
arekmula/MachineLearningCourse
5966dd2ad0ee23ef8f84d218a9f64e345900402e
[ "MIT" ]
null
null
null
machine_learning_course/LAB03/main.py
arekmula/MachineLearningCourse
5966dd2ad0ee23ef8f84d218a9f64e345900402e
[ "MIT" ]
null
null
null
machine_learning_course/LAB03/main.py
arekmula/MachineLearningCourse
5966dd2ad0ee23ef8f84d218a9f64e345900402e
[ "MIT" ]
null
null
null
from sklearn import datasets, svm from sklearn.ensemble import RandomForestClassifier from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split, GridSearchCV from sklearn.preprocessing import MinMaxScaler, StandardScaler from sklearn.tree import DecisionTreeClassifier from s...
45.203704
118
0.635293
9391d07a63a40ed8b5d33fdffabaa018e777ad68
4,517
py
Python
qa/rpc-tests/mempool_reorg.py
bcgssystem/bcgt
17b12766577615d48017da72f16129d25025fe8f
[ "MIT" ]
null
null
null
qa/rpc-tests/mempool_reorg.py
bcgssystem/bcgt
17b12766577615d48017da72f16129d25025fe8f
[ "MIT" ]
null
null
null
qa/rpc-tests/mempool_reorg.py
bcgssystem/bcgt
17b12766577615d48017da72f16129d25025fe8f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The DigiByte Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test re-org scenarios with a mempool that contains transactions # that spend (directly or indirectly...
44.284314
122
0.684747
20003072495e282316a02bfc24153b241c1f5f8f
3,617
py
Python
src/02_video_read_write.py
fpecek/opencv-introduction
7a6cf39b69e8a238364c36736c6750390554e8e3
[ "Apache-2.0" ]
null
null
null
src/02_video_read_write.py
fpecek/opencv-introduction
7a6cf39b69e8a238364c36736c6750390554e8e3
[ "Apache-2.0" ]
null
null
null
src/02_video_read_write.py
fpecek/opencv-introduction
7a6cf39b69e8a238364c36736c6750390554e8e3
[ "Apache-2.0" ]
null
null
null
''' OpenCV provides two clases for working with video: VideoCapture and VideoWriter ''' import numpy as np import matplotlib.pyplot as plt import cv2 import time #unique interface for diverse number of video sources usb_cam_address = "/dev/video0" #or just 0 file_address = "img/movie.mp4" stream_url_address = "rtsp:/...
28.480315
127
0.651092
0362bc7f1ef6b6aaacf0ae21cb270f196ba06a1e
1,328
py
Python
setup.py
proxyport/scrapy-proxyport
cd96f0abf503f89d0b31d40bebce3bd6a0668e64
[ "MIT" ]
null
null
null
setup.py
proxyport/scrapy-proxyport
cd96f0abf503f89d0b31d40bebce3bd6a0668e64
[ "MIT" ]
null
null
null
setup.py
proxyport/scrapy-proxyport
cd96f0abf503f89d0b31d40bebce3bd6a0668e64
[ "MIT" ]
null
null
null
import os from setuptools import find_packages, setup here = os.path.abspath(os.path.dirname(__file__)) NAME = 'scrapyproxyport' DESCRIPTION = 'Proxy Port integration for Scrapy.' URL = 'https://github.com/proxyport/scrapy-proxyport' EMAIL = 'proxyportcom@gmail.com' AUTHOR = 'Proxy Port' REQUIRES_PYTHON = '>=3.6.0'...
26.039216
72
0.669428
d67ee5c237adbedf882d3f9a8866a4e929c86a6c
657
py
Python
examples/HELICS/setup.py
cloudcomputingabc/volttron
6495e26e3185a7af8d0d79ad2586bdf8ea83992d
[ "Apache-2.0", "BSD-2-Clause" ]
406
2015-01-20T03:08:53.000Z
2022-03-31T20:59:07.000Z
examples/HELICS/setup.py
cloudcomputingabc/volttron
6495e26e3185a7af8d0d79ad2586bdf8ea83992d
[ "Apache-2.0", "BSD-2-Clause" ]
2,031
2015-01-05T21:35:45.000Z
2022-03-29T21:44:36.000Z
examples/HELICS/setup.py
cloudcomputingabc/volttron
6495e26e3185a7af8d0d79ad2586bdf8ea83992d
[ "Apache-2.0", "BSD-2-Clause" ]
219
2015-01-20T14:53:57.000Z
2022-03-06T00:37:41.000Z
from setuptools import setup, find_packages MAIN_MODULE = 'agent' # Find the agent package that contains the main module packages = find_packages('.') agent_package = 'helics_example' # Find the version number from the main module agent_module = agent_package + '.' + MAIN_MODULE _temp = __import__(agent_module, glob...
24.333333
73
0.684932
eccdeefc68ceb73e42111d1001a709402a15a8c8
1,023
py
Python
rdmo/questions/migrations/0043_django2.py
Raspeanut/rdmo
9f785010a499c372a2f8368ccf76d2ea4150adcb
[ "Apache-2.0" ]
77
2016-08-09T11:40:20.000Z
2022-03-06T11:03:26.000Z
rdmo/questions/migrations/0043_django2.py
Raspeanut/rdmo
9f785010a499c372a2f8368ccf76d2ea4150adcb
[ "Apache-2.0" ]
377
2016-07-01T13:59:36.000Z
2022-03-30T13:53:19.000Z
rdmo/questions/migrations/0043_django2.py
Raspeanut/rdmo
9f785010a499c372a2f8368ccf76d2ea4150adcb
[ "Apache-2.0" ]
47
2016-06-23T11:32:19.000Z
2022-03-01T11:34:37.000Z
# Generated by Django 2.2rc1 on 2019-03-26 13:29 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('questions', '0042_remove_null_true'), ] operations = [ migrations.AlterModelOptions( name='catalog', options={'ordering': (...
34.1
126
0.597263
0bb950e4046a19e5a2e74b131cb17161e61889a4
1,356
py
Python
covidDataset.py
weishancc/COVID19-SA
d4c8e2ed70df67e21e49671d9905312be89e5647
[ "MIT" ]
2
2020-12-23T01:37:55.000Z
2022-03-10T09:24:05.000Z
covidDataset.py
weishancc/COVID19-SA
d4c8e2ed70df67e21e49671d9905312be89e5647
[ "MIT" ]
null
null
null
covidDataset.py
weishancc/COVID19-SA
d4c8e2ed70df67e21e49671d9905312be89e5647
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Turn #Covid-19 of ig posts into Bert input format, which contains: - tokens_tensor - segments_tensor - label_tensor """ import torch from torch.utils.data import Dataset class CovidDataset(Dataset): # Init def __init__(self, df, tokenizer): self.df...
27.673469
70
0.584808
be3257100615b308971a6423435a8cd272d3d5a3
6,214
py
Python
docs/source/conf.py
aquatix/webhaak
c0636133256105e340df570a64c34170b2a94357
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
aquatix/webhaak
c0636133256105e340df570a64c34170b2a94357
[ "Apache-2.0" ]
3
2017-12-06T13:44:23.000Z
2021-03-25T09:19:48.000Z
docs/source/conf.py
aquatix/webhaak
c0636133256105e340df570a64c34170b2a94357
[ "Apache-2.0" ]
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 ------------------------------------------------------------...
29.875
110
0.648214
51d00f328f605b4d6b13f961d92723e7f951204a
997
py
Python
src/arrays/anagram.py
tmbothe/Data-Structures-and-algorithms
ba6bd0b302d16f84694acee1e1eb5d7f948ceeb2
[ "MIT" ]
null
null
null
src/arrays/anagram.py
tmbothe/Data-Structures-and-algorithms
ba6bd0b302d16f84694acee1e1eb5d7f948ceeb2
[ "MIT" ]
null
null
null
src/arrays/anagram.py
tmbothe/Data-Structures-and-algorithms
ba6bd0b302d16f84694acee1e1eb5d7f948ceeb2
[ "MIT" ]
null
null
null
from nose.tools import assert_equal def anagram(s1,s2): s1= s1.lower().replace(" ","") s2= s2.lower().replace(" ","") if len(s1)==0 or len(s2) ==0: return False elif len(s1) != len(s2): return False result={} for letter in s1: if letter in result: resu...
22.659091
53
0.539619
97d9422d75b045bc50a662149d3a3d8c2f67c364
2,008
py
Python
pyrlang/match.py
wayfair-contribs/Pyrlang
7599a9906840d6e8442b3382f7d3cdcb2208cd12
[ "Apache-2.0" ]
312
2018-09-25T08:14:04.000Z
2022-03-30T09:01:52.000Z
pyrlang/match.py
wayfair-contribs/Pyrlang
7599a9906840d6e8442b3382f7d3cdcb2208cd12
[ "Apache-2.0" ]
36
2018-09-24T11:04:33.000Z
2021-09-20T14:37:12.000Z
pyrlang/match.py
wayfair-contribs/Pyrlang
7599a9906840d6e8442b3382f7d3cdcb2208cd12
[ "Apache-2.0" ]
41
2018-11-06T20:29:32.000Z
2021-11-29T15:09:53.000Z
# Copyright 2018, Erlang Solutions Ltd, and S2HC Sweden AB # # 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...
27.506849
79
0.654382
4bb13f0b6ace5908035db98ca9ef23ec148ab61c
2,124
py
Python
script/Inference/others/demo_KSD.py
lamfeeling/Stein-Density-Ratio-Estimation
f3b8a3975d99ace5875e603414e0e6d989ceb1d6
[ "MIT" ]
8
2019-08-28T13:24:32.000Z
2019-11-01T04:04:45.000Z
script/Inference/others/demo_KSD.py
anewgithubname/Stein-Density-Ratio-Estimation
f3b8a3975d99ace5875e603414e0e6d989ceb1d6
[ "MIT" ]
null
null
null
script/Inference/others/demo_KSD.py
anewgithubname/Stein-Density-Ratio-Estimation
f3b8a3975d99ace5875e603414e0e6d989ceb1d6
[ "MIT" ]
null
null
null
from sdre.helper import * from scipy.optimize import minimize, Bounds, NonlinearConstraint from multiprocessing import Pool from socket import gethostname from time import time from kgof.kernel import KGauss import kgof.util as util from scipy import io as sio d = 2 n = 100 dimTheta = 2 logpBar = lambda ...
26.55
79
0.572505
578d89434381644d3417fcef2b5fa450ddf89855
2,473
py
Python
tests/local_server.py
EigenLab/WangDaChui
fc032949626c17f9050817c87b67ec933f6cee54
[ "MIT" ]
7
2018-08-13T15:10:20.000Z
2021-04-12T12:54:36.000Z
tests/local_server.py
EigenLab/WangDaChui
fc032949626c17f9050817c87b67ec933f6cee54
[ "MIT" ]
null
null
null
tests/local_server.py
EigenLab/WangDaChui
fc032949626c17f9050817c87b67ec933f6cee54
[ "MIT" ]
3
2018-08-13T13:48:35.000Z
2021-05-19T06:38:55.000Z
#!/usr/bin/env python # encoding: utf-8 """ 启动一个本地服务,用于测试 @author:nikan(859905874@qq.com) @file: local_server.py @time: 2018/8/1 上午2:49 """ import time import random from flask import Flask, request from flask_httpauth import HTTPBasicAuth, HTTPDigestAuth, MultiAuth from gevent.pywsgi import WSGIServer from tests....
20.957627
67
0.683785
e5562f35f0e512bf15f45029b7e10beabeb96338
1,096
py
Python
plugins/beebeeto/utils/payload/webshell/webshell.py
aliluyala/PocHunter
ff2d7e745eabd81ffb77920fe00813b17fc432cf
[ "MIT" ]
95
2016-07-05T12:44:25.000Z
2022-01-24T09:16:44.000Z
plugins/beebeeto/utils/payload/webshell/webshell.py
sigma-random/PocHunter
ff2d7e745eabd81ffb77920fe00813b17fc432cf
[ "MIT" ]
2
2016-10-24T09:35:24.000Z
2017-07-28T08:50:31.000Z
plugins/beebeeto/utils/payload/webshell/webshell.py
sigma-random/PocHunter
ff2d7e745eabd81ffb77920fe00813b17fc432cf
[ "MIT" ]
39
2016-06-13T07:47:39.000Z
2020-11-26T00:53:48.000Z
#author: fyth import requests class Webshell: _password = '' _content = '' _check_statement = '' _keyword = '' _check_data = {} def __init__(self, pwd='', content='', check='', keyword=''): if pwd: self._password = pwd if content: self._content = conten...
24.909091
83
0.596715
032329fcbba3051654fc6bd9822c540a3e9f8c44
13,691
py
Python
baselines/a2c/a2c.py
llach/baselines
22e72ad9d4c9bc61e98186d6dcb09bf53892a8c2
[ "MIT" ]
null
null
null
baselines/a2c/a2c.py
llach/baselines
22e72ad9d4c9bc61e98186d6dcb09bf53892a8c2
[ "MIT" ]
null
null
null
baselines/a2c/a2c.py
llach/baselines
22e72ad9d4c9bc61e98186d6dcb09bf53892a8c2
[ "MIT" ]
1
2018-08-15T14:32:26.000Z
2018-08-15T14:32:26.000Z
import time import json import functools import datetime import numpy as np import tensorflow as tf from baselines import logger from baselines.common import set_global_seeds, explained_variance from baselines.common import tf_util, colorize from baselines.common.policies import build_policy from forkan.common.utils...
37.612637
186
0.627785
e75894db5fe16380c2247f7684b6f509d986422f
13,438
py
Python
out/python/openapi_client/model/forecast_item.py
energychain/corrently-api
757b31214b1a82fed3bac4fcd1f51b54a58e7f8f
[ "MIT" ]
null
null
null
out/python/openapi_client/model/forecast_item.py
energychain/corrently-api
757b31214b1a82fed3bac4fcd1f51b54a58e7f8f
[ "MIT" ]
null
null
null
out/python/openapi_client/model/forecast_item.py
energychain/corrently-api
757b31214b1a82fed3bac4fcd1f51b54a58e7f8f
[ "MIT" ]
null
null
null
""" Corrently.io *Corrently - from italian corrente, which is energy* # Introduction The Corrently ecosystem gets maintained by [STROMDAO GmbH](https://www.stromdao.de/) to support green energy services for prosumers, grid operators, regulators, integrators or any other party with an emerging need of consensus...
47.822064
589
0.584164
66209ebd81ea57fad38eb2ff05808474acf92f63
1,405
py
Python
built.py
harmy/terraform-aws-lambda
d2a2f4bb223e086d4e0698a000aac62528b5104d
[ "MIT" ]
2
2019-01-29T13:56:35.000Z
2022-01-18T02:36:31.000Z
built.py
harmy/terraform-aws-lambda
d2a2f4bb223e086d4e0698a000aac62528b5104d
[ "MIT" ]
null
null
null
built.py
harmy/terraform-aws-lambda
d2a2f4bb223e086d4e0698a000aac62528b5104d
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 from __future__ import print_function import json import os import subprocess import sys # Parse the query. query = json.load(sys.stdin) build_command = query['build_command'] filename_old = query['filename_old'] filename_new = query['filename_new'] # If the old filename (from the Terrafor...
35.125
77
0.712456
1e7b3f1d1a69ff8e30aecb2145273b643ce84bbd
918
py
Python
src/staffordFile.py
JacobMannix/docker_development
c3f340ed62552078e7a83832aba4ec1da217dce0
[ "MIT" ]
null
null
null
src/staffordFile.py
JacobMannix/docker_development
c3f340ed62552078e7a83832aba4ec1da217dce0
[ "MIT" ]
null
null
null
src/staffordFile.py
JacobMannix/docker_development
c3f340ed62552078e7a83832aba4ec1da217dce0
[ "MIT" ]
null
null
null
# Jacob Mannix [09-09-2020] # stafford_file function to initially find the postTitle value and it it doesnt exist it will create one with a default value. # Import Dependencies import os # Function def staffordFile(file_path): postTitle = [] # Check if file exists if os.path.isfile(file_path): # ...
34
126
0.639434
733bfa46fb9b9e7ef619ec4281b9b626ca55b5d3
2,592
py
Python
conftest.py
BrotherGelo/Software-Testing_first_task
c46d5c000fdad2030c119e4cad3a8ba0a8d8aa3f
[ "Apache-2.0" ]
null
null
null
conftest.py
BrotherGelo/Software-Testing_first_task
c46d5c000fdad2030c119e4cad3a8ba0a8d8aa3f
[ "Apache-2.0" ]
null
null
null
conftest.py
BrotherGelo/Software-Testing_first_task
c46d5c000fdad2030c119e4cad3a8ba0a8d8aa3f
[ "Apache-2.0" ]
null
null
null
from fixture.application import Application import pytest import json import os.path import importlib import jsonpickle from fixture.db import DbFixture from fixture.orm import ORMFixture fixture = None target = None def load_config(file): global target if target is None: config_file = os.path.join(...
30.494118
129
0.699074
f1df767f88132177919617cd5d2d5987554c3909
490
py
Python
stackdio/api/volumes/migrations/0005_0_8_0_migrations.py
hdmillerdr/stackdio
84be621705031d147e104369399b872d5093ef64
[ "Apache-2.0" ]
9
2015-12-18T22:44:55.000Z
2022-02-07T19:34:44.000Z
stackdio/api/volumes/migrations/0005_0_8_0_migrations.py
hdmillerdr/stackdio
84be621705031d147e104369399b872d5093ef64
[ "Apache-2.0" ]
77
2015-01-12T17:49:38.000Z
2017-02-24T17:57:46.000Z
stackdio/api/volumes/migrations/0005_0_8_0_migrations.py
hdmillerdr/stackdio
84be621705031d147e104369399b872d5093ef64
[ "Apache-2.0" ]
11
2015-01-23T15:50:19.000Z
2022-02-07T19:34:45.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.13 on 2018-03-14 16:06 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('volumes', '0004_0_8_0_migrations'), ] operations = [ migrations.AlterField(...
23.333333
88
0.628571
fa030a3b22cdfc79cbffb1b67f515e1792960903
6,619
py
Python
venv/Lib/site-packages/sqlalchemy/orm/scoping.py
svercillo/flaskwebapi
48e3417c25fc25166203cb88f959345f548a38bc
[ "Apache-2.0" ]
2
2020-05-27T19:53:05.000Z
2020-05-27T19:53:07.000Z
venv/Lib/site-packages/sqlalchemy/orm/scoping.py
svercillo/flaskwebapi
48e3417c25fc25166203cb88f959345f548a38bc
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/sqlalchemy/orm/scoping.py
svercillo/flaskwebapi
48e3417c25fc25166203cb88f959345f548a38bc
[ "Apache-2.0" ]
null
null
null
# orm/scoping.py # Copyright (C) 2005-2020 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from . import class_mapper from . import exc as orm_exc from .session import...
32.131068
80
0.59163
31be9724809cc6eb8f12c3ce4a0ac2dc8e080fed
5,346
py
Python
bak_spectrgram_analysis.py
Accioy/voice-singal-classification
b6744af9732fd38c41cf3cbf11c170a962cee6c7
[ "MIT" ]
null
null
null
bak_spectrgram_analysis.py
Accioy/voice-singal-classification
b6744af9732fd38c41cf3cbf11c170a962cee6c7
[ "MIT" ]
null
null
null
bak_spectrgram_analysis.py
Accioy/voice-singal-classification
b6744af9732fd38c41cf3cbf11c170a962cee6c7
[ "MIT" ]
null
null
null
import numpy as np from scipy import signal import scipy.io.wavfile as wav import os import time import sys #import matplotlib.pyplot as plt #import skimage.io ROOT_DIR=os.path.abspath('.') wav_path = os.path.join(ROOT_DIR,"hd_signal_keras_train") def get_wav_files(wav_path): wav_files = [] for (dirpath, dirna...
34.490323
130
0.689862
f0f1f403d3276b25e851ffe401070c7307b237d1
10,583
py
Python
sdk/python/pulumi_azure_nextgen/media/v20180701/live_event.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/media/v20180701/live_event.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/media/v20180701/live_event.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
42.163347
386
0.641123
6bfa93b6ea96b192fe3f31cf455e8a239c249193
10,193
py
Python
resources/usr/local/lib/python2.7/dist-packages/sklearn/utils/tests/test_extmath.py
edawson/parliament2
2632aa3484ef64c9539c4885026b705b737f6d1e
[ "Apache-2.0" ]
null
null
null
resources/usr/local/lib/python2.7/dist-packages/sklearn/utils/tests/test_extmath.py
edawson/parliament2
2632aa3484ef64c9539c4885026b705b737f6d1e
[ "Apache-2.0" ]
null
null
null
resources/usr/local/lib/python2.7/dist-packages/sklearn/utils/tests/test_extmath.py
edawson/parliament2
2632aa3484ef64c9539c4885026b705b737f6d1e
[ "Apache-2.0" ]
1
2020-05-28T23:01:44.000Z
2020-05-28T23:01:44.000Z
# Authors: Olivier Grisel <olivier.grisel@ensta.org> # Mathieu Blondel <mathieu@mblondel.org> # License: BSD 3 clause import numpy as np from scipy import sparse from scipy import linalg from scipy import stats from sklearn.utils.testing import assert_equal from sklearn.utils.testing import assert_almost_equa...
35.764912
79
0.636123
1cac68cf5116dee21b9c3caf8776911821ccdc2b
688
py
Python
tests/test_smoke/test_english.py
imanearaf/rasa-nlu-examples
3e3cfc4e743715c9104d5771b14ecfab2a02da11
[ "Apache-2.0" ]
null
null
null
tests/test_smoke/test_english.py
imanearaf/rasa-nlu-examples
3e3cfc4e743715c9104d5771b14ecfab2a02da11
[ "Apache-2.0" ]
null
null
null
tests/test_smoke/test_english.py
imanearaf/rasa-nlu-examples
3e3cfc4e743715c9104d5771b14ecfab2a02da11
[ "Apache-2.0" ]
null
null
null
import pytest from rasa.train import train_nlu # Take heed! Pytest fails if you use a function that starts with "test" from rasa.test import test_nlu as run_nlu english_yml_files = [ "stanza-tokenizer-config.yml", "fasttext-config.yml", "printer-config.yml", "bytepair-config.yml", "gensim-config...
24.571429
71
0.690407
7d31e844aa623373ab69846be6dc1b9e03094477
1,030
py
Python
gevent_zeromq/__init__.py
ContinuumIO/gevent-zeromq
b6d4e4ec802dbd477e2fe4793a4ab9079174f94b
[ "BSD-3-Clause" ]
2
2017-09-17T18:32:38.000Z
2019-08-26T03:10:07.000Z
gevent_zeromq/__init__.py
ContinuumIO/gevent-zeromq
b6d4e4ec802dbd477e2fe4793a4ab9079174f94b
[ "BSD-3-Clause" ]
null
null
null
gevent_zeromq/__init__.py
ContinuumIO/gevent-zeromq
b6d4e4ec802dbd477e2fe4793a4ab9079174f94b
[ "BSD-3-Clause" ]
3
2021-02-23T09:24:52.000Z
2021-02-23T09:25:04.000Z
# -*- coding: utf-8 -*- """gevent_zmq - gevent compatibility with zeromq. Usage ----- Instead of importing zmq directly, do so in the following manner: .. from gevent_zeromq import zmq Any calls that would have blocked the current thread will now only block the current green thread. This compatibility is acc...
24.52381
78
0.728155
3dd97d9efa44300d52a3c37d77c90c2b6a252bcd
21,198
py
Python
gui_db.py
Astray909/lab_lot_tracking
1ce5929d53aca325f8f2540e35683129191d65d3
[ "MIT" ]
null
null
null
gui_db.py
Astray909/lab_lot_tracking
1ce5929d53aca325f8f2540e35683129191d65d3
[ "MIT" ]
null
null
null
gui_db.py
Astray909/lab_lot_tracking
1ce5929d53aca325f8f2540e35683129191d65d3
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import messagebox from tkinter.ttk import Treeview from tkinter.filedialog import asksaveasfile import sqlite3, csv class Database: def __init__(self, db): self.conn = sqlite3.connect(db) self.cur = self.conn.cursor() self.cur.execute( "CREAT...
47.743243
723
0.661619
b1a7ee6d0041500dad3f6b462bd8a6019ca59af1
13,461
py
Python
gym/envs/robotics/hand/move_stepped.py
carlo-/gym
7e7575601a0df5476ab9b15072c8b65693ce3071
[ "Python-2.0", "OLDAP-2.7" ]
1
2021-01-08T18:18:43.000Z
2021-01-08T18:18:43.000Z
gym/envs/robotics/hand/move_stepped.py
carlo-/gym
7e7575601a0df5476ab9b15072c8b65693ce3071
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
gym/envs/robotics/hand/move_stepped.py
carlo-/gym
7e7575601a0df5476ab9b15072c8b65693ce3071
[ "Python-2.0", "OLDAP-2.7" ]
1
2019-07-31T18:40:26.000Z
2019-07-31T18:40:26.000Z
import copy from enum import Enum import numpy as np import gym from gym import spaces from gym.envs.robotics import hand_env from gym.envs.robotics.hand.reach import FINGERTIP_SITE_NAMES from gym.envs.robotics.hand.move import HandPickAndPlaceEnv, FINGERTIP_BODY_NAMES from gym.envs.robotics.utils import reset_mocap2b...
37.811798
119
0.585469
dc535f995fa5248e9183279163addaab677e98e6
7,736
py
Python
cold_posterior_bnn/core/diagnostics_test.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
cold_posterior_bnn/core/diagnostics_test.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
cold_posterior_bnn/core/diagnostics_test.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
38.487562
84
0.676577
1abbebd87a16786edaffcc84ecf8b61850f1e30a
1,959
py
Python
src/satisfy/objective.py
simone-campagna/satisfy
b5327e937e32c5324c05f6288f59cfaac4a316dc
[ "Apache-2.0" ]
null
null
null
src/satisfy/objective.py
simone-campagna/satisfy
b5327e937e32c5324c05f6288f59cfaac4a316dc
[ "Apache-2.0" ]
null
null
null
src/satisfy/objective.py
simone-campagna/satisfy
b5327e937e32c5324c05f6288f59cfaac4a316dc
[ "Apache-2.0" ]
null
null
null
import abc import operator from .constraint import ExpressionConstraint from .expression import Expression __all__ = [ 'Objective', 'Maximize', 'Minimize', ] class Objective(abc.ABC): @abc.abstractmethod def make_constraint(self, model): raise NotImplementedError() @abc.abstractmeth...
26.472973
73
0.685043
762c6d765c189b1afe3a16ab1a6cf53d69959caa
16,560
py
Python
S4/S4 Library/simulation/sims/baby/baby.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/sims/baby/baby.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/sims/baby/baby.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from protocolbuffers import Commodities_pb2 from protocolbuffers.Consts_pb2 import MSG_SIM_MOOD_UPDATE from buffs.tunable import TunableBuffReference from event_testing.resolver import SingleSimResolver from interactions.interaction_finisher import FinishingType from interactions.utils.death import DeathTracker from ob...
68.148148
1,278
0.703684
65a315eb450e39f249ce470dd6f5266e50bdf78e
755
py
Python
profiles_api/migrations/0005_auto_20220108_2217.py
MohamedAboubasha/profiles-rest-api
0e5ede6b4771396c9f3399d05be06c19b9ac1530
[ "MIT" ]
null
null
null
profiles_api/migrations/0005_auto_20220108_2217.py
MohamedAboubasha/profiles-rest-api
0e5ede6b4771396c9f3399d05be06c19b9ac1530
[ "MIT" ]
null
null
null
profiles_api/migrations/0005_auto_20220108_2217.py
MohamedAboubasha/profiles-rest-api
0e5ede6b4771396c9f3399d05be06c19b9ac1530
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2022-01-08 22:17 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('profiles_api', '0004_auto_20220108_2213'), ] operations = [ migrations.RemoveField( model_name='image...
25.166667
86
0.589404
bba02f26cd6b14c4c938d7cdb4895e086b36d398
967
py
Python
virtual/lib/python3.6/site-packages/pip/_internal/distributions/__init__.py
Ruterana/clone_instagram
a068587ef1d1a93ec8d1c08086bf11c0fb274b83
[ "MIT" ]
102
2016-10-09T01:33:00.000Z
2022-01-28T01:03:23.000Z
virtual/lib/python3.6/site-packages/pip/_internal/distributions/__init__.py
Ruterana/clone_instagram
a068587ef1d1a93ec8d1c08086bf11c0fb274b83
[ "MIT" ]
88
2020-03-09T01:20:59.000Z
2021-11-15T17:49:34.000Z
virtual/lib/python3.6/site-packages/pip/_internal/distributions/__init__.py
Krasivaya/Tracks
c18d1c9222dff39e4678d44495a8a7d9434339ff
[ "MIT" ]
50
2017-05-10T06:25:36.000Z
2021-08-02T20:28:54.000Z
from pip._internal.distributions.source.legacy import SourceDistribution from pip._internal.distributions.wheel import WheelDistribution from pip._internal.utils.typing import MYPY_CHECK_RUNNING if MYPY_CHECK_RUNNING: from pip._internal.distributions.base import AbstractDistribution from pip._internal.req.req_...
38.68
77
0.791107
a776e5ba58684c4c1e1d45b6eebff4b09e5e4cb0
7,157
py
Python
config_builder.py
joshuabaird/docker-dd-agent
7a9bcdf8589091d569c2eadb7722ccab2b8b4271
[ "MIT" ]
null
null
null
config_builder.py
joshuabaird/docker-dd-agent
7a9bcdf8589091d569c2eadb7722ccab2b8b4271
[ "MIT" ]
null
null
null
config_builder.py
joshuabaird/docker-dd-agent
7a9bcdf8589091d569c2eadb7722ccab2b8b4271
[ "MIT" ]
null
null
null
#!/opt/datadog-agent/embedded/bin/python ''' This script is used to generate the configuration of the datadog agent. ''' from os import getenv, environ import logging from urllib2 import urlopen, URLError, HTTPError from socket import getdefaulttimeout, setdefaulttimeout from ConfigParser import ConfigParser class C...
42.60119
134
0.644125
88e8ca636236f2395a4cf3d896876395e0ac6ca5
9,607
py
Python
galois/_fields/_linalg.py
iyanmv/galois
a5e6386a684e3e0b47af608217002795dc25c702
[ "MIT" ]
65
2021-02-20T04:07:59.000Z
2022-03-13T10:14:58.000Z
galois/_fields/_linalg.py
iyanmv/galois
a5e6386a684e3e0b47af608217002795dc25c702
[ "MIT" ]
303
2021-02-22T19:36:25.000Z
2022-03-31T14:48:15.000Z
galois/_fields/_linalg.py
iyanmv/galois
a5e6386a684e3e0b47af608217002795dc25c702
[ "MIT" ]
9
2021-03-11T07:40:51.000Z
2022-03-06T20:13:17.000Z
""" A module that contains linear algebra routines over Galois fields. """ import numpy as np from ._dtypes import DTYPES def _lapack_linalg(a, b, function, out=None, n_sum=None): """ In prime fields GF(p), it's much more efficient to use LAPACK/BLAS implementations of linear algebra and then reduce modu...
33.357639
165
0.554387
b9dce65fd2034c0985878a1a51c636acc2fa0dec
12,201
py
Python
jbossply/jbossparser.py
EnigmaBridge/jbossply
44b30b15982cae781f0c356fab7263751b20b4d0
[ "MIT" ]
3
2017-02-23T15:31:25.000Z
2018-07-05T13:41:57.000Z
jbossply/jbossparser.py
EnigmaBridge/jbossply
44b30b15982cae781f0c356fab7263751b20b4d0
[ "MIT" ]
1
2017-07-13T09:14:23.000Z
2017-07-13T09:14:23.000Z
jbossply/jbossparser.py
EnigmaBridge/jbossply
44b30b15982cae781f0c356fab7263751b20b4d0
[ "MIT" ]
7
2017-03-07T07:16:27.000Z
2021-01-21T03:00:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2009 DeWitt Clinton All Rights Reserved. # Copyright 2009 DeWitt Clinton 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 ...
29.05
96
0.560036
57245f3d51d5c79595f06bc7837bdd981650055b
126
py
Python
sandbox/lib/pythonbin/Crypto/__init__.py
Jumpscale/sandbox_linux
2aacd36b467ef30ac83718abfa82c6883b67a02f
[ "Apache-2.0" ]
1
2018-10-30T07:19:27.000Z
2018-10-30T07:19:27.000Z
sandbox/lib/pythonbin/Crypto/__init__.py
Jumpscale/sandbox_linux
2aacd36b467ef30ac83718abfa82c6883b67a02f
[ "Apache-2.0" ]
1
2018-04-04T12:13:40.000Z
2018-05-03T07:57:52.000Z
venv/Lib/site-packages/Crypto/__init__.py
vrian/orsen
9c10148aba62868fad4b679a4b9b717829586e96
[ "Apache-2.0" ]
null
null
null
__all__ = ['Cipher', 'Hash', 'Protocol', 'PublicKey', 'Util', 'Signature', 'IO', 'Math'] version_info = (3, 5, 1)
25.2
74
0.539683
993c3ff27c79f8b391179c8fc8a8bf7bb0a444f2
9,266
py
Python
src/run.py
molumitu/implementation-matters
c45f9ad76516c27468fe135f268546df38f9829c
[ "MIT" ]
1
2022-02-25T01:34:01.000Z
2022-02-25T01:34:01.000Z
src/run.py
molumitu/implementation-matters
c45f9ad76516c27468fe135f268546df38f9829c
[ "MIT" ]
null
null
null
src/run.py
molumitu/implementation-matters
c45f9ad76516c27468fe135f268546df38f9829c
[ "MIT" ]
null
null
null
from src.policy_gradients.agent import Trainer import git import numpy as np import os import argparse from src.policy_gradients import models import sys import json import torch from cox.store import Store, schema_from_dict # Tee object allows for logging to both stdout and to file class Tee(object): def __init...
38.608333
97
0.616555
47baa926366232c167a9daa6a3fa98d8dbebfe29
6,071
py
Python
tests/scipy_ndimage_test.py
joshuagornall/jax
c97cd0a526c12ad81988fd58c1c66df4ddd71813
[ "ECL-2.0", "Apache-2.0" ]
14
2021-04-24T03:26:39.000Z
2022-01-28T14:25:13.000Z
tests/scipy_ndimage_test.py
joshuagornall/jax
c97cd0a526c12ad81988fd58c1c66df4ddd71813
[ "ECL-2.0", "Apache-2.0" ]
2
2022-01-31T13:20:35.000Z
2022-02-14T13:20:49.000Z
tests/scipy_ndimage_test.py
joshuagornall/jax
c97cd0a526c12ad81988fd58c1c66df4ddd71813
[ "ECL-2.0", "Apache-2.0" ]
2
2020-08-04T13:36:09.000Z
2020-11-04T02:58:55.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
39.422078
94
0.67633
3b7277af8c0889e53f972bccf288df3e0d050aea
1,778
py
Python
kostal/InfoVersions.py
DAMEK86/kostal-piko-py
6594a1cc35fe77a789e3462f2b0762c0f359720a
[ "MIT" ]
null
null
null
kostal/InfoVersions.py
DAMEK86/kostal-piko-py
6594a1cc35fe77a789e3462f2b0762c0f359720a
[ "MIT" ]
null
null
null
kostal/InfoVersions.py
DAMEK86/kostal-piko-py
6594a1cc35fe77a789e3462f2b0762c0f359720a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from kostal.DxsApi import DxsEntry class InfoVersions: VERSION_UI = 16779267 VERSION_FW = 16779265 VERSION_HW = 16779266 VERSION_PAR = 16779268 SERIAL_NUMBER = 16777728 ARTICLE_NUMBER = 16777472 COUNTRY_SETTINGS_NAME = 16779522 COUNTRY_SETTINGS_VERSION = 16779521...
36.285714
83
0.704162
d2c3316eb7f9c6f58349f6e4153517175e650bad
2,525
py
Python
synapse/rest/client/v2_alpha/room_upgrade_rest_servlet.py
V02460/synapse
782dd72037cf71fb3f9e4922b07c56df2f59de75
[ "Apache-2.0" ]
1
2020-03-05T12:58:46.000Z
2020-03-05T12:58:46.000Z
synapse/rest/client/v2_alpha/room_upgrade_rest_servlet.py
V02460/synapse
782dd72037cf71fb3f9e4922b07c56df2f59de75
[ "Apache-2.0" ]
null
null
null
synapse/rest/client/v2_alpha/room_upgrade_rest_servlet.py
V02460/synapse
782dd72037cf71fb3f9e4922b07c56df2f59de75
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2016 OpenMarket Ltd # # 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...
28.693182
82
0.685545
116115b3d4e3361435fcd662ff278b5c58ee900e
9,272
py
Python
sdk/python/pulumi_aws/rds/event_subscription.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/rds/event_subscription.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/rds/event_subscription.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class EventS...
51.226519
277
0.670298
39dce7713db07d33eabe9c1a7b892e9f2c162c33
5,242
py
Python
tests/test_func.py
pexip/os-python-cachetools
2e72da5b861f106df393e25d975a3bccb89b6fb3
[ "MIT" ]
1
2021-01-04T04:25:14.000Z
2021-01-04T04:25:14.000Z
tests/test_func.py
pexip/os-python-cachetools
2e72da5b861f106df393e25d975a3bccb89b6fb3
[ "MIT" ]
null
null
null
tests/test_func.py
pexip/os-python-cachetools
2e72da5b861f106df393e25d975a3bccb89b6fb3
[ "MIT" ]
null
null
null
import unittest import cachetools.func class DecoratorTestMixin(object): def decorator(self, maxsize, **kwargs): return self.DECORATOR(maxsize, **kwargs) def test_decorator(self): cached = self.decorator(maxsize=2)(lambda n: n) self.assertEqual(cached.cache_parameters(), { ...
36.657343
79
0.624571
2d834d5f19f6879a4697d16686d5cab4058a1b40
157,719
py
Python
tests/unit/gapic/aiplatform_v1/test_pipeline_service.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
1
2022-03-30T05:23:29.000Z
2022-03-30T05:23:29.000Z
tests/unit/gapic/aiplatform_v1/test_pipeline_service.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/aiplatform_v1/test_pipeline_service.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 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...
37.922337
121
0.690348
54fde86faecd4cf5ef8ce222076bfffd944b657b
12,631
py
Python
pythontools/sockets/server.py
CrawlerCode/PythonTools
927893b80dd803eb73edc98d905191d90eb1aede
[ "MIT" ]
null
null
null
pythontools/sockets/server.py
CrawlerCode/PythonTools
927893b80dd803eb73edc98d905191d90eb1aede
[ "MIT" ]
null
null
null
pythontools/sockets/server.py
CrawlerCode/PythonTools
927893b80dd803eb73edc98d905191d90eb1aede
[ "MIT" ]
null
null
null
from pythontools.core import logger, events import socket, json, base64, traceback, math from threading import Thread from pythontools.dev import crypthography, dev class Server: def __init__(self, password): self.serverSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.serverSocket.s...
54.2103
218
0.486976
e8e320fe532bd4396ce03be775051e20c8723bd1
2,076
py
Python
assignment 7/matrix-machine_learning_lab/triangular.py
dhruvgairola/linearAlgebra-coursera
20109133b9e53a7a38cbd17d8ca1fa1316bbf0d3
[ "MIT" ]
6
2015-09-18T02:07:21.000Z
2020-04-22T17:05:11.000Z
triangular.py
tri2sing/LinearAlgebraPython
f3dde94f02f146089607eb520ebd4467becb5f9e
[ "Apache-2.0" ]
null
null
null
triangular.py
tri2sing/LinearAlgebraPython
f3dde94f02f146089607eb520ebd4467becb5f9e
[ "Apache-2.0" ]
10
2015-09-05T03:54:00.000Z
2020-04-21T12:56:40.000Z
from vec import Vec from vecutil import zero_vec def triangular_solve_n(rowlist, b): ''' Solves an upper-triangular linear system. rowlist is a nonempty list of Vecs. Let n = len(rowlist). The domain D of all these Vecs is {0,1, ..., n-1}. b is an n-element list or a Vec whose domain is {0,1, ...,...
34.6
71
0.595857
95a730d9baab4f457b7bbc10d9a23dea10c98802
3,751
py
Python
main/binanceapi/binance_interface.py
4RCAN3/CryptoTrader
df1f88552489fd85627bb2cd7c7f6e0ba4665ade
[ "MIT" ]
null
null
null
main/binanceapi/binance_interface.py
4RCAN3/CryptoTrader
df1f88552489fd85627bb2cd7c7f6e0ba4665ade
[ "MIT" ]
null
null
null
main/binanceapi/binance_interface.py
4RCAN3/CryptoTrader
df1f88552489fd85627bb2cd7c7f6e0ba4665ade
[ "MIT" ]
null
null
null
import os,sys,inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.append(parentdir) from tkinter import * from config import Binance, API_LIST from binance_script import Work obj = Binance() class BinanceAPI(Tk): def __ini...
38.670103
174
0.592642
aeccc9c9599e0cc21b024a729d89193620d3dbe2
7,248
py
Python
numpyro/distributions/directional.py
ahoho/numpyro
64e94e346c51a6c0c1ba51aa7b608e73513f158f
[ "Apache-2.0" ]
null
null
null
numpyro/distributions/directional.py
ahoho/numpyro
64e94e346c51a6c0c1ba51aa7b608e73513f158f
[ "Apache-2.0" ]
null
null
null
numpyro/distributions/directional.py
ahoho/numpyro
64e94e346c51a6c0c1ba51aa7b608e73513f158f
[ "Apache-2.0" ]
null
null
null
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 import math from jax import lax import jax.numpy as jnp import jax.random as random from jax.scipy.special import erf, i0e, i1e from numpyro.distributions import constraints from numpyro.distributions.distribution import Distribution...
39.824176
119
0.642936
78f1e26c617296b226b4e1b2302633a597f969ff
86
py
Python
src/_version.py
Eastern-Skill7173/SharedSnippets
399c9d61a938788e229bc6e6f6dcd38bf5ad9c0e
[ "MIT" ]
1
2022-03-18T20:29:40.000Z
2022-03-18T20:29:40.000Z
src/_version.py
Eastern-Skill7173/SharedSnippets
399c9d61a938788e229bc6e6f6dcd38bf5ad9c0e
[ "MIT" ]
null
null
null
src/_version.py
Eastern-Skill7173/SharedSnippets
399c9d61a938788e229bc6e6f6dcd38bf5ad9c0e
[ "MIT" ]
null
null
null
from typing import Final __version__: Final = "0.0.1" __date__: Final = "2022-04-09"
17.2
30
0.709302
ed3589a865baf1c80d2914ab8d8756c340139773
6,485
py
Python
pythonx/ncm2.py
roxma/cm2
24d77cd5206438a6670ff1cf8d1628532910e14e
[ "MIT" ]
1,448
2018-06-29T02:29:20.000Z
2022-03-29T04:16:43.000Z
pythonx/ncm2.py
roxma/cm2
24d77cd5206438a6670ff1cf8d1628532910e14e
[ "MIT" ]
188
2018-06-29T06:30:58.000Z
2022-03-17T11:00:57.000Z
pythonx/ncm2.py
roxma/cm2
24d77cd5206438a6670ff1cf8d1628532910e14e
[ "MIT" ]
55
2018-07-11T13:54:21.000Z
2022-03-16T23:32:11.000Z
import sys import os from importlib import import_module import logging import platform import subprocess from subprocess import Popen from os import path import unicodedata from copy import deepcopy import json import time __all__ = ['Ncm2Base', 'Ncm2Source', 'Popen'] if platform.system() == 'Windows': cls = Pop...
29.343891
77
0.537702
18c8944509a5fea2d53f20be05ca278db2b0f884
7,973
py
Python
docsrc/conf.py
kaschbacher/bac
858ebe1bcd61dd6a73431bb651d1b3efa447a8c6
[ "RSA-MD" ]
1
2021-02-14T04:11:58.000Z
2021-02-14T04:11:58.000Z
docsrc/conf.py
kaschbacher/bac
858ebe1bcd61dd6a73431bb651d1b3efa447a8c6
[ "RSA-MD" ]
1
2021-07-12T10:37:55.000Z
2021-07-12T10:37:55.000Z
docsrc/conf.py
kaschbacher/bac
858ebe1bcd61dd6a73431bb651d1b3efa447a8c6
[ "RSA-MD" ]
null
null
null
# -*- coding: utf-8 -*- # # bac documentation build configuration file, created by # sphinx-quickstart. # # 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 configuration values have a def...
31.023346
103
0.695598
00bb4ab2f8969b133c74b6bed6d3f54a256ea2bd
842
py
Python
Masters/urls.py
adithyanps/netprofit-django
7ba87f054d09a201352635bb6cf8d0112208609e
[ "MIT" ]
null
null
null
Masters/urls.py
adithyanps/netprofit-django
7ba87f054d09a201352635bb6cf8d0112208609e
[ "MIT" ]
null
null
null
Masters/urls.py
adithyanps/netprofit-django
7ba87f054d09a201352635bb6cf8d0112208609e
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from .views import ( PartnerViewSet, BranchViewset, AreaViewSet, ProductViewset, ProductCategoryViewSet, AccountViewset, AccountDefaultViewSet, ...
28.066667
59
0.707838
f3026111cdcbfe252742f0b23389d194587a2c95
1,872
py
Python
contrib/PyTorch/Official/cv/image_classification/Xception_ID1777_for_PyTorch/pthtar2onx.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
contrib/PyTorch/Official/cv/image_classification/Xception_ID1777_for_PyTorch/pthtar2onx.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
contrib/PyTorch/Official/cv/image_classification/Xception_ID1777_for_PyTorch/pthtar2onx.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
35.320755
117
0.67094
85efcbb8ef82ce1c7765e3da0806725c00faefed
136
py
Python
tests/unit/helpers_test.py
sebastianbasierski/dvdd
ae71addf512fb06e0ce06149970997fea804c0e4
[ "BSD-3-Clause" ]
1
2019-07-09T07:29:00.000Z
2019-07-09T07:29:00.000Z
tests/unit/helpers_test.py
sebastianbasierski/dvdd
ae71addf512fb06e0ce06149970997fea804c0e4
[ "BSD-3-Clause" ]
21
2019-07-09T19:44:33.000Z
2019-07-17T16:40:56.000Z
tests/unit/helpers_test.py
sebastianbasierski/dvdd
ae71addf512fb06e0ce06149970997fea804c0e4
[ "BSD-3-Clause" ]
1
2019-07-10T09:25:41.000Z
2019-07-10T09:25:41.000Z
from libs.helpers import get_platform def test_get_platform(): p = get_platform() assert p is not None # assert p == "arm"
17
37
0.676471
e88f3e5da8cd66a2dff279694d72574f01ec3ea4
22,156
py
Python
nox/sessions.py
ajcerejeira/nox
4deea887faf00634bd87d6e594c8eca4d8612991
[ "Apache-2.0" ]
null
null
null
nox/sessions.py
ajcerejeira/nox
4deea887faf00634bd87d6e594c8eca4d8612991
[ "Apache-2.0" ]
1
2021-07-24T15:38:33.000Z
2021-07-24T15:38:33.000Z
nox/sessions.py
sitedata/nox
00775b470129787b14c45f2853441f9f1cad006d
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Alethea Katherine Flowers # # 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...
34.244204
101
0.590495
d66d8a79c10f271268eb7cad3384ff785193e58e
10,685
py
Python
lib/datasets/gmu_scene.py
aditya2592/PoseCNN
a763120ce0ceb55cf3432980287ef463728f8052
[ "MIT" ]
655
2018-03-21T19:55:45.000Z
2022-03-25T20:41:21.000Z
lib/datasets/gmu_scene.py
SergioRAgostinho/PoseCNN
da9eaae850eed7521a2a48a4d27474d655caab42
[ "MIT" ]
122
2018-04-04T13:57:49.000Z
2022-03-18T09:28:44.000Z
lib/datasets/gmu_scene.py
SergioRAgostinho/PoseCNN
da9eaae850eed7521a2a48a4d27474d655caab42
[ "MIT" ]
226
2018-03-22T01:40:04.000Z
2022-03-17T11:56:14.000Z
__author__ = 'yuxiang' import os import datasets import datasets.gmu_scene import datasets.imdb import cPickle import numpy as np import cv2 class gmu_scene(datasets.imdb): def __init__(self, image_set, gmu_scene_path = None): datasets.imdb.__init__(self, 'gmu_scene_' + image_set) self._image_set ...
36.220339
135
0.584745
d2140469dfe3a3096d91d8a0f07c235c606543ec
1,470
py
Python
bleu.py
toastynews/hong-kong-bleu
040b70e2e3480d9633f14fd2c7ba6453b5b64c4d
[ "CC-BY-4.0" ]
null
null
null
bleu.py
toastynews/hong-kong-bleu
040b70e2e3480d9633f14fd2c7ba6453b5b64c4d
[ "CC-BY-4.0" ]
null
null
null
bleu.py
toastynews/hong-kong-bleu
040b70e2e3480d9633f14fd2c7ba6453b5b64c4d
[ "CC-BY-4.0" ]
null
null
null
import string from os import listdir from os.path import isfile, join from nltk.translate.bleu_score import corpus_bleu from nltk.translate.nist_score import corpus_nist reference_directory = 'reference/' data_directories = [ 'aws/', 'azure/', 'google/' ] references = [] ref_files = [f for f in listdir(r...
35
93
0.621088
a4e6814682d03b795f707970242c3d0761bf5f38
1,827
py
Python
src/backend/common/deferred/queues/gcloud_queue.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
null
null
null
src/backend/common/deferred/queues/gcloud_queue.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
null
null
null
src/backend/common/deferred/queues/gcloud_queue.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
null
null
null
from typing import Dict, Optional from google.cloud import tasks_v2 from backend.common.deferred.queues.task_queue import TaskQueue from backend.common.deferred.requests.gcloud_http_request import ( GCloudHttpTaskRequestConfiguration, ) from backend.common.deferred.requests.gcloud_request import GCloudTaskRequest...
33.218182
88
0.705528
1008f58a15e78d3af59cf09c96ca80b9ad27e407
8,695
py
Python
setuptools/_distutils/tests/test_unixccompiler.py
jensecj/setuptools
41a229bdf7d2f444f6f355042e816a53fbc5a3b2
[ "MIT" ]
null
null
null
setuptools/_distutils/tests/test_unixccompiler.py
jensecj/setuptools
41a229bdf7d2f444f6f355042e816a53fbc5a3b2
[ "MIT" ]
null
null
null
setuptools/_distutils/tests/test_unixccompiler.py
jensecj/setuptools
41a229bdf7d2f444f6f355042e816a53fbc5a3b2
[ "MIT" ]
null
null
null
"""Tests for distutils.unixccompiler.""" import os import sys import unittest from test.support import run_unittest from .py38compat import EnvironmentVarGuard from distutils import sysconfig from distutils.errors import DistutilsPlatformError from distutils.unixccompiler import UnixCCompiler from distutils.util impo...
36.078838
80
0.568833
7839e8bb13e1e51f6353b5ea1e49e7b09a1e9e48
5,947
py
Python
psydac/api/printing/pycode.py
mayuri-dhote/psydac
01ddbe2d049a599684c45060912d01c2658160a3
[ "MIT" ]
20
2019-07-30T12:37:57.000Z
2022-03-09T11:35:04.000Z
psydac/api/printing/pycode.py
mayuri-dhote/psydac
01ddbe2d049a599684c45060912d01c2658160a3
[ "MIT" ]
98
2019-04-01T16:32:27.000Z
2022-03-21T19:30:35.000Z
psydac/api/printing/pycode.py
mayuri-dhote/psydac
01ddbe2d049a599684c45060912d01c2658160a3
[ "MIT" ]
7
2019-10-03T03:49:47.000Z
2022-03-01T09:11:49.000Z
from sympy.core import Symbol from sympy.core import S from sympy.printing.precedence import precedence from psydac.pyccel.codegen.printing.pycode import PythonCodePrinter as PyccelPythonCodePrinter from sympde.topology.derivatives import _partial_derivatives from sympde.topology import SymbolicExpr #==...
37.639241
94
0.546998
c2ae3f3ce1cf9de877169d9dc9b7b78fd490b456
4,183
py
Python
CAIL2020/htfltpu/torch_server.py
ShenDezhou/CAIL
c4cfa98ab4ecedbce34a7a5a186830486047540c
[ "Apache-2.0" ]
71
2020-07-16T01:49:27.000Z
2022-03-27T16:55:00.000Z
CAIL2020/htfltpu/torch_server.py
ShenDezhou/CAIL
c4cfa98ab4ecedbce34a7a5a186830486047540c
[ "Apache-2.0" ]
11
2020-09-18T14:26:25.000Z
2022-02-09T23:49:33.000Z
CAIL2020/htfltpu/torch_server.py
ShenDezhou/CAIL
c4cfa98ab4ecedbce34a7a5a186830486047540c
[ "Apache-2.0" ]
16
2020-07-15T07:24:30.000Z
2022-03-19T05:41:11.000Z
import argparse import logging import os from types import SimpleNamespace import falcon import pandas import torch from falcon_cors import CORS import json import waitress from data import Data from torch.utils.data import DataLoader from utils import load_torch_model from model import BertForClassification, CharCNN f...
37.348214
86
0.65551
82d6fffc1bf47b27b4640e75bb5ed873ab36bc81
586
py
Python
app/view_conversation.py
rafaelbr/chatbot-clima
26ecec47b5bce203f011a079645a5e69ae01d991
[ "MIT" ]
2
2019-06-04T22:52:26.000Z
2019-06-25T23:15:41.000Z
app/view_conversation.py
rafaelbr/chatbot-clima
26ecec47b5bce203f011a079645a5e69ae01d991
[ "MIT" ]
1
2019-07-10T00:23:16.000Z
2019-07-10T00:23:42.000Z
app/view_conversation.py
rafaelbr/chatbot-clima
26ecec47b5bce203f011a079645a5e69ae01d991
[ "MIT" ]
1
2019-06-04T22:52:35.000Z
2019-06-04T22:52:35.000Z
import flask, json import os from utils import post_facebook_message, get_weather from flask import Blueprint, request, jsonify, make_response from flask_restful import Api, Resource from cloudant_server import DatabaseAccess conversationBP = Blueprint('conversation', __name__) api = Api(conversationBP, pref...
30.842105
76
0.776451
e41ec5e3aee40a3ff11577c47188d3c8b9a36a24
10,508
py
Python
tests/base_fixtures.py
eggsandbeer/scheduler
18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82
[ "BSD-3-Clause" ]
null
null
null
tests/base_fixtures.py
eggsandbeer/scheduler
18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82
[ "BSD-3-Clause" ]
null
null
null
tests/base_fixtures.py
eggsandbeer/scheduler
18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'Bohdan Mushkevych' import inspect import random from datetime import datetime, timedelta from db.model import raw_data from db.model.site_statistics import SiteStatistics from db.model.single_session import SingleSession from db.dao.single_session_dao import SingleSessionDao from synergy.db.dao.unit_of_...
35.5
113
0.680815
fb7df07a146bad0732e974ad2777e37e1c007622
748
py
Python
setup.py
phac-nml/bioCanon
3797a16d3782f1784105ce1f6a4661aa69d0a150
[ "MIT" ]
1
2021-01-18T03:39:40.000Z
2021-01-18T03:39:40.000Z
setup.py
phac-nml/bioCanon
3797a16d3782f1784105ce1f6a4661aa69d0a150
[ "MIT" ]
2
2020-06-23T18:44:16.000Z
2020-06-25T17:03:25.000Z
setup.py
phac-nml/bioCanon
3797a16d3782f1784105ce1f6a4661aa69d0a150
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="bioCanon-phac", # Replace with your own username version="0.0.8", author="James Robertson, Amanda Saunders, Justin Schonfeld", author_email="justin.schonfeld@canada.ca", description="A pac...
32.521739
71
0.685829