hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
1c3617b6500f1bd1ba50dbb168bfa57fd6d2067f
4,792
py
Python
woldrnaseq/transcript_types.py
detrout/woldlab-rna-seq
02099219ff783503e8b6acce94d96b2b374b72da
[ "BSD-3-Clause" ]
2
2016-08-31T18:49:47.000Z
2016-11-07T18:08:17.000Z
woldrnaseq/transcript_types.py
detrout/woldlab-rna-seq
02099219ff783503e8b6acce94d96b2b374b72da
[ "BSD-3-Clause" ]
15
2016-02-29T23:13:55.000Z
2019-04-29T18:09:05.000Z
woldrnaseq/transcript_types.py
detrout/woldlab-rna-seq
02099219ff783503e8b6acce94d96b2b374b72da
[ "BSD-3-Clause" ]
2
2015-10-22T23:23:51.000Z
2016-08-09T18:53:49.000Z
#!/usr/bin/python3 """Read annotation bam and count reads per gene_type """ from argparse import ArgumentParser from collections import Counter import logging from pathlib import Path import pandas import pysam import time from .common import ( add_debug_arguments, add_metadata_arguments, add_separator_arg...
32.598639
98
0.692613
from argparse import ArgumentParser from collections import Counter import logging from pathlib import Path import pandas import pysam import time from .common import ( add_debug_arguments, add_metadata_arguments, add_separator_argument, add_version_argument, configure_logging, get_seperator, ...
true
true
1c361a34076f3e0c90451cf912d877849c9e4c39
737
py
Python
src/genie/libs/parser/bigip/get_ltm_persistenceuniversal.py
nujo/genieparser
083b01efc46afc32abe1a1858729578beab50cd3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/bigip/get_ltm_persistenceuniversal.py
nujo/genieparser
083b01efc46afc32abe1a1858729578beab50cd3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/bigip/get_ltm_persistenceuniversal.py
nujo/genieparser
083b01efc46afc32abe1a1858729578beab50cd3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
# Global Imports import json from collections import defaultdict # Metaparser from genie.metaparser import MetaParser # ============================================= # Collection for '/mgmt/tm/ltm/persistence/universal' resources # ============================================= class LtmPersistenceUniversalSchema(Me...
21.676471
63
0.620081
import json from collections import defaultdict from genie.metaparser import MetaParser class LtmPersistenceUniversalSchema(MetaParser): schema = {} class LtmPersistenceUniversal(LtmPersistenceUniversalSchema): cli_command = "/mgmt/tm/ltm/persistence/universal" def rest(self): respons...
true
true
1c361c41097f02af037446129523c1e8185eb54f
2,528
py
Python
pwn/crypto/RSA.py
Haabb/pwnfork
c2530ea2fd2f9d4e65df234afeb8f7def93afe49
[ "MIT" ]
1
2016-08-29T03:38:42.000Z
2016-08-29T03:38:42.000Z
pwn/crypto/RSA.py
Haabb/pwnfork
c2530ea2fd2f9d4e65df234afeb8f7def93afe49
[ "MIT" ]
null
null
null
pwn/crypto/RSA.py
Haabb/pwnfork
c2530ea2fd2f9d4e65df234afeb8f7def93afe49
[ "MIT" ]
null
null
null
import pwn from util import * def int2bytes(n): """PKCS#1 integer to bytes conversion, as used by RSA""" string = "" while n > 0: string = "%s%s" % (chr(n & 0xFF), string) n /= 256 return string def bytes2int(bytes): """PKCS#1 bytes to integer conversion, as used by RSA""" inte...
28.088889
80
0.578323
import pwn from util import * def int2bytes(n): string = "" while n > 0: string = "%s%s" % (chr(n & 0xFF), string) n /= 256 return string def bytes2int(bytes): integer = 0 for byte in bytes: integer *= 256 if isinstance(byte,str): byte = ord(byte) integer +=...
true
true
1c361c888a0ba57c935a8615bcc29c5859ff43b9
677
py
Python
Careers/migrations/0002_auto_20201011_0044.py
CiganOliviu/cigan_enterprize
8a4f4c06197655622ca08f92ec793add7d0be0cd
[ "Apache-2.0" ]
null
null
null
Careers/migrations/0002_auto_20201011_0044.py
CiganOliviu/cigan_enterprize
8a4f4c06197655622ca08f92ec793add7d0be0cd
[ "Apache-2.0" ]
null
null
null
Careers/migrations/0002_auto_20201011_0044.py
CiganOliviu/cigan_enterprize
8a4f4c06197655622ca08f92ec793add7d0be0cd
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.8 on 2020-10-10 21:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Careers', '0001_initial'), ] operations = [ migrations.AddField( model_name='availableinternship', name='representat...
28.208333
106
0.633678
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Careers', '0001_initial'), ] operations = [ migrations.AddField( model_name='availableinternship', name='representation_image', field=models.ImageField...
true
true
1c361c8caf2b4b2ddae381e8797de479157bf22a
2,163
py
Python
pinyin/word_2.py
JohndeVostok/THU-Artificial-Intelligent
c721274f7176b1eab35dc467678551982bf43409
[ "MIT" ]
null
null
null
pinyin/word_2.py
JohndeVostok/THU-Artificial-Intelligent
c721274f7176b1eab35dc467678551982bf43409
[ "MIT" ]
null
null
null
pinyin/word_2.py
JohndeVostok/THU-Artificial-Intelligent
c721274f7176b1eab35dc467678551982bf43409
[ "MIT" ]
null
null
null
import json import math import sys a1 = 0.001 a2 = 0.009 b2 = 0.99 def getP(term): v0 = charDict[term[0]] v1 = charDict[term[1]] p1 = 1 h = str(v1) if h in term1Cnt: p1 += term1Cnt[h] p2 = 1 h = str(v0 * n + v1) if h in term2Cnt: p2 += term2Cnt[h] p3 = 1 if term...
26.060241
55
0.443828
import json import math import sys a1 = 0.001 a2 = 0.009 b2 = 0.99 def getP(term): v0 = charDict[term[0]] v1 = charDict[term[1]] p1 = 1 h = str(v1) if h in term1Cnt: p1 += term1Cnt[h] p2 = 1 h = str(v0 * n + v1) if h in term2Cnt: p2 += term2Cnt[h] p3 = 1 if term...
true
true
1c361d5cd19b6aed918426fa3fcaf54237bf462b
415
py
Python
server/executor/datasets/mnist.py
wkcn/NNBaby
f0816ffa6faa7deb1116495a8bcbfe8f57413c7d
[ "MIT" ]
3
2018-04-03T09:27:36.000Z
2021-04-01T13:22:48.000Z
server/executor/datasets/mnist.py
wkcn/NNBaby
f0816ffa6faa7deb1116495a8bcbfe8f57413c7d
[ "MIT" ]
null
null
null
server/executor/datasets/mnist.py
wkcn/NNBaby
f0816ffa6faa7deb1116495a8bcbfe8f57413c7d
[ "MIT" ]
3
2018-04-03T10:05:39.000Z
2021-08-15T04:58:46.000Z
import keras from keras.datasets import mnist (x_train, y_train), (x_test, y_test) = mnist.load_data() rows, cols = 28, 28 num_classes = 10 # NHWC x_train = x_train.reshape((x_train.shape[0], rows, cols, 1)) / 255.0 x_test = x_test.reshape((x_test.shape[0], rows, cols, 1)) / 255.0 y_train = keras.utils.np_utils.to_cate...
41.5
68
0.749398
import keras from keras.datasets import mnist (x_train, y_train), (x_test, y_test) = mnist.load_data() rows, cols = 28, 28 num_classes = 10 x_train = x_train.reshape((x_train.shape[0], rows, cols, 1)) / 255.0 x_test = x_test.reshape((x_test.shape[0], rows, cols, 1)) / 255.0 y_train = keras.utils.np_utils.to_categorica...
true
true
1c361de296a4c59d4fa243c558d65acd10f37dbc
5,913
py
Python
tests/api/utils/test_alembic_util.py
hayesgb/mlrun
9a8b469b37d7d74f2d04dc956b2966f88fe4e890
[ "Apache-2.0" ]
1
2021-02-17T08:12:33.000Z
2021-02-17T08:12:33.000Z
tests/api/utils/test_alembic_util.py
hayesgb/mlrun
9a8b469b37d7d74f2d04dc956b2966f88fe4e890
[ "Apache-2.0" ]
null
null
null
tests/api/utils/test_alembic_util.py
hayesgb/mlrun
9a8b469b37d7d74f2d04dc956b2966f88fe4e890
[ "Apache-2.0" ]
1
2021-08-30T21:43:38.000Z
2021-08-30T21:43:38.000Z
import os.path import pathlib import shutil import typing import unittest.mock import alembic import alembic.config import pytest import mlrun.api.utils.db.alembic from mlrun import mlconf class Constants(object): revision_history = ["revision2", "revision1"] initial_revision = "revision1" latest_revisi...
34.782353
114
0.718079
import os.path import pathlib import shutil import typing import unittest.mock import alembic import alembic.config import pytest import mlrun.api.utils.db.alembic from mlrun import mlconf class Constants(object): revision_history = ["revision2", "revision1"] initial_revision = "revision1" latest_revisi...
true
true
1c3620597ea5f219fef8429209a315a374c1297b
44,777
py
Python
python/pyarrow/tests/test_convert_builtin.py
stspyder/arrow
16b2a44be2b71bc1a7c95df70795664b4d450b6d
[ "Apache-2.0" ]
null
null
null
python/pyarrow/tests/test_convert_builtin.py
stspyder/arrow
16b2a44be2b71bc1a7c95df70795664b4d450b6d
[ "Apache-2.0" ]
6
2020-07-01T20:18:37.000Z
2021-01-07T16:22:13.000Z
python/pyarrow/tests/test_convert_builtin.py
stspyder/arrow
16b2a44be2b71bc1a7c95df70795664b4d450b6d
[ "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...
30.398506
78
0.599415
import pytest from pyarrow.pandas_compat import _pandas_api import pyarrow as pa import collections import datetime import decimal import itertools import math import traceback import numpy as np import pytz int_type_pairs = [ (np.int8, pa.int8()), (np.int16, pa.int16()), (np.int32, ...
true
true
1c362088d03232252ddb9675140953581fcb031e
4,300
py
Python
Taller_06_ControlFor/main.py
BarinasJ/Algoritmos_Programacion
fe9fe222619e1c90639a6e365454e06e2621af06
[ "MIT" ]
null
null
null
Taller_06_ControlFor/main.py
BarinasJ/Algoritmos_Programacion
fe9fe222619e1c90639a6e365454e06e2621af06
[ "MIT" ]
null
null
null
Taller_06_ControlFor/main.py
BarinasJ/Algoritmos_Programacion
fe9fe222619e1c90639a6e365454e06e2621af06
[ "MIT" ]
null
null
null
archivo = open('paises.txt', 'r')#imprima la posicion de colombia """ c=0 lista=[] for i in archivo: lista.append(i) a=" ".join(lista) c=c+1 if(a=="Colombia: Bogotá\n"): break lista=[] print(c) """ #Imprima todos los paises lista=[] for i in archivo: a=i.index(":") for r in range(0,a): lista....
18.942731
274
0.616279
archivo = open('paises.txt', 'r') lista=[] for i in archivo: a=i.index(":") for r in range(0,a): lista.append(i[r]) a="".join(lista) print(a) lista=[] lista=[] paises=[] for e in archivo: a=e.index(":") for r in range(0,a): lista.append(e[r]) a="".join(lista) paises.append(a) lista=[] for ...
true
true
1c362122de240151bc2c891b1ed8ffb1cf4dc369
12,603
py
Python
bokeh/embed/util.py
masdao/bokeh
fc39b47387ae37ba5b06ebabf9bae0afb3eada3d
[ "BSD-3-Clause" ]
1
2018-12-19T06:52:07.000Z
2018-12-19T06:52:07.000Z
bokeh/embed/util.py
masdao/bokeh
fc39b47387ae37ba5b06ebabf9bae0afb3eada3d
[ "BSD-3-Clause" ]
null
null
null
bokeh/embed/util.py
masdao/bokeh
fc39b47387ae37ba5b06ebabf9bae0afb3eada3d
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENSE.txt, distributed with this software. #---------------------------------------------------...
30.965602
137
0.566611
from __future__ import absolute_import, division, print_function, unicode_literals import logging log = logging.getLogger(__name__) from collections import Sequence, OrderedDict from six import string_types from ..core.json_encoder import serialize_json from ..core.templates import _env, DOC_JS, F...
true
true
1c362224e270a6a441cc8331fe7cff5734ba93c3
5,627
py
Python
main.py
gdaguilarc/intelligent-systems
af8c7374a3225ad5944e63956a666ff1ccb6532d
[ "MIT" ]
null
null
null
main.py
gdaguilarc/intelligent-systems
af8c7374a3225ad5944e63956a666ff1ccb6532d
[ "MIT" ]
10
2021-02-02T22:58:28.000Z
2022-02-10T02:10:26.000Z
main.py
gdaguilarc/intelligent-systems
af8c7374a3225ad5944e63956a666ff1ccb6532d
[ "MIT" ]
null
null
null
# Proyecto Final # Clustering with kmeans a group of numbers from an image, crop and then predict the label with a NN # Location: # Tecnologico de Monterrey Campus Ciudad de México # Contributors: # Andrea Beatriz Becerra Bolaños - A01337434 # Guillermo David Aguilar Castilleja - A01337242 # Dependencies: # tensorfl...
25.461538
100
0.665897
from datetime import date import random from pathlib import Path from PIL import Image, ImageOps from sklearn.cluster import KMeans import numpy as np import tensorflow as tf from tensorflow.keras.datasets import mnist from tensorflow.keras.layers import Dense, Flatten, Dropout, Conv2D, BatchNormalization...
true
true
1c3622adcfb1f767e507a0d34984f641b7721a84
4,248
py
Python
core/circuit.py
ethanabrooks/pytorch-dnc
bf7a039e3062742654364fb80b1ab5d44e5746f8
[ "MIT" ]
null
null
null
core/circuit.py
ethanabrooks/pytorch-dnc
bf7a039e3062742654364fb80b1ab5d44e5746f8
[ "MIT" ]
null
null
null
core/circuit.py
ethanabrooks/pytorch-dnc
bf7a039e3062742654364fb80b1ab5d44e5746f8
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class Circuit( nn.Module ): # NOTE: basically this whole module is treated as a custom rnn cell d...
39.333333
114
0.649953
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class Circuit( nn.Module ): def __init__(self, args): super(Circuit, self).__init__() ...
true
true
1c362625e0815188ed59394ae7a59039a798e9ab
973
py
Python
class10/exercises/ex4_cf_ascompleted_procs.py
ksannedhi/pyplus_course
fc3499f2dfef472dc49fe6caddf2e6e2be160f4b
[ "Apache-2.0" ]
39
2019-03-03T18:16:55.000Z
2022-02-17T17:05:18.000Z
class10/exercises/ex4_cf_ascompleted_procs.py
ksannedhi/pyplus_course
fc3499f2dfef472dc49fe6caddf2e6e2be160f4b
[ "Apache-2.0" ]
1
2020-06-17T22:39:28.000Z
2020-06-17T22:39:28.000Z
class10/exercises/ex4_cf_ascompleted_procs.py
ksannedhi/pyplus_course
fc3499f2dfef472dc49fe6caddf2e6e2be160f4b
[ "Apache-2.0" ]
77
2019-01-25T10:41:23.000Z
2022-03-14T21:35:59.000Z
from concurrent.futures import ProcessPoolExecutor, as_completed import time from my_devices import network_devices from my_functions import ssh_command2 def main(): """ Use concurrent futures threading to simultaneously gather "show version" output from devices. Wait for all threads to complete. Record t...
26.297297
97
0.663926
from concurrent.futures import ProcessPoolExecutor, as_completed import time from my_devices import network_devices from my_functions import ssh_command2 def main(): start_time = time.time() max_procs = 5 pool = ProcessPoolExecutor(max_procs) futures = [] for device in network_devices:...
true
true
1c362689a0ad0e196248420c051bea54c265ad01
40,370
py
Python
dsl_parser/rel_graph.py
mistio/cloudify-dsl-parser
212864f77591a91ea401c4cfcf99f260d8e41ab3
[ "Apache-2.0" ]
null
null
null
dsl_parser/rel_graph.py
mistio/cloudify-dsl-parser
212864f77591a91ea401c4cfcf99f260d8e41ab3
[ "Apache-2.0" ]
null
null
null
dsl_parser/rel_graph.py
mistio/cloudify-dsl-parser
212864f77591a91ea401c4cfcf99f260d8e41ab3
[ "Apache-2.0" ]
null
null
null
######## # Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
42.139875
90
0.623309
mport collections from random import choice from string import ascii_lowercase, digits import networkx as nx from dsl_parser import constants from dsl_parser import exceptions NODES = 'nodes' RELATIONSHIPS = 'relationships' DEPENDS_ON_REL_TYPE = constants.DEPENDS_ON_REL_TYPE CONNECTED_TO_REL_TYPE = constants.CONNECT...
true
true
1c362714be819cfd94e050bb3ff14a6468e2694a
4,046
py
Python
src/third_party/beaengine/tests/0f65.py
CrackerCat/rp
5fe693c26d76b514efaedb4084f6e37d820db023
[ "MIT" ]
1
2022-01-17T17:40:29.000Z
2022-01-17T17:40:29.000Z
src/third_party/beaengine/tests/0f65.py
CrackerCat/rp
5fe693c26d76b514efaedb4084f6e37d820db023
[ "MIT" ]
null
null
null
src/third_party/beaengine/tests/0f65.py
CrackerCat/rp
5fe693c26d76b514efaedb4084f6e37d820db023
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This progra...
45.460674
82
0.672269
from headers.BeaEnginePython import * from nose.tools import * class TestSuite: def test(self): Buffer = bytes.fromhex('660f659011223344') myDisasm = Disasm(Buffer) myDisasm.read() assert_equal(hex(myDisasm.infos.Instruction.Opcode), '0xf65') ...
true
true
1c3628455a1625f4ac5ca3b93c99383ec6b9c2e6
6,391
py
Python
test/paper_examples/test_axiv_paper_examples.py
ykaitao/gluon-ts
9622550974e9e0819e25438fc45353f8a6474b55
[ "Apache-2.0" ]
1
2020-01-19T13:27:51.000Z
2020-01-19T13:27:51.000Z
test/paper_examples/test_axiv_paper_examples.py
ykaitao/gluon-ts
9622550974e9e0819e25438fc45353f8a6474b55
[ "Apache-2.0" ]
1
2021-08-29T08:20:37.000Z
2021-09-02T09:00:52.000Z
test/paper_examples/test_axiv_paper_examples.py
ykaitao/gluon-ts
9622550974e9e0819e25438fc45353f8a6474b55
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
34.923497
78
0.637615
from gluonts.dataset.artificial import constant_dataset from gluonts.dataset.field_names import FieldName def test_listing_1(): from gluonts.dataset.repository.datasets import get_dataset from gluonts.model.deepar import DeepAREstimator from gluonts.trainer import Trainer from gluonts.ev...
true
true
1c362a8ce127fd4d5b2b6dbfe44d6a581ddc66d6
2,651
py
Python
ml_service/util/smoke_test_scoring_service.py
CloudBreadPaPa/MLOpsPython
6f5744febf443a532ee94839823704aa04893f6c
[ "MIT" ]
null
null
null
ml_service/util/smoke_test_scoring_service.py
CloudBreadPaPa/MLOpsPython
6f5744febf443a532ee94839823704aa04893f6c
[ "MIT" ]
null
null
null
ml_service/util/smoke_test_scoring_service.py
CloudBreadPaPa/MLOpsPython
6f5744febf443a532ee94839823704aa04893f6c
[ "MIT" ]
null
null
null
import os import sys import argparse import requests import time from azureml.core import Workspace from azureml.core.webservice import AksWebservice, AciWebservice sys.path.append(os.path.abspath("./ml_service/util")) # NOQA: E402 from env_variables import Env import secrets input = {"data": [[1, 2, 3, 4, 5, 6, 7, ...
27.05102
69
0.610336
import os import sys import argparse import requests import time from azureml.core import Workspace from azureml.core.webservice import AksWebservice, AciWebservice sys.path.append(os.path.abspath("./ml_service/util")) from env_variables import Env import secrets input = {"data": [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], ...
true
true
1c362ad7486b0a1887b8ed6c9c386259848b5a4b
863
py
Python
iss.py
menosvelasco/se-q3-iss
03f52a6ee2305ec4aa5fea1953212cb35a68db8d
[ "MIT" ]
null
null
null
iss.py
menosvelasco/se-q3-iss
03f52a6ee2305ec4aa5fea1953212cb35a68db8d
[ "MIT" ]
null
null
null
iss.py
menosvelasco/se-q3-iss
03f52a6ee2305ec4aa5fea1953212cb35a68db8d
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = 'Manuel Velasco' import requests def astronaut_info(): astronauts_names = requests.get("http://api.open-notify.org/astros.json") list_name = astronauts_names.json()["people"] print(f'number of astronaut {len(list_name)}') for value in list_name: print(f"...
19.177778
77
0.645423
__author__ = 'Manuel Velasco' import requests def astronaut_info(): astronauts_names = requests.get("http://api.open-notify.org/astros.json") list_name = astronauts_names.json()["people"] print(f'number of astronaut {len(list_name)}') for value in list_name: print(f"{value['name']} on ab...
true
true
1c362b0ddeedbaabeba6cd52adde96baee9230d6
1,050
py
Python
pytezos/rpc/__init__.py
jpic/pytezos
39327363235902de9355e667b8661345865bddd1
[ "MIT" ]
null
null
null
pytezos/rpc/__init__.py
jpic/pytezos
39327363235902de9355e667b8661345865bddd1
[ "MIT" ]
null
null
null
pytezos/rpc/__init__.py
jpic/pytezos
39327363235902de9355e667b8661345865bddd1
[ "MIT" ]
null
null
null
from pytezos.rpc.shell import * from pytezos.rpc.protocol import * from pytezos.rpc.helpers import * from pytezos.rpc.search import * from pytezos.rpc.node import RpcNode class RpcProvider: def __init__(self, **urls): self.urls = urls @lru_cache(maxsize=None) def __getattr__(self, network) -> Sh...
25.609756
80
0.642857
from pytezos.rpc.shell import * from pytezos.rpc.protocol import * from pytezos.rpc.helpers import * from pytezos.rpc.search import * from pytezos.rpc.node import RpcNode class RpcProvider: def __init__(self, **urls): self.urls = urls @lru_cache(maxsize=None) def __getattr__(self, network) -> Sh...
true
true
1c362c8d86c2a4b4878f2d6fd129b56d26ac9d88
8,528
py
Python
tests/models/test_listeners.py
arielmorelli/server_core
b34e3b334c5255bd60df0dc68ed16473e5b43ad7
[ "Apache-2.0" ]
null
null
null
tests/models/test_listeners.py
arielmorelli/server_core
b34e3b334c5255bd60df0dc68ed16473e5b43ad7
[ "Apache-2.0" ]
null
null
null
tests/models/test_listeners.py
arielmorelli/server_core
b34e3b334c5255bd60df0dc68ed16473e5b43ad7
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 import datetime import functools from nose.tools import ( eq_, ) from parameterized import parameterized from .. import DatabaseTest from ... import lane from ... import model from ...config import Configuration from ...model import ( CachedFeed, ConfigurationSetting, create, sit...
38.588235
115
0.681168
import datetime import functools from nose.tools import ( eq_, ) from parameterized import parameterized from .. import DatabaseTest from ... import lane from ... import model from ...config import Configuration from ...model import ( CachedFeed, ConfigurationSetting, create, site_configuration_h...
true
true
1c362ce6923ae92d87c53d68433d20989f95e1d0
5,593
py
Python
tests/parser/functions/test_convert_to_bytes32.py
Solexplorer/vyper
135edd6a91d47c72de105066d6e6c1bdfe9ea66e
[ "MIT" ]
1
2021-04-23T21:48:20.000Z
2021-04-23T21:48:20.000Z
tests/parser/functions/test_convert_to_bytes32.py
Solexplorer/vyper
135edd6a91d47c72de105066d6e6c1bdfe9ea66e
[ "MIT" ]
null
null
null
tests/parser/functions/test_convert_to_bytes32.py
Solexplorer/vyper
135edd6a91d47c72de105066d6e6c1bdfe9ea66e
[ "MIT" ]
1
2020-01-27T05:21:39.000Z
2020-01-27T05:21:39.000Z
from vyper.utils import ( DECIMAL_DIVISOR, SizeLimits, ) def test_convert_to_bytes32(w3, get_contract_with_gas_estimation, bytes_helper): code = """ a: int128 b: uint256 c: address d: bytes[32] @public def int128_to_bytes32(inp: int128) -> (bytes32, bytes32, bytes32): self.a = inp memory: bytes32...
31.24581
162
0.690506
from vyper.utils import ( DECIMAL_DIVISOR, SizeLimits, ) def test_convert_to_bytes32(w3, get_contract_with_gas_estimation, bytes_helper): code = """ a: int128 b: uint256 c: address d: bytes[32] @public def int128_to_bytes32(inp: int128) -> (bytes32, bytes32, bytes32): self.a = inp memory: bytes32...
true
true
1c362cfb5912a83a53a94f889b24b3ad052684b9
912
py
Python
testproject/testapp/migrations/0001_initial.py
tumb1er/rest-framework-smoke
c011918de728ba20c93961f979da408a9bbd95e9
[ "MIT" ]
5
2021-04-22T08:39:49.000Z
2021-06-02T00:40:38.000Z
testproject/testapp/migrations/0001_initial.py
tumb1er/rest-framework-smoke
c011918de728ba20c93961f979da408a9bbd95e9
[ "MIT" ]
61
2020-03-25T10:49:50.000Z
2022-03-01T13:27:16.000Z
testproject/testapp/migrations/0001_initial.py
tumb1er/rest-framework-smoke
c011918de728ba20c93961f979da408a9bbd95e9
[ "MIT" ]
5
2020-03-25T07:45:58.000Z
2021-11-10T16:12:22.000Z
# Generated by Django 3.0.4 on 2020-03-25 07:49 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Project', fields=[ ...
29.419355
114
0.576754
from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Project', fields=[ ('id', models.AutoField(auto_created=T...
true
true
1c362cfcd82b4292b1b1b46edbeee9a97e7fba89
9,756
py
Python
invconv/xlsx.py
TechPowerAwaits/ax-toolkit
d49924ef2dcd3f54f494ba3859afb070cc12ef91
[ "0BSD" ]
null
null
null
invconv/xlsx.py
TechPowerAwaits/ax-toolkit
d49924ef2dcd3f54f494ba3859afb070cc12ef91
[ "0BSD" ]
16
2021-04-14T03:46:37.000Z
2022-02-11T16:15:00.000Z
invconv/xlsx.py
TechPowerAwaits/ax-toolkit
d49924ef2dcd3f54f494ba3859afb070cc12ef91
[ "0BSD" ]
null
null
null
# Copyright 2021 Richard Johnston <techpowerawaits@outlook.com> # SPDX-license-identifier: 0BSD import string from loguru import logger try: import cell_pos from exceptions import InvconvMissingHeaders import ftype import msg_handler except ModuleNotFoundError: import invconv.cell_pos as cell_pos...
33.410959
119
0.625974
import string from loguru import logger try: import cell_pos from exceptions import InvconvMissingHeaders import ftype import msg_handler except ModuleNotFoundError: import invconv.cell_pos as cell_pos from invconv.exceptions import InvconvMissingHeaders import invconv.ftype as ftype ...
true
true
1c362d4340d19824636817119f7e5ba8f4d31102
5,185
py
Python
netconf_client/rpc.py
hschulzbln/netconf_client
b776e6f7ec59dc2ce9517bc4513eadc6c7ca8cdb
[ "Apache-2.0" ]
null
null
null
netconf_client/rpc.py
hschulzbln/netconf_client
b776e6f7ec59dc2ce9517bc4513eadc6c7ca8cdb
[ "Apache-2.0" ]
null
null
null
netconf_client/rpc.py
hschulzbln/netconf_client
b776e6f7ec59dc2ce9517bc4513eadc6c7ca8cdb
[ "Apache-2.0" ]
null
null
null
import uuid from lxml import etree def make_rpc(guts, msg_id=None): if not msg_id: msg_id = uuid.uuid4() return '<rpc message-id="{id}" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">{guts}</rpc>'.format( guts=guts, id=msg_id ).encode( "utf-8" ) def edit_config( config,...
30.5
104
0.647059
import uuid from lxml import etree def make_rpc(guts, msg_id=None): if not msg_id: msg_id = uuid.uuid4() return '<rpc message-id="{id}" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">{guts}</rpc>'.format( guts=guts, id=msg_id ).encode( "utf-8" ) def edit_config( config,...
true
true
1c362dc94151362e3d05a442f9f69965597c4e5d
3,050
py
Python
python/dye/window.py
statiolake/DyeVim
cf3d86c556c6ab0d80de6c58d3589a7982e7467e
[ "MIT" ]
54
2016-09-22T12:11:52.000Z
2021-12-01T11:18:54.000Z
python/dye/window.py
statiolake/DyeVim
cf3d86c556c6ab0d80de6c58d3589a7982e7467e
[ "MIT" ]
12
2016-12-03T21:48:11.000Z
2020-05-07T18:28:14.000Z
python/dye/window.py
statiolake/DyeVim
cf3d86c556c6ab0d80de6c58d3589a7982e7467e
[ "MIT" ]
5
2017-04-14T11:21:38.000Z
2020-05-16T07:32:18.000Z
#!/usr/bin/env python # # The MIT License (MIT) # # Copyright (c) 2016 Davit Samvelyan # # 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 ...
33.888889
80
0.698361
from __future__ import absolute_import from __future__ import unicode_literals from __future__ import print_function from __future__ import division from .utils import log, viewport class Window( object ): def __init__( self, wid, buffer ): self._wid = wid self._buffer = b...
true
true
1c362e1a2638166aa2752fde82ea2249b2fe4683
4,226
py
Python
Commands/test.py
trand2/Discord-Levels-Bot
ab445ef3291efecf0f0ba36907eab99121d51b89
[ "Apache-2.0" ]
38
2021-07-10T07:02:58.000Z
2022-03-30T20:06:58.000Z
Commands/test.py
trand2/Discord-Levels-Bot
ab445ef3291efecf0f0ba36907eab99121d51b89
[ "Apache-2.0" ]
6
2021-02-20T18:28:37.000Z
2021-04-12T05:24:42.000Z
Commands/test.py
trand2/Discord-Levels-Bot
ab445ef3291efecf0f0ba36907eab99121d51b89
[ "Apache-2.0" ]
34
2021-07-05T04:31:16.000Z
2022-03-29T16:28:02.000Z
from discord.ext import commands from ruamel.yaml import YAML from kumoslab.get import * from kumoslab.getServer import * from kumoslab.set import * yaml = YAML() with open("Configs/config.yml", "r", encoding="utf-8") as file: config = yaml.load(file) # Spam system class class test(commands.Cog): ...
40.634615
108
0.614529
from discord.ext import commands from ruamel.yaml import YAML from kumoslab.get import * from kumoslab.getServer import * from kumoslab.set import * yaml = YAML() with open("Configs/config.yml", "r", encoding="utf-8") as file: config = yaml.load(file) class test(commands.Cog): def __init__(sel...
true
true
1c362fbf208c98dbe0a37831fc57b5812ad94de3
1,808
py
Python
aliyun-python-sdk-core/aliyunsdkcore/endpoint/user_customized_endpoint_resolver.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-core/aliyunsdkcore/endpoint/user_customized_endpoint_resolver.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-core/aliyunsdkcore/endpoint/user_customized_endpoint_resolver.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with self work for additional information # regarding copyright ownership. The ASF licenses self file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
38.468085
85
0.754425
from aliyunsdkcore.endpoint.endpoint_resolver_base import EndpointResolverBase class UserCustomizedEndpointResolver(EndpointResolverBase): def __init__(self): EndpointResolverBase.__init__(self) self._valid_region_ids = set() def put_endpoint_entry(self, region_id, product_...
true
true
1c362fcdf6f20203626f83c58fe53ad3cc5cbe40
9,045
py
Python
tests/utils/test_models.py
fossabot/BALSAMIC
f68931a2dc92ae47236147a77e1f4554a34eb35d
[ "MIT" ]
null
null
null
tests/utils/test_models.py
fossabot/BALSAMIC
f68931a2dc92ae47236147a77e1f4554a34eb35d
[ "MIT" ]
null
null
null
tests/utils/test_models.py
fossabot/BALSAMIC
f68931a2dc92ae47236147a77e1f4554a34eb35d
[ "MIT" ]
null
null
null
import os import pytest from pathlib import Path from pydantic import ValidationError from BALSAMIC.utils.models import (VCFAttributes, VarCallerFilter, QCModel, VarcallerAttribute, VCFModel, AnalysisModel, SampleInstanceModel, BioinfoToolsModel, ...
32.419355
86
0.66733
import os import pytest from pathlib import Path from pydantic import ValidationError from BALSAMIC.utils.models import (VCFAttributes, VarCallerFilter, QCModel, VarcallerAttribute, VCFModel, AnalysisModel, SampleInstanceModel, BioinfoToolsModel, ...
true
true
1c362febd2da79bb92f50166516a732aaf4e0292
653
py
Python
tests/test_agent.py
johnnoone/aioconsul
02f7a529d7dc2e49bed942111067aa5faf320e90
[ "BSD-3-Clause" ]
7
2015-03-17T18:29:14.000Z
2020-01-03T06:45:43.000Z
tests/test_agent.py
johnnoone/aioconsul
02f7a529d7dc2e49bed942111067aa5faf320e90
[ "BSD-3-Clause" ]
1
2015-06-04T03:06:46.000Z
2015-06-04T03:06:46.000Z
tests/test_agent.py
johnnoone/aioconsul
02f7a529d7dc2e49bed942111067aa5faf320e90
[ "BSD-3-Clause" ]
2
2015-06-03T16:53:11.000Z
2021-12-16T13:38:23.000Z
import pytest @pytest.mark.asyncio async def test_endpoint(client): assert repr(client.agent) == "<AgentEndpoint(%r)>" % str(client.address) @pytest.mark.asyncio async def test_info(client): result = await client.agent.info() assert isinstance(result, dict) assert result["Config"]["ClientAddr"] == "...
27.208333
76
0.69219
import pytest @pytest.mark.asyncio async def test_endpoint(client): assert repr(client.agent) == "<AgentEndpoint(%r)>" % str(client.address) @pytest.mark.asyncio async def test_info(client): result = await client.agent.info() assert isinstance(result, dict) assert result["Config"]["ClientAddr"] == "...
true
true
1c3631c201d055d6da590d47ef021b01d38d3e12
1,482
py
Python
terzani/utils/clean_text.py
JanMaxime/terzani_colorization
6538e0053c9119b1bf67da930f309b22cbdece30
[ "MIT" ]
null
null
null
terzani/utils/clean_text.py
JanMaxime/terzani_colorization
6538e0053c9119b1bf67da930f309b22cbdece30
[ "MIT" ]
1
2020-12-16T14:16:16.000Z
2020-12-24T10:35:27.000Z
terzani/utils/clean_text.py
JanMaxime/terzani_colorization
6538e0053c9119b1bf67da930f309b22cbdece30
[ "MIT" ]
null
null
null
# Import nltk to process text from nltk.tokenize import word_tokenize from nltk.stem.porter import PorterStemmer import nltk import string nltk.download('punkt') def clean_text(text: str, lower: bool = True, rmv_punc: bool = True, stem: bool = True): """ This function accepts a string and performs preprocessi...
40.054054
113
0.684211
from nltk.tokenize import word_tokenize from nltk.stem.porter import PorterStemmer import nltk import string nltk.download('punkt') def clean_text(text: str, lower: bool = True, rmv_punc: bool = True, stem: bool = True): tokens = word_tokenize(text) if lower: tokens = [w.lower() for w ...
true
true
1c36347d156955c0e1e0b19d2c9fddcbb5147fe6
569
py
Python
model/group.py
Oilg/python_traning
b29e5e95be55c10f0d15e2001f6483004aa163a8
[ "Apache-2.0" ]
null
null
null
model/group.py
Oilg/python_traning
b29e5e95be55c10f0d15e2001f6483004aa163a8
[ "Apache-2.0" ]
null
null
null
model/group.py
Oilg/python_traning
b29e5e95be55c10f0d15e2001f6483004aa163a8
[ "Apache-2.0" ]
null
null
null
from sys import maxsize class Group: def __init__(self, name=None, header=None, footer=None, id=None): self.name = name self.header = header self.footer = footer self.id = id def __repr__(self): return '%s:%s;%s;%s' % (self.id, self.name, self.header, self.footer) ...
25.863636
103
0.58348
from sys import maxsize class Group: def __init__(self, name=None, header=None, footer=None, id=None): self.name = name self.header = header self.footer = footer self.id = id def __repr__(self): return '%s:%s;%s;%s' % (self.id, self.name, self.header, self.footer) ...
true
true
1c3634d2850b1af0b826da326e86fcff4093ad36
523
py
Python
GUI_demos/SimpleExitButton.py
ssklykov/traininPy
b0ae12ebae27dcfb74db2712f1153b6a69154338
[ "Unlicense" ]
null
null
null
GUI_demos/SimpleExitButton.py
ssklykov/traininPy
b0ae12ebae27dcfb74db2712f1153b6a69154338
[ "Unlicense" ]
null
null
null
GUI_demos/SimpleExitButton.py
ssklykov/traininPy
b0ae12ebae27dcfb74db2712f1153b6a69154338
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Simple demo of Exit button @author: ssklykov """ from tkinter import Tk, Button, RIGHT topLevelWidget = Tk() topLevelWidget.geometry("250x200") topLevelWidget.title("Window with Exit") buttn = Button(topLevelWidget, text='Exit', command=topLevelWidget.destroy) # Actu...
30.764706
113
0.73805
from tkinter import Tk, Button, RIGHT topLevelWidget = Tk() topLevelWidget.geometry("250x200") topLevelWidget.title("Window with Exit") buttn = Button(topLevelWidget, text='Exit', command=topLevelWidget.destroy) # But the .destroy works - suprisingly. Proper indentation for this comment - ? buttn.config(font=('Libe...
true
true
1c3634d673a3381de49763ef69562fb954a620d6
1,779
py
Python
bert_pytorch/model/language_model.py
luomou97/BERT-pytorch
61bb990d75a23dc39b5a1ec27787c4a596ba5352
[ "Apache-2.0" ]
null
null
null
bert_pytorch/model/language_model.py
luomou97/BERT-pytorch
61bb990d75a23dc39b5a1ec27787c4a596ba5352
[ "Apache-2.0" ]
null
null
null
bert_pytorch/model/language_model.py
luomou97/BERT-pytorch
61bb990d75a23dc39b5a1ec27787c4a596ba5352
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn from .bert import BERT class BERTLM(nn.Module): """ BERT Language Model Next Sentence Prediction Model + Masked Language Model """ def __init__(self, bert: BERT, vocab_size): """ :param bert: BERT model which should be trained :param vocab_size: tota...
28.693548
129
0.631816
import torch.nn as nn from .bert import BERT class BERTLM(nn.Module): def __init__(self, bert: BERT, vocab_size): super().__init__() self.bert = bert self.next_sentence = NextSentencePrediction(self.bert.hidden) self.mask_lm = MaskedLanguageModel(self.bert.hidden, vocab_s...
true
true
1c3634fd0074817fb3353ed0690404e572d19535
85
py
Python
QuestoesBeecrowd-Iniciante/1011.py
AtosNeves/Beecrowd
f1192218eac3f6300290fe8234bbc720e9fb859e
[ "MIT" ]
null
null
null
QuestoesBeecrowd-Iniciante/1011.py
AtosNeves/Beecrowd
f1192218eac3f6300290fe8234bbc720e9fb859e
[ "MIT" ]
null
null
null
QuestoesBeecrowd-Iniciante/1011.py
AtosNeves/Beecrowd
f1192218eac3f6300290fe8234bbc720e9fb859e
[ "MIT" ]
null
null
null
pi = 3.14159 r = float(input()) v = 4/3*pi*r**3 print("VOLUME = {:.3f}".format(v))
12.142857
34
0.541176
pi = 3.14159 r = float(input()) v = 4/3*pi*r**3 print("VOLUME = {:.3f}".format(v))
true
true
1c363535e34fb0e70e850fa96dec71197c5cb022
8,977
py
Python
config/settings/production.py
blueNoteb5/simssadb
85eeaeb09cf2172831aa47d1fbf66416030d43c6
[ "Apache-1.1" ]
null
null
null
config/settings/production.py
blueNoteb5/simssadb
85eeaeb09cf2172831aa47d1fbf66416030d43c6
[ "Apache-1.1" ]
null
null
null
config/settings/production.py
blueNoteb5/simssadb
85eeaeb09cf2172831aa47d1fbf66416030d43c6
[ "Apache-1.1" ]
null
null
null
import logging from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env('DJANGO_SECRET_KEY') # https://docs.djangoproject.com/en/dev/ref/settings/#allow...
41.560185
106
0.606104
import logging from .base import * from .base import env = env('DJANGO_SECRET_KEY') = env.list('DJANGO_ALLOWED_HOSTS', default=['localhost']) DATABASES['default'] = env.db('DATABASE_URL') DATABASES['default']['ATOMIC_REQUESTS'] = True DATABASES['default']['CONN_MAX_AGE'] = env.int('CONN_MAX_AGE', default...
true
true
1c36353b19456de449d0f9ed0272bd5e24ec3728
401
py
Python
profile/migrations/0005_notifications_threshold.py
ritstudentgovernment/PawPrints
6f52d721d4c367a8524f49881e62a162a81469b4
[ "Apache-2.0" ]
15
2017-04-03T14:01:44.000Z
2022-03-18T06:38:56.000Z
profile/migrations/0005_notifications_threshold.py
ritstudentgovernment/PawPrints
6f52d721d4c367a8524f49881e62a162a81469b4
[ "Apache-2.0" ]
87
2016-10-13T01:53:38.000Z
2022-02-11T03:39:55.000Z
profile/migrations/0005_notifications_threshold.py
ritstudentgovernment/PawPrints
6f52d721d4c367a8524f49881e62a162a81469b4
[ "Apache-2.0" ]
8
2017-10-19T18:30:48.000Z
2021-04-03T02:26:01.000Z
# Generated by Django 2.1.3 on 2019-02-18 17:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profile', '0004_notifications_reported'), ] operations = [ migrations.AddField( model_name='notifications', name='th...
21.105263
53
0.613466
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profile', '0004_notifications_reported'), ] operations = [ migrations.AddField( model_name='notifications', name='threshold', field=models.BooleanField...
true
true
1c36359b36a691522aa396f2dacea67ffcbf7cf9
2,985
py
Python
aiida/backends/sqlalchemy/migrations/versions/ce56d84bcc35_delete_trajectory_symbols_array.py
yakutovicha/aiida-core
35b5c341e24df22b9b920c094348cef4f1a72846
[ "MIT", "BSD-3-Clause" ]
null
null
null
aiida/backends/sqlalchemy/migrations/versions/ce56d84bcc35_delete_trajectory_symbols_array.py
yakutovicha/aiida-core
35b5c341e24df22b9b920c094348cef4f1a72846
[ "MIT", "BSD-3-Clause" ]
null
null
null
aiida/backends/sqlalchemy/migrations/versions/ce56d84bcc35_delete_trajectory_symbols_array.py
yakutovicha/aiida-core
35b5c341e24df22b9b920c094348cef4f1a72846
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
40.337838
109
0.621106
true
true
1c3636aa178df5e66b3264f7dc77edc6bdc57574
3,959
py
Python
translate.py
mmubarak0/google-translate-cli
5fa7593efbbf61a8bb295b50443f98958385b229
[ "MIT" ]
null
null
null
translate.py
mmubarak0/google-translate-cli
5fa7593efbbf61a8bb295b50443f98958385b229
[ "MIT" ]
null
null
null
translate.py
mmubarak0/google-translate-cli
5fa7593efbbf61a8bb295b50443f98958385b229
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys from google.cloud import translate from language_to_iso import lang_to_iso from speech import text_to_speech from web_page import web_page_translation from print_languages import print_languages, print_language_name from helpers import decode, valid_lang, crede...
27.116438
73
0.647891
import sys from google.cloud import translate from language_to_iso import lang_to_iso from speech import text_to_speech from web_page import web_page_translation from print_languages import print_languages, print_language_name from helpers import decode, valid_lang, credentials, print_usage opt_b = None opt_s = Non...
true
true
1c3636afe04726a49037190e2e3e669ee9b16056
11,023
py
Python
apim-migration-testing-tool/Python/venv/lib/python3.6/site-packages/google/protobuf/service_reflection.py
tharindu1st/apim-migration-resources
dd68aa8c53cf310392bb72e699dd24c57b109cfb
[ "Apache-2.0" ]
11,356
2017-12-08T19:42:32.000Z
2022-03-31T16:55:25.000Z
apim-migration-testing-tool/Python/venv/lib/python3.6/site-packages/google/protobuf/service_reflection.py
tharindu1st/apim-migration-resources
dd68aa8c53cf310392bb72e699dd24c57b109cfb
[ "Apache-2.0" ]
4,673
2017-03-29T10:43:43.000Z
2022-03-31T08:33:44.000Z
apim-migration-testing-tool/Python/venv/lib/python3.6/site-packages/google/protobuf/service_reflection.py
tharindu1st/apim-migration-resources
dd68aa8c53cf310392bb72e699dd24c57b109cfb
[ "Apache-2.0" ]
1,343
2017-12-08T19:47:19.000Z
2022-03-26T11:31:36.000Z
# Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # https://developers.google.com/protocol-buffers/ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redi...
38.677193
80
0.741268
# Copyright 2008 Google Inc. All rights reserved. # https://developers.google.com/protocol-buffers/ # # 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 copy...
true
true
1c3637cec9c2b33936f2a86c81707b3e82bca411
1,135
py
Python
hub_module/tests/unittests/test_ernie_tiny_couplet.py
18621579069/PaddleHub-yu
15e8bcef2addf239081e235bdcfd039de12330e0
[ "Apache-2.0" ]
4
2021-02-25T03:27:38.000Z
2021-05-15T03:20:23.000Z
hub_module/tests/unittests/test_ernie_tiny_couplet.py
18621579069/PaddleHub-yu
15e8bcef2addf239081e235bdcfd039de12330e0
[ "Apache-2.0" ]
null
null
null
hub_module/tests/unittests/test_ernie_tiny_couplet.py
18621579069/PaddleHub-yu
15e8bcef2addf239081e235bdcfd039de12330e0
[ "Apache-2.0" ]
2
2021-03-01T07:04:01.000Z
2021-05-14T05:54:18.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
34.393939
74
0.710132
from unittest import TestCase, main import paddlehub as hub class ErnieTinyCoupletTestCase(TestCase): def setUp(self): self.module = hub.Module(name='ernie_tiny_couplet') self.left = ["风吹云乱天垂泪", "若有经心风过耳"] def test_predict(self): rights = self.module.predict(self.left) ...
true
true
1c3638583bdef0dc4f94bb3ed3e45831bb87811e
852
py
Python
google-cloud-sdk/lib/third_party/pygments/styles/rrt.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
166
2015-01-04T19:31:45.000Z
2021-11-10T15:54:09.000Z
thirdparty/pygments/pygments/styles/rrt.py
ipwnosx/hatebin
cafb8d34adeb13fc2187b6fb2b6fea34ad4c64ef
[ "MIT" ]
3
2017-12-28T16:49:19.000Z
2021-03-31T05:15:51.000Z
thirdparty/pygments/pygments/styles/rrt.py
ipwnosx/hatebin
cafb8d34adeb13fc2187b6fb2b6fea34ad4c64ef
[ "MIT" ]
39
2015-01-04T09:56:35.000Z
2021-05-16T09:10:18.000Z
# -*- coding: utf-8 -*- """ pygments.styles.rrt ~~~~~~~~~~~~~~~~~~~ pygments "rrt" theme, based on Zap and Emacs defaults. :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.style import Style from pygments.token import Com...
25.058824
70
0.550469
from pygments.style import Style from pygments.token import Comment, Name, Keyword, String class RrtStyle(Style): background_color = '#000000' highlight_color = '#0000ff' styles = { Comment: '#00ff00', Name.Function: '#ffff00', Name.Variable: '#eedd82', ...
true
true
1c3638f51c04f9cca713bbfb99b56e5e417f1a93
6,752
py
Python
SOFTWARE/custom_script_linear_dwell_time.py
sbooeshaghi/colosseum
07f51d95a576924880d6f958fe44fb067781e415
[ "BSD-2-Clause" ]
16
2021-01-29T10:11:46.000Z
2022-03-20T17:50:11.000Z
SOFTWARE/custom_script_linear_dwell_time.py
sbooeshaghi/colosseum
07f51d95a576924880d6f958fe44fb067781e415
[ "BSD-2-Clause" ]
1
2021-06-11T05:46:33.000Z
2021-06-11T05:46:33.000Z
SOFTWARE/custom_script_linear_dwell_time.py
sbooeshaghi/colosseum
07f51d95a576924880d6f958fe44fb067781e415
[ "BSD-2-Clause" ]
1
2022-03-20T17:50:31.000Z
2022-03-20T17:50:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import serial import sys import glob import time startMarker = 60 # < endMarker = 62 # > midMarker = 44 # , def populate_ports(): """ :raises EnvironmentError: On unsupported or unknown platforms :returns: A list of the serial p...
24.823529
79
0.572719
import serial import sys import glob import time startMarker = 60 endMarker = 62 midMarker = 44 def populate_ports(): if sys.platform.startswith('win'): ports = ['COM%s' % (i + 1) for i in range(256)] elif sys.platform.startswith('linux') or sys.platform.startswith('cygwin'): por...
true
true
1c36392d32f0668c77c831b3f1f6c1dde1d2a96d
13
py
Python
PTTLibrary/Version.py
shihyu/PTTLibrary
b40f0d45e1ca2fc8e072473ece63a8628ac7168e
[ "MIT" ]
1
2019-04-30T22:56:38.000Z
2019-04-30T22:56:38.000Z
PTTLibrary/Version.py
shihyu/PTTLibrary
b40f0d45e1ca2fc8e072473ece63a8628ac7168e
[ "MIT" ]
null
null
null
PTTLibrary/Version.py
shihyu/PTTLibrary
b40f0d45e1ca2fc8e072473ece63a8628ac7168e
[ "MIT" ]
null
null
null
Ver = '0.7.5'
13
13
0.461538
Ver = '0.7.5'
true
true
1c363c9ad9549524446ff58c32f867f3d750ffbd
741
py
Python
src/ims/element/incident/incidents_template/__init__.py
burningmantech/ranger-ims-server
66c8158b93c80ca342856666acb2689287db8043
[ "Apache-2.0" ]
26
2015-11-04T19:14:28.000Z
2022-01-28T14:31:06.000Z
src/ims/element/incident/incidents_template/__init__.py
burningmantech/ranger-ims-server
66c8158b93c80ca342856666acb2689287db8043
[ "Apache-2.0" ]
508
2015-04-28T00:24:51.000Z
2022-03-30T17:29:47.000Z
src/ims/element/incident/incidents_template/__init__.py
burningmantech/ranger-ims-server
66c8158b93c80ca342856666acb2689287db8043
[ "Apache-2.0" ]
6
2015-04-15T13:58:40.000Z
2019-12-09T00:47:40.000Z
## # See the file COPYRIGHT for copyright information. # # 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...
29.64
74
0.761134
from ._incidents_template import IncidentsTemplatePage __all__ = ("IncidentsTemplatePage",)
true
true
1c363d33f4846c8c45da214041c3dc6b2be4ff76
4,919
py
Python
precommit.py
mristin/icontract
940977aacb2160b43eb93fc5e1a257907a9a23f1
[ "MIT" ]
null
null
null
precommit.py
mristin/icontract
940977aacb2160b43eb93fc5e1a257907a9a23f1
[ "MIT" ]
null
null
null
precommit.py
mristin/icontract
940977aacb2160b43eb93fc5e1a257907a9a23f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Runs precommit checks on the repository.""" import argparse import os import pathlib import subprocess import sys import cpuinfo import icontract def benchmark_against_dpcontracts(repo_root: pathlib.Path, overwrite: bool) -> None: """Run benchmars against dpcontracts and include them i...
35.388489
120
0.622688
import argparse import os import pathlib import subprocess import sys import cpuinfo import icontract def benchmark_against_dpcontracts(repo_root: pathlib.Path, overwrite: bool) -> None: script_rel_paths = [ 'benchmarks/against_dpcontracts/compare_invariant.py', 'benchmarks/against_dpcontracts/compare_...
true
true
1c363dd5d9593792cc8cb2b27569d7c77eec3110
1,951
py
Python
test/trace_processor/chrome/modified_rail_modes_no_vsyncs.py
proton-vayu/android_external_perfetto
b8f131ee57a09e9f2bb8378364fad80fc753ff97
[ "Apache-2.0" ]
933
2019-12-10T10:45:28.000Z
2022-03-31T03:43:44.000Z
test/trace_processor/chrome/modified_rail_modes_no_vsyncs.py
proton-vayu/android_external_perfetto
b8f131ee57a09e9f2bb8378364fad80fc753ff97
[ "Apache-2.0" ]
252
2019-12-10T16:13:57.000Z
2022-03-31T09:56:46.000Z
test/trace_processor/chrome/modified_rail_modes_no_vsyncs.py
proton-vayu/android_external_perfetto
b8f131ee57a09e9f2bb8378364fad80fc753ff97
[ "Apache-2.0" ]
153
2020-01-08T20:17:27.000Z
2022-03-30T20:53:21.000Z
#!/usr/bin/env python3 # Copyright (C) 2020 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
28.275362
74
0.754485
from os import sys import synth_common from synth_common import s_to_ns trace = synth_common.create_trace() trace.add_chrome_metadata(os_name="Android") track1 = 1234 track2 = 4567 trace.add_process_track_descriptor(track1, pid=0) trace.add_process_track_descriptor(track2, pid=2) trace.add_rail_mod...
true
true
1c363dd99927d61683b93e7ad53acd35ed85011f
3,913
py
Python
app/src/lambda_cleanup.py
troydieter/aws-auto-cleanup
523bae5cc57b81d3a2f0d43c87b9f1ef5390e3a4
[ "MIT" ]
322
2019-04-15T01:59:57.000Z
2022-03-09T00:06:55.000Z
app/src/lambda_cleanup.py
troydieter/aws-auto-cleanup
523bae5cc57b81d3a2f0d43c87b9f1ef5390e3a4
[ "MIT" ]
70
2019-04-15T01:27:21.000Z
2022-03-02T00:39:29.000Z
app/src/lambda_cleanup.py
troydieter/aws-auto-cleanup
523bae5cc57b81d3a2f0d43c87b9f1ef5390e3a4
[ "MIT" ]
49
2019-04-15T06:36:42.000Z
2022-01-17T11:37:32.000Z
import sys import boto3 from src.helper import Helper class LambdaCleanup: def __init__(self, logging, whitelist, settings, execution_log, region): self.logging = logging self.whitelist = whitelist self.settings = settings self.execution_log = execution_log self.region = ...
37.990291
109
0.509839
import sys import boto3 from src.helper import Helper class LambdaCleanup: def __init__(self, logging, whitelist, settings, execution_log, region): self.logging = logging self.whitelist = whitelist self.settings = settings self.execution_log = execution_log self.region = ...
true
true
1c363e036998894d50d5ab79c027c7d1820b7b07
7,359
py
Python
routes.py
Crazy-Ideas/happy-rainbow
f6939cab858dd98950ac2ffbbe54c2189449029e
[ "MIT" ]
null
null
null
routes.py
Crazy-Ideas/happy-rainbow
f6939cab858dd98950ac2ffbbe54c2189449029e
[ "MIT" ]
null
null
null
routes.py
Crazy-Ideas/happy-rainbow
f6939cab858dd98950ac2ffbbe54c2189449029e
[ "MIT" ]
null
null
null
from functools import wraps from typing import List from flask import render_template, request, url_for, Response, make_response, redirect, current_app, flash, send_file from flask_login import login_user, current_user, logout_user from werkzeug.urls import url_parse from app import app, get_user_from_token from cert...
42.293103
118
0.725234
from functools import wraps from typing import List from flask import render_template, request, url_for, Response, make_response, redirect, current_app, flash, send_file from flask_login import login_user, current_user, logout_user from werkzeug.urls import url_parse from app import app, get_user_from_token from cert...
true
true
1c363f50c6a203b78ffbb057034c4dda407a0f28
8,976
py
Python
docs/conf.py
sangfrois/NeuroKit
a7cc6dc9e33182892929834644809d63d332dd22
[ "MIT" ]
1
2020-08-12T09:26:27.000Z
2020-08-12T09:26:27.000Z
docs/conf.py
sangfrois/NeuroKit
a7cc6dc9e33182892929834644809d63d332dd22
[ "MIT" ]
null
null
null
docs/conf.py
sangfrois/NeuroKit
a7cc6dc9e33182892929834644809d63d332dd22
[ "MIT" ]
1
2021-11-14T21:18:48.000Z
2021-11-14T21:18:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # neurokit2 documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # a...
31.605634
158
0.66455
import os import re import sys import mock from m2r import MdInclude from recommonmark.transform import AutoStructify sys.path.insert(0, os.path.abspath('../')) MOCK_MODULES = ['scipy', 'scipy.signal', 'scipy.ndimage', 'scipy.stats', 'scipy.misc', 'scipy.interpolate', 'scipy.sparse', 'scipy.lin...
true
true
1c36412a2ca1c8f5c84a14e573c9c6d729e8918c
32,280
py
Python
pytorch/libs/training/optim.py
yuyq96/asv-subtools
e3f43f380f26a25a131a9b5b0dfb6fb5bef71474
[ "Apache-2.0" ]
370
2020-05-31T16:28:08.000Z
2022-03-24T07:27:50.000Z
pytorch/libs/training/optim.py
ts0923/asv-subtools
a678b8f3327de0e99c445a79a9e91e5e0e006b11
[ "Apache-2.0" ]
35
2020-07-01T12:08:31.000Z
2021-12-15T03:18:14.000Z
pytorch/libs/training/optim.py
ts0923/asv-subtools
a678b8f3327de0e99c445a79a9e91e5e0e006b11
[ "Apache-2.0" ]
119
2020-06-08T11:27:09.000Z
2022-03-31T05:31:53.000Z
# -*- coding:utf-8 -*- # Copyright xmuspeech (Author: Snowdar 2019-08-01) import logging import types import math import itertools as it from torch._six import inf from functools import partial, wraps import warnings from bisect import bisect_right import torch import torch.optim as optim from torch.optim.optimizer ...
41.813472
190
0.564405
import logging import types import math import itertools as it from torch._six import inf from functools import partial, wraps import warnings from bisect import bisect_right import torch import torch.optim as optim from torch.optim.optimizer import Optimizer import libs.support.utils as utils logger = logging....
true
true
1c36419bcef06a7f8db4b50d1abb0f833dc1d196
228
py
Python
zairachem/estimators/from_manifolds/pipe.py
ersilia-os/ersilia-automl-chem
fabb1f05d17cff11ec0e084495eed4c0152f2f63
[ "MIT" ]
null
null
null
zairachem/estimators/from_manifolds/pipe.py
ersilia-os/ersilia-automl-chem
fabb1f05d17cff11ec0e084495eed4c0152f2f63
[ "MIT" ]
null
null
null
zairachem/estimators/from_manifolds/pipe.py
ersilia-os/ersilia-automl-chem
fabb1f05d17cff11ec0e084495eed4c0152f2f63
[ "MIT" ]
null
null
null
from .estimate import Estimator class ManifoldPipeline(object): def __init__(self, path): self.e = Estimator(path=path) def run(self, time_budget_sec=None): self.e.run(time_budget_sec=time_budget_sec)
22.8
51
0.710526
from .estimate import Estimator class ManifoldPipeline(object): def __init__(self, path): self.e = Estimator(path=path) def run(self, time_budget_sec=None): self.e.run(time_budget_sec=time_budget_sec)
true
true
1c3641dd85bad030ce179280d5fc28ecd8d70b9a
4,610
py
Python
scripts/run_model.py
davidhalladay/DSP-Auto-drawer-Generating-and-Modifying-Images-Continually-using-Knowledge-graph
1610bbd567a5caba0478d8f7026f98766e6e39f8
[ "Apache-2.0" ]
null
null
null
scripts/run_model.py
davidhalladay/DSP-Auto-drawer-Generating-and-Modifying-Images-Continually-using-Knowledge-graph
1610bbd567a5caba0478d8f7026f98766e6e39f8
[ "Apache-2.0" ]
4
2021-03-19T10:11:14.000Z
2022-03-12T00:11:24.000Z
scripts/run_model.py
davidhalladay/DSP-Auto-drawer-Generating-and-Modifying-Images-Continually-using-Knowledge-graph
1610bbd567a5caba0478d8f7026f98766e6e39f8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
36.299213
94
0.723861
import argparse, json, os from imageio import imwrite import torch from sg2im.model import Sg2ImModel from sg2im.data.utils import imagenet_deprocess_batch import sg2im.vis as vis import pickle import pprint from sklearn_crfsuite import CRF from sklearn_crfsuite import metrics import gensim from ge...
true
true
1c36420290f57a0ef71645bcfa0bf6799ba54ae3
18,565
py
Python
IPython/parallel/apps/ipcontrollerapp.py
dlsun/ipython
38df12df8589c6da3b9398c7c0a03cea25fdce66
[ "BSD-3-Clause-Clear" ]
1
2018-09-24T13:45:40.000Z
2018-09-24T13:45:40.000Z
IPython/parallel/apps/ipcontrollerapp.py
dlsun/ipython
38df12df8589c6da3b9398c7c0a03cea25fdce66
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/parallel/apps/ipcontrollerapp.py
dlsun/ipython
38df12df8589c6da3b9398c7c0a03cea25fdce66
[ "BSD-3-Clause-Clear" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ The IPython controller application. Authors: * Brian Granger * MinRK """ #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full ...
37.73374
100
0.59903
""" The IPython controller application. Authors: * Brian Granger * MinRK """ from __future__ import with_statement import json import os import socket import stat import sys from multiprocessing import Process from signal import signal, SIGINT, SIGABRT, SIGTERM import zmq from zmq.devices import Pro...
false
true
1c36429c5af7746ce881193eb02e651c5922a10c
3,283
py
Python
project/tools/topics.py
holdenweb/nbtools
cafe088735221f19320450e9f1eb62b83034a422
[ "MIT" ]
null
null
null
project/tools/topics.py
holdenweb/nbtools
cafe088735221f19320450e9f1eb62b83034a422
[ "MIT" ]
null
null
null
project/tools/topics.py
holdenweb/nbtools
cafe088735221f19320450e9f1eb62b83034a422
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # topics.py # # A program to correspond notebook titles to outline topics. # # # # edit, from the README: """This program reports on the state of the outline. - tools/topics.py [word ...] lists all topics in the outline for which there is a source notebook. - tools/topics.py -a [word ...] ...
34.925532
79
0.625952
ort lib from lib import nullstrip, slugify, get_project_dir def matching(word, title_words): if not len(word): return True return any(word in tword for tword in title_words) def get_topics(): topics = [] for line in nullstrip(open("outline.txt")): line = line.rstrip()....
true
true
1c3643668c6ce97cfc07d9c375acb289e025e796
3,854
py
Python
access-analyzer/iam-role-findings-resolution/iam_access_analyzer_findings_remediation/iam_access_analyzer_findings_remediation_stack.py
lulukelu/aws-iam-permissions-guardrails
cae485e3d8589c85f55c50c442ce47916345e00d
[ "Apache-2.0" ]
88
2020-04-02T02:56:27.000Z
2022-03-18T13:22:02.000Z
access-analyzer/iam-role-findings-resolution/iam_access_analyzer_findings_remediation/iam_access_analyzer_findings_remediation_stack.py
lulukelu/aws-iam-permissions-guardrails
cae485e3d8589c85f55c50c442ce47916345e00d
[ "Apache-2.0" ]
45
2020-06-26T11:11:28.000Z
2021-08-17T15:31:47.000Z
access-analyzer/iam-role-findings-resolution/iam_access_analyzer_findings_remediation/iam_access_analyzer_findings_remediation_stack.py
lulukelu/aws-iam-permissions-guardrails
cae485e3d8589c85f55c50c442ce47916345e00d
[ "Apache-2.0" ]
32
2020-04-02T02:56:28.000Z
2021-12-20T18:53:04.000Z
import os, subprocess from aws_cdk import ( core, aws_accessanalyzer as accessanalyzer, aws_iam as iam, aws_events, aws_events_targets, aws_lambda, aws_sns as sns, aws_sns_subscriptions as subscriptions, aws_kms as kms ) class IamAccessAnalyzerFindingsRemediationStack(core.Stack): def __init_...
35.357798
109
0.649974
import os, subprocess from aws_cdk import ( core, aws_accessanalyzer as accessanalyzer, aws_iam as iam, aws_events, aws_events_targets, aws_lambda, aws_sns as sns, aws_sns_subscriptions as subscriptions, aws_kms as kms ) class IamAccessAnalyzerFindingsRemediationStack(core.Stack): def __init_...
true
true
1c364369d6acd8298365012f1acc916c54c19124
3,945
py
Python
qa/rpc-tests/wallet.py
J4stMart/galilel
5b490b8f63b9e9832441e675895d2eacbd05eedc
[ "MIT" ]
null
null
null
qa/rpc-tests/wallet.py
J4stMart/galilel
5b490b8f63b9e9832441e675895d2eacbd05eedc
[ "MIT" ]
null
null
null
qa/rpc-tests/wallet.py
J4stMart/galilel
5b490b8f63b9e9832441e675895d2eacbd05eedc
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014 The Bitcoin Core developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Exercise the wallet. Ported from wallet.sh. # Does the following: # a) creates 3 nodes, with an emp...
39.059406
99
0.662357
# g) check that node0 has 100-21, node2 has 21 # h) node0 should now have 2 unspent outputs; send these to node2 via raw tx broadcast by node1 # i) have node1 mine a block # j) check balances - node0 should have 0, node2 should have 100 # from test_framework import BitcoinTestFramework from util...
false
true
1c3643cbb1c4a08d5011d00b1f81d89b65826645
2,598
py
Python
src/dbconfig.py
chof747/dbversions
e5635b1bf23d2e6f0730d9822a1226b9ff737c2a
[ "BSD-3-Clause" ]
null
null
null
src/dbconfig.py
chof747/dbversions
e5635b1bf23d2e6f0730d9822a1226b9ff737c2a
[ "BSD-3-Clause" ]
null
null
null
src/dbconfig.py
chof747/dbversions
e5635b1bf23d2e6f0730d9822a1226b9ff737c2a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ''' Created on 15. Sep. 2016 @author: chof ''' from dbversions import Config, DbDump, DBConfig, parseEnvironments from dbversions.gitanalyzer import ConflictingDBScripts import getopt import sys def usage(): #*************************************************************************** p...
25.98
113
0.52271
from dbversions import Config, DbDump, DBConfig, parseEnvironments from dbversions.gitanalyzer import ConflictingDBScripts import getopt import sys def usage(): pass global environment global cfg global dbdumps if __name__ == '__main__': environment = None projectpath = '.' verbosity = 0 outp...
true
true
1c3644ded2a9bb433761b81f3b933f36856450f3
4,461
py
Python
setup.py
neillu23/espnet
4e99009a5cf05b699ae9cb3cce445defe901438c
[ "Apache-2.0" ]
null
null
null
setup.py
neillu23/espnet
4e99009a5cf05b699ae9cb3cce445defe901438c
[ "Apache-2.0" ]
null
null
null
setup.py
neillu23/espnet
4e99009a5cf05b699ae9cb3cce445defe901438c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ESPnet setup script.""" import os from distutils.version import LooseVersion from setuptools import find_packages from setuptools import setup requirements = { "install": [ "setuptools>=38.5.1", "configargparse>=1.2.1", "typeguard>=2.7.0", "humanfriendl...
30.346939
87
0.573638
import os from distutils.version import LooseVersion from setuptools import find_packages from setuptools import setup requirements = { "install": [ "setuptools>=38.5.1", "configargparse>=1.2.1", "typeguard>=2.7.0", "humanfriendly", "scipy>=1.4.1", "filelock", ...
true
true
1c36453888a7b74020e4d6b7d693e00a430e4cf7
5,311
py
Python
watchmen/report/builder/space_filter.py
Indexical-Metrics-Measure-Advisory/watchmen-data-processor
d50b93e92868500552416997707d71720487bd77
[ "MIT" ]
null
null
null
watchmen/report/builder/space_filter.py
Indexical-Metrics-Measure-Advisory/watchmen-data-processor
d50b93e92868500552416997707d71720487bd77
[ "MIT" ]
null
null
null
watchmen/report/builder/space_filter.py
Indexical-Metrics-Measure-Advisory/watchmen-data-processor
d50b93e92868500552416997707d71720487bd77
[ "MIT" ]
null
null
null
from decimal import Decimal from typing import List from arrow import arrow from pypika import Schema, Table, Field from pypika.terms import Term, Criterion, LiteralValue from watchmen.common.parameter import Parameter, ParameterJoint from watchmen.common.utils.data_utils import build_collection_name from watchmen.co...
42.488
101
0.695161
from decimal import Decimal from typing import List from arrow import arrow from pypika import Schema, Table, Field from pypika.terms import Term, Criterion, LiteralValue from watchmen.common.parameter import Parameter, ParameterJoint from watchmen.common.utils.data_utils import build_collection_name from watchmen.co...
true
true
1c364644e7015d895b1bddc6ef81f5f8810fc610
99
py
Python
sample_problems/problems_with_solution98.py
adi01trip01/adi_workspace
f493b3ba84645eec3a57607243760a826880d1a3
[ "MIT" ]
null
null
null
sample_problems/problems_with_solution98.py
adi01trip01/adi_workspace
f493b3ba84645eec3a57607243760a826880d1a3
[ "MIT" ]
null
null
null
sample_problems/problems_with_solution98.py
adi01trip01/adi_workspace
f493b3ba84645eec3a57607243760a826880d1a3
[ "MIT" ]
null
null
null
# Write a Python program to get the system time. import time print() print(time.ctime()) print()
14.142857
49
0.717172
import time print() print(time.ctime()) print()
true
true
1c3647cc6c38c0850bbc8da9cb7d392b6885fea7
2,438
py
Python
urlfilters.py
Aquei/ImgCrawler
d30acd1d30e868e3885aae35aa24efc47f416c04
[ "Apache-2.0" ]
null
null
null
urlfilters.py
Aquei/ImgCrawler
d30acd1d30e868e3885aae35aa24efc47f416c04
[ "Apache-2.0" ]
null
null
null
urlfilters.py
Aquei/ImgCrawler
d30acd1d30e868e3885aae35aa24efc47f416c04
[ "Apache-2.0" ]
null
null
null
import utl import re from urllib.parse import urlparse, urljoin def load_blacklist(path=None): """ブラックリストをタプルで返す関数を返す""" blacklist = [] def get_blacklist(): nonlocal blacklist if blacklist: return blacklist file_path = path if file_path is None: ...
17.666667
108
0.575472
import utl import re from urllib.parse import urlparse, urljoin def load_blacklist(path=None): blacklist = [] def get_blacklist(): nonlocal blacklist if blacklist: return blacklist file_path = path if file_path is None: file_path = utl.default_c...
true
true
1c3647e67d455af50718ec4ea9d581e7bcb45a5d
989
py
Python
motorClass.py
TechhubLisbon/rpi_truck
5e024464f064ba7618a7e53b88a413d23ba20dce
[ "MIT" ]
3
2019-12-15T04:08:22.000Z
2021-11-28T16:34:08.000Z
motorClass.py
TechhubLisbon/rpi_truck
5e024464f064ba7618a7e53b88a413d23ba20dce
[ "MIT" ]
1
2019-07-10T16:21:07.000Z
2019-07-10T16:21:07.000Z
motorClass.py
TechhubLisbon/rpi_truck
5e024464f064ba7618a7e53b88a413d23ba20dce
[ "MIT" ]
1
2019-07-05T13:33:38.000Z
2019-07-05T13:33:38.000Z
from componentClass import Component import json class Motor(Component): """ An implementation of the component used to request data from the motor periodically, which then sends it to the corresponding topic to be read by the API """ # Setup method for this specific device def setup(self...
35.321429
78
0.682508
from componentClass import Component import json class Motor(Component): """ An implementation of the component used to request data from the motor periodically, which then sends it to the corresponding topic to be read by the API """ def setup(self,samplingInterval): self.sampIn...
false
true
1c3648839456bc8d70c124a29bf01dc1e4524461
3,465
py
Python
otter/test/indexer/test_poller.py
codebyravi/otter
d58077ba4af24a586ae0a0becaf6da96b716a597
[ "Apache-2.0" ]
20
2015-02-11T16:32:07.000Z
2019-11-12T03:27:54.000Z
otter/test/indexer/test_poller.py
codebyravi/otter
d58077ba4af24a586ae0a0becaf6da96b716a597
[ "Apache-2.0" ]
1,145
2015-01-01T00:00:47.000Z
2022-02-11T03:40:39.000Z
otter/test/indexer/test_poller.py
codebyravi/otter
d58077ba4af24a586ae0a0becaf6da96b716a597
[ "Apache-2.0" ]
29
2015-01-08T15:00:11.000Z
2021-02-16T16:33:53.000Z
""" Tests for :mod:`otter.indexer.poller` """ import mock from zope.interface import implements from twisted.trial.unittest import SynchronousTestCase from twisted.internet.defer import succeed from twisted.internet.task import Cooperator from twisted.web.iweb import IResponse from twisted.web.client import Agent, ...
27.943548
78
0.638384
import mock from zope.interface import implements from twisted.trial.unittest import SynchronousTestCase from twisted.internet.defer import succeed from twisted.internet.task import Cooperator from twisted.web.iweb import IResponse from twisted.web.client import Agent, ResponseDone from twisted.web.http_headers imp...
true
true
1c3648c6c88c2f9e85435359ea2b4408c7ffda6a
10,301
py
Python
tests/hwsim/test_p2p_device.py
asriadi/hostap
6a5f578cac559e25ce139ca9f27c6b998006cdec
[ "Unlicense" ]
null
null
null
tests/hwsim/test_p2p_device.py
asriadi/hostap
6a5f578cac559e25ce139ca9f27c6b998006cdec
[ "Unlicense" ]
null
null
null
tests/hwsim/test_p2p_device.py
asriadi/hostap
6a5f578cac559e25ce139ca9f27c6b998006cdec
[ "Unlicense" ]
null
null
null
# cfg80211 P2P Device # Copyright (c) 2013-2015, Jouni Malinen <j@w1.fi> # # This software may be distributed under the terms of the BSD license. # See README for more details. import logging logger = logging.getLogger() import time from wpasupplicant import WpaSupplicant from p2p_utils import * from test_nfc_p2p imp...
42.742739
113
0.637026
import logging logger = logging.getLogger() import time from wpasupplicant import WpaSupplicant from p2p_utils import * from test_nfc_p2p import set_ip_addr_info, check_ip_addr, grpform_events from hwsim import HWSimRadio import hostapd import hwsim_utils def test_p2p_device_grpform(dev, apdev): with HWSimR...
true
true
1c3648ec3279a1f0e854684b559c8178aba6aede
468
py
Python
data/scripts/templates/object/tangible/shipcontrol/shared_shipcontrol_falcon.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/shipcontrol/shared_shipcontrol_falcon.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/shipcontrol/shared_shipcontrol_falcon.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/shipcontrol/shared_shipcontrol_falcon.iff" result.attribute_templat...
27.529412
78
0.739316
true
true
1c36499a2f23ae8c2c7dad89df8911f1d10add28
1,203
py
Python
packages/pyre/xml/AttributeDescriptor.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
packages/pyre/xml/AttributeDescriptor.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
packages/pyre/xml/AttributeDescriptor.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2018 all rights reserved # from .Descriptor import Descriptor class AttributeDescriptor(Descriptor): """ This class serves as the resting place for element metadata provided by the user during DTD formation. It is used by DTD-deriv...
26.152174
96
0.67581
from .Descriptor import Descriptor class AttributeDescriptor(Descriptor): name = None type = None presence = None default = None
true
true
1c3649e7d1e2e92d3f3feb33af3df4d1f121953c
6,416
py
Python
pyapp/opensipkd-sig/opensipkdsig/tools.py
aagusti/geo
e6ac0736619a57c7887baf89513ad77883edbfa9
[ "MIT" ]
null
null
null
pyapp/opensipkd-sig/opensipkdsig/tools.py
aagusti/geo
e6ac0736619a57c7887baf89513ad77883edbfa9
[ "MIT" ]
null
null
null
pyapp/opensipkd-sig/opensipkdsig/tools.py
aagusti/geo
e6ac0736619a57c7887baf89513ad77883edbfa9
[ "MIT" ]
null
null
null
import os import re import mimetypes from types import ( IntType, LongType, ListType, StringType, UnicodeType, BooleanType, ) import calendar from datetime import ( date, datetime, timedelta, ) from random import choice from string import ( ascii_uppercase, ascii_...
25.160784
114
0.565305
import os import re import mimetypes from types import ( IntType, LongType, ListType, StringType, UnicodeType, BooleanType, ) import calendar from datetime import ( date, datetime, timedelta, ) from random import choice from string import ( ascii_uppercase, ascii_...
false
true
1c364a1886e096911462c29d931172fd9f994844
4,677
py
Python
sdk/python/pulumi_azure_nextgen/network/v20200701/get_virtual_router_peering.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20200701/get_virtual_router_peering.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20200701/get_virtual_router_peering.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...
35.165414
156
0.647424
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ 'GetVirtualRouterPeeringResult', 'AwaitableGetVirtualRouterPeeringResult', 'get_virtual_router_peering', ] @pulumi.output_type class GetVirtual...
true
true
1c364a6388c8dc792e21bc5b830da7ebd076b86f
659
py
Python
var/spack/repos/builtin/packages/py-scinum/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/py-scinum/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/py-scinum/package.py
joequant/spack
e028ee0d5903045e1cdeb57550cbff61f2ffb2fa
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyScinum(PythonPackage): """Scientific numbers with multiple uncertainties and corr...
32.95
95
0.728376
from spack import * class PyScinum(PythonPackage): homepage = "https://github.com/riga/scinum" pypi = "scinum/scinum-1.2.0.tar.gz" version('1.2.0', sha256='31802d9b580f3a89c0876f34432851bc4def9cb2844d6f3c8e044480f2dd2f91') depends_on('python@2.7:', type=('build', 'run')) depends_on('py...
true
true
1c364b1d9d88e31d1351040522f94d18b6188909
1,755
py
Python
p399_evaluate_division.py
feigaochn/leetcode
abf0877fae02aa9c2549051f0b68df0ace952512
[ "MIT" ]
null
null
null
p399_evaluate_division.py
feigaochn/leetcode
abf0877fae02aa9c2549051f0b68df0ace952512
[ "MIT" ]
null
null
null
p399_evaluate_division.py
feigaochn/leetcode
abf0877fae02aa9c2549051f0b68df0ace952512
[ "MIT" ]
null
null
null
class Solution: def calcEquation(self, equations, values, queries): """ :type equations: List[List[str]] :type values: List[float] :type queries: List[List[str]] :rtype: List[float] """ from collections import defaultdict division = defaultdict(dict) ...
34.411765
78
0.426781
class Solution: def calcEquation(self, equations, values, queries): from collections import defaultdict division = defaultdict(dict) for (up, down), ratio in zip(equations, values): division[up][down] = ratio if abs(ratio) > 1e-3: division[down][up] = ...
true
true
1c364c02c70f8f02149d219d56573d7fd037e68c
484
py
Python
setup.py
openprocurement/robot_tests.broker.25h8
619ffd180a8f051ef46d62767d54f4796baa122c
[ "Apache-2.0" ]
null
null
null
setup.py
openprocurement/robot_tests.broker.25h8
619ffd180a8f051ef46d62767d54f4796baa122c
[ "Apache-2.0" ]
1
2017-12-18T13:44:01.000Z
2017-12-18T13:44:01.000Z
setup.py
openprocurement/robot_tests.broker.25h8
619ffd180a8f051ef46d62767d54f4796baa122c
[ "Apache-2.0" ]
3
2018-06-11T10:30:05.000Z
2019-08-07T07:55:40.000Z
from setuptools import setup broker_name = '25h8' pkg_name = 'robot_tests.broker.{}'.format(broker_name) description = '{} broker for OpenProcurement Robot tests'.format(broker_name) setup(name=pkg_name, version='0.0.dev1', description=description, author='', author_email='', url='https:...
28.470588
77
0.661157
from setuptools import setup broker_name = '25h8' pkg_name = 'robot_tests.broker.{}'.format(broker_name) description = '{} broker for OpenProcurement Robot tests'.format(broker_name) setup(name=pkg_name, version='0.0.dev1', description=description, author='', author_email='', url='https:...
true
true
1c364e9bbe94cf32b79e21647cfb3f8d4c807887
836
py
Python
glance/image_cache/cleaner.py
citrix-openstack-build/glance
5048ceea989d93c8819d2dc6377803fc74620d14
[ "Apache-2.0" ]
1
2018-05-03T03:52:39.000Z
2018-05-03T03:52:39.000Z
glance/image_cache/cleaner.py
citrix-openstack-build/glance
5048ceea989d93c8819d2dc6377803fc74620d14
[ "Apache-2.0" ]
null
null
null
glance/image_cache/cleaner.py
citrix-openstack-build/glance
5048ceea989d93c8819d2dc6377803fc74620d14
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/...
27.866667
78
0.7189
from glance.image_cache import base class Cleaner(base.CacheApp): def run(self): self.cache.clean()
true
true
1c36506797ede50a7b230fbe77edfc0534f3d72f
6,058
py
Python
site/mysite/facerecognition/tools.py
ditastaszewski/C17705971-DT228-FYP
5e4be0aad9b6d86180c01a3291952e3de0bec156
[ "MIT" ]
null
null
null
site/mysite/facerecognition/tools.py
ditastaszewski/C17705971-DT228-FYP
5e4be0aad9b6d86180c01a3291952e3de0bec156
[ "MIT" ]
null
null
null
site/mysite/facerecognition/tools.py
ditastaszewski/C17705971-DT228-FYP
5e4be0aad9b6d86180c01a3291952e3de0bec156
[ "MIT" ]
null
null
null
import cv2 import matplotlib.pyplot as plot from matplotlib import pyplot as plt from matplotlib import image as image import easygui import numpy as np import glob import tensorflow as tf import keras,os from keras.models import Sequential from keras.layers import Dense, Conv2D, MaxPool2D , Flatten from keras.preproc...
38.100629
113
0.622483
import cv2 import matplotlib.pyplot as plot from matplotlib import pyplot as plt from matplotlib import image as image import easygui import numpy as np import glob import tensorflow as tf import keras,os from keras.models import Sequential from keras.layers import Dense, Conv2D, MaxPool2D , Flatten from keras.preproc...
true
true
1c3651fde848b19dc6ea7ba74c0eea8e504854f8
768
py
Python
resources/_buggycode-peer-review/cs08-01-ykk/buggy.py
kyliehuch/w21
26f3e0af4dbed4e3b3e892c931dce57a3362a054
[ "MIT" ]
null
null
null
resources/_buggycode-peer-review/cs08-01-ykk/buggy.py
kyliehuch/w21
26f3e0af4dbed4e3b3e892c931dce57a3362a054
[ "MIT" ]
16
2021-02-05T22:26:21.000Z
2021-03-08T17:51:43.000Z
resources/_buggycode-peer-review/cs08-01-ykk/buggy.py
kyliehuch/w21
26f3e0af4dbed4e3b3e892c931dce57a3362a054
[ "MIT" ]
15
2021-02-04T17:16:50.000Z
2021-02-19T17:50:14.000Z
''' Code truncated to focus on the most important part ''' def exact_change(user_total): nickels = 0 if user_total <= 0: print('no change') if user_total >= 5: if (user_total//5) == 1: nickles = user_total//5 user_total = user_total%5 print(nickles, 'nick...
26.482759
58
0.55599
def exact_change(user_total): nickels = 0 if user_total <= 0: print('no change') if user_total >= 5: if (user_total//5) == 1: nickles = user_total//5 user_total = user_total%5 print(nickles, 'nickel') elif (user_total//5) > 1: nickles = us...
true
true
1c3652c55ecdecf5b744bdddc6db9d0876006d9d
898
py
Python
temboo/core/Library/Xively/Devices/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Xively/Devices/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Xively/Devices/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
from temboo.Library.Xively.Devices.ActivateDevice import ActivateDevice, ActivateDeviceInputSet, ActivateDeviceResultSet, ActivateDeviceChoreographyExecution from temboo.Library.Xively.Devices.CreateDevice import CreateDevice, CreateDeviceInputSet, CreateDeviceResultSet, CreateDeviceChoreographyExecution from temboo.Li...
128.285714
157
0.906459
from temboo.Library.Xively.Devices.ActivateDevice import ActivateDevice, ActivateDeviceInputSet, ActivateDeviceResultSet, ActivateDeviceChoreographyExecution from temboo.Library.Xively.Devices.CreateDevice import CreateDevice, CreateDeviceInputSet, CreateDeviceResultSet, CreateDeviceChoreographyExecution from temboo.Li...
true
true
1c3652cae9464671978b45d983a6501876dc365f
5,289
py
Python
AutomatedTesting/Gem/PythonTests/largeworlds/landscape_canvas/TestSuite_Main_Optimized.py
CStudios15/o3de
9dc85000a3ec1a6c6633d718f5c455ab11a46818
[ "Apache-2.0", "MIT" ]
8
2021-08-31T02:14:19.000Z
2021-12-28T19:20:59.000Z
AutomatedTesting/Gem/PythonTests/largeworlds/landscape_canvas/TestSuite_Main_Optimized.py
RoddieKieley/o3de
e804fd2a4241b039a42d9fa54eaae17dc94a7a92
[ "Apache-2.0", "MIT" ]
8
2021-07-12T13:55:00.000Z
2021-10-04T14:53:21.000Z
AutomatedTesting/Gem/PythonTests/largeworlds/landscape_canvas/TestSuite_Main_Optimized.py
RoddieKieley/o3de
e804fd2a4241b039a42d9fa54eaae17dc94a7a92
[ "Apache-2.0", "MIT" ]
1
2021-09-16T05:06:18.000Z
2021-09-16T05:06:18.000Z
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ import os import pytest import ly_test_tools.environment.file_system as file_system import ly_test_tools._inte...
53.969388
114
0.825298
import os import pytest import ly_test_tools.environment.file_system as file_system import ly_test_tools._internal.pytest_plugin as internal_plugin from ly_test_tools.o3de.editor_test import EditorSingleTest, EditorSharedTest, EditorParallelTest, EditorTestSuite @pytest.mark.SUITE_periodic @pytest.mark.parametrize(...
true
true
1c3653f0edbfcb961f80eb43f0d07900b176a568
3,024
py
Python
genomicpipeline/main.py
ManuelArcieri/GenomicPipeline
3bf29341484e26edbebcc2c23ff42e2d35457a48
[ "MIT" ]
null
null
null
genomicpipeline/main.py
ManuelArcieri/GenomicPipeline
3bf29341484e26edbebcc2c23ff42e2d35457a48
[ "MIT" ]
null
null
null
genomicpipeline/main.py
ManuelArcieri/GenomicPipeline
3bf29341484e26edbebcc2c23ff42e2d35457a48
[ "MIT" ]
null
null
null
import os.path import subprocess from pipeline import Pipeline from sys import argv, stderr VERSION = '0.1.12' def main(): if len(argv) <= 1 or argv[1].lower() in ('help', '-h', '--help'): print_help() elif len(argv) == 3 and argv[1] == 'run': # gep run pipeline.toml if os.path.isfile(argv...
37.8
137
0.602513
import os.path import subprocess from pipeline import Pipeline from sys import argv, stderr VERSION = '0.1.12' def main(): if len(argv) <= 1 or argv[1].lower() in ('help', '-h', '--help'): print_help() elif len(argv) == 3 and argv[1] == 'run': if os.path.isfile(argv[2]): pipel...
true
true
1c36540741d6bd3c7d4cefad1ccd0ce5ff628364
3,681
py
Python
syloga/transform/basic.py
xaedes/python-symbolic-logic-to-gate
a0dc9be9e04290008cf709fac789d224ab8c14b0
[ "MIT" ]
null
null
null
syloga/transform/basic.py
xaedes/python-symbolic-logic-to-gate
a0dc9be9e04290008cf709fac789d224ab8c14b0
[ "MIT" ]
null
null
null
syloga/transform/basic.py
xaedes/python-symbolic-logic-to-gate
a0dc9be9e04290008cf709fac789d224ab8c14b0
[ "MIT" ]
null
null
null
from syloga.ast.containers import Tuple from syloga.ast.core import Expression from syloga.ast.core import BooleanValue from syloga.ast.traversal import iter_args from syloga.utils.functional import identity from syloga.utils.predicates import is_mappable_collection def to_expr(argument): recurse = expr resul...
33.770642
169
0.64602
from syloga.ast.containers import Tuple from syloga.ast.core import Expression from syloga.ast.core import BooleanValue from syloga.ast.traversal import iter_args from syloga.utils.functional import identity from syloga.utils.predicates import is_mappable_collection def to_expr(argument): recurse = expr resul...
true
true
1c36542e427a102c4c0111ca410cff035926df71
162
py
Python
plot_data.py
achilleas-k/brian-scripts
4d2d8c9a53e7202b60c78716e8b1a9d521293c54
[ "Apache-2.0" ]
null
null
null
plot_data.py
achilleas-k/brian-scripts
4d2d8c9a53e7202b60c78716e8b1a9d521293c54
[ "Apache-2.0" ]
null
null
null
plot_data.py
achilleas-k/brian-scripts
4d2d8c9a53e7202b60c78716e8b1a9d521293c54
[ "Apache-2.0" ]
null
null
null
from sys import argv import pickle import matplotlib.pyplot as plt filename = argv[1] (s,j,m) = pickle.load(open(filename,'r')) plt.contourf(s,j,m) plt.show()
14.727273
41
0.716049
from sys import argv import pickle import matplotlib.pyplot as plt filename = argv[1] (s,j,m) = pickle.load(open(filename,'r')) plt.contourf(s,j,m) plt.show()
true
true
1c3655008cca7501ece7e023b88f9937a5b0209b
1,546
py
Python
xldiff/cli.py
zondo/pyxldiff
ed5f04d50255f2c98abd0e778100fe0348ba4295
[ "MIT" ]
null
null
null
xldiff/cli.py
zondo/pyxldiff
ed5f04d50255f2c98abd0e778100fe0348ba4295
[ "MIT" ]
null
null
null
xldiff/cli.py
zondo/pyxldiff
ed5f04d50255f2c98abd0e778100fe0348ba4295
[ "MIT" ]
null
null
null
"""Command line interface. """ import sys import docopt from . import __progname__, __version__ from .source import text_source from .diff import diff_lines USAGE = """ Usage: {prog} [options] FILE [FILE] Description: Excel spreadsheet diff program. With one arg, just shows a text representation of the spr...
22.085714
68
0.598965
import sys import docopt from . import __progname__, __version__ from .source import text_source from .diff import diff_lines USAGE = """ Usage: {prog} [options] FILE [FILE] Description: Excel spreadsheet diff program. With one arg, just shows a text representation of the spreadsheet. With two args, shows...
true
true
1c36559d4793679bfd1640b6b5b9c3a0c38be73a
534
py
Python
extension/backbones/simple_backbone.py
CFM-MSG/SDN
f309602dc2bb73117355003f3744f8e5450dbccc
[ "MIT" ]
null
null
null
extension/backbones/simple_backbone.py
CFM-MSG/SDN
f309602dc2bb73117355003f3744f8e5450dbccc
[ "MIT" ]
null
null
null
extension/backbones/simple_backbone.py
CFM-MSG/SDN
f309602dc2bb73117355003f3744f8e5450dbccc
[ "MIT" ]
null
null
null
import torch class simple_backbone(torch.nn.Module): def __init__(self) -> None: super().__init__() self.conv = torch.nn.Sequential(torch.nn.Conv2d(1, 64, 3, 1, 1), torch.nn.ReLU(), torch.nn.Conv2d(64, 128, 3, 1, 1), ...
38.142857
75
0.43633
import torch class simple_backbone(torch.nn.Module): def __init__(self) -> None: super().__init__() self.conv = torch.nn.Sequential(torch.nn.Conv2d(1, 64, 3, 1, 1), torch.nn.ReLU(), torch.nn.Conv2d(64, 128, 3, 1, 1), ...
true
true
1c3655ffb6eccc5b12bc1dbcde5f0c55de50bfd8
3,796
py
Python
sumochip/webapp.py
laurivosandi/sumochip
b1dad5c8d066a52fc2f0d2cfcd81f84c6826534a
[ "MIT" ]
19
2016-06-12T13:29:42.000Z
2017-05-19T16:47:16.000Z
sumochip/webapp.py
eik-robo/sumochip
b1dad5c8d066a52fc2f0d2cfcd81f84c6826534a
[ "MIT" ]
20
2016-06-12T12:40:49.000Z
2016-12-27T17:34:55.000Z
sumochip/webapp.py
laurivosandi/sumochip
b1dad5c8d066a52fc2f0d2cfcd81f84c6826534a
[ "MIT" ]
15
2016-05-19T08:07:52.000Z
2021-07-14T06:33:18.000Z
from __future__ import print_function from flask import Flask, render_template from sumorobot import Sumorobot, SensorThread, lock from flask_sockets import Sockets from threading import Thread from time import sleep import imp import json import os codeTemplate = """ from threading import Thread from time import slee...
29.889764
109
0.570074
from __future__ import print_function from flask import Flask, render_template from sumorobot import Sumorobot, SensorThread, lock from flask_sockets import Sockets from threading import Thread from time import sleep import imp import json import os codeTemplate = """ from threading import Thread from time import slee...
true
true
1c36561dd62255f753f2832ed72553d544dcd801
1,262
py
Python
web_scr_13_task.py
Vishalm20/IMDB-Scraper
5755ff4898a213126450e9a4ec1d3e153d0a5af5
[ "Apache-2.0" ]
1
2021-05-25T20:00:30.000Z
2021-05-25T20:00:30.000Z
web_scr_13_task.py
vishalmajumdar95/IMDB-Scraper
5755ff4898a213126450e9a4ec1d3e153d0a5af5
[ "Apache-2.0" ]
null
null
null
web_scr_13_task.py
vishalmajumdar95/IMDB-Scraper
5755ff4898a213126450e9a4ec1d3e153d0a5af5
[ "Apache-2.0" ]
null
null
null
import json from pprint import pprint file=open('imdb_list_5.json','r') moviedettail_file=json.load(file) file.close() main_data_list=[] dic={} moviecast_file=open('imdb_list_12.json','r') movie_cast=json.load(moviecast_file) def get_movie_list_details(): for i,j in zip(moviedettail_file,movie_cast): dic['m...
29.348837
52
0.616482
import json from pprint import pprint file=open('imdb_list_5.json','r') moviedettail_file=json.load(file) file.close() main_data_list=[] dic={} moviecast_file=open('imdb_list_12.json','r') movie_cast=json.load(moviecast_file) def get_movie_list_details(): for i,j in zip(moviedettail_file,movie_cast): dic['m...
true
true
1c3656c9c2faa6b8f28d336ad6dbc3d834307ef8
7,851
py
Python
tests/units/transformers/test_relevant_feature_augmenter.py
pfornia/tsfresh
9550f84b8a920cfe53d9b6ca47eedeca619725cf
[ "MIT" ]
1
2021-03-16T15:08:04.000Z
2021-03-16T15:08:04.000Z
tests/units/transformers/test_relevant_feature_augmenter.py
pfornia/tsfresh
9550f84b8a920cfe53d9b6ca47eedeca619725cf
[ "MIT" ]
null
null
null
tests/units/transformers/test_relevant_feature_augmenter.py
pfornia/tsfresh
9550f84b8a920cfe53d9b6ca47eedeca619725cf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This file as well as the whole tsfresh package are licenced under the MIT licence (see the LICENCE.txt) # Maximilian Christ (maximilianchrist.com), Blue Yonder Gmbh, 2016 import pandas as pd import numpy as np from sklearn import model_selection from sklearn.ensemble import RandomForestClassi...
43.860335
120
0.638263
import pandas as pd import numpy as np from sklearn import model_selection from sklearn.ensemble import RandomForestClassifier from sklearn.pipeline import Pipeline from tests.fixtures import DataTestCase import mock from tsfresh.feature_extraction import MinimalFCParameters from tsfresh.transformers.relevant_fea...
true
true
1c365743040750360d8b79dfa0adc356f0359a7c
1,317
py
Python
proteus/tests/cylinder2D/sbm_method/pressureInitial_n.py
acatwithacomputer/proteus
80dfad95da6ab4d18a88a035f55c26b03540a864
[ "MIT" ]
null
null
null
proteus/tests/cylinder2D/sbm_method/pressureInitial_n.py
acatwithacomputer/proteus
80dfad95da6ab4d18a88a035f55c26b03540a864
[ "MIT" ]
13
2018-02-08T23:22:59.000Z
2020-12-06T19:40:32.000Z
proteus/tests/cylinder2D/sbm_method/pressureInitial_n.py
acatwithacomputer/proteus
80dfad95da6ab4d18a88a035f55c26b03540a864
[ "MIT" ]
1
2020-02-17T03:25:34.000Z
2020-02-17T03:25:34.000Z
from __future__ import absolute_import from proteus import * from proteus.default_n import * try: from .pressureInitial_p import * except: from pressureInitial_p import * triangleOptions = triangleOptions femSpaces = {0:pbasis} stepController=FixedStep #numericalFluxType = NumericalFlux.ConstantAdvection_D...
26.34
113
0.81473
from __future__ import absolute_import from proteus import * from proteus.default_n import * try: from .pressureInitial_p import * except: from pressureInitial_p import * triangleOptions = triangleOptions femSpaces = {0:pbasis} stepController=FixedStep atrix if useSuperlu: multilevelLinearSolver = Lin...
true
true
1c3657b1d9b17cec3143d974c079361403a78ce5
20,204
py
Python
maint_tools/test_docstrings.py
xieliaing/scikit-learn
9b210ae8ffdc40e210f30f24656779ac690b899a
[ "BSD-3-Clause" ]
null
null
null
maint_tools/test_docstrings.py
xieliaing/scikit-learn
9b210ae8ffdc40e210f30f24656779ac690b899a
[ "BSD-3-Clause" ]
null
null
null
maint_tools/test_docstrings.py
xieliaing/scikit-learn
9b210ae8ffdc40e210f30f24656779ac690b899a
[ "BSD-3-Clause" ]
null
null
null
import re from inspect import signature import pkgutil import inspect import importlib from typing import Optional import pytest from sklearn.utils import all_estimators import sklearn numpydoc_validation = pytest.importorskip("numpydoc.validate") # List of modules ignored when checking for numpydoc validation. DOCS...
40.488978
85
0.725896
import re from inspect import signature import pkgutil import inspect import importlib from typing import Optional import pytest from sklearn.utils import all_estimators import sklearn numpydoc_validation = pytest.importorskip("numpydoc.validate") DOCSTRING_IGNORE_LIST = [ "KNNImputer", "LabelPropagation", ...
true
true
1c365878a4155067c9c49a7af13aa77faccf9450
590
py
Python
feed/migrations/0007_auto_20200818_1706.py
wivn/feed-reader
1b4524fcdfc79391a5cf982ce9c5681e600f4303
[ "MIT" ]
null
null
null
feed/migrations/0007_auto_20200818_1706.py
wivn/feed-reader
1b4524fcdfc79391a5cf982ce9c5681e600f4303
[ "MIT" ]
null
null
null
feed/migrations/0007_auto_20200818_1706.py
wivn/feed-reader
1b4524fcdfc79391a5cf982ce9c5681e600f4303
[ "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-08-18 17:06 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('feed', '0006_subscriptio...
26.818182
121
0.677966
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('feed', '0006_subscription_user'), ] operations = [ mig...
true
true
1c36595fca969f527c397bc1ab6b9c325648d142
1,790
py
Python
deployment-manager/config.py
alessandro11/celero-devops
5c180044145defa04ebe0dd4ba8b69ee50194317
[ "MIT" ]
1
2021-01-21T03:40:07.000Z
2021-01-21T03:40:07.000Z
deployment-manager/config.py
alessandro11/celero-devops
5c180044145defa04ebe0dd4ba8b69ee50194317
[ "MIT" ]
null
null
null
deployment-manager/config.py
alessandro11/celero-devops
5c180044145defa04ebe0dd4ba8b69ee50194317
[ "MIT" ]
null
null
null
# Copyright 2018 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
41.627907
77
0.618436
def generate_config(context): resources = [] properties = context.properties project_id = properties.get('projectId', context.env['project']) name = properties.get('config', context.env['name']) properties['postgres']['image'] = 'gcr.io/{}/{}'.format(project_id, \ ...
true
true
1c365a56869fe64d5538bf619c64fc0207b4e3a6
401
py
Python
chrome/common/extensions/docs/server2/test_branch_utility.py
devasia1000/chromium
919a8a666862fb866a6bb7aa7f3ae8c0442b4828
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-02-03T05:19:48.000Z
2021-11-15T15:07:21.000Z
chrome/common/extensions/docs/server2/test_branch_utility.py
devasia1000/chromium
919a8a666862fb866a6bb7aa7f3ae8c0442b4828
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/common/extensions/docs/server2/test_branch_utility.py
devasia1000/chromium
919a8a666862fb866a6bb7aa7f3ae8c0442b4828
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from branch_utility import BranchUtility class TestBranchUtility(object): '''Mimics BranchUtility to return valid-ish data without needing omahaproxy da...
30.846154
77
0.780549
from branch_utility import BranchUtility class TestBranchUtility(object): def GetBranchForChannel(self, channel_name): return channel_name
true
true
1c365a9df09866636f3a6bfa4ef78be8dd8ff624
4,887
py
Python
official/modeling/multitask/task_sampler.py
KiryanovKD/models
e17080247e3c9b3301680f61b8f4815c22509e7e
[ "Apache-2.0" ]
4
2019-11-02T14:47:46.000Z
2022-01-14T10:43:02.000Z
official/modeling/multitask/task_sampler.py
KiryanovKD/models
e17080247e3c9b3301680f61b8f4815c22509e7e
[ "Apache-2.0" ]
6
2021-10-05T18:53:55.000Z
2022-03-29T21:37:00.000Z
official/modeling/multitask/task_sampler.py
KiryanovKD/models
e17080247e3c9b3301680f61b8f4815c22509e7e
[ "Apache-2.0" ]
2
2021-11-30T21:50:03.000Z
2022-03-27T01:27:31.000Z
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.883721
79
0.727849
import abc from typing import Union, Dict, Text import tensorflow as tf from official.modeling.multitask import configs class TaskSampler(tf.Module, metaclass=abc.ABCMeta): def __init__(self, task_weights: Dict[Text, Union[float, int]]): self._task_weights = task_weights @property def task_...
true
true
1c365c914308d1ed9d75b4e5de173d4ff5ba4097
33,893
py
Python
apps/life_sci/python/dgllife/utils/splitters.py
szha/dgl
00efec60a0e1a250dd95fceec1d8e5209b8e01ea
[ "Apache-2.0" ]
1
2021-01-02T03:34:21.000Z
2021-01-02T03:34:21.000Z
apps/life_sci/python/dgllife/utils/splitters.py
sherry-1001/dgl
60d2e7d3c928d43bbb18e7ab17c066451c49f649
[ "Apache-2.0" ]
null
null
null
apps/life_sci/python/dgllife/utils/splitters.py
sherry-1001/dgl
60d2e7d3c928d43bbb18e7ab17c066451c49f649
[ "Apache-2.0" ]
null
null
null
"""Various methods for splitting chemical datasets. We mostly adapt them from deepchem (https://github.com/deepchem/deepchem/blob/master/deepchem/splits/splitters.py). """ # pylint: disable= no-member, arguments-differ, invalid-name # pylint: disable=E0611 from collections import defaultdict from functools import part...
45.432976
97
0.632609
from collections import defaultdict from functools import partial from itertools import accumulate, chain from rdkit import Chem from rdkit.Chem import rdMolDescriptors from rdkit.Chem.rdmolops import FastFindRings from rdkit.Chem.Scaffolds import MurckoScaffold import dgl.backend as F import numpy as np from dgl.da...
true
true
1c365e88faf97a6f3ac4c02769055545fd519d4d
13,628
py
Python
src/train-random-forest.py
peferso/pegaso-training
e1c99be63b58053d0de7f6a6e392bf08c42c7337
[ "MIT" ]
null
null
null
src/train-random-forest.py
peferso/pegaso-training
e1c99be63b58053d0de7f6a6e392bf08c42c7337
[ "MIT" ]
null
null
null
src/train-random-forest.py
peferso/pegaso-training
e1c99be63b58053d0de7f6a6e392bf08c42c7337
[ "MIT" ]
null
null
null
import os import pymysql import datetime import pandas as pd import numpy as np import time import logging from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestRegressor import joblib from multiprocessing import Pool import pickle from random import randint def fetch_database_...
40.802395
136
0.58211
import os import pymysql import datetime import pandas as pd import numpy as np import time import logging from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestRegressor import joblib from multiprocessing import Pool import pickle from random import randint def fetch_database_...
true
true
1c3660c30c47af362807bbbd60269eaac231b6dc
4,251
py
Python
benchmark/startQiskit_QC933.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC933.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC933.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=41 import cirq import qiskit from qiskit import IBMQ from qiskit.providers.ibmq import least_busy from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from ma...
31.488889
165
0.612562
import cirq import qiskit from qiskit import IBMQ from qiskit.providers.ibmq import least_busy from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi im...
true
true
1c3660ca9c9f57d0cda70b102246a24f2e77cacb
12,256
py
Python
temp.py
AlphaPlusTT/nerf-w
c56589df46b80077eb9e0bfb29b023490b0a7fa1
[ "MIT" ]
1
2022-03-29T09:59:36.000Z
2022-03-29T09:59:36.000Z
temp.py
zhoufan1908/nerf-w
c56589df46b80077eb9e0bfb29b023490b0a7fa1
[ "MIT" ]
null
null
null
temp.py
zhoufan1908/nerf-w
c56589df46b80077eb9e0bfb29b023490b0a7fa1
[ "MIT" ]
1
2022-03-29T09:59:27.000Z
2022-03-29T09:59:27.000Z
import torch from torch.utils.data import Dataset import glob import numpy as np import os import pandas as pd import pickle from PIL import Image from torchvision import transforms as T from datasets.ray_utils import * from datasets.colmap_utils import \ read_cameras_binary, read_images_binary, read_points3d_bina...
43.003509
103
0.532311
import torch from torch.utils.data import Dataset import glob import numpy as np import os import pandas as pd import pickle from PIL import Image from torchvision import transforms as T from datasets.ray_utils import * from datasets.colmap_utils import \ read_cameras_binary, read_images_binary, read_points3d_bina...
true
true
1c3660fdd92880dd4c39bcd9c439b34832b57eba
11,979
py
Python
Fitter.py
artiste-qb-net/Quantum_Edward
89d3a7d40177065eaa34fabd4b4c255b8ef51881
[ "MIT" ]
51
2018-05-05T02:38:25.000Z
2021-11-25T19:41:56.000Z
Fitter.py
artiste-qb-net/Quantum_Edward
89d3a7d40177065eaa34fabd4b4c255b8ef51881
[ "MIT" ]
11
2018-05-09T03:35:06.000Z
2018-07-15T10:38:11.000Z
Fitter.py
artiste-qb-net/Quantum_Edward
89d3a7d40177065eaa34fabd4b4c255b8ef51881
[ "MIT" ]
12
2018-06-15T09:55:06.000Z
2021-02-27T00:09:45.000Z
import numpy as np import numpy.random as npr import scipy.stats as ss import utilities as ut from TimeStep import * from Plotter import * class Fitter: """ Read docstrings for Model class first. The goal of this class is to implement the BBVI(see ref below) for a Model object 'model' to estimate th...
35.440828
77
0.552634
import numpy as np import numpy.random as npr import scipy.stats as ss import utilities as ut from TimeStep import * from Plotter import * class Fitter: def __init__(self, model, y_nsam_nb, x_nsam_na, nsamgrad, nt, eta, t_step_meth): self.mod = model self.y_nsam_nb = y_nsam_nb ...
true
true
1c36613f37c713ea81efeb03508af68023b16c80
14,481
py
Python
lcd_lms.py
fvzeppelin/lcd_lms
db4984e50f5cf415fb221e5c44bc5a775e1e64e0
[ "MIT" ]
null
null
null
lcd_lms.py
fvzeppelin/lcd_lms
db4984e50f5cf415fb221e5c44bc5a775e1e64e0
[ "MIT" ]
null
null
null
lcd_lms.py
fvzeppelin/lcd_lms
db4984e50f5cf415fb221e5c44bc5a775e1e64e0
[ "MIT" ]
null
null
null
#! /usr/local/bin/python3 import re import time import sys import logging import argparse import configparser from socket import gethostname from os.path import basename import lcd import lms MAIN_LOOP_DELAY = 0.3 def config_init(): global verbose verbose = False parse_arguments() if (verbose == True...
34.560859
162
0.575444
import re import time import sys import logging import argparse import configparser from socket import gethostname from os.path import basename import lcd import lms MAIN_LOOP_DELAY = 0.3 def config_init(): global verbose verbose = False parse_arguments() if (verbose == True): logging.basicC...
true
true
1c36618f3333b93cbe1b7cfd4238c38225e0559e
8,729
py
Python
phaselink_plot.py
jiunting/PhaseLink
994e85ff7162869dd2a54c26eeb307e72ed1972e
[ "MIT" ]
47
2019-06-13T13:47:17.000Z
2022-03-20T05:01:51.000Z
phaselink_plot.py
jiunting/PhaseLink
994e85ff7162869dd2a54c26eeb307e72ed1972e
[ "MIT" ]
2
2020-07-01T17:06:09.000Z
2021-05-01T02:20:45.000Z
phaselink_plot.py
jiunting/PhaseLink
994e85ff7162869dd2a54c26eeb307e72ed1972e
[ "MIT" ]
26
2019-06-13T13:44:58.000Z
2021-09-29T10:10:33.000Z
#!/home/zross/bin/python import numpy as np import sys import glob import obspy import pylab as plt import json import random class Arrival(): def __init__(self, net=None, sta=None, time=None, phase=None, dist=None, resid=None): self.net = net self.sta = sta self.time = time ...
33.573077
114
0.536717
import numpy as np import sys import glob import obspy import pylab as plt import json import random class Arrival(): def __init__(self, net=None, sta=None, time=None, phase=None, dist=None, resid=None): self.net = net self.sta = sta self.time = time self.phase = phase ...
true
true
1c366196414ee266797f5e1f3e4eaf2e17fa0b9f
1,691
py
Python
src/graph_transpiler/webdnn/graph/operators/tile.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
1
2021-04-09T15:55:35.000Z
2021-04-09T15:55:35.000Z
src/graph_transpiler/webdnn/graph/operators/tile.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/graph/operators/tile.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
null
null
null
from typing import Optional import numpy as np from webdnn.graph.axis import AxisKeyDict from webdnn.graph.graph import Graph from webdnn.graph.operator import Operator from webdnn.graph.optimize_rule import OptimizeRule from webdnn.graph.variable import Variable from webdnn.graph.variables.constant_variable import C...
28.183333
102
0.645772
from typing import Optional import numpy as np from webdnn.graph.axis import AxisKeyDict from webdnn.graph.graph import Graph from webdnn.graph.operator import Operator from webdnn.graph.optimize_rule import OptimizeRule from webdnn.graph.variable import Variable from webdnn.graph.variables.constant_variable import C...
true
true
1c3661c53d66366f54589d4511c69a8cf99eb1fb
1,391
py
Python
mentoring/migrations/0002_mentee.py
aiventimptner/horizon
6e2436bfa81cad55fefd4c0bb67df3c36a9b6deb
[ "MIT" ]
null
null
null
mentoring/migrations/0002_mentee.py
aiventimptner/horizon
6e2436bfa81cad55fefd4c0bb67df3c36a9b6deb
[ "MIT" ]
1
2021-06-10T19:59:07.000Z
2021-06-10T19:59:07.000Z
mentoring/migrations/0002_mentee.py
aiventimptner/horizon
6e2436bfa81cad55fefd4c0bb67df3c36a9b6deb
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-09-04 12:12 import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('mentoring', '0001_initial'), ] operations = [ migrations.CreateModel( ...
47.965517
230
0.635514
import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('mentoring', '0001_initial'), ] operations = [ migrations.CreateModel( name='Mentee', fields=[ ...
true
true
1c36621b733bdedd165c9c809fe06960ece3a623
11,049
py
Python
src/Trajectory_Tools.py
Transportation-Inspection/visual_odometry
a27d0b4345a7a323310ceb17f57548e62dd8ce61
[ "MIT" ]
153
2016-07-26T22:41:04.000Z
2022-01-26T20:04:53.000Z
src/Trajectory_Tools.py
caomw/visual_odometry-1
109e7f97e44152581167588e21b1dad46bfa5803
[ "MIT" ]
4
2016-11-08T01:49:44.000Z
2021-04-13T12:32:53.000Z
src/Trajectory_Tools.py
Transportation-Inspection/visual_odometry
a27d0b4345a7a323310ceb17f57548e62dd8ce61
[ "MIT" ]
41
2016-08-02T19:12:47.000Z
2022-03-29T14:21:14.000Z
""" MIT License (MIT) Copyright (c) SUMMER 2016, Carnegie Mellon University Author: Jahdiel Alvarez 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 limita...
34.101852
114
0.612454
""" MIT License (MIT) Copyright (c) SUMMER 2016, Carnegie Mellon University Author: Jahdiel Alvarez 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 limita...
false
true