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
417k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
1 class
is_sharp_comment_removed
bool
1 class
1c29f7fa6b33f5b3f1c0bdf9d4aa509f3eb3a9a2
17,216
py
Python
lib/python2.7/site-packages/sklearn/linear_model/ransac.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
lib/python2.7/site-packages/sklearn/linear_model/ransac.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
lib/python2.7/site-packages/sklearn/linear_model/ransac.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
# coding: utf-8 # Author: Johannes Schönberger # # License: BSD 3 clause import numpy as np import warnings from ..base import BaseEstimator, MetaEstimatorMixin, RegressorMixin, clone from ..utils import check_random_state, check_array, check_consistent_length from ..utils.random import sample_without_replacement fr...
38.172949
81
0.613848
import numpy as np import warnings from ..base import BaseEstimator, MetaEstimatorMixin, RegressorMixin, clone from ..utils import check_random_state, check_array, check_consistent_length from ..utils.random import sample_without_replacement from ..utils.validation import check_is_fitted from .base import Linear...
true
true
1c29f80953de44cbaa05fa88d5dbd4cc8fa88e0f
181
py
Python
0-easy/hex-to-decimal/main.py
mpillar/codeeval
ad1fc5aea277575dcce6ad5db230d7a2bfe41eed
[ "Unlicense" ]
21
2015-02-09T18:41:15.000Z
2021-07-31T02:43:28.000Z
0-easy/hex-to-decimal/main.py
mpillar/codeeval
ad1fc5aea277575dcce6ad5db230d7a2bfe41eed
[ "Unlicense" ]
null
null
null
0-easy/hex-to-decimal/main.py
mpillar/codeeval
ad1fc5aea277575dcce6ad5db230d7a2bfe41eed
[ "Unlicense" ]
37
2015-01-06T06:20:17.000Z
2021-06-21T18:22:13.000Z
import sys test_cases = open(sys.argv[1], 'r') for test in test_cases: test = test.strip() if len(test) == 0: continue print(int(test, 16)) test_cases.close()
16.454545
35
0.61326
import sys test_cases = open(sys.argv[1], 'r') for test in test_cases: test = test.strip() if len(test) == 0: continue print(int(test, 16)) test_cases.close()
true
true
1c29f8204727648515a8adc54825a26ccad763ad
75,085
py
Python
src/kubernetes/client/apis/custom_objects_api.py
MarletteFunding/aws-kube-codesuite
ab4e5ce45416b83bffb947ab8d234df5437f4fca
[ "Apache-2.0" ]
184
2017-12-20T21:50:06.000Z
2022-03-19T13:24:58.000Z
src/kubernetes/client/apis/custom_objects_api.py
MarletteFunding/aws-kube-codesuite
ab4e5ce45416b83bffb947ab8d234df5437f4fca
[ "Apache-2.0" ]
15
2018-01-17T17:30:51.000Z
2021-12-16T14:25:09.000Z
src/kubernetes/client/apis/custom_objects_api.py
MarletteFunding/aws-kube-codesuite
ab4e5ce45416b83bffb947ab8d234df5437f4fca
[ "Apache-2.0" ]
136
2018-01-09T22:52:06.000Z
2022-02-24T13:26:18.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os im...
53.365316
457
0.618326
from __future__ import absolute_import import sys import os import re from six import iteritems from ..configuration import Configuration from ..api_client import ApiClient class CustomObjectsApi(object): def __init__(self, api_client=None): config = Configuration() if api_client: ...
true
true
1c29f860bb7628c88ac43945ae3d49f7748e2f38
1,185
py
Python
rebuild_tool/pkg_source_plugins/koji.py
mcyprian/deps_visualization
064b36d49ce0b19b244d8853550bca1533ac8bea
[ "MIT" ]
2
2016-01-22T11:08:06.000Z
2016-06-02T13:11:41.000Z
rebuild_tool/pkg_source_plugins/koji.py
mcyprian/sclbuilder
064b36d49ce0b19b244d8853550bca1533ac8bea
[ "MIT" ]
null
null
null
rebuild_tool/pkg_source_plugins/koji.py
mcyprian/sclbuilder
064b36d49ce0b19b244d8853550bca1533ac8bea
[ "MIT" ]
null
null
null
from collections import UserDict from rebuild_tool.pkg_source import set_class_attrs from rebuild_tool.pkg_source_plugins.dnf import DnfArchive from rebuild_tool.utils import ChangeDir, subprocess_popen_call from rebuild_tool.exceptions import DownloadFailException class PkgsContainer(UserDict): @set_class_attrs ...
34.852941
85
0.607595
from collections import UserDict from rebuild_tool.pkg_source import set_class_attrs from rebuild_tool.pkg_source_plugins.dnf import DnfArchive from rebuild_tool.utils import ChangeDir, subprocess_popen_call from rebuild_tool.exceptions import DownloadFailException class PkgsContainer(UserDict): @set_class_attrs ...
true
true
1c29f9396e9318272bc0071e6b26f44794a03282
10,471
py
Python
pirates/effects/RavenFlock.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/effects/RavenFlock.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/effects/RavenFlock.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from direct.particles import ParticleEffect from direct.particles import Particles from direct.particles import ForceGroup from EffectController import EffectController from PooledEffect import PooledEffect from pirates.piratesgui.GameOption...
48.253456
295
0.681788
from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from direct.particles import ParticleEffect from direct.particles import Particles from direct.particles import ForceGroup from EffectController import EffectController from PooledEffect import PooledEffect from pirates.piratesgui.GameOption...
true
true
1c29f9c284aec06036bcbaf940a869c103112745
12,749
py
Python
src/cogs/loops/timeline.py
StephanAkkerman/FinTwit_Bot
9f03ccc0edd02723e170f0e01e6edbe2bf14bc1f
[ "MIT" ]
null
null
null
src/cogs/loops/timeline.py
StephanAkkerman/FinTwit_Bot
9f03ccc0edd02723e170f0e01e6edbe2bf14bc1f
[ "MIT" ]
103
2021-12-16T15:00:53.000Z
2022-03-31T18:13:53.000Z
src/cogs/loops/timeline.py
StephanAkkerman/FinTwit_Bot
9f03ccc0edd02723e170f0e01e6edbe2bf14bc1f
[ "MIT" ]
1
2022-03-19T15:29:11.000Z
2022-03-19T15:29:11.000Z
##> Imports # > Standard libraries from __future__ import annotations import asyncio from typing import List import datetime import traceback # > 3rd Party Dependencies from tweepy.asynchronous import AsyncStream # > Discord dependencies import discord from discord.ext import commands from discord.ext.tasks import lo...
31.401478
105
0.563417
uture__ import annotations import asyncio from typing import List import datetime import traceback from tweepy.asynchronous import AsyncStream import discord from discord.ext import commands from discord.ext.tasks import loop from util.vars import ( config, consumer_key, consumer_secret, access_to...
true
true
1c29fadc085b465373443644c953b7cff17af96a
1,175
py
Python
examples/boilerplates/base_test_case.py
aoruilin/SeleniumBase
304fd7a23661ebf561da47d4cd8f7365dba519ca
[ "MIT" ]
1
2020-01-18T18:18:33.000Z
2020-01-18T18:18:33.000Z
examples/boilerplates/base_test_case.py
aoruilin/SeleniumBase
304fd7a23661ebf561da47d4cd8f7365dba519ca
[ "MIT" ]
3
2021-03-31T19:32:57.000Z
2021-12-13T20:33:50.000Z
examples/boilerplates/base_test_case.py
aoruilin/SeleniumBase
304fd7a23661ebf561da47d4cd8f7365dba519ca
[ "MIT" ]
null
null
null
''' You can use this as a boilerplate for your test framework. Define your customized library methods in a master class like this. Then have all your test classes inherit it. BaseTestCase will inherit SeleniumBase methods from BaseCase. ''' from seleniumbase import BaseCase class BaseTestCase(BaseCase): def set...
26.704545
78
0.668085
from seleniumbase import BaseCase class BaseTestCase(BaseCase): def setUp(self): super(BaseTestCase, self).setUp() def tearDown(self): self.save_teardown_screenshot() super(BaseTestCase, self).tearDown() def login(self): pass...
true
true
1c29faf41b0588bf4f95e68a438cb688e2285500
3,447
py
Python
pyrf/_graveyard/randomize.py
WildMeOrg/wbia-tpl-pyrf
3295c36c98f42f51264194efdb241ba9c8b29c5d
[ "Apache-2.0" ]
null
null
null
pyrf/_graveyard/randomize.py
WildMeOrg/wbia-tpl-pyrf
3295c36c98f42f51264194efdb241ba9c8b29c5d
[ "Apache-2.0" ]
1
2020-06-25T05:33:46.000Z
2020-06-25T05:33:46.000Z
pyrf/_graveyard/randomize.py
WildbookOrg/wbia-tpl-pyrf
3295c36c98f42f51264194efdb241ba9c8b29c5d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import random from collections import defaultdict import xml.etree.ElementTree as xml # want to map a the filename -> all the animals present in the image def parse_annotations(direct): all_files = [ f for f in os.listdir(direct) if os.path.isfile(os.path....
36.284211
90
0.543081
import os import random from collections import defaultdict import xml.etree.ElementTree as xml def parse_annotations(direct): all_files = [ f for f in os.listdir(direct) if os.path.isfile(os.path.join(direct, f)) and f.lower().endswith('.xml') ] filenames = defaultdict(list) ...
true
true
1c29fafc7779d6bacc8fcb3346fcd8458f4c7378
4,185
py
Python
myapp/handlerz/postpage.py
GreenGiraffe1/ND_multi-user-blog
2e04e8caddda60a142ac5e5ed97380fd419b988b
[ "MIT" ]
1
2020-07-15T19:48:00.000Z
2020-07-15T19:48:00.000Z
myapp/handlerz/postpage.py
GreenGiraffe1/ND_multi-user-blog
2e04e8caddda60a142ac5e5ed97380fd419b988b
[ "MIT" ]
null
null
null
myapp/handlerz/postpage.py
GreenGiraffe1/ND_multi-user-blog
2e04e8caddda60a142ac5e5ed97380fd419b988b
[ "MIT" ]
1
2019-03-25T02:44:19.000Z
2019-03-25T02:44:19.000Z
from handlerparent import Handler from google.appengine.ext import db from time import sleep from myapp.modelz import Post, Comment, Likez from myapp.functions.decorators import user_logged_in, post_exists class PostPage(Handler): """Display individual posts with corresponding comments & 'Likes'.""" @post_e...
44.052632
78
0.645639
from handlerparent import Handler from google.appengine.ext import db from time import sleep from myapp.modelz import Post, Comment, Likez from myapp.functions.decorators import user_logged_in, post_exists class PostPage(Handler): @post_exists def get(self, post_id): key = db.Key.from_path(...
true
true
1c29fbb811c49993249ffe833f785baaf72db3c2
746
py
Python
ml2/data/encoder/encoder.py
reactive-systems/ml2
c5ecaf07816b48a76ce4f7a3255fcf3baa78fd5c
[ "MIT" ]
2
2021-06-30T14:00:11.000Z
2022-02-02T14:12:26.000Z
ml2/data/encoder/encoder.py
reactive-systems/ml2
c5ecaf07816b48a76ce4f7a3255fcf3baa78fd5c
[ "MIT" ]
null
null
null
ml2/data/encoder/encoder.py
reactive-systems/ml2
c5ecaf07816b48a76ce4f7a3255fcf3baa78fd5c
[ "MIT" ]
1
2021-07-01T13:38:33.000Z
2021-07-01T13:38:33.000Z
"""Abstract encoder class""" START_TOKEN = '<s>' EOS_TOKEN = '<e>' PAD_TOKEN = '<p>' class Encoder(): def __init__(self): self.tokens = None self.ids = None self.error = None def tokenize(self): raise NotImplementedError def detokenize(self): raise NotImplemente...
19.631579
42
0.651475
START_TOKEN = '<s>' EOS_TOKEN = '<e>' PAD_TOKEN = '<p>' class Encoder(): def __init__(self): self.tokens = None self.ids = None self.error = None def tokenize(self): raise NotImplementedError def detokenize(self): raise NotImplementedError def encode(self, ...
true
true
1c29fd00b41fbee8665ef18532564efaa580753d
1,274
py
Python
Desafios/desafio-102.py
marielitonmb/Curso-Python3
26215c47c4d1eadf940b8024305b7e9ff600883b
[ "MIT" ]
null
null
null
Desafios/desafio-102.py
marielitonmb/Curso-Python3
26215c47c4d1eadf940b8024305b7e9ff600883b
[ "MIT" ]
null
null
null
Desafios/desafio-102.py
marielitonmb/Curso-Python3
26215c47c4d1eadf940b8024305b7e9ff600883b
[ "MIT" ]
null
null
null
# Aula 21 - Desafio 102: Funçao para fatorial # Criar uma funçao chamada fatorial() que receba dois paramentros. # O primeiro indica o numero a ser calculado e o outro chamado 'show', # sera o valor logico (opcional) indicando se sera mostrado ou nao # na tela o processo de calculo do fatorial. # Obs: adicionar um docs...
26
72
0.535322
def fatorial(num=1, show=False): from math import factorial if show: c = num f = 1 print(f'{num}! = ', end='') while c > 0: print(f'{c} ', end='') print('x ' if c > 1 else '= ', end='') f *= c c -= 1 print(f) else...
true
true
1c29fd2ceeda5d4ff922011276416266a0bb90a4
15,478
py
Python
cvxpy/expressions/leaf.py
TShimko126/cvxpy
8b89b3f8ef7daba1db39f5029e4902f06c75b29f
[ "ECL-2.0", "Apache-2.0" ]
2
2021-09-24T12:59:45.000Z
2021-09-24T13:00:08.000Z
cvxpy/expressions/leaf.py
TShimko126/cvxpy
8b89b3f8ef7daba1db39f5029e4902f06c75b29f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cvxpy/expressions/leaf.py
TShimko126/cvxpy
8b89b3f8ef7daba1db39f5029e4902f06c75b29f
[ "ECL-2.0", "Apache-2.0" ]
1
2021-09-24T13:00:18.000Z
2021-09-24T13:00:18.000Z
""" Copyright 2013 Steven Diamond 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, software...
34.092511
93
0.544321
import abc from cvxpy.expressions import expression from cvxpy.settings import (GENERAL_PROJECTION_TOL, PSD_NSD_PROJECTION_TOL, SPARSE_PROJECTION_TOL) import cvxpy.interface as intf import numbers import numpy as np import numpy.linalg as LA import scipy.sparse a...
true
true
1c2a00b02cb6e9ad496b1687f8ec33fc59c90b4d
1,167
py
Python
grr/server/grr_response_server/base_stats_server_test.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
4,238
2015-01-01T15:34:50.000Z
2022-03-31T08:18:05.000Z
grr/server/grr_response_server/base_stats_server_test.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
787
2015-01-02T21:34:24.000Z
2022-03-02T13:26:38.000Z
grr/server/grr_response_server/base_stats_server_test.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
856
2015-01-02T02:50:11.000Z
2022-03-31T11:11:53.000Z
#!/usr/bin/env python """Abstract base test for serving statistics.""" import abc import portpicker import requests from grr_response_server import base_stats_server class StatsServerTestMixin(metaclass=abc.ABCMeta): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.server = No...
26.522727
73
0.722365
import abc import portpicker import requests from grr_response_server import base_stats_server class StatsServerTestMixin(metaclass=abc.ABCMeta): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.server = None def setUp(self): super().setUp() self.server = self.setU...
true
true
1c2a00b14fa6018a4a0d158a11cc10a3773e74e9
9,984
py
Python
docs/conf.py
kamalksaha/qiskit
c089d2116c317aec8f9ac9bc36725c5a45b1da97
[ "Apache-2.0" ]
null
null
null
docs/conf.py
kamalksaha/qiskit
c089d2116c317aec8f9ac9bc36725c5a45b1da97
[ "Apache-2.0" ]
null
null
null
docs/conf.py
kamalksaha/qiskit
c089d2116c317aec8f9ac9bc36725c5a45b1da97
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2018. # # 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 modif...
33.72973
89
0.667268
import os import sys sys.path.insert(0, os.path.abspath('.')) import sphinx_rtd_theme from distutils import dir_util import os import re import shutil import subprocess import sys import tempfile import warnings project = 'Qiskit' copyright = '2020, Qiskit Development Team' author = 'Qisk...
true
true
1c2a01449d9b30cb50846dbf9c962002bc84f4fc
3,469
py
Python
doc/conf.py
DaveBerkeley/openFPGALoader
ed4d8398ac58cc0bb7b97571390f8ee86a973fba
[ "Apache-2.0" ]
null
null
null
doc/conf.py
DaveBerkeley/openFPGALoader
ed4d8398ac58cc0bb7b97571390f8ee86a973fba
[ "Apache-2.0" ]
null
null
null
doc/conf.py
DaveBerkeley/openFPGALoader
ed4d8398ac58cc0bb7b97571390f8ee86a973fba
[ "Apache-2.0" ]
1
2022-02-05T20:05:01.000Z
2022-02-05T20:05:01.000Z
# -*- coding: utf-8 -*- from sys import path as sys_path from os.path import abspath from pathlib import Path from json import loads ROOT = Path(__file__).resolve().parent sys_path.insert(0, abspath(".")) from data import ( ReadBoardDataFromYAML, BoardDataToTable, ReadFPGADataFromYAML, FPGADataToT...
27.975806
124
0.617181
from sys import path as sys_path from os.path import abspath from pathlib import Path from json import loads ROOT = Path(__file__).resolve().parent sys_path.insert(0, abspath(".")) from data import ( ReadBoardDataFromYAML, BoardDataToTable, ReadFPGADataFromYAML, FPGADataToTable ) extensions = ...
true
true
1c2a015d78897acf4d489eb1a2d3c74e2ee9f069
2,504
py
Python
neural_caissa/board/state.py
glhuilli/neural_caissa
f9620320795095d73e9288d44e50c6e32b37f01b
[ "MIT" ]
1
2020-11-30T19:04:29.000Z
2020-11-30T19:04:29.000Z
neural_caissa/board/state.py
glhuilli/neural_caissa
f9620320795095d73e9288d44e50c6e32b37f01b
[ "MIT" ]
null
null
null
neural_caissa/board/state.py
glhuilli/neural_caissa
f9620320795095d73e9288d44e50c6e32b37f01b
[ "MIT" ]
null
null
null
import chess import numpy as np from neural_caissa.ply.valuators.baseline_valuator import BaselineValuator from neural_caissa.ply.valuators.neural_valuator import NeuralValuator _BOARD_DIM = 8 _POSITIONS = 64 _PIECES = 'PNBRQKpnbrqk' _VALUATORS = {'BaselineValuator': BaselineValuator, 'NeuralValuator': NeuralValuator...
36.289855
85
0.608626
import chess import numpy as np from neural_caissa.ply.valuators.baseline_valuator import BaselineValuator from neural_caissa.ply.valuators.neural_valuator import NeuralValuator _BOARD_DIM = 8 _POSITIONS = 64 _PIECES = 'PNBRQKpnbrqk' _VALUATORS = {'BaselineValuator': BaselineValuator, 'NeuralValuator': NeuralValuator...
true
true
1c2a0223ff99685ed7a3ad96b5342dea7c727207
454
py
Python
src/images/training_images/clean.py
Blackphantom96/Captcha-With-Neuronal-Network
3c4a119cb4df999011760caaa8f8271027de4897
[ "MIT" ]
null
null
null
src/images/training_images/clean.py
Blackphantom96/Captcha-With-Neuronal-Network
3c4a119cb4df999011760caaa8f8271027de4897
[ "MIT" ]
null
null
null
src/images/training_images/clean.py
Blackphantom96/Captcha-With-Neuronal-Network
3c4a119cb4df999011760caaa8f8271027de4897
[ "MIT" ]
null
null
null
from sys import stdin hashes = dict() reps = [] def main(): x = stdin.readline().strip() while len(x) != 0: a, b = [i for i in x.split()] n = hashes.get(a, []) n.append(b) hashes[a] = n x = stdin.readline().strip() for a, b in hashes.items(): assert isinst...
17.461538
37
0.471366
from sys import stdin hashes = dict() reps = [] def main(): x = stdin.readline().strip() while len(x) != 0: a, b = [i for i in x.split()] n = hashes.get(a, []) n.append(b) hashes[a] = n x = stdin.readline().strip() for a, b in hashes.items(): assert isinst...
true
true
1c2a02b124d89ad97685da03ef472f0146538116
2,999
py
Python
Pyrado/scripts/sandbox/sb_model_learning.py
KhanhThiVo/SimuRLacra
fdeaf2059c2ed80ea696f018c29290510b5c4cb9
[ "DOC", "Zlib", "BSD-3-Clause" ]
null
null
null
Pyrado/scripts/sandbox/sb_model_learning.py
KhanhThiVo/SimuRLacra
fdeaf2059c2ed80ea696f018c29290510b5c4cb9
[ "DOC", "Zlib", "BSD-3-Clause" ]
null
null
null
Pyrado/scripts/sandbox/sb_model_learning.py
KhanhThiVo/SimuRLacra
fdeaf2059c2ed80ea696f018c29290510b5c4cb9
[ "DOC", "Zlib", "BSD-3-Clause" ]
1
2020-11-24T15:25:26.000Z
2020-11-24T15:25:26.000Z
# Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and # Technical University of Darmstadt. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source ...
48.370968
117
0.761587
from pyrado.environments.pysim.one_mass_oscillator import OneMassOscillatorSim, OneMassOscillatorDomainParamEstimator from pyrado.policies.special.dummy import DummyPolicy from pyrado.sampling.parallel_rollout_sampler import ParallelRolloutSampler from pyrado.utils.input_output import print_...
true
true
1c2a02f1b3096641c5efcafcd493401dbe62ecf8
21
py
Python
aliyun-python-sdk-push/aliyunsdkpush/__init__.py
xiaozhao1/aliyun-openapi-python-sdk
7297b69619fbe18a053ce552df9ab378b7c5719f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-push/aliyunsdkpush/__init__.py
xiaozhao1/aliyun-openapi-python-sdk
7297b69619fbe18a053ce552df9ab378b7c5719f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-push/aliyunsdkpush/__init__.py
xiaozhao1/aliyun-openapi-python-sdk
7297b69619fbe18a053ce552df9ab378b7c5719f
[ "Apache-2.0" ]
1
2021-01-26T05:01:42.000Z
2021-01-26T05:01:42.000Z
__version__ = "3.9.0"
21
21
0.666667
__version__ = "3.9.0"
true
true
1c2a035ea1383da95ee4cdf799d5fc7aaf5d3e54
25,812
py
Python
idaes/generic_models/unit_models/heat_exchanger.py
dangunter/idaes-pse
8f63b4ad8000af8a3eb0316a5f61c32e206925d0
[ "RSA-MD" ]
null
null
null
idaes/generic_models/unit_models/heat_exchanger.py
dangunter/idaes-pse
8f63b4ad8000af8a3eb0316a5f61c32e206925d0
[ "RSA-MD" ]
null
null
null
idaes/generic_models/unit_models/heat_exchanger.py
dangunter/idaes-pse
8f63b4ad8000af8a3eb0316a5f61c32e206925d0
[ "RSA-MD" ]
null
null
null
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
41.365385
91
0.566481
true
true
1c2a037e9042a02da325356d8f57369b6198c949
1,440
py
Python
plotting/silly_normal_for_fun.py
TomekFraczek/DrivenCorticalSheet
53c010a6c851fbc85eb822409e986d08722b7330
[ "MIT" ]
1
2021-11-30T06:02:08.000Z
2021-11-30T06:02:08.000Z
plotting/silly_normal_for_fun.py
TomekFraczek/DrivenCorticalSheet
53c010a6c851fbc85eb822409e986d08722b7330
[ "MIT" ]
null
null
null
plotting/silly_normal_for_fun.py
TomekFraczek/DrivenCorticalSheet
53c010a6c851fbc85eb822409e986d08722b7330
[ "MIT" ]
null
null
null
import numpy as np """ not used but i'm leaving here to show what a goofy workaround using rng.choice incalc a gaussian and ***not*** feeding into choice but whatever """ def normal_dist(obj, kernel, distance:float = 3/2, resolution:int = 1e6, #1mln samples para...
29.387755
69
0.509722
import numpy as np def normal_dist(obj, kernel, distance:float = 3/2, resolution:int = 1e6, params:dict = {'a': 1/7, 'b': 0, 'c': 1/2, }, )->np.ndarray: ...
true
true
1c2a051c825c219bf7fb054cf22fc99f2fd46906
769
py
Python
savecode/threeyears/idownclient/clientdatafeedback/scoutdatafeedback/portinfo/ftp.py
Octoberr/swm0920
8f05a6b91fc205960edd57f9076facec04f49a1a
[ "Apache-2.0" ]
2
2019-05-19T11:54:26.000Z
2019-05-19T12:03:49.000Z
savecode/threeyears/idownclient/clientdatafeedback/scoutdatafeedback/portinfo/ftp.py
Octoberr/swm0920
8f05a6b91fc205960edd57f9076facec04f49a1a
[ "Apache-2.0" ]
1
2020-11-27T07:55:15.000Z
2020-11-27T07:55:15.000Z
savecode/threeyears/idownclient/clientdatafeedback/scoutdatafeedback/portinfo/ftp.py
Octoberr/swm0920
8f05a6b91fc205960edd57f9076facec04f49a1a
[ "Apache-2.0" ]
2
2019-01-17T15:01:28.000Z
2019-09-20T09:32:17.000Z
""" An port of ftp info """ import json class FTP: def __init__(self): self.banner = None self.auth_tls = None def build_banner(self) -> str: """ build banner string """ banner = '' if self.banner is not None: banner += self.banner ...
21.971429
47
0.518856
import json class FTP: def __init__(self): self.banner = None self.auth_tls = None def build_banner(self) -> str: banner = '' if self.banner is not None: banner += self.banner if self.auth_tls is not None: banner += self.auth_tls if no...
true
true
1c2a05c8d37a3c2e6c961fc2175ef81878f49f36
4,731
py
Python
trojai/test/modelgen/test_objeq.py
C0ldstudy/trojai
10ac6c719f367a569a48b19e7ef18cf90df3a310
[ "Apache-2.0" ]
59
2019-07-11T02:33:38.000Z
2022-02-02T01:51:29.000Z
trojai/test/modelgen/test_objeq.py
C0ldstudy/trojai
10ac6c719f367a569a48b19e7ef18cf90df3a310
[ "Apache-2.0" ]
4
2020-04-13T03:48:32.000Z
2021-09-11T05:13:57.000Z
trojai/test/modelgen/test_objeq.py
C0ldstudy/trojai
10ac6c719f367a569a48b19e7ef18cf90df3a310
[ "Apache-2.0" ]
19
2019-09-17T21:09:06.000Z
2022-03-31T17:55:18.000Z
import unittest """ Test custom __eq__ implementations """ import mock import trojai.modelgen.architecture_factory as tpm_af import trojai.modelgen.data_manager as tpmdm import trojai.modelgen.architectures.mnist_architectures as tpma class LeNetArchFactory(tpm_af.ArchitectureFactory): def new_architecture(self...
45.932039
106
0.655041
import unittest import mock import trojai.modelgen.architecture_factory as tpm_af import trojai.modelgen.data_manager as tpmdm import trojai.modelgen.architectures.mnist_architectures as tpma class LeNetArchFactory(tpm_af.ArchitectureFactory): def new_architecture(self): return tpma.ModdedLeNet5Net(chan...
true
true
1c2a06a6d9f44ce7b78b95be4733afadc2123862
4,871
py
Python
wavefront_api_client/models/response_container_list_service_account.py
httpsgithu/python-client
f85a530367cdabe458a11919ad35609b9bc0606b
[ "Apache-2.0" ]
null
null
null
wavefront_api_client/models/response_container_list_service_account.py
httpsgithu/python-client
f85a530367cdabe458a11919ad35609b9bc0606b
[ "Apache-2.0" ]
null
null
null
wavefront_api_client/models/response_container_list_service_account.py
httpsgithu/python-client
f85a530367cdabe458a11919ad35609b9bc0606b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Wavefront REST API Documentation <p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the W...
32.258278
409
0.618764
import pprint import re import six from wavefront_api_client.configuration import Configuration class ResponseContainerListServiceAccount(object): swagger_types = { 'response': 'list[ServiceAccount]', 'status': 'ResponseStatus' } attribute_map = { 'response': 'response', ...
true
true
1c2a09853855265f7dee755f163a430ff190c8dc
116
py
Python
src/app/forms/__init__.py
schwetzen/liblr
408235a4f539a05f54f0376dbf9dbcd83957db03
[ "Apache-2.0" ]
null
null
null
src/app/forms/__init__.py
schwetzen/liblr
408235a4f539a05f54f0376dbf9dbcd83957db03
[ "Apache-2.0" ]
1
2018-12-07T22:15:28.000Z
2018-12-07T22:15:28.000Z
src/app/forms/__init__.py
schwetzen/liblr
408235a4f539a05f54f0376dbf9dbcd83957db03
[ "Apache-2.0" ]
2
2018-12-07T20:59:53.000Z
2018-12-17T21:02:21.000Z
from app.forms.auth import RegisterForm from app.forms.readingtip import ReadingTipCreateForm, ReadingTipUpdateForm
38.666667
75
0.87931
from app.forms.auth import RegisterForm from app.forms.readingtip import ReadingTipCreateForm, ReadingTipUpdateForm
true
true
1c2a098ae257aef32e197a3f0255867d45959e43
8,872
py
Python
test/unit/model/v2/test_driver_section.py
kunstkomputer/molecule
3eea75f2e85efa649eda235b1f42b115e99b1a97
[ "MIT" ]
null
null
null
test/unit/model/v2/test_driver_section.py
kunstkomputer/molecule
3eea75f2e85efa649eda235b1f42b115e99b1a97
[ "MIT" ]
null
null
null
test/unit/model/v2/test_driver_section.py
kunstkomputer/molecule
3eea75f2e85efa649eda235b1f42b115e99b1a97
[ "MIT" ]
null
null
null
# Copyright (c) 2015-2017 Cisco Systems, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge...
24.04336
79
0.574955
import pytest from molecule.model import schema_v2 @pytest.fixture def _model_driver_section_data(): return { 'driver': { 'name': 'docker', 'provider': { 'name': None, }, 'options': { 'managed': True, ...
true
true
1c2a09f9ed90914d677b27930a251da4852d6185
3,317
py
Python
faceRecognition/FaceRecognition2.py
thisKK/-arcfaceV1-retinaface-
b9cd772f4145908ab4517622b2c64d0dbcad02f5
[ "MIT" ]
2
2021-11-24T06:59:24.000Z
2021-11-24T15:01:16.000Z
faceRecognition/FaceRecognition2.py
thisKK/-arcfaceV1-retinaface-
b9cd772f4145908ab4517622b2c64d0dbcad02f5
[ "MIT" ]
null
null
null
faceRecognition/FaceRecognition2.py
thisKK/-arcfaceV1-retinaface-
b9cd772f4145908ab4517622b2c64d0dbcad02f5
[ "MIT" ]
null
null
null
import cv2 import numpy as np from faceDetection import RetinaFace import dlib import time import pickle # ---------- load face landmark predictor -------------------------- sp = dlib.shape_predictor('../facialLandmarks/shape_predictor_68_face_landmarks.dat') # ---------- load resnet model for recognition ----------...
46.069444
154
0.51432
import cv2 import numpy as np from faceDetection import RetinaFace import dlib import time import pickle sp = dlib.shape_predictor('../facialLandmarks/shape_predictor_68_face_landmarks.dat') model = dlib.face_recognition_model_v1('../faceRecognition/dlib_face_recognition_resnet_model_v1.dat') FACE_DESC, FACE_NAME...
true
true
1c2a0a559d127bdcca39a97038ae89ca6ab13fe2
3,454
py
Python
game_server/settings.py
Abdelrhman-Yasser/Risk-Game
db76437a01bbda984ce712629121dbf17dceb848
[ "MIT" ]
1
2020-12-22T07:16:00.000Z
2020-12-22T07:16:00.000Z
game_server/settings.py
Abdelrhman-Yasser/Risk-Game
db76437a01bbda984ce712629121dbf17dceb848
[ "MIT" ]
null
null
null
game_server/settings.py
Abdelrhman-Yasser/Risk-Game
db76437a01bbda984ce712629121dbf17dceb848
[ "MIT" ]
1
2019-02-21T13:21:45.000Z
2019-02-21T13:21:45.000Z
""" Django settings for game_server project. Generated by 'django-admin startproject' using Django 2.1.3. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import o...
26.166667
91
0.693688
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = '%7#$4_5650&8!o$hsn4+p14_czd^*)yfbn78)*o-z0g4v^&gvu' DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.content...
true
true
1c2a0a6537dd16c37226374238151d28e744489b
1,404
py
Python
model/views.py
antoniosequeira/rest_api
147d0cc3eb0ef0d4eedc9e4bc7f32885a0a2c4a3
[ "MIT" ]
null
null
null
model/views.py
antoniosequeira/rest_api
147d0cc3eb0ef0d4eedc9e4bc7f32885a0a2c4a3
[ "MIT" ]
null
null
null
model/views.py
antoniosequeira/rest_api
147d0cc3eb0ef0d4eedc9e4bc7f32885a0a2c4a3
[ "MIT" ]
null
null
null
from rest_framework import status from rest_framework.parsers import FileUploadParser from rest_framework.response import Response from rest_framework.views import APIView from rest_framework.permissions import IsAuthenticated, AllowAny from django.http import FileResponse from .serializers import FileSeriali...
29.25
72
0.65812
from rest_framework import status from rest_framework.parsers import FileUploadParser from rest_framework.response import Response from rest_framework.views import APIView from rest_framework.permissions import IsAuthenticated, AllowAny from django.http import FileResponse from .serializers import FileSeriali...
true
true
1c2a0b47a4b4f7b49d9a16097cc34aba5c0f1f40
796
py
Python
Python/Django/test2/test2/urls.py
LaoMuJi/Python1
c542f8eb1114fe24359b91c9cb2e0848b9110435
[ "bzip2-1.0.6" ]
null
null
null
Python/Django/test2/test2/urls.py
LaoMuJi/Python1
c542f8eb1114fe24359b91c9cb2e0848b9110435
[ "bzip2-1.0.6" ]
null
null
null
Python/Django/test2/test2/urls.py
LaoMuJi/Python1
c542f8eb1114fe24359b91c9cb2e0848b9110435
[ "bzip2-1.0.6" ]
null
null
null
"""test2 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based...
34.608696
77
0.697236
from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^', include('booktest.urls')), ]
true
true
1c2a0c57048fac4d40450acca970d5647221b155
3,575
py
Python
mac/google-cloud-sdk/lib/third_party/kubernetes/client/models/v1_exec_action.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
mac/google-cloud-sdk/lib/third_party/kubernetes/client/models/v1_exec_action.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
11
2020-02-29T02:51:12.000Z
2022-03-30T23:20:08.000Z
mac/google-cloud-sdk/lib/third_party/kubernetes/client/models/v1_exec_action.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
1
2020-07-24T18:47:35.000Z
2020-07-24T18:47:35.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
28.149606
80
0.621259
from pprint import pformat from six import iteritems import re class V1ExecAction(object): swagger_types = {'command': 'list[str]'} attribute_map = {'command': 'command'} def __init__(self, command=None): self._command = None self.discriminator = None if command is not None: self.command...
true
true
1c2a0c8b0fc142be59f12644130701ce3e9a2c76
5,351
py
Python
src/bxgateway/messages/btc/abstract_btc_message_converter.py
blockchain-development-resources/bxgateway
761b5085f9c7c6527f0b9aaae06d2f70f3786db2
[ "MIT" ]
1
2021-11-26T07:49:24.000Z
2021-11-26T07:49:24.000Z
src/bxgateway/messages/btc/abstract_btc_message_converter.py
beepool/bxgateway
761b5085f9c7c6527f0b9aaae06d2f70f3786db2
[ "MIT" ]
null
null
null
src/bxgateway/messages/btc/abstract_btc_message_converter.py
beepool/bxgateway
761b5085f9c7c6527f0b9aaae06d2f70f3786db2
[ "MIT" ]
1
2021-09-06T02:10:08.000Z
2021-09-06T02:10:08.000Z
from typing import Optional, Union, List, NamedTuple, Tuple, Dict from abc import abstractmethod from datetime import datetime import time from bxcommon.services.transaction_service import TransactionService from bxcommon.messages.abstract_message import AbstractMessage from bxcommon.messages.bloxroute.tx_message impo...
35.912752
116
0.707158
from typing import Optional, Union, List, NamedTuple, Tuple, Dict from abc import abstractmethod from datetime import datetime import time from bxcommon.services.transaction_service import TransactionService from bxcommon.messages.abstract_message import AbstractMessage from bxcommon.messages.bloxroute.tx_message impo...
true
true
1c2a0cd6afca0f715ce0a94cddc65f309f502fff
809
py
Python
food_ratings/frontend/caching.py
openregister/food-ratings-demo
ac175786ca46f0e4d7b0c76084dfe3865c0f04ed
[ "MIT" ]
null
null
null
food_ratings/frontend/caching.py
openregister/food-ratings-demo
ac175786ca46f0e4d7b0c76084dfe3865c0f04ed
[ "MIT" ]
5
2016-01-09T09:50:59.000Z
2016-09-02T14:09:14.000Z
food_ratings/frontend/caching.py
openregister/food-ratings-demo
ac175786ca46f0e4d7b0c76084dfe3865c0f04ed
[ "MIT" ]
1
2021-04-11T08:29:10.000Z
2021-04-11T08:29:10.000Z
from werkzeug.contrib.cache import FileSystemCache, SimpleCache import os import tempfile def get_cache_dir(): temp_dir_path = tempfile.gettempdir() return os.path.join(temp_dir_path, 'food-demo') if temp_dir_path else None def init_cache(app): cache_timeout = 24 * 60 * 60 temp_dir_path = get_cach...
28.892857
81
0.707046
from werkzeug.contrib.cache import FileSystemCache, SimpleCache import os import tempfile def get_cache_dir(): temp_dir_path = tempfile.gettempdir() return os.path.join(temp_dir_path, 'food-demo') if temp_dir_path else None def init_cache(app): cache_timeout = 24 * 60 * 60 temp_dir_path = get_cach...
true
true
1c2a0d71aa3efdedb32dc8b6d91f92759b6a15c5
55
py
Python
time_series_detector/__init__.py
alexanderqiu/Metis
bf50841faf36cf29378c7b774e6abe4327596bbd
[ "Apache-2.0" ]
1,367
2018-10-20T02:03:26.000Z
2022-03-31T09:43:42.000Z
time_series_detector/__init__.py
alexanderqiu/Metis
bf50841faf36cf29378c7b774e6abe4327596bbd
[ "Apache-2.0" ]
104
2018-10-20T04:45:57.000Z
2022-01-09T03:53:38.000Z
time_series_detector/__init__.py
alexanderqiu/Metis
bf50841faf36cf29378c7b774e6abe4327596bbd
[ "Apache-2.0" ]
445
2018-10-20T02:57:40.000Z
2022-03-28T11:34:42.000Z
__all__ = ["algorithm", "feature", "common", "detect"]
27.5
54
0.636364
__all__ = ["algorithm", "feature", "common", "detect"]
true
true
1c2a0f6605c809d6e7db359488a27afda211eeeb
5,893
py
Python
pyleecan/GUI/Dialog/DMachineSetup/SWSlot/PWSlot12/PWSlot12.py
tobsen2code/pyleecan
5b1ded9e389e0c79ed7b7c878b6e939f2d9962e9
[ "Apache-2.0" ]
4
2017-11-27T10:14:34.000Z
2018-09-20T11:30:32.000Z
pyleecan/GUI/Dialog/DMachineSetup/SWSlot/PWSlot12/PWSlot12.py
Eomys/Pyleecan
4d7f0cbabf0311006963e7a2f435db2ecd901118
[ "Apache-2.0" ]
null
null
null
pyleecan/GUI/Dialog/DMachineSetup/SWSlot/PWSlot12/PWSlot12.py
Eomys/Pyleecan
4d7f0cbabf0311006963e7a2f435db2ecd901118
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import PySide2.QtCore from PySide2.QtCore import Signal from PySide2.QtWidgets import QWidget from PySide2.QtGui import QPixmap from ......Classes.SlotW12 import SlotW12 from ......GUI import gui_option from ......GUI.Dialog.DMachineSetup.SWSlot.PWSlot12.Gen_PWSlot12 import Gen_PWSlot12 from .....
31.179894
85
0.592398
import PySide2.QtCore from PySide2.QtCore import Signal from PySide2.QtWidgets import QWidget from PySide2.QtGui import QPixmap from ......Classes.SlotW12 import SlotW12 from ......GUI import gui_option from ......GUI.Dialog.DMachineSetup.SWSlot.PWSlot12.Gen_PWSlot12 import Gen_PWSlot12 from ......Methods.Slot.Slot i...
true
true
1c2a115c73c913a65a8483ffad67d669513099b6
378
py
Python
tapetool/filters.py
andreas-schmidt/tapetool
235316395ab791748ecb2248c9484a90f464aac1
[ "MIT" ]
null
null
null
tapetool/filters.py
andreas-schmidt/tapetool
235316395ab791748ecb2248c9484a90f464aac1
[ "MIT" ]
null
null
null
tapetool/filters.py
andreas-schmidt/tapetool
235316395ab791748ecb2248c9484a90f464aac1
[ "MIT" ]
null
null
null
from scipy.signal import butter, lfilter def butter_bandpass(fs, data, f1=2900, f2=3100): w1 = f1 / 0.5 / fs w2 = f2 / 0.5 / fs b, a = butter(N=3, Wn=[w1, w2], btype='band') return lfilter(b, a, data, axis=0) def thd_for_1k(fs, data): return butter_bandpass(fs, data, 2900, 3100) def thd_for_315(f...
25.2
49
0.640212
from scipy.signal import butter, lfilter def butter_bandpass(fs, data, f1=2900, f2=3100): w1 = f1 / 0.5 / fs w2 = f2 / 0.5 / fs b, a = butter(N=3, Wn=[w1, w2], btype='band') return lfilter(b, a, data, axis=0) def thd_for_1k(fs, data): return butter_bandpass(fs, data, 2900, 3100) def thd_for_315(f...
true
true
1c2a12f953cfc29af9a13a8ea9866be8b89b6c77
10,033
py
Python
tests/test_particles.py
fsoubelet/PyHEADTAIL
51cae8845cceb61cc3f140db4ab0eeb68469110f
[ "BSD-3-Clause" ]
null
null
null
tests/test_particles.py
fsoubelet/PyHEADTAIL
51cae8845cceb61cc3f140db4ab0eeb68469110f
[ "BSD-3-Clause" ]
null
null
null
tests/test_particles.py
fsoubelet/PyHEADTAIL
51cae8845cceb61cc3f140db4ab0eeb68469110f
[ "BSD-3-Clause" ]
null
null
null
''' @date: 10/07/2015 @author: Stefan Hegglin, Adrian Oeftiger ''' import unittest import numpy as np from scipy.constants import c, e, m_p from PyHEADTAIL.particles.particles import Particles from PyHEADTAIL.particles.slicing import UniformBinSlicer from PyHEADTAIL.general.printers import SilentPrinter class Te...
40.619433
79
0.613376
import unittest import numpy as np from scipy.constants import c, e, m_p from PyHEADTAIL.particles.particles import Particles from PyHEADTAIL.particles.slicing import UniformBinSlicer from PyHEADTAIL.general.printers import SilentPrinter class TestParticles(unittest.TestCase): def setUp(self): ...
true
true
1c2a1426654e5bc1478579febca0b7bed4199a4b
32,711
py
Python
quantarhei/core/managers.py
tmancal74/quantarhei
54a40cc55cdedf86bf04a5d705227fe69461d408
[ "MIT" ]
14
2016-10-16T13:26:05.000Z
2021-11-09T11:40:52.000Z
quantarhei/core/managers.py
MichalPt/quantarhei
54a40cc55cdedf86bf04a5d705227fe69461d408
[ "MIT" ]
61
2016-09-19T10:45:56.000Z
2021-11-10T13:53:06.000Z
quantarhei/core/managers.py
MichalPt/quantarhei
54a40cc55cdedf86bf04a5d705227fe69461d408
[ "MIT" ]
21
2016-08-30T09:09:28.000Z
2022-03-30T03:16:35.000Z
# -*- coding: utf-8 -*- """ This class handles several important package wide tasks: 1) Usage of units across objects storing data 2) Basis conversion of all registered objects 3) Calls to proper optimized implementations of numerically heavy sections of the calculations Manager is a singl...
29.495942
96
0.541286
import os import warnings warnings.simplefilter(action='ignore', category=FutureWarning) import json import pkg_resources import numpy from .units import conversion_facs_frequency from .units import conversion_facs_energy from .units import conversion_facs_length from .singleton import Singleton from .numcon...
true
true
1c2a144afebfe29e29b06f6949452b03aaefe2b5
862
py
Python
refparse/utilities.py
MattWellie/refparse
068721329b70cd727301c1c1c08f6989ce31c17b
[ "MIT" ]
null
null
null
refparse/utilities.py
MattWellie/refparse
068721329b70cd727301c1c1c08f6989ce31c17b
[ "MIT" ]
null
null
null
refparse/utilities.py
MattWellie/refparse
068721329b70cd727301c1c1c08f6989ce31c17b
[ "MIT" ]
null
null
null
import time def create_reverse_complement(string): new_list = [] for x in string: if x == "A": new_list.append("T") if x == "C": new_list.append("G") if x == "G": new_list.append("C") if x == "T": new_list.append("A") new_stri...
25.352941
85
0.576566
import time def create_reverse_complement(string): new_list = [] for x in string: if x == "A": new_list.append("T") if x == "C": new_list.append("G") if x == "G": new_list.append("C") if x == "T": new_list.append("A") new_stri...
true
true
1c2a14765da42c6cead63bef881e755d6ca9077e
2,430
py
Python
arsa/routes.py
trippingrobot/arsa
e0628af8376ae52dc375c882721a36ccdc106173
[ "MIT" ]
null
null
null
arsa/routes.py
trippingrobot/arsa
e0628af8376ae52dc375c882721a36ccdc106173
[ "MIT" ]
1
2018-03-14T20:24:01.000Z
2018-03-14T20:24:01.000Z
arsa/routes.py
trippingrobot/arsa
e0628af8376ae52dc375c882721a36ccdc106173
[ "MIT" ]
null
null
null
from collections import namedtuple from werkzeug.routing import (Rule, RuleFactory) from werkzeug.exceptions import BadRequest from .model import valid_arguments, Attribute, Model, ListType, ListAttribute from .exceptions import ArgumentKeyError class Route(Rule): def __init__(self, endpoint, **kwargs): ...
33.75
110
0.62428
from collections import namedtuple from werkzeug.routing import (Rule, RuleFactory) from werkzeug.exceptions import BadRequest from .model import valid_arguments, Attribute, Model, ListType, ListAttribute from .exceptions import ArgumentKeyError class Route(Rule): def __init__(self, endpoint, **kwargs): ...
true
true
1c2a14ed91df8e12637ef3dbc4dcda72b0cc11df
3,217
py
Python
launcher.py
Gerold55/Game-Launcher
1e8f0984e85dedb4b05a2cf629f533e5530f0d1a
[ "MIT" ]
1
2020-03-16T23:46:38.000Z
2020-03-16T23:46:38.000Z
launcher.py
Gerold55/Game-Launcher
1e8f0984e85dedb4b05a2cf629f533e5530f0d1a
[ "MIT" ]
null
null
null
launcher.py
Gerold55/Game-Launcher
1e8f0984e85dedb4b05a2cf629f533e5530f0d1a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import kivy import kivy.app import kivy.graphics import kivy.uix.actionbar import kivy.uix.button import kivy.uix.image import kivy.uix.gridlayout import kivy.uix.label import kivy.uix.stacklayout kivy.require('1.8.0') # Callback to update the background of a widget when it resizes. def update_wid...
29.787037
77
0.63382
import kivy import kivy.app import kivy.graphics import kivy.uix.actionbar import kivy.uix.button import kivy.uix.image import kivy.uix.gridlayout import kivy.uix.label import kivy.uix.stacklayout kivy.require('1.8.0') def update_widget_bg(widget, value): widget.rect.pos = widget.pos widget.rect.size = wid...
true
true
1c2a15710fcfd2e333b9e308f00e44f000ba4eb4
130,491
py
Python
apiFlask/venv/Lib/site-packages/sqlalchemy/orm/session.py
random0010/RaspNAS
16ed85e6a4a22ce1e4022d927363c465eae0fa45
[ "MIT" ]
null
null
null
apiFlask/venv/Lib/site-packages/sqlalchemy/orm/session.py
random0010/RaspNAS
16ed85e6a4a22ce1e4022d927363c465eae0fa45
[ "MIT" ]
1
2021-03-10T13:03:42.000Z
2021-03-10T13:03:42.000Z
apiFlask/venv/Lib/site-packages/sqlalchemy/orm/session.py
random0010/RaspNAS
16ed85e6a4a22ce1e4022d927363c465eae0fa45
[ "MIT" ]
null
null
null
# orm/session.py # Copyright (C) 2005-2020 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Provides the Session class and related utilities.""" import itertools import sys ...
38.188762
79
0.612609
import itertools import sys import weakref from . import attributes from . import exc from . import identity from . import loading from . import persistence from . import query from . import state as statelib from .base import _class_to_mapper from .base import _none_set from .base import _state_mapper from .b...
true
true
1c2a161f394dab3a3ee7d6fdd4c80bcf72158f58
1,035
py
Python
pysindy/__init__.py
Shubhranshu-Shekhar/pysindy
e8a428da3dd13956a86b278094bdf2eb92eeeb7e
[ "MIT" ]
1
2021-02-15T11:09:51.000Z
2021-02-15T11:09:51.000Z
pysindy/__init__.py
Shubhranshu-Shekhar/pysindy
e8a428da3dd13956a86b278094bdf2eb92eeeb7e
[ "MIT" ]
null
null
null
pysindy/__init__.py
Shubhranshu-Shekhar/pysindy
e8a428da3dd13956a86b278094bdf2eb92eeeb7e
[ "MIT" ]
null
null
null
from pkg_resources import DistributionNotFound from pkg_resources import get_distribution try: __version__ = get_distribution(__name__).version except DistributionNotFound: pass from . import differentiation from . import feature_library from . import optimizers from . import utils from .pysindy import SINDy...
29.571429
53
0.850242
from pkg_resources import DistributionNotFound from pkg_resources import get_distribution try: __version__ = get_distribution(__name__).version except DistributionNotFound: pass from . import differentiation from . import feature_library from . import optimizers from . import utils from .pysindy import SINDy...
true
true
1c2a16484766c3edfff76ca30860b5cd197f65c2
23,921
py
Python
bin/Python27/Lib/site-packages/requests/utils.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
2
2020-08-23T20:21:08.000Z
2021-01-16T00:21:43.000Z
lib/requests/utils.py
tsriggs1/ApparelWorkshop
c5100d534e95aebf3609d5ca25cb160a169e509f
[ "BSD-3-Clause" ]
null
null
null
lib/requests/utils.py
tsriggs1/ApparelWorkshop
c5100d534e95aebf3609d5ca25cb160a169e509f
[ "BSD-3-Clause" ]
2
2021-11-27T13:08:32.000Z
2022-01-02T23:47:06.000Z
# -*- coding: utf-8 -*- """ requests.utils ~~~~~~~~~~~~~~ This module provides utility functions that are used within Requests that are also useful for external consumption. """ import cgi import codecs import collections import io import os import re import socket import struct import warnings from . import __vers...
31.066234
118
0.616488
import cgi import codecs import collections import io import os import re import socket import struct import warnings from . import __version__ from . import certs from .compat import parse_http_list as _parse_list_header from .compat import (quote, urlparse, bytes, str, OrderedDict, unquote, is_py2, ...
true
true
1c2a16fecd4dbc0ac3fdd43d1c0e6c00b4a9f50f
23,162
py
Python
qa/rpc-tests/test_framework/util.py
kazucoin/kazugold
7b0e034b08eceacf907b18913be7043c9cdcf5f4
[ "MIT" ]
1
2019-06-02T17:21:29.000Z
2019-06-02T17:21:29.000Z
qa/rpc-tests/test_framework/util.py
kazucoin/kazugold
7b0e034b08eceacf907b18913be7043c9cdcf5f4
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/util.py
kazucoin/kazugold
7b0e034b08eceacf907b18913be7043c9cdcf5f4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Helpful routines for regression testing # import os import sys from binascii import hexlify, unhex...
35.52454
125
0.652923
import os import sys from binascii import hexlify, unhexlify from base64 import b64encode from decimal import Decimal, ROUND_DOWN import json import http.client import random import shutil import subprocess import time import re import errno from . import coverage from .authproxy import AuthServiceProxy, JS...
true
true
1c2a17dbc1714d9f3b4917786ab012e5afd861de
509
py
Python
tests/beta_tests/test_well_of_ideas_easy_version.py
the-zebulan/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
40
2016-03-09T12:26:20.000Z
2022-03-23T08:44:51.000Z
tests/beta_tests/test_well_of_ideas_easy_version.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
null
null
null
tests/beta_tests/test_well_of_ideas_easy_version.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
import unittest from katas.kyu_8.well_of_ideas_easy_version import well class WellOfIdeasTestCase(unittest.TestCase): def test_equal_1(self): self.assertEqual(well(['bad', 'bad', 'bad']), 'Fail!') def test_equal_2(self): self.assertEqual(well( ['good', 'bad', 'bad', 'bad', 'bad']...
28.277778
79
0.583497
import unittest from katas.kyu_8.well_of_ideas_easy_version import well class WellOfIdeasTestCase(unittest.TestCase): def test_equal_1(self): self.assertEqual(well(['bad', 'bad', 'bad']), 'Fail!') def test_equal_2(self): self.assertEqual(well( ['good', 'bad', 'bad', 'bad', 'bad']...
true
true
1c2a182e4ac34d2e3fd57071e1e54ea4702f3425
2,656
py
Python
src/tracker.py
Dreamonic/learning-to-learn
c67e9d7f98e6d81c1248abb9027ce25115eb5d28
[ "MIT" ]
null
null
null
src/tracker.py
Dreamonic/learning-to-learn
c67e9d7f98e6d81c1248abb9027ce25115eb5d28
[ "MIT" ]
null
null
null
src/tracker.py
Dreamonic/learning-to-learn
c67e9d7f98e6d81c1248abb9027ce25115eb5d28
[ "MIT" ]
null
null
null
import glob import json import os import sys import time import uuid from util import file_path_to_name class BaseTracker: def forward(self, net, inp, out): pass def start_timer(self, name): pass def stop_timer(self, name): pass def save(self): pass class Tracker(...
27.102041
115
0.572666
import glob import json import os import sys import time import uuid from util import file_path_to_name class BaseTracker: def forward(self, net, inp, out): pass def start_timer(self, name): pass def stop_timer(self, name): pass def save(self): pass class Tracker(...
true
true
1c2a1a624e4ddc53fba2cc632024f476b48e1c10
1,616
py
Python
devices/migrations/0038_auto_20210723_1204.py
ticotheps/laker-tech-crm
37d42de24393162a383ed30849c816abc629e81d
[ "MIT" ]
null
null
null
devices/migrations/0038_auto_20210723_1204.py
ticotheps/laker-tech-crm
37d42de24393162a383ed30849c816abc629e81d
[ "MIT" ]
null
null
null
devices/migrations/0038_auto_20210723_1204.py
ticotheps/laker-tech-crm
37d42de24393162a383ed30849c816abc629e81d
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-23 12:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('devices', '0037_auto_20210723_1110'), ] operations = [ migrations.RemoveField( model_name='transaction', name='trans...
39.414634
204
0.589109
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('devices', '0037_auto_20210723_1110'), ] operations = [ migrations.RemoveField( model_name='transaction', name='transaction_type', ), migrations.Add...
true
true
1c2a1b6dae4565fde7212aa6d225a50c45b83626
7,956
py
Python
autorest/codegen/models/lro_operation.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
autorest/codegen/models/lro_operation.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
autorest/codegen/models/lro_operation.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import log...
44.446927
117
0.663524
import logging from typing import Dict, List, Any, Optional, Set, cast from .imports import FileImport from .operation import Operation from .parameter_list import ParameterList from .schema_response import SchemaResponse from .imports import ImportType, TypingSection from .base_schema import BaseSchema from .sche...
true
true
1c2a1bfbeeb3c91df3690353fe7edfbf01148828
4,120
py
Python
cnn/word_accetuation/syllabled_letters/v2_15/workbench.py
lkrsnik/accetuation
02724147f88aa034487c7922eb75e0fc321aa93f
[ "MIT" ]
null
null
null
cnn/word_accetuation/syllabled_letters/v2_15/workbench.py
lkrsnik/accetuation
02724147f88aa034487c7922eb75e0fc321aa93f
[ "MIT" ]
null
null
null
cnn/word_accetuation/syllabled_letters/v2_15/workbench.py
lkrsnik/accetuation
02724147f88aa034487c7922eb75e0fc321aa93f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals # text in Western (Windows 1252) import pickle import numpy as np from keras import optimizers from keras.models import Model from keras.layers import Dense, Dropout, Input from keras.layers.merge import concatenate from keras.layers.convolutional import ...
38.867925
186
0.726942
from __future__ import unicode_literals import pickle import numpy as np from keras import optimizers from keras.models import Model from keras.layers import Dense, Dropout, Input from keras.layers.merge import concatenate from keras.layers.convolutional import Conv1D from keras.layers.convolutional import MaxPoolin...
true
true
1c2a1c304d5e6a01735bfc0667741342717294f0
203
py
Python
instargram/users/tests/test_models.py
DEBTORSLEE/djangoinstargram
d4c95c95802239d950cbbf4539733dec80d45e4a
[ "MIT" ]
null
null
null
instargram/users/tests/test_models.py
DEBTORSLEE/djangoinstargram
d4c95c95802239d950cbbf4539733dec80d45e4a
[ "MIT" ]
null
null
null
instargram/users/tests/test_models.py
DEBTORSLEE/djangoinstargram
d4c95c95802239d950cbbf4539733dec80d45e4a
[ "MIT" ]
null
null
null
import pytest from instargram.users.models import User pytestmark = pytest.mark.django_db def test_user_get_absolute_url(user: User): assert user.get_absolute_url() == f"/users/{user.username}/"
20.3
64
0.773399
import pytest from instargram.users.models import User pytestmark = pytest.mark.django_db def test_user_get_absolute_url(user: User): assert user.get_absolute_url() == f"/users/{user.username}/"
true
true
1c2a1e7c62ecc9687f2018543dedcf4b30e6794c
9,324
py
Python
tools/nntool/graph/matches/find_hsigmoid.py
VishalSharma0309/gap_sdk
09ccc594a3696a84953b732022cecae11e751c97
[ "Apache-2.0" ]
null
null
null
tools/nntool/graph/matches/find_hsigmoid.py
VishalSharma0309/gap_sdk
09ccc594a3696a84953b732022cecae11e751c97
[ "Apache-2.0" ]
null
null
null
tools/nntool/graph/matches/find_hsigmoid.py
VishalSharma0309/gap_sdk
09ccc594a3696a84953b732022cecae11e751c97
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
44.61244
299
0.656692
import logging import math from graph.types import MatrixMulParameters, ConvFusionParameters, FcParameters, HSigmoidActivationParameters, ConstantInputParameters, FilterParameters, ReluActivationParameters, MatrixBroadcastedLinearOpParameters, MatrixAddParameters, MatrixSubParameters, MatrixDivParameters...
true
true
1c2a1fab1952e1f79a08a0a4c9187952bf7bcb2e
382
py
Python
services/dsrp-api/app/api/application/models/__init__.py
bcgov/dormant-site-reclamation-program
4710434174a204a292a3128d92c8daf1de2a65a6
[ "Apache-2.0" ]
null
null
null
services/dsrp-api/app/api/application/models/__init__.py
bcgov/dormant-site-reclamation-program
4710434174a204a292a3128d92c8daf1de2a65a6
[ "Apache-2.0" ]
9
2020-05-06T23:29:43.000Z
2022-03-14T22:58:17.000Z
services/dsrp-api/app/api/application/models/__init__.py
bcgov/dormant-site-reclamation-program
4710434174a204a292a3128d92c8daf1de2a65a6
[ "Apache-2.0" ]
3
2020-05-08T16:54:22.000Z
2021-01-27T17:28:49.000Z
from .application import * from .application_document import * from .application_document_type import * from .application_phase_type import * from .application_status import * from .application_status_change import * from .application_history import * from .payment_document import * from .payment_document_contracted_wo...
34.727273
60
0.842932
from .application import * from .application_document import * from .application_document_type import * from .application_phase_type import * from .application_status import * from .application_status_change import * from .application_history import * from .payment_document import * from .payment_document_contracted_wo...
true
true
1c2a2031f285d4dd6c3d6adf28c2ab139654617e
2,676
py
Python
sdk/python/pulumi_azure_nextgen/machinelearningservices/v20200515preview/list_machine_learning_compute_keys.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/machinelearningservices/v20200515preview/list_machine_learning_compute_keys.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/machinelearningservices/v20200515preview/list_machine_learning_compute_keys.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
39.352941
193
0.705531
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ 'ListMachineLearningComputeKeysResult', 'AwaitableListMachineLearningComputeKeysResult', 'list_machine_learning_compute_keys', ] @pulumi.output...
true
true
1c2a2293be516c4294c39bffe9de27a23e09cda1
1,149
py
Python
idaes/power_generation/properties/flue_gas_ideal.py
OOAmusat/idaes-pse
ae7d3bb8e372bc32822dcdcb75e9fd96b78da539
[ "RSA-MD" ]
null
null
null
idaes/power_generation/properties/flue_gas_ideal.py
OOAmusat/idaes-pse
ae7d3bb8e372bc32822dcdcb75e9fd96b78da539
[ "RSA-MD" ]
null
null
null
idaes/power_generation/properties/flue_gas_ideal.py
OOAmusat/idaes-pse
ae7d3bb8e372bc32822dcdcb75e9fd96b78da539
[ "RSA-MD" ]
1
2022-03-17T11:08:43.000Z
2022-03-17T11:08:43.000Z
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
49.956522
84
0.662315
true
true
1c2a22b61dfd528ef22d588c9178c6f695547f91
3,212
py
Python
Scripts/Preprocessing/pre20_merge_all_mapped_features.py
mattiasu96/recsys-challenge-2021-twitter
80b78050739a93165cbaaf256bd13932582a8930
[ "Apache-2.0" ]
6
2021-09-05T09:20:33.000Z
2022-03-09T13:41:42.000Z
Scripts/Preprocessing/pre20_merge_all_mapped_features.py
mattiasu96/recsys-challenge-2021-twitter
80b78050739a93165cbaaf256bd13932582a8930
[ "Apache-2.0" ]
null
null
null
Scripts/Preprocessing/pre20_merge_all_mapped_features.py
mattiasu96/recsys-challenge-2021-twitter
80b78050739a93165cbaaf256bd13932582a8930
[ "Apache-2.0" ]
3
2021-09-06T09:19:49.000Z
2021-11-19T14:11:52.000Z
from Scripts.Preprocessing.pre00_dataset_to_parquet import simple_features_nan from preprocessing_utilities import output_path, temp_output_path, dataset_path from Scripts.utilities import read_dataset, start_correct_cluster, parse_args import dask.dataframe as dd import os import pre01_map_user_id_features, pre02_ma...
38.698795
233
0.708904
from Scripts.Preprocessing.pre00_dataset_to_parquet import simple_features_nan from preprocessing_utilities import output_path, temp_output_path, dataset_path from Scripts.utilities import read_dataset, start_correct_cluster, parse_args import dask.dataframe as dd import os import pre01_map_user_id_features, pre02_ma...
true
true
1c2a23512ab9ee6278a27ee9fe9ac78abeb14f28
31,188
py
Python
muscima/grammar.py
hajicj/muscima
f6f3d014761442af52a108bb873786a41d6de4b3
[ "MIT" ]
16
2017-03-27T15:17:55.000Z
2022-02-15T02:15:53.000Z
muscima/grammar.py
hajicj/muscima
f6f3d014761442af52a108bb873786a41d6de4b3
[ "MIT" ]
13
2017-03-27T15:26:09.000Z
2021-04-23T21:18:30.000Z
muscima/grammar.py
hajicj/muscima
f6f3d014761442af52a108bb873786a41d6de4b3
[ "MIT" ]
3
2017-03-27T15:17:58.000Z
2019-04-08T02:50:11.000Z
"""This module implements a Grammar. A Grammar is a set of rules about how objects from a certain set of classes are allowed to form relationships. In a dependency grammar, the relationships are formed directly between the objects. (In constituency grammars, we'd have a "merge result" object instead.) In the ``muscim...
41.036842
114
0.605778
from __future__ import print_function, unicode_literals from builtins import str from builtins import object import codecs import logging import os import pprint import collections from typing import Union, Set, List __version__ = "0.0.1" __author__ = "Jan Hajic jr." class DependencyGrammarParseError(ValueError):...
true
true
1c2a23e942730f0d411c3e1a56b8f18ee5afea48
934
py
Python
python/spec/fixtures/setup_files/markers.py
lioramilbaum/dependabot-core
7c652cafc638f0dbd6f7a8a2ed9a5afd7ae9a3f3
[ "MS-PL", "Naumen", "Condor-1.1", "0BSD" ]
2,670
2017-07-28T15:32:53.000Z
2022-03-31T22:42:15.000Z
python/spec/fixtures/setup_files/markers.py
lioramilbaum/dependabot-core
7c652cafc638f0dbd6f7a8a2ed9a5afd7ae9a3f3
[ "MS-PL", "Naumen", "Condor-1.1", "0BSD" ]
3,028
2017-08-01T07:32:04.000Z
2022-03-31T23:53:04.000Z
python/spec/fixtures/setup_files/markers.py
lioramilbaum/dependabot-core
7c652cafc638f0dbd6f7a8a2ed9a5afd7ae9a3f3
[ "MS-PL", "Naumen", "Condor-1.1", "0BSD" ]
698
2017-09-07T10:26:02.000Z
2022-03-27T16:31:21.000Z
from setuptools import setup, find_packages setup(name='python-package', version='0.0', description='Example setup.py', url='httos://github.com/example/python-package', author='Dependabot', scripts=[], packages=find_packages(), setup_requires=[ 'numpy==1.11.0', ...
25.243243
54
0.466809
from setuptools import setup, find_packages setup(name='python-package', version='0.0', description='Example setup.py', url='httos://github.com/example/python-package', author='Dependabot', scripts=[], packages=find_packages(), setup_requires=[ 'numpy==1.11.0', ...
true
true
1c2a240695d2d8c3a8739555a63c74c2036e3c71
19,786
py
Python
salt/utils/args.py
johnskopis/salt
86adb6b0fe40230b8be4c74229e897a7a08f81a6
[ "Apache-2.0" ]
1
2021-07-15T18:11:51.000Z
2021-07-15T18:11:51.000Z
salt/utils/args.py
johnskopis/salt
86adb6b0fe40230b8be4c74229e897a7a08f81a6
[ "Apache-2.0" ]
null
null
null
salt/utils/args.py
johnskopis/salt
86adb6b0fe40230b8be4c74229e897a7a08f81a6
[ "Apache-2.0" ]
1
2020-04-10T20:18:40.000Z
2020-04-10T20:18:40.000Z
# -*- coding: utf-8 -*- ''' Functions used for CLI argument handling ''' # Import python libs from __future__ import absolute_import, print_function, unicode_literals import copy import fnmatch import inspect import re import shlex # Import salt libs from salt.exceptions import SaltInvocationError from salt.ext impor...
33.59253
110
0.573183
from __future__ import absolute_import, print_function, unicode_literals import copy import fnmatch import inspect import re import shlex from salt.exceptions import SaltInvocationError from salt.ext import six from salt.ext.six.moves import map, zip import salt.utils.data import salt.utils.jid import salt.utils...
true
true
1c2a24425c13f0c051efc2830561416b7828afcd
1,758
py
Python
Customer_Satisfaction_Analysis/Project_Main.py
XZYCR7/Customer_Satisfaction_Analysis
74360f35377177d700a3843cb09a1868a3c0a34b
[ "Apache-2.0" ]
1
2021-03-31T08:39:17.000Z
2021-03-31T08:39:17.000Z
Customer_Satisfaction_Analysis/Project_Main.py
bulululu/Customer_Satisfaction_Analysis
74360f35377177d700a3843cb09a1868a3c0a34b
[ "Apache-2.0" ]
null
null
null
Customer_Satisfaction_Analysis/Project_Main.py
bulululu/Customer_Satisfaction_Analysis
74360f35377177d700a3843cb09a1868a3c0a34b
[ "Apache-2.0" ]
1
2021-03-31T08:39:03.000Z
2021-03-31T08:39:03.000Z
# -*- coding: utf-8 -*- from sa_analysis import topic_sa_analysis import jieba.posseg as pseg import multiprocessing from model_structure.conf import * import time import os def doc2sentence(resource_text): with open(sentence_cut_path, 'w', encoding='utf-8') as sentence_cut: for sentence in resource_text: ...
40.883721
94
0.638225
from sa_analysis import topic_sa_analysis import jieba.posseg as pseg import multiprocessing from model_structure.conf import * import time import os def doc2sentence(resource_text): with open(sentence_cut_path, 'w', encoding='utf-8') as sentence_cut: for sentence in resource_text: if len(sente...
true
true
1c2a24d92ea613356edb7f036fdcd2fb8407dd8e
12,171
py
Python
python_modules/dagster/dagster_tests/api_tests/test_api_list_repositories.py
AndersonReyes/dagster
809bf2c3079ac5b35595cbb5b6ef114381e8e4b1
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/api_tests/test_api_list_repositories.py
AndersonReyes/dagster
809bf2c3079ac5b35595cbb5b6ef114381e8e4b1
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/api_tests/test_api_list_repositories.py
AndersonReyes/dagster
809bf2c3079ac5b35595cbb5b6ef114381e8e4b1
[ "Apache-2.0" ]
null
null
null
import sys import pytest from dagster import seven from dagster.api.list_repositories import ( sync_list_repositories, sync_list_repositories_ephemeral_grpc, sync_list_repositories_grpc, ) from dagster.core.code_pointer import FileCodePointer, ModuleCodePointer from dagster.core.errors import DagsterUserC...
36.331343
98
0.763783
import sys import pytest from dagster import seven from dagster.api.list_repositories import ( sync_list_repositories, sync_list_repositories_ephemeral_grpc, sync_list_repositories_grpc, ) from dagster.core.code_pointer import FileCodePointer, ModuleCodePointer from dagster.core.errors import DagsterUserC...
true
true
1c2a25024eab71ec31cd7dd6197fca8b232f61bc
2,195
py
Python
mmdet/datasets/plug.py
lushaoan/mmdet
c9e4bfaf0641284a4614ee51e2beae5747b65d5e
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/plug.py
lushaoan/mmdet
c9e4bfaf0641284a4614ee51e2beae5747b65d5e
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/plug.py
lushaoan/mmdet
c9e4bfaf0641284a4614ee51e2beae5747b65d5e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3.6 # -*- coding:utf-8 -*- __author__ = 'Lu ShaoAn' __version__ = '1.0' __date__ = '2021.05.26' __copyright__ = 'Copyright 2021, PI' import os import json import numpy as np import einops from .builder import DATASETS from .custom import CustomDataset @DATASETS.register_module() class PlugDatas...
30.915493
101
0.559453
__author__ = 'Lu ShaoAn' __version__ = '1.0' __date__ = '2021.05.26' __copyright__ = 'Copyright 2021, PI' import os import json import numpy as np import einops from .builder import DATASETS from .custom import CustomDataset @DATASETS.register_module() class PlugDataset(CustomDataset): CLASSES = ('obj',) ...
true
true
1c2a259297d695c184de0a021bb4fd7f7485ae1b
1,988
py
Python
aliyun-python-sdk-ons/aliyunsdkons/request/v20190214/OnsMessageSendRequest.py
ankitdobhal/aliyun-openapi-python-sdk
991b1c2d91adc468480defc23ba790d4369cce7b
[ "Apache-2.0" ]
1
2021-03-08T02:59:17.000Z
2021-03-08T02:59:17.000Z
aliyun-python-sdk-ons/aliyunsdkons/request/v20190214/OnsMessageSendRequest.py
bricklayer-Liu/aliyun-openapi-python-sdk
20da2554de22679fc7c5462c483663e4d79512aa
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ons/aliyunsdkons/request/v20190214/OnsMessageSendRequest.py
bricklayer-Liu/aliyun-openapi-python-sdk
20da2554de22679fc7c5462c483663e4d79512aa
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
32.064516
74
0.748994
from aliyunsdkcore.request import RpcRequest from aliyunsdkons.endpoint import endpoint_data class OnsMessageSendRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'Ons', '2019-02-14', 'OnsMessageSend') self.set_method('POST') if hasattr(self, "endpoint_map"): setattr(sel...
true
true
1c2a25f29758e261d5db6e26c898c3d4336e338e
22,702
py
Python
IPython/core/inputsplitter.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
1
2020-12-18T01:07:55.000Z
2020-12-18T01:07:55.000Z
IPython/core/inputsplitter.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/core/inputsplitter.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
null
null
null
"""Input handling and transformation machinery. The first class in this module, :class:`InputSplitter`, is designed to tell when input from a line-oriented frontend is complete and should be executed, and when the user should be prompted for another line of code instead. The name 'input splitter' is largely for histor...
35.088099
91
0.594441
import ast import codeop import re import sys from IPython.utils.py3compat import cast_unicode from IPython.core.inputtransformer import (leading_indent, classic_prompt, ipy_prompt, ...
true
true
1c2a26d6b851128d24651187c7c84e21c784b7db
1,181
py
Python
Aulas/app001/ex22-listbox.py
JonasJF360/Curso_Tkinter
7a72187a03ef9f7f9d7f760d2cd1434e0287a266
[ "MIT" ]
null
null
null
Aulas/app001/ex22-listbox.py
JonasJF360/Curso_Tkinter
7a72187a03ef9f7f9d7f760d2cd1434e0287a266
[ "MIT" ]
null
null
null
Aulas/app001/ex22-listbox.py
JonasJF360/Curso_Tkinter
7a72187a03ef9f7f9d7f760d2cd1434e0287a266
[ "MIT" ]
null
null
null
from tkinter import * def comando(): print(lista.index()) # lista.delete(0, END) root = Tk() # Criação do espaço para os itens lista = Listbox(root, selectmode=EXTENDED) lista.pack() # Inserindo itens de um a um """ lista.insert(END, 'Primeiro item da lista;') lista.insert(END, 'Segungo item da lista;') l...
22.711538
51
0.617273
from tkinter import * def comando(): print(lista.index()) root = Tk() lista = Listbox(root, selectmode=EXTENDED) lista.pack() elementos = [ 'item da lista', 'item da lista', 'item da lista', 'item da lista', 'item da lista', 'item da lista', 'item da lista', 'item da lis...
true
true
1c2a26dd1a42f160fc4120d1600b323779ec9ea9
1,155
py
Python
ch7_1/graph.py
o-kei/design-computing-aij
954b46fb5f2192ab79fc003a2ca3a259e41dc7a4
[ "MIT" ]
11
2017-11-11T05:09:45.000Z
2022-02-14T05:01:22.000Z
ch7_1/graph.py
o-kei/design-computing-aij
954b46fb5f2192ab79fc003a2ca3a259e41dc7a4
[ "MIT" ]
3
2017-02-09T18:20:25.000Z
2017-11-10T01:32:40.000Z
ch7_1/graph.py
o-kei/design-computing-aij
954b46fb5f2192ab79fc003a2ca3a259e41dc7a4
[ "MIT" ]
6
2016-12-17T03:06:57.000Z
2021-04-28T15:37:06.000Z
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from mpl_toolkits.mplot3d import proj3d def orthogonal_transformation(zfront, zback): # 描画の手法を透視投影から平行投影に変更 a = 2 / (zfront - zback) b = -1 * (zfront + zback) / (zfront - zback) c = zback return np.array([[1, 0...
36.09375
77
0.538528
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from mpl_toolkits.mplot3d import proj3d def orthogonal_transformation(zfront, zback): a = 2 / (zfront - zback) b = -1 * (zfront + zback) / (zfront - zback) c = zback return np.array([[1, 0, 0, 0], [0, 1, 0, 0]...
true
true
1c2a271b4c8dd916fa70915a3114aee5f9a702ab
2,094
py
Python
common.py
jpchagas/AdversarialSearchAlgorithm
49a33900918fa117cb6c3f924f7155fb61530986
[ "MIT" ]
null
null
null
common.py
jpchagas/AdversarialSearchAlgorithm
49a33900918fa117cb6c3f924f7155fb61530986
[ "MIT" ]
1
2017-08-03T15:53:01.000Z
2017-08-03T15:55:02.000Z
common.py
jpchagas/AdversarialSearchAlgorithm
49a33900918fa117cb6c3f924f7155fb61530986
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Four spaces as indentation [no tabs] import os, sys, inspect import threading PATH = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) # Interface WAIT = 1 ZOOM = 6 TILE_WIDTH = 16 * ZOOM TILE_HEIGHT = 16 * ZOOM # ----------------------...
29.492958
89
0.535817
import os, sys, inspect import threading PATH = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) WAIT = 1 ZOOM = 6 TILE_WIDTH = 16 * ZOOM TILE_HEIGHT = 16 * ZOOM class BlockedMovementException(Exception): def __init__(self, board, player, movement)...
true
true
1c2a27b2aec1b080aa24a144b0afd69de8cecb6f
5,087
py
Python
tools/train_supernet.py
GAIA-vision/GAIA-ssl
3c22806a9337278a48dcbcc1fcc40082b8fe5af5
[ "Apache-2.0" ]
13
2022-03-06T07:35:14.000Z
2022-03-31T12:24:55.000Z
tools/train_supernet.py
BraveGroup/gaiassl
7ac33fe2b8af0791caa89dfa789f03a3e20c9fa4
[ "Apache-2.0" ]
null
null
null
tools/train_supernet.py
BraveGroup/gaiassl
7ac33fe2b8af0791caa89dfa789f03a3e20c9fa4
[ "Apache-2.0" ]
1
2022-03-31T12:24:58.000Z
2022-03-31T12:24:58.000Z
from __future__ import division import argparse import importlib import os import os.path as osp import time import pdb import mmcv import torch from mmcv import Config from mmcv.runner import init_dist from openselfsup import __version__ from openselfsup.apis import set_random_seed from openselfsup.datasets import b...
33.032468
77
0.66149
from __future__ import division import argparse import importlib import os import os.path as osp import time import pdb import mmcv import torch from mmcv import Config from mmcv.runner import init_dist from openselfsup import __version__ from openselfsup.apis import set_random_seed from openselfsup.datasets import b...
true
true
1c2a27f3dac91c3040919da1fafa658756878a78
141,147
py
Python
lib/galaxy/model/mapping.py
Nerdinacan/galaxy
4b07545d251622dde24d34b62d3d9a857e232780
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/mapping.py
Nerdinacan/galaxy
4b07545d251622dde24d34b62d3d9a857e232780
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/mapping.py
Nerdinacan/galaxy
4b07545d251622dde24d34b62d3d9a857e232780
[ "CC-BY-3.0" ]
null
null
null
""" Details of how the data model objects are mapped onto the relational database are encapsulated here. """ import logging from sqlalchemy import ( and_, asc, Boolean, Column, DateTime, desc, false, ForeignKey, func, Index, Integer, MetaData, not_, Numeric, ...
48.570888
188
0.733902
import logging from sqlalchemy import ( and_, asc, Boolean, Column, DateTime, desc, false, ForeignKey, func, Index, Integer, MetaData, not_, Numeric, select, String, Table, TEXT, Text, true, Unicode, UniqueConstraint, VARCHAR ) fr...
true
true
1c2a28f176842289bc307825d34be545fc77cfdb
2,020
py
Python
mlgames/tictactoe/utils/minimax_generate.py
ishakir/ml-tictactoe
904eb24aa2c76e081138a1a90740173b403097d8
[ "Apache-2.0" ]
null
null
null
mlgames/tictactoe/utils/minimax_generate.py
ishakir/ml-tictactoe
904eb24aa2c76e081138a1a90740173b403097d8
[ "Apache-2.0" ]
null
null
null
mlgames/tictactoe/utils/minimax_generate.py
ishakir/ml-tictactoe
904eb24aa2c76e081138a1a90740173b403097d8
[ "Apache-2.0" ]
null
null
null
import click import csv from mlgames.board import Board class Node: def __init__(self, board, parent, us_to_play): self.board = board self.parent = parent self.us_to_play = us_to_play self.result = None self.total_results = 0 if not board.full() and not board.winner(): for x in range(3): for y in...
28.055556
121
0.644554
import click import csv from mlgames.board import Board class Node: def __init__(self, board, parent, us_to_play): self.board = board self.parent = parent self.us_to_play = us_to_play self.result = None self.total_results = 0 if not board.full() and not board.winner(): for x in range(3): for y in...
true
true
1c2a290e3382ea3eec0377b429c4fba00ef7c11f
1,216
py
Python
xlsxwriter/test/comparison/test_header_image09.py
timgates42/XlsxWriter
129044ed821de67895b4562c6b71f90eba5be6b4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_header_image09.py
timgates42/XlsxWriter
129044ed821de67895b4562c6b71f90eba5be6b4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_header_image09.py
timgates42/XlsxWriter
129044ed821de67895b4562c6b71f90eba5be6b4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2020, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
27.636364
91
0.591283
true
true
1c2a29333001ca38f5c09250ccca34ad0becffbf
73,818
py
Python
pandas-0.21.0.dev0+412.g062f6f118-py3.6-macosx-10.12.6-x86_64.egg/pandas/core/categorical.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas-0.21.0.dev0+412.g062f6f118-py3.6-macosx-10.12.6-x86_64.egg/pandas/core/categorical.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas-0.21.0.dev0+412.g062f6f118-py3.6-macosx-10.12.6-x86_64.egg/pandas/core/categorical.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# pylint: disable=E1101,W0232 import numpy as np from warnings import warn import types from pandas import compat from pandas.compat import u, lzip from pandas._libs import lib, algos as libalgos from pandas.core.dtypes.generic import ( ABCSeries, ABCIndexClass, ABCCategoricalIndex) from pandas.core.dtypes.missi...
33.877008
79
0.58013
import numpy as np from warnings import warn import types from pandas import compat from pandas.compat import u, lzip from pandas._libs import lib, algos as libalgos from pandas.core.dtypes.generic import ( ABCSeries, ABCIndexClass, ABCCategoricalIndex) from pandas.core.dtypes.missing import isna, notna from pa...
true
true
1c2a2a62c9e498a0360895f37f7cb265b72ae884
4,721
py
Python
zero/core/engine.py
jsa4000/OpenGL-Python
62055ba0c16f54507b7ba709d6691b2e9c7bc152
[ "Apache-2.0" ]
null
null
null
zero/core/engine.py
jsa4000/OpenGL-Python
62055ba0c16f54507b7ba709d6691b2e9c7bc152
[ "Apache-2.0" ]
null
null
null
zero/core/engine.py
jsa4000/OpenGL-Python
62055ba0c16f54507b7ba709d6691b2e9c7bc152
[ "Apache-2.0" ]
1
2021-10-08T06:12:11.000Z
2021-10-08T06:12:11.000Z
import time from .base import Thread from .controllers import DisplayController, DeviceController from ..system import InputManager, SceneManager, RenderManager __all__ = ['CoreEngine'] class CoreEngine(Thread): """ Core Engine Class This class is the main loop of the process that will manage all ...
31.898649
81
0.62868
import time from .base import Thread from .controllers import DisplayController, DeviceController from ..system import InputManager, SceneManager, RenderManager __all__ = ['CoreEngine'] class CoreEngine(Thread): @property def display(self): return self._display @property def device(self): ...
true
true
1c2a2be415dc7abd379057fc4f19b267605dcb35
553
py
Python
src/api/models/task.py
fndomariano/tasks
3723d7639894096719dba1a48b734a2f6099eb4f
[ "MIT" ]
null
null
null
src/api/models/task.py
fndomariano/tasks
3723d7639894096719dba1a48b734a2f6099eb4f
[ "MIT" ]
null
null
null
src/api/models/task.py
fndomariano/tasks
3723d7639894096719dba1a48b734a2f6099eb4f
[ "MIT" ]
null
null
null
from src import db class Task(db.Model): __tablename__ = 'task' id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(150), nullable=False) description = db.Column(db.Text, nullable=False) date_begin = db.Column(db.DateTime, nullable=False) date_until = db.Column(db.DateTime, nullable=False)...
27.65
52
0.717902
from src import db class Task(db.Model): __tablename__ = 'task' id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(150), nullable=False) description = db.Column(db.Text, nullable=False) date_begin = db.Column(db.DateTime, nullable=False) date_until = db.Column(db.DateTime, nullable=False)...
true
true
1c2a2c2c233fa418f221bd547383b851a7eb9b64
71
py
Python
tests/__init__.py
onyxfish/agate-textcharts
c76eb7307dd4b0b3aaf6f3615ad63d71b9c0d72d
[ "MIT" ]
null
null
null
tests/__init__.py
onyxfish/agate-textcharts
c76eb7307dd4b0b3aaf6f3615ad63d71b9c0d72d
[ "MIT" ]
null
null
null
tests/__init__.py
onyxfish/agate-textcharts
c76eb7307dd4b0b3aaf6f3615ad63d71b9c0d72d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import agatetextcharts agatetextcharts.patch()
11.833333
23
0.788732
import agatetextcharts agatetextcharts.patch()
true
true
1c2a2cad3fb3ea333ca1c980016344dc848c6fd9
7,797
py
Python
train_dot.py
playing-code/fairseq2
ac97b18c0aecca9eb36146492a1e95e521cb345a
[ "MIT" ]
null
null
null
train_dot.py
playing-code/fairseq2
ac97b18c0aecca9eb36146492a1e95e521cb345a
[ "MIT" ]
null
null
null
train_dot.py
playing-code/fairseq2
ac97b18c0aecca9eb36146492a1e95e521cb345a
[ "MIT" ]
null
null
null
import json import pickle import numpy as np import random # from fairseq.data import Dictionary import sys import torch import argparse import os from model_dot import Plain_bert from fairseq.models.roberta import RobertaModel from utils_sample_deepwalk import NewsIterator from utils_sample_deepwalk import cal_metric...
29.873563
191
0.631397
import json import pickle import numpy as np import random import sys import torch import argparse import os from model_dot import Plain_bert from fairseq.models.roberta import RobertaModel from utils_sample_deepwalk import NewsIterator from utils_sample_deepwalk import cal_metric import utils_sample_deepwalk as util...
true
true
1c2a2cc1be25674537ce21eae45a720d2ee2a879
3,004
py
Python
torch2paddle.py
livingbody/resnet-livingbody
a8c04faf9cc6896f7c3aef06cddfe38ce74f00ee
[ "Apache-2.0" ]
1
2021-12-01T14:50:54.000Z
2021-12-01T14:50:54.000Z
torch2paddle.py
livingbody/resnet-livingbody
a8c04faf9cc6896f7c3aef06cddfe38ce74f00ee
[ "Apache-2.0" ]
null
null
null
torch2paddle.py
livingbody/resnet-livingbody
a8c04faf9cc6896f7c3aef06cddfe38ce74f00ee
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch from torchvision import models import ResNet_paddle.paddlevision.models from torchsummary import summary from torchvision.models import resnet50 import paddle from collections import OrderedDict # 查看pytorch权重文件信息 def model_summary(): model = resnet50() checkpoint = torch.load("...
30.04
78
0.668109
import numpy as np import torch from torchvision import models import ResNet_paddle.paddlevision.models from torchsummary import summary from torchvision.models import resnet50 import paddle from collections import OrderedDict def model_summary(): model = resnet50() checkpoint = torch.load("resnet50-0676ba61...
true
true
1c2a2dd24346b5464046c820d202510eccfd2d54
1,858
py
Python
experiments/vgg_nr_class_tuning/run_tuning_0001.py
samuilstoychev/research_project
897bde82471ef92ded396aa31d91ec19826d4ce2
[ "MIT" ]
null
null
null
experiments/vgg_nr_class_tuning/run_tuning_0001.py
samuilstoychev/research_project
897bde82471ef92ded396aa31d91ec19826d4ce2
[ "MIT" ]
null
null
null
experiments/vgg_nr_class_tuning/run_tuning_0001.py
samuilstoychev/research_project
897bde82471ef92ded396aa31d91ec19826d4ce2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import subprocess import time import random import numpy as np import os def get_command(n_iterations, buffer_size): cmd = [ "../../../main.py", "--replay=naive-rehearsal", "--time", "--scenario=class", "--experiment=splitCKPLUS", ...
28.151515
74
0.568891
import argparse import subprocess import time import random import numpy as np import os def get_command(n_iterations, buffer_size): cmd = [ "../../../main.py", "--replay=naive-rehearsal", "--time", "--scenario=class", "--experiment=splitCKPLUS", "--tasks=8", ...
true
true
1c2a2dedff1b134f2cee7d5325096717599986d7
101
py
Python
main.py
gujhan/Auto-Filter-Bot-V2
db891e79951eaee81e62ce2671bf61f22c3140c8
[ "MIT" ]
null
null
null
main.py
gujhan/Auto-Filter-Bot-V2
db891e79951eaee81e62ce2671bf61f22c3140c8
[ "MIT" ]
null
null
null
main.py
gujhan/Auto-Filter-Bot-V2
db891e79951eaee81e62ce2671bf61f22c3140c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Tentkotta_Tamil from bot import Bot Bot().run()
11.222222
23
0.623762
from bot import Bot Bot().run()
true
true
1c2a2e47800bcc98af5d5ac0ba4e73947b0c04b6
581
py
Python
01/01_d_twinprimes.py
srinijadharani/DataStructuresLab
fa6fd5fa64467cdb62302c66a708b041792da862
[ "MIT" ]
null
null
null
01/01_d_twinprimes.py
srinijadharani/DataStructuresLab
fa6fd5fa64467cdb62302c66a708b041792da862
[ "MIT" ]
null
null
null
01/01_d_twinprimes.py
srinijadharani/DataStructuresLab
fa6fd5fa64467cdb62302c66a708b041792da862
[ "MIT" ]
null
null
null
# 1d. Program to print twin primes upto a specified limit start = int(input("Enter the starting index from which you want to print twin primes: ")) end = int(input("Enter the end index: ")) # check whether the number in the range of start and end def prime(num): for i in range(2, num): if num % i ==...
32.277778
90
0.598967
start = int(input("Enter the starting index from which you want to print twin primes: ")) end = int(input("Enter the end index: ")) def prime(num): for i in range(2, num): if num % i == 0: return False return True def twin_primes(start, end): for i in range(start, end): ...
true
true
1c2a2f20cb577dcf969648fa9d632824e3e24e69
5,962
py
Python
src/ui/async_wrapper.py
n2qzshce/ham_radio_sync
ffe95a4ef88375b5d5e4503cf770e884644536cd
[ "CNRI-Python", "RSA-MD" ]
8
2021-03-01T17:28:45.000Z
2022-02-10T02:19:41.000Z
src/ui/async_wrapper.py
n2qzshce/ham_radio_sync
ffe95a4ef88375b5d5e4503cf770e884644536cd
[ "CNRI-Python", "RSA-MD" ]
7
2021-03-31T03:37:12.000Z
2021-06-12T20:30:05.000Z
src/ui/async_wrapper.py
n2qzshce/ham_radio_sync
ffe95a4ef88375b5d5e4503cf770e884644536cd
[ "CNRI-Python", "RSA-MD" ]
1
2021-02-24T21:39:51.000Z
2021-02-24T21:39:51.000Z
import base64 import logging import threading import webbrowser import src.radio_sync_version_check from src.ham.migration.migration_manager import MigrationManager from src.ham.radio.radio_importer import RadioImporter from src.ham.radio_generator import RadioGenerator from src.ham.util import radio_types from src.ha...
31.882353
109
0.770211
import base64 import logging import threading import webbrowser import src.radio_sync_version_check from src.ham.migration.migration_manager import MigrationManager from src.ham.radio.radio_importer import RadioImporter from src.ham.radio_generator import RadioGenerator from src.ham.util import radio_types from src.ha...
true
true
1c2a303a8887a5c2904044807958c18cba675be4
2,496
py
Python
googletest/test/gtest_testbridge_test.py
silicon-ghost/googletest
aea0874c4252d47d1da096ad763b9c04b42c8514
[ "BSD-3-Clause" ]
27,963
2015-08-10T19:02:06.000Z
2022-03-31T23:58:03.000Z
googletest/test/gtest_testbridge_test.py
silicon-ghost/googletest
aea0874c4252d47d1da096ad763b9c04b42c8514
[ "BSD-3-Clause" ]
2,662
2015-08-22T11:46:58.000Z
2022-03-30T10:39:53.000Z
googletest/test/gtest_testbridge_test.py
silicon-ghost/googletest
aea0874c4252d47d1da096ad763b9c04b42c8514
[ "BSD-3-Clause" ]
10,982
2015-08-13T02:27:16.000Z
2022-03-31T17:21:27.000Z
#!/usr/bin/env python # # Copyright 2018 Google LLC. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of...
39
78
0.769631
import os from googletest.test import gtest_test_utils binary_name = 'gtest_testbridge_test_' COMMAND = gtest_test_utils.GetTestExecutablePath(binary_name) TESTBRIDGE_NAME = 'TESTBRIDGE_TEST_ONLY' def Assert(condition): if not condition: raise AssertionError class GTestTestFilt...
true
true
1c2a304d35c3829ba5792e0ca3863985062044f3
534
py
Python
coursesApp/migrations/0004_auto_20171116_1603.py
i3dprogrammer/Django-GraduationProject
2445b9f773638a344be8625f0d9ef6c149e68015
[ "MIT" ]
null
null
null
coursesApp/migrations/0004_auto_20171116_1603.py
i3dprogrammer/Django-GraduationProject
2445b9f773638a344be8625f0d9ef6c149e68015
[ "MIT" ]
null
null
null
coursesApp/migrations/0004_auto_20171116_1603.py
i3dprogrammer/Django-GraduationProject
2445b9f773638a344be8625f0d9ef6c149e68015
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-11-16 14:03 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('coursesApp', '0003_course_group'), ] operations = ...
24.272727
104
0.64794
from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('coursesApp', '0003_course_group'), ] operations = [ migrations.AlterField( model_name='course', ...
true
true
1c2a304ee61a30fc3a8a0061a622166496405434
3,322
py
Python
ludwig/models/modules/reduction_modules.py
rajputakhil/ludwig
dd1a37ea1018db6624f05d72c34ae8b0f7068e6c
[ "Apache-2.0" ]
null
null
null
ludwig/models/modules/reduction_modules.py
rajputakhil/ludwig
dd1a37ea1018db6624f05d72c34ae8b0f7068e6c
[ "Apache-2.0" ]
null
null
null
ludwig/models/modules/reduction_modules.py
rajputakhil/ludwig
dd1a37ea1018db6624f05d72c34ae8b0f7068e6c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright (c) 2019 Uber Technologies, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
32.252427
105
0.642685
import logging import tensorflow as tf from ludwig.models.modules.attention_modules import \ reduce_feed_forward_attention from ludwig.utils.misc import get_from_registry from ludwig.utils.tf_utils import sequence_length_3D def reduce_last(sequence, **kwargs): batch_size = tf.shape...
true
true
1c2a30801fe4e9e654ed307ed25de43a00f53da2
5,087
py
Python
bot/cogs/help.py
Squint-Eye/SplatoonBot
3eaac9dc0179b8f40337565fbed8e6d22549850d
[ "MIT" ]
null
null
null
bot/cogs/help.py
Squint-Eye/SplatoonBot
3eaac9dc0179b8f40337565fbed8e6d22549850d
[ "MIT" ]
null
null
null
bot/cogs/help.py
Squint-Eye/SplatoonBot
3eaac9dc0179b8f40337565fbed8e6d22549850d
[ "MIT" ]
3
2018-07-27T19:53:37.000Z
2021-01-25T18:47:39.000Z
import discord import traceback import aiosqlite import datetime import asyncio import sqlite3 import random import sys import os from pathlib import Path from discord.ext import commands from mutagen.mp3 import MP3 Connection = {} class Cog: """Cog for Cog related commands""" def __init__(self, bot): ...
75.925373
1,075
0.716336
import discord import traceback import aiosqlite import datetime import asyncio import sqlite3 import random import sys import os from pathlib import Path from discord.ext import commands from mutagen.mp3 import MP3 Connection = {} class Cog: def __init__(self, bot): self.bot = bot @commands.group(i...
true
true
1c2a3081cdcf39dce96cb80058da5194871dc08f
739
py
Python
text/symbols.py
Shyam-Thombre/MarathiTTS
81c2d2867d313f5b28085cbf67ef4953d4b510bc
[ "BSD-3-Clause" ]
null
null
null
text/symbols.py
Shyam-Thombre/MarathiTTS
81c2d2867d313f5b28085cbf67ef4953d4b510bc
[ "BSD-3-Clause" ]
null
null
null
text/symbols.py
Shyam-Thombre/MarathiTTS
81c2d2867d313f5b28085cbf67ef4953d4b510bc
[ "BSD-3-Clause" ]
null
null
null
""" from https://github.com/keithito/tacotron """ ''' Defines the set of symbols used in text input to the model. The default is a set of ASCII characters that works well for English or text that has been run through Unidecode. For other data, you can modify _characters. See TRAINING_DATA.md for details. ''' fr...
38.894737
196
0.710419
from text import cmudict _pad = '_' _punctuation = '!\'(),.:;? ' _special = '-' _letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' # Prepend "@" to ARPAbet symbols to ensure uniqueness (some are the same as uppercase letters): _arpabet = ['@' + s for s in cmudict.valid_symbols] # Ex...
true
true
1c2a3276b83a04eb6bf875ad134678f4ec8df36b
15,880
py
Python
services/statistics/src/mcfw/cache.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
services/statistics/src/mcfw/cache.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
services/statistics/src/mcfw/cache.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
38.731707
132
0.581801
import base64 from collections import defaultdict, OrderedDict from functools import wraps import hashlib import logging import os import threading import time import types from google.appengine.api import memcache as mod_memcache from google.appengine.ext import db, ndb, deferred from mcfw.consts im...
true
true
1c2a331f4e72ed0442670d09c90d92a72f967dc7
122
py
Python
dev_helpers/cli_gen_roms.py
andypalmer9669/74_series_computer
0b8a4776b49a2380a51863634b48bcc441bf74ec
[ "MIT" ]
null
null
null
dev_helpers/cli_gen_roms.py
andypalmer9669/74_series_computer
0b8a4776b49a2380a51863634b48bcc441bf74ec
[ "MIT" ]
46
2019-02-22T16:46:02.000Z
2020-03-08T20:26:37.000Z
dev_helpers/cli_gen_roms.py
andypalmer9669/74_series_computer
0b8a4776b49a2380a51863634b48bcc441bf74ec
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.path.abspath("../src")) from eight_bit_computer.cli import gen_roms gen_roms()
13.555556
43
0.762295
import sys import os sys.path.append(os.path.abspath("../src")) from eight_bit_computer.cli import gen_roms gen_roms()
true
true
1c2a334cdda87f8717104fd741ae64ebfb91c63c
21,963
py
Python
src/k8s-extension/azext_k8s_extension/partner_extensions/ContainerInsights.py
santosh02iiit/azure-cli-extensions
24247cfa19e2a5894937f19e17fbdc8308b28ef6
[ "MIT" ]
1
2021-08-03T18:32:54.000Z
2021-08-03T18:32:54.000Z
src/k8s-extension/azext_k8s_extension/partner_extensions/ContainerInsights.py
santosh02iiit/azure-cli-extensions
24247cfa19e2a5894937f19e17fbdc8308b28ef6
[ "MIT" ]
1
2021-05-25T20:16:59.000Z
2021-05-25T20:16:59.000Z
src/k8s-extension/azext_k8s_extension/partner_extensions/ContainerInsights.py
santosh02iiit/azure-cli-extensions
24247cfa19e2a5894937f19e17fbdc8308b28ef6
[ "MIT" ]
2
2021-09-22T08:25:32.000Z
2021-09-24T06:55:31.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
47.954148
121
0.642535
import datetime import json from knack.log import get_logger from azure.cli.core.azclierror import InvalidArgumentValueError from azure.cli.core.commands import LongRunningOperation from azure.cli.core.commands.client_factory import get_mgmt_service_client, get_subscription_id from azure.cli.core.uti...
true
true
1c2a34111efada0faf97590e8caac71b57f54288
107
py
Python
FRETlines/models/__init__.py
AndersBarth/FRETlines
40701c8d5ee1f0639e3e3c0e2eae1c3b77ba63d7
[ "MIT" ]
null
null
null
FRETlines/models/__init__.py
AndersBarth/FRETlines
40701c8d5ee1f0639e3e3c0e2eae1c3b77ba63d7
[ "MIT" ]
null
null
null
FRETlines/models/__init__.py
AndersBarth/FRETlines
40701c8d5ee1f0639e3e3c0e2eae1c3b77ba63d7
[ "MIT" ]
null
null
null
from .distance_distributions import normal_distribution, chi_distribution, worm_like_chain, gaussian_chain
53.5
106
0.897196
from .distance_distributions import normal_distribution, chi_distribution, worm_like_chain, gaussian_chain
true
true
1c2a3499b77be3746526a645b8f924c2de4347c3
5,679
py
Python
FiniteElement/Easy01_Elastic/codes2d/example2d.py
clatterrr/NumericalComputationProjectsCollection
95caf3121dc71a91b8e73c1ccc5909f4ab2551ea
[ "MIT" ]
1
2022-01-19T08:55:55.000Z
2022-01-19T08:55:55.000Z
FiniteElement/Easy01_Elastic/codes2d/example2d.py
clatterrr/NumericalComputationProjectsCollection
95caf3121dc71a91b8e73c1ccc5909f4ab2551ea
[ "MIT" ]
null
null
null
FiniteElement/Easy01_Elastic/codes2d/example2d.py
clatterrr/NumericalComputationProjectsCollection
95caf3121dc71a91b8e73c1ccc5909f4ab2551ea
[ "MIT" ]
null
null
null
import numpy as np import scipy.io as scio import math """ 参考论文:Matlab-Implementation of the Finite Element Method in Elasticity 本地参考代码:D:\FluidSim\FluidSim\FEMNEW\2002-AJ_CC_FS_KR-Matlab_Implementation_FEM_Elasticity\Software2\fem_lame2d 完成状态:主体部分完成,未后处理 """ coordinates = scio.loadmat('coordinates.mat')['coordinate...
30.697297
109
0.514703
import numpy as np import scipy.io as scio import math coordinates = scio.loadmat('coordinates.mat')['coordinates'] elements3 = scio.loadmat('elements3.mat')['elements3'] elements4 = scio.loadmat('elements4.mat')['elements4'] dirichlet = scio.loadmat('dirichlet.mat')['dirichlet'] elements3 -= 1 elements4 -= 1 dirichlet...
true
true
1c2a34ff700c8681cc1b630f1281b5a86943e244
82
py
Python
routers/__init__.py
JoaoEmanuell/hash_api
d99a93ec0cbe02ad98cac26f3a78f8830bb8930a
[ "MIT" ]
null
null
null
routers/__init__.py
JoaoEmanuell/hash_api
d99a93ec0cbe02ad98cac26f3a78f8830bb8930a
[ "MIT" ]
null
null
null
routers/__init__.py
JoaoEmanuell/hash_api
d99a93ec0cbe02ad98cac26f3a78f8830bb8930a
[ "MIT" ]
null
null
null
from .api.api_route import api from .documentation.documentation_route import docs
41
51
0.865854
from .api.api_route import api from .documentation.documentation_route import docs
true
true
1c2a36374d0520100033fadded371039cef68434
36,506
py
Python
taco/full_node/full_node_store.py
MinerGreggy/taco-blockchain
4f8e9c9d7df2181c81b247e35bdb5ad4ff99b19d
[ "Apache-2.0" ]
18
2021-07-14T09:56:37.000Z
2022-02-09T04:32:58.000Z
taco/full_node/full_node_store.py
MinerGreggy/taco-blockchain
4f8e9c9d7df2181c81b247e35bdb5ad4ff99b19d
[ "Apache-2.0" ]
9
2021-07-14T15:48:28.000Z
2021-10-10T02:32:59.000Z
taco/full_node/full_node_store.py
MinerGreggy/taco-blockchain
4f8e9c9d7df2181c81b247e35bdb5ad4ff99b19d
[ "Apache-2.0" ]
10
2021-07-18T03:22:43.000Z
2022-03-15T08:40:06.000Z
import asyncio import dataclasses import logging import time from typing import Dict, List, Optional, Set, Tuple from taco.consensus.block_record import BlockRecord from taco.consensus.blockchain_interface import BlockchainInterface from taco.consensus.constants import ConsensusConstants from taco.consensus.difficulty...
45.124845
120
0.624418
import asyncio import dataclasses import logging import time from typing import Dict, List, Optional, Set, Tuple from taco.consensus.block_record import BlockRecord from taco.consensus.blockchain_interface import BlockchainInterface from taco.consensus.constants import ConsensusConstants from taco.consensus.difficulty...
true
true
1c2a377e35a8fb9747cde7fe17a731ee57ebf25b
2,018
py
Python
pylearn2/cross_validation/blocks.py
jacobpeplinskiV2/pylearn2
478903d84bfa2b317e78be4e0d78588c2f58496e
[ "BSD-3-Clause" ]
null
null
null
pylearn2/cross_validation/blocks.py
jacobpeplinskiV2/pylearn2
478903d84bfa2b317e78be4e0d78588c2f58496e
[ "BSD-3-Clause" ]
null
null
null
pylearn2/cross_validation/blocks.py
jacobpeplinskiV2/pylearn2
478903d84bfa2b317e78be4e0d78588c2f58496e
[ "BSD-3-Clause" ]
null
null
null
""" Cross-validation with blocks. """ __author__ = "Steven Kearnes" __copyright__ = "Copyright 2014, Stanford University" __license__ = "3-clause BSD" from six.moves import xrange from pylearn2.blocks import StackedBlocks class StackedBlocksCV(object): """ Multi-layer transforms using cross-validation model...
27.643836
74
0.596135
__author__ = "Steven Kearnes" __copyright__ = "Copyright 2014, Stanford University" __license__ = "3-clause BSD" from six.moves import xrange from pylearn2.blocks import StackedBlocks class StackedBlocksCV(object): def __init__(self, layers): stacked_blocks = [] n_folds = len(layers[0]) ...
true
true
1c2a379a8f10afe4f6ce2ebb2e284c4cbec0d0cf
10,123
py
Python
sentry_sdk/client.py
millimat/sentry-python
5b3412ddbf8beb8961d873d84d60642b8738cfc6
[ "BSD-2-Clause" ]
2
2019-12-04T16:24:44.000Z
2020-04-06T21:49:34.000Z
env/lib/python3.7/site-packages/sentry_sdk/client.py
mejeng/kasir
cc6f9158b61c0cb45078ddf798af9588c8771311
[ "MIT" ]
null
null
null
env/lib/python3.7/site-packages/sentry_sdk/client.py
mejeng/kasir
cc6f9158b61c0cb45078ddf798af9588c8771311
[ "MIT" ]
null
null
null
import os import uuid import random from datetime import datetime import socket from sentry_sdk._compat import string_types, text_type, iteritems from sentry_sdk.utils import ( handle_in_app, get_type_name, capture_internal_exceptions, current_stacktrace, logger, ) from sentry_sdk.serializer import...
32.654839
194
0.58293
import os import uuid import random from datetime import datetime import socket from sentry_sdk._compat import string_types, text_type, iteritems from sentry_sdk.utils import ( handle_in_app, get_type_name, capture_internal_exceptions, current_stacktrace, logger, ) from sentry_sdk.serializer import...
true
true
1c2a37eb46ea70f6ea86a7ce6b3f2ccf53dc0a10
33
py
Python
pytrain/GaussianNaiveBayes/__init__.py
pytrain/pytrain-shallow
c873a6f11f1dd940da12e7c9a3c961507d064d9a
[ "MIT" ]
20
2016-09-03T10:56:06.000Z
2020-08-21T01:43:47.000Z
pytrain/GaussianNaiveBayes/__init__.py
pytrain/pytrain
c873a6f11f1dd940da12e7c9a3c961507d064d9a
[ "MIT" ]
8
2016-11-14T12:33:38.000Z
2017-07-14T15:43:53.000Z
pytrain/GaussianNaiveBayes/__init__.py
pytrain/pytrain
c873a6f11f1dd940da12e7c9a3c961507d064d9a
[ "MIT" ]
7
2017-02-09T16:50:37.000Z
2022-01-02T01:18:56.000Z
from GaussianNaiveBayes import *
16.5
32
0.848485
from GaussianNaiveBayes import *
true
true
1c2a394ccf2c347ca05e095ca67ee0586e609ab5
1,070
py
Python
01-DesenvolvimentoDeSistemas/02-LinguagensDeProgramacao/01-Python/01-ListaDeExercicios/02-Aluno/Roberto/exc0098.py
moacirsouza/nadas
ad98d73b4281d1581fd2b2a9d29001acb426ee56
[ "MIT" ]
1
2020-07-03T13:54:18.000Z
2020-07-03T13:54:18.000Z
01-DesenvolvimentoDeSistemas/02-LinguagensDeProgramacao/01-Python/01-ListaDeExercicios/02-Aluno/Roberto/exc0098.py
moacirsouza/nadas
ad98d73b4281d1581fd2b2a9d29001acb426ee56
[ "MIT" ]
null
null
null
01-DesenvolvimentoDeSistemas/02-LinguagensDeProgramacao/01-Python/01-ListaDeExercicios/02-Aluno/Roberto/exc0098.py
moacirsouza/nadas
ad98d73b4281d1581fd2b2a9d29001acb426ee56
[ "MIT" ]
null
null
null
print(""" 098) Faça um programa que tenha uma função chamada contador(), que receba três parâmetros: inicio, fim e passo. Seu programa tem que realizar três contagens através da função criada: A) de 1 até 10, de 1 em 1 B) de 10 até 0, de 2 em 2 C) uma contagem personalizada """) from time import sleep def contador(i...
24.883721
182
0.528037
print(""" 098) Faça um programa que tenha uma função chamada contador(), que receba três parâmetros: inicio, fim e passo. Seu programa tem que realizar três contagens através da função criada: A) de 1 até 10, de 1 em 1 B) de 10 até 0, de 2 em 2 C) uma contagem personalizada """) from time import sleep def contador(i...
true
true
1c2a3b799d423cb0779da3388e71f5ac8cb1b380
13,687
py
Python
tests/end2end/test_end2end_tfc_w1a1.py
Tobi-Alonso/finn
ea73d873e66414590f196dc71c398ba345301c24
[ "BSD-3-Clause" ]
null
null
null
tests/end2end/test_end2end_tfc_w1a1.py
Tobi-Alonso/finn
ea73d873e66414590f196dc71c398ba345301c24
[ "BSD-3-Clause" ]
null
null
null
tests/end2end/test_end2end_tfc_w1a1.py
Tobi-Alonso/finn
ea73d873e66414590f196dc71c398ba345301c24
[ "BSD-3-Clause" ]
1
2020-05-14T13:50:40.000Z
2020-05-14T13:50:40.000Z
# Copyright (c) 2020, Xilinx # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the follow...
45.623333
88
0.760064
import os from pkgutil import get_data import pytest import numpy as np # import pytorch before onnx, so we make sure to import onnx first import onnx # NOQA import onnx.numpy_helper as nph import finn.transformation.fpgadataflow.convert_to_hls_layers as to_hls import finn.transformati...
true
true
1c2a3bac8466ffd9b14db8cf3b7c578fe5dcb6d8
1,746
py
Python
smartphones_parse/spiders/beliy_veter.py
Vital77766688/smartphones_parse
a768d7e7f9605b3a4cc3c5eaaaeecfd5ec7610a3
[ "MIT" ]
null
null
null
smartphones_parse/spiders/beliy_veter.py
Vital77766688/smartphones_parse
a768d7e7f9605b3a4cc3c5eaaaeecfd5ec7610a3
[ "MIT" ]
null
null
null
smartphones_parse/spiders/beliy_veter.py
Vital77766688/smartphones_parse
a768d7e7f9605b3a4cc3c5eaaaeecfd5ec7610a3
[ "MIT" ]
null
null
null
import json import re from math import ceil import scrapy from ..utils import clean_price, clean_title """ TODO: Обработать сообщение "Этот товар уже закончился" """ def get_url_from_style(value): return re.search('(url\(\')(.*)(\'\))', value).group(2) class BeliyVeterSpider(scrapy.Spider): name = 'beliy_veter...
28.16129
95
0.699885
import json import re from math import ceil import scrapy from ..utils import clean_price, clean_title def get_url_from_style(value): return re.search('(url\(\')(.*)(\'\))', value).group(2) class BeliyVeterSpider(scrapy.Spider): name = 'beliy_veter' def start_requests(self, **kwargs): url = 'https://shop.k...
true
true
1c2a3bf120739866209aec206e9fc18bc21d1615
4,712
py
Python
Python/Nucleo/BuildGraf.py
VanhelsingX3/Network-of-interconnected-servers-AED
e97618ccb44e608c1cfe022f25763424b93de449
[ "MIT" ]
null
null
null
Python/Nucleo/BuildGraf.py
VanhelsingX3/Network-of-interconnected-servers-AED
e97618ccb44e608c1cfe022f25763424b93de449
[ "MIT" ]
null
null
null
Python/Nucleo/BuildGraf.py
VanhelsingX3/Network-of-interconnected-servers-AED
e97618ccb44e608c1cfe022f25763424b93de449
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #Clase para los vertices. class Vertex: def __init__(self,name): self.name = name self.edges ={} self.weight = None #Utilizada para agregar una arista a un vertices, recibiendo sus caracteristicas. def addEdge(self,node,distance,bandwidth,usersOnline,traffic,meanType): self.edges[nod...
34.394161
150
0.644312
class Vertex: def __init__(self,name): self.name = name self.edges ={} self.weight = None def addEdge(self,node,distance,bandwidth,usersOnline,traffic,meanType): self.edges[node.name] = self.getWeight(distance,bandwidth,usersOnline,traffic,meanType) def getWeight(self,distance,bandwidth,usersO...
true
true