hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
1c1d6b0ff5eb0180b7ed4f95542441f314e28c39
3,244
py
Python
sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_linked_entities.py
kazrael2119/azure-sdk-for-python
485dd7b1b5ac41c1a5b9991e402b4035b55f437a
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_linked_entities.py
kazrael2119/azure-sdk-for-python
485dd7b1b5ac41c1a5b9991e402b4035b55f437a
[ "MIT" ]
null
null
null
sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_linked_entities.py
kazrael2119/azure-sdk-for-python
485dd7b1b5ac41c1a5b9991e402b4035b55f437a
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """ FILE:...
40.049383
103
0.676634
import os def sample_recognize_linked_entities(): print( "In this sample, we are students conducting research for a class project. We will extract " "links to Wikipedia articles for all entities listed in our research documents, so we have " "all of the necessary information for re...
true
true
1c1d6cb72d8b6e4cf4be3c05f8c968a4ed1dc85a
16,544
py
Python
google/cloud/aiplatform_v1beta1/services/index_service/transports/grpc.py
kweinmeister/python-aiplatform
ef9fb2b9fa5f5c1dbb74e3d37ee9a7d949892ce0
[ "Apache-2.0" ]
1
2021-11-17T12:07:09.000Z
2021-11-17T12:07:09.000Z
google/cloud/aiplatform_v1beta1/services/index_service/transports/grpc.py
kweinmeister/python-aiplatform
ef9fb2b9fa5f5c1dbb74e3d37ee9a7d949892ce0
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1beta1/services/index_service/transports/grpc.py
kweinmeister/python-aiplatform
ef9fb2b9fa5f5c1dbb74e3d37ee9a7d949892ce0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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...
43.083333
87
0.635094
import warnings from typing import Callable, Dict, Optional, Sequence, Tuple, Union from google.api_core import grpc_helpers from google.api_core import operations_v1 from google.api_core import gapic_v1 import google.auth from google.auth import credentials as ga_credentials from google.auth....
true
true
1c1d6d27492313bca582530e6f7444077e83d78b
977
py
Python
python/util.py
brycepg/how-to
77f80011237e585a7d790b4d5334d5d918de8fb4
[ "MIT" ]
1
2016-07-02T04:21:21.000Z
2016-07-02T04:21:21.000Z
python/util.py
brycepg/how-to
77f80011237e585a7d790b4d5334d5d918de8fb4
[ "MIT" ]
null
null
null
python/util.py
brycepg/how-to
77f80011237e585a7d790b4d5334d5d918de8fb4
[ "MIT" ]
null
null
null
import os import functools # Current directory # If you call this from the current directory without abspath, # then it will not work since __file__ is a relative path os.path.dirname(os.path.abspath(__file__)) def all_sub_files(root): """Get all files in a directory. Never use os.walk again """ for ...
26.405405
65
0.668373
import os import functools os.path.dirname(os.path.abspath(__file__)) def all_sub_files(root): for path, subdirs, files in os.walk(root): for name in files: yield os.path.join(path, name) def lmap(*args, **kwargs): return list(map(*args, **kwargs)) def lfilter(*args, **kwargs): ...
true
true
1c1d6d592cfdf9ed11de18f1600df250dc1d6d64
93
py
Python
semesters/apps.py
soumith2105/vasv-stdin-backend
72472af0f4a9ea5d9d51f980d148badbb9252fe6
[ "MIT" ]
null
null
null
semesters/apps.py
soumith2105/vasv-stdin-backend
72472af0f4a9ea5d9d51f980d148badbb9252fe6
[ "MIT" ]
1
2022-02-21T15:09:06.000Z
2022-02-21T15:09:06.000Z
semesters/apps.py
soumith2105/vasv-stdin-backend
72472af0f4a9ea5d9d51f980d148badbb9252fe6
[ "MIT" ]
null
null
null
from django.apps import AppConfig class SemestersConfig(AppConfig): name = "semesters"
15.5
33
0.763441
from django.apps import AppConfig class SemestersConfig(AppConfig): name = "semesters"
true
true
1c1d6e55cd85606d307bda275b346e1d146ed21a
45,436
py
Python
mipego_multi/mipego.py
MariosKef/RULe
4cf4563d1abcf350de9958a0de26d2d0126c819d
[ "MIT" ]
null
null
null
mipego_multi/mipego.py
MariosKef/RULe
4cf4563d1abcf350de9958a0de26d2d0126c819d
[ "MIT" ]
null
null
null
mipego_multi/mipego.py
MariosKef/RULe
4cf4563d1abcf350de9958a0de26d2d0126c819d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Mar 6 15:05:01 2017 @author: wangronin @email: wangronin@gmail.com """ from __future__ import division from __future__ import print_function # import pdb import dill, functools, itertools, copyreg, logging import numpy as np import GPUtil as gp import queue import threadi...
38.342616
221
0.530394
from __future__ import division from __future__ import print_function import dill, functools, itertools, copyreg, logging import numpy as np import GPUtil as gp import queue import threading import time import copy import json from joblib import Parallel, delayed from scipy.optimize import fmin_l_bfgs_b from ...
true
true
1c1d6e6e26c2a4d92d10f652fff507aea88c858b
172
py
Python
streaming_tweets/configuration.py
guinslym/comm_research_project
24b1ffcff834f641abddc110e51b550b85fad1c0
[ "MIT" ]
1
2016-09-22T17:52:27.000Z
2016-09-22T17:52:27.000Z
streaming_tweets/configuration.py
guinslym/comm_research_project
24b1ffcff834f641abddc110e51b550b85fad1c0
[ "MIT" ]
null
null
null
streaming_tweets/configuration.py
guinslym/comm_research_project
24b1ffcff834f641abddc110e51b550b85fad1c0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__='Guinsly Mondésir' __copyrights__=['University of Ottawa'] __version__="1.0.0" __status__='Production' __license__='GPL' config = { }
14.333333
39
0.703488
__author__='Guinsly Mondésir' __copyrights__=['University of Ottawa'] __version__="1.0.0" __status__='Production' __license__='GPL' config = { }
true
true
1c1d6e9645211151fae96df8188ab977a5c5b0bc
92
py
Python
tests/exceptions.py
fraudnet/kibana-docker
2551584f9ac88ad9bcaf19c342d52fd659434317
[ "Apache-2.0" ]
256
2016-09-26T22:29:37.000Z
2021-11-08T09:39:33.000Z
tests/exceptions.py
fraudnet/kibana-docker
2551584f9ac88ad9bcaf19c342d52fd659434317
[ "Apache-2.0" ]
97
2016-09-30T11:52:46.000Z
2019-06-25T18:11:53.000Z
tests/exceptions.py
fraudnet/kibana-docker
2551584f9ac88ad9bcaf19c342d52fd659434317
[ "Apache-2.0" ]
150
2016-10-24T20:42:41.000Z
2021-12-30T05:43:27.000Z
class DockerStackError(Exception): pass class ExplicitRetryError(Exception): pass
13.142857
36
0.76087
class DockerStackError(Exception): pass class ExplicitRetryError(Exception): pass
true
true
1c1d6f58caad2534b53b184015265a30e4318a65
1,404
py
Python
tests/renaming_tester.py
Chrisk12/python-grader
9bfe9beeffdeb8e50be1a9e2ae3b4fbf0728aa52
[ "MIT" ]
9
2015-06-06T06:15:12.000Z
2020-05-27T21:37:16.000Z
tests/renaming_tester.py
Chrisk12/python-grader
9bfe9beeffdeb8e50be1a9e2ae3b4fbf0728aa52
[ "MIT" ]
null
null
null
tests/renaming_tester.py
Chrisk12/python-grader
9bfe9beeffdeb8e50be1a9e2ae3b4fbf0728aa52
[ "MIT" ]
3
2018-11-17T22:51:45.000Z
2021-01-22T14:07:48.000Z
import unittest import os import grader CURRENT_FOLDER = os.path.dirname(__file__) HELPERS_FOLDER = os.path.join(CURRENT_FOLDER, "helpers") def test_generator(name, fun): @grader.test def some_test(m): assert name != fun() grader.setDescription(some_test, name) #print(grader.testcases) test_g...
31.2
84
0.671652
import unittest import os import grader CURRENT_FOLDER = os.path.dirname(__file__) HELPERS_FOLDER = os.path.join(CURRENT_FOLDER, "helpers") def test_generator(name, fun): @grader.test def some_test(m): assert name != fun() grader.setDescription(some_test, name) test_generator("some-descripti...
true
true
1c1d6fbaa6a2e9b6494e0514b79abb1dfdafa925
3,427
py
Python
app.py
S-Spektrum-M/Stocks
3c554d60bc1f8215cfb72e2c44d388b2d5b32513
[ "MIT" ]
null
null
null
app.py
S-Spektrum-M/Stocks
3c554d60bc1f8215cfb72e2c44d388b2d5b32513
[ "MIT" ]
1
2021-11-26T05:07:48.000Z
2021-11-26T05:07:49.000Z
app.py
S-Spektrum-M/Stocks
3c554d60bc1f8215cfb72e2c44d388b2d5b32513
[ "MIT" ]
null
null
null
""" A Share Tracking API built on flask Check out the github README for docs https://github.com/S-Spektrum-M/Stocks """ import flask from flask import request, jsonify import stats as st APP = flask.Flask(__name__) @APP.route('/api/short/multi', methods=['GET']) def short_multi(): """Return JSON representing ret...
33.271845
77
0.538664
import flask from flask import request, jsonify import stats as st APP = flask.Flask(__name__) @APP.route('/api/short/multi', methods=['GET']) def short_multi(): if 'params' in request.args: params = request.args['params'] params_list = params.split(',') if len(params_list) < 500: ...
true
true
1c1d703ea0c062faad9623080222d08f69b1018c
2,537
py
Python
day14.py
andreassjoberg/advent-of-code-2017
cc982f37da5e4c50f076e65dc3b9d074b40facce
[ "MIT" ]
2
2019-02-06T07:48:00.000Z
2020-04-12T09:53:10.000Z
day14.py
andreassjoberg/advent-of-code-2017
cc982f37da5e4c50f076e65dc3b9d074b40facce
[ "MIT" ]
null
null
null
day14.py
andreassjoberg/advent-of-code-2017
cc982f37da5e4c50f076e65dc3b9d074b40facce
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Day 14 of advent of code""" def knot_hash(string): """Calculates the knot hash""" lengths = [ord(x) for x in string] lengths.extend([17, 31, 73, 47, 23]) rope = [x for x in range(0, 256)] rope_length = len(rope) current_position = skip_size = 0 for _ in range(64): ...
29.5
75
0.504139
"""Day 14 of advent of code""" def knot_hash(string): """Calculates the knot hash""" lengths = [ord(x) for x in string] lengths.extend([17, 31, 73, 47, 23]) rope = [x for x in range(0, 256)] rope_length = len(rope) current_position = skip_size = 0 for _ in range(64): for length in...
false
true
1c1d70d7b26c8935c89a7cd12a623c2dc37b1b79
116
py
Python
rasa/version.py
mbhavya/rasa
9328fee800bd688d177c33a1db9d68d769def284
[ "Apache-2.0" ]
48
2018-08-30T14:03:26.000Z
2019-05-13T06:46:52.000Z
rasa/version.py
mbhavya/rasa
9328fee800bd688d177c33a1db9d68d769def284
[ "Apache-2.0" ]
54
2018-08-31T17:44:36.000Z
2019-05-08T14:48:07.000Z
rasa/version.py
mbhavya/rasa
9328fee800bd688d177c33a1db9d68d769def284
[ "Apache-2.0" ]
51
2018-09-01T17:45:03.000Z
2019-05-01T05:57:20.000Z
# this file will automatically be changed, # do not add anything but the version number here! __version__ = "3.1.1"
29
50
0.75
__version__ = "3.1.1"
true
true
1c1d72a353acddb33d8e2acda380eef762c991b9
1,316
py
Python
IfxPy/tests/test_114_NumericTest_01.py
jaimundada/IfxPy
e6941d77051933dfe6affd3b096ea6d8f485ae9b
[ "Apache-2.0" ]
39
2017-09-25T00:10:23.000Z
2022-02-10T22:03:36.000Z
IfxPy/tests/test_114_NumericTest_01.py
jaimundada/IfxPy
e6941d77051933dfe6affd3b096ea6d8f485ae9b
[ "Apache-2.0" ]
58
2018-05-11T09:45:45.000Z
2022-03-10T10:27:01.000Z
IfxPy/tests/test_114_NumericTest_01.py
jaimundada/IfxPy
e6941d77051933dfe6affd3b096ea6d8f485ae9b
[ "Apache-2.0" ]
22
2018-02-02T12:41:18.000Z
2022-02-24T14:29:17.000Z
# # # import unittest, sys import IfxPy import config from testfunctions import IfxPyTestFunctions class IfxPyTestCase(unittest.TestCase): def test_114_NumericTest_01(self): obj = IfxPyTestFunctions() obj.assert_expect(self.run_test_114) def run_test_114(self): conn = IfxPy.connect(config.ConnStr...
20.5625
72
0.649696
import unittest, sys import IfxPy import config from testfunctions import IfxPyTestFunctions class IfxPyTestCase(unittest.TestCase): def test_114_NumericTest_01(self): obj = IfxPyTestFunctions() obj.assert_expect(self.run_test_114) def run_test_114(self): conn = IfxPy.connect(config.ConnStr, co...
true
true
1c1d730db2f700b2d06d9d49717c324f897fb161
1,013
py
Python
var/spack/repos/builtin/packages/r-gamlss-data/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/r-gamlss-data/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/r-gamlss-data/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 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) from spack.package import * class RGamlssData(RPackage): """GAMLSS Data. Data used as examples in the current t...
40.52
95
0.747285
from spack.package import * class RGamlssData(RPackage): cran = "gamlss.data" version('6.0-2', sha256='dbb3b6f855540928ccdbda497f8d552144895e34565799e8b595e704096db71e') version('5.1-4', sha256='0d3777d8c3cd76cef273aa6bde40a91688719be401195ed9bfd1e85bd7d5eeb5') version('5.1-3', sha256='4941180e...
true
true
1c1d74d30c17eb96370eb70c80987c81e1b1d7af
9,282
py
Python
label_studio/data_manager/functions.py
Muaado/label-studio
0605d0e02dccdb169ffe995b826c2004e21d82fa
[ "Apache-2.0" ]
8,264
2019-06-25T23:08:05.000Z
2022-03-31T18:48:34.000Z
label_studio/data_manager/functions.py
Muaado/label-studio
0605d0e02dccdb169ffe995b826c2004e21d82fa
[ "Apache-2.0" ]
1,446
2019-08-02T13:46:25.000Z
2022-03-31T23:09:32.000Z
label_studio/data_manager/functions.py
Muaado/label-studio
0605d0e02dccdb169ffe995b826c2004e21d82fa
[ "Apache-2.0" ]
1,092
2019-07-02T16:36:35.000Z
2022-03-31T20:01:19.000Z
"""This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license. """ import logging import ujson as json from collections import OrderedDict from django.conf import settings from rest_framework.generics import get_o...
32.229167
168
0.537492
import logging import ujson as json from collections import OrderedDict from django.conf import settings from rest_framework.generics import get_object_or_404 from core.utils.common import int_from_request from data_manager.prepare_params import PrepareParams from data_manager.models import View from tasks.models imp...
true
true
1c1d75aea6c7f8bc31b8636814f8cd0532314547
874
py
Python
src/pgbackup/tests/test_cli.py
linuxbytes/pgbackup
a33f70a4b2876e034fe453ff0d838248a5fb8536
[ "MIT" ]
null
null
null
src/pgbackup/tests/test_cli.py
linuxbytes/pgbackup
a33f70a4b2876e034fe453ff0d838248a5fb8536
[ "MIT" ]
null
null
null
src/pgbackup/tests/test_cli.py
linuxbytes/pgbackup
a33f70a4b2876e034fe453ff0d838248a5fb8536
[ "MIT" ]
null
null
null
import pytest from pgbackup import cli url = "postgres://foo:password@example.com:5432/db_one" def test_parser_without_driver(): """ Without a specified driver the parser will exit """ with pytest.raises(SystemExit): parser = cli.create_parser() parser.parse_args([url]) def test_pars...
25.705882
69
0.66476
import pytest from pgbackup import cli url = "postgres://foo:password@example.com:5432/db_one" def test_parser_without_driver(): with pytest.raises(SystemExit): parser = cli.create_parser() parser.parse_args([url]) def test_parser_with_driver(): parser = cli.create_parser() with pytest.r...
true
true
1c1d76241b9532036571d52cf7743dc2ea0171a5
56
py
Python
python/testData/resolve/callee/InstanceCall.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/resolve/callee/InstanceCall.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/resolve/callee/InstanceCall.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class A: def foo(self): pass a = A() a.f<caret>oo()
11.2
21
0.553571
class A: def foo(self): pass a = A() a.f<caret>oo()
true
true
1c1d76a7f11e713d1309c6160ad1a1a44bb63c58
11,173
py
Python
Lib/ldap/constants.py
reqa/python-ldap
e75c24dd70dcf10c8315d6f30ecf98f2c30f08e8
[ "MIT" ]
299
2017-11-23T14:24:32.000Z
2022-03-25T08:45:24.000Z
Lib/ldap/constants.py
reqa/python-ldap
e75c24dd70dcf10c8315d6f30ecf98f2c30f08e8
[ "MIT" ]
412
2017-11-23T22:21:36.000Z
2022-03-18T11:20:59.000Z
Lib/ldap/constants.py
reqa/python-ldap
e75c24dd70dcf10c8315d6f30ecf98f2c30f08e8
[ "MIT" ]
114
2017-11-23T14:24:37.000Z
2022-03-24T20:55:42.000Z
"""Definitions for constants exported by OpenLDAP This file lists all constants we know about, even those that aren't available in the OpenLDAP version python-ldap is compiled against. The information serves two purposes: - Generate a C header with the constants - Provide support for building documentation without c...
27.452088
82
0.656583
class Constant: def __init__(self, name, optional=False, requirements=(), doc=None): self.name = name if optional: self_requirement = f'defined(LDAP_{self.name})' requirements = list(requirements) + [self_requirement] self.requirements = requirements sel...
true
true
1c1d7765e349545f2ad959a320fe3c7842fc2e4e
6,881
py
Python
pymaps/pymaps.py
rafpyprog/pygmaps
ac2ab8c2180318dae99b888552db978df7410093
[ "MIT" ]
6
2018-02-24T16:03:23.000Z
2021-09-01T15:05:49.000Z
pymaps/pymaps.py
rafpyprog/pygmaps
ac2ab8c2180318dae99b888552db978df7410093
[ "MIT" ]
2
2018-02-24T14:52:01.000Z
2019-07-16T04:03:16.000Z
pymaps/pymaps.py
rafpyprog/pygmaps
ac2ab8c2180318dae99b888552db978df7410093
[ "MIT" ]
1
2018-02-24T14:59:12.000Z
2018-02-24T14:59:12.000Z
import base64 import glob import json from operator import itemgetter import os from jinja2 import Environment, FileSystemLoader from css_html_js_minify.js_minifier import js_minify_keep_comments from .marker import Marker, MarkerCluster from .utils import position_to_latLng, calc_avg_position from .mapelement import...
29.405983
87
0.582328
import base64 import glob import json from operator import itemgetter import os from jinja2 import Environment, FileSystemLoader from css_html_js_minify.js_minifier import js_minify_keep_comments from .marker import Marker, MarkerCluster from .utils import position_to_latLng, calc_avg_position from .mapelement import...
true
true
1c1d77ed7b1092510871e96104ef01ce368b9caf
541
py
Python
6_FirstREST/manage.py
LIkelion-at-KOREATECH/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
28
2019-10-15T13:15:26.000Z
2021-11-08T08:23:45.000Z
6_FirstREST/manage.py
jhleed/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
null
null
null
6_FirstREST/manage.py
jhleed/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
17
2019-09-09T00:15:36.000Z
2021-01-28T13:08:51.000Z
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'FirstREST.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Ar...
33.8125
73
0.687616
import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'FirstREST.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's insta...
true
true
1c1d78e834fef670cf460ee67fa5fa7014ea5cbb
330
py
Python
config.py
aatishnn/moodle_dhis2_assign_grader
b1e0226e9632098022aadf7bdff0d2464b9ed634
[ "MIT" ]
null
null
null
config.py
aatishnn/moodle_dhis2_assign_grader
b1e0226e9632098022aadf7bdff0d2464b9ed634
[ "MIT" ]
null
null
null
config.py
aatishnn/moodle_dhis2_assign_grader
b1e0226e9632098022aadf7bdff0d2464b9ed634
[ "MIT" ]
null
null
null
DHIS2_ENDPOINT = '/api' MOODLE_ENDPOINT = '/webservice/rest/server.php' DHIS2_URL = 'https://play.dhis2.org/2.29' DHIS2_USERNAME = 'admin' DHIS2_PASSWORD = 'district' MOODLE_KEY = '<YOUR_MOODLE_WEB_SERVICE_TOKEN>' MOODLE_URL = 'http://example.com/' DHIS2_REPORTTABLES_URL = DHIS2_URL + DHIS2_ENDPOINT + '/reportTab...
22
74
0.754545
DHIS2_ENDPOINT = '/api' MOODLE_ENDPOINT = '/webservice/rest/server.php' DHIS2_URL = 'https://play.dhis2.org/2.29' DHIS2_USERNAME = 'admin' DHIS2_PASSWORD = 'district' MOODLE_KEY = '<YOUR_MOODLE_WEB_SERVICE_TOKEN>' MOODLE_URL = 'http://example.com/' DHIS2_REPORTTABLES_URL = DHIS2_URL + DHIS2_ENDPOINT + '/reportTab...
true
true
1c1d7a6c96462bf9e10ce39443d66c5c7cd9014a
215
py
Python
api-tracer/args.py
AlekKras/Pentest_API
e91909ec63b747593e3ec9f32f3dfb37b581fad1
[ "Apache-2.0" ]
1
2020-10-20T02:24:21.000Z
2020-10-20T02:24:21.000Z
api-tracer/args.py
AlekKras/Pentest_API
e91909ec63b747593e3ec9f32f3dfb37b581fad1
[ "Apache-2.0" ]
null
null
null
api-tracer/args.py
AlekKras/Pentest_API
e91909ec63b747593e3ec9f32f3dfb37b581fad1
[ "Apache-2.0" ]
null
null
null
import sys def solveArgs(args): treatedArgs = dict() for i in range(3, len(args)): if(args[i] == '-t'): treatedArgs['threads'] = int(args[i+1]) i += 1 return treatedArgs
21.5
51
0.525581
import sys def solveArgs(args): treatedArgs = dict() for i in range(3, len(args)): if(args[i] == '-t'): treatedArgs['threads'] = int(args[i+1]) i += 1 return treatedArgs
true
true
1c1d7a86c1df80cadcb5d5fd76f6747e72f4e491
15,745
py
Python
python/ccxt/async_support/__init__.py
dio16/ccxt
7ed5cad9b75d8604b2b6b0b3594dce3807518199
[ "MIT" ]
null
null
null
python/ccxt/async_support/__init__.py
dio16/ccxt
7ed5cad9b75d8604b2b6b0b3594dce3807518199
[ "MIT" ]
null
null
null
python/ccxt/async_support/__init__.py
dio16/ccxt
7ed5cad9b75d8604b2b6b0b3594dce3807518199
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """CCXT: CryptoCurrency eXchange Trading Library (Async)""" # ----------------------------------------------------------------------------- __version__ = '1.34.25' # ----------------------------------------------------------------------------- from ccxt.async_support.base.exchange import Ex...
50.790323
86
0.557574
__version__ = '1.34.25' from ccxt.async_support.base.exchange import Exchange from ccxt.base.decimal_to_precision import decimal_to_precision from ccxt.base.decimal_to_precision import TRUNCATE from ccxt.base.decimal_to_precision import ROUND from ccxt.base.d...
true
true
1c1d7aa3129b32b738cc9e2dd70874f06712e2b8
69
py
Python
client_controllers/___init___.py
rcpch/digital-growth-charts-flask-client
fb6eb81df2c4f52f4b3618da456f871cb1700c4d
[ "MIT" ]
2
2020-08-01T15:31:04.000Z
2021-01-20T15:43:37.000Z
client_controllers/___init___.py
rcpch/digital-growth-charts-flask-client
fb6eb81df2c4f52f4b3618da456f871cb1700c4d
[ "MIT" ]
3
2020-08-25T18:25:42.000Z
2020-10-11T14:53:49.000Z
client_controllers/___init___.py
rcpch/digital-growth-charts-flask-client
fb6eb81df2c4f52f4b3618da456f871cb1700c4d
[ "MIT" ]
null
null
null
from chunk_file import chunk_file from save_as_csv import save_as_csv
34.5
35
0.898551
from chunk_file import chunk_file from save_as_csv import save_as_csv
true
true
1c1d7bba438f9ba98512cb779225471a85cf8d02
110
py
Python
gfapy/line/group/__init__.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
44
2017-03-18T08:08:04.000Z
2021-11-10T16:11:15.000Z
gfapy/line/group/__init__.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
22
2017-04-04T21:20:31.000Z
2022-03-09T19:05:30.000Z
gfapy/line/group/__init__.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
5
2017-07-07T02:56:56.000Z
2020-09-30T20:10:49.000Z
from .group import Group from .path import Path from .ordered import Ordered from .unordered import Unordered
22
32
0.818182
from .group import Group from .path import Path from .ordered import Ordered from .unordered import Unordered
true
true
1c1d7c311b27fe6bcf6f2fb1af8d6687524a9ed3
24,632
py
Python
tests/http/test_sss.py
sevein/python-client-sword2
38b5e654adb67b30a4b4cc319e30ed0243214bf7
[ "Apache-2.0" ]
null
null
null
tests/http/test_sss.py
sevein/python-client-sword2
38b5e654adb67b30a4b4cc319e30ed0243214bf7
[ "Apache-2.0" ]
null
null
null
tests/http/test_sss.py
sevein/python-client-sword2
38b5e654adb67b30a4b4cc319e30ed0243214bf7
[ "Apache-2.0" ]
null
null
null
from . import TestController from sword2 import Connection, Entry from sword2.exceptions import PackagingFormatNotAvailable from sword2.compatible_libs import json #SSS_PY_URL="http://sword-app.svn.sourceforge.net/viewvc/sword-app/sss/trunk/sss.py?revision=HEAD" SSS_PY_URL="https://raw.githubusercontent.com/OA-DeepGr...
58.508314
161
0.556187
from . import TestController from sword2 import Connection, Entry from sword2.exceptions import PackagingFormatNotAvailable from sword2.compatible_libs import json SSS_PY_URL="https://raw.githubusercontent.com/OA-DeepGreen/Simple-Sword-Server/master/sss/sss-1.0.py" PORT_NUMBER="8081" import subprocess, urllib.reque...
true
true
1c1d7c40bfaff80e902329384ef09a6d14a6789b
1,231
py
Python
profiles_api/serializers.py
samon3869/profiles-rest-api
951f9fc5c0789ab11f4ce517e0446606121de9e6
[ "MIT" ]
null
null
null
profiles_api/serializers.py
samon3869/profiles-rest-api
951f9fc5c0789ab11f4ce517e0446606121de9e6
[ "MIT" ]
null
null
null
profiles_api/serializers.py
samon3869/profiles-rest-api
951f9fc5c0789ab11f4ce517e0446606121de9e6
[ "MIT" ]
null
null
null
from rest_framework import serializers from profiles_api import models class HelloSerializer(serializers.Serializer): """Serializes a name field for testing our APIView""" name = serializers.CharField(max_length=10) class UserProfileSerializer(serializers.ModelSerializer): """Serializes a us...
30.02439
69
0.603574
from rest_framework import serializers from profiles_api import models class HelloSerializer(serializers.Serializer): name = serializers.CharField(max_length=10) class UserProfileSerializer(serializers.ModelSerializer): class Meta: model = models.UserProfile fields = ('id', 'e...
true
true
1c1d7cc9791fea56dea6dc29739f60d4c8678d6d
187
py
Python
tests/cases/config/print_custom_config.py
aarongaut/nextsong
05639d3aba2ef31721fd2533ca804a0d32e64ebf
[ "MIT" ]
null
null
null
tests/cases/config/print_custom_config.py
aarongaut/nextsong
05639d3aba2ef31721fd2533ca804a0d32e64ebf
[ "MIT" ]
null
null
null
tests/cases/config/print_custom_config.py
aarongaut/nextsong
05639d3aba2ef31721fd2533ca804a0d32e64ebf
[ "MIT" ]
null
null
null
from nextsong.config import Config, get with Config(media_root="foo", media_exts=["bar", "qux"]): print("media_root:", get("media_root")) print("media_exts:", get("media_exts"))
31.166667
57
0.684492
from nextsong.config import Config, get with Config(media_root="foo", media_exts=["bar", "qux"]): print("media_root:", get("media_root")) print("media_exts:", get("media_exts"))
true
true
1c1d7dbd60044dae5083064e2845401c09c532e4
12,279
py
Python
great_expectations/datasource/data_connector/inferred_asset_sql_data_connector.py
AntoineRondelet/great_expectations
159edd1738f8bff46dd60fa95cb4950c2e036c13
[ "Apache-2.0" ]
1
2021-12-20T22:16:03.000Z
2021-12-20T22:16:03.000Z
great_expectations/datasource/data_connector/inferred_asset_sql_data_connector.py
AntoineRondelet/great_expectations
159edd1738f8bff46dd60fa95cb4950c2e036c13
[ "Apache-2.0" ]
1
2021-12-07T13:06:29.000Z
2021-12-07T13:06:29.000Z
great_expectations/datasource/data_connector/inferred_asset_sql_data_connector.py
AntoineRondelet/great_expectations
159edd1738f8bff46dd60fa95cb4950c2e036c13
[ "Apache-2.0" ]
null
null
null
from typing import Dict, List, Optional, Tuple from great_expectations.datasource.data_connector.asset import Asset from great_expectations.datasource.data_connector.configured_asset_sql_data_connector import ( ConfiguredAssetSqlDataConnector, ) from great_expectations.execution_engine import ExecutionEngine try:...
40.93
147
0.593452
from typing import Dict, List, Optional, Tuple from great_expectations.datasource.data_connector.asset import Asset from great_expectations.datasource.data_connector.configured_asset_sql_data_connector import ( ConfiguredAssetSqlDataConnector, ) from great_expectations.execution_engine import ExecutionEngine try:...
true
true
1c1d7de081b705ec99a53f97ad8dad977c6654bd
2,814
py
Python
flask_unchained/bundles/sqlalchemy/model_registry.py
achiang/flask-unchained
12788a6e618904a25ff2b571eb05ff1dc8f1840f
[ "MIT" ]
null
null
null
flask_unchained/bundles/sqlalchemy/model_registry.py
achiang/flask-unchained
12788a6e618904a25ff2b571eb05ff1dc8f1840f
[ "MIT" ]
null
null
null
flask_unchained/bundles/sqlalchemy/model_registry.py
achiang/flask-unchained
12788a6e618904a25ff2b571eb05ff1dc8f1840f
[ "MIT" ]
null
null
null
import sys import warnings from py_meta_utils import McsInitArgs from sqlalchemy.exc import SAWarning from sqlalchemy_unchained import _ModelRegistry from typing import * class UnchainedModelRegistry(_ModelRegistry): enable_lazy_mapping = True def __init__(self): super().__init__() # like s...
35.620253
80
0.606965
import sys import warnings from py_meta_utils import McsInitArgs from sqlalchemy.exc import SAWarning from sqlalchemy_unchained import _ModelRegistry from typing import * class UnchainedModelRegistry(_ModelRegistry): enable_lazy_mapping = True def __init__(self): super().__init__() ...
true
true
1c1d7e5196e600651722b17e6be6d7d9f023cff1
4,312
py
Python
bot.py
v1s1t0r999/BoringTimePassDBot
3272f00b3585890c604c736f2376930464784c18
[ "MIT" ]
null
null
null
bot.py
v1s1t0r999/BoringTimePassDBot
3272f00b3585890c604c736f2376930464784c18
[ "MIT" ]
null
null
null
bot.py
v1s1t0r999/BoringTimePassDBot
3272f00b3585890c604c736f2376930464784c18
[ "MIT" ]
null
null
null
#fr import discord import ShitDB import asyncio from discord.ext import commands, tasks from modules import global_variables as env bot = commands.Bot(command_prefix = env.prefix, intents = env.intents, strip_after_prefix=True) db = ShitDB.AsyncDB( github_token = env.github_token, database_repo = env.github_repo...
35.344262
163
0.66025
import discord import ShitDB import asyncio from discord.ext import commands, tasks from modules import global_variables as env bot = commands.Bot(command_prefix = env.prefix, intents = env.intents, strip_after_prefix=True) db = ShitDB.AsyncDB( github_token = env.github_token, database_repo = env.github_repo, ...
false
true
1c1d7f11b61b9e8d04501f781a86a273a218afca
7,763
py
Python
pipeline/feature-classification/classification_melanoma_random_forest.py
I2Cvb/data_balancing
6a956d8ac6319c748a1ffe42effd419b5977779d
[ "MIT" ]
2
2016-04-21T11:44:48.000Z
2018-12-18T07:13:03.000Z
pipeline/feature-classification/classification_melanoma_random_forest.py
I2Cvb/data_balancing
6a956d8ac6319c748a1ffe42effd419b5977779d
[ "MIT" ]
1
2016-03-23T20:52:20.000Z
2016-03-23T20:52:20.000Z
pipeline/feature-classification/classification_melanoma_random_forest.py
I2Cvb/data_balancing
6a956d8ac6319c748a1ffe42effd419b5977779d
[ "MIT" ]
null
null
null
#title :classiciation_imbalanced_study.py #description :This will create a header for a python script. #author :Guillaume Lemaitre, Mojdeh Rastgoo #date :2016/01/19 #version :0.1 #notes : #python_version :2.7.6 #=====================================================...
42.889503
120
0.625918
import numpy as np import pandas as pd import h5py ification from sklearn.cross_validation import KFold from sklearn.cross_validation import StratifiedKFold from sklearn.preprocessing import MinMaxScaler from protoclass.classification.classification import Classify dataPath = sys.argv[1] path_to_save = s...
false
true
1c1d802227e5e9c91a1eb1b1556169ad6a892c6f
2,760
py
Python
test/lib/test_argformats.py
baderj/refinery
801c900a7184dfd47f5455124fbcfb4cf68814ed
[ "BSD-3-Clause" ]
1
2022-02-13T20:57:15.000Z
2022-02-13T20:57:15.000Z
test/lib/test_argformats.py
baderj/refinery
801c900a7184dfd47f5455124fbcfb4cf68814ed
[ "BSD-3-Clause" ]
null
null
null
test/lib/test_argformats.py
baderj/refinery
801c900a7184dfd47f5455124fbcfb4cf68814ed
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from refinery.lib import argformats from refinery.lib import loader from .. import TestBase class TestArgumentFormats(TestBase): def test_hex_number_arg(self): self.assertEqual(argformats.number('045FAD'), 0x45FAD) self.assertEqual(argformats.number...
40.588235
110
0.653986
from refinery.lib import argformats from refinery.lib import loader from .. import TestBase class TestArgumentFormats(TestBase): def test_hex_number_arg(self): self.assertEqual(argformats.number('045FAD'), 0x45FAD) self.assertEqual(argformats.number('45FADH'), 0x45FAD) def test_yara_regul...
true
true
1c1d8271316d66bdfe7891a760a3721d054dffc0
5,197
py
Python
utils/stain_utils.py
sebastianffx/stainlib
6d79f165fc69e7599d14310c6f4d26e3d0d01543
[ "MIT" ]
3
2021-09-15T00:58:11.000Z
2022-03-09T21:19:41.000Z
utils/stain_utils.py
sebastianffx/stainlib
6d79f165fc69e7599d14310c6f4d26e3d0d01543
[ "MIT" ]
1
2021-11-30T16:52:38.000Z
2021-11-30T16:52:38.000Z
utils/stain_utils.py
sebastianffx/stainlib
6d79f165fc69e7599d14310c6f4d26e3d0d01543
[ "MIT" ]
2
2020-12-29T10:00:52.000Z
2021-11-30T16:53:19.000Z
import numpy as np import cv2 as cv import spams import copy from stainlib.utils.excepts import TissueMaskException from abc import ABC, abstractmethod class ABCStainExtractor(ABC): @staticmethod @abstractmethod def get_stain_matrix(I): """ Estimate the stain matrix given an image. ...
26.651282
137
0.605734
import numpy as np import cv2 as cv import spams import copy from stainlib.utils.excepts import TissueMaskException from abc import ABC, abstractmethod class ABCStainExtractor(ABC): @staticmethod @abstractmethod def get_stain_matrix(I): class ABCTissueLocator(ABC): @staticmethod @abstractmethod ...
true
true
1c1d85242b330811f4540b0323c1286583d32e19
4,339
py
Python
tests/providers/amazon/aws/sensors/test_s3_keys_unchanged.py
takuti/airflow
0ac3b8c3dd749c59e60cf0169580b9e7c5049d9e
[ "Apache-2.0" ]
8,092
2016-04-27T20:32:29.000Z
2019-01-05T07:39:33.000Z
tests/providers/amazon/aws/sensors/test_s3_keys_unchanged.py
takuti/airflow
0ac3b8c3dd749c59e60cf0169580b9e7c5049d9e
[ "Apache-2.0" ]
2,961
2016-05-05T07:16:16.000Z
2019-01-05T08:47:59.000Z
tests/providers/amazon/aws/sensors/test_s3_keys_unchanged.py
takuti/airflow
0ac3b8c3dd749c59e60cf0169580b9e7c5049d9e
[ "Apache-2.0" ]
3,546
2016-05-04T20:33:16.000Z
2019-01-05T05:14:26.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...
39.807339
87
0.649228
from datetime import datetime from unittest import TestCase, mock import pytest from freezegun import freeze_time from parameterized import parameterized from airflow.models.dag import DAG, AirflowException from airflow.providers.amazon.aws.sensors.s3 import S3KeysUnchangedSensor TEST_DAG_ID = 'uni...
true
true
1c1d8632f7a46a11d54d921cf85109230a845538
3,621
py
Python
utils/images.py
rotmanmi/hp-vae-gan
70c67c8ad9ff1f8c48a2bf7f883cd1f2cfd0c043
[ "MIT" ]
45
2020-06-23T17:08:35.000Z
2022-03-31T15:34:29.000Z
utils/images.py
rotmanmi/hp-vae-gan
70c67c8ad9ff1f8c48a2bf7f883cd1f2cfd0c043
[ "MIT" ]
4
2020-11-11T03:50:58.000Z
2021-11-29T08:50:17.000Z
utils/images.py
rotmanmi/hp-vae-gan
70c67c8ad9ff1f8c48a2bf7f883cd1f2cfd0c043
[ "MIT" ]
9
2020-06-25T05:47:32.000Z
2022-01-20T00:29:30.000Z
import torch import torch.nn.functional as F import math __all__ = ['interpolate', 'interpolate_3D', 'adjust_scales2image', 'generate_noise', 'get_scales_by_index', 'get_fps_td_by_index', 'get_fps_by_index', 'upscale', 'upscale_2d'] def interpolate(input, size=None, scale_factor=None, interpolation='bilin...
34.160377
115
0.691522
import torch import torch.nn.functional as F import math __all__ = ['interpolate', 'interpolate_3D', 'adjust_scales2image', 'generate_noise', 'get_scales_by_index', 'get_fps_td_by_index', 'get_fps_by_index', 'upscale', 'upscale_2d'] def interpolate(input, size=None, scale_factor=None, interpolation='bilin...
true
true
1c1d86691d583dbecc3a61c0217fc5c8a6a0f91f
2,919
py
Python
minecraft/networking/packets/clientbound/login/__init__.py
networkException/pycraft-server
a68649cbe8e1a938405198b35aaaeb42e1b9224c
[ "Apache-2.0" ]
null
null
null
minecraft/networking/packets/clientbound/login/__init__.py
networkException/pycraft-server
a68649cbe8e1a938405198b35aaaeb42e1b9224c
[ "Apache-2.0" ]
null
null
null
minecraft/networking/packets/clientbound/login/__init__.py
networkException/pycraft-server
a68649cbe8e1a938405198b35aaaeb42e1b9224c
[ "Apache-2.0" ]
null
null
null
from minecraft.networking.packets import Packet from minecraft.networking.types import ( VarInt, String, VarIntPrefixedByteArray, TrailingByteArray, UUIDIntegerArray ) # Formerly known as state_login_clientbound. def get_packets(context): packets = { DisconnectPacket, EncryptionRequestPac...
28.617647
78
0.643371
from minecraft.networking.packets import Packet from minecraft.networking.types import ( VarInt, String, VarIntPrefixedByteArray, TrailingByteArray, UUIDIntegerArray ) def get_packets(context): packets = { DisconnectPacket, EncryptionRequestPacket, LoginSuccessPacket, Set...
true
true
1c1d8bc6edaf67e8971aa6bfb6b87dcd8b54bdc0
3,414
py
Python
app/app/settings.py
anil03/recipe-app-api
0458f4729f457bc52c41728074bd144299092011
[ "MIT" ]
null
null
null
app/app/settings.py
anil03/recipe-app-api
0458f4729f457bc52c41728074bd144299092011
[ "MIT" ]
null
null
null
app/app/settings.py
anil03/recipe-app-api
0458f4729f457bc52c41728074bd144299092011
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.2.4. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # Bui...
24.919708
91
0.685999
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'esd0^3*5gu_($pm_lxhh8vqn-+!%0as&*m_wjbnyfijw9aa67e' DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.content...
true
true
1c1d8ca9d9e0851af90018aee8818ef5207c19cc
4,037
py
Python
rollyourown/seo/options.py
Arvada13/SEO-Marketing-Reseller-White-Label-Hosting
2a088f53c8c04b423072a78d7a0b9db48c6ea8c8
[ "BSD-3-Clause" ]
137
2015-01-15T04:53:39.000Z
2022-02-14T06:04:32.000Z
rollyourown/seo/options.py
Arvada13/SEO-Marketing-Reseller-White-Label-Hosting
2a088f53c8c04b423072a78d7a0b9db48c6ea8c8
[ "BSD-3-Clause" ]
14
2015-02-23T20:13:57.000Z
2017-07-05T13:59:47.000Z
rollyourown/seo/options.py
Arvada13/SEO-Marketing-Reseller-White-Label-Hosting
2a088f53c8c04b423072a78d7a0b9db48c6ea8c8
[ "BSD-3-Clause" ]
69
2015-01-04T14:00:35.000Z
2022-03-01T14:12:00.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- from django.db.models.options import get_verbose_name from django.db import models from django.utils.datastructures import SortedDict class Options(object): def __init__(self, meta, help_text=None): self.use_sites = meta.pop('use_sites', False) self.us...
39.970297
118
0.605895
from django.db.models.options import get_verbose_name from django.db import models from django.utils.datastructures import SortedDict class Options(object): def __init__(self, meta, help_text=None): self.use_sites = meta.pop('use_sites', False) self.use_i18n = meta.pop('use_i18n', False) ...
true
true
1c1d8e9cb8327cca9e828737cb5c2de249574570
2,232
py
Python
recipes/catch2/2.x.x/conanfile.py
hoxnox/conan-center-index
5ecea3b63ebfe08dc672c5cbbb5a277d5e47f0f9
[ "MIT" ]
3
2020-04-16T15:01:33.000Z
2022-01-13T08:05:47.000Z
recipes/catch2/2.x.x/conanfile.py
hoxnox/conan-center-index
5ecea3b63ebfe08dc672c5cbbb5a277d5e47f0f9
[ "MIT" ]
33
2020-02-18T15:54:50.000Z
2022-03-28T08:54:10.000Z
recipes/catch2/2.x.x/conanfile.py
GavinNL/conan-center-index
0ae829a362c1cc6a20d97e023ca0aafc805797c3
[ "MIT" ]
8
2020-03-06T14:38:18.000Z
2022-03-28T08:41:15.000Z
import os from conans import ConanFile, CMake, tools class ConanRecipe(ConanFile): name = "catch2" description = "A modern, C++-native, header-only, framework for unit-tests, TDD and BDD" topics = ("conan", "catch2", "header-only", "unit-test", "tdd", "bdd") homepage = "https://github.com/catchorg/Ca...
36
96
0.633961
import os from conans import ConanFile, CMake, tools class ConanRecipe(ConanFile): name = "catch2" description = "A modern, C++-native, header-only, framework for unit-tests, TDD and BDD" topics = ("conan", "catch2", "header-only", "unit-test", "tdd", "bdd") homepage = "https://github.com/catchorg/Ca...
true
true
1c1d8fc2f1592a1ce767ee074d93371215fa8f51
502
py
Python
molsysmt/native/io/molsys/XYZ.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
3
2020-06-02T03:55:52.000Z
2022-03-21T04:43:52.000Z
molsysmt/native/io/molsys/XYZ.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
28
2020-06-24T00:55:53.000Z
2021-07-16T22:09:19.000Z
molsysmt/native/io/molsys/XYZ.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
1
2021-06-17T18:55:25.000Z
2021-06-17T18:55:25.000Z
def to_XYZ (item, molecular_system=None, atom_indices='all', frame_indices='all'): from molsysmt import get tmp_item = get(item, target='atom', selection=atom_indices, frame_indices=frame_indices, coordinates=True) if molecular_system is not None: tmp_molecular_system = molecular_...
33.466667
132
0.743028
def to_XYZ (item, molecular_system=None, atom_indices='all', frame_indices='all'): from molsysmt import get tmp_item = get(item, target='atom', selection=atom_indices, frame_indices=frame_indices, coordinates=True) if molecular_system is not None: tmp_molecular_system = molecular_...
true
true
1c1d925fd78a2cbf042f742ecb0c0fff77865f6f
2,325
py
Python
cars_site/cars/views.py
kampkelly/django_cars_site
8b03a550536ae053704060420bfdbbcd65e55896
[ "MIT" ]
null
null
null
cars_site/cars/views.py
kampkelly/django_cars_site
8b03a550536ae053704060420bfdbbcd65e55896
[ "MIT" ]
null
null
null
cars_site/cars/views.py
kampkelly/django_cars_site
8b03a550536ae053704060420bfdbbcd65e55896
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse from .models import Car from .helpers.decorators.car_validator import check_for_empty_fields # Create your views here. def index(request): context = {} return render(request, 'cars/index.html', context) def create_ca...
36.328125
131
0.68172
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse from .models import Car from .helpers.decorators.car_validator import check_for_empty_fields def index(request): context = {} return render(request, 'cars/index.html', context) def create_car(request): context =...
true
true
1c1d943e415749bb0dad8b13b0be747ddfd51373
5,103
py
Python
pytools/py_codegen.py
alexfikl/pytools
8ac46ed6564f8ef0dbf0306e348099ada8c9230a
[ "MIT" ]
null
null
null
pytools/py_codegen.py
alexfikl/pytools
8ac46ed6564f8ef0dbf0306e348099ada8c9230a
[ "MIT" ]
null
null
null
pytools/py_codegen.py
alexfikl/pytools
8ac46ed6564f8ef0dbf0306e348099ada8c9230a
[ "MIT" ]
null
null
null
from __future__ import division, with_statement __copyright__ = "Copyright (C) 2009-2013 Andreas Kloeckner" __license__ = """ 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, ...
31.306748
77
0.661768
from __future__ import division, with_statement __copyright__ = "Copyright (C) 2009-2013 Andreas Kloeckner" __license__ = """ 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, ...
true
true
1c1d950ac17b9193b72988955634c70ba2643ec5
1,022
py
Python
main/migrations/0008_tvseriesdetailsmodel.py
Codilis/TvSeriesDetailsWebsite
098e738bcc924ee8e39645d7d21cc028c7dfd7ad
[ "BSD-3-Clause" ]
1
2020-10-02T17:00:55.000Z
2020-10-02T17:00:55.000Z
main/migrations/0008_tvseriesdetailsmodel.py
Codilis/TvSeriesDetailsWebsite
098e738bcc924ee8e39645d7d21cc028c7dfd7ad
[ "BSD-3-Clause" ]
null
null
null
main/migrations/0008_tvseriesdetailsmodel.py
Codilis/TvSeriesDetailsWebsite
098e738bcc924ee8e39645d7d21cc028c7dfd7ad
[ "BSD-3-Clause" ]
1
2020-10-01T19:50:38.000Z
2020-10-01T19:50:38.000Z
# Generated by Django 3.1.1 on 2020-10-07 16:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0007_usertvseriesmodel_tv_series_name'), ] operations = [ migrations.CreateModel( name='TvSeriesDetailsModel', ...
36.5
114
0.600783
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0007_usertvseriesmodel_tv_series_name'), ] operations = [ migrations.CreateModel( name='TvSeriesDetailsModel', fields=[ ('id', models.AutoF...
true
true
1c1d9683ecf1b0b34cb9d885aad3b640a3ac5485
94
py
Python
pacote download/lista-exercicios/ex047.py
GiseleViedenhelfen/ExerciciosPython
b616b97a15484aac4980968197955702bd7aaa6d
[ "MIT" ]
null
null
null
pacote download/lista-exercicios/ex047.py
GiseleViedenhelfen/ExerciciosPython
b616b97a15484aac4980968197955702bd7aaa6d
[ "MIT" ]
null
null
null
pacote download/lista-exercicios/ex047.py
GiseleViedenhelfen/ExerciciosPython
b616b97a15484aac4980968197955702bd7aaa6d
[ "MIT" ]
null
null
null
for c in range(2, 51, 2): #if c % 2 == 0: range(2, 51): TAMBÉM FUNCIONA! print(c)
23.5
50
0.510638
for c in range(2, 51, 2): print(c)
true
true
1c1d974f5106b81f1e230d6e4941ffeef979b629
2,167
py
Python
bin/ihex-to-img.py
POETSII/jordmorr-tinsel
39249538d532e4945d9916748346c261dc5ea75d
[ "BSD-2-Clause" ]
31
2019-09-18T10:55:47.000Z
2021-12-01T20:39:46.000Z
bin/ihex-to-img.py
POETSII/jordmorr-tinsel
39249538d532e4945d9916748346c261dc5ea75d
[ "BSD-2-Clause" ]
26
2019-10-13T13:33:04.000Z
2021-11-10T11:09:48.000Z
bin/ihex-to-img.py
POETSII/jordmorr-tinsel
39249538d532e4945d9916748346c261dc5ea75d
[ "BSD-2-Clause" ]
1
2020-09-11T17:32:43.000Z
2020-09-11T17:32:43.000Z
#!/usr/bin/python # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) Matthew Naylor # # Script to convert an Intel Hex file to: # * a raw hex image suitable for Bluesim; # * a .mif file suitable for Quartus. import sys def usage(): print "Usage: ihex-to-img.py <input.hex> <format> <base> <width> <depth>"...
22.572917
75
0.590678
import sys def usage(): print "Usage: ihex-to-img.py <input.hex> <format> <base> <width> <depth>" print "" print " <format> is either hex or mif" print " Units of <width> and <depth> are bytes" if len(sys.argv) != 6: usage() sys.exit() fmt = sys.argv[2] if fmt != "hex" and fmt != "mif": usag...
false
true
1c1d97b6dd82997e755e36d316b8f2fd01b7c1bd
1,474
py
Python
salt/cli/run.py
belvedere-trading/salt
0ab0aa4d79237e9309dda6f685b34e55fda06258
[ "Apache-2.0" ]
3
2015-04-16T18:42:35.000Z
2017-10-30T16:57:49.000Z
salt/salt/cli/run.py
smallyear/linuxLearn
342e5020bf24b5fac732c4275a512087b47e578d
[ "Apache-2.0" ]
16
2015-11-18T00:44:03.000Z
2018-10-29T20:48:27.000Z
salt/salt/cli/run.py
smallyear/linuxLearn
342e5020bf24b5fac732c4275a512087b47e578d
[ "Apache-2.0" ]
1
2017-01-27T21:33:36.000Z
2017-01-27T21:33:36.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import absolute_import from salt.utils import parsers from salt.utils import activate_profile from salt.utils import output_profile from salt.utils.verify import check_user, verify_log from salt.exceptions import SaltClientError import salt....
30.081633
69
0.611262
from __future__ import print_function from __future__ import absolute_import from salt.utils import parsers from salt.utils import activate_profile from salt.utils import output_profile from salt.utils.verify import check_user, verify_log from salt.exceptions import SaltClientError import salt.defaults.exitcodes ...
true
true
1c1d981836112b499b80d3b3d116a9733cfa05e2
26,903
py
Python
bicks/bicsearch.py
balabalabalalaba/testb
fd2a8262bba94c561be49d69120401f0d7259fdf
[ "MIT" ]
null
null
null
bicks/bicsearch.py
balabalabalalaba/testb
fd2a8262bba94c561be49d69120401f0d7259fdf
[ "MIT" ]
null
null
null
bicks/bicsearch.py
balabalabalalaba/testb
fd2a8262bba94c561be49d69120401f0d7259fdf
[ "MIT" ]
null
null
null
from bicks.eigenkpar import find_eigen_kpar_in_an_area, find_eigen_kpar from bicks.photoniccrystalbandprojection import find_band_projection from bicks.photoniccrystalbandprojection import mini_frequncy from bicks.field import FieldsWithCTIRInArea, FieldsWithCTIRMix import matplotlib.pyplot as plt import matplotlib.ani...
35.966578
89
0.431142
from bicks.eigenkpar import find_eigen_kpar_in_an_area, find_eigen_kpar from bicks.photoniccrystalbandprojection import find_band_projection from bicks.photoniccrystalbandprojection import mini_frequncy from bicks.field import FieldsWithCTIRInArea, FieldsWithCTIRMix import matplotlib.pyplot as plt import matplotlib.ani...
true
true
1c1d990dd1d7c3d3c150096c59ba2f3c1da413a3
3,002
py
Python
tools/gatk-filter-mutect-calls/gatk-filter-mutect-calls.py
icgc-argo/gatk-tools
6d42680de696de8f1cbc53a2202d23abc8566401
[ "BSD-3-Clause" ]
null
null
null
tools/gatk-filter-mutect-calls/gatk-filter-mutect-calls.py
icgc-argo/gatk-tools
6d42680de696de8f1cbc53a2202d23abc8566401
[ "BSD-3-Clause" ]
31
2020-02-13T20:05:18.000Z
2021-02-12T17:05:39.000Z
tools/gatk-filter-mutect-calls/gatk-filter-mutect-calls.py
icgc-argo/gatk-tools
6d42680de696de8f1cbc53a2202d23abc8566401
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import os import sys import subprocess import argparse import re def run_cmd(cmd): try: p = subprocess.run([cmd], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, check=True) except subprocess.CalledProcessError as e: # this is triggered ...
44.147059
173
0.641905
import os import sys import subprocess import argparse import re def run_cmd(cmd): try: p = subprocess.run([cmd], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, check=True) except subprocess.CalledProcessError as e: print(e.stdout.decode("utf-8")) ...
true
true
1c1d99958dff194f4700131e6d6b4891feef3a9b
137
py
Python
lxfpython/oop-advance/hellow.py
dronly/python
3f7c2e4a36b2066262f92125d12c07cd72925621
[ "Apache-2.0" ]
null
null
null
lxfpython/oop-advance/hellow.py
dronly/python
3f7c2e4a36b2066262f92125d12c07cd72925621
[ "Apache-2.0" ]
null
null
null
lxfpython/oop-advance/hellow.py
dronly/python
3f7c2e4a36b2066262f92125d12c07cd72925621
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3.5 # -*- coding: utf-8 -*- class Hellow(object): def hello(self, name = 'world'): print('Hellow, %s' % name)
15.222222
33
0.591241
class Hellow(object): def hello(self, name = 'world'): print('Hellow, %s' % name)
true
true
1c1d9a203749985eb9ce4fa98ad0e9227de33b03
1,919
py
Python
code/wisconsin.py
jordankeener/ncaa_rosters
12e66e9ef7502ab6869e7352ae673c46680eedd0
[ "MIT" ]
null
null
null
code/wisconsin.py
jordankeener/ncaa_rosters
12e66e9ef7502ab6869e7352ae673c46680eedd0
[ "MIT" ]
null
null
null
code/wisconsin.py
jordankeener/ncaa_rosters
12e66e9ef7502ab6869e7352ae673c46680eedd0
[ "MIT" ]
null
null
null
from urllib.request import urlopen from urllib.request import FancyURLopener from bs4 import BeautifulSoup import pandas as pd import os import _proj_functions as proj import _lookups as lookups import re outdir = '../output' ##### wisconsin ################# school = "wisconsin" url_template = 'https://uwbadgers.com...
31.983333
66
0.714435
from urllib.request import urlopen from urllib.request import FancyURLopener from bs4 import BeautifulSoup import pandas as pd import os import _proj_functions as proj import _lookups as lookups import re outdir = '../output' ens cross country'] = ['mcross'] sports_dict['womens cross country'] = ['wcross'] sports_dic...
true
true
1c1d9be3c15e6450d4d370adaed9de1087e9ad61
417
py
Python
shinkansen_simulator/wsgi.py
togashigg/shinkansen-simulator
099beb3c0ccc4b045fc78f02540a61fa12d8a3e4
[ "CC0-1.0" ]
null
null
null
shinkansen_simulator/wsgi.py
togashigg/shinkansen-simulator
099beb3c0ccc4b045fc78f02540a61fa12d8a3e4
[ "CC0-1.0" ]
null
null
null
shinkansen_simulator/wsgi.py
togashigg/shinkansen-simulator
099beb3c0ccc4b045fc78f02540a61fa12d8a3e4
[ "CC0-1.0" ]
null
null
null
""" WSGI config for shinkansen-simulator project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault(...
24.529412
80
0.796163
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'shinkansen_simulator.settings') application = get_wsgi_application()
true
true
1c1d9befeb767fa538bcd6d87c9b2d11ffc8882a
2,060
py
Python
venv/Lib/site-packages/pyrogram/raw/types/secure_value_type_temporary_registration.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/secure_value_type_temporary_registration.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/secure_value_type_temporary_registration.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
32.1875
103
0.645146
from io import BytesIO from pyrogram.raw.core.primitives import Int, Long, Int128, Int256, Bool, Bytes, String, Double, Vector from pyrogram.raw.core import TLObject from pyrogram import raw from typing import List, Union, Any
true
true
1c1d9c111508000918b0253a544eca3ffb7c82b8
1,467
py
Python
tests/resources/datasets/save_datasets.py
talperetz/pyds
1a46d83c1ee71056484ab9e78bc19da6c2163583
[ "Apache-2.0" ]
1
2020-09-21T17:29:28.000Z
2020-09-21T17:29:28.000Z
tests/resources/datasets/save_datasets.py
talperetz/PyDS
1a46d83c1ee71056484ab9e78bc19da6c2163583
[ "Apache-2.0" ]
5
2016-11-27T14:27:15.000Z
2016-12-08T12:31:38.000Z
tests/resources/datasets/save_datasets.py
talperetz/PyDS
1a46d83c1ee71056484ab9e78bc19da6c2163583
[ "Apache-2.0" ]
1
2020-08-10T15:39:30.000Z
2020-08-10T15:39:30.000Z
""" :author: Tal Peretz :date: 11/11/2016 :TL;DR: this module purpose is generating datasets for pyds tests """ import os import pandas as pd import sklearn.datasets save_attribute_to_file_extension = {'to_excel': 'xls', 'to_html': 'html', 'to_json': 'json', 'to_pickle': 'pickle', ...
36.675
115
0.650307
import os import pandas as pd import sklearn.datasets save_attribute_to_file_extension = {'to_excel': 'xls', 'to_html': 'html', 'to_json': 'json', 'to_pickle': 'pickle', 'to_stata': 'stata', 'to_sql': 'sql', 'to_csv': 'csv', } DATASETS_PATH = os.path.abspath("") datasets = ( ...
true
true
1c1d9d5335fc7027de048a9800e7e4a48d783f6c
45,306
py
Python
tests/ut/python/ops/test_ops.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "Apache-2.0" ]
1
2020-05-13T11:31:21.000Z
2020-05-13T11:31:21.000Z
tests/ut/python/ops/test_ops.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "Apache-2.0" ]
null
null
null
tests/ut/python/ops/test_ops.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "Apache-2.0" ]
null
null
null
# 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.422987
120
0.475654
import functools import numpy as np from mindspore import ops, Parameter, context from mindspore.ops import functional as F from mindspore.ops import operations as P from mindspore.ops.operations import _grad_ops as G import mindspore.ops.composite as C import mindspore.nn as nn from mindspore import Tens...
true
true
1c1d9d8d007ac1fd3967726460dfed156e47a61c
7,596
py
Python
st/clitests/s3kvstool.py
Jeetandra/cortx-s3server
eb5242f28d79fb39453a4de57ae98c8000b1a221
[ "Apache-2.0" ]
null
null
null
st/clitests/s3kvstool.py
Jeetandra/cortx-s3server
eb5242f28d79fb39453a4de57ae98c8000b1a221
[ "Apache-2.0" ]
null
null
null
st/clitests/s3kvstool.py
Jeetandra/cortx-s3server
eb5242f28d79fb39453a4de57ae98c8000b1a221
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates # # 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 ap...
42.435754
238
0.680885
import os import sys import time import subprocess import yaml from framework import S3PyCliTest from framework import Config from framework import logit class MotrConfig(): def __init__(self): lctl_cmd = "sudo lctl list_nids | head -1" result = subprocess.check_output(lctl_cmd, ...
true
true
1c1d9e573717227e0e7931e9cb6c855e4a1e8736
5,412
py
Python
accelbyte_py_sdk/api/legal/operations/policies/set_default_policy_1.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/legal/operations/policies/set_default_policy_1.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
accelbyte_py_sdk/api/legal/operations/policies/set_default_policy_1.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: justice_py_sdk_codegen/__main__.py # pylint: disable=duplicate-code # pylint: disable=li...
26.271845
136
0.636918
from __future__ import annotations from typing import Any, Dict, List, Optional, Tuple, Union from .....core import Operation from .....core import HeaderStr from .....core import HttpResponse class SetDefaultPolicy1(Operation): _url: str = "/agreement/admin/policies/{policyId}/def...
true
true
1c1d9e6d6ce8258e00b25a65534e3b4bfd19c70d
90,725
py
Python
radio_optical_transients_plot/ro_main.py
4pisky/radio-optical-transients-plot
2ecc3bba79f6c87b84635a32596fa3c6e9ccf65d
[ "MIT" ]
null
null
null
radio_optical_transients_plot/ro_main.py
4pisky/radio-optical-transients-plot
2ecc3bba79f6c87b84635a32596fa3c6e9ccf65d
[ "MIT" ]
null
null
null
radio_optical_transients_plot/ro_main.py
4pisky/radio-optical-transients-plot
2ecc3bba79f6c87b84635a32596fa3c6e9ccf65d
[ "MIT" ]
null
null
null
"""Radio Optical plot main classes. This script contains the main plotting classes for the radio optical plots. This file can be imported as a module and contains the following classes: * RadioOpticalData: Object handling the data of the plot. * RadioOpticalPlot: Plotting non-track plots and histograms. ...
34.84063
79
0.469749
import matplotlib.font_manager as fm import matplotlib.pyplot as plt import matplotlib.ticker as mticker import matplotlib.markers as plt_markers import numpy as np import pandas as pd import pkg_resources import warnings from astropy.cosmology import FlatLambdaCDM from collections import Counter from matplotlib.line...
true
true
1c1d9e7a86aaf44fbdf003ba75e4e604372cdde9
5,281
py
Python
project6-data-pipelines/runtime/plugins/operators/stage_redshift.py
paulo3011/sparkfy
1e75941acbaf5603dac0e8f942f41646ceaa5e11
[ "MIT" ]
null
null
null
project6-data-pipelines/runtime/plugins/operators/stage_redshift.py
paulo3011/sparkfy
1e75941acbaf5603dac0e8f942f41646ceaa5e11
[ "MIT" ]
null
null
null
project6-data-pipelines/runtime/plugins/operators/stage_redshift.py
paulo3011/sparkfy
1e75941acbaf5603dac0e8f942f41646ceaa5e11
[ "MIT" ]
null
null
null
from airflow.providers.postgres.hooks.postgres import PostgresHook # from airflow.providers.postgres.operators.postgres import PostgresOperator from airflow.models.baseoperator import BaseOperator from airflow.utils.decorators import apply_defaults from airflow.models import Variable class StageToRedshiftOperator(Base...
38.268116
135
0.658966
from airflow.providers.postgres.hooks.postgres import PostgresHook from airflow.models.baseoperator import BaseOperator from airflow.utils.decorators import apply_defaults from airflow.models import Variable class StageToRedshiftOperator(BaseOperator): ui_color = '#358140' template_fields = ["partition_by", "...
true
true
1c1d9f2c607e88719fbba06e169a83669a045992
6,603
py
Python
MNIST/mnist_byz_attack.py
chart21/BARFED
803baafc9a0379cdd94f337be8fe39c890098624
[ "MIT" ]
5
2021-11-12T09:06:11.000Z
2022-03-29T00:00:50.000Z
MNIST/mnist_byz_attack.py
chart21/BARFED
803baafc9a0379cdd94f337be8fe39c890098624
[ "MIT" ]
1
2022-02-28T16:37:23.000Z
2022-03-04T22:20:51.000Z
MNIST/mnist_byz_attack.py
chart21/BARFED
803baafc9a0379cdd94f337be8fe39c890098624
[ "MIT" ]
2
2022-03-07T13:02:39.000Z
2022-03-29T00:00:44.000Z
import torch from torch import nn from torch.utils.data import TensorDataset from torch.utils.data import DataLoader import numpy as np from fl_utils import distribute_data as dd from fl_utils import train_nodes as tn from fl_utils import construct_models as cm device = torch.device("cuda:0" if torch.cuda.is_available...
47.164286
142
0.592912
import torch from torch import nn from torch.utils.data import TensorDataset from torch.utils.data import DataLoader import numpy as np from fl_utils import distribute_data as dd from fl_utils import train_nodes as tn from fl_utils import construct_models as cm device = torch.device("cuda:0" if torch.cuda.is_available...
true
true
1c1d9f8718147cfaba05c75c5e6ed0b709c6eb25
438
py
Python
amy/workshops/migrations/0116_auto_20160902_1413.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
53
2015-01-10T17:39:19.000Z
2019-06-12T17:36:34.000Z
amy/workshops/migrations/0116_auto_20160902_1413.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
1,176
2015-01-02T06:32:47.000Z
2019-06-18T11:57:47.000Z
amy/workshops/migrations/0116_auto_20160902_1413.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
44
2015-01-03T15:08:56.000Z
2019-06-09T05:33:08.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-09-02 19:13 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('workshops', '0115_auto_20160812_2056'), ] operations = [ migrations.AlterUniqueToget...
21.9
70
0.611872
from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('workshops', '0115_auto_20160812_2056'), ] operations = [ migrations.AlterUniqueTogether( name='task', unique_together=set([('event...
true
true
1c1d9ff938ce3ec1bb9fe5a39a243f8064fe69e8
3,065
py
Python
tests/test_authentications.py
EdgeSync/falconpy
a2c026721259137dbbaa647aa719007ad20d9353
[ "Unlicense" ]
null
null
null
tests/test_authentications.py
EdgeSync/falconpy
a2c026721259137dbbaa647aa719007ad20d9353
[ "Unlicense" ]
null
null
null
tests/test_authentications.py
EdgeSync/falconpy
a2c026721259137dbbaa647aa719007ad20d9353
[ "Unlicense" ]
null
null
null
# test_authentications.py # Tests different service class authentication styles import os import sys # Authentication via the test_authorization.py from tests import test_authorization as Authorization # Import our sibling src folder into the path sys.path.append(os.path.abspath('src')) # Classes to test - manually im...
39.294872
116
0.595106
import os import sys from tests import test_authorization as Authorization sys.path.append(os.path.abspath('src')) from falconpy.zero_trust_assessment import Zero_Trust_Assessment as FalconZTA from falconpy.cloud_connect_aws import Cloud_Connect_AWS as FalconAWS from falconpy import oauth2 as FalconAuth auth = A...
true
true
1c1da12434317b65d8702f32e32e2f8251d65e18
18,619
py
Python
src/polytopes/models.py
mohi7solanki/pywonderland
2b9d61a8414d4cfa92d34325e5e2b9b5d501abca
[ "MIT" ]
null
null
null
src/polytopes/models.py
mohi7solanki/pywonderland
2b9d61a8414d4cfa92d34325e5e2b9b5d501abca
[ "MIT" ]
null
null
null
src/polytopes/models.py
mohi7solanki/pywonderland
2b9d61a8414d4cfa92d34325e5e2b9b5d501abca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Classes for building models of 3D/4D polytopes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ See the doc: "https://neozhaoliang.github.io/polytopes/" """ from itertools import combinations import numpy as np import helpers from todd_coxeter i...
40.213823
117
0.552285
from itertools import combinations import numpy as np import helpers from todd_coxeter import CosetTable class BasePolytope(object): def __init__(self, coxeter_diagram, init_dist, extra_relations=()): self.coxeter_matrix = helpers.get_coxeter_matrix(coxeter_diagram) self.mirrors = help...
true
true
1c1da1375918a4b0602cf1cb63bbf9b951d42f9c
7,576
py
Python
download.py
d-murashkin/sentinel1_routines
bf521dc96193420d88be0c1510ca03481018f3e2
[ "MIT" ]
4
2020-08-06T00:51:38.000Z
2021-06-01T12:32:35.000Z
download.py
d-murashkin/sentinel1_routines
bf521dc96193420d88be0c1510ca03481018f3e2
[ "MIT" ]
null
null
null
download.py
d-murashkin/sentinel1_routines
bf521dc96193420d88be0c1510ca03481018f3e2
[ "MIT" ]
null
null
null
""" Script for searching and downloading data from sentinel satellites. dhusget.sh script from the Copernicus web-page is used. Single scenes can be downloaded from https://datapool.asf.alaska.edu """ __author__ = 'Dmitrii Murashkin' __email__ = 'murashkin@uni-bremen.de' import os import subprocess import datetime im...
42.324022
395
0.63688
__author__ = 'Dmitrii Murashkin' __email__ = 'murashkin@uni-bremen.de' import os import subprocess import datetime import shutil import stat import pandas as pd from .scene_management import get_scene_folder from .scene_management import get_date_folder def set_dir(dir_path): if not os.path.exists(dir_path): ...
true
true
1c1da14533483c61cda769d71073db36a50e6834
8,755
py
Python
training/utils/Utils.py
manogna-s/da-fer
43229ba368454cb4e5aecab8fdb3ea68ad9060e4
[ "MIT" ]
null
null
null
training/utils/Utils.py
manogna-s/da-fer
43229ba368454cb4e5aecab8fdb3ea68ad9060e4
[ "MIT" ]
null
null
null
training/utils/Utils.py
manogna-s/da-fer
43229ba368454cb4e5aecab8fdb3ea68ad9060e4
[ "MIT" ]
null
null
null
import os import pandas as pd import torch.utils.data as data import torchvision.transforms as transforms from PIL import Image from models.AdversarialNetwork import RandomLayer, AdversarialNetwork from models.ResNet import IR_global_local, IR_global from models.ResNet_GCN import IR_GCN from models.ResNet_feat import ...
38.738938
139
0.650257
import os import pandas as pd import torch.utils.data as data import torchvision.transforms as transforms from PIL import Image from models.AdversarialNetwork import RandomLayer, AdversarialNetwork from models.ResNet import IR_global_local, IR_global from models.ResNet_GCN import IR_GCN from models.ResNet_feat import ...
true
true
1c1da23f1ca13e6d38f4de13d1af872ac4228755
1,845
py
Python
NumPyUltraQuickTutorial.py
xvalad/ML
baf71a32fe5c5cf8e9f79a7ec46f59b878f87965
[ "Apache-2.0" ]
null
null
null
NumPyUltraQuickTutorial.py
xvalad/ML
baf71a32fe5c5cf8e9f79a7ec46f59b878f87965
[ "Apache-2.0" ]
null
null
null
NumPyUltraQuickTutorial.py
xvalad/ML
baf71a32fe5c5cf8e9f79a7ec46f59b878f87965
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # NumpyUltraQuickTutorial by Google # https://colab.research.google.com/github/google/eng-edu/blob/master/ml/cc/exercises/numpy_ultraquick_tutorial.ipynb # import numpy as np print(np.version.version) # Examples one_dimensional_array = np.array([1.2, 2.4, 3.5, 4.7, 6.1, 7.2, 8.3, 9.5]) print("1D arra...
34.166667
117
0.759892
import numpy as np print(np.version.version) one_dimensional_array = np.array([1.2, 2.4, 3.5, 4.7, 6.1, 7.2, 8.3, 9.5]) print("1D array:\n",one_dimensional_array) two_dimensional_array = np.array([[6, 5], [11, 7], [4, 8]]) print("2D array:\n",two_dimensional_array) zeros_array=np.zeros((3,4)) print("Zeros array ...
true
true
1c1da280cb4087ef31146c97bf202945d6a355c7
2,191
py
Python
smartcalculator.py
itsjatin135s/PythonBasics
00860a9ad103f2151d3e4f3835d8f3c9c8d5099d
[ "MIT" ]
null
null
null
smartcalculator.py
itsjatin135s/PythonBasics
00860a9ad103f2151d3e4f3835d8f3c9c8d5099d
[ "MIT" ]
null
null
null
smartcalculator.py
itsjatin135s/PythonBasics
00860a9ad103f2151d3e4f3835d8f3c9c8d5099d
[ "MIT" ]
null
null
null
from tkinter import * def add(a,b): return a + b def sub(a,b): return a - b def mul(a,b): return a * b def div(a,b): return a / b def mod(a,b): return a % b def lcm(a,b): L = a if a>b else b while L <= a*b: if L%a == 0 and L%b == 0: return L L+=1 def hcf(a,...
24.897727
87
0.534459
from tkinter import * def add(a,b): return a + b def sub(a,b): return a - b def mul(a,b): return a * b def div(a,b): return a / b def mod(a,b): return a % b def lcm(a,b): L = a if a>b else b while L <= a*b: if L%a == 0 and L%b == 0: return L L+=1 def hcf(a,...
true
true
1c1da2bdbcea6ff3a22b5d9a601fc5d5e25ba663
45,307
py
Python
pandas/tests/frame/test_apply.py
fdroessler/pandas
dc86509b44b3fb0cd9a1a6d6ed564b082dc50848
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2019-04-23T07:25:37.000Z
2019-04-23T07:25:37.000Z
pandas/tests/frame/test_apply.py
fdroessler/pandas
dc86509b44b3fb0cd9a1a6d6ed564b082dc50848
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/frame/test_apply.py
fdroessler/pandas
dc86509b44b3fb0cd9a1a6d6ed564b082dc50848
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from collections import OrderedDict from datetime import datetime from itertools import chain import operator import warnings import numpy as np import pytest from pandas.core.dtypes.dtypes import CategoricalDtype import pandas as pd from pandas import DataFrame, MultiIndex, Series, Timestam...
39.125216
79
0.527645
from collections import OrderedDict from datetime import datetime from itertools import chain import operator import warnings import numpy as np import pytest from pandas.core.dtypes.dtypes import CategoricalDtype import pandas as pd from pandas import DataFrame, MultiIndex, Series, Timestamp, date_range, notna fr...
true
true
1c1da3b33296daac90934447863b8787c8716e06
331
py
Python
posts/migrations/0003_remove_post_comment_count.py
ishanshah710/DjangoBlog
20e17d8e82f63df5c945f25e00f68513e94de1cc
[ "MIT" ]
null
null
null
posts/migrations/0003_remove_post_comment_count.py
ishanshah710/DjangoBlog
20e17d8e82f63df5c945f25e00f68513e94de1cc
[ "MIT" ]
null
null
null
posts/migrations/0003_remove_post_comment_count.py
ishanshah710/DjangoBlog
20e17d8e82f63df5c945f25e00f68513e94de1cc
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-10-20 19:11 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('posts', '0002_auto_20211020_1758'), ] operations = [ migrations.RemoveField( model_name='post', name='comment_count', ...
18.388889
47
0.595166
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('posts', '0002_auto_20211020_1758'), ] operations = [ migrations.RemoveField( model_name='post', name='comment_count', ), ]
true
true
1c1da3cebd5f1cd78625f2bad1104ea62879f7b7
24,918
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/choropleth/colorbar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/choropleth/colorbar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/choropleth/colorbar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): # font # ---- @property def font(self): """ Sets this color bar's title font. Note that the title's font used to be set by the now depr...
34.512465
82
0.565254
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): @property def font(self): return self["font"] @font.setter def font(self, val): self["font"] = val @property def ...
true
true
1c1da3fc406ae09487ec62b7d996b557b279d39b
3,233
py
Python
netket/legacy/sampler/metropolis_local.py
gpescia/MyNetKet
958510966a5870d9d491de0628903cf1fc210921
[ "Apache-2.0" ]
null
null
null
netket/legacy/sampler/metropolis_local.py
gpescia/MyNetKet
958510966a5870d9d491de0628903cf1fc210921
[ "Apache-2.0" ]
11
2021-07-12T15:20:14.000Z
2022-01-17T09:40:41.000Z
netket/legacy/sampler/metropolis_local.py
gpescia/MyNetKet
958510966a5870d9d491de0628903cf1fc210921
[ "Apache-2.0" ]
1
2021-04-25T15:47:32.000Z
2021-04-25T15:47:32.000Z
from .metropolis_hastings import * from ._kernels import _LocalKernel def MetropolisLocal(machine, n_chains=16, sweep_size=None, **kwargs): r""" Sampler acting on one local degree of freedom. This sampler acts locally only on one local degree of freedom :math:`s_i`, and proposes a new state: :math:`s...
39.426829
98
0.639344
from .metropolis_hastings import * from ._kernels import _LocalKernel def MetropolisLocal(machine, n_chains=16, sweep_size=None, **kwargs): return MetropolisHastings( machine, _LocalKernel(machine), n_chains, sweep_size, **kwargs ) def MetropolisLocalPt(machine, n_replicas=16, sweep_size=None, **kw...
true
true
1c1da52001bf4910ea62dbbafed4dace6e1acff5
1,567
py
Python
denoiser.py
kichanll/multiband-melgan
a0086054aaa5c70aebe278db3320bb913cce9558
[ "BSD-3-Clause" ]
3
2021-03-03T07:33:22.000Z
2022-01-18T11:34:10.000Z
denoiser.py
kichanll/multiband-melgan
a0086054aaa5c70aebe278db3320bb913cce9558
[ "BSD-3-Clause" ]
null
null
null
denoiser.py
kichanll/multiband-melgan
a0086054aaa5c70aebe278db3320bb913cce9558
[ "BSD-3-Clause" ]
1
2021-03-03T07:34:13.000Z
2021-03-03T07:34:13.000Z
import sys import torch from utils.stft import STFT from utils.pqmf import PQMF class Denoiser(torch.nn.Module): """ Removes model bias from audio produced with waveglow """ def __init__(self, melgan, pqmf=None, filter_length=1024, n_overlap=4, win_length=1024, mode='zeros'): super(D...
38.219512
84
0.60434
import sys import torch from utils.stft import STFT from utils.pqmf import PQMF class Denoiser(torch.nn.Module): def __init__(self, melgan, pqmf=None, filter_length=1024, n_overlap=4, win_length=1024, mode='zeros'): super(Denoiser, self).__init__() self.stft = STFT(filter_length=...
true
true
1c1da526d45bd732a23630ebf0427e4ad2ac9210
1,030
py
Python
userFit/views.py
Girardvjonathan/anotherFitnessApp
78bec034722ec7c4f9eee0c267f6adceef85277f
[ "MIT" ]
null
null
null
userFit/views.py
Girardvjonathan/anotherFitnessApp
78bec034722ec7c4f9eee0c267f6adceef85277f
[ "MIT" ]
null
null
null
userFit/views.py
Girardvjonathan/anotherFitnessApp
78bec034722ec7c4f9eee0c267f6adceef85277f
[ "MIT" ]
null
null
null
from rest_framework import viewsets from userFit.serializers import UserSerializer from userFit.models import UserProfile from userFit.permissions import IsOwner from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import generics from activity.authentification impo...
31.212121
65
0.803883
from rest_framework import viewsets from userFit.serializers import UserSerializer from userFit.models import UserProfile from userFit.permissions import IsOwner from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import generics from activity.authentification impo...
true
true
1c1da665098694831ac051221e04f054450054ce
244
py
Python
python/tests/test_dnaurl.py
Idena-Today/DnaSend
e157bc686a80d76c5eeb18dce274495288e62698
[ "MIT" ]
null
null
null
python/tests/test_dnaurl.py
Idena-Today/DnaSend
e157bc686a80d76c5eeb18dce274495288e62698
[ "MIT" ]
1
2020-04-30T15:03:51.000Z
2020-04-30T15:03:51.000Z
python/tests/test_dnaurl.py
Idena-Today/DnaSend
e157bc686a80d76c5eeb18dce274495288e62698
[ "MIT" ]
1
2020-04-30T07:45:12.000Z
2020-04-30T07:45:12.000Z
import pytest import sys sys.path.append('../') from dnasend import DnaSend from dnasend.dnaprovider import IdenaDevDnaProvider def test_create(): """Can create a DnaSend object""" dna_send = DnaSend(provider=IdenaDevDnaProvider())
18.769231
54
0.754098
import pytest import sys sys.path.append('../') from dnasend import DnaSend from dnasend.dnaprovider import IdenaDevDnaProvider def test_create(): dna_send = DnaSend(provider=IdenaDevDnaProvider())
true
true
1c1da6da8c2e43112c14c6b6c38adbc0099e0461
5,639
py
Python
cliboa/test/core/test_strategy.py
BrainPad/cliboa
fffa9d43756df573fed287698a4994172c340afa
[ "MIT" ]
27
2019-11-11T11:09:47.000Z
2022-03-01T14:27:59.000Z
cliboa/test/core/test_strategy.py
BrainPad/cliboa
fffa9d43756df573fed287698a4994172c340afa
[ "MIT" ]
228
2019-11-11T11:04:26.000Z
2022-03-29T02:16:05.000Z
cliboa/test/core/test_strategy.py
BrainPad/cliboa
fffa9d43756df573fed287698a4994172c340afa
[ "MIT" ]
11
2019-11-12T03:15:52.000Z
2022-01-11T05:46:02.000Z
# # Copyright 2019 BrainPad Inc. All Rights Reserved. # # 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, me...
36.380645
99
0.651534
import sys from cliboa.client import CommandArgumentParser from cliboa.core.scenario_queue import ScenarioQueue from cliboa.core.step_queue import StepQueue from cliboa.core.strategy import MultiProcExecutor, MultiProcWithConfigExecutor, SingleProcExecutor from cliboa.scenario.sample_step import SampleSte...
true
true
1c1da6f1b880f930f9825938571ab3bc7fe33bd2
6,248
py
Python
python/oneflow/nn/modules/reduce_ops.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/modules/reduce_ops.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/modules/reduce_ops.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow 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 law or agr...
30.183575
135
0.62468
import collections from typing import Optional, Sequence, Union import oneflow as flow from oneflow.framework.tensor import register_tensor_op from oneflow.nn.module import Module from oneflow.nn.modules.utils import _check_axis def _build_reduce_op(op_type_name, keepdims): return ( flow.builtin_op(op_ty...
true
true
1c1da7330cdec13e2548f665f4de51eafe1f091a
3,988
py
Python
smiler/instrumenting/utils.py
samadpaydar/acvtool
84d6977cf9e7db247216735cd8828ae90111cf85
[ "Apache-2.0" ]
53
2018-10-02T18:54:20.000Z
2022-01-11T03:56:36.000Z
smiler/instrumenting/utils.py
samadpaydar/acvtool
84d6977cf9e7db247216735cd8828ae90111cf85
[ "Apache-2.0" ]
23
2019-01-07T08:31:39.000Z
2021-12-13T19:50:02.000Z
smiler/instrumenting/utils.py
samadpaydar/acvtool
84d6977cf9e7db247216735cd8828ae90111cf85
[ "Apache-2.0" ]
22
2018-11-17T03:42:28.000Z
2022-02-12T05:29:52.000Z
import os import shutil from time import time from datetime import datetime class Utils(object): ''' Static Helpers.''' @staticmethod def rm_tree(path): '''Removes all the files.''' if os.path.isdir(path): if os.name == 'nt': #Hack for Windows. Shutil can't remo...
34.678261
106
0.555667
import os import shutil from time import time from datetime import datetime class Utils(object): @staticmethod def rm_tree(path): if os.path.isdir(path): if os.name == 'nt': cmd = "rd {0} /s /q".format(path) os.system(cmd) else: ...
true
true
1c1da74eb4aa38865591b411999fb8d2033adc2c
1,479
py
Python
Labs/Lab-4.1 Auto-Wifi/boot.py
Josverl/MicroPython-Bootcamp
29f5ccc9768fbea621029dcf6eea9c91ff84c1d5
[ "MIT" ]
4
2018-04-28T13:43:20.000Z
2021-03-11T16:10:35.000Z
Labs/Lab-4.1 Auto-Wifi/boot.py
Josverl/MicroPython-Bootcamp
29f5ccc9768fbea621029dcf6eea9c91ff84c1d5
[ "MIT" ]
null
null
null
Labs/Lab-4.1 Auto-Wifi/boot.py
Josverl/MicroPython-Bootcamp
29f5ccc9768fbea621029dcf6eea9c91ff84c1d5
[ "MIT" ]
null
null
null
# This file is executed on every boot (including wake-boot from deepsleep) import sys import gc import network # Set default path # Needed for importing modules and upip sys.path[1] = '/flash/lib' #---------------------------------------------- #setup some additional logging for instruction #Set True/False depending...
26.890909
86
0.629479
import sys import gc import network sys.path[1] = '/flash/lib' ShowWifi = True ShowDebug = False def wifi_cb(info): _red = "\033[31m" _cyan= "\033[36m" _norm = "\033[00m" if (info[2]): msg = ", info: {}".format(info[2]) else: msg = "" print("\n"+_cyan+"I [WiFi] event: {}...
true
true
1c1da8242e9ebeca7db245d34971b79b64677213
8,011
py
Python
graphgallery/backend/backend.py
EdisonLeeeee/GraphGallery
4eec9c5136bda14809bd22584b26cc346cdb633b
[ "MIT" ]
300
2020-08-09T04:27:41.000Z
2022-03-30T07:43:41.000Z
graphgallery/backend/backend.py
EdisonLeeeee/GraphGallery
4eec9c5136bda14809bd22584b26cc346cdb633b
[ "MIT" ]
5
2020-11-05T06:16:50.000Z
2021-12-11T05:05:22.000Z
graphgallery/backend/backend.py
EdisonLeeeee/GraphGallery
4eec9c5136bda14809bd22584b26cc346cdb633b
[ "MIT" ]
51
2020-09-23T15:37:12.000Z
2022-03-05T01:28:56.000Z
"""Inspired by Keras backend config API. https://tensorflow.google.com """ import importlib import sys from .modules import BackendModule, TensorFlowBackend, PyTorchBackend, PyGBackend, DGLBackend __all__ = [ 'allowed_backends', 'backend_dict', 'backend', 'set_backend', 'set_to_default_backend', 'bo...
23.701183
107
0.572713
import importlib import sys from .modules import BackendModule, TensorFlowBackend, PyTorchBackend, PyGBackend, DGLBackend __all__ = [ 'allowed_backends', 'backend_dict', 'backend', 'set_backend', 'set_to_default_backend', 'boolx', 'intx', 'set_intx', 'floatx', 'set_floatx', 'epsilon', 'set_epsil...
true
true
1c1da8295e77577b83610886c87bce557b5c530b
5,143
py
Python
sympy/polys/tests/test_polyfuncs.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/tests/test_polyfuncs.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/tests/test_polyfuncs.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
"""Tests for high-level polynomials manipulation functions. """ from sympy.polys.polyfuncs import ( symmetrize, horner, interpolate, rational_interpolate, viete, ) from sympy.polys.polyerrors import MultivariatePolynomialError from sympy import symbols, S from sympy.testing.pytest import raises ...
30.981928
88
0.444293
from sympy.polys.polyfuncs import ( symmetrize, horner, interpolate, rational_interpolate, viete, ) from sympy.polys.polyerrors import MultivariatePolynomialError from sympy import symbols, S from sympy.testing.pytest import raises from sympy.abc import a, b, c, d, e, x, y, z def test_symmetri...
true
true
1c1da88f7d3cecfdc8ad066f0a0590d564516bf5
3,672
py
Python
tests/test_stream_xep_0128.py
isabella232/slixmpp
e15e6735f1dbfc66a5d43efe9fa9e7f5c9d1610a
[ "BSD-3-Clause" ]
null
null
null
tests/test_stream_xep_0128.py
isabella232/slixmpp
e15e6735f1dbfc66a5d43efe9fa9e7f5c9d1610a
[ "BSD-3-Clause" ]
1
2021-02-24T07:58:40.000Z
2021-02-24T07:58:40.000Z
tests/test_stream_xep_0128.py
isabella232/slixmpp
e15e6735f1dbfc66a5d43efe9fa9e7f5c9d1610a
[ "BSD-3-Clause" ]
null
null
null
import unittest from slixmpp.test import SlixTest class TestStreamExtendedDisco(SlixTest): """ Test using the XEP-0128 plugin. """ def tearDown(self): self.stream_close() def testUsingExtendedInfo(self): self.stream_start(mode='client', jid='tester@loca...
36
81
0.486111
import unittest from slixmpp.test import SlixTest class TestStreamExtendedDisco(SlixTest): def tearDown(self): self.stream_close() def testUsingExtendedInfo(self): self.stream_start(mode='client', jid='tester@localhost', plugins=['xep_0030...
true
true
1c1da9508ffd531121ed1ad6cc1c48b40266f4ad
13,887
py
Python
meraki_v1/aio/rest_session.py
fsandberg/dashboard-api-python
c01ff038643a39bd12660d2719375eeb05c7ba24
[ "MIT" ]
null
null
null
meraki_v1/aio/rest_session.py
fsandberg/dashboard-api-python
c01ff038643a39bd12660d2719375eeb05c7ba24
[ "MIT" ]
null
null
null
meraki_v1/aio/rest_session.py
fsandberg/dashboard-api-python
c01ff038643a39bd12660d2719375eeb05c7ba24
[ "MIT" ]
null
null
null
import asyncio import json import platform import ssl import sys import urllib.parse import aiohttp from ..config import * from ..exceptions import * from ..__init__ import __version__ def user_agent_extended(be_geo_id, caller): # Generate extended portion of the User-Agent user_agent_extended = be_geo_id ...
41.577844
134
0.56146
import asyncio import json import platform import ssl import sys import urllib.parse import aiohttp from ..config import * from ..exceptions import * from ..__init__ import __version__ def user_agent_extended(be_geo_id, caller): user_agent_extended = be_geo_id user_agent_extended = {} user_ag...
true
true
1c1daa004c99f5d6a1cc32692c643e7da36aacea
29,360
py
Python
PostDiffMixture/simulations_folder/simulation_scripts/run_effect_size_simulations_beta.py
SIGKDDanon/SIGKDD2021DeAnonV2
76f0373ec42ab55feefed3f4ce4bf4d532b51dd2
[ "Apache-2.0" ]
null
null
null
PostDiffMixture/simulations_folder/simulation_scripts/run_effect_size_simulations_beta.py
SIGKDDanon/SIGKDD2021DeAnonV2
76f0373ec42ab55feefed3f4ce4bf4d532b51dd2
[ "Apache-2.0" ]
null
null
null
PostDiffMixture/simulations_folder/simulation_scripts/run_effect_size_simulations_beta.py
SIGKDDanon/SIGKDD2021DeAnonV2
76f0373ec42ab55feefed3f4ce4bf4d532b51dd2
[ "Apache-2.0" ]
null
null
null
''' Created on Jul 21, 2017 @: a ''' import argparse import math import random import sys import time import scipy.stats sys.path.insert(1, '../../le_experiments/') import beta_bernoulli import effect_size_sim_output_viz from forced_actions import forced_actions import generate_single_bandit import get_assistments_r...
49.678511
232
0.649319
import argparse import math import random import sys import time import scipy.stats sys.path.insert(1, '../../le_experiments/') import beta_bernoulli import effect_size_sim_output_viz from forced_actions import forced_actions import generate_single_bandit import get_assistments_rewards import numpy as np import panda...
true
true
1c1daa24155d9cbe825de9be3cc886ee5fca5976
3,544
py
Python
pylox/expr.py
SamWheating/pylox
ec1ec22ec60cb2f4b012a4939f887383a2bc518e
[ "MIT" ]
1
2022-02-01T18:26:06.000Z
2022-02-01T18:26:06.000Z
pylox/expr.py
SamWheating/pylox
ec1ec22ec60cb2f4b012a4939f887383a2bc518e
[ "MIT" ]
null
null
null
pylox/expr.py
SamWheating/pylox
ec1ec22ec60cb2f4b012a4939f887383a2bc518e
[ "MIT" ]
null
null
null
# this file generated by tool/generate_ast.py from abc import ABC class Visitor(ABC): def visit_binary_expr(self, expr): raise NotImplementedError() def visit_get_expr(self, expr): raise NotImplementedError() def visit_grouping_expr(self, expr): raise NotImplementedError() d...
21.221557
49
0.65491
from abc import ABC class Visitor(ABC): def visit_binary_expr(self, expr): raise NotImplementedError() def visit_get_expr(self, expr): raise NotImplementedError() def visit_grouping_expr(self, expr): raise NotImplementedError() def visit_literal_expr(self, expr): ra...
true
true
1c1daa6e4795b77094375e455eb5788135cd8e5e
1,424
py
Python
dev/Tools/Python/2.7.13/mac/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/optimize/nnls.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
18
2018-02-23T11:28:54.000Z
2021-09-23T08:19:54.000Z
dev/Tools/Python/2.7.13/mac/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/optimize/nnls.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
13
2020-01-28T22:20:14.000Z
2022-03-11T23:20:14.000Z
dev/Tools/Python/2.7.13/mac/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/optimize/nnls.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
5
2019-03-12T14:24:18.000Z
2021-06-23T13:42:58.000Z
from __future__ import division, print_function, absolute_import from . import _nnls from numpy import asarray_chkfinite, zeros, double __all__ = ['nnls'] def nnls(A, b): """ Solve ``argmin_x || Ax - b ||_2`` for ``x>=0``. This is a wrapper for a FORTRAN non-negative least squares solver. Parameter...
23.344262
71
0.592697
from __future__ import division, print_function, absolute_import from . import _nnls from numpy import asarray_chkfinite, zeros, double __all__ = ['nnls'] def nnls(A, b): A, b = map(asarray_chkfinite, (A, b)) if len(A.shape) != 2: raise ValueError("expected matrix") if len(b.shape) != 1: ...
true
true
1c1dab1ee230db5d9e78197d4700eabb4c4db9bf
4,310
py
Python
python/aghast/aghast_generated/ColumnChunk.py
matthewfeickert/aghast
dd5af536e24e56dc47a1f23a5e78eeb6c9f56033
[ "BSD-3-Clause" ]
null
null
null
python/aghast/aghast_generated/ColumnChunk.py
matthewfeickert/aghast
dd5af536e24e56dc47a1f23a5e78eeb6c9f56033
[ "BSD-3-Clause" ]
null
null
null
python/aghast/aghast_generated/ColumnChunk.py
matthewfeickert/aghast
dd5af536e24e56dc47a1f23a5e78eeb6c9f56033
[ "BSD-3-Clause" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: aghast_generated import flatbuffers class ColumnChunk(object): __slots__ = ['_tab'] @classmethod def GetRootAsColumnChunk(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) ...
38.141593
155
0.663573
import flatbuffers class ColumnChunk(object): __slots__ = ['_tab'] @classmethod def GetRootAsColumnChunk(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = ColumnChunk() x.Init(buf, n + offset) return x def Init(self, bu...
true
true
1c1dab8a31be28dc1745e8a2bad88ab132c47670
410
py
Python
setup.py
carlba/route53dyn
412c479972d67279673e1f84062ba170d97591e1
[ "MIT" ]
null
null
null
setup.py
carlba/route53dyn
412c479972d67279673e1f84062ba170d97591e1
[ "MIT" ]
null
null
null
setup.py
carlba/route53dyn
412c479972d67279673e1f84062ba170d97591e1
[ "MIT" ]
null
null
null
# coding=utf-8 from setuptools import setup, find_packages setup(name="route53dyn", version="0.1.0", options={}, description="Updates one or more AWS Route53 DNS records", author="carlba", packages=find_packages(), install_requires=['click'], entry_points={ 'console...
22.777778
64
0.582927
from setuptools import setup, find_packages setup(name="route53dyn", version="0.1.0", options={}, description="Updates one or more AWS Route53 DNS records", author="carlba", packages=find_packages(), install_requires=['click'], entry_points={ 'console_scripts': [ ...
true
true
1c1dabd763bf710036a05135741364318ec7f869
2,205
py
Python
Dassl/dassl/utils/meters.py
xch-liu/geom-tex-dg
59a93684ae13e7d962908e9971fcbfba66d90b80
[ "MIT" ]
1
2021-12-30T08:37:53.000Z
2021-12-30T08:37:53.000Z
Dassl/dassl/utils/meters.py
xch-liu/geom-tex-dg
59a93684ae13e7d962908e9971fcbfba66d90b80
[ "MIT" ]
null
null
null
Dassl/dassl/utils/meters.py
xch-liu/geom-tex-dg
59a93684ae13e7d962908e9971fcbfba66d90b80
[ "MIT" ]
null
null
null
from collections import defaultdict import torch __all__ = ['AverageMeter', 'MetricMeter'] class AverageMeter: """Compute and store the average and current value. Examples:: >>> # 1. Initialize a meter to record loss >>> losses = AverageMeter() >>> # 2. Update meter after every mini-...
26.566265
71
0.54059
from collections import defaultdict import torch __all__ = ['AverageMeter', 'MetricMeter'] class AverageMeter: def __init__(self, ema=False): self.ema = ema self.reset() def reset(self): self.val = 0 self.avg = 0 self.sum = 0 self.count = 0 def update(se...
true
true
1c1dacc5b30d7f299d08e0730227ef14cf15b0b0
22,506
py
Python
ibr_game/few_shot_learning_system.py
CLAW-Lab/ToM
70770554602e0ef53f3c269e13d9c1b1043b06ae
[ "MIT" ]
13
2021-07-22T21:45:03.000Z
2021-12-09T12:44:53.000Z
ibr_game/few_shot_learning_system.py
CLAW-Lab/ToM
70770554602e0ef53f3c269e13d9c1b1043b06ae
[ "MIT" ]
null
null
null
ibr_game/few_shot_learning_system.py
CLAW-Lab/ToM
70770554602e0ef53f3c269e13d9c1b1043b06ae
[ "MIT" ]
null
null
null
import os import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from fastcore.utils import mapped from inner_loop_optimizers import LSLRGradientDescentLearningRule def set_torch_seed(seed): """ Sets the pytorch seeds for current experiment run ...
48.609071
161
0.612548
import os import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from fastcore.utils import mapped from inner_loop_optimizers import LSLRGradientDescentLearningRule def set_torch_seed(seed): rng = np.random.RandomState(seed=seed) torch_seed = rng.r...
true
true
1c1dad1be1a81b7842c3462d486af5a49734dafc
843
py
Python
script.py
lzw-pku/IRNet
bef26eb5f59409f616b3b76e68ca724a07a529be
[ "MIT" ]
null
null
null
script.py
lzw-pku/IRNet
bef26eb5f59409f616b3b76e68ca724a07a529be
[ "MIT" ]
null
null
null
script.py
lzw-pku/IRNet
bef26eb5f59409f616b3b76e68ca724a07a529be
[ "MIT" ]
null
null
null
import json with open('data/train_spider.json') as f: data = json.load(f) with open('data/tables.json') as f: table = json.load(f) with open('data/train.json') as f: semql = json.load(f) d = semql[0] for k, v in d.items(): print(k, v) #print(d) exit(0) for t in table: if t['db_id'] == 'college_1'...
22.783784
134
0.582444
import json with open('data/train_spider.json') as f: data = json.load(f) with open('data/tables.json') as f: table = json.load(f) with open('data/train.json') as f: semql = json.load(f) d = semql[0] for k, v in d.items(): print(k, v) exit(0) for t in table: if t['db_id'] == 'college_1': ...
true
true
1c1dad6f7e180a7702f6b95a12f71ebfdc0be1be
1,575
py
Python
src/third_party/wiredtiger/dist/style.py
SunguckLee/real-mongodb
fef0e44fafc6d3709a84101327e7d2f54dd18d88
[ "Apache-2.0" ]
4
2018-02-06T01:53:12.000Z
2018-02-20T01:47:36.000Z
src/third_party/wiredtiger/dist/style.py
SunguckLee/real-mongodb
fef0e44fafc6d3709a84101327e7d2f54dd18d88
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/dist/style.py
SunguckLee/real-mongodb
fef0e44fafc6d3709a84101327e7d2f54dd18d88
[ "Apache-2.0" ]
3
2018-02-06T01:53:18.000Z
2021-07-28T09:48:15.000Z
#!/usr/bin/env python # Check the style of WiredTiger C code. from dist import source_files import re, sys # Complain if a function comment is missing. def missing_comment(): for f in source_files(): skip_re = re.compile(r'DO NOT EDIT: automatically built') func_re = re.compile( ...
35.795455
79
0.52127
from dist import source_files import re, sys def missing_comment(): for f in source_files(): skip_re = re.compile(r'DO NOT EDIT: automatically built') func_re = re.compile( r'(/\*(?:[^\*]|\*[^/])*\*/)?\n\w[\w \*]+\n(\w+)', re.DOTALL) s = open(f, 'r').read() ...
false
true
1c1dadee8e898ad0fd12d64c6af40b2ee1c8a07b
13,772
py
Python
Project/app.py
eyupbarlas/Momma-s-Kitchen-Web-App
8acd23b3efce39de9e6e886c61537a92c8909e98
[ "MIT" ]
1
2020-12-01T18:53:11.000Z
2020-12-01T18:53:11.000Z
Project/app.py
eyupbarlas/Momma-s-Kitchen-Web-App
8acd23b3efce39de9e6e886c61537a92c8909e98
[ "MIT" ]
null
null
null
Project/app.py
eyupbarlas/Momma-s-Kitchen-Web-App
8acd23b3efce39de9e6e886c61537a92c8909e98
[ "MIT" ]
null
null
null
from enum import unique import flask from flask_sqlalchemy import SQLAlchemy from flask import Flask, app, render_template, flash, redirect, url_for, session, request from functools import wraps from datetime import datetime, timedelta from sqlalchemy.orm import query #* login control def login_required(f): @wrap...
35.494845
171
0.659164
from enum import unique import flask from flask_sqlalchemy import SQLAlchemy from flask import Flask, app, render_template, flash, redirect, url_for, session, request from functools import wraps from datetime import datetime, timedelta from sqlalchemy.orm import query def login_required(f): @wraps(f) def deco...
true
true
1c1dae59664721b41c4cf828f4ef8a2a4b55144f
3,138
py
Python
py/cidoc_crm_types/entities/e77_persistent_item.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/entities/e77_persistent_item.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/entities/e77_persistent_item.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from .e1_crm_entity import E1CRMEntity from dataclasses import dataclass @dataclass class E77PersistentItem(E1CRMEntity): """ Scope note: This class comprises items that have persistent characteristics of structural nature substantially related to their identity and their integrity, sometimes known as &#8220;endu...
104.6
978
0.809751
from .e1_crm_entity import E1CRMEntity from dataclasses import dataclass @dataclass class E77PersistentItem(E1CRMEntity): TYPE_URI = "http://erlangen-crm.org/current/E77_Persistent_Item"
true
true
1c1dae6697759d04d081f0430b13b014fca73da1
191
py
Python
code/face-detection/layers/__init__.py
FRH-Code-Data/Appendix
106a7c65c178d2b446e3bd8fb192ac2f4b7e323f
[ "CC-BY-4.0" ]
5
2020-02-28T09:28:55.000Z
2021-06-03T02:15:42.000Z
code/face-detection/layers/__init__.py
FRH-Code-Data/Appendix
106a7c65c178d2b446e3bd8fb192ac2f4b7e323f
[ "CC-BY-4.0" ]
6
2020-03-08T22:58:13.000Z
2022-03-12T00:15:14.000Z
code/face-detection/layers/__init__.py
FRH-Code-Data/Appendix
106a7c65c178d2b446e3bd8fb192ac2f4b7e323f
[ "CC-BY-4.0" ]
3
2020-02-28T09:29:03.000Z
2020-03-09T05:08:07.000Z
#-*- coding:utf-8 -*- from __future__ import division from __future__ import absolute_import from __future__ import print_function from .functions import * from .modules import *
19.1
39
0.748691
from __future__ import division from __future__ import absolute_import from __future__ import print_function from .functions import * from .modules import *
true
true
1c1daec6ac3e4111a87b20d9215cb49214fb9c90
8,967
py
Python
python/packager/packager/tools/packager.py
peturingi/opae-sdk
c9da064787e670925cf6030909ba4ac496c80437
[ "BSD-3-Clause" ]
220
2017-09-02T20:07:11.000Z
2022-03-01T03:53:35.000Z
python/packager/packager/tools/packager.py
peturingi/opae-sdk
c9da064787e670925cf6030909ba4ac496c80437
[ "BSD-3-Clause" ]
1,335
2017-11-05T03:02:55.000Z
2022-03-29T23:14:06.000Z
python/packager/packager/tools/packager.py
peturingi/opae-sdk
c9da064787e670925cf6030909ba4ac496c80437
[ "BSD-3-Clause" ]
80
2017-09-01T21:28:16.000Z
2022-03-09T08:04:05.000Z
#!/usr/bin/env python3 # Copyright(c) 2017-2021, Intel Corporation # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this list of...
44.835
79
0.59429
import os import sys import subprocess import shutil import argparse import json import packager.utils.utils from packager.utils.afu import AFU from packager.utils.gbs import GBS import packager.metadata.metadata PACKAGER_EXEC = "packager" DESCRIPTION = 'Intel OPAE FPGA Packager' VERSION = ...
true
true
1c1daf3dd7ef72b4213953f96f9b10dc1c1af27f
4,201
py
Python
google/ads/google_ads/v2/proto/enums/app_url_operating_system_type_pb2.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
1
2019-11-30T23:42:39.000Z
2019-11-30T23:42:39.000Z
google/ads/google_ads/v2/proto/enums/app_url_operating_system_type_pb2.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v2/proto/enums/app_url_operating_system_type_pb2.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
1
2020-03-13T00:14:31.000Z
2020-03-13T00:14:31.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v2/proto/enums/app_url_operating_system_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.pr...
41.186275
679
0.798857
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database _sym_db ...
true
true
1c1db07128792f6b5ed516056211dc99e846b8b7
2,636
py
Python
src/gpsblinker.py
osso73/gps_trackme
7b2d21c5110bb5f520aaaac7903bfd5cba682fb6
[ "MIT" ]
null
null
null
src/gpsblinker.py
osso73/gps_trackme
7b2d21c5110bb5f520aaaac7903bfd5cba682fb6
[ "MIT" ]
7
2021-05-01T23:25:10.000Z
2021-05-10T20:14:02.000Z
src/gpsblinker.py
osso73/gps_trackme
7b2d21c5110bb5f520aaaac7903bfd5cba682fb6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun May 2 17:57:34 2021 @author: oriol """ # std libraries # non-std libraries from kivy_garden.mapview import MapMarker from kivy.animation import Animation from kivy.lang import Builder # my app imports Builder.load_string( r""" <GpsBlinker>:...
24.635514
141
0.591426
from kivy_garden.mapview import MapMarker from kivy.animation import Animation from kivy.lang import Builder Builder.load_string( r""" <GpsBlinker>: default_blink_size: 25 blink_size: 25 source: 'images/transparent.png' outer_opacity: 1 canvas.before: # Outer circle ...
true
true
1c1db081d122b6af1778db91bc379a078dd7b30c
25,883
py
Python
oauthlib/oauth1/rfc5849/signature.py
GuineaPiet/oauthlib
a8eff9c140eb45982c34c6555a93855851d09388
[ "BSD-3-Clause" ]
null
null
null
oauthlib/oauth1/rfc5849/signature.py
GuineaPiet/oauthlib
a8eff9c140eb45982c34c6555a93855851d09388
[ "BSD-3-Clause" ]
null
null
null
oauthlib/oauth1/rfc5849/signature.py
GuineaPiet/oauthlib
a8eff9c140eb45982c34c6555a93855851d09388
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ oauthlib.oauth1.rfc5849.signature ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module represents a direct implementation of `section 3.4`_ of the spec. Terminology: * Client: software interfacing with an OAuth API * Server: the API provider * Resource Owner: the user who is granting authoriza...
37.511594
100
0.616698
from __future__ import absolute_import, unicode_literals import binascii import hashlib import hmac import logging import Crypto from oauthlib.common import (bytes_type, extract_params, safe_string_equals, unicode_type, urldecode) from . import utils try: import urlparse except Imp...
true
true
1c1db14d2bad146512593e94bf6b7669481b0b47
26,184
py
Python
pycrs/parse.py
mullenkamp/PyCRS
d6a8bb9c28787a25b4a1d59a7e4603db3221eaef
[ "MIT" ]
2
2020-05-19T18:35:33.000Z
2021-01-07T16:51:17.000Z
pycrs/parse.py
mullenkamp/PyCRS
d6a8bb9c28787a25b4a1d59a7e4603db3221eaef
[ "MIT" ]
null
null
null
pycrs/parse.py
mullenkamp/PyCRS
d6a8bb9c28787a25b4a1d59a7e4603db3221eaef
[ "MIT" ]
null
null
null
""" The main module containing functions for parsing text strings into crs objects. """ # possible use module: https://github.com/rockdoc/grabbag/wiki/CRS-WKT-Parser # also note some paramter descriptions: http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/doc-files/WKT.html # and see gdal source code: http://g...
33.612323
183
0.588451
from .elements import datums from .elements import ellipsoids from .elements import parameters from .elements import cs as containers from .elements import units from .elements import projections from . import utils class FormatError(Exception): pass def from_epsg_code(code): code = str(code) ...
true
true
1c1db2ba23f574005db8b21335e282d179bb5e42
3,489
py
Python
build/PureCloudPlatformClientV2/models/feature_state.py
cjohnson-ctl/platform-client-sdk-python
38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100
[ "MIT" ]
10
2019-02-22T00:27:08.000Z
2021-09-12T23:23:44.000Z
libs/PureCloudPlatformClientV2/models/feature_state.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
5
2018-06-07T08:32:00.000Z
2021-07-28T17:37:26.000Z
libs/PureCloudPlatformClientV2/models/feature_state.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
6
2020-04-09T17:43:07.000Z
2022-02-17T08:48:05.000Z
# coding: utf-8 """ Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
26.633588
77
0.561766
from pprint import pformat from six import iteritems import re import json from ..utils import sanitize_for_serialization class FeatureState(object): def __init__(self): self.swagger_types = { 'enabled': 'bool' } self.attribute_map = { 'enabled': 'enabled' ...
true
true
1c1db3be878eb2d6034e17071c287a587328fbe8
647
py
Python
Data Structures/Linked Lists/Merge two sorted linked lists.py
vipmunot/HackerRank
39d1beb97545592da5cec6e4b9ae0fce32f5ec39
[ "MIT" ]
null
null
null
Data Structures/Linked Lists/Merge two sorted linked lists.py
vipmunot/HackerRank
39d1beb97545592da5cec6e4b9ae0fce32f5ec39
[ "MIT" ]
null
null
null
Data Structures/Linked Lists/Merge two sorted linked lists.py
vipmunot/HackerRank
39d1beb97545592da5cec6e4b9ae0fce32f5ec39
[ "MIT" ]
null
null
null
""" Merge two linked lists head could be None as well for empty list Node is defined as class Node(object): def __init__(self, data=None, next_node=None): self.data = data self.next = next_node return back the head of the linked list in the below method. """ def MergeLists(headA, headB): ...
20.21875
61
0.641422
def MergeLists(headA, headB): if not headA or not headB: head = headA or headB return head if headA.data < headB.data: smallerNode = headA smallerNode.next = MergeLists(headA.next, headB) else: smallerNode = headB smallerNode.next = MergeLists(headA, headB....
true
true