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
f7632f7cf26c247a70dbc78e40509ade98fc97f2
7,572
py
Python
env/lib/python3.8/site-packages/sympy/stats/__init__.py
crimergio/linux_test
5e688a06884ab10b4eaaad10a5d0df417a1c9b31
[ "CC-BY-4.0" ]
2
2019-05-18T22:36:49.000Z
2019-05-24T05:56:16.000Z
env/lib/python3.8/site-packages/sympy/stats/__init__.py
crimergio/linux_test
5e688a06884ab10b4eaaad10a5d0df417a1c9b31
[ "CC-BY-4.0" ]
1
2020-04-22T12:45:26.000Z
2020-04-22T12:45:26.000Z
sympy/stats/__init__.py
Ryand1234/sympy
b561fee8a4810924f9481a5d78a83436b544a672
[ "BSD-3-Clause" ]
3
2021-02-16T16:40:49.000Z
2022-03-07T18:28:41.000Z
""" SymPy statistics module Introduces a random variable type into the SymPy language. Random variables may be declared using prebuilt functions such as Normal, Exponential, Coin, Die, etc... or built with functions like FiniteRV. Queries on random expressions can be made using the functions ======================...
40.491979
93
0.693212
__all__ = [ 'P', 'E', 'H', 'density', 'where', 'given', 'sample', 'cdf','median', 'characteristic_function', 'pspace', 'sample_iter', 'variance', 'std', 'skewness', 'kurtosis', 'covariance', 'dependent', 'entropy', 'independent', 'random_symbols', 'correlation', 'factorial_moment', 'moment', 'cmoment',...
true
true
f76330020f0fe4f85e68817550f215d7edc4133e
326
py
Python
setup.py
irskep/zhang-shasha
b108f6bb14409b87c44bf45ffd9a038475a9379a
[ "BSD-3-Clause" ]
1
2021-08-12T19:38:44.000Z
2021-08-12T19:38:44.000Z
setup.py
irskep/zhang-shasha
b108f6bb14409b87c44bf45ffd9a038475a9379a
[ "BSD-3-Clause" ]
null
null
null
setup.py
irskep/zhang-shasha
b108f6bb14409b87c44bf45ffd9a038475a9379a
[ "BSD-3-Clause" ]
null
null
null
from distutils.core import setup setup(name='zss', version='1.0', description='Tree edit distance using the Zhang Shasha algorithm', author='Tim Henderson', author_email='tim.tadh@gmail.com', url='https://www.github.com/timtadh/sleepytree', packages=['zss'], requires=['editdis...
27.166667
72
0.653374
from distutils.core import setup setup(name='zss', version='1.0', description='Tree edit distance using the Zhang Shasha algorithm', author='Tim Henderson', author_email='tim.tadh@gmail.com', url='https://www.github.com/timtadh/sleepytree', packages=['zss'], requires=['editdis...
true
true
f7633008c4105fe19a7535dcb20f0630411907ee
723
py
Python
questionnaires/migrations/0004_auto_20210630_1852.py
Fourmeta/iogt
b21dd114ed1e708c9b25dcb17c57270d3c74b765
[ "BSD-2-Clause" ]
null
null
null
questionnaires/migrations/0004_auto_20210630_1852.py
Fourmeta/iogt
b21dd114ed1e708c9b25dcb17c57270d3c74b765
[ "BSD-2-Clause" ]
null
null
null
questionnaires/migrations/0004_auto_20210630_1852.py
Fourmeta/iogt
b21dd114ed1e708c9b25dcb17c57270d3c74b765
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 3.1.12 on 2021-06-30 18:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('questionnaires', '0003_quiz_quizformfield'), ] operations = [ migrations.AddField( model_name='poll', name='direct_...
24.931034
54
0.578147
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('questionnaires', '0003_quiz_quizformfield'), ] operations = [ migrations.AddField( model_name='poll', name='direct_display', field=models.BooleanField(d...
true
true
f76330598a0c5f1deedf04eda208c2e148d0db12
288
py
Python
PWA/src/PWA/Response.py
akhof/PWA
7bc3ef309a72e6c222b35e911cc61feac2d2565e
[ "MIT" ]
null
null
null
PWA/src/PWA/Response.py
akhof/PWA
7bc3ef309a72e6c222b35e911cc61feac2d2565e
[ "MIT" ]
null
null
null
PWA/src/PWA/Response.py
akhof/PWA
7bc3ef309a72e6c222b35e911cc61feac2d2565e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- class Response(): def __init__(self, server): self._server = server self.response_code = 200 self.content_type = None self.content = "" self.headers = {} self.cookies = {}
22.153846
32
0.517361
class Response(): def __init__(self, server): self._server = server self.response_code = 200 self.content_type = None self.content = "" self.headers = {} self.cookies = {}
true
true
f7633139c8d0b8e79938037d29dc78a3ceaf6789
25,306
py
Python
tests/test_features.py
nils-werner/librosa
3d57352e6f5b6da151a2dd5d303af985797800aa
[ "ISC" ]
1
2019-01-13T18:10:20.000Z
2019-01-13T18:10:20.000Z
tests/test_features.py
nils-werner/librosa
3d57352e6f5b6da151a2dd5d303af985797800aa
[ "ISC" ]
null
null
null
tests/test_features.py
nils-werner/librosa
3d57352e6f5b6da151a2dd5d303af985797800aa
[ "ISC" ]
1
2019-02-21T11:08:28.000Z
2019-02-21T11:08:28.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import print_function import warnings import numpy as np import pytest import librosa from test_core import load, srand # Disable cache import os try: os.environ.pop('LIBROSA_CACHE_DIR') except KeyError: pass __EXAMPLE_FILE = os.path.join('te...
32.319285
101
0.53509
from __future__ import print_function import warnings import numpy as np import pytest import librosa from test_core import load, srand import os try: os.environ.pop('LIBROSA_CACHE_DIR') except KeyError: pass __EXAMPLE_FILE = os.path.join('tests', 'data', 'test1_22050.wav') warnings.resetwarnings() warnin...
true
true
f76332bada0d0ca27bdeea62f9e4e65c543169a3
2,531
py
Python
tests/test_unit_sql_parm.py
IBM/python-itoolk
36054a7ebdd8f5556c548d4c315e00e3c8d04904
[ "MIT" ]
11
2019-01-09T12:31:04.000Z
2021-08-29T05:26:35.000Z
tests/test_unit_sql_parm.py
IBM/python-itoolk
36054a7ebdd8f5556c548d4c315e00e3c8d04904
[ "MIT" ]
50
2018-12-21T18:52:25.000Z
2021-05-25T13:38:15.000Z
tests/test_unit_sql_parm.py
IBM/python-itoolk
36054a7ebdd8f5556c548d4c315e00e3c8d04904
[ "MIT" ]
9
2018-12-25T00:02:19.000Z
2022-02-22T00:58:13.000Z
import xml.etree.ElementTree as ET from itoolkit import iSqlParm DATA = "Hello, world!" def test_sql_query(): key = 'dmmyeozq' element = ET.fromstring(iSqlParm(key, DATA).xml_in()) assert(element.tag == 'parm') assert(element.text == DATA) assert(len(element.attrib) == 2) assert('io' in e...
23.654206
79
0.634137
import xml.etree.ElementTree as ET from itoolkit import iSqlParm DATA = "Hello, world!" def test_sql_query(): key = 'dmmyeozq' element = ET.fromstring(iSqlParm(key, DATA).xml_in()) assert(element.tag == 'parm') assert(element.text == DATA) assert(len(element.attrib) == 2) assert('io' in e...
true
true
f76332da455feb83727a1986ae0df7694b84fc77
39,715
py
Python
brachiograph.py
oliviermailletglas/project_csi4103
b426f4fb8d909909dd7d1d954fd10d97891c33cb
[ "MIT" ]
null
null
null
brachiograph.py
oliviermailletglas/project_csi4103
b426f4fb8d909909dd7d1d954fd10d97891c33cb
[ "MIT" ]
null
null
null
brachiograph.py
oliviermailletglas/project_csi4103
b426f4fb8d909909dd7d1d954fd10d97891c33cb
[ "MIT" ]
null
null
null
# coding=utf-8 from time import sleep import readchar import math import numpy import json import pigpio from turtle_draw import BrachioGraphTurtle try: pigpio.exceptions = False rpi = pigpio.pi() rpi.set_PWM_frequency(18, 50) pigpio.exceptions = True force_virtual = False except: print("pig...
33.23431
143
0.523027
from time import sleep import readchar import math import numpy import json import pigpio from turtle_draw import BrachioGraphTurtle try: pigpio.exceptions = False rpi = pigpio.pi() rpi.set_PWM_frequency(18, 50) pigpio.exceptions = True force_virtual = False except: print("pigpio daemon is n...
true
true
f76332e22d7a86a1cf22cc9cf5807786b8432d31
3,954
py
Python
tests/test_imputer.py
vitoryeso/tasks
5f530a0fff6b0312ce9a68f4b160be42a4b98044
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
2
2021-02-16T12:39:57.000Z
2021-07-21T11:36:39.000Z
tests/test_imputer.py
vitoryeso/tasks
5f530a0fff6b0312ce9a68f4b160be42a4b98044
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
20
2020-10-26T18:05:27.000Z
2021-11-30T19:05:22.000Z
tests/test_imputer.py
vitoryeso/tasks
5f530a0fff6b0312ce9a68f4b160be42a4b98044
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
7
2020-10-13T18:12:22.000Z
2021-08-13T19:16:21.000Z
import os import unittest import uuid import papermill from tests import datasets, server EXPERIMENT_ID = str(uuid.uuid4()) OPERATOR_ID = str(uuid.uuid4()) RUN_ID = str(uuid.uuid4()) class TestImputer(unittest.TestCase): def setUp(self): # Set environment variables needed to run notebooks os.e...
27.458333
60
0.530349
import os import unittest import uuid import papermill from tests import datasets, server EXPERIMENT_ID = str(uuid.uuid4()) OPERATOR_ID = str(uuid.uuid4()) RUN_ID = str(uuid.uuid4()) class TestImputer(unittest.TestCase): def setUp(self): os.environ["EXPERIMENT_ID"] = EXPERIMENT_ID os.e...
true
true
f7633302905e14795c4c12a126fc8a2c386eb19e
1,016
py
Python
nebula_bench/setting.py
TangYuFe/nebula-bench
0295d1bbc8c70e571f0759b132aa3cffc1030b2c
[ "Apache-2.0" ]
19
2020-09-02T13:28:50.000Z
2022-03-04T09:54:16.000Z
nebula_bench/setting.py
TangYuFe/nebula-bench
0295d1bbc8c70e571f0759b132aa3cffc1030b2c
[ "Apache-2.0" ]
22
2021-03-06T05:43:50.000Z
2022-01-18T06:28:02.000Z
nebula_bench/setting.py
TangYuFe/nebula-bench
0295d1bbc8c70e571f0759b132aa3cffc1030b2c
[ "Apache-2.0" ]
22
2020-07-23T02:29:40.000Z
2022-03-29T02:45:50.000Z
# -*- coding: utf-8 -*- import pathlib import os from datetime import datetime from dotenv import load_dotenv load_dotenv() WORKSPACE_PATH = pathlib.Path(__file__).parent.parent DATA_FOLDER = os.environ.get("DATA_FOLDER") or "target/data/test_data" REPORT_FOLDER = os.environ.get("REPORT_FOLDER") or "nginx/data" NEB...
32.774194
82
0.757874
import pathlib import os from datetime import datetime from dotenv import load_dotenv load_dotenv() WORKSPACE_PATH = pathlib.Path(__file__).parent.parent DATA_FOLDER = os.environ.get("DATA_FOLDER") or "target/data/test_data" REPORT_FOLDER = os.environ.get("REPORT_FOLDER") or "nginx/data" NEBULA_SPACE = os.environ.g...
true
true
f76333060c219bec1c10b1711de29bfd5e3a25fa
13,585
py
Python
toolchain/riscv/MSYS/python/Lib/test/test_readline.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
207
2018-10-01T08:53:01.000Z
2022-03-14T12:15:54.000Z
toolchain/riscv/MSYS/python/Lib/test/test_readline.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
8
2019-06-29T14:18:51.000Z
2022-02-19T07:30:27.000Z
toolchain/riscv/MSYS/python/Lib/test/test_readline.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
76
2020-03-16T01:47:46.000Z
2022-03-21T16:37:07.000Z
""" Very minimal unittests for parts of the readline module. """ from contextlib import ExitStack from errno import EIO import locale import os import selectors import subprocess import sys import tempfile import unittest from test.support import import_module, unlink, temp_dir, TESTFN, verbose from test.s...
40.673653
88
0.621421
from contextlib import ExitStack from errno import EIO import locale import os import selectors import subprocess import sys import tempfile import unittest from test.support import import_module, unlink, temp_dir, TESTFN, verbose from test.support.script_helper import assert_python_ok readline = import_mo...
true
true
f7633341be3c87d1d965396cb9914c15e5808b25
143
py
Python
question_repo/apps/repo/signal/signals.py
XBD1998/Project_public
95cf4a223b1f907fb0427732cac81cb8cfad0233
[ "Apache-2.0" ]
null
null
null
question_repo/apps/repo/signal/signals.py
XBD1998/Project_public
95cf4a223b1f907fb0427732cac81cb8cfad0233
[ "Apache-2.0" ]
3
2020-02-12T03:00:58.000Z
2021-06-10T21:46:14.000Z
question_repo/apps/repo/signal/signals.py
XBD1998/Project_public
95cf4a223b1f907fb0427732cac81cb8cfad0233
[ "Apache-2.0" ]
null
null
null
import django.dispatch #自定义信号(有两个参数arg1, arg2) mysignal = django.dispatch.Signal(providing_args=["arg1", "arg2"]) #内置的信号是可以自动触发的 #自定义信号不能自动触发
20.428571
66
0.783217
import django.dispatch mysignal = django.dispatch.Signal(providing_args=["arg1", "arg2"])
true
true
f763338353b08444673d45ab5b27237f7c60b26e
4,688
py
Python
parse_html.py
donkirkby/four-letter-blocks
634913ba276d872fadf4a9a29b5685f5da4d0d93
[ "MIT" ]
1
2021-08-21T00:57:35.000Z
2021-08-21T00:57:35.000Z
parse_html.py
donkirkby/four-letter-blocks
634913ba276d872fadf4a9a29b5685f5da4d0d93
[ "MIT" ]
8
2021-07-25T22:03:15.000Z
2021-08-25T15:09:12.000Z
parse_html.py
donkirkby/four-letter-blocks
634913ba276d872fadf4a9a29b5685f5da4d0d93
[ "MIT" ]
null
null
null
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter from datetime import datetime from pathlib import Path from time import sleep from urllib.parse import urlencode from urllib.request import urlopen # noinspection PyPackageRequirements from bs4 import BeautifulSoup from four_letter_blocks.puzzle impor...
36.625
81
0.585324
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter from datetime import datetime from pathlib import Path from time import sleep from urllib.parse import urlencode from urllib.request import urlopen from bs4 import BeautifulSoup from four_letter_blocks.puzzle import Puzzle def parse_args(): pars...
true
true
f76333c9bd21e3fa774b1a2f7f3d0d03a71b96ba
4,958
py
Python
autoPyTorch/utils/benchmarking/benchmark.py
urbanmatthias/Auto-PyTorch
fe7c51b33c48041e405ef2975ee691c0539691ab
[ "BSD-3-Clause" ]
null
null
null
autoPyTorch/utils/benchmarking/benchmark.py
urbanmatthias/Auto-PyTorch
fe7c51b33c48041e405ef2975ee691c0539691ab
[ "BSD-3-Clause" ]
null
null
null
autoPyTorch/utils/benchmarking/benchmark.py
urbanmatthias/Auto-PyTorch
fe7c51b33c48041e405ef2975ee691c0539691ab
[ "BSD-3-Clause" ]
null
null
null
from autoPyTorch.pipeline.base.pipeline import Pipeline from autoPyTorch.utils.benchmarking.benchmark_pipeline import (BenchmarkSettings, CreateAutoNet, FitAutoNet, ...
50.080808
129
0.478217
from autoPyTorch.pipeline.base.pipeline import Pipeline from autoPyTorch.utils.benchmarking.benchmark_pipeline import (BenchmarkSettings, CreateAutoNet, FitAutoNet, ...
true
true
f76333ec21b2bd17e9e702e6061059331940f896
2,882
py
Python
src/command_modules/azure-cli-profile/azure/cli/command_modules/profile/_help.py
viananth/azure-cli
4d23492ed03e946cfc11bae23b29acb971fb137d
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-profile/azure/cli/command_modules/profile/_help.py
viananth/azure-cli
4d23492ed03e946cfc11bae23b29acb971fb137d
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-profile/azure/cli/command_modules/profile/_help.py
viananth/azure-cli
4d23492ed03e946cfc11bae23b29acb971fb137d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
41.171429
244
0.604441
from azure.cli.core.help_files import helps helps['login'] = """ examples: - name: Log in interactively. text: > az login - name: Log in with user name and password. This doesn't work with Microsoft accounts or accounts that have two-...
true
true
f76334854bd4740460935d009d20ed37f0a76942
2,887
py
Python
truc_graph_traverse.py
jackyhuynh/graph_traverse_using_networkx
11988af1324cbd1520102c66776476d91c2d087e
[ "MIT" ]
1
2022-03-23T15:31:47.000Z
2022-03-23T15:31:47.000Z
truc_graph_traverse.py
jackyhuynh/graph_traverse_using_networkx
11988af1324cbd1520102c66776476d91c2d087e
[ "MIT" ]
null
null
null
truc_graph_traverse.py
jackyhuynh/graph_traverse_using_networkx
11988af1324cbd1520102c66776476d91c2d087e
[ "MIT" ]
null
null
null
# Required library import matplotlib.pyplot as plt import networkx as nx """ # openfile read input from textfile # In fact, I test the data on different jupiter notebook and come up with the shortest version """ def openfile(filename): with open(filename, "r") as file_reader: all_lines = file_reader.read...
31.725275
107
0.699342
import matplotlib.pyplot as plt import networkx as nx def openfile(filename): with open(filename, "r") as file_reader: all_lines = file_reader.readlines() return all_lines def create_data(data): clean_data = [] road_dict = {} count = 0 for line in data: line = line.rep...
true
true
f76335be960745a812ec3734554c3061849b6744
208
py
Python
trebelge/trebelge/doctype/ubl_tr_packages/ubl_tr_packages.py
Framras/trebelge
362179925dc688ad8ea008f532de72e67e49941b
[ "MIT" ]
6
2019-12-21T21:15:50.000Z
2021-12-30T21:59:53.000Z
trebelge/trebelge/doctype/ubl_tr_packages/ubl_tr_packages.py
Framras/trebelge
362179925dc688ad8ea008f532de72e67e49941b
[ "MIT" ]
null
null
null
trebelge/trebelge/doctype/ubl_tr_packages/ubl_tr_packages.py
Framras/trebelge
362179925dc688ad8ea008f532de72e67e49941b
[ "MIT" ]
3
2020-01-05T19:32:40.000Z
2021-11-03T14:11:21.000Z
# Copyright (c) 2021, Framras AS-Izmir and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class UBLTRPackages(Document): pass
20.8
55
0.778846
from frappe.model.document import Document class UBLTRPackages(Document): pass
true
true
f763363ece5c9b0a10e65ad2357d02380d0e6564
2,663
py
Python
stopcovid/dialog/models/state.py
esl-works/dialog-engine
f29ab486a6f193edce5bbcd2bf3b86b8ad9ceaa9
[ "MIT" ]
4
2020-04-17T15:50:33.000Z
2020-04-17T16:49:00.000Z
stopcovid/dialog/models/state.py
stopcovid-co/dialog-engine
f29ab486a6f193edce5bbcd2bf3b86b8ad9ceaa9
[ "MIT" ]
6
2020-06-18T16:17:27.000Z
2020-08-24T13:21:56.000Z
stopcovid/dialog/models/state.py
esl-works/dialog-engine
f29ab486a6f193edce5bbcd2bf3b86b8ad9ceaa9
[ "MIT" ]
3
2020-04-17T16:11:35.000Z
2020-05-21T11:38:05.000Z
import uuid import datetime from typing import Optional import pydantic from stopcovid.dialog.models import SCHEMA_VERSION from stopcovid.dialog.registration import AccountInfo from stopcovid.drills import drills class UserProfile(pydantic.BaseModel): validated: bool opted_out: bool = False is_demo: boo...
33.708861
100
0.713857
import uuid import datetime from typing import Optional import pydantic from stopcovid.dialog.models import SCHEMA_VERSION from stopcovid.dialog.registration import AccountInfo from stopcovid.drills import drills class UserProfile(pydantic.BaseModel): validated: bool opted_out: bool = False is_demo: boo...
true
true
f76336e06332a975b0ef841e3880fefad4ce944d
260
py
Python
ep_clustering/data/__init__.py
aicherc/EP_Collapsed_Gibbs
3b2e8c3addeab2343837b9e86e9cb57b00798b9a
[ "MIT" ]
1
2019-12-14T01:14:56.000Z
2019-12-14T01:14:56.000Z
ep_clustering/data/__init__.py
aicherc/EP_Collapsed_Gibbs
3b2e8c3addeab2343837b9e86e9cb57b00798b9a
[ "MIT" ]
null
null
null
ep_clustering/data/__init__.py
aicherc/EP_Collapsed_Gibbs
3b2e8c3addeab2343837b9e86e9cb57b00798b9a
[ "MIT" ]
null
null
null
from ._gibbs_data import GibbsData from ._mixture_data import ( create_mixture_component, MixtureData, MixtureDataGenerator, ) from ._timeseries_data import ( TimeSeriesData, TimeSeriesDataGenerator, )
20
34
0.657692
from ._gibbs_data import GibbsData from ._mixture_data import ( create_mixture_component, MixtureData, MixtureDataGenerator, ) from ._timeseries_data import ( TimeSeriesData, TimeSeriesDataGenerator, )
true
true
f763375ba741ab6c9fa5426e9e59321896ff8a8e
11,313
py
Python
meerk40t/gui/scene/scenespacewidget.py
jpirnay/meerk40t
10d4e41a8c5e2bb95a504904273699e115822b9b
[ "MIT" ]
null
null
null
meerk40t/gui/scene/scenespacewidget.py
jpirnay/meerk40t
10d4e41a8c5e2bb95a504904273699e115822b9b
[ "MIT" ]
null
null
null
meerk40t/gui/scene/scenespacewidget.py
jpirnay/meerk40t
10d4e41a8c5e2bb95a504904273699e115822b9b
[ "MIT" ]
null
null
null
from meerk40t.gui.scene.sceneconst import ( HITCHAIN_DELEGATE_AND_HIT, RESPONSE_CHAIN, RESPONSE_CONSUME, ) from meerk40t.gui.scene.widget import Widget from meerk40t.svgelements import Matrix, Viewbox class SceneSpaceWidget(Widget): """ SceneSpaceWidget contains two sections: Interface: Drawn ...
36.259615
144
0.584814
from meerk40t.gui.scene.sceneconst import ( HITCHAIN_DELEGATE_AND_HIT, RESPONSE_CHAIN, RESPONSE_CONSUME, ) from meerk40t.gui.scene.widget import Widget from meerk40t.svgelements import Matrix, Viewbox class SceneSpaceWidget(Widget): def __init__(self, scene): Widget.__init__(self, scene, all=...
true
true
f76338751fb7cbbe47fb5882c1e00f198f0902d0
2,300
py
Python
tests/conftest.py
nfnz/newschatbot
f7dcd9209af2de41768a69079d7e2d0814db7042
[ "MIT" ]
1
2021-04-06T16:52:36.000Z
2021-04-06T16:52:36.000Z
tests/conftest.py
cesko-digital/newschatbot
4f47d7902433bff09b48fcebcf9ee8422eb0ec7e
[ "MIT" ]
17
2021-05-30T17:06:48.000Z
2021-09-26T08:20:02.000Z
tests/conftest.py
cesko-digital/newschatbot
4f47d7902433bff09b48fcebcf9ee8422eb0ec7e
[ "MIT" ]
1
2022-02-13T15:36:29.000Z
2022-02-13T15:36:29.000Z
from flask import Flask from flask_migrate import Migrate import psycopg2 import pytest import pytest_docker import tenacity from app.model import db from app.controller import api def ensure_schema(dsn: str) -> None: with open("tests/data/schema.sql") as f: with psycopg2.connect(dsn=dsn) as conn: ...
27.710843
73
0.62087
from flask import Flask from flask_migrate import Migrate import psycopg2 import pytest import pytest_docker import tenacity from app.model import db from app.controller import api def ensure_schema(dsn: str) -> None: with open("tests/data/schema.sql") as f: with psycopg2.connect(dsn=dsn) as conn: ...
true
true
f763389478cb0d6e2e3bfe3ca25f8de3d392a700
614
py
Python
tests/holberton_test/test_base_model_dict.py
Imanolasolo/AirBnB_clone
1f1178f33ed1beb5ab017506b6858e20241c88cf
[ "MIT" ]
null
null
null
tests/holberton_test/test_base_model_dict.py
Imanolasolo/AirBnB_clone
1f1178f33ed1beb5ab017506b6858e20241c88cf
[ "MIT" ]
null
null
null
tests/holberton_test/test_base_model_dict.py
Imanolasolo/AirBnB_clone
1f1178f33ed1beb5ab017506b6858e20241c88cf
[ "MIT" ]
1
2022-03-07T20:41:30.000Z
2022-03-07T20:41:30.000Z
#!/usr/bin/python3 from models.base_model import BaseModel my_model = BaseModel() my_model.name = "My_First_Model" my_model.my_number = 89 print(my_model.id) print(my_model) print(type(my_model.created_at)) print("--") my_model_json = my_model.to_dict() print(my_model_json) print("JSON of my_model:") for key in my_mod...
23.615385
62
0.73127
from models.base_model import BaseModel my_model = BaseModel() my_model.name = "My_First_Model" my_model.my_number = 89 print(my_model.id) print(my_model) print(type(my_model.created_at)) print("--") my_model_json = my_model.to_dict() print(my_model_json) print("JSON of my_model:") for key in my_model_json.keys(): ...
true
true
f7633898fc65f327885385b9f59983a1ffe2c383
331
py
Python
hc/api/migrations/0039_remove_check_last_ping_body.py
sumonst21/healthchecks
967ca840adee6c72addde46c944c88b1bd5484e2
[ "BSD-3-Clause" ]
4,813
2015-07-27T11:44:52.000Z
2022-03-31T14:24:07.000Z
hc/api/migrations/0039_remove_check_last_ping_body.py
sumonst21/healthchecks
967ca840adee6c72addde46c944c88b1bd5484e2
[ "BSD-3-Clause" ]
579
2015-07-20T11:49:19.000Z
2022-03-31T18:20:11.000Z
hc/api/migrations/0039_remove_check_last_ping_body.py
sumonst21/healthchecks
967ca840adee6c72addde46c944c88b1bd5484e2
[ "BSD-3-Clause" ]
644
2015-09-11T16:14:26.000Z
2022-03-31T13:20:20.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-03-18 13:33 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [("api", "0038_auto_20180318_1306")] operations = [migrations.RemoveField(model_name="check", name="last_pi...
25.461538
84
0.73716
from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [("api", "0038_auto_20180318_1306")] operations = [migrations.RemoveField(model_name="check", name="last_ping_body")]
true
true
f76338fc0bbcad363e079006e3cc41d123ef2a0d
3,605
py
Python
qwc_services_core/runtime_config.py
benoitblanc/qwc-services-core
94e422412e1aa67dacea89159f25c373de81f4ca
[ "MIT" ]
null
null
null
qwc_services_core/runtime_config.py
benoitblanc/qwc-services-core
94e422412e1aa67dacea89159f25c373de81f4ca
[ "MIT" ]
null
null
null
qwc_services_core/runtime_config.py
benoitblanc/qwc-services-core
94e422412e1aa67dacea89159f25c373de81f4ca
[ "MIT" ]
null
null
null
import os import re from flask import json, safe_join class RuntimeConfig: '''Runtime configuration helper class ''' @staticmethod def config_file_path(service, tenant): """Return path to permissions JSON file for a tenant. :param str servcie: Service name :param str tenant: ...
32.772727
98
0.489875
import os import re from flask import json, safe_join class RuntimeConfig: @staticmethod def config_file_path(service, tenant): config_path = os.environ.get('CONFIG_PATH', 'config') filename = '%sConfig.json' % service return safe_join(config_path, tenant, filename) def __init__(...
true
true
f7633907cd24d536b24f4fd7ef8a50a3356b6750
8,016
py
Python
cirq-core/cirq/circuits/frozen_circuit.py
Zshan0/Cirq
93bbaa853305faa65117bcbdc2063f741cb2977c
[ "Apache-2.0" ]
1
2020-06-11T19:31:25.000Z
2020-06-11T19:31:25.000Z
cirq-core/cirq/circuits/frozen_circuit.py
Zshan0/Cirq
93bbaa853305faa65117bcbdc2063f741cb2977c
[ "Apache-2.0" ]
null
null
null
cirq-core/cirq/circuits/frozen_circuit.py
Zshan0/Cirq
93bbaa853305faa65117bcbdc2063f741cb2977c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
37.633803
95
0.681761
from typing import ( TYPE_CHECKING, AbstractSet, Callable, FrozenSet, Iterable, Iterator, Optional, Sequence, Tuple, Union, ) import numpy as np from cirq import devices, ops, protocols from cirq.circuits import AbstractCircuit, Alignment, Circuit from cirq.circuits.insert_stra...
true
true
f76339131674b1a6b3566c2ab253851c343a810d
344
py
Python
BrushingUp/challenge-1.0/1.1.py
samirsaravia/Python_101
0c45f11d74a356514a0c436ade6af4c0f67c56b7
[ "MIT" ]
null
null
null
BrushingUp/challenge-1.0/1.1.py
samirsaravia/Python_101
0c45f11d74a356514a0c436ade6af4c0f67c56b7
[ "MIT" ]
1
2020-10-16T23:26:41.000Z
2020-10-16T23:26:41.000Z
BrushingUp/challenge-1.0/1.1.py
samirsaravia/Python_101
0c45f11d74a356514a0c436ade6af4c0f67c56b7
[ "MIT" ]
null
null
null
""" Write a program that request five names separated by commas and create a list containing those names. Print your answer. For example: Samir, James, Alison, Tom, Sally should return ['Samir','James','Alison','Tom','Sally'] """ names = str(input('Names separated by commas: ')).strip().title() list_names = names.split...
34.4
72
0.723837
names = str(input('Names separated by commas: ')).strip().title() list_names = names.split(',') print(list_names)
true
true
f7633a5a6f44a4c875857b544200d50ac1a9d826
573
py
Python
serial_comm.py
iGEM-IISc-SynShine/SynShine
dec13b8272b8115509a4b5e59e2fa89c8ad76bf4
[ "MIT" ]
null
null
null
serial_comm.py
iGEM-IISc-SynShine/SynShine
dec13b8272b8115509a4b5e59e2fa89c8ad76bf4
[ "MIT" ]
null
null
null
serial_comm.py
iGEM-IISc-SynShine/SynShine
dec13b8272b8115509a4b5e59e2fa89c8ad76bf4
[ "MIT" ]
null
null
null
import sys import time import signal import serial ser = serial.Serial() ser.baudrate = 9600 ser.port = input('Enter the Port\n') ser.open() file = open('Arduino_Serial_Data.csv', 'w') def prog_exit(signal, frame): print('CONNECTION CLOSED') file.close() sys.exit(0) counter = 0 whi...
19.758621
79
0.605585
import sys import time import signal import serial ser = serial.Serial() ser.baudrate = 9600 ser.port = input('Enter the Port\n') ser.open() file = open('Arduino_Serial_Data.csv', 'w') def prog_exit(signal, frame): print('CONNECTION CLOSED') file.close() sys.exit(0) counter = 0 whi...
true
true
f7633bee67686366467d992dcd144f37195792af
25,673
bzl
Python
tools/build_defs/old_10_2018/framework.bzl
psigen/rules_foreign_cc
ee779e7d9dad3957e40e8210fac385763ae9f527
[ "Apache-2.0" ]
null
null
null
tools/build_defs/old_10_2018/framework.bzl
psigen/rules_foreign_cc
ee779e7d9dad3957e40e8210fac385763ae9f527
[ "Apache-2.0" ]
null
null
null
tools/build_defs/old_10_2018/framework.bzl
psigen/rules_foreign_cc
ee779e7d9dad3957e40e8210fac385763ae9f527
[ "Apache-2.0" ]
null
null
null
""" Contains definitions for creation of external C/C++ build rules (for building external libraries with CMake, configure/make, autotools) """ load("@bazel_skylib//lib:collections.bzl", "collections") load("@rules_foreign_cc//tools/build_defs:version.bzl", "VERSION") load( ":cc_toolchain_util.bzl", "Librarie...
42.646179
113
0.689323
load("@bazel_skylib//lib:collections.bzl", "collections") load("@rules_foreign_cc//tools/build_defs:version.bzl", "VERSION") load( ":cc_toolchain_util.bzl", "LibrariesToLinkInfo", "create_linking_info", "get_env_vars", "targets_windows", ) load("@rules_foreign_cc//tools/build_defs:detect_root.bzl",...
true
true
f7633c4b1cedb8d91096b16e2775045d8210f775
5,664
py
Python
pretrained-model/stt/jasper/medium-jasper-ctc.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
111
2020-08-31T04:58:54.000Z
2022-03-29T15:44:18.000Z
pretrained-model/stt/jasper/medium-jasper-ctc.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
14
2020-12-16T07:27:22.000Z
2022-03-15T17:39:01.000Z
pretrained-model/stt/jasper/medium-jasper-ctc.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
29
2021-02-09T08:57:15.000Z
2022-03-12T14:09:19.000Z
import os os.environ['CUDA_VISIBLE_DEVICES'] = '2,3' import tensorflow as tf import malaya_speech import malaya_speech.augmentation.waveform as augmentation import malaya_speech.augmentation.spectrogram as mask_augmentation import malaya_speech.train.model.medium_jasper as jasper import malaya_speech.train.model.ctc ...
28.462312
77
0.648305
import os os.environ['CUDA_VISIBLE_DEVICES'] = '2,3' import tensorflow as tf import malaya_speech import malaya_speech.augmentation.waveform as augmentation import malaya_speech.augmentation.spectrogram as mask_augmentation import malaya_speech.train.model.medium_jasper as jasper import malaya_speech.train.model.ctc ...
true
true
f7633c725337c440aa9b4f7f65000898ecba4ac8
1,305
py
Python
tests/expect-fail23/recipe-519645.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-05T08:53:26.000Z
2020-06-05T08:53:26.000Z
tests/expect-fail23/recipe-519645.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-04T13:47:19.000Z
2020-06-04T13:47:57.000Z
tests/expect-fail23/recipe-519645.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-11-07T17:02:46.000Z
2020-11-07T17:02:46.000Z
import sys class Super(object): """ >>> class A(object): ... def a(self): ... print "A.a()" >>> class B(A): ... def a(self): ... print "B.a()" ... super.a() >>> b = B() >>> b.a() B.a() A.a() >>> class C(B): ... def a(self):...
21.048387
64
0.473563
import sys class Super(object): def __getattribute__(self, name): frame = sys._getframe(1) code = frame.f_code if code.co_argcount < 1: raise TypeError("super used in wrong context") caller_obj = frame.f_locals[code.co_varnames[0]] caller_class = None ...
true
true
f7633d034d3a8e761c1e66ae4667bb0f07cc5b43
2,840
py
Python
main.py
NobeKanai/pixiv-auto-downloader
c5a1706c3f8160a1ce5f7a0d07d4ba4ba8be5d71
[ "MIT" ]
2
2021-04-25T09:20:07.000Z
2021-12-30T09:06:44.000Z
main.py
NobeKanai/pixiv-auto-downloader
c5a1706c3f8160a1ce5f7a0d07d4ba4ba8be5d71
[ "MIT" ]
null
null
null
main.py
NobeKanai/pixiv-auto-downloader
c5a1706c3f8160a1ce5f7a0d07d4ba4ba8be5d71
[ "MIT" ]
null
null
null
import logging import os from pathlib import Path import time from typing import List, cast from pixivapi import Client, errors import yaml from artist import Artist from telegrambot import TelegramBot try: from yaml import CLoader as Loader except ImportError: from yaml import Loader # Enable logging loggi...
25.132743
78
0.612324
import logging import os from pathlib import Path import time from typing import List, cast from pixivapi import Client, errors import yaml from artist import Artist from telegrambot import TelegramBot try: from yaml import CLoader as Loader except ImportError: from yaml import Loader logging.basicConfig( ...
true
true
f7633d2c0ebf525805f6e18887b095426a9e07b5
3,826
py
Python
geomagio/pcdcp/PCDCPFactory.py
usgs/geomag-algorithms
a83a0e36bed9307828e37b9130c25dbc26dd1bc9
[ "CC0-1.0" ]
49
2015-10-06T17:57:20.000Z
2022-01-12T18:40:17.000Z
geomagio/pcdcp/PCDCPFactory.py
usgs/geomag-algorithms
a83a0e36bed9307828e37b9130c25dbc26dd1bc9
[ "CC0-1.0" ]
229
2015-01-26T20:10:36.000Z
2022-03-12T00:46:33.000Z
geomagio/pcdcp/PCDCPFactory.py
alejandrodelcampillo/geomag-algorithms
43a734d63a8eb2a696f14237e0054e21d36de7c3
[ "CC0-1.0" ]
44
2015-03-03T16:18:18.000Z
2021-11-06T17:07:38.000Z
"""Factory that loads PCDCP Files.""" from __future__ import absolute_import import obspy.core from .. import ChannelConverter from ..TimeseriesFactory import TimeseriesFactory from .PCDCPParser import PCDCPParser from .PCDCPWriter import PCDCPWriter # pattern for pcdcp file names PCDCP_FILE_PATTERN = "%(OBS)s%(year...
30.125984
110
0.592786
from __future__ import absolute_import import obspy.core from .. import ChannelConverter from ..TimeseriesFactory import TimeseriesFactory from .PCDCPParser import PCDCPParser from .PCDCPWriter import PCDCPWriter PCDCP_FILE_PATTERN = "%(OBS)s%(year)s%(julian)s.%(i)s" class PCDCPFactory(TimeseriesFactory): def...
true
true
f7633db507318fd24e4e1c28f0a8664d6ae34329
825
py
Python
solutions/LCP07-chuan-di-xin-xi/07.py
Wonz5130/LeetCode-Solutions
793935df4e4b38d147df07ff7b9353e7d5ff8165
[ "MIT" ]
12
2020-04-21T01:09:14.000Z
2022-01-13T08:42:03.000Z
solutions/LCP07-chuan-di-xin-xi/07.py
Wonz5130/LeetCode-Solutions
793935df4e4b38d147df07ff7b9353e7d5ff8165
[ "MIT" ]
null
null
null
solutions/LCP07-chuan-di-xin-xi/07.py
Wonz5130/LeetCode-Solutions
793935df4e4b38d147df07ff7b9353e7d5ff8165
[ "MIT" ]
4
2020-03-31T03:06:16.000Z
2021-07-06T07:27:44.000Z
from typing import List class Solution: def numWays(self, n: int, relation: List[List[int]], k: int) -> int: self.res = 0 graph = [[[None] for x in range(n)] for x in range(n)] for i in range(len(relation)): graph[relation[i][0]][relation[i][1]] = 1 def dfs(start, step...
27.5
72
0.443636
from typing import List class Solution: def numWays(self, n: int, relation: List[List[int]], k: int) -> int: self.res = 0 graph = [[[None] for x in range(n)] for x in range(n)] for i in range(len(relation)): graph[relation[i][0]][relation[i][1]] = 1 def dfs(start, step...
true
true
f7633dd927804acb8ddbb825d0737278913612c6
3,834
py
Python
onnxmltools/convert/common/shape_calculator.py
Oewyn/onnxmltools
8dbd844dab77754971f59d4d533e6763ce0b03c2
[ "MIT" ]
null
null
null
onnxmltools/convert/common/shape_calculator.py
Oewyn/onnxmltools
8dbd844dab77754971f59d4d533e6763ce0b03c2
[ "MIT" ]
null
null
null
onnxmltools/convert/common/shape_calculator.py
Oewyn/onnxmltools
8dbd844dab77754971f59d4d533e6763ce0b03c2
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """ Common...
49.792208
117
0.677882
import numpy as np import numbers import six from ._registration import register_shape_calculator from .data_types import Int64TensorType, FloatTensorType, StringTensorType, DictionaryType, SequenceType from .utils import check_input_and_output_numbers, check_input_and_output_types, compare_strict_version def calcula...
true
true
f7633e1dd649801fd2ba243a5dda55c1f318349f
1,319
py
Python
tuprolog/solve/prolog/__init__.py
DavideEva/2ppy
55609415102f8116165a42c8e33e029c4906e160
[ "Apache-2.0" ]
1
2021-08-07T06:29:28.000Z
2021-08-07T06:29:28.000Z
tuprolog/solve/prolog/__init__.py
DavideEva/2ppy
55609415102f8116165a42c8e33e029c4906e160
[ "Apache-2.0" ]
14
2021-09-16T13:25:12.000Z
2022-01-03T10:12:22.000Z
tuprolog/solve/prolog/__init__.py
DavideEva/2ppy
55609415102f8116165a42c8e33e029c4906e160
[ "Apache-2.0" ]
1
2021-12-22T00:25:32.000Z
2021-12-22T00:25:32.000Z
from tuprolog import logger from tuprolog.solve.flags import DEFAULT_FLAG_STORE, FlagStore from tuprolog.solve.library import libraries, Libraries from tuprolog.solve.channel import InputChannel, OutputChannel, std_out, std_in, std_err, warn from tuprolog.theory import theory, mutable_theory, Theory from tuprolog.solve...
34.710526
94
0.721759
from tuprolog import logger from tuprolog.solve.flags import DEFAULT_FLAG_STORE, FlagStore from tuprolog.solve.library import libraries, Libraries from tuprolog.solve.channel import InputChannel, OutputChannel, std_out, std_in, std_err, warn from tuprolog.theory import theory, mutable_theory, Theory from tuprolog.solve...
true
true
f7633ed00ab5a045b39c6c4f4b321ea9695af7c1
15,978
py
Python
src/iks/iks.py
IBM/cis-integration
fbf1f5c2df57b846499856ca927d2de15b4b375c
[ "Apache-2.0" ]
4
2021-08-04T16:58:18.000Z
2022-02-16T03:28:46.000Z
src/iks/iks.py
IBM/cis-integration
fbf1f5c2df57b846499856ca927d2de15b4b375c
[ "Apache-2.0" ]
16
2021-07-13T13:50:31.000Z
2021-08-13T15:31:32.000Z
src/iks/iks.py
IBM/cis-integration
fbf1f5c2df57b846499856ca927d2de15b4b375c
[ "Apache-2.0" ]
null
null
null
''' DISCLAIMER OF WARRANTIES: Permission is granted to copy this Tools or Sample code for internal use only, provided that this permission notice and warranty disclaimer appears in all copies. THIS TOOLS OR SAMPLE CODE IS LICENSED TO YOU AS-IS. IBM AND ITS SUPPLIERS AND LICENSORS DISCLAIM ALL WARRANTIES, EITHER EXPRES...
42.494681
277
0.658843
from src.iks.delete_secret_cert import DeleteSecretCMS from src.iks.delete_ingress import DeleteIngress from src.iks.certcreate_iks import SecretCertificateCreator from src.iks.create_ingress import IngressCreator from src.common.dns_creator import DNSCreator from src.iks.create_terraform_workspace import WorkspaceCre...
true
true
f7633ee28cbd1fdeb7bb032ad8389ed4849cb5eb
2,616
py
Python
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/custom_data_source_linked_service_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-06-02T08:01:35.000Z
2021-06-02T08:01:35.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/custom_data_source_linked_service_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2020-03-06T05:57:16.000Z
2020-03-06T05:57:16.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/custom_data_source_linked_service_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
44.338983
212
0.665138
from .linked_service_py3 import LinkedService class CustomDataSourceLinkedService(LinkedService): _validation = { 'type': {'required': True}, 'type_properties': {'required': True}, } _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'connect_vi...
true
true
f7633ff4139c303d1e4e394bea3b3b7357eddf89
1,684
py
Python
gatekeeper/model/mysql_model.py
gods-view/AdclickIO
ccb73867e568aac5f40bd5890149626ce0be1897
[ "BSD-2-Clause" ]
null
null
null
gatekeeper/model/mysql_model.py
gods-view/AdclickIO
ccb73867e568aac5f40bd5890149626ce0be1897
[ "BSD-2-Clause" ]
null
null
null
gatekeeper/model/mysql_model.py
gods-view/AdclickIO
ccb73867e568aac5f40bd5890149626ce0be1897
[ "BSD-2-Clause" ]
null
null
null
from peewee import * from .config import mysql db = MySQLDatabase(mysql['name'], host=mysql['host'], port=int( mysql['port']), user=mysql['user'], passwd=mysql['passwd']) class BaseModel(Model): """A base model that will use our MySQL database""" class Meta: database = db class PProvider(BaseM...
24.057143
79
0.625297
from peewee import * from .config import mysql db = MySQLDatabase(mysql['name'], host=mysql['host'], port=int( mysql['port']), user=mysql['user'], passwd=mysql['passwd']) class BaseModel(Model): class Meta: database = db class PProvider(BaseModel): name = CharField(null=False) class Meta:...
true
true
f763405280c203b87b60df91813fbe6069a4ae70
7,998
py
Python
gameLogic/gameManager.py
JoelEager/pyTanks-Server
4455c0475980ea1372f11d7ec41d95990b3c8f44
[ "MIT" ]
5
2017-09-04T09:36:40.000Z
2019-10-31T20:52:13.000Z
gameLogic/gameManager.py
JoelEager/pyTanks-Server
4455c0475980ea1372f11d7ec41d95990b3c8f44
[ "MIT" ]
3
2018-12-28T08:09:51.000Z
2019-01-04T20:36:47.000Z
gameLogic/gameManager.py
JoelEager/pyTanks-Server
4455c0475980ea1372f11d7ec41d95990b3c8f44
[ "MIT" ]
1
2018-12-28T08:12:36.000Z
2018-12-28T08:12:36.000Z
""" Manages and updates the game state every frame and sets up new games """ from random import randint import config from . import collisionDetector, gameData import dataModels from serverLogic import serverData from serverLogic.logging import logPrint def startGame(): """ Starts a new game """ game...
40.598985
117
0.590648
from random import randint import config from . import collisionDetector, gameData import dataModels from serverLogic import serverData from serverLogic.logging import logPrint def startGame(): gameData.shells = list() gameData.walls = list() for count in range(0, randint(config.game.wall.wallCountB...
true
true
f76342760e944f558afbdd796244b2a8d36c977a
964
py
Python
Z_ALL_FILE/Jy1/1092020-80-XAQ-Untitled.py
omikabir/omEngin
b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195
[ "Apache-2.0" ]
null
null
null
Z_ALL_FILE/Jy1/1092020-80-XAQ-Untitled.py
omikabir/omEngin
b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195
[ "Apache-2.0" ]
null
null
null
Z_ALL_FILE/Jy1/1092020-80-XAQ-Untitled.py
omikabir/omEngin
b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195
[ "Apache-2.0" ]
1
2021-04-29T21:46:02.000Z
2021-04-29T21:46:02.000Z
#!/usr/bin/env python # coding: utf-8 # In[8]: import pandas as pd import numpy as np import os import sqlite3 pt = os.getcwd() alarm = pt + "\\C.csv" def conv_2_list(ls1, ls2, ls3): ToDf = pd.DataFrame(zip(ls1, ls2, l3)) print(Todf) l0 = ["0", "1", "2", "3", "4"] l1 = ["Amar", "Barsha", "Carlos", "...
15.0625
94
0.580913
import pandas as pd import numpy as np import os import sqlite3 pt = os.getcwd() alarm = pt + "\\C.csv" def conv_2_list(ls1, ls2, ls3): ToDf = pd.DataFrame(zip(ls1, ls2, l3)) print(Todf) l0 = ["0", "1", "2", "3", "4"] l1 = ["Amar", "Barsha", "Carlos", "Tanmay", "Misbah"] l2 = ["Alpha", "Bravo", "Ch...
true
true
f76342c129e01b33cf2f97daa5d58b71a4e2f6ae
5,769
py
Python
pygita/client.py
TheShubhendra/gita
955bade9699eba52df4f8598b73965fd685f6a62
[ "MIT" ]
2
2020-09-08T09:38:18.000Z
2020-09-08T14:02:20.000Z
pygita/client.py
TheShubhendra/gita
955bade9699eba52df4f8598b73965fd685f6a62
[ "MIT" ]
2
2020-09-10T13:44:58.000Z
2021-02-14T13:21:04.000Z
pygita/client.py
TheShubhendra/gita
955bade9699eba52df4f8598b73965fd685f6a62
[ "MIT" ]
1
2020-09-08T14:11:36.000Z
2020-09-08T14:11:36.000Z
"""API Client module for handling requests and responses.""" import requests import datetime from .exceptions import ( PygitaException, ServerConnectionError, BadRequestError, UnauthorisedError, RequestFailedError, ServerError, AuthorizationError, ) from .constants import ( TOKEN_VALIDIT...
33.736842
75
0.58797
import requests import datetime from .exceptions import ( PygitaException, ServerConnectionError, BadRequestError, UnauthorisedError, RequestFailedError, ServerError, AuthorizationError, ) from .constants import ( TOKEN_VALIDITY, ) from .verse import Verse from .chapter import Chapter ...
true
true
f763439d1ef973b2d12547d56bcabfc7e90f4769
66,058
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_resources_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2020-05-12T23:29:15.000Z
2020-05-12T23:29:15.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_resources_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_resources_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
50.196049
211
0.678404
import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrest.polling import LROPoller, NoPolling from msrestazure.polling.arm_polling import ARMPolling from .. import models class ResourcesOperations(object): models = models def __init__(self, c...
true
true
f76344f11958b805f10526cc8010597e84f72aeb
3,092
py
Python
dvc/dependency/repo.py
bjonnh/dvc
d7788887f05e2d869324ceed9c2464500b4bf96d
[ "Apache-2.0" ]
null
null
null
dvc/dependency/repo.py
bjonnh/dvc
d7788887f05e2d869324ceed9c2464500b4bf96d
[ "Apache-2.0" ]
null
null
null
dvc/dependency/repo.py
bjonnh/dvc
d7788887f05e2d869324ceed9c2464500b4bf96d
[ "Apache-2.0" ]
null
null
null
import os from voluptuous import Required from dvc.exceptions import OutputNotFoundError from dvc.path_info import PathInfo from .local import LocalDependency class RepoDependency(LocalDependency): PARAM_REPO = "repo" PARAM_URL = "url" PARAM_REV = "rev" PARAM_REV_LOCK = "rev_lock" REPO_SCHEMA ...
30.019417
79
0.605433
import os from voluptuous import Required from dvc.exceptions import OutputNotFoundError from dvc.path_info import PathInfo from .local import LocalDependency class RepoDependency(LocalDependency): PARAM_REPO = "repo" PARAM_URL = "url" PARAM_REV = "rev" PARAM_REV_LOCK = "rev_lock" REPO_SCHEMA ...
true
true
f76347523547f816fa199a2b76742bc2b2b20f8e
2,139
py
Python
config.py
JeanElKh/Deep-temporal-clustering
880d9786391e7dbc98f6a3d17d0b2b666f466d3a
[ "MIT" ]
null
null
null
config.py
JeanElKh/Deep-temporal-clustering
880d9786391e7dbc98f6a3d17d0b2b666f466d3a
[ "MIT" ]
null
null
null
config.py
JeanElKh/Deep-temporal-clustering
880d9786391e7dbc98f6a3d17d0b2b666f466d3a
[ "MIT" ]
null
null
null
import argparse def get_arguments(): parser = argparse.ArgumentParser() # data args parser.add_argument( "--dataset_name", default="SonyAIBORobotSurface1", help="dataset name" ) parser.add_argument("--path_data", default="data/{}", help="dataset name") # model args parser.add_argu...
24.872093
97
0.575503
import argparse def get_arguments(): parser = argparse.ArgumentParser() parser.add_argument( "--dataset_name", default="SonyAIBORobotSurface1", help="dataset name" ) parser.add_argument("--path_data", default="data/{}", help="dataset name") parser.add_argument( "--pool", ...
true
true
f763480705e1ba11b2426766e789cb16e898c6ac
1,458
py
Python
app/modules/OilTank/OilTank.py
JBizarri/concurrent-computing
ad6e67e171f8f3b5c186bd347c24b7510815e0a2
[ "MIT" ]
null
null
null
app/modules/OilTank/OilTank.py
JBizarri/concurrent-computing
ad6e67e171f8f3b5c186bd347c24b7510815e0a2
[ "MIT" ]
null
null
null
app/modules/OilTank/OilTank.py
JBizarri/concurrent-computing
ad6e67e171f8f3b5c186bd347c24b7510815e0a2
[ "MIT" ]
null
null
null
from flask_restful import Resource, request import random import time import os import requests import json oil_tank = { 'nome': "oleo", 'volume': random.randint(100, 200) } BASE_URL = os.environ['BASE_URL'] class OilTank(Resource): def __init__(self): self.oil_url = BASE_URL + '/oleo' ...
24.3
96
0.48834
from flask_restful import Resource, request import random import time import os import requests import json oil_tank = { 'nome': "oleo", 'volume': random.randint(100, 200) } BASE_URL = os.environ['BASE_URL'] class OilTank(Resource): def __init__(self): self.oil_url = BASE_URL + '/oleo' ...
true
true
f7634812ecb9eba8387bf650f035594689ae07f2
1,803
py
Python
candig/server/configtest.py
haoyuanli/candig-server
5f58a4ef5f58d9e91afb98d385e9213e0899e51d
[ "Apache-2.0" ]
4
2019-05-08T20:42:10.000Z
2021-08-13T16:39:38.000Z
candig/server/configtest.py
haoyuanli/candig-server
5f58a4ef5f58d9e91afb98d385e9213e0899e51d
[ "Apache-2.0" ]
102
2019-04-03T23:08:46.000Z
2021-11-28T19:41:38.000Z
candig/server/configtest.py
haoyuanli/candig-server
5f58a4ef5f58d9e91afb98d385e9213e0899e51d
[ "Apache-2.0" ]
6
2017-10-31T13:10:21.000Z
2018-10-30T02:09:45.000Z
""" Tests for the server configuration. Run via configtest_dev.py Tests are standard python unittest tests. """ import unittest import flask import os class TestConfig(unittest.TestCase): """ This class implements configuration checks for the GA4GH server. It is structured as a set of unit tests, and re...
34.018868
76
0.634498
import unittest import flask import os class TestConfig(unittest.TestCase): configStr = None configEnv = None configFile = None def setUp(self): self.app = flask.Flask(__name__) try: self.app.config.from_object(self.configStr) except Exception: self.f...
true
true
f763489073221a0058c43b650f77849bca2574e7
167
py
Python
Scripts/django-admin.py
Nicozstory/Try-Django-1.11
5f81571d3342d1991494f9aac425fb79b64fd425
[ "bzip2-1.0.6" ]
null
null
null
Scripts/django-admin.py
Nicozstory/Try-Django-1.11
5f81571d3342d1991494f9aac425fb79b64fd425
[ "bzip2-1.0.6" ]
null
null
null
Scripts/django-admin.py
Nicozstory/Try-Django-1.11
5f81571d3342d1991494f9aac425fb79b64fd425
[ "bzip2-1.0.6" ]
null
null
null
#!c:\users\alexa\myvirtualenv2\foodtasker\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
27.833333
60
0.796407
from django.core import management if __name__ == "__main__": management.execute_from_command_line()
true
true
f76349303c20f9c06396243716d5ad6d96ea25e1
1,785
py
Python
official/vision/detection/modeling/optimizers.py
hjkim-haga/TF-OD-API
22ac477ff4dfb93fe7a32c94b5f0b1e74330902b
[ "Apache-2.0" ]
1
2021-05-22T12:50:50.000Z
2021-05-22T12:50:50.000Z
official/vision/detection/modeling/optimizers.py
DemonDamon/mask-detection-based-on-tf2odapi
192ae544169c1230c21141c033800aa1bd94e9b6
[ "MIT" ]
null
null
null
official/vision/detection/modeling/optimizers.py
DemonDamon/mask-detection-based-on-tf2odapi
192ae544169c1230c21141c033800aa1bd94e9b6
[ "MIT" ]
null
null
null
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
35
79
0.705882
from __future__ import absolute_import from __future__ import division from __future__ import print_function import functools import numpy as np import tensorflow as tf class OptimizerFactory(object): def __init__(self, params): if params.type == 'momentum': self._optimizer = functool...
true
true
f7634ad64c277fd6c8139b07324248702d3c322e
217
py
Python
nanopq/__init__.py
calvinmccarter/nanopq
5ed6cb52c1778323c0c61f2e40ade4ffd7070e2c
[ "MIT" ]
217
2018-07-25T23:33:56.000Z
2022-03-19T13:44:07.000Z
nanopq/__init__.py
calvinmccarter/nanopq
5ed6cb52c1778323c0c61f2e40ade4ffd7070e2c
[ "MIT" ]
11
2019-01-23T10:56:18.000Z
2022-03-31T14:58:40.000Z
nanopq/__init__.py
calvinmccarter/nanopq
5ed6cb52c1778323c0c61f2e40ade4ffd7070e2c
[ "MIT" ]
35
2018-07-30T12:53:12.000Z
2022-02-08T04:11:38.000Z
__all__ = ["PQ", "OPQ", "DistanceTable", "nanopq_to_faiss", "faiss_to_nanopq"] __version__ = "0.1.9" from .convert_faiss import faiss_to_nanopq, nanopq_to_faiss from .opq import OPQ from .pq import PQ, DistanceTable
31
78
0.760369
__all__ = ["PQ", "OPQ", "DistanceTable", "nanopq_to_faiss", "faiss_to_nanopq"] __version__ = "0.1.9" from .convert_faiss import faiss_to_nanopq, nanopq_to_faiss from .opq import OPQ from .pq import PQ, DistanceTable
true
true
f7634ba695671d418d56cc4c8e59cfd23c69d752
5,931
py
Python
up2b/up2b_lib/watermark.py
thep0y/up2b
667874c642241483c92d59331badbb2aaa8b37da
[ "MIT" ]
7
2021-05-13T10:13:32.000Z
2021-12-17T11:45:19.000Z
up2b/up2b_lib/watermark.py
thep0y/up2b
667874c642241483c92d59331badbb2aaa8b37da
[ "MIT" ]
1
2021-05-13T10:18:29.000Z
2021-05-13T10:55:30.000Z
up2b/up2b_lib/watermark.py
thep0y/up2b
667874c642241483c92d59331badbb2aaa8b37da
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: thepoy # @Email: thepoy@163.com # @File Name: utils.py # @Created: 2021-02-09 15:17:32 # @Modified: 2021-06-04 13:25:58 import os from PIL import Image, ImageDraw, ImageFont, ImageEnhance from PIL.ImageDraw import ImageDraw as Draw from typing import List, Tup...
29.073529
89
0.564997
import os from PIL import Image, ImageDraw, ImageFont, ImageEnhance from PIL.ImageDraw import ImageDraw as Draw from typing import List, Tuple from collections import namedtuple from up2b.up2b_lib.constants import CACHE_PATH from up2b.up2b_lib.utils import is_ascii TypeFont = namedtuple("Font", ["text", "size", "fo...
true
true
f7634be98a44252ea60222d6be226f80f715893b
889
py
Python
Video.py
scrambleegg7/CarND-Advanced-Lane-Lines
5c87653cc8abe9f362f436b05ee59198aa39cc2e
[ "MIT" ]
null
null
null
Video.py
scrambleegg7/CarND-Advanced-Lane-Lines
5c87653cc8abe9f362f436b05ee59198aa39cc2e
[ "MIT" ]
null
null
null
Video.py
scrambleegg7/CarND-Advanced-Lane-Lines
5c87653cc8abe9f362f436b05ee59198aa39cc2e
[ "MIT" ]
null
null
null
# import numpy as np import pandas as pd import os from moviepy.editor import VideoFileClip #from IPython.display import HTML from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip from Parameter import ParametersClass from LaneDetector import LaneDetector def main(): paramCls = ParametersClass()...
21.166667
64
0.735658
import numpy as np import pandas as pd import os from moviepy.editor import VideoFileClip from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip from Parameter import ParametersClass from LaneDetector import LaneDetector def main(): paramCls = ParametersClass() params = paramCls.initialize() ...
true
true
f7634c02e2c58a91a7e9bbb92340f79a5b3ec902
1,802
py
Python
ovu/core/models/componente.py
moisesmayet/ovu
50d7700f53524dc3ee74c7669bc3476342013793
[ "MIT" ]
null
null
null
ovu/core/models/componente.py
moisesmayet/ovu
50d7700f53524dc3ee74c7669bc3476342013793
[ "MIT" ]
null
null
null
ovu/core/models/componente.py
moisesmayet/ovu
50d7700f53524dc3ee74c7669bc3476342013793
[ "MIT" ]
null
null
null
from django.db import models from tinymce.models import HTMLField from config.settings.base import STATIC_URL class Componente(models.Model): nombre = models.CharField(max_length=50) codigo = models.CharField(max_length=5, verbose_name='Código') descripcion = HTMLField(blank=True, null=True, ver...
32.178571
99
0.616537
from django.db import models from tinymce.models import HTMLField from config.settings.base import STATIC_URL class Componente(models.Model): nombre = models.CharField(max_length=50) codigo = models.CharField(max_length=5, verbose_name='Código') descripcion = HTMLField(blank=True, null=True, ver...
true
true
f7634c3c3e3089bb617d58013ab5208efdb2b242
2,120
py
Python
setup.py
Satireven/PyNeutralino
155ee608383a6c566093c3db4903c0e130a1b85f
[ "MIT" ]
8
2020-09-28T22:49:21.000Z
2022-03-11T12:05:30.000Z
setup.py
Satireven/PyNeutralino
155ee608383a6c566093c3db4903c0e130a1b85f
[ "MIT" ]
1
2020-04-13T21:33:42.000Z
2021-05-06T19:09:17.000Z
setup.py
Satireven/PyNeutralino
155ee608383a6c566093c3db4903c0e130a1b85f
[ "MIT" ]
null
null
null
import io import re from setuptools import setup from setuptools import find_packages with io.open("README.md", "rt", encoding="utf8") as f: readme = f.read() with io.open("src/pyneutralino/__init__.py", "rt", encoding="utf8") as f: version = re.search(r'__version__ = "(.*?)"', f.read()).group(1) setup( ...
38.545455
87
0.610849
import io import re from setuptools import setup from setuptools import find_packages with io.open("README.md", "rt", encoding="utf8") as f: readme = f.read() with io.open("src/pyneutralino/__init__.py", "rt", encoding="utf8") as f: version = re.search(r'__version__ = "(.*?)"', f.read()).group(1) setup( ...
true
true
f7634c803b029d8c325e6a208aec7d10d163b3c4
27,239
py
Python
tasks/varmisuse_task.py
Chenzhoujia/Mobile_hand_tf-gnn-samples-master
56236752bb06bcc60b4befb024cdd100aa9ce9ac
[ "MIT" ]
null
null
null
tasks/varmisuse_task.py
Chenzhoujia/Mobile_hand_tf-gnn-samples-master
56236752bb06bcc60b4befb024cdd100aa9ce9ac
[ "MIT" ]
null
null
null
tasks/varmisuse_task.py
Chenzhoujia/Mobile_hand_tf-gnn-samples-master
56236752bb06bcc60b4befb024cdd100aa9ce9ac
[ "MIT" ]
null
null
null
import re from collections import defaultdict from multiprocessing import Process, Queue, cpu_count from typing import Any, Dict, Iterable, List, NamedTuple, Set, Iterator import tensorflow as tf import numpy as np from dpu_utils.utils import RichPath from dpu_utils.codeutils import split_identifier_into_parts, get_la...
50.071691
137
0.612835
import re from collections import defaultdict from multiprocessing import Process, Queue, cpu_count from typing import Any, Dict, Iterable, List, NamedTuple, Set, Iterator import tensorflow as tf import numpy as np from dpu_utils.utils import RichPath from dpu_utils.codeutils import split_identifier_into_parts, get_la...
true
true
f7634ce9579d03baa8198faf72ed64e41bb3f489
18,760
py
Python
oslo/pytorch/kernel_fusion/cuda/fused_normalization.py
Mehrad0711/oslo
873d771a68bc380903947010da0b66f58f60e496
[ "Apache-2.0" ]
null
null
null
oslo/pytorch/kernel_fusion/cuda/fused_normalization.py
Mehrad0711/oslo
873d771a68bc380903947010da0b66f58f60e496
[ "Apache-2.0" ]
null
null
null
oslo/pytorch/kernel_fusion/cuda/fused_normalization.py
Mehrad0711/oslo
873d771a68bc380903947010da0b66f58f60e496
[ "Apache-2.0" ]
null
null
null
import numbers from typing import Optional, Sequence import torch from torch.nn import functional as F from torch.nn import init from torch.nn.parameter import Parameter from oslo.pytorch.kernel_fusion.cuda import CUDA def _get_autocast_dtypes() -> Sequence[torch.dtype]: if torch.cuda.is_bf16_supported(): ...
39.494737
102
0.655064
import numbers from typing import Optional, Sequence import torch from torch.nn import functional as F from torch.nn import init from torch.nn.parameter import Parameter from oslo.pytorch.kernel_fusion.cuda import CUDA def _get_autocast_dtypes() -> Sequence[torch.dtype]: if torch.cuda.is_bf16_supported(): ...
true
true
f7634d949e845a9fdccc4623d20c90b23d57af7c
5,193
py
Python
contrib/fypp-679566c-20190108/docs/conf.py
JCSDA/fckit
8502aaeec5b3012ab337b8b3f696733037d4072b
[ "Apache-2.0" ]
null
null
null
contrib/fypp-679566c-20190108/docs/conf.py
JCSDA/fckit
8502aaeec5b3012ab337b8b3f696733037d4072b
[ "Apache-2.0" ]
20
2019-01-29T16:21:54.000Z
2020-06-22T19:09:38.000Z
contrib/fypp-679566c-20190108/docs/conf.py
NOAA-GSL/fckit
8502aaeec5b3012ab337b8b3f696733037d4072b
[ "Apache-2.0" ]
1
2021-03-10T19:18:28.000Z
2021-03-10T19:18:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Fypp documentation build configuration file, created by # sphinx-quickstart on Tue Sep 12 17:02:09 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autog...
30.547059
79
0.677643
import os import sys sys.path.insert(0, os.path.abspath('../src')) extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon'] templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' project = 'Fypp' copyright = '2019, Bálint Aradi' author = 'Bálint Aradi' # |version| and |release|, also use...
true
true
f7634e5740e7109516a99bdfc8ed5eed3e3a97f5
84
py
Python
iacc/__init__.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
4
2016-12-17T20:06:10.000Z
2021-11-19T04:45:29.000Z
iacc/__init__.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
11
2021-01-06T05:35:11.000Z
2022-03-11T23:28:31.000Z
iacc/__init__.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
3
2015-06-12T10:44:16.000Z
2021-07-26T18:39:47.000Z
"""Information accessors (a layer on top of data accessors).""" __author__ = 'thor'
28
63
0.714286
__author__ = 'thor'
true
true
f7634ea1ca02b98e53ff80395b1ff763b1636dcd
1,323
py
Python
kube/task_generation/chunk_ccs.py
ZettaAI/Synaptor
e425b4c744fca093ee5c63f41b82b3cae7898af4
[ "MIT" ]
7
2018-04-01T18:18:23.000Z
2021-09-13T07:02:16.000Z
kube/task_generation/chunk_ccs.py
ZettaAI/Synaptor
e425b4c744fca093ee5c63f41b82b3cae7898af4
[ "MIT" ]
5
2018-10-24T19:36:03.000Z
2020-10-30T02:13:38.000Z
kube/task_generation/chunk_ccs.py
ZettaAI/Synaptor
e425b4c744fca093ee5c63f41b82b3cae7898af4
[ "MIT" ]
6
2018-07-12T17:59:54.000Z
2020-10-30T02:29:50.000Z
import argparse from taskqueue import TaskQueue import synaptor.cloud.kube.parser as parser import synaptor.cloud.kube.task_creation as tc from synaptor import io def main(configfilename, tagfilename=None): config = parser.parse(configfilename) if tagfilename is not None: bboxes = io.utils.read_bb...
28.76087
62
0.628874
import argparse from taskqueue import TaskQueue import synaptor.cloud.kube.parser as parser import synaptor.cloud.kube.task_creation as tc from synaptor import io def main(configfilename, tagfilename=None): config = parser.parse(configfilename) if tagfilename is not None: bboxes = io.utils.read_bb...
true
true
f7634ea75cb84809cf2b3b440e29b7c466451fcd
1,110
py
Python
blender/arm/logicnode/array/LN_array_remove_by_value.py
notwarp/armory
bd6078e3035eefcb3c725664698eeb369b4c2d88
[ "Zlib" ]
null
null
null
blender/arm/logicnode/array/LN_array_remove_by_value.py
notwarp/armory
bd6078e3035eefcb3c725664698eeb369b4c2d88
[ "Zlib" ]
null
null
null
blender/arm/logicnode/array/LN_array_remove_by_value.py
notwarp/armory
bd6078e3035eefcb3c725664698eeb369b4c2d88
[ "Zlib" ]
null
null
null
from arm.logicnode.arm_nodes import * class ArrayRemoveValueNode(ArmLogicTreeNode): """Removes the element from the given array by its value. @seeNode Array Remove by Index""" bl_idname = 'LNArrayRemoveValueNode' bl_label = 'Array Remove by Value' arm_version = 1 # def __init__(self): ...
35.806452
93
0.654955
from arm.logicnode.arm_nodes import * class ArrayRemoveValueNode(ArmLogicTreeNode): bl_idname = 'LNArrayRemoveValueNode' bl_label = 'Array Remove by Value' arm_version = 1 def init(self, context): super(ArrayRemoveValueNode, self).init(context) self.add_input('ArmNodeSocke...
true
true
f7634fbe4ebb959ec929e89fb166835e2fc07dad
1,183
py
Python
canu/validate/network/config/__init__.py
Cray-HPE/canu
3a92ce1e9b63f35aa30b9135afaa734e61909407
[ "MIT" ]
6
2021-09-16T22:02:48.000Z
2022-02-04T18:08:57.000Z
canu/validate/network/config/__init__.py
Cray-HPE/canu
3a92ce1e9b63f35aa30b9135afaa734e61909407
[ "MIT" ]
57
2021-09-17T17:15:59.000Z
2022-03-31T20:56:21.000Z
canu/validate/network/config/__init__.py
Cray-HPE/canu
3a92ce1e9b63f35aa30b9135afaa734e61909407
[ "MIT" ]
4
2022-01-06T17:09:02.000Z
2022-02-04T18:09:33.000Z
# MIT License # # (C) Copyright [2022] Hewlett Packard Enterprise Development LP # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the righ...
51.434783
76
0.777684
true
true
f7634fc406a11fd26aba6da78e093307c37efbae
6,853
py
Python
saleor/graphql/query_cost_map.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
1
2022-03-25T00:21:11.000Z
2022-03-25T00:21:11.000Z
saleor/graphql/query_cost_map.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
86
2021-11-01T04:51:55.000Z
2022-03-30T16:30:16.000Z
saleor/graphql/query_cost_map.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
1
2021-12-28T18:02:49.000Z
2021-12-28T18:02:49.000Z
"""Costs map used by query complexity validator. It's three levels deep dict of dicts: - Type - Fields - Complexity To set complexity cost for querying a field "likes" on type "User": { "User": { "likes": {"complexity": 2} } } Querying above field will not increase query complexity by 1. If field'...
39.16
83
0.538596
COST_MAP = { "Query": { "address": {"complexity": 1}, "addressValidationRules": {"complexity": 1}, "app": {"complexity": 1}, "appExtension": {"complexity": 1}, "appExtensions": {"complexity": 1, "multipliers": ["first", "last"]}, "apps": {"complexity": 1, "multiplier...
true
true
f76350fcca019968303e68e7a71068b7efbd66b8
7,423
py
Python
test/engine/test_bind.py
rclmenezes/sqlalchemy-moat
ecd9a812055307d68069e366763cad182560788d
[ "MIT" ]
null
null
null
test/engine/test_bind.py
rclmenezes/sqlalchemy-moat
ecd9a812055307d68069e366763cad182560788d
[ "MIT" ]
null
null
null
test/engine/test_bind.py
rclmenezes/sqlalchemy-moat
ecd9a812055307d68069e366763cad182560788d
[ "MIT" ]
1
2015-02-09T22:15:14.000Z
2015-02-09T22:15:14.000Z
"""tests the "bind" attribute/argument across schema and SQL, including the deprecated versions of these arguments""" from __future__ import with_statement from sqlalchemy.testing import eq_, assert_raises from sqlalchemy import engine, exc from sqlalchemy import MetaData, ThreadLocalMetaData from sqlalchemy import Int...
34.525581
78
0.498451
"""tests the "bind" attribute/argument across schema and SQL, including the deprecated versions of these arguments""" from __future__ import with_statement from sqlalchemy.testing import eq_, assert_raises from sqlalchemy import engine, exc from sqlalchemy import MetaData, ThreadLocalMetaData from sqlalchemy import Int...
false
true
f763524c608edff5168fabd491f9982f2916998b
4,837
py
Python
tests/metalearner_test.py
DataCanvasIO/YLearn
d65b5afb83deed154c710de9096317165d95014a
[ "Apache-2.0" ]
3
2022-03-28T07:41:28.000Z
2022-03-29T06:24:52.000Z
tests/metalearner_test.py
DataCanvasIO/YLearn
d65b5afb83deed154c710de9096317165d95014a
[ "Apache-2.0" ]
null
null
null
tests/metalearner_test.py
DataCanvasIO/YLearn
d65b5afb83deed154c710de9096317165d95014a
[ "Apache-2.0" ]
null
null
null
from itertools import product import pytest from sklearn import clone from sklearn.ensemble import GradientBoostingRegressor from sklearn.linear_model import LinearRegression from ylearn.estimator_model.meta_learner import SLearner, TLearner, XLearner from . import _dgp from ._common import validate_leaner _test_set...
39.975207
95
0.667769
from itertools import product import pytest from sklearn import clone from sklearn.ensemble import GradientBoostingRegressor from sklearn.linear_model import LinearRegression from ylearn.estimator_model.meta_learner import SLearner, TLearner, XLearner from . import _dgp from ._common import validate_leaner _test_set...
true
true
f763536624e9cb555ba206f6e936158daabcd8b2
14,865
py
Python
Assignments/assignment4/BobOfRivia/run.py
stxxllbu/CS224n-winter-together
eae158ed8e88dc7c8638e25bac4c4fc8eeddcc8c
[ "Apache-2.0" ]
468
2020-02-09T17:55:56.000Z
2022-03-27T05:19:57.000Z
Assignments/assignment4/BobOfRivia/run.py
stxxllbu/CS224n-winter-together
eae158ed8e88dc7c8638e25bac4c4fc8eeddcc8c
[ "Apache-2.0" ]
16
2020-02-09T15:35:09.000Z
2020-12-22T14:10:07.000Z
Assignments/assignment4/BobOfRivia/run.py
stxxllbu/CS224n-winter-together
eae158ed8e88dc7c8638e25bac4c4fc8eeddcc8c
[ "Apache-2.0" ]
168
2020-02-09T13:10:44.000Z
2022-03-18T13:23:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ CS224N 2019-20: Homework 4 run.py: Run Script for Simple NMT Model Pencheng Yin <pcyin@cs.cmu.edu> Sahil Chopra <schopra8@stanford.edu> Vera Lin <veralin@stanford.edu> Usage: run.py train --train-src=<file> --train-tgt=<file> --dev-src=<file> --dev-tgt=<file> --v...
41.991525
159
0.566902
import math import sys import pickle import time from docopt import docopt from nltk.translate.bleu_score import corpus_bleu, sentence_bleu, SmoothingFunction from nmt_model import Hypothesis, NMT import numpy as np from typing import List, Tuple, Dict, Set, Union from tqdm import tqdm from utils import read_corpus,...
true
true
f7635370d4504f07cb98ae79c5e8b03425562840
10,487
py
Python
tests/test_functions.py
caihj/byterun
921b16dd930a5934dbb1fd399aa7cd8d27b57f46
[ "MIT" ]
null
null
null
tests/test_functions.py
caihj/byterun
921b16dd930a5934dbb1fd399aa7cd8d27b57f46
[ "MIT" ]
null
null
null
tests/test_functions.py
caihj/byterun
921b16dd930a5934dbb1fd399aa7cd8d27b57f46
[ "MIT" ]
null
null
null
"""Test functions etc, for Byterun.""" from __future__ import print_function import vmtest import six PY3 = six.PY3 class TestFunctions(vmtest.VmTestCase): def test_functions(self): self.assert_ok("""\ def fn(a, b=17, c="Hello", d=[]): d.append(99) print(a, b,...
27.168394
82
0.370173
from __future__ import print_function import vmtest import six PY3 = six.PY3 class TestFunctions(vmtest.VmTestCase): def test_functions(self): self.assert_ok("""\ def fn(a, b=17, c="Hello", d=[]): d.append(99) print(a, b, c, d) fn(1) fn...
true
true
f763539fbf1666b8bd28f4169440233e890598ce
584
py
Python
adapter/setup.py
danmharris/WoT-Servient
2f4ec188653135af3ad6055f78ca0e6f00d9e9cf
[ "MIT" ]
2
2020-11-11T11:39:12.000Z
2021-02-20T15:03:13.000Z
adapter/setup.py
danmharris/WoT-Servient
2f4ec188653135af3ad6055f78ca0e6f00d9e9cf
[ "MIT" ]
9
2019-06-11T10:07:10.000Z
2022-02-27T11:15:48.000Z
adapter/setup.py
danmharris/WoT-Servient
2f4ec188653135af3ad6055f78ca0e6f00d9e9cf
[ "MIT" ]
null
null
null
from setuptools import setup, find_namespace_packages setup( name="wot-adapter", version="0.0.1", package_dir={"":"src"}, packages=find_namespace_packages(where="src"), install_requires=[ 'Flask>=1.1.1', 'Flask-Cors>=3.0.9', 'pyHS100>=0.3.5', 'PyYAML>=5.3.1', ...
26.545455
83
0.590753
from setuptools import setup, find_namespace_packages setup( name="wot-adapter", version="0.0.1", package_dir={"":"src"}, packages=find_namespace_packages(where="src"), install_requires=[ 'Flask>=1.1.1', 'Flask-Cors>=3.0.9', 'pyHS100>=0.3.5', 'PyYAML>=5.3.1', ...
true
true
f76354261a7e8a33f49cf6a274b2a4bbcdee740c
3,555
py
Python
sdk/lusid/models/quote_instrument_id_type.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
sdk/lusid/models/quote_instrument_id_type.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
sdk/lusid/models/quote_instrument_id_type.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.4425 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getf...
28.214286
116
0.580872
try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getfullargspec import pprint import re import six from lusid.configuration import Configuration class QuoteInstrumentIdType(object): LUSIDINSTRUMENTID = "LusidInstrumentId" FIGI = "Figi" RIC = "RIC"...
true
true
f7635479d904309f225c98725113e3819d74938d
20,895
py
Python
tensorflow/contrib/rnn/python/kernel_tests/core_rnn_cell_test.py
bhbai/tensorflow
d4b5c606fc9fbd1a20b5b113b4bc831f31d889a3
[ "Apache-2.0" ]
65
2016-09-26T01:30:40.000Z
2021-08-11T17:00:41.000Z
tensorflow/contrib/rnn/python/kernel_tests/core_rnn_cell_test.py
bhbai/tensorflow
d4b5c606fc9fbd1a20b5b113b4bc831f31d889a3
[ "Apache-2.0" ]
5
2017-02-21T08:37:52.000Z
2017-03-29T05:46:05.000Z
tensorflow/contrib/rnn/python/kernel_tests/core_rnn_cell_test.py
bhbai/tensorflow
d4b5c606fc9fbd1a20b5b113b4bc831f31d889a3
[ "Apache-2.0" ]
10
2017-03-28T06:16:10.000Z
2020-08-25T09:03:44.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
42.905544
82
0.627184
from __future__ import absolute_import from __future__ import division from __future__ import print_function import functools import sys if hasattr(sys, "getdlopenflags") and hasattr(sys, "setdlopenflags"): import ctypes sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL) import numpy as np from ten...
true
true
f7635486cdae2dbe75a1da91a3a4c563b00f3681
9,735
py
Python
ginga/qtw/CanvasRenderQt.py
profxj/ginga
a5f447b760ac38dafa52181b3f99156545a6f2e7
[ "BSD-3-Clause" ]
null
null
null
ginga/qtw/CanvasRenderQt.py
profxj/ginga
a5f447b760ac38dafa52181b3f99156545a6f2e7
[ "BSD-3-Clause" ]
2
2017-07-25T15:22:13.000Z
2020-04-25T19:34:30.000Z
ginga/qtw/CanvasRenderQt.py
profxj/ginga
a5f447b760ac38dafa52181b3f99156545a6f2e7
[ "BSD-3-Clause" ]
3
2018-02-09T20:06:30.000Z
2020-03-30T02:31:44.000Z
# # CanvasRenderQt.py -- for rendering into a ImageViewQt widget # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import numpy as np from ginga.qtw.QtHelp import (QtCore, QPen, QPolygon, QColor, QPainterPath, QImage, QPixmap, ...
33.802083
86
0.57925
import numpy as np from ginga.qtw.QtHelp import (QtCore, QPen, QPolygon, QColor, QPainterPath, QImage, QPixmap, get_font, get_painter) from ginga import colors from ginga.canvas import render import ginga.canvas.types.all class RenderContext(render.Render...
true
true
f76355879283ee995e0e51628f7c81f4400d7f93
560
py
Python
Levantando erros 404.py
dimagela29/Python-POO
61904b232b50779f37ed48a46cc317fc709a744e
[ "Apache-2.0", "MIT" ]
null
null
null
Levantando erros 404.py
dimagela29/Python-POO
61904b232b50779f37ed48a46cc317fc709a744e
[ "Apache-2.0", "MIT" ]
null
null
null
Levantando erros 404.py
dimagela29/Python-POO
61904b232b50779f37ed48a46cc317fc709a744e
[ "Apache-2.0", "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: from django.shorcurts import render from django.http import Http404 from models import contato def index(request): contatos = Contato.objects.all() return render(request, 'contatos/index.html', { 'contatos': contatos }) def ver_contato(request, co...
21.538462
60
0.653571
from django.shorcurts import render from django.http import Http404 from models import contato def index(request): contatos = Contato.objects.all() return render(request, 'contatos/index.html', { 'contatos': contatos }) def ver_contato(request, contato_id): try: contato = Contato.o...
true
true
f7635614064f0507ab951fd96b66ed19879bb2ac
41,507
py
Python
course_v2/_09nlp.py
rpuntaie/tensorflow_examples
1958f7f0de9d96859dc3961a1695e1543fec9fd3
[ "MIT" ]
null
null
null
course_v2/_09nlp.py
rpuntaie/tensorflow_examples
1958f7f0de9d96859dc3961a1695e1543fec9fd3
[ "MIT" ]
null
null
null
course_v2/_09nlp.py
rpuntaie/tensorflow_examples
1958f7f0de9d96859dc3961a1695e1543fec9fd3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Tokenizing text and creating sequences for sentences # courses/udacity_intro_to_tensorflow_for_deep_learning/l09c01_nlp_turn_words_into_tokens.ipynb # This colab shows you how to tokenize text and create sequences for sentences as # the first stage of preparing text for use with TensorFlow mo...
34.938552
158
0.744043
import io import numpy as np import pandas as pd import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import tensorflow as tf from tensorflow.keras.preprocessing.text import Tokenizer from tensorflow.keras.preprocessing.sequence import pad_sequences from tensorflow.keras.models import Sequen...
true
true
f76356b8e1c95a1661dd93056ae038b417bb8aa4
6,115
py
Python
tests/integration/test_access_file_and_metadatasets.py
ghga-de/datameta
e161b857d97c8563e9f6303eb1fbe86821b64ede
[ "Apache-2.0" ]
7
2021-02-26T13:03:21.000Z
2021-09-23T14:15:24.000Z
tests/integration/test_access_file_and_metadatasets.py
ghga-de/datameta
e161b857d97c8563e9f6303eb1fbe86821b64ede
[ "Apache-2.0" ]
255
2021-02-15T19:37:42.000Z
2022-03-30T11:38:54.000Z
tests/integration/test_access_file_and_metadatasets.py
ghga-de/datameta
e161b857d97c8563e9f6303eb1fbe86821b64ede
[ "Apache-2.0" ]
1
2021-02-15T19:52:36.000Z
2021-02-15T19:52:36.000Z
# Copyright 2021 Universität Tübingen, DKFZ and EMBL for the German Human Genome-Phenome Archive (GHGA) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses...
42.465278
126
0.637776
from . import BaseIntegrationTest from datameta.api import base_url from .fixtures.holders import UserFixture, FileFixture, MetaDataSetFixture from parameterized import parameterized import hashlib class ReadFileAndMetadatasets(BaseIntegrationTest): def read_file(self, file: FileFixture, user: UserFixture, stat...
true
true
f76358699455e9e69b689a4bb7e97fc5ff9d8427
1,107
py
Python
Research and testing/scrapyscraper.py
mwweinberg/cccp_women
def73537720d3f36deead52a2e4348e527d2779a
[ "MIT" ]
null
null
null
Research and testing/scrapyscraper.py
mwweinberg/cccp_women
def73537720d3f36deead52a2e4348e527d2779a
[ "MIT" ]
null
null
null
Research and testing/scrapyscraper.py
mwweinberg/cccp_women
def73537720d3f36deead52a2e4348e527d2779a
[ "MIT" ]
null
null
null
#python3 import scrapy class BrickSetSpider(scrapy.Spider): name = "brickset_spider" start_urls = ['http://brickset.com/sets/year-2016'] def parse(self, response): SET_SELECTOR = '.set' for brickset in response.css(SET_SELECTOR): NAME_SELECTOR = 'h1 a ::text' PIEC...
35.709677
78
0.575429
import scrapy class BrickSetSpider(scrapy.Spider): name = "brickset_spider" start_urls = ['http://brickset.com/sets/year-2016'] def parse(self, response): SET_SELECTOR = '.set' for brickset in response.css(SET_SELECTOR): NAME_SELECTOR = 'h1 a ::text' PIECES_SELECT...
true
true
f76359223486949f4b1e9e78923548e607f9ddbc
14,300
py
Python
script/release/uploaders/upload.py
gzorin/electron
7796a6a2063ad222536c55b642abed9c45658a40
[ "MIT" ]
null
null
null
script/release/uploaders/upload.py
gzorin/electron
7796a6a2063ad222536c55b642abed9c45658a40
[ "MIT" ]
null
null
null
script/release/uploaders/upload.py
gzorin/electron
7796a6a2063ad222536c55b642abed9c45658a40
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function import argparse import datetime import hashlib import json import mmap import os import shutil import subprocess from struct import Struct import sys sys.path.append( os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + "/../..")) from zipfile im...
36.57289
78
0.700769
from __future__ import print_function import argparse import datetime import hashlib import json import mmap import os import shutil import subprocess from struct import Struct import sys sys.path.append( os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + "/../..")) from zipfile import ZipFile from lib.c...
true
true
f763596b8d812cdca71c0f50f7930275ecfd1203
10,587
py
Python
builder/main.py
fortytwosystems/platform-atmelsam
e3bd02d9e80a89d7d9a29113faddc60aeae61d2d
[ "Apache-2.0" ]
null
null
null
builder/main.py
fortytwosystems/platform-atmelsam
e3bd02d9e80a89d7d9a29113faddc60aeae61d2d
[ "Apache-2.0" ]
null
null
null
builder/main.py
fortytwosystems/platform-atmelsam
e3bd02d9e80a89d7d9a29113faddc60aeae61d2d
[ "Apache-2.0" ]
null
null
null
# Copyright 2014-present PlatformIO <contact@platformio.org> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
31.697605
102
0.590913
import sys from platform import system from os import makedirs from os.path import basename, isdir, join from SCons.Script import (ARGUMENTS, COMMAND_LINE_TARGETS, AlwaysBuild, Builder, Default, DefaultEnvironment) from platformio.util import get_serial_ports def BeforeUpload(target, sour...
true
true
f76359ef15f2fc7baed5abe543dd10ab099d8edf
1,475
py
Python
problem_solving/timeinwords.py
arunachalamb/hackerrank
9c4fc130378159e003ef5543ef4dd25bc9addba8
[ "MIT" ]
1
2020-03-02T18:28:22.000Z
2020-03-02T18:28:22.000Z
problem_solving/timeinwords.py
arunachalamb/hackerrank
9c4fc130378159e003ef5543ef4dd25bc9addba8
[ "MIT" ]
null
null
null
problem_solving/timeinwords.py
arunachalamb/hackerrank
9c4fc130378159e003ef5543ef4dd25bc9addba8
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys HOUR = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen', 'twenty'] NUM = [i for i in range(1, 21)...
28.921569
88
0.553898
import math import os import random import re import sys HOUR = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen', 'twenty'] NUM = [i for i in range(1, 21)] NUM2WORD = di...
true
true
f7635ad7abe2b0a36584d9090d3ff05619b7424e
2,001
py
Python
pyrasterframes/src/main/python/tests/ExploderTests.py
jpolchlo/rasterframes
1ec7e9e65a4ac7f8f17863d64a4884c35cd24403
[ "Apache-2.0" ]
null
null
null
pyrasterframes/src/main/python/tests/ExploderTests.py
jpolchlo/rasterframes
1ec7e9e65a4ac7f8f17863d64a4884c35cd24403
[ "Apache-2.0" ]
null
null
null
pyrasterframes/src/main/python/tests/ExploderTests.py
jpolchlo/rasterframes
1ec7e9e65a4ac7f8f17863d64a4884c35cd24403
[ "Apache-2.0" ]
null
null
null
# # This software is licensed under the Apache 2 license, quoted below. # # Copyright 2019 Astraea, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # [http://www.apache.org/licenses/LI...
33.915254
79
0.715642
from . import TestEnvironment from pyrasterframes.rasterfunctions import * from pyrasterframes.rf_types import * from pyrasterframes import TileExploder from pyspark.ml.feature import VectorAssembler from pyspark.ml import Pipeline from pyspark.sql.functions import * import unittest class ExploderTests(TestEnviro...
true
true
f7635adcff0c25be58084ab5f591999e35bf143c
435
py
Python
tests/test_version.py
CESNET/invenio-openid-connect
b5cd5bbe1ee6f652fafed2bbab13f7fd8d50e618
[ "MIT" ]
null
null
null
tests/test_version.py
CESNET/invenio-openid-connect
b5cd5bbe1ee6f652fafed2bbab13f7fd8d50e618
[ "MIT" ]
6
2019-10-02T06:51:39.000Z
2021-06-25T15:21:59.000Z
tests/test_version.py
CESNET/invenio-openid-connect
b5cd5bbe1ee6f652fafed2bbab13f7fd8d50e618
[ "MIT" ]
1
2020-01-07T19:40:02.000Z
2020-01-07T19:40:02.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2019 CESNET. # # Invenio OpenID Connect is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Simple test of version import.""" from __future__ import absolute_import, print_function def test_v...
25.588235
83
0.733333
from __future__ import absolute_import, print_function def test_version(): from invenio_openid_connect import __version__ assert __version__
true
true
f7635c0d098d13616e07a22c1baa45da48b78323
557
py
Python
tests/test_constants.py
yveso/tyfbaf
f1b6bf33d275f20fad71a2d20b92665f88755361
[ "MIT" ]
null
null
null
tests/test_constants.py
yveso/tyfbaf
f1b6bf33d275f20fad71a2d20b92665f88755361
[ "MIT" ]
null
null
null
tests/test_constants.py
yveso/tyfbaf
f1b6bf33d275f20fad71a2d20b92665f88755361
[ "MIT" ]
null
null
null
import pytest from tyfbaf import constants @pytest.fixture def ugly_hack(): """Ugly hack to disable autouse fixture in conftest.py...""" constants.SERVER_NAME = "" def test_server_name_default(ugly_hack): assert constants.SERVER_NAME == "" def test_port_default(): assert constants.PORT == 6405 ...
19.206897
64
0.698384
import pytest from tyfbaf import constants @pytest.fixture def ugly_hack(): constants.SERVER_NAME = "" def test_server_name_default(ugly_hack): assert constants.SERVER_NAME == "" def test_port_default(): assert constants.PORT == 6405 def test_base_headers_default(): assert constants.BASE_HEADER...
true
true
f7635c2a8e6df9ab62a84561f7cb84ce9c69eaf8
26
py
Python
last_update.py
scristall/poe_gen_gwennen
6579424a382ecfb332c4f5aa48ba3b789e1d8079
[ "MIT" ]
null
null
null
last_update.py
scristall/poe_gen_gwennen
6579424a382ecfb332c4f5aa48ba3b789e1d8079
[ "MIT" ]
null
null
null
last_update.py
scristall/poe_gen_gwennen
6579424a382ecfb332c4f5aa48ba3b789e1d8079
[ "MIT" ]
null
null
null
time = "2021/11/22, 11:09"
26
26
0.615385
time = "2021/11/22, 11:09"
true
true
f7635c3d5e97641707f3b44ef184a2c1f8e76140
686
py
Python
qiskit/ignis/verification/accreditation/__init__.py
ikkoham/qiskit-ignis
f885a5990aab4ec4eedcf9c6d469f4d71c01382b
[ "Apache-2.0" ]
15
2020-06-29T08:33:39.000Z
2022-02-12T00:28:51.000Z
qiskit/ignis/verification/accreditation/__init__.py
ikkoham/qiskit-ignis
f885a5990aab4ec4eedcf9c6d469f4d71c01382b
[ "Apache-2.0" ]
4
2020-11-27T09:34:13.000Z
2021-04-30T21:13:41.000Z
qiskit/ignis/verification/accreditation/__init__.py
ikkoham/qiskit-ignis
f885a5990aab4ec4eedcf9c6d469f4d71c01382b
[ "Apache-2.0" ]
11
2020-06-29T08:40:24.000Z
2022-02-24T17:39:16.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2019, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
32.666667
77
0.772595
from .circuits import AccreditationCircuits from .fitters import AccreditationFitter from .qotp import QOTP, QOTPCorrectCounts
true
true
f7635cb02c105bb720d2e06fe726f545ea2ef8f7
13,273
py
Python
sparsednn/code_fragments.py
marsupialtail/gpu-sparsert
97540e4b03735463a52365eaa5c5217000b88413
[ "MIT" ]
12
2020-11-13T06:37:51.000Z
2022-03-03T06:07:24.000Z
sparsednn/code_fragments.py
marsupialtail/gpu-sparsert
97540e4b03735463a52365eaa5c5217000b88413
[ "MIT" ]
3
2020-10-13T16:18:42.000Z
2021-12-29T18:18:40.000Z
sparsednn/code_fragments.py
marsupialtail/gpu-sparsert
97540e4b03735463a52365eaa5c5217000b88413
[ "MIT" ]
5
2020-10-05T22:52:44.000Z
2022-03-03T06:07:25.000Z
START_CONV = """ #include <cnpy.h> #include <vector> #include <cuda.h> #include <iostream> #include <fstream> #include <stdio.h> #include <stdlib.h> #include <cmath> #include <cublas_v2.h> #include <time.h> #include <cuda_profiler_api.h> #include <cooperative_groups.h> #include <cudnn.h> #include <cassert> #include <...
23.285965
120
0.627816
START_CONV = """ #include <cnpy.h> #include <vector> #include <cuda.h> #include <iostream> #include <fstream> #include <stdio.h> #include <stdlib.h> #include <cmath> #include <cublas_v2.h> #include <time.h> #include <cuda_profiler_api.h> #include <cooperative_groups.h> #include <cudnn.h> #include <cassert> #include <...
true
true
f7635ebaad8d1c1e28183d192f9ba6df28c84e71
1,269
py
Python
tests/views.py
simpleenergy/django-rest-framework-nested-resource
254707b8e7b848c1154d8672f7e0006ef5c94642
[ "BSD-3-Clause" ]
5
2015-02-27T12:55:55.000Z
2017-06-30T06:40:34.000Z
tests/views.py
simpleenergy/django-rest-framework-nested-resource
254707b8e7b848c1154d8672f7e0006ef5c94642
[ "BSD-3-Clause" ]
null
null
null
tests/views.py
simpleenergy/django-rest-framework-nested-resource
254707b8e7b848c1154d8672f7e0006ef5c94642
[ "BSD-3-Clause" ]
6
2015-02-27T14:18:20.000Z
2018-11-30T19:02:00.000Z
from rest_framework import viewsets from drf_nested_resource.mixins import NestedResourceMixin from .models import ( TargetModel, ForeignKeySourceModel, ManyToManyTargetModel, ManyToManySourceModel, GenericForeignKeySourceModel, ) class NestedForeignKeySourceModelViewSet(NestedResourceMixin, vie...
27
85
0.687943
from rest_framework import viewsets from drf_nested_resource.mixins import NestedResourceMixin from .models import ( TargetModel, ForeignKeySourceModel, ManyToManyTargetModel, ManyToManySourceModel, GenericForeignKeySourceModel, ) class NestedForeignKeySourceModelViewSet(NestedResourceMixin, vie...
true
true
f7635f4533ff6fe628a818fe6c5cb22a67d8ed92
6,944
py
Python
third_party/fixup_resnet/fixup_resnet_imagenet.py
google-research/understanding-transfer-learning
0e4df444f342784514d91028d0de332103343a94
[ "Apache-2.0" ]
35
2020-11-10T18:50:20.000Z
2022-01-06T05:37:56.000Z
third_party/fixup_resnet/fixup_resnet_imagenet.py
MLC-CV/transfer-learning-understanding
0e4df444f342784514d91028d0de332103343a94
[ "Apache-2.0" ]
null
null
null
third_party/fixup_resnet/fixup_resnet_imagenet.py
MLC-CV/transfer-learning-understanding
0e4df444f342784514d91028d0de332103343a94
[ "Apache-2.0" ]
10
2020-11-17T01:22:07.000Z
2022-03-10T21:48:35.000Z
import torch import torch.nn as nn import numpy as np __all__ = ['FixupResNet', 'fixup_resnet18', 'fixup_resnet34', 'fixup_resnet50', 'fixup_resnet101', 'fixup_resnet152'] def conv3x3(in_planes, out_planes, stride=1): """3x3 convolution with padding""" return nn.Conv2d(in_planes, out_planes, kernel_size=3, ...
34.894472
164
0.611895
import torch import torch.nn as nn import numpy as np __all__ = ['FixupResNet', 'fixup_resnet18', 'fixup_resnet34', 'fixup_resnet50', 'fixup_resnet101', 'fixup_resnet152'] def conv3x3(in_planes, out_planes, stride=1): return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, pad...
true
true
f763603ab505000e7764a572cbcaa732d905be83
1,029
py
Python
setup.py
JourdanClark/nova-agent
cccea98bc5b55982352ab50d751907eb5465e675
[ "Apache-2.0" ]
null
null
null
setup.py
JourdanClark/nova-agent
cccea98bc5b55982352ab50d751907eb5465e675
[ "Apache-2.0" ]
null
null
null
setup.py
JourdanClark/nova-agent
cccea98bc5b55982352ab50d751907eb5465e675
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import setuptools import novaagent import sys requirements = ['netifaces', 'pyxs', 'pycrypto', 'PyYaml', 'distro'] if sys.version_info[:2] < (2, 7): requirements.append('argparse') test_requirements = ['mock', 'nose'] if sys.version_info[:2] < (2, 7): test_requirements.extend(['flake8...
22.369565
68
0.633625
import setuptools import novaagent import sys requirements = ['netifaces', 'pyxs', 'pycrypto', 'PyYaml', 'distro'] if sys.version_info[:2] < (2, 7): requirements.append('argparse') test_requirements = ['mock', 'nose'] if sys.version_info[:2] < (2, 7): test_requirements.extend(['flake8 < 3', 'unittest2']) e...
true
true
f7636193d4bfc27f38dab87dff51745017dc283e
13,729
py
Python
src/python/pants/backend/python/typecheck/mypy/subsystem.py
wonlay/pants
53c66503b6898e83c9c9596e56cde5ad9ed6a0d3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/typecheck/mypy/subsystem.py
wonlay/pants
53c66503b6898e83c9c9596e56cde5ad9ed6a0d3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/typecheck/mypy/subsystem.py
wonlay/pants
53c66503b6898e83c9c9596e56cde5ad9ed6a0d3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import itertools import logging from dataclasses import dataclass from typing import Iterable from pants.backend.python.goals import lockfile from pant...
37.717033
100
0.646515
from __future__ import annotations import itertools import logging from dataclasses import dataclass from typing import Iterable from pants.backend.python.goals import lockfile from pants.backend.python.goals.export import ExportPythonTool, ExportPythonToolSentinel from pants.backend.python.goals.lockfile import Gen...
true
true
f76361fcf068ba8c5aaf77e930edcf6ab7b3c971
8,423
py
Python
python/ccsdslib.py
nhaflinger/CCSDSlib
23bd332078c6c8a1a3e70bacdb9a81f0da9403a3
[ "MIT" ]
1
2021-06-10T13:14:27.000Z
2021-06-10T13:14:27.000Z
python/ccsdslib.py
nhaflinger/CCSDSlib
23bd332078c6c8a1a3e70bacdb9a81f0da9403a3
[ "MIT" ]
null
null
null
python/ccsdslib.py
nhaflinger/CCSDSlib
23bd332078c6c8a1a3e70bacdb9a81f0da9403a3
[ "MIT" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 4.0.2 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, 7, 0): raise...
37.105727
146
0.721952
from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, 7, 0): raise RuntimeError("Python 2.7 or later required") if __package__ or "." in __name__: from . import _ccsdslib else: import _ccsdslib try: import builtins as __builtin__ except ImportError: ...
true
true
f76365f4d478a1c69c728906b5baeb4cccbf9bea
10,381
py
Python
python_code/vnev/Lib/site-packages/wsproto/extensions.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
3
2020-03-31T10:36:31.000Z
2020-04-23T12:01:10.000Z
python_code/vnev/Lib/site-packages/wsproto/extensions.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
6
2020-09-05T01:40:23.000Z
2022-03-12T00:40:58.000Z
python_code/vnev/Lib/site-packages/wsproto/extensions.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
1
2020-07-09T23:13:13.000Z
2020-07-09T23:13:13.000Z
# -*- coding: utf-8 -*- """ wsproto/extensions ~~~~~~~~~~~~~~~~~~ WebSocket extensions. """ import zlib from typing import Optional, Tuple, Union from .frame_protocol import CloseReason, FrameDecoder, FrameProtocol, Opcode, RsvBits class Extension: name: str def enabled(self) -> bool: return False...
35.189831
85
0.636162
import zlib from typing import Optional, Tuple, Union from .frame_protocol import CloseReason, FrameDecoder, FrameProtocol, Opcode, RsvBits class Extension: name: str def enabled(self) -> bool: return False def offer(self) -> Union[bool, str]: pass def accept(self, offer: str) -> ...
true
true
f763664ab5006431a34a55071ef2eda9f21012ff
11,666
py
Python
src/ppopt/lp/lp_solver.py
KSechkar/pipette_opt
9226f7d1c7f2763bfcae32dbdf0df466b7badcd0
[ "MIT" ]
null
null
null
src/ppopt/lp/lp_solver.py
KSechkar/pipette_opt
9226f7d1c7f2763bfcae32dbdf0df466b7badcd0
[ "MIT" ]
null
null
null
src/ppopt/lp/lp_solver.py
KSechkar/pipette_opt
9226f7d1c7f2763bfcae32dbdf0df466b7badcd0
[ "MIT" ]
null
null
null
# LP SOLVER USING LINEAR PROGRAMMING # the tsp solver function is based on gurobi.github.io/modeling-examples/traveling_salesman/tsp.html # By Kirill Sechkar # v0.1.10, 30.5.21 from itertools import combinations,product # IMPORT GUROBI SOLVER (comment out if not using) import gurobipy as gp from gurobipy import GRB ...
37.152866
134
0.613321
from itertools import combinations,product import gurobipy as gp from gurobipy import GRB from ortools.linear_solver import pywraplp def tsp_lp_gurobi(D): env = gp.Env(empty=True) env.setParam('OutputFlag', 0) env.start() global nodes nodes = [] for i in range(0, len(D)):...
true
true
f7636689fff4fb8d0ee03fcf3c567a0cb73ba30f
7,838
py
Python
contrib/bitrpc/bitrpc.py
nitoneum/core
ba3e859e5f0ff800e4833b2795950e72d9f91b42
[ "MIT" ]
2
2021-04-27T00:38:34.000Z
2021-04-27T01:13:40.000Z
contrib/bitrpc/bitrpc.py
nitoneum/core
ba3e859e5f0ff800e4833b2795950e72d9f91b42
[ "MIT" ]
null
null
null
contrib/bitrpc/bitrpc.py
nitoneum/core
ba3e859e5f0ff800e4833b2795950e72d9f91b42
[ "MIT" ]
2
2021-04-27T01:14:27.000Z
2021-08-18T18:38:13.000Z
from jsonrpc import ServiceProxy import sys import string # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:8732") else: access = Ser...
24.116923
79
0.668283
from jsonrpc import ServiceProxy import sys import string rpcuser = "" rpcpass = "" if rpcpass == "": access = ServiceProxy("http://127.0.0.1:8732") else: access = ServiceProxy("http://"+rpcuser+":"+rpcpass+"@127.0.0.1:8732") cmd = sys.argv[1].lower() if cmd == "backupwallet": try: path = raw_input("Enter dest...
false
true
f763677c71683d3040b3a5e14284bb6da9bea35e
772
py
Python
glsl/test_runner.py
avr-aics-riken/SURFACE
6ca8622b8ead82806e85ad51508559faf1b4ed38
[ "BSD-2-Clause", "BSD-3-Clause" ]
10
2015-03-10T05:12:28.000Z
2021-01-13T04:01:41.000Z
glsl/test_runner.py
avr-aics-riken/SURFACE
6ca8622b8ead82806e85ad51508559faf1b4ed38
[ "BSD-2-Clause", "BSD-3-Clause" ]
4
2015-03-19T06:27:28.000Z
2017-03-15T03:38:34.000Z
glsl/test_runner.py
avr-aics-riken/SURFACE
6ca8622b8ead82806e85ad51508559faf1b4ed38
[ "BSD-2-Clause", "BSD-3-Clause" ]
2
2017-03-14T22:48:37.000Z
2021-02-19T09:46:38.000Z
#!/usr/bin/env python import os import glob import subprocess passed = [] failed = [] def execTest(testfile): cmd = "./glslc %s" % testfile ret = subprocess.call(cmd, shell=True) if ret: return False return True def stat(): global passed global failed n = len(passed) + le...
14.296296
57
0.53886
import os import glob import subprocess passed = [] failed = [] def execTest(testfile): cmd = "./glslc %s" % testfile ret = subprocess.call(cmd, shell=True) if ret: return False return True def stat(): global passed global failed n = len(passed) + len(failed) print("...
true
true
f763686074a6b2505b752507935a17f1695c48e7
10,653
py
Python
code/scorer.py
Lalala-xnk/Quasi-Attention-ABSA
1eb694e832bbf9687aed719bbcaa657baf0323d3
[ "MIT" ]
null
null
null
code/scorer.py
Lalala-xnk/Quasi-Attention-ABSA
1eb694e832bbf9687aed719bbcaa657baf0323d3
[ "MIT" ]
null
null
null
code/scorer.py
Lalala-xnk/Quasi-Attention-ABSA
1eb694e832bbf9687aed719bbcaa657baf0323d3
[ "MIT" ]
null
null
null
import pandas as pd from tqdm import tqdm from model.QACGBERT import * from util.tokenization import * from torch.utils.data import DataLoader, TensorDataset import random import warnings warnings.filterwarnings('ignore') context_id_map_fiqa = {'stock': 0, 'corporate': 1, ...
35.748322
120
0.623205
import pandas as pd from tqdm import tqdm from model.QACGBERT import * from util.tokenization import * from torch.utils.data import DataLoader, TensorDataset import random import warnings warnings.filterwarnings('ignore') context_id_map_fiqa = {'stock': 0, 'corporate': 1, ...
true
true
f76368613bdaaa7217e2476bba8e9bbed8c3d93f
3,507
py
Python
pysnmp/TRIP-TC-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/TRIP-TC-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/TRIP-TC-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module TRIP-TC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TRIP-TC-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:20:14 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 0...
70.14
493
0.771315
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.impo...
true
true
f763686ad831578ea917b3623bf09f7be3e6ba52
4,489
py
Python
lale/lib/lale/optimize_last.py
chiragsahni/lale
a04adcdc14f2e05b846ebd5767186b66fe20463f
[ "Apache-2.0" ]
null
null
null
lale/lib/lale/optimize_last.py
chiragsahni/lale
a04adcdc14f2e05b846ebd5767186b66fe20463f
[ "Apache-2.0" ]
null
null
null
lale/lib/lale/optimize_last.py
chiragsahni/lale
a04adcdc14f2e05b846ebd5767186b66fe20463f
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 IBM Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.836879
115
0.599243
import logging from typing import Any, Dict, Optional import lale.docstrings import lale.operators import lale.pretty_print from lale.lib.lale.optimize_suffix import OptimizeSuffix from ._common_schemas import schema_estimator logger = logging.getLogger(__name__) logger.setLevel(logging.ERROR) class _OptimizeLast...
true
true
f763688bfa3c1c097a0b23e79cde049fc2afdcc6
13,588
py
Python
modules/course_explorer/course_explorer_tests.py
dannielarriola/uai-coursebuilder
fbd440a8bfe1a928ac52985aea2949d5e91ad203
[ "Apache-2.0" ]
null
null
null
modules/course_explorer/course_explorer_tests.py
dannielarriola/uai-coursebuilder
fbd440a8bfe1a928ac52985aea2949d5e91ad203
[ "Apache-2.0" ]
27
2016-08-31T19:04:46.000Z
2016-09-29T00:22:32.000Z
modules/course_explorer/course_explorer_tests.py
dannielarriola/uai-coursebuilder
fbd440a8bfe1a928ac52985aea2949d5e91ad203
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
40.201183
79
0.665146
__author__ = 'rahulsingal@google.com (Rahul Singal)' from controllers import sites from models import config from models import courses from models import models from models import transforms from models.models import PersonalProfile from modules.course_explorer import course_explorer from modules.course_explorer i...
true
true
f763695e90f234746cfa051ff447f2c16b2660ac
3,173
py
Python
ontospy/ontodocs/viz/viz_d3dendogram.py
KGerring/Ontospy
337718d4abec5b390e5ff3caa76ab307e8b3674e
[ "MIT" ]
null
null
null
ontospy/ontodocs/viz/viz_d3dendogram.py
KGerring/Ontospy
337718d4abec5b390e5ff3caa76ab307e8b3674e
[ "MIT" ]
1
2022-02-14T11:34:16.000Z
2022-02-14T11:34:16.000Z
ontospy/ontodocs/viz/viz_d3dendogram.py
KGerring/Ontospy
337718d4abec5b390e5ff3caa76ab307e8b3674e
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: UTF-8 -*- # # # ================== # VIZ D3 Tree - a d3 dendogram # ================== import json import os import sys from ..builder import * # loads and sets up Django from ..utils import * from ..viz_factory import VizFactory class Dataviz(VizFactory): """ D3 viz ...
28.079646
86
0.533249
import json import os import sys from ..builder import * from ..utils import * from ..viz_factory import VizFactory class Dataviz(VizFactory): def __init__(self, ontospy_graph, title=""): super(Dataviz, self).__init__(ontospy_graph, title) self.static_files = ["libs/d3-v2", "libs/jquery"] ...
true
true
f763697c7ae4f65899df42e897d9c75b1b996dcc
1,030
py
Python
guessnumber.py
baskauf/github-practice
9c977e487bdf504978521305fa4ad6af8c30ccec
[ "MIT" ]
null
null
null
guessnumber.py
baskauf/github-practice
9c977e487bdf504978521305fa4ad6af8c30ccec
[ "MIT" ]
3
2019-10-09T16:38:55.000Z
2019-10-09T17:00:48.000Z
guessnumber.py
baskauf/github-practice
9c977e487bdf504978521305fa4ad6af8c30ccec
[ "MIT" ]
null
null
null
print('Would you like to play a game?') answer = input("Enter yes or no: ") if answer == "yes": print('wonderful!') elif answer == "no": print('too bad!') else: print("Please enter yes or no.") print("I'm thinking of a number between 1 and 100.") print("Do you think you can guess what it is?") print("I will...
28.611111
75
0.58835
print('Would you like to play a game?') answer = input("Enter yes or no: ") if answer == "yes": print('wonderful!') elif answer == "no": print('too bad!') else: print("Please enter yes or no.") print("I'm thinking of a number between 1 and 100.") print("Do you think you can guess what it is?") print("I will...
true
true
f76369dc3ace61a100264b7cf982c0c611c40366
480
py
Python
setup.py
gssbruno/pyxios
38b3977ff8c2a394e553d0d4477645f229cbb797
[ "MIT" ]
null
null
null
setup.py
gssbruno/pyxios
38b3977ff8c2a394e553d0d4477645f229cbb797
[ "MIT" ]
null
null
null
setup.py
gssbruno/pyxios
38b3977ff8c2a394e553d0d4477645f229cbb797
[ "MIT" ]
null
null
null
import setuptools with open('README.md', 'r', encoding='utf-8') as fh: long_description = fh.read() setuptools.setup( name='pyxios', version="1.0.2", author="Bruno Santos", author_email="b.g.santos@outlook.com", long_description=long_description, long_description_content_type="text/markdow...
26.666667
52
0.679167
import setuptools with open('README.md', 'r', encoding='utf-8') as fh: long_description = fh.read() setuptools.setup( name='pyxios', version="1.0.2", author="Bruno Santos", author_email="b.g.santos@outlook.com", long_description=long_description, long_description_content_type="text/markdow...
true
true
f7636aa5e2449d51e02d3ff7ff69d15869344e46
6,031
py
Python
cogs/seeunexttime.py
VasilisThePikachu/Private-Channel
ec293d6cd382370364e55986120f6030cbed3d99
[ "MIT" ]
null
null
null
cogs/seeunexttime.py
VasilisThePikachu/Private-Channel
ec293d6cd382370364e55986120f6030cbed3d99
[ "MIT" ]
1
2021-11-16T05:14:09.000Z
2021-11-16T06:45:23.000Z
cogs/seeunexttime.py
VasilisThePikachu/Private-Channel
ec293d6cd382370364e55986120f6030cbed3d99
[ "MIT" ]
1
2022-03-23T01:51:37.000Z
2022-03-23T01:51:37.000Z
# Required to use from discord.ext import commands import discord class DevOnly(commands.Cog): def __init__(self, client): self.client = client # Commands @commands.command() async def shutdown(self, ctx): if ctx.author.id == 322708417540259841: myembed = discord.Embed(ti...
81.5
119
0.24258
from discord.ext import commands import discord class DevOnly(commands.Cog): def __init__(self, client): self.client = client @commands.command() async def shutdown(self, ctx): if ctx.author.id == 322708417540259841: myembed = discord.Embed(title=":wave:", description='Se...
true
true
f7636ad07dab270865d5f584e0e6f5bd84b984d1
1,259
py
Python
check_links.py
amirshnll/rtbf.ir
4fb6992a6f0dbd8b8b4d4c3c62a5f7aa410d4e33
[ "Apache-2.0" ]
135
2021-06-03T20:26:40.000Z
2022-03-27T07:01:51.000Z
check_links.py
BlackIQ/rtbf.ir
b18c1e835d93ce3bea8db12f359809970eff3679
[ "Apache-2.0" ]
116
2021-06-24T11:18:58.000Z
2022-02-27T14:34:02.000Z
check_links.py
BlackIQ/rtbf.ir
b18c1e835d93ce3bea8db12f359809970eff3679
[ "Apache-2.0" ]
8
2021-07-05T05:19:44.000Z
2022-01-30T18:00:59.000Z
import json import logging import requests from urllib3.exceptions import InsecureRequestWarning from collections import Counter def check_links(url): """ Check links in a given url. """ requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning) try: response = requests.g...
23.754717
79
0.718824
import json import logging import requests from urllib3.exceptions import InsecureRequestWarning from collections import Counter def check_links(url): requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning) try: response = requests.get(url, verify=False) status = response....
true
true
f7636b31e2fe6e968fc68c39af07e55606772574
2,685
py
Python
tests/models/validators/v2_1_1/jsd_b68a6bd8473a9a25.py
wastorga/dnacentersdk
1a25aaef2eaa016fe54ebebbd7448919e0effa3f
[ "MIT" ]
null
null
null
tests/models/validators/v2_1_1/jsd_b68a6bd8473a9a25.py
wastorga/dnacentersdk
1a25aaef2eaa016fe54ebebbd7448919e0effa3f
[ "MIT" ]
null
null
null
tests/models/validators/v2_1_1/jsd_b68a6bd8473a9a25.py
wastorga/dnacentersdk
1a25aaef2eaa016fe54ebebbd7448919e0effa3f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Update HTTP write credentials data model. Copyright (c) 2019 Cisco and/or its affiliates. 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.964286
78
0.586592
from __future__ import ( absolute_import, division, print_function, unicode_literals, ) import fastjsonschema import json from dnacentersdk.exceptions import MalformedRequest from builtins import * class JSONSchemaValidatorB68A6Bd8473A9A25(object): def __init__(self): super(JSONSchemaV...
true
true