hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
5b30a5923b7c87c6ca0fe0b78674c26bbe53e6fb
4,215
py
Python
theano/misc/tests/test_pycuda_theano_simple.py
mdda/Theano
6ca7b2b65000e371f009b617d41bc5a90f022d38
[ "BSD-3-Clause" ]
295
2015-09-25T21:15:04.000Z
2022-01-13T01:16:18.000Z
libs/Theano/theano/misc/tests/test_pycuda_theano_simple.py
shenshenzhanzhan/attention-lvcsr
598d487c118e66875fdd625baa84ed29d283b800
[ "MIT" ]
21
2015-10-28T19:06:32.000Z
2022-03-11T23:13:05.000Z
libs/Theano/theano/misc/tests/test_pycuda_theano_simple.py
shenshenzhanzhan/attention-lvcsr
598d487c118e66875fdd625baa84ed29d283b800
[ "MIT" ]
114
2015-09-26T21:23:02.000Z
2021-11-19T02:36:41.000Z
""" This file is an example of view the memory allocated by pycuda in a GpuArray in a CudaNdarray to be able to use it in Theano. This also serve as a test for the function: cuda_ndarray.from_gpu_pointer """ from __future__ import print_function import sys import numpy import theano import theano.sandbox.cuda as cu...
32.175573
80
0.667378
c3e3cf4445e48612d7c910d9206404157c9eaca4
7,155
py
Python
sdk/python/pulumi_azure_nextgen/recoveryservices/latest/replication_protection_container_mapping.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/recoveryservices/latest/replication_protection_container_mapping.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/recoveryservices/latest/replication_protection_container_mapping.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
49.006849
451
0.685255
61bf9b0ed3c3a7aa27a79c5fb6c602fca0aaa70c
3,836
py
Python
pypy/module/binascii/interp_base64.py
Qointum/pypy
c0ed88efbc135a75a535f4534ca1f3baf0bf39d8
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/binascii/interp_base64.py
Qointum/pypy
c0ed88efbc135a75a535f4534ca1f3baf0bf39d8
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/binascii/interp_base64.py
Qointum/pypy
c0ed88efbc135a75a535f4534ca1f3baf0bf39d8
[ "Apache-2.0", "OpenSSL" ]
null
null
null
from pypy.interpreter.error import OperationError from pypy.interpreter.gateway import unwrap_spec from rpython.rlib.rstring import StringBuilder from pypy.module.binascii.interp_binascii import raise_Error from rpython.rlib.rarithmetic import ovfcheck # ____________________________________________________________ PA...
33.649123
75
0.541189
1675e9184d84800de36dc31b909d9704c8ad5428
3,053
py
Python
venv/csv-io/csv-io.py
ilya-kondratyev/staff-load
1a812279a204adc5682d95fa45a4507afdcd2d16
[ "Apache-2.0" ]
null
null
null
venv/csv-io/csv-io.py
ilya-kondratyev/staff-load
1a812279a204adc5682d95fa45a4507afdcd2d16
[ "Apache-2.0" ]
null
null
null
venv/csv-io/csv-io.py
ilya-kondratyev/staff-load
1a812279a204adc5682d95fa45a4507afdcd2d16
[ "Apache-2.0" ]
null
null
null
import csv import os.path import shutil """ Module csv_io.py contains functions to read and write Employees,Projects,Tasks,Teams information from/to CSV file File format is the following -------- Employees.csv Guid,Name,Grade,TotalTokens,AvailableTokens,List_of_AssignedTasks (colon separated list of Task Guids ),List_...
31.802083
151
0.700295
8865f718221725896fe3cabf5410dd0a4b2a5d3d
6,373
py
Python
surpyval/regression/accelerated_failure_time.py
dfm/SurPyval
014fba8f1d4a0f43218a3713ce80a78191ad8be9
[ "MIT" ]
null
null
null
surpyval/regression/accelerated_failure_time.py
dfm/SurPyval
014fba8f1d4a0f43218a3713ce80a78191ad8be9
[ "MIT" ]
null
null
null
surpyval/regression/accelerated_failure_time.py
dfm/SurPyval
014fba8f1d4a0f43218a3713ce80a78191ad8be9
[ "MIT" ]
null
null
null
import autograd.numpy as np from autograd import jacobian, hessian, elementwise_grad from scipy.optimize import minimize import surpyval import inspect from ..parametric.fitters import bounds_convert, fix_idx_and_function from .regression import Regression class AcceleratedFailureTimeFitter(): def __init__(self, ...
34.263441
105
0.574769
57f7263e6efc8e66bed19ec85611cca5fdf39f18
2,970
py
Python
static.py
nprapps/barkedu
533e16eb0d8888c2474a4edb10bae6bb98369ac1
[ "MIT" ]
11
2015-02-26T15:45:58.000Z
2017-08-25T09:25:12.000Z
static.py
nprapps/barkedu
533e16eb0d8888c2474a4edb10bae6bb98369ac1
[ "MIT" ]
144
2015-01-16T21:38:30.000Z
2015-02-19T22:35:29.000Z
static.py
nprapps/barkedu
533e16eb0d8888c2474a4edb10bae6bb98369ac1
[ "MIT" ]
8
2015-03-02T07:31:01.000Z
2021-02-23T10:43:50.000Z
#!/usr/bin/env python import json from mimetypes import guess_type import os from re import findall import subprocess from flask import abort, make_response from werkzeug.datastructures import Headers import app_config import copytext from flask import Blueprint from render_utils import BetterJSONEncoder, flatten_a...
29.7
109
0.639057
eef85fa5690db77caca8c5f4ffb5e8769e852d2e
119
py
Python
docs/source/examples/example_0.py
astooke/gtimer
2146dab459e5d959feb291821733d3d3ba7c523c
[ "MIT" ]
8
2016-09-08T05:40:40.000Z
2020-04-29T18:17:54.000Z
docs/source/examples/example_0.py
astooke/gtimer
2146dab459e5d959feb291821733d3d3ba7c523c
[ "MIT" ]
1
2022-01-27T13:11:58.000Z
2022-01-27T13:11:58.000Z
docs/source/examples/example_0.py
astooke/gtimer
2146dab459e5d959feb291821733d3d3ba7c523c
[ "MIT" ]
null
null
null
import gtimer as gt import time time.sleep(0.1) gt.stamp('first') time.sleep(0.3) gt.stamp('second') print gt.report()
14.875
19
0.722689
e6800e5d4711c037cb287ab918cc40891537ab8d
397
py
Python
Common/__ init __.py
mriosrivas/DSP_Student_2021
7d978d5a538e2eb198dfbe073b4d8dcbf1aa756f
[ "MIT" ]
2
2022-01-25T04:58:58.000Z
2022-03-24T23:00:13.000Z
Common/__ init __.py
mriosrivas/DSP_Student_2021
7d978d5a538e2eb198dfbe073b4d8dcbf1aa756f
[ "MIT" ]
1
2021-11-25T00:39:40.000Z
2021-11-25T00:39:40.000Z
Common/__ init __.py
mriosrivas/DSP_Student_2021
7d978d5a538e2eb198dfbe073b4d8dcbf1aa756f
[ "MIT" ]
null
null
null
from common_plots import Plot from statistics import Statistics from convolution import Convolve from correlation import Correlation from fourier_transform import FourierTransform from fourier_inverse_transform import FourierInverseTransform from complex_fourier_transform import ComplexFourierTransform from fft import ...
33.083333
61
0.884131
ef0a5df7ad2823b57a6f40e88b02aaedabc1cb15
4,367
py
Python
bin/science_archival.py
tallamjr/fink-broker
97753ff695b78ea52d084cac787dec6c52c4e4cc
[ "Apache-2.0" ]
17
2019-03-08T12:37:06.000Z
2022-02-01T18:02:07.000Z
bin/science_archival.py
astrolabsoftware/fink-broker
a52d3c5a7f38c7dd54a0786d5510e59b1e954c48
[ "Apache-2.0" ]
559
2019-03-07T14:55:27.000Z
2022-03-11T20:13:12.000Z
bin/science_archival.py
tallamjr/fink-broker
97753ff695b78ea52d084cac787dec6c52c4e4cc
[ "Apache-2.0" ]
12
2019-03-08T13:04:38.000Z
2022-01-23T22:22:50.000Z
#!/usr/bin/env python # Copyright 2020 AstroLab Software # Author: Julien Peloton # # 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...
34.117188
78
0.711014
cabf9ee12c1c11741af2a089d5027d8cd5aeeabb
1,053
py
Python
tests/__init__.py
ONSdigital/census-rm-print-file-generator
18cafe9f618abc423cec97af99c87b0c93091933
[ "MIT" ]
1
2019-04-16T12:38:21.000Z
2019-04-16T12:38:21.000Z
tests/__init__.py
ONSdigital/census-rm-print-file-generator
18cafe9f618abc423cec97af99c87b0c93091933
[ "MIT" ]
2
2019-04-09T08:30:40.000Z
2019-04-24T07:03:45.000Z
tests/__init__.py
ONSdigital/census-rm-print-file-generator
18cafe9f618abc423cec97af99c87b0c93091933
[ "MIT" ]
1
2021-04-11T08:06:28.000Z
2021-04-11T08:06:28.000Z
import os import unittest from pathlib import Path class IACConfigTestCase(unittest.TestCase): test_iac_url = 'http://test' def setUp(self) -> None: super().setUp() os.environ['IAC_URL'] = self.test_iac_url os.environ['IAC_USERNAME'] = 'test_user' os.environ['IAC_PASSWORD'] = ...
30.970588
86
0.678063
fd95d61138af275c19e0e17f316a757f177e5760
1,156
py
Python
Module 1/task1_3.py
bondss/python_scripts
e1fd96b15c22811e43f665ec354563f35522d2ad
[ "Apache-2.0" ]
null
null
null
Module 1/task1_3.py
bondss/python_scripts
e1fd96b15c22811e43f665ec354563f35522d2ad
[ "Apache-2.0" ]
null
null
null
Module 1/task1_3.py
bondss/python_scripts
e1fd96b15c22811e43f665ec354563f35522d2ad
[ "Apache-2.0" ]
null
null
null
# TASK # Вхідні дані: 3 числа x, y та z. x, y -- невід'ємні цілі числа, z дорівнює 0 або 1. x не дорівнює 0 # Передаються як аргументи командного рядка. # Вихідні дані: рядок "Everybody sing a song: <текст пісеньки>", де <текст пісеньки> # формується з у куплетів, розділених пробілами. Всі куплети однакові і складаютьс...
31.243243
100
0.628028
4703143a4d4007fb2e23136e114866031e97c860
1,639
py
Python
provenance/tests/test_basic_import.py
kclhi/jupyter
77b4068284bce7167956e58c1be07db6f26b83b3
[ "MIT" ]
1
2021-07-21T19:01:54.000Z
2021-07-21T19:01:54.000Z
provenance/tests/test_basic_import.py
kclhi/jupyter
77b4068284bce7167956e58c1be07db6f26b83b3
[ "MIT" ]
1
2021-04-23T16:31:14.000Z
2021-04-23T16:31:14.000Z
provenance/tests/test_basic_import.py
kclhi/jupyter
77b4068284bce7167956e58c1be07db6f26b83b3
[ "MIT" ]
null
null
null
import unittest, git, random, string from pony import orm from api.models.base import db from starlette.testclient import TestClient from api import routes from tests.fixtures import db_fixtures class BasicTestImport(unittest.TestCase): def setUp(self): db.provider = db.schema = None; db.bind(provider='sqli...
37.25
232
0.627212
7367d01279fdcd6494650b70053a4461515ba7b5
9,782
py
Python
thirdpart/registration/tests/models.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
420
2015-01-03T11:34:46.000Z
2022-03-10T07:15:41.000Z
thirdpart/registration/tests/models.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
735
2015-01-04T21:22:51.000Z
2022-03-31T09:26:07.000Z
thirdpart/registration/tests/models.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
379
2015-01-05T17:08:03.000Z
2022-03-06T00:11:50.000Z
import datetime import hashlib import re from django.conf import settings from django.contrib.auth.models import User from django.contrib.sites.models import Site from django.core import mail from django.core import management from django.test import TestCase from registration.models import RegistrationProfile clas...
43.283186
104
0.606113
91dcd957264edbb14c835ecdf828029b19d1140a
10,023
py
Python
tests/test_search_info_10_15_5.py
oPromessa/osxphotos
0d7e324f0262093727147b9f22ed275e962e8725
[ "MIT" ]
null
null
null
tests/test_search_info_10_15_5.py
oPromessa/osxphotos
0d7e324f0262093727147b9f22ed275e962e8725
[ "MIT" ]
null
null
null
tests/test_search_info_10_15_5.py
oPromessa/osxphotos
0d7e324f0262093727147b9f22ed275e962e8725
[ "MIT" ]
null
null
null
""" test PhotoInfo.search_info """ import pytest from osxphotos._constants import _UNKNOWN_PERSON PHOTOS_DB = "./tests/Test-10.15.5.photoslibrary/database/photos.db" PHOTOS_DB_PATH = "/Test-10.15.5.photoslibrary/database/photos.db" PHOTOS_LIBRARY_PATH = "/Test-10.15.5.photoslibrary" LABELS_DICT = { # A92D9C26-...
26.799465
193
0.584955
35a90e66328c958604f970f350da4fdf048407ef
19,661
py
Python
fulfil_client/client.py
craigfern/fulfil-python-api
42eaaf20e20c53c4028c9b8cb57b42d7f160f289
[ "0BSD" ]
6
2016-04-16T02:16:30.000Z
2021-04-16T07:54:52.000Z
fulfil_client/client.py
craigfern/fulfil-python-api
42eaaf20e20c53c4028c9b8cb57b42d7f160f289
[ "0BSD" ]
21
2016-06-22T16:18:16.000Z
2020-08-07T13:03:18.000Z
fulfil_client/client.py
craigfern/fulfil-python-api
42eaaf20e20c53c4028c9b8cb57b42d7f160f289
[ "0BSD" ]
19
2016-03-17T20:21:50.000Z
2021-04-16T07:54:56.000Z
import base64 import hashlib import hmac import logging from collections import defaultdict from contextlib import contextmanager from datetime import datetime from functools import wraps import requests from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry from more_itertool...
29.38864
79
0.554346
9e0862a14079dc05e3330e216c4e5d2df1d27f20
583
py
Python
spams_nmf.py
zygmuntz/dimensionality-reduction-for-sparse-binary-data
16b7e9e1a3c41b4eb1338f96fbb0cadad3d2b6e7
[ "Unlicense" ]
18
2015-02-02T21:35:48.000Z
2019-05-05T02:20:28.000Z
spams_nmf.py
zygmuntz/dimensionality-reduction-for-sparse-binary-data
16b7e9e1a3c41b4eb1338f96fbb0cadad3d2b6e7
[ "Unlicense" ]
null
null
null
spams_nmf.py
zygmuntz/dimensionality-reduction-for-sparse-binary-data
16b7e9e1a3c41b4eb1338f96fbb0cadad3d2b6e7
[ "Unlicense" ]
5
2016-07-26T13:11:01.000Z
2022-02-01T05:35:05.000Z
'map input file (libsvm) to <argv[3]> topics, output csv' from sklearn.datasets import load_svmlight_file import numpy as np import spams import sys input_file = sys.argv[1] output_file = sys.argv[2] try: num_topics = int( sys.argv[3] ) except IndexError: num_topics = 50 x_train, y_train = load_svmlight_file( inpu...
24.291667
90
0.722127
18f0306a4edaa61e3d393e358aaf7d3758214e9a
497
py
Python
Algorithms/Easy/633. Sum of Square Numbers/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
Algorithms/Easy/633. Sum of Square Numbers/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
Algorithms/Easy/633. Sum of Square Numbers/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
from typing import List class Solution: def judgeSquareSum(self, c: int) -> bool: i = 2 while i * i <= c: count = 0 if c % i == 0: while c % i == 0: count += 1 c //= i if i % 4 == 3 and count % 2 != 0: ...
21.608696
49
0.394366
c960f97df84624c96f4c85fc91f46edd0a467d9e
11,996
py
Python
dumpfreeze/main.py
rkcf/dumpfreeze
e9b18e4bc4574ff3b647a075cecd72977dc8f59a
[ "MIT" ]
1
2020-01-30T17:59:50.000Z
2020-01-30T17:59:50.000Z
dumpfreeze/main.py
rkcf/dumpfreeze
e9b18e4bc4574ff3b647a075cecd72977dc8f59a
[ "MIT" ]
null
null
null
dumpfreeze/main.py
rkcf/dumpfreeze
e9b18e4bc4574ff3b647a075cecd72977dc8f59a
[ "MIT" ]
null
null
null
# dumpfreeze # Create MySQL dumps and backup to Amazon Glacier import os import logging import datetime import click import uuid import sqlalchemy as sa from dumpfreeze import backup as bak from dumpfreeze import aws from dumpfreeze import inventorydb from dumpfreeze import __version__ logger = logging.getLogger(__na...
29.766749
79
0.614288
e567920be29be2ad957e02b9b7b2c36eb1a7f8e5
5,544
py
Python
fintie/stock/gudong.py
zccfzcc/fintie
a52c5a423b215e654e7526217e4a34a58a7a046f
[ "Apache-2.0" ]
5
2018-05-29T09:13:16.000Z
2020-04-27T12:35:57.000Z
fintie/stock/gudong.py
zccfzcc/fintie
a52c5a423b215e654e7526217e4a34a58a7a046f
[ "Apache-2.0" ]
96
2018-05-04T08:29:10.000Z
2020-06-14T15:54:00.000Z
fintie/stock/gudong.py
zccfzcc/fintie
a52c5a423b215e654e7526217e4a34a58a7a046f
[ "Apache-2.0" ]
3
2020-12-28T09:43:50.000Z
2022-01-27T13:38:49.000Z
# -*- coding: utf-8 -*- # This file is part of fintie. # Copyright (C) 2018-present qytz <hhhhhf@foxmail.com> # # 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/li...
26.653846
84
0.648629
7949b1a561f113dc5d0f06aa6c43eaa8050dff3a
6,135
py
Python
rp/rsa.py
bptripp/rp
f076034547f7f8afe0f8aad8d0122f7035ca4ed1
[ "MIT" ]
null
null
null
rp/rsa.py
bptripp/rp
f076034547f7f8afe0f8aad8d0122f7035ca4ed1
[ "MIT" ]
null
null
null
rp/rsa.py
bptripp/rp
f076034547f7f8afe0f8aad8d0122f7035ca4ed1
[ "MIT" ]
null
null
null
# Gradient descent to find random activity pattern with given representational # similarity matrix. This works better than taking steps in null space of similarity # matrix. import numpy as np import matplotlib.pyplot as plt import tensorflow as tf def get_random_stimuli(n_stim, dim): """ :param n_stim: Numb...
38.829114
121
0.68639
2756f12a7a4a1893fbfdbe65fde1576abd8836ff
10,873
py
Python
gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_closure.py
EngHabu/flyteidl
d7970314fc2bcbd2840610b4d42ea2886f0837b9
[ "Apache-2.0" ]
null
null
null
gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_closure.py
EngHabu/flyteidl
d7970314fc2bcbd2840610b4d42ea2886f0837b9
[ "Apache-2.0" ]
3
2021-03-27T12:20:58.000Z
2021-03-29T09:45:45.000Z
gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_closure.py
EngHabu/flyteidl
d7970314fc2bcbd2840610b4d42ea2886f0837b9
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ flyteidl/service/admin.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: version not set Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import r...
32.073746
198
0.640945
e6b30c201641b87b58f4106f81dd0e8c7aa6cd47
3,981
py
Python
examples/python/geneseq/population.py
steve-meyer/geneseq
c1b9b484e95595868536cb4c1a00f2824be3da9e
[ "MIT" ]
5
2020-05-11T05:58:47.000Z
2021-12-15T15:30:06.000Z
examples/python/geneseq/population.py
steve-meyer/geneseq
c1b9b484e95595868536cb4c1a00f2824be3da9e
[ "MIT" ]
null
null
null
examples/python/geneseq/population.py
steve-meyer/geneseq
c1b9b484e95595868536cb4c1a00f2824be3da9e
[ "MIT" ]
null
null
null
import random import math import copy from collections import defaultdict from .individual import Individual class Population(object): ''' Class representing a collection of individuals ''' def __init__(self, nucleotides='012345678', target='10300050', size=128): self.nucleotides = nucleotide...
35.544643
104
0.64205
492cb7b85fbe9daded64ee5d87789cf9c9047d65
25,277
py
Python
tensorflow_transform/beam/analysis_graph_builder.py
redpoint13/transform
3cacc1e6832bd64713050287d2d5ee98c2b76753
[ "Apache-2.0" ]
null
null
null
tensorflow_transform/beam/analysis_graph_builder.py
redpoint13/transform
3cacc1e6832bd64713050287d2d5ee98c2b76753
[ "Apache-2.0" ]
null
null
null
tensorflow_transform/beam/analysis_graph_builder.py
redpoint13/transform
3cacc1e6832bd64713050287d2d5ee98c2b76753
[ "Apache-2.0" ]
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...
39.128483
80
0.722079
f1a861321e440b86ff7e8617cb4ddea251cf9e70
11,105
py
Python
src/oci/waas/models/create_certificate_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/waas/models/create_certificate_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/waas/models/create_certificate_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
36.650165
245
0.682665
a3464df77696845b07b009c666aa3678b61f43de
3,879
py
Python
tests/test_view.py
Philipp-Userlike/django-pystache
c720ee7a4b01f673dd2f476dae2e0c529229efe2
[ "MIT" ]
2
2015-11-05T08:53:49.000Z
2016-03-01T22:14:12.000Z
tests/test_view.py
kennethreitz-archive/pystache
f543efac93b753914a20b9daaf84a51382fba445
[ "MIT" ]
null
null
null
tests/test_view.py
kennethreitz-archive/pystache
f543efac93b753914a20b9daaf84a51382fba445
[ "MIT" ]
1
2020-02-12T19:11:42.000Z
2020-02-12T19:11:42.000Z
import unittest import pystache from examples.simple import Simple from examples.complex_view import ComplexView from examples.lambdas import Lambdas from examples.inverted import Inverted, InvertedLists class Thing(object): pass class TestView(unittest.TestCase): def test_basic(self): view = Simple(...
34.327434
140
0.619232
2e6a1520bf8beaef0ae11a6a7bc403ce6c32f7f2
9,932
py
Python
emukit/examples/preferential_batch_bayesian_optimization/pbbo/acquisitions/thompson_sampling_acquisition.py
esiivola/emukit
638f8b27d91461e67fb07ce900addbb98ac11f9d
[ "Apache-2.0" ]
null
null
null
emukit/examples/preferential_batch_bayesian_optimization/pbbo/acquisitions/thompson_sampling_acquisition.py
esiivola/emukit
638f8b27d91461e67fb07ce900addbb98ac11f9d
[ "Apache-2.0" ]
1
2021-02-23T18:03:41.000Z
2021-02-23T18:03:41.000Z
emukit/examples/preferential_batch_bayesian_optimization/pbbo/acquisitions/thompson_sampling_acquisition.py
esiivola/emukit
638f8b27d91461e67fb07ce900addbb98ac11f9d
[ "Apache-2.0" ]
1
2019-03-28T15:53:36.000Z
2019-03-28T15:53:36.000Z
from .. import util from .. import ComparisonGP, ComparisonGPEmukitWrapper from .acquisition_function import AcquisitionFunction import GPy import numpy as np import numpy.linalg as la import scipy as sp import collections import time from scipy.stats import norm, mvn, multivariate_normal from GPy.util.univariate_Gauss...
44.538117
130
0.597463
8ca1d08747c4322ac8b2a09b1798437f64abe2a5
5,137
py
Python
applications/old_code/wasserschlange.py
FrederichRiver/neutrino
e91db53486e56ddeb83ae9714311d606b33fb165
[ "BSD-3-Clause" ]
2
2019-02-10T15:14:23.000Z
2019-02-12T13:59:52.000Z
applications/old_code/wasserschlange.py
FrederichRiver/neutrino
e91db53486e56ddeb83ae9714311d606b33fb165
[ "BSD-3-Clause" ]
null
null
null
applications/old_code/wasserschlange.py
FrederichRiver/neutrino
e91db53486e56ddeb83ae9714311d606b33fb165
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 import torch import torch.nn as nn import torch.optim as optim from mysql.libmysql8_dev import MySQLBase """ 1.create network 2.create training set 3.training 4.test 5.running """ from events import EventStockPrice import torch.nn.functional as F from torch.utils.data import Dataset, DataLoader from ...
27.324468
81
0.58614
a12264bb771ba28f9f3ce9fab637818ad0043b93
5,339
py
Python
src/ggrc/services/attribute_query.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-04T10:55:14.000Z
2019-01-04T10:55:14.000Z
src/ggrc/services/attribute_query.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/services/attribute_query.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> from collections import namedtuple import datetime import iso8601 from sqlalchemy import and_, cast from sqlalchemy.ext.associationproxy import AssociationProxy from sqlalchemy.orm import joinedload_all fro...
33.36875
78
0.654242
d92df0f6856de325d606c3cd98dd0a71810218cd
25,191
py
Python
rich/style.py
lodagro/rich
230af6ef70b3a1404a0405b148cf5737db7ae1fb
[ "MIT" ]
7
2021-09-29T09:46:36.000Z
2022-03-24T08:30:41.000Z
rich/style.py
lodagro/rich
230af6ef70b3a1404a0405b148cf5737db7ae1fb
[ "MIT" ]
23
2021-07-05T01:25:33.000Z
2022-03-28T01:30:36.000Z
rich/style.py
lodagro/rich
230af6ef70b3a1404a0405b148cf5737db7ae1fb
[ "MIT" ]
1
2021-09-29T22:34:05.000Z
2021-09-29T22:34:05.000Z
import sys from functools import lru_cache from marshal import loads as marshal_loads, dumps as marshal_dumps from random import randint from time import time from typing import Any, cast, Dict, Iterable, List, Optional, Type, Union from . import errors from .color import Color, ColorParseError, ColorSystem, blend_rgb...
34.041892
121
0.543726
d32867cf5e82a879f412a5f309966f9b1c873a87
4,077
py
Python
test/functional/feature_includeconf.py
mmontuori/quarkcoin
c4da680fd4d852e3ba835d7fd23181a8f08e47db
[ "MIT" ]
null
null
null
test/functional/feature_includeconf.py
mmontuori/quarkcoin
c4da680fd4d852e3ba835d7fd23181a8f08e47db
[ "MIT" ]
12
2021-05-31T22:55:50.000Z
2021-06-04T02:30:02.000Z
test/functional/feature_includeconf.py
mmontuori/quarkcoin
c4da680fd4d852e3ba835d7fd23181a8f08e47db
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Tests the includeconf argument Verify that: 1. adding includeconf to the configuration file causes the inc...
49.120482
224
0.694383
1bf558536c573c93963c0aa409edde4709bc3727
69
py
Python
scripts/automation/trex_control_plane/astf/trex_astf_lib/api.py
alialnu/trex-core
ae4ab05a6215fd0a859adde40dac6afa8bf0f950
[ "Apache-2.0" ]
null
null
null
scripts/automation/trex_control_plane/astf/trex_astf_lib/api.py
alialnu/trex-core
ae4ab05a6215fd0a859adde40dac6afa8bf0f950
[ "Apache-2.0" ]
null
null
null
scripts/automation/trex_control_plane/astf/trex_astf_lib/api.py
alialnu/trex-core
ae4ab05a6215fd0a859adde40dac6afa8bf0f950
[ "Apache-2.0" ]
null
null
null
from .trex_astf_client import * from .trex_astf_global_info import *
23
36
0.826087
e1010315e486accba00d8bd56ad942a4515a05c1
437
py
Python
grr/server/grr_response_server/databases/mysql_blob_references_test.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
4,238
2015-01-01T15:34:50.000Z
2022-03-31T08:18:05.000Z
grr/server/grr_response_server/databases/mysql_blob_references_test.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
787
2015-01-02T21:34:24.000Z
2022-03-02T13:26:38.000Z
grr/server/grr_response_server/databases/mysql_blob_references_test.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
856
2015-01-02T02:50:11.000Z
2022-03-31T11:11:53.000Z
#!/usr/bin/env python from absl import app from absl.testing import absltest from grr_response_server.databases import db_blob_references_test from grr_response_server.databases import mysql_test from grr.test_lib import test_lib class MysqlBlobReferencesTest( db_blob_references_test.DatabaseTestBlobReferencesM...
23
65
0.823799
6c5900715c89743cd0ad8c6a877a71e8974a9d42
1,714
py
Python
pupa/exceptions.py
tor-councilmatic/pupa
9b64deba55aeaf1ee40c504c972c47da70a9fd2a
[ "BSD-3-Clause" ]
null
null
null
pupa/exceptions.py
tor-councilmatic/pupa
9b64deba55aeaf1ee40c504c972c47da70a9fd2a
[ "BSD-3-Clause" ]
null
null
null
pupa/exceptions.py
tor-councilmatic/pupa
9b64deba55aeaf1ee40c504c972c47da70a9fd2a
[ "BSD-3-Clause" ]
null
null
null
class PupaError(Exception): """ Base class for exceptions from within Pupa """ class PupaInternalError(PupaError): """ Indication something went wrong inside of Pupa that never should happen """ class DataImportError(PupaError): """ A generic error related to the import process. """ class InvalidVot...
34.979592
99
0.603851
ffe6e5f1b8a327273a4e7c5966f5c8d7c3861b85
260
py
Python
z3py/examples/bit.1.py
rainoftime/rainoftime.github.io
d6316f153db0ed96309d81a5f32af9887c6f1a9a
[ "MIT" ]
1
2021-08-01T07:28:03.000Z
2021-08-01T07:28:03.000Z
z3py/examples/bit.1.py
rainoftime/rainoftime.github.io
d6316f153db0ed96309d81a5f32af9887c6f1a9a
[ "MIT" ]
null
null
null
z3py/examples/bit.1.py
rainoftime/rainoftime.github.io
d6316f153db0ed96309d81a5f32af9887c6f1a9a
[ "MIT" ]
null
null
null
x = BitVec('x', 32) powers = [ 2**i for i in range(32) ] fast = And(x != 0, x & (x - 1) == 0) slow = Or([ x == p for p in powers ]) print fast prove(fast == slow) print "trying to prove buggy version..." fast = x & (x - 1) == 0 prove(fast == slow)
23.636364
40
0.526923
5065124bbb922b7d2e1f9504d5b8a269a8d70a1d
774
py
Python
openai/api_resources/completion.py
frankcarey/openai-python
d53d9efbb93ff18443a85bea8dbae8f846bef837
[ "MIT" ]
1
2020-11-26T10:28:31.000Z
2020-11-26T10:28:31.000Z
openai/api_resources/completion.py
frankcarey/openai-python
d53d9efbb93ff18443a85bea8dbae8f846bef837
[ "MIT" ]
null
null
null
openai/api_resources/completion.py
frankcarey/openai-python
d53d9efbb93ff18443a85bea8dbae8f846bef837
[ "MIT" ]
1
2021-06-12T20:52:24.000Z
2021-06-12T20:52:24.000Z
import time from openai import util from openai.api_resources.abstract import DeletableAPIResource, ListableAPIResource from openai.api_resources.abstract.engine_api_resource import EngineAPIResource from openai.error import TryAgain class Completion(EngineAPIResource, ListableAPIResource, DeletableAPIResource): ...
32.25
83
0.674419
7f7d56a076ccf5c674a5dd2710d475676bf06d94
977
py
Python
var/spack/repos/builtin/packages/flashdimmsim/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/flashdimmsim/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/flashdimmsim/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Flashdimmsim(Package): """FlashDIMMSim: a reasonably accurate flash DIMM simulator.""" ...
31.516129
73
0.628454
a10026d480549337a76a326ed2639646f4444d19
4,335
py
Python
filepath/filepath.py
blackvvine/file-path
091538feb0685185e68f594562051a4775c5d266
[ "MIT" ]
null
null
null
filepath/filepath.py
blackvvine/file-path
091538feb0685185e68f594562051a4775c5d266
[ "MIT" ]
null
null
null
filepath/filepath.py
blackvvine/file-path
091538feb0685185e68f594562051a4775c5d266
[ "MIT" ]
1
2019-10-13T15:22:23.000Z
2019-10-13T15:22:23.000Z
import datetime import os import random as rnd import re import shutil import logging import subprocess from enum import Enum class SortOrder(Enum): """ Different sorting orders for the LS function """ RANDOM = 1 ORDER = 2 DATE = 3 ALPHA = 4 class FilePath(object): """ Wrapper fo...
26.595092
101
0.559862
16fff8920f2f45101eaff4cf96afe06e3fa0281d
45
py
Python
info.py
ThiagoBarsante/DataEngineer_projects
bbed3653cc8e7bf6aec096d11c78566e3a3f8a2b
[ "MIT" ]
null
null
null
info.py
ThiagoBarsante/DataEngineer_projects
bbed3653cc8e7bf6aec096d11c78566e3a3f8a2b
[ "MIT" ]
null
null
null
info.py
ThiagoBarsante/DataEngineer_projects
bbed3653cc8e7bf6aec096d11c78566e3a3f8a2b
[ "MIT" ]
null
null
null
## This repo will use python code in general
22.5
44
0.755556
acd9c5adc0eaaaa1edd2e2c999564873b821e92d
98,610
py
Python
mooring/models.py
mohdbakhrayba/moorings
cb632383617c9b81b6ffa468aba8c7707195e0e3
[ "Apache-2.0" ]
null
null
null
mooring/models.py
mohdbakhrayba/moorings
cb632383617c9b81b6ffa468aba8c7707195e0e3
[ "Apache-2.0" ]
null
null
null
mooring/models.py
mohdbakhrayba/moorings
cb632383617c9b81b6ffa468aba8c7707195e0e3
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import os import uuid import base64 import binascii import hashlib import calendar from decimal import Decimal as D from django.core.files.base import ContentFile from django.core.exceptions import ValidationError from django.db.models import Q from django.contrib.gis.db import ...
39.971625
245
0.632715
514a940d97bb61ed1c87a1bdfc41a67b6db56531
7,501
py
Python
configs/my-dataset/crpn.py
ArthurWish/mmdetection
bd4c5b04e9d880f7a38131f17d3b43e4a3630c4f
[ "Apache-2.0" ]
null
null
null
configs/my-dataset/crpn.py
ArthurWish/mmdetection
bd4c5b04e9d880f7a38131f17d3b43e4a3630c4f
[ "Apache-2.0" ]
null
null
null
configs/my-dataset/crpn.py
ArthurWish/mmdetection
bd4c5b04e9d880f7a38131f17d3b43e4a3630c4f
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/datasets/coco_with_sub_image_detection.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] sub_images = [ 'default.png' # 'filled.png' ] rpn_weight = 0.7 # use caffe img_norm img_norm_cfg = dict( mean=[103.530, 116.280, 123.675], std=[1.0, 1.0, 1.0], to_...
33.044053
79
0.522064
2b459024eddb3b275480cfea25a8d8c0cc7d7b00
645
py
Python
python/easy/1614_Maximum_Nesting_Depth_of_the_Parentheses.py
JackWang0107/leetcode
c02932190b639ef87a8d0fcd07d9cd6ec7344a67
[ "MIT" ]
1
2021-05-22T03:27:33.000Z
2021-05-22T03:27:33.000Z
python/easy/1614_Maximum_Nesting_Depth_of_the_Parentheses.py
JackWang0107/leetcode
c02932190b639ef87a8d0fcd07d9cd6ec7344a67
[ "MIT" ]
null
null
null
python/easy/1614_Maximum_Nesting_Depth_of_the_Parentheses.py
JackWang0107/leetcode
c02932190b639ef87a8d0fcd07d9cd6ec7344a67
[ "MIT" ]
null
null
null
from typing import * class Solution: # 32 ms, faster than 54.06% of Python3 online submissions for Maximum Nesting Depth of the Parentheses. # 14 MB, less than 90.08% of Python3 online submissions for Maximum Nesting Depth of the Parentheses. def maxDepth(self, s: str) -> int: max_depth = 0 ...
33.947368
107
0.553488
5e0c42ccf9c8160c0d747b6d1c095e22e7a16520
13,224
py
Python
lemur/certificates/models.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/certificates/models.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/certificates/models.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
""" .. module: lemur.certificates.models :platform: Unix :copyright: (c) 2018 by Netflix Inc., see AUTHORS for more :license: Apache, see LICENSE for more details. .. moduleauthor:: Kevin Glisson <kglisson@netflix.com> """ from datetime import timedelta import arrow from cryptography import x509 from crypt...
34.891821
120
0.648215
8d9faed5864ee26142ae792be64f3447da0ca22c
829
py
Python
basic/led/led4.py
ssi5/circuitpython
34ff0d343b8918ecfdccfd8e54c0877180ad9740
[ "MIT" ]
null
null
null
basic/led/led4.py
ssi5/circuitpython
34ff0d343b8918ecfdccfd8e54c0877180ad9740
[ "MIT" ]
null
null
null
basic/led/led4.py
ssi5/circuitpython
34ff0d343b8918ecfdccfd8e54c0877180ad9740
[ "MIT" ]
null
null
null
import time import board import digitalio led = digitalio.DigitalInOut(board.LED) led.direction = digitalio.Direction.OUTPUT N = 200_000 # Unroll the loop 8 times def blink_preload_unrolled8(n): n //= 8 on = led.value r = range(n) for i in r: on = True on = False on = True ...
19.738095
66
0.53076
5e1e6b99f36febf49eb88fd14c258e16bc5feb68
1,355
py
Python
XCore/devices/Ports.py
chibill/CPU-Emulators
f79cceb75e9fe7c11238e8d091bef1cf3a8970a3
[ "MIT" ]
null
null
null
XCore/devices/Ports.py
chibill/CPU-Emulators
f79cceb75e9fe7c11238e8d091bef1cf3a8970a3
[ "MIT" ]
null
null
null
XCore/devices/Ports.py
chibill/CPU-Emulators
f79cceb75e9fe7c11238e8d091bef1cf3a8970a3
[ "MIT" ]
null
null
null
import pygame from PIL import Image import time import MotherBoard.util as util from threading import Thread buffer = Image.new("RGB",(16,16),"black") running = True ports = {0:0, 1:0, 2:0, 3:0, 4:0, 5:0, 6:0, 7:0, 8:0, 9:0, 10:0, 11:0, 12:0, 13:0, 14:0, 15:0} def screen(): global buffer global running py...
26.568627
94
0.55572
72ce07f1887aa6f17794a5c9f8016594e9fd50de
8,919
py
Python
var/spack/repos/builtin/packages/hydrogen/package.py
emai-imcs/spack
0dbb90b565456a8a236728f304d9faeca609fc91
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/hydrogen/package.py
emai-imcs/spack
0dbb90b565456a8a236728f304d9faeca609fc91
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2020-10-15T15:32:55.000Z
2022-03-30T12:30:28.000Z
var/spack/repos/builtin/packages/hydrogen/package.py
emai-imcs/spack
0dbb90b565456a8a236728f304d9faeca609fc91
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-04-07T18:27:09.000Z
2022-03-31T22:52:38.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) import os from spack import * class Hydrogen(CMakePackage, CudaPackage): """Hydrogen: Distributed-memory dense and s...
44.373134
97
0.642337
09249f57e05dec29b7e0fe738b0fb876b7485f1e
5,079
py
Python
code/python/SPAREngine/v3/fds/sdk/SPAREngine/exceptions.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/SPAREngine/v3/fds/sdk/SPAREngine/exceptions.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/SPAREngine/v3/fds/sdk/SPAREngine/exceptions.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" SPAR Engine API Allow clients to fetch Analytics through APIs. # noqa: E501 The version of the OpenAPI document: 3 Contact: analytics.api.support@factset.com Generated by: https://openapi-generator.tech """ class OpenApiException(Exception): """The base exception class for all OpenAPIE...
31.546584
78
0.601693
845b6e923b337bdb29e757ff122a1ace9d183837
6,818
py
Python
neuro-sdk/src/neuro_sdk/_bucket_base.py
neuro-inc/neuro-cli
72bd2a825cc319bbc79c6df16f33380796fad4f5
[ "Apache-2.0" ]
5
2019-09-24T15:37:47.000Z
2020-08-04T09:25:29.000Z
neuro-sdk/src/neuro_sdk/_bucket_base.py
neuromation/platform-client-python
72bd2a825cc319bbc79c6df16f33380796fad4f5
[ "Apache-2.0" ]
748
2019-08-05T14:57:11.000Z
2020-09-28T09:54:41.000Z
neuro-sdk/src/neuro_sdk/_bucket_base.py
neuro-inc/neuro-cli
72bd2a825cc319bbc79c6df16f33380796fad4f5
[ "Apache-2.0" ]
3
2019-10-07T19:25:22.000Z
2020-06-29T01:41:26.000Z
import abc import enum import time from contextlib import asynccontextmanager from dataclasses import dataclass from datetime import datetime from pathlib import PurePosixPath from typing import ( Any, AsyncIterator, Awaitable, Callable, List, Mapping, Optional, Tuple, Union, ) from...
26.324324
81
0.613083
d0c633f50b464b8e08988638cf34cd0815c70e55
1,142
py
Python
chunkymonkey/lib/base.py
shopzilla/chunky-monkey
2556055e87849e2a873a950a5e52429e516c8304
[ "Apache-2.0" ]
1
2016-10-24T15:16:26.000Z
2016-10-24T15:16:26.000Z
chunkymonkey/lib/base.py
shopzilla/chunky-monkey
2556055e87849e2a873a950a5e52429e516c8304
[ "Apache-2.0" ]
null
null
null
chunkymonkey/lib/base.py
shopzilla/chunky-monkey
2556055e87849e2a873a950a5e52429e516c8304
[ "Apache-2.0" ]
null
null
null
# # Copyright 2011 Shopzilla.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this 1 except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
36.83871
74
0.75394
8792ac137781d1447521a8312b884494f92a5667
483
py
Python
applications/weixin/urls.py
chenchiyuan/gym
a466111ee69f20ac001678c84868c0bf61b468fe
[ "BSD-3-Clause" ]
null
null
null
applications/weixin/urls.py
chenchiyuan/gym
a466111ee69f20ac001678c84868c0bf61b468fe
[ "BSD-3-Clause" ]
null
null
null
applications/weixin/urls.py
chenchiyuan/gym
a466111ee69f20ac001678c84868c0bf61b468fe
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # __author__ = chenchiyuan from __future__ import division, unicode_literals, print_function from django.conf.urls import patterns, url from applications.weixin import const from applications.weixin.views import WeiXinResponseView, WeiXinDetailView urlpatterns = patterns('', url(r'^callbac...
37.153846
94
0.766046
e05cb8963d92b8b559aba302d456a7db8612c8de
9,874
py
Python
process/process_coverage3_mix.py
ISE-DeepLearning/CoverageDNN
a3674caadb545e40641608874714f03fbcf74eed
[ "MIT" ]
null
null
null
process/process_coverage3_mix.py
ISE-DeepLearning/CoverageDNN
a3674caadb545e40641608874714f03fbcf74eed
[ "MIT" ]
null
null
null
process/process_coverage3_mix.py
ISE-DeepLearning/CoverageDNN
a3674caadb545e40641608874714f03fbcf74eed
[ "MIT" ]
null
null
null
import os import numpy as np import data_provider import gc import time from itertools import combinations, permutations ''' 本脚本是將样本的激活数据的边覆盖情况具现化保存 数据结构边写边考虑 ''' ''' 目前只考虑1-1的三种情况的覆盖 写尽可能考虑可拓展性 ''' batch_size = 30000 def check_dir(dir_path): if not os.path.exists(dir_path): os.makedirs(dir_path) def...
42.560345
121
0.503342
f72de0ea6a751f43e43a7090b6c6bc5b3a4e04ab
19,297
py
Python
da/compiler/ui.py
edgarsit/distalgo
87a53b537c2ae9d974fb2f5f7ba95eaa92a9806e
[ "MIT" ]
76
2015-05-27T01:22:38.000Z
2022-02-28T18:38:55.000Z
da/compiler/ui.py
edgarsit/distalgo
87a53b537c2ae9d974fb2f5f7ba95eaa92a9806e
[ "MIT" ]
32
2015-09-19T01:37:36.000Z
2021-02-17T03:04:56.000Z
da/compiler/ui.py
edgarsit/distalgo
87a53b537c2ae9d974fb2f5f7ba95eaa92a9806e
[ "MIT" ]
55
2015-08-10T01:42:16.000Z
2021-11-15T10:37:32.000Z
# Copyright (c) 2010-2017 Bo Lin # Copyright (c) 2010-2017 Yanhong Annie Liu # Copyright (c) 2010-2017 Stony Brook University # Copyright (c) 2010-2017 The Research Foundation of SUNY # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files #...
40.202083
84
0.630513
b95c45392bfb551f52bc8b8dca1aaf8c8b1940b1
12,085
py
Python
timm/utils/model.py
xuritian317/pytorch-image-models
034139e4871cddd0f6c24931b6ac380ba9f28711
[ "Apache-2.0" ]
5
2022-03-03T00:42:03.000Z
2022-03-25T04:29:56.000Z
timm/utils/model.py
xuritian317/pytorch-image-models
034139e4871cddd0f6c24931b6ac380ba9f28711
[ "Apache-2.0" ]
null
null
null
timm/utils/model.py
xuritian317/pytorch-image-models
034139e4871cddd0f6c24931b6ac380ba9f28711
[ "Apache-2.0" ]
2
2021-03-19T00:41:43.000Z
2021-05-16T10:34:23.000Z
""" Model / state_dict utils Hacked together by / Copyright 2020 Ross Wightman """ import fnmatch import torch from torchvision.ops.misc import FrozenBatchNorm2d from .model_ema import ModelEma def unwrap_model(model): if isinstance(model, ModelEma): return unwrap_model(model.ema) else: ret...
44.105839
131
0.675134
20d3cbd11821632635531d1ac8fe238d37620d5f
29,567
py
Python
tests/test_data/test_pipelines/test_transform/test_transform.py
tycoer/rfvision-1
db6e28746d8251d1f394544c32b9e0af388d9964
[ "Apache-2.0" ]
6
2021-09-25T03:53:06.000Z
2022-02-19T03:25:11.000Z
tests/test_data/test_pipelines/test_transform/test_transform.py
tycoer/rfvision-1
db6e28746d8251d1f394544c32b9e0af388d9964
[ "Apache-2.0" ]
1
2021-07-21T13:14:54.000Z
2021-07-21T13:14:54.000Z
tests/test_data/test_pipelines/test_transform/test_transform.py
tycoer/rfvision-1
db6e28746d8251d1f394544c32b9e0af388d9964
[ "Apache-2.0" ]
2
2021-07-16T03:25:04.000Z
2021-11-22T06:04:01.000Z
import copy import os.path as osp import rflib import numpy as np import pytest import torch from rflib.utils import build_from_cfg from rfvision.core.evaluation.bbox_overlaps import bbox_overlaps from rfvision.datasets.builder import PIPELINES def test_resize(): # test assertion if img_scale is a list with...
37.284994
79
0.633781
67cd1bac81a715e4d03ac21f33aa478a59c9f60d
672
py
Python
manage.py
yashpatel7025/django-eSamudaay
fafed560dd12f10d728c6b5a152ac17d6ed462aa
[ "MIT" ]
null
null
null
manage.py
yashpatel7025/django-eSamudaay
fafed560dd12f10d728c6b5a152ac17d6ed462aa
[ "MIT" ]
null
null
null
manage.py
yashpatel7025/django-eSamudaay
fafed560dd12f10d728c6b5a152ac17d6ed462aa
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_eSamudaay.settings') try: from django.core.management import execute_from_command_line ex...
29.217391
80
0.683036
f9c2ff9382a9ef5b37cb88dc1ac4ecec2a3f9e87
5,448
py
Python
psq/queue.py
mindius/psq
a182a6b751c29dc93b9a13c340b1deed145e3890
[ "Apache-2.0" ]
1
2021-02-09T09:36:55.000Z
2021-02-09T09:36:55.000Z
psq/queue.py
mindius/psq
a182a6b751c29dc93b9a13c340b1deed145e3890
[ "Apache-2.0" ]
null
null
null
psq/queue.py
mindius/psq
a182a6b751c29dc93b9a13c340b1deed145e3890
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.423313
85
0.659141
ebd335e4211be02ad9e60061cfa1d992a9ce8f5d
3,338
py
Python
cons3rt/models/basic_appliance.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
cons3rt/models/basic_appliance.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
cons3rt/models/basic_appliance.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
""" Copyright 2020 Jackpine Technologies Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable ...
30.623853
75
0.617436
bf083a62d9474644eaf13b388ff213aa39a3015e
3,208
py
Python
supermariopy/test/test_denseposelib.py
theRealSuperMario/supermariopy
9fff8275278ff26caff50da86109c25d276bb30b
[ "MIT" ]
36
2019-07-14T16:10:37.000Z
2022-03-29T10:11:03.000Z
supermariopy/test/test_denseposelib.py
theRealSuperMario/supermariopy
9fff8275278ff26caff50da86109c25d276bb30b
[ "MIT" ]
3
2019-10-09T15:11:13.000Z
2021-07-31T02:17:43.000Z
supermariopy/test/test_denseposelib.py
theRealSuperMario/supermariopy
9fff8275278ff26caff50da86109c25d276bb30b
[ "MIT" ]
14
2019-08-29T14:11:54.000Z
2022-03-06T13:41:56.000Z
import numpy as np import pytest class Test_denseposelib: @pytest.mark.parametrize( "in_shape,out_shape", [((256, 256), (128, 128)), ((3, 256, 256), (3, 128, 128))] ) def test_resize_labels(self, in_shape, out_shape): from supermariopy.denseposelib import resize_labels labels = np...
32.734694
88
0.562344
f63391f905a36ca40fc54d960ac4730a2138ad27
699
py
Python
evaluation.py
yatharthk2/Inpainting
ad058e8e409988d2e68bb75b0eb366f0f218d1b6
[ "MIT" ]
1
2021-08-08T03:28:57.000Z
2021-08-08T03:28:57.000Z
evaluation.py
yatharthk2/Inpainting
ad058e8e409988d2e68bb75b0eb366f0f218d1b6
[ "MIT" ]
null
null
null
evaluation.py
yatharthk2/Inpainting
ad058e8e409988d2e68bb75b0eb366f0f218d1b6
[ "MIT" ]
1
2021-06-26T11:06:20.000Z
2021-06-26T11:06:20.000Z
import torch from torchvision.utils import make_grid from torchvision.utils import save_image from util.image import unnormalize def evaluate(model, dataset, device, filename): image, mask, gt = zip(*[dataset[i] for i in range(1)]) image = torch.stack(image) mask = torch.stack(mask) gt = torch.stack(...
31.772727
70
0.666667
39a94069600698fc39bfdbce3de4a3cc80fb7445
93
py
Python
type_assist/data_preprocess.py
eric-yates/TypeAssist
064211067c0ae3c57e2dce3a66a27750f7c66ad6
[ "Apache-2.0" ]
1
2020-08-15T07:25:54.000Z
2020-08-15T07:25:54.000Z
type_assist/data_preprocess.py
eric-yates/TypeAssist
064211067c0ae3c57e2dce3a66a27750f7c66ad6
[ "Apache-2.0" ]
null
null
null
type_assist/data_preprocess.py
eric-yates/TypeAssist
064211067c0ae3c57e2dce3a66a27750f7c66ad6
[ "Apache-2.0" ]
null
null
null
class Formatter: """ Formats data """ class Preprocess: """ Preprocesses data """
11.625
29
0.602151
093ea58c46767cc2fb49130e33b5ec5eae6fd417
363
py
Python
demo1.py
tugrabatin/Pandas
d6330ae97aa9f1755cdcbcd7f8e33a7dc59118df
[ "MIT" ]
null
null
null
demo1.py
tugrabatin/Pandas
d6330ae97aa9f1755cdcbcd7f8e33a7dc59118df
[ "MIT" ]
null
null
null
demo1.py
tugrabatin/Pandas
d6330ae97aa9f1755cdcbcd7f8e33a7dc59118df
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pandas as pd notlar = pd.read_csv("grades.csv") notlar.columns = ["İsim","Soyisim","SSN" ,"Test1","Test2","Test3","Test4" ,"Final","Sonuc"] print(notlar) print(type(notlar)) print(notlar.head()) print(notlar.tail()) print(notlar["Final"]) ...
24.2
51
0.578512
4a3527b791d3e3a1fe7f887bd4ddc703134e4030
27,052
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/operations/_route_filters_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-03-24T06:26:11.000Z
2021-04-18T15:55:59.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/operations/_route_filters_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
4
2019-04-17T17:57:49.000Z
2020-04-24T21:11:22.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/operations/_route_filters_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.39356
193
0.659803
95d999db0e820ed503ce404cd5d34e1592bc10ab
314,933
py
Python
src/sage/combinat/permutation.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
1
2021-10-18T01:24:04.000Z
2021-10-18T01:24:04.000Z
src/sage/combinat/permutation.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/permutation.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- r""" Permutations The Permutations module. Use ``Permutation?`` to get information about the Permutation class, and ``Permutations?`` to get information about the combinatorial class of permutations. .. WARNING:: This file defined :class:`Permutation` which depends upon :class:`Combinat...
34.14278
214
0.528255
fd1cec19ef73e316e39986e0a9ef8326f87381dd
2,716
py
Python
mmtbx/ions/tst_pickle.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
mmtbx/ions/tst_pickle.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
mmtbx/ions/tst_pickle.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
# -*- coding: utf-8; py-indent-offset: 2 -*- from __future__ import absolute_import, division, print_function import os from pickle import loads, dumps from types import MethodType import libtbx from mmtbx.command_line.water_screen import master_phil import mmtbx.command_line from mmtbx import ions from mmtbx.ions ...
28.893617
80
0.710604
a884fcc7f84066141cacf22536c112509846a5cd
3,564
py
Python
submodules/TIMER/submodules/TEX/software/swreg2tex.py
microSharjeel/KNN_SORTING
d4eed5c24c3d687494c091e4546c0a02316509f8
[ "MIT" ]
1
2021-06-28T20:10:36.000Z
2021-06-28T20:10:36.000Z
submodules/TIMER/submodules/TEX/software/swreg2tex.py
microSharjeel/KNN_Final
d20fcb21a36794a58b2227d78873a5745a1dbfba
[ "MIT" ]
null
null
null
submodules/TIMER/submodules/TEX/software/swreg2tex.py
microSharjeel/KNN_Final
d20fcb21a36794a58b2227d78873a5745a1dbfba
[ "MIT" ]
1
2021-06-28T20:10:38.000Z
2021-06-28T20:10:38.000Z
#!/usr/bin/python2.7 # # Build Latex tables of verilog module interface signals and registers # import sys import os.path import re import string import math from vhparser import header_parse def write_table(outfile, program): #write output file fout = open (outfile, 'w') for i in range(len(program)):...
30.461538
94
0.523288
896d1718a056ae2bff60963613410d54208cc5bc
6,255
py
Python
sdk/python/pulumi_azure/signalr/get_service.py
davidobrien1985/pulumi-azure
811beeea473bd798d77354521266a87a2fac5888
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/signalr/get_service.py
davidobrien1985/pulumi-azure
811beeea473bd798d77354521266a87a2fac5888
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/signalr/get_service.py
davidobrien1985/pulumi-azure
811beeea473bd798d77354521266a87a2fac5888
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class GetSer...
44.361702
285
0.678657
a43ccf22f36867cd6c20eb276338d68d169a1a0b
7,294
py
Python
scripts/python/set_data_switch_config.py
rbrud/power-up
c0d59a79ad9c713d94da73395a5fd768fcfff838
[ "Apache-2.0" ]
null
null
null
scripts/python/set_data_switch_config.py
rbrud/power-up
c0d59a79ad9c713d94da73395a5fd768fcfff838
[ "Apache-2.0" ]
null
null
null
scripts/python/set_data_switch_config.py
rbrud/power-up
c0d59a79ad9c713d94da73395a5fd768fcfff838
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2017 IBM Corp. # # 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 require...
41.91954
104
0.589526
4e93ba4654ebebce2d977b5b2c786cc8ee4927f2
792
py
Python
send_mail.py
wcolts2000/flask-form
875ae581965c5277c121dc401ae536e844acae26
[ "MIT" ]
null
null
null
send_mail.py
wcolts2000/flask-form
875ae581965c5277c121dc401ae536e844acae26
[ "MIT" ]
null
null
null
send_mail.py
wcolts2000/flask-form
875ae581965c5277c121dc401ae536e844acae26
[ "MIT" ]
null
null
null
import smtplib from email.mime.text import MIMEText def send_mail(customer, dealer, rating, comments): port = 2525 smtp_server = 'smtp.mailtrap.io' login = '<login_here>' password = '<password_here>' message = f"<h3>New Feedback Submission</h3><ul><li>Customer: {customer}</li><li>Dealer: {dealer}<...
36
166
0.676768
3dee0900962103408a6034a2f6805083ca0b012f
12,250
py
Python
recipes/LibriSpeech/librispeech_prepare.py
sunwell1994/speechbrain
dc7a2deaa4113749153c1a967b95aea260d68094
[ "Apache-2.0" ]
1
2021-09-07T02:08:49.000Z
2021-09-07T02:08:49.000Z
recipes/LibriSpeech/librispeech_prepare.py
sunwell1994/speechbrain
dc7a2deaa4113749153c1a967b95aea260d68094
[ "Apache-2.0" ]
1
2021-06-02T17:07:25.000Z
2021-06-17T16:50:31.000Z
recipes/LibriSpeech/librispeech_prepare.py
sunwell1994/speechbrain
dc7a2deaa4113749153c1a967b95aea260d68094
[ "Apache-2.0" ]
1
2021-06-21T02:16:04.000Z
2021-06-21T02:16:04.000Z
""" Data preparation. Download: http://www.openslr.org/12 Author ------ Mirco Ravanelli, Ju-Chieh Chou, Loren Lugosch 2020 """ import os import csv import random from collections import Counter import logging import torchaudio from speechbrain.utils.data_utils import download_file, get_all_files from speechbrain.dat...
28.755869
80
0.625388
ad59bc15df66a5d6f6a17682c953d0484283946e
45
py
Python
catkin_ws/src/00-infrastructure/duckieteam/include/duckieteam/__init__.py
yxiao1996/dev
e2181233aaa3d16c472b792b58fc4863983825bd
[ "CC-BY-2.0" ]
2
2018-06-25T02:51:25.000Z
2018-06-25T02:51:27.000Z
catkin_ws/src/00-infrastructure/duckieteam/include/duckieteam/__init__.py
yxiao1996/dev
e2181233aaa3d16c472b792b58fc4863983825bd
[ "CC-BY-2.0" ]
null
null
null
catkin_ws/src/00-infrastructure/duckieteam/include/duckieteam/__init__.py
yxiao1996/dev
e2181233aaa3d16c472b792b58fc4863983825bd
[ "CC-BY-2.0" ]
2
2018-09-04T06:44:21.000Z
2018-10-15T02:30:50.000Z
from .persons import * from .robots import *
15
22
0.733333
c2e2718aa4aa0ddf075624c50208cf1a4519b685
1,372
py
Python
emailbomb.py
cimplesid/GMAIL-YAHOO-BOMBBER
0f85567237c6118ccfc1c3db79a23c016f1480cd
[ "MIT" ]
1
2019-03-05T14:46:30.000Z
2019-03-05T14:46:30.000Z
emailbomb.py
cimplesid/GMAIL-YAHOO-BOMBBER
0f85567237c6118ccfc1c3db79a23c016f1480cd
[ "MIT" ]
null
null
null
emailbomb.py
cimplesid/GMAIL-YAHOO-BOMBBER
0f85567237c6118ccfc1c3db79a23c016f1480cd
[ "MIT" ]
1
2019-04-17T08:22:25.000Z
2019-04-17T08:22:25.000Z
#!/usr/bin/python # pip install pyfiglet import smtplib import getpass import sys import pyfiglet import os _banner = pyfiglet.figlet_format("EMAIL BOMBER ") print(_banner) print'\nV1.0 bY SIDTUBE ' server = raw_input ('Server Gmail/Yahoo: ') user = raw_input('Your Email: ') passwd = getpass.getpass('...
24.5
70
0.608601
844c2b6ee3b9a60233e09ea3ff8384ef2d5c82df
3,700
py
Python
src/Utils/UI.py
begbaj/progetto-ing-sw
eb2e0218b78d1dd817e588dd803cf54bc8f56342
[ "MIT" ]
null
null
null
src/Utils/UI.py
begbaj/progetto-ing-sw
eb2e0218b78d1dd817e588dd803cf54bc8f56342
[ "MIT" ]
1
2021-05-23T22:39:16.000Z
2021-05-23T22:39:16.000Z
src/Utils/UI.py
begbaj/babelib
eb2e0218b78d1dd817e588dd803cf54bc8f56342
[ "MIT" ]
1
2021-03-23T15:26:57.000Z
2021-03-23T15:26:57.000Z
from PyQt5.QtCore import Qt from PyQt5.QtGui import QStandardItemModel from PyQt5.QtWidgets import * from PyQt5.QtWidgets import QComboBox from PyQt5.uic import loadUi class ErrorMessage(QDialog): def __init__(self, text, buttons=QDialogButtonBox.Ok): super(ErrorMessage, self).__init__() loadUi("....
31.355932
88
0.65
976161e54fe3db4a75a2599adb240e50fcb34ba4
9,681
py
Python
pycoin/key/BIP32Node.py
genitrust/pycoin
b0daefdd69fa0400cc48ae16f923f03d366db7b4
[ "MIT" ]
null
null
null
pycoin/key/BIP32Node.py
genitrust/pycoin
b0daefdd69fa0400cc48ae16f923f03d366db7b4
[ "MIT" ]
null
null
null
pycoin/key/BIP32Node.py
genitrust/pycoin
b0daefdd69fa0400cc48ae16f923f03d366db7b4
[ "MIT" ]
null
null
null
""" A BIP0032-style hierarchical wallet. Implement a BIP0032-style hierarchical wallet which can create public or private wallet keys. Each key can create many child nodes. Each node has a wallet key and a corresponding private & public key, which can be used to generate Bitcoin addresses or WIF private keys. At any ...
40.170124
110
0.673381
ac1f70ce350b4961bf9524f0f8070fad8b019161
268
py
Python
examples/residplot.py
yarikoptic/seaborn
ed4baa32267cc4a44abb40dc243ae75a1d180e85
[ "MIT", "BSD-3-Clause" ]
3
2016-01-25T16:54:25.000Z
2020-05-01T15:15:30.000Z
examples/residplot.py
PureW/seaborn
f400d86002c6d4b2d67eb9740adad908e84f8328
[ "MIT", "BSD-3-Clause" ]
1
2021-06-23T16:40:53.000Z
2021-06-23T16:40:53.000Z
examples/residplot.py
PureW/seaborn
f400d86002c6d4b2d67eb9740adad908e84f8328
[ "MIT", "BSD-3-Clause" ]
2
2019-04-02T19:52:25.000Z
2021-07-06T21:17:27.000Z
""" Plotting model residuals ======================== """ import numpy as np import seaborn as sns sns.set(style="whitegrid") rs = np.random.RandomState(7) x = rs.normal(2, 1, 75) y = 2 + 1.5 * x + rs.normal(0, 2, 75) sns.residplot(x, y, lowess=True, color="navy")
17.866667
46
0.597015
d2fc8d6219b15dc7e6bb43162555d68bd3369b5e
1,319
py
Python
src/unicon/plugins/iosxr/spitfire/patterns.py
nielsvanhooy/unicon.plugins
3416fd8223f070cbb67a2cbe604e3c5d13584318
[ "Apache-2.0" ]
18
2019-11-23T23:14:53.000Z
2022-01-10T01:17:08.000Z
src/unicon/plugins/iosxr/spitfire/patterns.py
nielsvanhooy/unicon.plugins
3416fd8223f070cbb67a2cbe604e3c5d13584318
[ "Apache-2.0" ]
12
2020-11-09T20:39:25.000Z
2022-03-22T12:46:59.000Z
src/unicon/plugins/iosxr/spitfire/patterns.py
nielsvanhooy/unicon.plugins
3416fd8223f070cbb67a2cbe604e3c5d13584318
[ "Apache-2.0" ]
32
2020-02-12T15:42:22.000Z
2022-03-15T16:42:10.000Z
__author__ = "Sritej K V R <skanakad@cisco.com>" from unicon.plugins.iosxr.patterns import IOSXRPatterns class SpitfirePatterns(IOSXRPatterns): def __init__(self): super().__init__() # Always have the first match group (.*?) as this is the data # returned as the cli output . self.e...
38.794118
88
0.482183
6328cfd2a5f747595ed6791d0c2146d8b566cacf
662
py
Python
manage.py
renmarin/survey
34bb773798f8eb048225677e630f961379bdd160
[ "MIT" ]
null
null
null
manage.py
renmarin/survey
34bb773798f8eb048225677e630f961379bdd160
[ "MIT" ]
null
null
null
manage.py
renmarin/survey
34bb773798f8eb048225677e630f961379bdd160
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'survey.settings') try: from django.core.management import execute_from_command_line except Impor...
28.782609
73
0.678248
a27f3442eb36f824573516648ca691491eba3b5c
37,311
py
Python
networking_ovn/tests/functional/octavia/test_ovn_driver.py
numansiddique/networking-ovn
9357ddcb6c427486e6a1b3f012f87b9c4fab43a2
[ "Apache-2.0" ]
null
null
null
networking_ovn/tests/functional/octavia/test_ovn_driver.py
numansiddique/networking-ovn
9357ddcb6c427486e6a1b3f012f87b9c4fab43a2
[ "Apache-2.0" ]
null
null
null
networking_ovn/tests/functional/octavia/test_ovn_driver.py
numansiddique/networking-ovn
9357ddcb6c427486e6a1b3f012f87b9c4fab43a2
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Red Hat, 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...
44.791116
79
0.589826
8a810b935a3b9459614ccf0dd59bca151b02d555
3,385
py
Python
FileOperations.py
AndrewPiroli/NOS-MCT
539bd51825aee8ac05fdcb2fef8ea1e9f9e765b5
[ "MIT" ]
null
null
null
FileOperations.py
AndrewPiroli/NOS-MCT
539bd51825aee8ac05fdcb2fef8ea1e9f9e765b5
[ "MIT" ]
2
2020-11-29T23:46:06.000Z
2020-11-29T23:51:54.000Z
FileOperations.py
AndrewPiroli/NOS-MCT
539bd51825aee8ac05fdcb2fef8ea1e9f9e765b5
[ "MIT" ]
null
null
null
import pathlib from typing import Iterator, List, Union import os import csv import shutil from queue import Empty as QEmptyException import constants from multiprocessing import Queue # These characters/strings are illegal or their usage is discouraged on Windows, but could appear in a command name or device hostname...
35.260417
135
0.653767
9068086904eb2438527b3719104f30794976edd0
2,813
py
Python
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesProducerTest_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesProducerTest_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesProducerTest_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
# Configuration file for CSCTriggerPrimitives building. # Slava Valuev May-2006. import FWCore.ParameterSet.Config as cms from Configuration.Eras.Era_Run2_2018_cff import Run2_2018 process = cms.Process("MuonCSCTriggerPrimitives", Run2_2018) process.source = cms.Source("PoolSource", fileNames = cms.untracked.vst...
36.064103
90
0.691077
6d983bffa6b94307153007983e5eb83fdbc9ddf0
2,351
py
Python
backend/app/core/authentication/authentication.py
Hawangledt/template-projeto-selecao-back
2c90236ebac48c7018b8a36562aec1eb3b200825
[ "MIT" ]
null
null
null
backend/app/core/authentication/authentication.py
Hawangledt/template-projeto-selecao-back
2c90236ebac48c7018b8a36562aec1eb3b200825
[ "MIT" ]
null
null
null
backend/app/core/authentication/authentication.py
Hawangledt/template-projeto-selecao-back
2c90236ebac48c7018b8a36562aec1eb3b200825
[ "MIT" ]
null
null
null
import json import requests import os from fastapi import Security, HTTPException, status from fastapi.security.api_key import APIKeyHeader from functools import wraps from jose import jwt AUTH0_DOMAIN = os.getenv("AUTH0_DOMAIN", "Auth0 Domain undefined") API_AUDIENCE = os.getenv("API_AUDIENCE", "Auth0 Api audience un...
37.31746
73
0.574224
50dcd7d83e7be2bcee5b5f35f7fe2c6cabbb5d1b
1,454
py
Python
train_quality_network.py
Phoenix-Chen/butterflies
06abf393c69f7a7c54d4e8a8775de81de7908285
[ "MIT" ]
45
2019-12-26T10:36:47.000Z
2022-03-30T12:17:45.000Z
train_quality_network.py
Phoenix-Chen/butterflies
06abf393c69f7a7c54d4e8a8775de81de7908285
[ "MIT" ]
1
2022-02-04T02:54:05.000Z
2022-02-04T02:54:05.000Z
train_quality_network.py
Phoenix-Chen/butterflies
06abf393c69f7a7c54d4e8a8775de81de7908285
[ "MIT" ]
8
2019-12-27T08:51:40.000Z
2022-02-04T01:29:23.000Z
from itertools import count import torch import torch.nn as nn import torch.optim as optim import numpy as np from torch.utils.data import DataLoader from tqdm import tqdm from quality_network import QualityNetwork from quality_dataset import QualityDataset dataset = QualityDataset() device = torch.device("cuda" if t...
30.291667
102
0.680193
97098e37a31278bf23763abaa1532489fca3c09b
4,504
py
Python
tests/unit/services/test_onelog.py
vegaprotocol/social-media-verification
5e2d23ff5781136de1692c4dc46b4bb02e588e65
[ "MIT" ]
null
null
null
tests/unit/services/test_onelog.py
vegaprotocol/social-media-verification
5e2d23ff5781136de1692c4dc46b4bb02e588e65
[ "MIT" ]
23
2021-03-31T10:19:54.000Z
2021-10-29T23:55:34.000Z
tests/unit/services/test_onelog.py
vegaprotocol/social-media-verification
5e2d23ff5781136de1692c4dc46b4bb02e588e65
[ "MIT" ]
null
null
null
from typing import Callable, Pattern import pytest from datetime import datetime, timezone from decimal import Decimal import re from services.onelog import onelog, OneLog, onelog_json def test_OneLog_basic(): onelog = OneLog() assert onelog.to_single_line_key_value() == "" assert onelog.to_single_line_...
28.506329
79
0.607904
2c67b51e201683584efb6941857c934af8bc41cd
1,271
py
Python
model.py
Gokuljokul/Sliding-window
f266f5ce136b9cba71f692848345369799743196
[ "MIT" ]
null
null
null
model.py
Gokuljokul/Sliding-window
f266f5ce136b9cba71f692848345369799743196
[ "MIT" ]
null
null
null
model.py
Gokuljokul/Sliding-window
f266f5ce136b9cba71f692848345369799743196
[ "MIT" ]
null
null
null
import tflearn from tflearn.data_utils import shuffle, to_categorical from tflearn.layers.core import input_data, dropout, fully_connected from tflearn.layers.conv import conv_2d, max_pool_2d from tflearn.layers.estimator import regression from tflearn.data_preprocessing import ImagePreprocessing from tflearn.dat...
41
102
0.796223
477a928feed7e28d3b686a56d9dbb2c57440baac
2,053
py
Python
tests/test_timeline_clock.py
rvega/isobar
6b9ead7238e559cdcf83dd4122e2ddcbe2f651ad
[ "MIT" ]
241
2015-01-05T12:32:21.000Z
2022-03-29T20:50:51.000Z
tests/test_timeline_clock.py
rvega/isobar
6b9ead7238e559cdcf83dd4122e2ddcbe2f651ad
[ "MIT" ]
21
2015-01-28T16:57:59.000Z
2022-03-17T22:01:08.000Z
tests/test_timeline_clock.py
rvega/isobar
6b9ead7238e559cdcf83dd4122e2ddcbe2f651ad
[ "MIT" ]
39
2015-01-27T04:29:22.000Z
2022-02-16T13:14:13.000Z
""" Unit tests for isobar """ import isobar as iso import pytest import time def test_timeline_clock_accuracy(): #-------------------------------------------------------------------------------- # 480 ticks per beat @ 125bpm = 1 tick per 1ms #---------------------------------------------------------------...
40.254902
87
0.514856
2097736151697374cb349c540d4599d4aee8d388
1,307
py
Python
tests/integration/test_genericpage4.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
2
2017-11-08T19:55:57.000Z
2018-12-21T12:41:41.000Z
tests/integration/test_genericpage4.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
null
null
null
tests/integration/test_genericpage4.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
1
2018-10-13T08:59:29.000Z
2018-10-13T08:59:29.000Z
import pytest pytestmark = pytest.mark.sphinx('html', testroot='genericpage4') @pytest.mark.parametrize('page', ['about.html', ], indirect=True) class TestGenericpage4: def test_about(self, page): # The root's acquireds has a all: template pointing to # acquired_all. The _templates dir has a ...
32.675
75
0.648049
0a50d018b899d1e542431b0b624f2240220e35e3
10,358
py
Python
ple/games/originalgame/board.py
rach0012/humanRL_prior_games
c9fff26af5df3e1cdea023536da5fda114ba5c60
[ "MIT" ]
62
2018-06-19T07:57:03.000Z
2022-03-12T14:09:40.000Z
ple/games/originalgame/board.py
wwxFromTju/humanRL_prior_games
74d98f1c1aa88067534e880f57c8158a41f8b407
[ "MIT" ]
4
2018-09-19T21:11:09.000Z
2019-05-14T21:38:28.000Z
ple/games/originalgame/board.py
wwxFromTju/humanRL_prior_games
74d98f1c1aa88067534e880f57c8158a41f8b407
[ "MIT" ]
13
2018-06-19T10:52:19.000Z
2021-12-21T12:19:18.000Z
__author__ = 'Rachit Dubey' import pygame import math import sys import os import numpy as np from .person import Person from .onBoard import OnBoard from .enemy import enemy from .player import Player class Board(object): ''' This class defines our gameboard. A gameboard contains everthing related to our ...
43.158333
130
0.529639
7f840d58b7f25b9d44f904f790ada2e5088ce3a0
5,707
py
Python
Q2/attack.py
zjunlp/DiagnoseRE
7ff551e2bcdf9c02820084e2a5ec2624e4069887
[ "MIT" ]
22
2020-09-21T15:29:20.000Z
2022-01-17T08:46:07.000Z
Q2/attack.py
zjunlp/DiagnoseRE
7ff551e2bcdf9c02820084e2a5ec2624e4069887
[ "MIT" ]
null
null
null
Q2/attack.py
zjunlp/DiagnoseRE
7ff551e2bcdf9c02820084e2a5ec2624e4069887
[ "MIT" ]
7
2020-10-06T02:31:40.000Z
2022-03-29T02:58:53.000Z
import time from multiprocessing import Queue, Process, set_start_method from victim import * # Enable this to allow tensors being converted to numpy arrays tf.compat.v1.enable_eager_execution() try: set_start_method('spawn') except Exception: pass logging.basicConfig(level=logging.INFO) # Silent unimportant ...
40.764286
113
0.630629
3ca229a2ed523499fda2274fa51c352234589a44
16,638
py
Python
tools/compbio/RNArobo/foldfilter/dotknot/dotknot.py
PeterKoza/Galaxy-fmfi
2c201b7cca694905412452a707ec69b2111f72c7
[ "CC-BY-3.0" ]
null
null
null
tools/compbio/RNArobo/foldfilter/dotknot/dotknot.py
PeterKoza/Galaxy-fmfi
2c201b7cca694905412452a707ec69b2111f72c7
[ "CC-BY-3.0" ]
null
null
null
tools/compbio/RNArobo/foldfilter/dotknot/dotknot.py
PeterKoza/Galaxy-fmfi
2c201b7cca694905412452a707ec69b2111f72c7
[ "CC-BY-3.0" ]
null
null
null
""" DotKnot: software for RNA pseudoknot prediction Copyright (C) 2010-2011 Jana Sperschneider 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 2 of the ...
56.979452
183
0.554995
b3929d4ab0b97a7fd59f4ec349376a243984afd5
1,234
py
Python
src/vmc/scanners/migrations/0002_auto_20200614_2000.py
mSALDANHAf/vmc
2475395a41284356a93ba7d523f4bcf2e5ef1ef7
[ "Apache-2.0" ]
37
2020-05-30T14:51:23.000Z
2022-03-30T00:56:48.000Z
src/vmc/scanners/migrations/0002_auto_20200614_2000.py
mSALDANHAf/vmc
2475395a41284356a93ba7d523f4bcf2e5ef1ef7
[ "Apache-2.0" ]
20
2019-12-05T01:06:43.000Z
2022-02-16T17:37:52.000Z
src/vmc/scanners/migrations/0002_auto_20200614_2000.py
mSALDANHAf/vmc
2475395a41284356a93ba7d523f4bcf2e5ef1ef7
[ "Apache-2.0" ]
10
2019-12-11T08:03:03.000Z
2022-03-24T08:31:56.000Z
# Generated by Django 2.2.13 on 2020-06-14 20:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('scanners', '0001_initial'), ] operations = [ migrations.AddField( model_name='config', name='enabled', ...
31.641026
183
0.563209
4b2de9e98f4a41805cc91772e9f15165a1251f28
3,653
py
Python
src/pysonata/sonata/circuit/edge.py
AllenInstitute/project7
901350cdf5c57a56b7efece2a309c72bdf5f2608
[ "BSD-3-Clause" ]
35
2018-04-10T13:54:27.000Z
2022-03-12T09:22:31.000Z
src/pysonata/sonata/circuit/edge.py
AllenInstitute/project7
901350cdf5c57a56b7efece2a309c72bdf5f2608
[ "BSD-3-Clause" ]
92
2018-03-19T10:14:18.000Z
2022-01-29T15:21:47.000Z
src/pysonata/sonata/circuit/edge.py
AllenInstitute/project7
901350cdf5c57a56b7efece2a309c72bdf5f2608
[ "BSD-3-Clause" ]
25
2018-03-16T23:14:42.000Z
2022-02-09T19:37:05.000Z
# Copyright 2017. Allen Institute. All rights reserved # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the # following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
36.89899
120
0.718314
dae39d76c230fdefa06aca788d644a14e37cb654
2,322
py
Python
atlas-outreach-data-tools-framework-1.1/Plotting/PlotStyle.py
Harvard-Neutrino/phys145
c3dc5788128fa2a7db0af0c796cf3afd957bf0ed
[ "CC0-1.0" ]
null
null
null
atlas-outreach-data-tools-framework-1.1/Plotting/PlotStyle.py
Harvard-Neutrino/phys145
c3dc5788128fa2a7db0af0c796cf3afd957bf0ed
[ "CC0-1.0" ]
null
null
null
atlas-outreach-data-tools-framework-1.1/Plotting/PlotStyle.py
Harvard-Neutrino/phys145
c3dc5788128fa2a7db0af0c796cf3afd957bf0ed
[ "CC0-1.0" ]
1
2021-11-30T02:08:12.000Z
2021-11-30T02:08:12.000Z
"""The general style that is to be applied is defined here. Note that it is not an official ATLAS style but has been adapted to the personal tastes of the author. Change it if it does not fit your taste but take note that ROOT sometimes has a will of its own and you may find yourself frustrated sooner than later. """ ...
29.769231
109
0.756245
2b99f0a31fb0317eb67d631ccdd9801e2c3e3b2d
1,232
py
Python
backend/modeling/src/scaler/standard_scaler.py
alyildiz/btc_forecast
b1e70431c9f18bee0afda71b96805f6194072548
[ "MIT" ]
5
2021-09-06T08:42:02.000Z
2021-11-15T15:04:57.000Z
backend/modeling/src/scaler/standard_scaler.py
alyildiz/sncf_forecast
b1e70431c9f18bee0afda71b96805f6194072548
[ "MIT" ]
null
null
null
backend/modeling/src/scaler/standard_scaler.py
alyildiz/sncf_forecast
b1e70431c9f18bee0afda71b96805f6194072548
[ "MIT" ]
null
null
null
import pandas as pd from src.scaler.base_scaler import BaseScaler class StandardScaler(BaseScaler): def __init__(self, columns_to_scale: list, target: list, dic: dict = {}): super().__init__(columns_to_scale, target, dic) def fit_transform(self, data: pd.DataFrame): df = data.copy() f...
34.222222
82
0.564123
dc1338e1c3ae3adae66af6503072dc4fe83446ea
111
py
Python
Bronze/Bronze_I/1357.py
masterTyper/baekjoon_solved_ac
b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c
[ "MIT" ]
null
null
null
Bronze/Bronze_I/1357.py
masterTyper/baekjoon_solved_ac
b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c
[ "MIT" ]
null
null
null
Bronze/Bronze_I/1357.py
masterTyper/baekjoon_solved_ac
b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c
[ "MIT" ]
null
null
null
X, Y = input().split() rev_X = X[::-1] rev_Y = Y[::-1] sum = int(rev_X) + int(rev_Y) print(int(str(sum)[::-1]))
22.2
29
0.540541
b40d333d242e56d9a4ed2c1f620b96a7bca3a86f
1,247
py
Python
qualitube/exceptions.py
qualichat/qualitube
6d1b9b67cc3a6cc41f5d3a6ecfd2d66b3f65c72e
[ "MIT" ]
null
null
null
qualitube/exceptions.py
qualichat/qualitube
6d1b9b67cc3a6cc41f5d3a6ecfd2d66b3f65c72e
[ "MIT" ]
null
null
null
qualitube/exceptions.py
qualichat/qualitube
6d1b9b67cc3a6cc41f5d3a6ecfd2d66b3f65c72e
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021 Vítor Mussa Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
35.628571
78
0.780273
6345ccb6a880324ca44eb885cbf149a0cbe1e41a
1,868
py
Python
recipes/python-recipes/micro_table.py
atn34/foundationdb
bd52f8cbd6596671d19af394ec8077c6298cc6aa
[ "Apache-2.0" ]
11,024
2018-04-19T16:06:46.000Z
2022-03-31T23:43:55.000Z
recipes/python-recipes/micro_table.py
atn34/foundationdb
bd52f8cbd6596671d19af394ec8077c6298cc6aa
[ "Apache-2.0" ]
4,430
2018-04-19T17:12:33.000Z
2022-03-31T23:56:34.000Z
recipes/python-recipes/micro_table.py
atn34/foundationdb
bd52f8cbd6596671d19af394ec8077c6298cc6aa
[ "Apache-2.0" ]
1,146
2018-04-19T16:45:57.000Z
2022-03-30T10:43:57.000Z
# # micro_table.py # # This source file is part of the FoundationDB open source project # # Copyright 2013-2018 Apple Inc. and the FoundationDB project authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy o...
23.64557
74
0.694325
b9625a83fdefaacb7533785307fa22dfa00609a9
2,597
py
Python
client/vowels_prediction.py
MiltonCastilloG/lip_reading_first_approach
bc3a1693607654320b1532580c96197cd4e6e1d2
[ "MIT" ]
null
null
null
client/vowels_prediction.py
MiltonCastilloG/lip_reading_first_approach
bc3a1693607654320b1532580c96197cd4e6e1d2
[ "MIT" ]
2
2020-01-30T14:44:32.000Z
2020-03-27T11:12:57.000Z
client/vowels_prediction.py
MiltonCastilloG/lip_reading_first_approach
bc3a1693607654320b1532580c96197cd4e6e1d2
[ "MIT" ]
null
null
null
#Cargado del modelo propio from keras.models import model_from_json json_file = open("network_clase.json", "r") vowels_model_json = json_file.read() json_file.close() vowels_model_json = model_from_json(vowels_model_json) # Cargar los pesos (weights) en un nuevo modelo vowels_model_json.load_weights("network_weights_...
30.552941
86
0.756257
91ae1121ab522c5ec74869736cdca27ee08ca053
3,080
py
Python
halmodule.py
richteer/pyfatafl
1faddcf5d9eb36cbc6952b9a8e8bb899989f7112
[ "MIT" ]
null
null
null
halmodule.py
richteer/pyfatafl
1faddcf5d9eb36cbc6952b9a8e8bb899989f7112
[ "MIT" ]
null
null
null
halmodule.py
richteer/pyfatafl
1faddcf5d9eb36cbc6952b9a8e8bb899989f7112
[ "MIT" ]
null
null
null
from module import XMPPModule import halutils import pyfatafl class Game(): self.players = [] self.xmpp = None self.b = None self.turn = "" self.mod = None def __init__(self, mod, p1, p2): self.players = [p1, p2] self.mod = mod self.xmpp = mod.xmpp self.xmpp.sendMsg(p2, "You have been challenged to play...
29.615385
147
0.656494
f27f2abf0afea3b2ebebc804363e8e560178fa7e
478
py
Python
extras/send_ethernet.py
myersw12/mii_vhdl_example
ce3564d9ee3663871aaf0bb09e68f0b63a76e3ab
[ "MIT" ]
2
2021-02-06T20:40:25.000Z
2022-01-18T20:53:42.000Z
extras/send_ethernet.py
myersw12/mii_vhdl_example
ce3564d9ee3663871aaf0bb09e68f0b63a76e3ab
[ "MIT" ]
null
null
null
extras/send_ethernet.py
myersw12/mii_vhdl_example
ce3564d9ee3663871aaf0bb09e68f0b63a76e3ab
[ "MIT" ]
1
2018-04-19T12:54:36.000Z
2018-04-19T12:54:36.000Z
""" Send raw ethernet packets Usage: $ sudo python send_ethernet.py """ from socket import * def sendeth(src, dst, eth_type, payload, interface = "eth0"): s = socket(AF_PACKET, SOCK_RAW) s.bind((interface, 0)) return s.send(src + dst + eth_type + payload) if __name__ == "__main__": print("Sent %d-byte E...
19.12
61
0.615063
e01012aeb07b0d966612e8c0df0ab09ede0dfa12
7,285
py
Python
api-ref/source/conf.py
larsbutler/swift
216d68eaa861b0607f1a05828f757f19cb8e6b64
[ "Apache-2.0" ]
null
null
null
api-ref/source/conf.py
larsbutler/swift
216d68eaa861b0607f1a05828f757f19cb8e6b64
[ "Apache-2.0" ]
null
null
null
api-ref/source/conf.py
larsbutler/swift
216d68eaa861b0607f1a05828f757f19cb8e6b64
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
32.815315
79
0.710501
6ccc97323f783ca7fad6ebf5cd6695b3f18ea0ed
3,773
py
Python
uno/data_processing_cylon.py
vibhatha/cylon_applications
6af9bdf3b4738c6cc4cf2c3c181a5c60f049d113
[ "Apache-2.0" ]
5
2021-01-12T17:18:31.000Z
2022-02-23T05:37:14.000Z
uno/data_processing_cylon.py
vibhatha/cylon_applications
6af9bdf3b4738c6cc4cf2c3c181a5c60f049d113
[ "Apache-2.0" ]
13
2021-01-06T12:49:14.000Z
2021-03-20T16:50:16.000Z
uno/data_processing_cylon.py
vibhatha/cylon_applications
6af9bdf3b4738c6cc4cf2c3c181a5c60f049d113
[ "Apache-2.0" ]
null
null
null
import os import time import download_util from pycylon import CylonContext from pycylon import Table from pycylon.io import CSVReadOptions from pycylon.io import read_csv import numpy as np import pandas as pd ctx: CylonContext = CylonContext(config=None, distributed=False) def load_aggregated_single_response_cylon...
46.012195
114
0.615955
01693fae13d9b0b5fcdeb8453ffae9182a1b984a
1,707
py
Python
servicelayer/archive/file.py
simonwoerpel/servicelayer
1455bc305302ee184695af006477f9812ff39910
[ "MIT" ]
null
null
null
servicelayer/archive/file.py
simonwoerpel/servicelayer
1455bc305302ee184695af006477f9812ff39910
[ "MIT" ]
null
null
null
servicelayer/archive/file.py
simonwoerpel/servicelayer
1455bc305302ee184695af006477f9812ff39910
[ "MIT" ]
null
null
null
import shutil import logging from normality import safe_filename from servicelayer.archive.archive import Archive from servicelayer.archive.util import ensure_path, checksum, BUF_SIZE log = logging.getLogger(__name__) class FileArchive(Archive): def __init__(self, path=None): self.path = ensure_path(pa...
32.207547
73
0.657293