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
f471298626453a2e9d886c99a481fa1c50afd395
4,361
py
Python
rekallpy/rekall/interval.py
pierrerappolt/rekall
f63659c6b12c68f235bca8df11e418daa2f82995
[ "Apache-2.0" ]
58
2019-04-06T08:22:07.000Z
2021-09-24T17:06:48.000Z
rekallpy/rekall/interval.py
pierrerappolt/rekall
f63659c6b12c68f235bca8df11e418daa2f82995
[ "Apache-2.0" ]
17
2019-03-31T18:00:57.000Z
2021-03-08T23:09:07.000Z
rekallpy/rekall/interval.py
pierrerappolt/rekall
f63659c6b12c68f235bca8df11e418daa2f82995
[ "Apache-2.0" ]
12
2018-12-09T05:04:08.000Z
2021-01-28T05:22:18.000Z
"""An Interval is a wrapper around a Bounds instance with a payload. """ class Interval: """A single Interval. An Interval is a wrapper around a Bounds and a payload. The payload can be referenced with the 'payload' key - i.e. ``interval['payload']``, as can the fields of the Bounds. The bounds field...
33.290076
81
0.598487
99c15e1189083d38f77d6b66ad7f263f79284215
73
py
Python
tests/model/__init__.py
ElPapi42/DeepDeblurring
8649f607ddf70a14c067cf902fbba341f99635af
[ "MIT" ]
2
2020-06-23T21:56:53.000Z
2021-02-02T10:21:35.000Z
tests/model/__init__.py
ElPapi42/DeepDeblurring
8649f607ddf70a14c067cf902fbba341f99635af
[ "MIT" ]
6
2020-05-27T15:07:07.000Z
2021-02-11T12:24:46.000Z
tests/model/__init__.py
ElPapi42/DeepDeblurring
8649f607ddf70a14c067cf902fbba341f99635af
[ "MIT" ]
2
2020-09-28T21:04:31.000Z
2021-02-11T12:26:56.000Z
#!/usr/bin/python # coding=utf-8 """Test suit for Model sub-package."""
14.6
38
0.657534
2e1a814d92cc3c0c8ecb2d351152bf517a08ad7d
1,821
py
Python
qiskit/circuit/library/arithmetic/adders/adder.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
1,599
2018-07-10T10:59:12.000Z
2022-03-31T23:56:25.000Z
qiskit/circuit/library/arithmetic/adders/adder.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
5,244
2018-07-10T06:20:13.000Z
2022-03-31T22:18:48.000Z
qiskit/circuit/library/arithmetic/adders/adder.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
1,409
2018-07-10T02:16:12.000Z
2022-03-31T09:01:32.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
30.864407
95
0.646897
16371a6234afd4feefbab8c564a042aafa120394
6,725
py
Python
test/util/bitcoin-util-test.py
bumbacoin/cream
f3e72b58a3b5ae108e2e9c1675f95aacb2599711
[ "MIT" ]
4,424
2015-10-19T19:04:02.000Z
2022-03-21T12:11:29.000Z
test/util/bitcoin-util-test.py
bumbacoin/cream
f3e72b58a3b5ae108e2e9c1675f95aacb2599711
[ "MIT" ]
364
2017-09-17T09:08:57.000Z
2022-03-28T19:22:50.000Z
test/util/bitcoin-util-test.py
bumbacoin/cream
f3e72b58a3b5ae108e2e9c1675f95aacb2599711
[ "MIT" ]
459
2017-07-26T09:09:27.000Z
2022-03-06T01:25:17.000Z
#!/usr/bin/env python3 # Copyright 2014 BitPay Inc. # Copyright 2016-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test framework for bitcoin utils. Runs automatically during `make check`. Ca...
37.154696
125
0.637026
4503be63b3e50a6f6828c0f24f0c1ee87047c3f9
205
py
Python
pyfiction/agents/agent.py
FPreta/pyfiction
a8af76c6badb11aa442122b1f2c4fbda1cf2ac53
[ "MIT" ]
32
2016-05-28T06:12:38.000Z
2021-09-03T23:10:18.000Z
pyfiction/agents/agent.py
KailashDN/pyfiction
dc126d48578c53a3d2f95723c94da0afdd3282d0
[ "MIT" ]
4
2019-12-16T20:18:25.000Z
2022-03-01T11:23:10.000Z
pyfiction/agents/agent.py
KailashDN/pyfiction
dc126d48578c53a3d2f95723c94da0afdd3282d0
[ "MIT" ]
13
2017-08-15T13:14:00.000Z
2022-03-01T01:42:37.000Z
class Agent(object): def __init__(self): raise NotImplementedError("Agent is an abstract class.") def act(self, **kwargs): raise NotImplementedError("Agent is an abstract class.")
29.285714
64
0.678049
c57eede68084be249ec2692da39387d11894140b
11,302
py
Python
python_jsonschema_objects/wrapper_types.py
edwardcwang/python-jsonschema-objects
8ba1f8670b4ffbd5979d465038a36ec3dd265f63
[ "MIT" ]
null
null
null
python_jsonschema_objects/wrapper_types.py
edwardcwang/python-jsonschema-objects
8ba1f8670b4ffbd5979d465038a36ec3dd265f63
[ "MIT" ]
null
null
null
python_jsonschema_objects/wrapper_types.py
edwardcwang/python-jsonschema-objects
8ba1f8670b4ffbd5979d465038a36ec3dd265f63
[ "MIT" ]
1
2020-02-26T06:58:36.000Z
2020-02-26T06:58:36.000Z
import collections import logging import six from python_jsonschema_objects import util from python_jsonschema_objects.validators import registry, ValidationError logger = logging.getLogger(__name__) class ArrayWrapper(collections.abc.MutableSequence): """ A wrapper for array-like structures. This impleme...
38.838488
96
0.530437
f446fac257fd6ba7c7b68643719edbb9fbbe1c8c
39,002
py
Python
src/aioquic/h3/connection.py
sanketpandia/aioquic-docker-server
e823aaed138049db089f6cb6db7f9c1f568133a1
[ "BSD-3-Clause" ]
null
null
null
src/aioquic/h3/connection.py
sanketpandia/aioquic-docker-server
e823aaed138049db089f6cb6db7f9c1f568133a1
[ "BSD-3-Clause" ]
null
null
null
src/aioquic/h3/connection.py
sanketpandia/aioquic-docker-server
e823aaed138049db089f6cb6db7f9c1f568133a1
[ "BSD-3-Clause" ]
null
null
null
import logging import re from enum import Enum, IntEnum from typing import Dict, FrozenSet, List, Optional, Set import pylsqpack from aioquic.buffer import UINT_VAR_MAX_SIZE, Buffer, BufferReadError, encode_uint_var from aioquic.h3.events import ( DatagramReceived, DataReceived, H3Event, Headers, ...
35.748854
88
0.585226
30afc88da14d3e6f75c1cc14055f9b77d4eaf6db
25,109
py
Python
great_expectations/cli/v012/upgrade_helpers/upgrade_helper_v11.py
arunnthevapalan/great_expectations
97f1481bcd1c3f4d8878c6f383f4e6f008b20cd1
[ "Apache-2.0" ]
1
2022-03-16T22:09:49.000Z
2022-03-16T22:09:49.000Z
great_expectations/cli/v012/upgrade_helpers/upgrade_helper_v11.py
draev/great_expectations
317e15ee7e50f6e0d537b62154177440f33b795d
[ "Apache-2.0" ]
null
null
null
great_expectations/cli/v012/upgrade_helpers/upgrade_helper_v11.py
draev/great_expectations
317e15ee7e50f6e0d537b62154177440f33b795d
[ "Apache-2.0" ]
1
2022-03-03T16:47:32.000Z
2022-03-03T16:47:32.000Z
import datetime import json import os import traceback from dateutil.parser import parse from great_expectations import DataContext from great_expectations.cli.v012.upgrade_helpers.base_upgrade_helper import ( BaseUpgradeHelper, ) from great_expectations.data_context.store import ( DatabaseStoreBackend, H...
36.389855
200
0.579513
7ede75d17357c9aa9dd9ac2031c273b2930cd22e
4,875
py
Python
src/icolos/core/workflow_steps/pmx/prepare_transitions.py
CMargreitter/Icolos
fd7b664ce177df875fefa910dc4d5c574b521cb3
[ "Apache-2.0" ]
11
2022-01-30T14:36:13.000Z
2022-03-22T09:40:57.000Z
src/icolos/core/workflow_steps/pmx/prepare_transitions.py
CMargreitter/Icolos
fd7b664ce177df875fefa910dc4d5c574b521cb3
[ "Apache-2.0" ]
2
2022-03-23T07:56:49.000Z
2022-03-24T12:01:42.000Z
src/icolos/core/workflow_steps/pmx/prepare_transitions.py
CMargreitter/Icolos
fd7b664ce177df875fefa910dc4d5c574b521cb3
[ "Apache-2.0" ]
8
2022-01-28T10:32:31.000Z
2022-03-22T09:40:59.000Z
from typing import Dict, List from icolos.core.containers.perturbation_map import Edge from icolos.core.workflow_steps.pmx.base import StepPMXBase from icolos.core.workflow_steps.step import _LE from pydantic import BaseModel from icolos.utils.enums.program_parameters import ( GromacsEnum, StepPMXEnum, ) from i...
33.62069
100
0.559179
1b0584dc3b96d7da3fb901263181c084e3d60abf
3,235
py
Python
RecoEgamma/ElectronIdentification/python/Identification/mvaElectronID_tools.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
RecoEgamma/ElectronIdentification/python/Identification/mvaElectronID_tools.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
RecoEgamma/ElectronIdentification/python/Identification/mvaElectronID_tools.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms # ======================================================= # Define simple containers for MVA cut values and related # ======================================================= class EleMVA_3Categories_WP: """ This is a container class to hold MVA cut values for a 3-categ...
37.183908
87
0.558887
6c3b267c232341826199beb71b2f18ec9bf2880c
1,015
py
Python
orchestra/tests/management_commands/test_migrate_certifications.py
code-review-doctor/orchestra
1ba58d26c508e89d2050dc9b0c8439eb1eadd014
[ "Apache-2.0" ]
444
2016-07-25T05:24:30.000Z
2022-02-21T08:12:29.000Z
orchestra/tests/management_commands/test_migrate_certifications.py
code-review-doctor/orchestra
1ba58d26c508e89d2050dc9b0c8439eb1eadd014
[ "Apache-2.0" ]
395
2016-07-26T20:49:59.000Z
2022-03-15T20:58:45.000Z
orchestra/tests/management_commands/test_migrate_certifications.py
code-review-doctor/orchestra
1ba58d26c508e89d2050dc9b0c8439eb1eadd014
[ "Apache-2.0" ]
63
2016-07-26T04:10:21.000Z
2022-03-29T03:32:19.000Z
from unittest.mock import patch from django.core.management import call_command from django.core.management.base import CommandError from orchestra.tests.helpers import OrchestraTestCase class MigrateCertificationsTestCase(OrchestraTestCase): patch_path = ('orchestra.management.commands.' 'mig...
33.833333
67
0.673892
1432e63b63ec3e9a968d3d95ca09f3a688bcbfeb
5,399
py
Python
optuna/visualization/matplotlib/_edf.py
agarwalrounak/optuna
b5fd0439dc33c94c06251974b8cb023a3f9bccc7
[ "MIT" ]
2
2021-02-28T10:35:23.000Z
2021-06-16T10:01:44.000Z
optuna/visualization/matplotlib/_edf.py
agarwalrounak/optuna
b5fd0439dc33c94c06251974b8cb023a3f9bccc7
[ "MIT" ]
12
2021-03-28T06:50:16.000Z
2022-03-07T15:07:23.000Z
optuna/visualization/matplotlib/_edf.py
agarwalrounak/optuna
b5fd0439dc33c94c06251974b8cb023a3f9bccc7
[ "MIT" ]
1
2021-03-17T04:28:42.000Z
2021-03-17T04:28:42.000Z
import itertools from typing import Callable from typing import cast from typing import List from typing import Optional from typing import Sequence from typing import Union import numpy as np from optuna._experimental import experimental from optuna.logging import get_logger from optuna.study import Study from optun...
31.208092
99
0.624375
d01b8bb42fce3d3eab61d1b147af6506e08050f6
157
py
Python
Models/admin.py
EmmanuelMuriungi/facepass
c16f5af4e8db59638666d708cba2042364be1f54
[ "MIT" ]
3
2020-09-24T22:57:13.000Z
2022-02-01T17:17:26.000Z
Models/admin.py
EmmanuelMuriungi/facepass
c16f5af4e8db59638666d708cba2042364be1f54
[ "MIT" ]
null
null
null
Models/admin.py
EmmanuelMuriungi/facepass
c16f5af4e8db59638666d708cba2042364be1f54
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from .models import Records admin.site.register(Records)
17.444444
39
0.770701
0756b5b3a8534b7497f56a0847f09744312b0d2b
468
py
Python
stubs/micropython-v1_18-esp8266/random.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/micropython-v1_18-esp8266/random.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/micropython-v1_18-esp8266/random.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
""" Module: 'random' on micropython-v1.18-esp8266 """ # MCU: {'ver': 'v1.18', 'port': 'esp8266', 'arch': 'xtensa', 'sysname': 'esp8266', 'release': '1.18', 'name': 'micropython', 'mpy': 9733, 'version': '1.18', 'machine': 'ESP module with ESP8266', 'build': '', 'nodename': 'esp8266', 'platform': 'esp8266', 'family': 'm...
31.2
278
0.594017
a89f09cbf4e674bcad6359607f729fac91014bae
3,471
py
Python
tests/contracts/KT1G393LjojNshvMdf68XQD24Hwjn7xarzNe/test_micheline_coding_KT1G39.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2021-05-20T16:52:08.000Z
2021-05-20T16:52:08.000Z
tests/contracts/KT1G393LjojNshvMdf68XQD24Hwjn7xarzNe/test_micheline_coding_KT1G39.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2020-12-30T16:44:56.000Z
2020-12-30T16:44:56.000Z
tests/contracts/KT1G393LjojNshvMdf68XQD24Hwjn7xarzNe/test_micheline_coding_KT1G39.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2022-03-20T19:01:00.000Z
2022-03-20T19:01:00.000Z
from unittest import TestCase from tests import get_data from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline class MichelineCodingTestKT1G39(TestCase): @classmethod def setUpClass(cls): cls.maxDiff = None cls.code = get_data( path='contrac...
46.905405
88
0.715356
0462fc89680e09f3706b02a0c69d253caf861e3b
3,418
py
Python
DQM/BeamMonitor/python/BeamMonitor_Cosmics_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/BeamMonitor/python/BeamMonitor_Cosmics_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/BeamMonitor/python/BeamMonitor_Cosmics_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer dqmBeamMonitor = DQMEDAnalyzer("BeamMonitor", monitorName = cms.untracked.string('BeamMonitor'), beamSpot = cms.untracked.InputTag('offlineBeamSpot'), ## hltOffl...
64.490566
154
0.481276
94b615a31bff13351602f8c1841670cdf2a95825
373
py
Python
2020/day_01/python/day01.py
josephroquedev/advent-of-code
bb217deb7a5f5ed5c8c04cb726ddadb5b042ee4d
[ "MIT" ]
null
null
null
2020/day_01/python/day01.py
josephroquedev/advent-of-code
bb217deb7a5f5ed5c8c04cb726ddadb5b042ee4d
[ "MIT" ]
2
2021-06-02T00:41:38.000Z
2021-11-30T10:05:29.000Z
2020/day_01/python/day01.py
autoreleasefool/advent-of-code
bb217deb7a5f5ed5c8c04cb726ddadb5b042ee4d
[ "MIT" ]
null
null
null
from aoc import AOC import math from itertools import chain aoc = AOC(year=2020, day=1) data = aoc.load() # Part 1 expenses = set(data.numbers()) product = math.prod([e for e in expenses if (2020 - e) in expenses]) aoc.p1(product) # Part 2 product = math.prod( set(chain(*[[e for e in expenses if (2020 - f - e)...
18.65
88
0.675603
7ca23da1f374a3368b02520c263bd6ba1f55b8cb
24,745
py
Python
src/pathfinding/algorithms.py
ShanaryS/algorithm-visualizer
85d37cc2c85e1c9d3b96113f14bcceec1a1f69b9
[ "MIT" ]
1
2021-09-09T07:48:51.000Z
2021-09-09T07:48:51.000Z
src/pathfinding/algorithms.py
ShanaryS/algorithm-visualizer
85d37cc2c85e1c9d3b96113f14bcceec1a1f69b9
[ "MIT" ]
null
null
null
src/pathfinding/algorithms.py
ShanaryS/algorithm-visualizer
85d37cc2c85e1c9d3b96113f14bcceec1a1f69b9
[ "MIT" ]
null
null
null
"""Contains pathfinding and maze generation algorithms""" from src.pathfinding.colors import * from dataclasses import dataclass import pygame from src.pathfinding.graph import draw, draw_vis_text, reset_algo, GraphState, VisText from src.pathfinding.values import get_random_sample, get_randrange from queue import Pr...
40.105348
118
0.582582
b4c42761008a079a047925d4f3483fe8419be47c
2,346
py
Python
src/thespian/actor.py
pbs/thespian
c6552ea9e1a0106add82a62c919511d37e03c668
[ "Unlicense" ]
1
2017-04-19T12:45:43.000Z
2017-04-19T12:45:43.000Z
src/thespian/actor.py
pbs/thespian
c6552ea9e1a0106add82a62c919511d37e03c668
[ "Unlicense" ]
null
null
null
src/thespian/actor.py
pbs/thespian
c6552ea9e1a0106add82a62c919511d37e03c668
[ "Unlicense" ]
null
null
null
import multiprocessing as mp import os import logging log = logging.getLogger(__name__) class DeadActorException(Exception): pass def die(msg="Giving up!"): raise RuntimeError(msg) class Actor(object): inbox_size = 4 SEND_TIMEOUT = 3600 * 4 def __init__(self, inbox_size=None): self....
24.4375
88
0.589514
e3d775a4c649b3a9c749a9b170b147186c126747
20,031
py
Python
conans/client/generators/cmake_find_package_multi.py
czoido/conan
81370e515f3ed7ba0486d6ffeb4def8a2765ae14
[ "MIT" ]
1
2021-08-05T15:33:08.000Z
2021-08-05T15:33:08.000Z
conans/client/generators/cmake_find_package_multi.py
czoido/conan
81370e515f3ed7ba0486d6ffeb4def8a2765ae14
[ "MIT" ]
null
null
null
conans/client/generators/cmake_find_package_multi.py
czoido/conan
81370e515f3ed7ba0486d6ffeb4def8a2765ae14
[ "MIT" ]
null
null
null
import os import textwrap from jinja2 import Template from conans.client.generators import CMakeFindPackageGenerator from conans.client.generators.cmake import DepsCppCmake from conans.client.generators.cmake_find_package_common import (find_transitive_dependencies, ...
51.09949
282
0.543907
6f8962dbf8f160beda5a5eecdf318d853eaeeaf1
1,040
py
Python
ktrain/tests/test_regression.py
ReluXingZeng/ktrain
bfbf85f7b60c54ee208e8a22d9a1f4067405021e
[ "Apache-2.0" ]
null
null
null
ktrain/tests/test_regression.py
ReluXingZeng/ktrain
bfbf85f7b60c54ee208e8a22d9a1f4067405021e
[ "Apache-2.0" ]
null
null
null
ktrain/tests/test_regression.py
ReluXingZeng/ktrain
bfbf85f7b60c54ee208e8a22d9a1f4067405021e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Tests of ktrain text classification flows """ import testenv from unittest import TestCase, main, skip import ktrain Sequential = ktrain.imports.Sequential Dense = ktrain.imports.Dense def bostonhousing(): from tensorflow.keras.datasets import boston_housing (x_train, y_train), (x_te...
28.108108
97
0.698077
9842a02379f90fdc8b55d2a5395707750918a713
6,354
py
Python
src/test/proto_library_test.py
liuyongsong/typhoon-blade
2a076ff87b2a91e552948b47ed5168c2b37e99e6
[ "BSD-3-Clause" ]
1
2018-04-09T09:06:45.000Z
2018-04-09T09:06:45.000Z
src/test/proto_library_test.py
liuyongsong/typhoon-blade
2a076ff87b2a91e552948b47ed5168c2b37e99e6
[ "BSD-3-Clause" ]
null
null
null
src/test/proto_library_test.py
liuyongsong/typhoon-blade
2a076ff87b2a91e552948b47ed5168c2b37e99e6
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2011 Tencent Inc. All rights reserved. This is the test module for proto_library target. Author: Michaelpeng <michaelpeng@tencent.com> Date: October 20, 2011 """ import os import sys sys.path.append('..') import unittest import subprocess import blade.blade import blade.configparse from b...
38.047904
81
0.587347
c0ba6825ba92f62f54d33f3092675cd8b3ff83cc
3,639
py
Python
cycada/data/cityscapes.py
peterzcc/cycada_release
bfd1a9dd01bdb2a956cad13b01f3e305930b7d09
[ "BSD-2-Clause" ]
532
2018-07-09T00:37:32.000Z
2022-03-09T15:10:07.000Z
cycada/data/cityscapes.py
ckevin4747/cycada_review
aac0c4724d704165738bfad9684fbffa9337c211
[ "BSD-2-Clause" ]
41
2018-07-16T07:20:34.000Z
2021-12-10T21:20:23.000Z
cycada/data/cityscapes.py
ckevin4747/cycada_review
aac0c4724d704165738bfad9684fbffa9337c211
[ "BSD-2-Clause" ]
143
2018-07-09T13:10:17.000Z
2022-02-15T14:24:29.000Z
import os.path import sys import numpy as np import torch import torch.utils.data as data from PIL import Image from .data_loader import register_data_params, register_dataset_obj from .data_loader import DatasetParams ignore_label = 255 id2label = {-1: ignore_label, 0: ignore_label, 1: ignore_label, 2: ignore_labe...
36.029703
112
0.60044
ee1e257b5a35dd26f3d3ddc00bc2c33710d632ed
6,030
py
Python
machine_learning/Neural_Networks/Back Propogation/backpropagation.py
avi-pal/al-go-rithms
5167a20f1db7b366ff19f2962c1746a02e4f5067
[ "CC0-1.0" ]
1,253
2017-06-06T07:19:25.000Z
2022-03-30T17:07:58.000Z
machine_learning/deep_learning/python/backpropagation.py
rishabh99-rc/al-go-rithms
4df20d7ef7598fda4bc89101f9a99aac94cdd794
[ "CC0-1.0" ]
554
2017-09-29T18:56:01.000Z
2022-02-21T15:48:13.000Z
machine_learning/deep_learning/python/backpropagation.py
rishabh99-rc/al-go-rithms
4df20d7ef7598fda4bc89101f9a99aac94cdd794
[ "CC0-1.0" ]
2,226
2017-09-29T19:59:59.000Z
2022-03-25T08:59:55.000Z
# Backprop on the Seeds Dataset from random import seed from random import randrange from random import random from csv import reader from math import exp # Load a CSV file def load_csv(filename): dataset = list() with open(filename, 'r') as file: csv_reader = reader(file) for row in csv_reader: if not row: ...
30.15
95
0.717579
e4e11f28349293871ebd37362135361f975f37e2
2,151
py
Python
tests/models/symbol/flash_cache_test.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
5
2016-08-23T17:52:22.000Z
2019-05-16T08:45:30.000Z
tests/models/symbol/flash_cache_test.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
2
2016-11-10T05:30:21.000Z
2019-04-05T15:03:37.000Z
tests/models/symbol/flash_cache_test.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
7
2016-08-25T16:11:44.000Z
2021-02-22T05:31:25.000Z
#!/usr/bin/env python # coding: utf-8 """ The Clear BSD License Copyright (c) – 2016, NetApp, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions...
56.605263
845
0.770339
07306d205eca301f58644266316d997c18fbe95f
6,150
py
Python
trax/supervised/lr_functions.py
pkol/trax
4dda0a5079b48ca8c325164884e677a87a0e3b37
[ "Apache-2.0" ]
1
2020-03-15T00:50:06.000Z
2020-03-15T00:50:06.000Z
trax/supervised/lr_functions.py
pkol/trax
4dda0a5079b48ca8c325164884e677a87a0e3b37
[ "Apache-2.0" ]
null
null
null
trax/supervised/lr_functions.py
pkol/trax
4dda0a5079b48ca8c325164884e677a87a0e3b37
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax 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 of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
41
79
0.72748
fd24d5eb9f68c7839b08130a8c8b446d0cda6c9d
448
py
Python
Strings/String Validators.py
adi-797/Python-Hackerrank
b769cb07aca09ac0eda1d81c51b8e277101da870
[ "MIT" ]
3
2018-08-26T15:49:54.000Z
2018-08-31T17:06:48.000Z
Strings/String Validators.py
adi-797/Python-Hackerrank
b769cb07aca09ac0eda1d81c51b8e277101da870
[ "MIT" ]
null
null
null
Strings/String Validators.py
adi-797/Python-Hackerrank
b769cb07aca09ac0eda1d81c51b8e277101da870
[ "MIT" ]
null
null
null
if __name__ == '__main__': S = raw_input() print True if any(k in "0123456789" or k.lower() in "abcdefghijklmnopqrstuvwxyz" for k in S) else False print True if any(k.lower() in "abcdefghijklmnopqrstuvwxyz" for k in S) else False print True if any(k in "0123456789" for k in S) else False print True if any(k in...
49.777778
103
0.741071
d39d544a90649caffb86579847126d8b96b793a6
757
py
Python
setup.py
rivergold/vit-pytorch
6d1df1a9701dcef683b19abd09136ba23a01a770
[ "MIT" ]
null
null
null
setup.py
rivergold/vit-pytorch
6d1df1a9701dcef683b19abd09136ba23a01a770
[ "MIT" ]
null
null
null
setup.py
rivergold/vit-pytorch
6d1df1a9701dcef683b19abd09136ba23a01a770
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name = 'vit-pytorch', packages = find_packages(exclude=['examples']), version = '0.2.5', license='MIT', description = 'Vision Transformer (ViT) - Pytorch', author = 'Phil Wang', author_email = 'lucidrains@gmail.com', url = 'https://github.com/lucidrain...
26.103448
65
0.645971
36ab7276b22071eed6404f415669f57846a6ae9b
1,170
py
Python
mindinsight/profiler/proposer/allproposers/__init__.py
fapbatista/mindinsight
db5769eb80cbd13a2a9af7682c11f5667d8bf141
[ "Apache-2.0" ]
null
null
null
mindinsight/profiler/proposer/allproposers/__init__.py
fapbatista/mindinsight
db5769eb80cbd13a2a9af7682c11f5667d8bf141
[ "Apache-2.0" ]
null
null
null
mindinsight/profiler/proposer/allproposers/__init__.py
fapbatista/mindinsight
db5769eb80cbd13a2a9af7682c11f5667d8bf141
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
48.75
97
0.757265
9180e8dc918cd217acd962eea812858197ff3dcc
767
py
Python
src/users/models/microsoftgraphshare_action.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/microsoftgraphshare_action.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/microsoftgraphshare_action.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
30.68
83
0.564537
f4c45423f6c68e91515e8824703653e642ff6ee4
206,508
py
Python
test/unit/common/middleware/test_slo.py
aguirguis/swift
2aaeab6f5ddfdbcd75eeee970287f08f19de19ef
[ "Apache-2.0" ]
1,802
2015-01-02T11:25:47.000Z
2022-03-28T15:02:11.000Z
test/unit/common/middleware/test_slo.py
aguirguis/swift
2aaeab6f5ddfdbcd75eeee970287f08f19de19ef
[ "Apache-2.0" ]
15
2015-01-04T09:12:39.000Z
2021-04-15T13:05:37.000Z
test/unit/common/middleware/test_slo.py
aguirguis/swift
2aaeab6f5ddfdbcd75eeee970287f08f19de19ef
[ "Apache-2.0" ]
814
2015-01-04T15:14:01.000Z
2022-03-15T00:15:49.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2013 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
45.030092
79
0.551552
cd4bf30354610443f76723021f503d144c6e6615
22,440
py
Python
dapr/proto/common/v1/common_pb2.py
karishma-chawla/python-sdk
15e018d48418cca5e1660c8afe37403b91f6298d
[ "MIT" ]
null
null
null
dapr/proto/common/v1/common_pb2.py
karishma-chawla/python-sdk
15e018d48418cca5e1660c8afe37403b91f6298d
[ "MIT" ]
null
null
null
dapr/proto/common/v1/common_pb2.py
karishma-chawla/python-sdk
15e018d48418cca5e1660c8afe37403b91f6298d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: dapr/proto/common/v1/common.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection...
41.943925
2,193
0.759626
0fcdb18342ad85935516ab6ef51e170df7a5e493
947
py
Python
Server.py
wiemesprit/m-v
01df78f470b737adb7818152e52ba79b6a6e2b0b
[ "MIT" ]
null
null
null
Server.py
wiemesprit/m-v
01df78f470b737adb7818152e52ba79b6a6e2b0b
[ "MIT" ]
null
null
null
Server.py
wiemesprit/m-v
01df78f470b737adb7818152e52ba79b6a6e2b0b
[ "MIT" ]
1
2020-10-21T18:49:20.000Z
2020-10-21T18:49:20.000Z
from flask import Flask,request import base64 import io from PIL import Image from main import ExecuteProcess from ExtractInfoFromDiploma import ExecuteDiplomaProcess app = Flask(__name__) @app.route("/") def hello_world(): return "Hello World" @app.route('/getimage', methods=['POST']) def handle_form(): pay...
24.282051
56
0.702218
afb78181904e06155d08a5254b62c1f46175bb4d
8,135
py
Python
spampy/email_processor.py
abdullahselek/spampy
2bf3650fb0d8f60a9f544a910f2ff8c64c30e765
[ "MIT" ]
26
2018-06-27T12:06:43.000Z
2022-01-30T23:18:21.000Z
spampy/email_processor.py
abdullahselek/spampy
2bf3650fb0d8f60a9f544a910f2ff8c64c30e765
[ "MIT" ]
3
2018-12-05T09:02:05.000Z
2019-05-13T20:07:52.000Z
spampy/email_processor.py
abdullahselek/spampy
2bf3650fb0d8f60a9f544a910f2ff8c64c30e765
[ "MIT" ]
10
2018-06-29T09:50:23.000Z
2020-10-07T16:32:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import re import nltk import os import numpy as np import codecs import multiprocessing as mp from collections import Counter from typing import Dict, List, Tuple def preprocess(email: str) -> str: """ Preprocess (simplifies) raw email. Args: email (st...
29.689781
82
0.608851
cc231815b5fbfd2f7e67e30f458c6438441ed313
5,717
py
Python
feature_engineering.py
renan-vieira/Data-Mining-2019.2
de6049e4a4386ac1c0d32d918b8db131a074fce9
[ "MIT" ]
null
null
null
feature_engineering.py
renan-vieira/Data-Mining-2019.2
de6049e4a4386ac1c0d32d918b8db131a074fce9
[ "MIT" ]
null
null
null
feature_engineering.py
renan-vieira/Data-Mining-2019.2
de6049e4a4386ac1c0d32d918b8db131a074fce9
[ "MIT" ]
null
null
null
#========================================= # PROJETO MINERACAO DE DADOS # feature engineering # # @claudioalvesmonteiro #========================================= # import packages import pandas as pd from utils_functions import count_porcent, createFaixa, findUTI, categoryToDummyThreshold import numpy as np # import...
40.835714
135
0.67378
325d053ce5923914ef87c633e2f022c1cca91594
4,054
py
Python
tests/test_account.py
vivialconnect/vivialconnect-python
a7deaae0ffd470c681810e6d23c90bd7a0bbde11
[ "MIT" ]
1
2017-03-06T05:46:31.000Z
2017-03-06T05:46:31.000Z
tests/test_account.py
vivialconnect/vivialconnect-python
a7deaae0ffd470c681810e6d23c90bd7a0bbde11
[ "MIT" ]
3
2017-04-11T14:08:48.000Z
2017-08-30T15:25:43.000Z
tests/test_account.py
vivialconnect/vivialconnect-python
a7deaae0ffd470c681810e6d23c90bd7a0bbde11
[ "MIT" ]
2
2017-05-04T19:26:38.000Z
2017-06-21T19:39:07.000Z
import vivialconnect from tests.common import BaseTestCase from tests.common import HTTMock from vivialconnect.resources.account import Transaction class AccountTest(BaseTestCase): def test_get_account(self): with HTTMock( self.response_content, body=self.load_fixture("account/acc...
34.355932
82
0.609521
51ee6622ded72325ba257a7a3905eff143c179e7
1,941
py
Python
methods/__init__.py
rickgroen/cov-weighting
64c296679cd37e724a03c6dc107606f7048aec96
[ "MIT" ]
26
2021-01-05T07:10:31.000Z
2022-03-23T06:31:00.000Z
methods/__init__.py
rickgroen/cov-weighting
64c296679cd37e724a03c6dc107606f7048aec96
[ "MIT" ]
6
2021-04-12T16:27:11.000Z
2022-02-09T07:00:15.000Z
methods/__init__.py
rickgroen/cov-weighting
64c296679cd37e724a03c6dc107606f7048aec96
[ "MIT" ]
7
2021-03-08T09:28:05.000Z
2022-02-23T07:39:29.000Z
import re import importlib import torch.optim as optim from methods.base_method import BaseMethod def find_method_using_name(method_name): # Given the option --method [METHOD], # the file "networks/{}_method.py" will be imported. method_name = re.sub('-', '', method_name) method_filename = "methods."...
38.82
116
0.7017
65b113cd4746120366b512bf10d09611c2525d0f
397
py
Python
src/concurrency/server/client.py
Python-Masterclass/Concurrency
d1902afefd74fa31bebef2c8d205260e746fc525
[ "MIT" ]
null
null
null
src/concurrency/server/client.py
Python-Masterclass/Concurrency
d1902afefd74fa31bebef2c8d205260e746fc525
[ "MIT" ]
null
null
null
src/concurrency/server/client.py
Python-Masterclass/Concurrency
d1902afefd74fa31bebef2c8d205260e746fc525
[ "MIT" ]
null
null
null
import socket if __name__ == "__main__": sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect(("localhost", 25000)) print("Connected to server") while True: n = input().strip() # Remove newline if not n: break sock.send(n.encode("utf-8")) re...
28.357143
60
0.589421
5e3898ed9375022265bfd1a7d111388f1ee8a17e
473
py
Python
setup.py
anbasile/protest-clef-2020
44c4db7ee563a79155a1fc975046283bb46efe76
[ "Apache-2.0" ]
2
2020-06-16T15:02:14.000Z
2021-06-24T17:49:12.000Z
setup.py
anbasile/protest-clef-2020
44c4db7ee563a79155a1fc975046283bb46efe76
[ "Apache-2.0" ]
5
2020-12-30T09:12:39.000Z
2022-02-10T02:31:46.000Z
setup.py
anbasile/protest-clef-2020
44c4db7ee563a79155a1fc975046283bb46efe76
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup setup( name='protesta', version='0.0.1', description='Detect protest events in news articles', author='Angelo Basile', author_email='me@angelobasile.it', install_requires=[ "nlp>=0.4", "numpy<1.19", "tensorflow-addons", "tensorflo...
24.894737
64
0.58351
f6720ba3ddde470952740ce3b5355832f214b1d4
2,305
py
Python
openstack/network/v2/pool_member.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
43
2018-12-19T08:39:15.000Z
2021-07-21T02:45:43.000Z
openstack/network/v2/pool_member.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
11
2019-03-17T13:28:56.000Z
2020-09-23T23:57:50.000Z
openstack/network/v2/pool_member.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
47
2018-12-19T05:14:25.000Z
2022-03-19T15:28:30.000Z
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # # not use this file except in compliance with the License. You may obtain # # a copy of the License at # # # # http://www.apache.org/licenses/LICENSE-2.0 # # # # Unless required by applicable law or agreed to in writing, software # # dis...
40.438596
80
0.674187
af9ae06e8445b6374dd9781eca267858bbea4986
2,874
py
Python
tests/trainer/flags/test_val_check_interval.py
prajakta0111/pytorch-lightning
3df02b880a6d145ff0aca24ea429c12c0d8f1181
[ "Apache-2.0" ]
1
2021-08-05T01:45:26.000Z
2021-08-05T01:45:26.000Z
tests/trainer/flags/test_val_check_interval.py
prajakta0111/pytorch-lightning
3df02b880a6d145ff0aca24ea429c12c0d8f1181
[ "Apache-2.0" ]
1
2021-03-01T17:32:12.000Z
2021-03-01T17:32:12.000Z
tests/trainer/flags/test_val_check_interval.py
prajakta0111/pytorch-lightning
3df02b880a6d145ff0aca24ea429c12c0d8f1181
[ "Apache-2.0" ]
1
2020-10-18T10:32:31.000Z
2020-10-18T10:32:31.000Z
# Copyright The PyTorch Lightning team. # # 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 i...
28.176471
74
0.658316
e142829768654e3bba573b798b1caf9d738748c5
35,533
py
Python
hydrus/tests/functional/test_app.py
batcypher/hydrus-test
64b99504eefabbc3041f4771c0fd6deb189e699e
[ "MIT" ]
null
null
null
hydrus/tests/functional/test_app.py
batcypher/hydrus-test
64b99504eefabbc3041f4771c0fd6deb189e699e
[ "MIT" ]
null
null
null
hydrus/tests/functional/test_app.py
batcypher/hydrus-test
64b99504eefabbc3041f4771c0fd6deb189e699e
[ "MIT" ]
null
null
null
""" This file (test_app.py) contains the functional tests for checking if the response format is proper. Run tests/unit/test_crud.py before running this. """ import json import re import uuid import pytest from hydra_python_core.doc_writer import HydraLink, DocUrl from hydrus.tests.conftest import gen_dummy_object f...
56.671451
97
0.570512
9b0af450efa2f2b8bc750e19b865be2d031c6d23
3,387
py
Python
web-syllabus/yasss/neutemplates/faculty.py
natederbinsky/neu-templates
5a7db9ca080470543c63a9a320f99af1713ce09d
[ "MIT" ]
1
2018-08-31T21:30:38.000Z
2018-08-31T21:30:38.000Z
web-syllabus/yasss/neutemplates/faculty.py
natederbinsky/neu-templates
5a7db9ca080470543c63a9a320f99af1713ce09d
[ "MIT" ]
null
null
null
web-syllabus/yasss/neutemplates/faculty.py
natederbinsky/neu-templates
5a7db9ca080470543c63a9a320f99af1713ce09d
[ "MIT" ]
2
2017-10-05T19:58:12.000Z
2020-09-01T18:43:49.000Z
from typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Tuple, Union from typing_extensions import Literal from enum import Enum from os import path from datetime import date from yasss import gen ## class Badge(Enum): """Types of badges.""" CUSTOM = 1 LINKEDIN = 2 GSCHOLAR = 3 ...
29.710526
380
0.621494
53daf66c6d66a7bda906791502c3a9c09aca9a8a
8,627
py
Python
msticpy/data/uploaders/splunk_uploader.py
GiuseppeLaurenza/msticpy
37f96126b1e7ed06d3d140e340cdf86d6eee440b
[ "MIT" ]
2
2020-11-03T05:56:10.000Z
2020-11-03T05:56:17.000Z
msticpy/data/uploaders/splunk_uploader.py
GiuseppeLaurenza/msticpy
37f96126b1e7ed06d3d140e340cdf86d6eee440b
[ "MIT" ]
1
2021-06-02T15:24:59.000Z
2021-06-02T15:24:59.000Z
msticpy/data/uploaders/splunk_uploader.py
GiuseppeLaurenza/msticpy
37f96126b1e7ed06d3d140e340cdf86d6eee440b
[ "MIT" ]
1
2022-02-06T18:56:15.000Z
2022-02-06T18:56:15.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """Splunk ...
33.831373
100
0.562884
8602d5cd9894dc928638de4c81587d53bfe584b8
18
py
Python
hello.py
LuisFelipeUrena/lambdata-luife
cc46b1608f15511614387ee834263b8a5eb24d4e
[ "MIT" ]
null
null
null
hello.py
LuisFelipeUrena/lambdata-luife
cc46b1608f15511614387ee834263b8a5eb24d4e
[ "MIT" ]
null
null
null
hello.py
LuisFelipeUrena/lambdata-luife
cc46b1608f15511614387ee834263b8a5eb24d4e
[ "MIT" ]
null
null
null
print('Hola guey')
18
18
0.722222
3c37faf6a7dca027dc2e1ba19bf8ef6899dc466c
2,325
py
Python
python/CZITest/CZI_Test_Problem1.py
sanjaymeena/ProgrammingProblems
22904d7c210606464cf35a1623309da98e55475c
[ "Apache-2.0" ]
null
null
null
python/CZITest/CZI_Test_Problem1.py
sanjaymeena/ProgrammingProblems
22904d7c210606464cf35a1623309da98e55475c
[ "Apache-2.0" ]
null
null
null
python/CZITest/CZI_Test_Problem1.py
sanjaymeena/ProgrammingProblems
22904d7c210606464cf35a1623309da98e55475c
[ "Apache-2.0" ]
1
2021-09-26T14:59:26.000Z
2021-09-26T14:59:26.000Z
# coding: utf-8 # `` # Task 1: Identifying common words between documents # For this task, you need to generate a matrix, where each entry contains the number of unique # common tokens (words) between each pair of documents. The output should include no headers for # rows or columns. The matrix should be symmetric, a...
23.019802
102
0.67914
60f309d68869fbc7e660f8ca89f4fa7b8007caf3
376
py
Python
py/setup.py
svrotter/stabilizer
96732cbea115efaa2012b69fc23fa18f95a56298
[ "Apache-2.0", "MIT" ]
null
null
null
py/setup.py
svrotter/stabilizer
96732cbea115efaa2012b69fc23fa18f95a56298
[ "Apache-2.0", "MIT" ]
1
2022-01-20T09:20:43.000Z
2022-01-20T09:20:43.000Z
py/setup.py
svrotter/stabilizer
96732cbea115efaa2012b69fc23fa18f95a56298
[ "Apache-2.0", "MIT" ]
1
2022-01-19T14:29:54.000Z
2022-01-19T14:29:54.000Z
from setuptools import setup, find_packages setup(name="stabilizer", packages=find_packages(), version="0.1", description="Stabilizer Utilities", author="QUARTIQ GmbH", license="MIT", install_requires=[ "numpy", "miniconf-mqtt@git+https://github.com/quartiq/m...
28.923077
105
0.643617
9e2284b9c05ce537dad9057d6c30c9b6a3b9704a
20,881
py
Python
keras/engine/sequential.py
henrique/keras
b693bb84200d70aa736f2491ff83509fd1b1b6fb
[ "Apache-2.0" ]
null
null
null
keras/engine/sequential.py
henrique/keras
b693bb84200d70aa736f2491ff83509fd1b1b6fb
[ "Apache-2.0" ]
null
null
null
keras/engine/sequential.py
henrique/keras
b693bb84200d70aa736f2491ff83509fd1b1b6fb
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.624514
99
0.67741
173cf7292895c57965630146e0c6b40127317a99
9,943
py
Python
tests/zia/test_dlp.py
LetMeR00t/pyZscaler
6b8027a4f76fdc1f95321558251a91d954218d9f
[ "MIT" ]
16
2021-07-09T00:20:31.000Z
2022-02-17T19:29:26.000Z
tests/zia/test_dlp.py
jacobgarder/pyZscaler
77cf2ff9d64b49b932ec251a35041bfc0abf1223
[ "MIT" ]
62
2021-07-21T03:42:09.000Z
2022-03-18T09:08:20.000Z
tests/zia/test_dlp.py
jacobgarder/pyZscaler
77cf2ff9d64b49b932ec251a35041bfc0abf1223
[ "MIT" ]
8
2021-09-11T08:14:53.000Z
2022-03-25T20:14:41.000Z
import pytest import responses from box import Box, BoxList from responses import matchers @pytest.fixture(name="dlp_dicts") def dlp_dicts(): yield [ { "id": 1, "custom": True, "customPhraseMatchType": "MATCH_ALL_CUSTOM_PHRASE_PATTERN_DICTIONARY", "dictionar...
29.858859
98
0.501056
3236f9896370e2f2e24503d813cde669862389a7
1,319
py
Python
ooobuild/dyn/awt/x_window_peer.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/awt/x_window_peer.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/awt/x_window_peer.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
35.648649
75
0.761183
ae08c2524bec43e968f687e41ce97d1619b816d8
683
py
Python
detectron2/layers/rotated_boxes.py
Shun14/detectron2-ResNeSt
cda53a237199da3bbe7526d41c41b9d8df4c4814
[ "Apache-2.0" ]
344
2020-04-18T18:33:33.000Z
2020-12-04T08:34:30.000Z
detectron2/layers/rotated_boxes.py
ZhanqiZhang66/detectron2
be0d7283297f6314c8e683e0d1ff80b668aa9f4a
[ "Apache-2.0" ]
82
2020-01-29T23:48:32.000Z
2021-09-08T02:09:30.000Z
detectron2/layers/rotated_boxes.py
ZhanqiZhang66/detectron2
be0d7283297f6314c8e683e0d1ff80b668aa9f4a
[ "Apache-2.0" ]
66
2020-04-20T08:30:49.000Z
2020-12-06T12:55:12.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from __future__ import absolute_import, division, print_function, unicode_literals # import torch from detectron2 import _C def pairwise_iou_rotated(boxes1, boxes2): """ Return intersection-over-union (Jaccard index) of boxes. Both s...
28.458333
82
0.695461
c2f923fc596e9504a12af90809039e2dcf0f7a2d
3,366
py
Python
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Components/Lofted_Body.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Components/Lofted_Body.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Components/Lofted_Body.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
## @ingroup Components # Lofted_Body.py # # Created: # Modified: Dec 2016, T. MacDonald # May 2020, E. Botero # ---------------------------------------------------------------------- # Imports # ---------------------------------------------------------------------- from .Component import Compo...
20.155689
72
0.366013
b632a2227c3e59e6db0168ab3181ecd87d0a6b15
30,214
py
Python
ryzen/frequency.py
akhilguliani/daemon
5faae4fb303da563d661571d93d9c7a7e6a36fb0
[ "Apache-2.0" ]
null
null
null
ryzen/frequency.py
akhilguliani/daemon
5faae4fb303da563d661571d93d9c7a7e6a36fb0
[ "Apache-2.0" ]
1
2020-06-12T06:14:14.000Z
2020-06-12T06:14:14.000Z
ryzen/frequency.py
akhilguliani/daemon
5faae4fb303da563d661571d93d9c7a7e6a36fb0
[ "Apache-2.0" ]
1
2019-12-10T10:54:19.000Z
2019-12-10T10:54:19.000Z
import psutil import subprocess import time import math from collections import Counter from msr import update_pstate_freq, print_pstate_values, get_pstate_freqs TDP = 95000 def get_freq_bounds(cpu=0): bounds = [0, 0] freq_file = open("/sys/devices/system/cpu/cpu%d/cpufreq/scaling_max_freq" % cpu, 'r') b...
40.447122
170
0.615112
7184cd4e37e0ecfd3da303b30b6f6d3751ef1b50
8,656
py
Python
overtime/selectors.py
Atwinenickson/lendsuphumanresourcemanagement
b46df164d59a4e94300376d679e07bd9a60d6343
[ "MIT", "Unlicense" ]
36
2019-11-26T11:46:32.000Z
2022-02-17T13:18:18.000Z
overtime/selectors.py
Atwinenickson/lendsuphumanresourcemanagement
b46df164d59a4e94300376d679e07bd9a60d6343
[ "MIT", "Unlicense" ]
13
2020-02-14T09:30:16.000Z
2022-03-12T00:58:09.000Z
overtime/selectors.py
Atwinenickson/lendsuphumanresourcemanagement
b46df164d59a4e94300376d679e07bd9a60d6343
[ "MIT", "Unlicense" ]
16
2019-06-14T12:11:29.000Z
2022-02-14T15:16:07.000Z
from django.contrib.auth import get_user_model from employees.models import Employee from ems_auth.models import SolitonUser from organisation_details.selectors import get_team_instance, get_is_supervisor_in_team, \ get_is_hod_in_department from overtime.models import OvertimeApplication, OvertimePlan, OvertimeSch...
37.471861
114
0.748614
82885a54d5c5a4496fbb38b7582cd78a5821aed7
32,817
py
Python
Adelphi Academic Calendar/skill/skill_env/Lib/site-packages/pip/_vendor/urllib3/contrib/securetransport.py
EnriqueGambra/Amazon-Alexa-Skill
198ed51bef555eee006041fef0bcbf5c955142d5
[ "MIT" ]
null
null
null
Adelphi Academic Calendar/skill/skill_env/Lib/site-packages/pip/_vendor/urllib3/contrib/securetransport.py
EnriqueGambra/Amazon-Alexa-Skill
198ed51bef555eee006041fef0bcbf5c955142d5
[ "MIT" ]
null
null
null
Adelphi Academic Calendar/skill/skill_env/Lib/site-packages/pip/_vendor/urllib3/contrib/securetransport.py
EnriqueGambra/Amazon-Alexa-Skill
198ed51bef555eee006041fef0bcbf5c955142d5
[ "MIT" ]
1
2019-10-11T17:15:20.000Z
2019-10-11T17:15:20.000Z
""" SecureTranport support for urllib3 via ctypes. This makes platform-native TLS available to urllib3 users on macOS without the use of a compiler. This is an important feature because the Python Package Index is moving to become a TLSv1.2-or-higher server, and the default OpenSSL that ships with macOS is not capable...
38.4274
98
0.65786
0244f2e1efc78a4d139e46e94c21be3f76c324b2
108
py
Python
python-tutorial/003_number.py
alvachien/learning-notes
502abf4734234ed3fde0a34b3b54aef738b2a639
[ "MIT" ]
null
null
null
python-tutorial/003_number.py
alvachien/learning-notes
502abf4734234ed3fde0a34b3b54aef738b2a639
[ "MIT" ]
null
null
null
python-tutorial/003_number.py
alvachien/learning-notes
502abf4734234ed3fde0a34b3b54aef738b2a639
[ "MIT" ]
null
null
null
print("10 / 3 = ", 10 / 3) print("9 / 3 = ", 9 / 3) print("10 // 3 = ", 10 // 3) print("10 % 3 = ", 10 % 3)
21.6
28
0.388889
b5741536aed6f1c26a4b2dbba45c77e73f42a963
961
py
Python
models/comment.py
dude123studios/Connect
cd4669d025720b394080d8f99eedce02c31f835b
[ "CC0-1.0" ]
null
null
null
models/comment.py
dude123studios/Connect
cd4669d025720b394080d8f99eedce02c31f835b
[ "CC0-1.0" ]
null
null
null
models/comment.py
dude123studios/Connect
cd4669d025720b394080d8f99eedce02c31f835b
[ "CC0-1.0" ]
1
2021-03-16T19:42:22.000Z
2021-03-16T19:42:22.000Z
from extensions import db from sqlalchemy import asc, desc, or_ class Comment(db.Model): __tablename__ = 'comment' id = db.Column(db.Integer, primary_key = True) user_id = db.Column(db.Integer(), db.ForeignKey("user.id")) value = db.Column(db.String(1000), nullable=False) created_at = db.Column(db....
38.44
84
0.659729
27c527f7ac09589c09a07bca251a665d95f34eee
16,292
py
Python
infra/python/bootstrap_virtualenv.py
garyli1019/impala
ea0e1def6160d596082b01365fcbbb6e24afb21d
[ "Apache-2.0" ]
1,523
2015-01-01T03:42:24.000Z
2022-02-06T22:24:04.000Z
infra/python/bootstrap_virtualenv.py
garyli1019/impala
ea0e1def6160d596082b01365fcbbb6e24afb21d
[ "Apache-2.0" ]
10
2015-01-09T06:46:05.000Z
2022-03-29T21:57:57.000Z
infra/python/bootstrap_virtualenv.py
garyli1019/impala
ea0e1def6160d596082b01365fcbbb6e24afb21d
[ "Apache-2.0" ]
647
2015-01-02T04:01:40.000Z
2022-03-30T15:57:35.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
40.934673
93
0.72465
7a4d963a1bd5024ebd517cd690ec54567de953a1
776
py
Python
vendor-local/lib/python/easy_thumbnails/storage.py
Koenkk/popcorn_maker
0978b9f98dacd4e8eb753404b24eb584f410aa11
[ "BSD-3-Clause" ]
15
2015-03-23T02:55:20.000Z
2021-01-12T12:42:30.000Z
vendor-local/lib/python/easy_thumbnails/storage.py
Koenkk/popcorn_maker
0978b9f98dacd4e8eb753404b24eb584f410aa11
[ "BSD-3-Clause" ]
null
null
null
vendor-local/lib/python/easy_thumbnails/storage.py
Koenkk/popcorn_maker
0978b9f98dacd4e8eb753404b24eb584f410aa11
[ "BSD-3-Clause" ]
16
2015-02-18T21:43:31.000Z
2021-11-09T22:50:03.000Z
from django.core.files.storage import FileSystemStorage from easy_thumbnails.conf import settings class ThumbnailFileSystemStorage(FileSystemStorage): """ Standard file system storage. The default ``location`` and ``base_url`` are set to ``THUMBNAIL_MEDIA_ROOT`` and ``THUMBNAIL_MEDIA_URL``, falling ...
36.952381
79
0.701031
f588a580a345f0d8496758e6e5d4c5d9a89adb18
13,509
py
Python
pyefun/commonlyUtil.py
nobodxbodon/pyefun
a713e499ed0f1678c836a68320616423e6f59c1e
[ "Apache-2.0" ]
null
null
null
pyefun/commonlyUtil.py
nobodxbodon/pyefun
a713e499ed0f1678c836a68320616423e6f59c1e
[ "Apache-2.0" ]
null
null
null
pyefun/commonlyUtil.py
nobodxbodon/pyefun
a713e499ed0f1678c836a68320616423e6f59c1e
[ "Apache-2.0" ]
null
null
null
import random import ubelt as ub from collections import OrderedDict import operator from .dirkBase import * import hashlib def 取sha1(data, 哈希算法='sha1'): return ub.hash_data(data, hasher=哈希算法) def 取md5(内容, 编码="utf-8"): MD5 = hashlib.md5() MD5.update(内容.encode(encoding=编码)) return MD5.hexdigest() ...
21.649038
148
0.585536
ed1d80b9513c4abea76c324ec1c2536591b94f01
1,459
py
Python
tests/apollo/util/bft_test_exceptions.py
definitelyNotFBI/utt
1695e3a1f81848e19b042cdc4db9cf1d263c26a9
[ "Apache-2.0" ]
340
2018-08-27T16:30:45.000Z
2022-03-28T14:31:44.000Z
tests/apollo/util/bft_test_exceptions.py
definitelyNotFBI/utt
1695e3a1f81848e19b042cdc4db9cf1d263c26a9
[ "Apache-2.0" ]
706
2018-09-02T17:50:32.000Z
2022-03-31T13:03:15.000Z
tests/apollo/util/bft_test_exceptions.py
glevkovich/concord-bft
a1b7b57472f5375230428d16c613a760b33233fa
[ "Apache-2.0" ]
153
2018-08-29T05:37:25.000Z
2022-03-23T14:08:45.000Z
# Concord # # Copyright (c) 2019 VMware, Inc. All Rights Reserved. # # This product is licensed to you under the Apache 2.0 license (the "License"). # You may not use this product except in compliance with the Apache 2.0 License. # # This product may include a number of subcomponents with separate copyright # notices a...
25.155172
80
0.671693
4835d3815895ffa24153cc4bf97a29e24f0c86b5
542
py
Python
common/src/stack/command/stack/commands/remove/host/plugin_attr.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/command/stack/commands/remove/host/plugin_attr.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/command/stack/commands/remove/host/plugin_attr.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
null
null
null
# @copyright@ # @copyright@ # # @rocks@ # Copyright (c) 2000 - 2010 The Regents of the University of California # All rights reserved. Rocks(r) v5.4 www.rocksclusters.org # https://github.com/Teradata/stacki/blob/master/LICENSE-ROCKS.txt # @rocks@ import stack.commands class Plugin(stack.commands.Plugin): def pro...
20.846154
71
0.695572
60145e973f1d32843a6f9808b5c589c922112f76
12,592
py
Python
Lib/compiler/static/module_table.py
penguin-wwy/cinder
2699849639420e1ed77269a671c0d480efe0981d
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/compiler/static/module_table.py
penguin-wwy/cinder
2699849639420e1ed77269a671c0d480efe0981d
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/compiler/static/module_table.py
penguin-wwy/cinder
2699849639420e1ed77269a671c0d480efe0981d
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) from __future__ import annotations import ast from ast import ( AST, Attribute, AsyncFunctionDef, BinOp, Call, ClassDef, Constant, Expression, FunctionDef, Subscript, Index, Name, NameConsta...
35.271709
100
0.58021
ddabd0117887205c5158f35e5ffd1ec3fdf4d059
1,636
py
Python
django/contrib/gis/geos/prepared.py
dwightgunning/django
9e399e15fbf03507fa54e4bb20ed6f1b0d817b83
[ "PSF-2.0", "BSD-3-Clause" ]
1
2017-08-30T06:46:16.000Z
2017-08-30T06:46:16.000Z
django/contrib/gis/geos/prepared.py
dwightgunning/django
9e399e15fbf03507fa54e4bb20ed6f1b0d817b83
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/contrib/gis/geos/prepared.py
dwightgunning/django
9e399e15fbf03507fa54e4bb20ed6f1b0d817b83
[ "PSF-2.0", "BSD-3-Clause" ]
1
2018-07-23T12:13:04.000Z
2018-07-23T12:13:04.000Z
from .base import GEOSBase from .prototypes import prepared as capi class PreparedGeometry(GEOSBase): """ A geometry that is prepared for performing certain operations. At the moment this includes the contains covers, and intersects operations. """ ptr_type = capi.PREPGEOM_PTR def __init_...
30.867925
78
0.68154
0e86bedc07b9a94fa7691dca3b6eb5e023e5ff1d
1,092
py
Python
clients/kratos/python/test/test_ui_text.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/test/test_ui_text.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/test/test_ui_text.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
""" Ory Kratos API Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the admini...
29.513514
446
0.721612
d396c6adb80c95b3746d3af6c2c2dfdcebadf916
3,171
py
Python
airflow/contrib/sensors/datadog_sensor.py
InigoSJ/airflow
8b97a387dc30d8c88390d500ec99333798c20f1c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
3
2019-08-17T15:16:11.000Z
2019-11-18T06:42:15.000Z
airflow/contrib/sensors/datadog_sensor.py
InigoSJ/airflow
8b97a387dc30d8c88390d500ec99333798c20f1c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
7
2019-03-27T07:58:14.000Z
2020-02-12T17:42:33.000Z
airflow/contrib/sensors/datadog_sensor.py
upjohnc/airflow-upjohn-k8s
caadbc1618d73e054de99138b0892cea3a9327c4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
5
2017-06-19T19:55:47.000Z
2020-10-10T00:49:20.000Z
# -*- coding: utf-8 -*- # # 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 #...
37.75
88
0.68748
bd2d7f9e4b58c361ebf3cb2953eecafc8d964e15
2,119
py
Python
Lib/test/test_seq_jy.py
clach04/bb_import_jython
4529a0f578186a1c33c476300294ab42658eaf7c
[ "CNRI-Jython" ]
null
null
null
Lib/test/test_seq_jy.py
clach04/bb_import_jython
4529a0f578186a1c33c476300294ab42658eaf7c
[ "CNRI-Jython" ]
null
null
null
Lib/test/test_seq_jy.py
clach04/bb_import_jython
4529a0f578186a1c33c476300294ab42658eaf7c
[ "CNRI-Jython" ]
null
null
null
"""Additional seq_tests Made for Jython. """ import unittest from collections import deque from test import test_support class SeqTestCase(unittest.TestCase): types2test = list, tuple, deque def test_seq_item_equality(self): eq_called = [] class Foo(object): def __eq__(self, othe...
30.271429
72
0.566777
6560166333a123714272dcf20124f0cb7d17f243
766
py
Python
utils/Exceptions.py
salbrec/seqQscorer
311715bf6dedd19ffd50538beb8b30472cad9e5c
[ "MIT" ]
17
2019-09-16T10:31:23.000Z
2022-01-09T15:35:28.000Z
utils/Exceptions.py
salbrec/seqQscorer
311715bf6dedd19ffd50538beb8b30472cad9e5c
[ "MIT" ]
3
2021-03-06T11:54:25.000Z
2021-07-15T11:45:40.000Z
utils/Exceptions.py
salbrec/seqQscorer
311715bf6dedd19ffd50538beb8b30472cad9e5c
[ "MIT" ]
5
2020-06-16T09:50:49.000Z
2021-11-04T08:29:44.000Z
"""Software specific Exceptions Used for exceptions that can occur when using seqQscorer. date: 2019-05-12 author: Steffen Albrecht """ class WrongFeatureInputException(Exception): def __init__(self, value): self.value = value def __str__(self): return repr(self.value) class WrongSettingExc...
22.529412
57
0.685379
860499f72d4879ba52afbf4dc22ce6b4c239681b
31,033
py
Python
cadquery/occ_impl/geom.py
just-georgeb/cadquery
25cb063d6176f16d20f2e071fccf0c64e4dc2b2e
[ "Apache-2.0" ]
1,423
2018-10-28T18:01:04.000Z
2022-03-30T20:22:28.000Z
cadquery/occ_impl/geom.py
just-georgeb/cadquery
25cb063d6176f16d20f2e071fccf0c64e4dc2b2e
[ "Apache-2.0" ]
1,017
2018-11-18T20:50:34.000Z
2022-03-31T22:56:39.000Z
cadquery/occ_impl/geom.py
just-georgeb/cadquery
25cb063d6176f16d20f2e071fccf0c64e4dc2b2e
[ "Apache-2.0" ]
175
2018-11-18T06:07:54.000Z
2022-03-31T16:21:18.000Z
import math from typing import overload, Sequence, Union, Tuple, Type, Optional from OCP.gp import ( gp_Vec, gp_Ax1, gp_Ax3, gp_Pnt, gp_Dir, gp_Pln, gp_Trsf, gp_GTrsf, gp_XYZ, gp_EulerSequence, gp, ) from OCP.Bnd import Bnd_Box from OCP.BRepBndLib import BRepBndLib from OCP...
30.634748
107
0.562691
7246a173d7efdc4f0e83ccc82dcfe0f2cfae8ebe
5,479
py
Python
FoE Bot.py
Iapetus-11/Forge-of-Empires-bot
7a78474584567468626558c3e046d44e5b677eae
[ "MIT" ]
3
2019-05-17T21:37:19.000Z
2021-01-27T12:25:52.000Z
FoE Bot.py
Iapetus-11/Forge-of-Empires-bot
7a78474584567468626558c3e046d44e5b677eae
[ "MIT" ]
null
null
null
FoE Bot.py
Iapetus-11/Forge-of-Empires-bot
7a78474584567468626558c3e046d44e5b677eae
[ "MIT" ]
2
2020-06-01T05:37:56.000Z
2021-08-31T18:53:59.000Z
import pyautogui from time import sleep from random import randint import threading #opencv-python is required! (pip install opencv-python). #functions to be run, you can change these! collectGold = True #collect gold from buildings. collectSupplies = True #collect supplies from buildings. restartIdleBuilding...
31.854651
122
0.612703
0238a2d094125cc04a7e28be778887deecccc8a2
3,535
py
Python
src/peter_sslers/web/lib/handler.py
jvanasco/pyramid_letsencrypt_admin
6db37d30ef8028ff978bf6083cdf978fc88a4782
[ "MIT" ]
1
2016-03-31T22:19:19.000Z
2016-03-31T22:19:19.000Z
src/peter_sslers/web/lib/handler.py
jvanasco/pyramid_letsencrypt_admin
6db37d30ef8028ff978bf6083cdf978fc88a4782
[ "MIT" ]
null
null
null
src/peter_sslers/web/lib/handler.py
jvanasco/pyramid_letsencrypt_admin
6db37d30ef8028ff978bf6083cdf978fc88a4782
[ "MIT" ]
null
null
null
# pypi import pypages from pyramid.httpexceptions import HTTPFound # localapp from ...lib import db from ...lib.errors import InvalidRequest # ============================================================================== # misc config options items_per_page = 50 def json_pagination(items_count, pager): """ ...
32.136364
121
0.579915
1d0c8fb3044ab780e8c9321f5d87090cd3098cea
419
py
Python
Ad-Hoc/1574.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
Ad-Hoc/1574.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
Ad-Hoc/1574.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
#Sinceramente nao sei o que esta errado... for k in range(int(input())): p = 0 n = int(input()) inst = [0 for k in range(n)] for w in range(n): I = input() if I == "LEFT": p-=1 inst[w] = -1 elif I == "RIGHT": p+=1 inst[w] = 1 ...
22.052632
42
0.396181
3f9585534d08934c03cf3254b135072ebf8f6488
3,402
py
Python
models/build.py
yhlleo/VTs-Drloc
b69adb699d85c0fd789c64fc4950272c02aa2ae0
[ "MIT" ]
71
2021-11-19T11:51:00.000Z
2022-03-29T06:17:02.000Z
models/build.py
yhlleo/VTs-Drloc
b69adb699d85c0fd789c64fc4950272c02aa2ae0
[ "MIT" ]
7
2021-11-30T02:32:46.000Z
2022-02-24T15:31:19.000Z
models/build.py
yhlleo/VTs-Drloc
b69adb699d85c0fd789c64fc4950272c02aa2ae0
[ "MIT" ]
7
2021-11-28T05:09:04.000Z
2022-02-07T07:35:03.000Z
# -------------------------------------------------------- # Swin Transformer # Copyright (c) 2021 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ze Liu # -------------------------------------------------------- from .swin import SwinTransformer from .cvt import CvT from .t2t import ...
36.978261
64
0.601411
bc73570a26943f2d5d4b2aff1e99f9cc3776ce28
2,494
py
Python
Round745/B_Diameter_of_Graph.py
tqa236/codeforces
81ad7bdb7786455f83d48d59a8884f62ded66caf
[ "MIT" ]
null
null
null
Round745/B_Diameter_of_Graph.py
tqa236/codeforces
81ad7bdb7786455f83d48d59a8884f62ded66caf
[ "MIT" ]
null
null
null
Round745/B_Diameter_of_Graph.py
tqa236/codeforces
81ad7bdb7786455f83d48d59a8884f62ded66caf
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys from io import BytesIO, IOBase import math from collections import Counter def func(n, m, k): if m > n * (n - 1) // 2: return "NO" if k <= 1: return "NO" if k == 2: if n == 1 and m == 0: return "YES" return "NO" if ...
27.108696
81
0.54571
11b0557d9eb8bbbd3d933caeeea88b071fcab8a8
11,933
py
Python
src/sagemaker/deserializers.py
anirudh2290/sagemaker-python-sdk
5b15f3006efe90fbba43da7841ff5f0ad790a78e
[ "Apache-2.0" ]
null
null
null
src/sagemaker/deserializers.py
anirudh2290/sagemaker-python-sdk
5b15f3006efe90fbba43da7841ff5f0ad790a78e
[ "Apache-2.0" ]
1
2019-04-23T19:32:17.000Z
2019-04-23T19:32:17.000Z
src/sagemaker/deserializers.py
anirudh2290/sagemaker-python-sdk
5b15f3006efe90fbba43da7841ff5f0ad790a78e
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-2020 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://aws.amazon.com/apache2.0/ # # or in the "license" fil...
36.604294
99
0.648957
c831a8d0b74e99855c85b735037b0fe584856f1b
37,917
py
Python
azure/mgmt/network/v2017_06_01/operations/network_interfaces_operations.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
azure/mgmt/network/v2017_06_01/operations/network_interfaces_operations.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/network/v2017_06_01/operations/network_interfaces_operations.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
46.753391
242
0.667326
a240b024a352a4aa72537dbee8b1bc60599a36c6
466
py
Python
env/lib/python3.8/site-packages/plotly/validators/histogram/error_y/_visible.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/histogram/error_y/_visible.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/histogram/error_y/_visible.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, plotly_name="visible", parent_name="histogram.error_y", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_nam...
31.066667
78
0.639485
69cc323696969cf9fcdd8535a0c0a63de57a7981
125
py
Python
app/engineer_django/main/gen.py
ministre/engineer
c23361527307f1a031a8d1ed658344b0ae0e8b89
[ "MIT" ]
null
null
null
app/engineer_django/main/gen.py
ministre/engineer
c23361527307f1a031a8d1ed658344b0ae0e8b89
[ "MIT" ]
null
null
null
app/engineer_django/main/gen.py
ministre/engineer
c23361527307f1a031a8d1ed658344b0ae0e8b89
[ "MIT" ]
null
null
null
# there should be a proprietary function to generate password def dynamic_pass(manufacturer: str, sn: str): return 'foo'
31.25
61
0.76
a764d7f5fc62253229cf17b7bdaa4e391f2e9af3
92,625
py
Python
sdk/python/pulumi_azure_nextgen/servicefabric/v20200301/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/servicefabric/v20200301/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/servicefabric/v20200301/outputs.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 from...
49.585118
440
0.704842
b2a880eae81a33ed5a79eeed4633ddfe6483ed58
2,204
py
Python
SmallPackage/SmallIO.py
MikiEEE/SmallOS
5eb78da1a132eafccb0e18511de999a98ecad3f7
[ "Unlicense" ]
null
null
null
SmallPackage/SmallIO.py
MikiEEE/SmallOS
5eb78da1a132eafccb0e18511de999a98ecad3f7
[ "Unlicense" ]
1
2020-04-29T02:08:18.000Z
2020-05-02T03:50:45.000Z
SmallPackage/SmallIO.py
MikiEEE/SmallOS
5eb78da1a132eafccb0e18511de999a98ecad3f7
[ "Unlicense" ]
null
null
null
#Kernals will be swappable depending on what hardware you are running on. class SmallIO(): ''' @class smallIO() - controls print Input-Output ***NOTE*** This will probably be moved into the kernal class as a variable. And will most likley be piped into the different processes on a terminal ...
31.485714
92
0.588475
eed2ac3db96045b5a8161358b99b3929431899c8
56,569
py
Python
mathics/builtin/arithmetic.py
rjalif199/Mathics
be0f08be246284489fab84fcd507f4bb3a1ba098
[ "Apache-2.0" ]
null
null
null
mathics/builtin/arithmetic.py
rjalif199/Mathics
be0f08be246284489fab84fcd507f4bb3a1ba098
[ "Apache-2.0" ]
null
null
null
mathics/builtin/arithmetic.py
rjalif199/Mathics
be0f08be246284489fab84fcd507f4bb3a1ba098
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # cython: language_level=3 """ Mathematical Functions Basic arithmetic functions, including complex number arithmetic. """ import sympy import mpmath import math from mathics.builtin.base import ( Builtin, Predefined, BinaryOperator, PrefixOperator, ...
25.689827
123
0.504605
92f421205a27a888e0371c2873d9d8c3a6b21a6f
1,649
py
Python
hcipy/optics/gaussian_beam.py
dskleingeld/hcipy
85cacfb7a8058506afb288e3acdf3b6059ba2b50
[ "MIT" ]
1
2020-07-20T23:25:17.000Z
2020-07-20T23:25:17.000Z
hcipy/optics/gaussian_beam.py
dskleingeld/hcipy
85cacfb7a8058506afb288e3acdf3b6059ba2b50
[ "MIT" ]
null
null
null
hcipy/optics/gaussian_beam.py
dskleingeld/hcipy
85cacfb7a8058506afb288e3acdf3b6059ba2b50
[ "MIT" ]
null
null
null
import numpy as np class GaussianBeam(object): def __init__(self, w0, z, wavelength): self.w0 = w0 self.z = z self.wavelength = wavelength @property def beam_waist(self): return self.w0 @beam_waist.setter def beam_waist(self, w0): self.w0 = w0 @property def zR(self): return np.pi * self.w0**2 /...
17.542553
78
0.628866
9b02f1935838e8d7bd350a30bb0c340594f9ecbb
3,630
py
Python
201501214_Atman/Assignment 5/SGD_MF.py
skywalker212/fitopsY
e9fa10253beec9d7fb2f2a47ee741ad1157ddfc5
[ "MIT" ]
1
2020-10-09T04:09:18.000Z
2020-10-09T04:09:18.000Z
201501214_Atman/Assignment 5/SGD_MF.py
skywalker212/fitopsY
e9fa10253beec9d7fb2f2a47ee741ad1157ddfc5
[ "MIT" ]
null
null
null
201501214_Atman/Assignment 5/SGD_MF.py
skywalker212/fitopsY
e9fa10253beec9d7fb2f2a47ee741ad1157ddfc5
[ "MIT" ]
null
null
null
import numpy as np import surprise # run 'pip install scikit-surprise' to install surprise from surprise import BaselineOnly from surprise import Dataset from surprise import Reader from surprise.model_selection import cross_validate import time from guppy import hpy class MatrixFacto(surprise.AlgoBase): '''A bas...
39.89011
109
0.603857
fd1a0cfd70569e667d7ce8274542c0dc198424b0
47
py
Python
neutpy/crosssections/__init__.py
gt-frc/neutpy
4ae03fba5bdf34bd83ac0d88c5d6e53f3c708785
[ "MIT" ]
null
null
null
neutpy/crosssections/__init__.py
gt-frc/neutpy
4ae03fba5bdf34bd83ac0d88c5d6e53f3c708785
[ "MIT" ]
10
2020-08-05T21:29:02.000Z
2020-10-17T02:08:11.000Z
neutpy/crosssections/__init__.py
gt-frc/neutpy
4ae03fba5bdf34bd83ac0d88c5d6e53f3c708785
[ "MIT" ]
1
2021-12-03T11:46:15.000Z
2021-12-03T11:46:15.000Z
#!/usr/bin/python from .crosssections import *
15.666667
28
0.744681
b8afddab5c10ccdbb488449cecfaef5bbbc4a546
1,927
py
Python
web/result.py
swxs/home
652dab7c15ae9c2221c99405ce827be6ccaaccbb
[ "Apache-2.0" ]
1
2021-09-23T10:28:34.000Z
2021-09-23T10:28:34.000Z
web/result.py
swxs/home
652dab7c15ae9c2221c99405ce827be6ccaaccbb
[ "Apache-2.0" ]
null
null
null
web/result.py
swxs/home
652dab7c15ae9c2221c99405ce827be6ccaaccbb
[ "Apache-2.0" ]
1
2021-09-23T10:28:36.000Z
2021-09-23T10:28:36.000Z
# -*- coding: utf-8 -*- # @File : result.py # @AUTH : swxs # @Time : 2019/9/20 15:06 import json import datetime from bson import ObjectId def encoder(obj): if isinstance(obj, (datetime.datetime,)): return obj.strftime('%Y-%m-%d %H:%M:%S') elif isinstance(obj, (datetime.date,)): ret...
21.651685
68
0.586404
e19c63a31b1770d2cf9406b9e4a0b8937e55d1df
77,076
py
Python
v1alpha1/swagger_client/apis/grafeas_api.py
dinagraves/client-python
c4f77332b402e61a1e1700fa0c746183008d435c
[ "Apache-2.0" ]
10
2017-11-19T20:21:16.000Z
2021-04-23T06:59:33.000Z
v1alpha1/swagger_client/apis/grafeas_api.py
dinagraves/client-python
c4f77332b402e61a1e1700fa0c746183008d435c
[ "Apache-2.0" ]
1
2021-06-01T21:55:48.000Z
2021-06-01T21:55:48.000Z
v1alpha1/swagger_client/apis/grafeas_api.py
dinagraves/client-python
c4f77332b402e61a1e1700fa0c746183008d435c
[ "Apache-2.0" ]
1
2019-08-11T16:51:36.000Z
2019-08-11T16:51:36.000Z
# coding: utf-8 """ Grafeas API An API to insert and retrieve annotations on cloud artifacts. OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in co...
43.917949
163
0.583606
4a8c330cb7574bcb9bc60585a13c8c147fc95a57
53
py
Python
mini-scripts/Python_-_Slicing_Strings.txt.py
Web-Dev-Collaborative/PYTHON_PRAC
856f902fb43dcccae168d34ee6aacc02427a7ac6
[ "MIT" ]
5
2021-06-02T23:44:25.000Z
2021-12-27T16:21:57.000Z
mini-scripts/Python_-_Slicing_Strings.txt.py
Web-Dev-Collaborative/PYTHON_PRAC
856f902fb43dcccae168d34ee6aacc02427a7ac6
[ "MIT" ]
22
2021-05-31T01:33:25.000Z
2021-10-18T18:32:39.000Z
mini-scripts/Python_-_Slicing_Strings.txt.py
Web-Dev-Collaborative/PYTHON_PRAC
856f902fb43dcccae168d34ee6aacc02427a7ac6
[ "MIT" ]
3
2021-06-19T03:37:47.000Z
2021-08-31T00:49:51.000Z
b = "Hello, World!" print(b[2:5]) # Author: Bryan G
13.25
19
0.584906
fc59c0421e075b8c9bb93e39eec483d3ab48d926
529
py
Python
Lab3/PY05-readfilefinal.py
JulianConneely/dataRepresentation
2ae9ea341a9824954c096f4b1bac07cf32748c7c
[ "Apache-2.0" ]
1
2019-12-17T17:03:34.000Z
2019-12-17T17:03:34.000Z
Lab3/PY05-readfilefinal.py
JulianConneely/dataRepresentation
2ae9ea341a9824954c096f4b1bac07cf32748c7c
[ "Apache-2.0" ]
null
null
null
Lab3/PY05-readfilefinal.py
JulianConneely/dataRepresentation
2ae9ea341a9824954c096f4b1bac07cf32748c7c
[ "Apache-2.0" ]
null
null
null
from bs4 import BeautifulSoup import csv with open("../carviewer.html") as fp: soup = BeautifulSoup(fp, 'html.parser') #print (soup.tr) employee_file = open('week02data.csv', mode='w') employee_writer = csv.writer(employee_file, delimiter=',', quotechar ='"',quoting = csv.QUOTE_MINIMAL) rows = soup.f...
26.45
103
0.657845
de8e9399157543ac42329cea87dee4b87cd3f4d5
4,595
py
Python
Score Prediction/test_impact.py
EagleW/ReviewRobot
823bba4db99cd8c0f3b6d6d38f9f19cae1dd6778
[ "MIT" ]
19
2020-10-21T10:22:28.000Z
2022-03-22T11:48:53.000Z
Score Prediction/test_impact.py
EagleW/ReviewRobot
823bba4db99cd8c0f3b6d6d38f9f19cae1dd6778
[ "MIT" ]
3
2020-12-17T17:38:35.000Z
2020-12-17T17:46:31.000Z
Score Prediction/test_impact.py
EagleW/ReviewRobot
823bba4db99cd8c0f3b6d6d38f9f19cae1dd6778
[ "MIT" ]
4
2020-12-18T11:17:02.000Z
2021-11-11T05:08:58.000Z
import os import sys import json import time import torch import pickle import argparse import numpy as np from torch import nn from loader.logger import Tee from collections import OrderedDict from model.RNN_torch import Impact from sklearn.metrics import accuracy_score, mean_squared_error from loader.utils import cre...
29.645161
110
0.722742
f2d7698cbf5afccd3de1aa17878110f73b6a88fd
671
py
Python
GETGMT.py
JupyterJones/Covid-19_Research_Notebooks
dda72440b67ecb38002918563dd64e445a7e1114
[ "CC0-1.0" ]
1
2020-06-18T00:33:24.000Z
2020-06-18T00:33:24.000Z
GETGMT.py
JupyterJones/COVID-19-Jupyter-Notebooks
8b65ade0d4b2b69bb50ab377655497909e3d4a05
[ "MIT" ]
null
null
null
GETGMT.py
JupyterJones/COVID-19-Jupyter-Notebooks
8b65ade0d4b2b69bb50ab377655497909e3d4a05
[ "MIT" ]
null
null
null
""" # USAGE: # for yesterday's GMT from GETGMT import * print(GETYGMT()) >>> 05-14-2020 #todays GMT from GETGMT import * print(GETGMT()) >>> 05-15-2020 """ from datetime import datetime from datetime import date, timedelta def GETYGMT(): """ # USAGE: # Yesterdays GMT from GETGMT import * print(GE...
19.171429
53
0.606557
73d7032b9739dc6dbefc280703343257e4db24ec
35
py
Python
CodeWars/7 Kyu/Thinking & Testing- A and B.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
CodeWars/7 Kyu/Thinking & Testing- A and B.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
CodeWars/7 Kyu/Thinking & Testing- A and B.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
def testit (a, b): return a | b
17.5
18
0.542857
e1d5ec87e1530a7c76f806ee97ccd3c35d6e8cf7
2,262
py
Python
2020/day12.py
tangarts/advent-of-code
5879fbec1a5377d1288666a357b029f6345d4a5d
[ "MIT" ]
null
null
null
2020/day12.py
tangarts/advent-of-code
5879fbec1a5377d1288666a357b029f6345d4a5d
[ "MIT" ]
null
null
null
2020/day12.py
tangarts/advent-of-code
5879fbec1a5377d1288666a357b029f6345d4a5d
[ "MIT" ]
null
null
null
#%% from typing import List, Tuple from advent_of_code.core import mapt, parse_input from advent_of_code.point import manhattan_distance raw = """F10 N3 F7 R90 F11""" test = parse_input(raw, parser=lambda l: (l[0], int(l[1:]))) day12 = parse_input("data/input12.txt", parser=lambda l: (l[0], int(l[1:])), test=False) ...
27.253012
88
0.579576
7af1e7654e58d3a9211958108877766a94caff0b
41,217
py
Python
spotipy/client.py
austinkeeley/spotipy
aa580076c5f2796ad552a8d693c60ffa62493b43
[ "MIT" ]
1
2020-06-06T04:51:15.000Z
2020-06-06T04:51:15.000Z
spotipy/client.py
austinkeeley/spotipy
aa580076c5f2796ad552a8d693c60ffa62493b43
[ "MIT" ]
null
null
null
spotipy/client.py
austinkeeley/spotipy
aa580076c5f2796ad552a8d693c60ffa62493b43
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import print_function import sys import requests import json import time import six """ A simple and thin Python library for the Spotify Web API """ class SpotifyException(Exception): def __init__(self, http_status, code, msg, headers=None): self.http_status = http_stat...
38.163889
154
0.55858
9f8dd53dd58724bf726117d9b0381e6816c71073
4,039
py
Python
load.py
yqnhjy/Image-Recognition-Of-Birds
eaf0a125274e572cc5a12e8a2264af80e70a1a5d
[ "Apache-2.0" ]
null
null
null
load.py
yqnhjy/Image-Recognition-Of-Birds
eaf0a125274e572cc5a12e8a2264af80e70a1a5d
[ "Apache-2.0" ]
null
null
null
load.py
yqnhjy/Image-Recognition-Of-Birds
eaf0a125274e572cc5a12e8a2264af80e70a1a5d
[ "Apache-2.0" ]
null
null
null
# -*- coding = utf-8 -*- # @Time : 2022/4/29 0029 11:58 # @Author : 小白 # @File : load.py # @Software : PyCharm import numpy as np # 读取数据 import scipy.misc import os from PIL import Image from torchvision import transforms import torch class CUB(): def __init__(self, root, is_train=True, data_len=None...
35.429825
116
0.584798
3f2fa0b0da663deb5fd1b35eaa22a6766754995a
3,909
py
Python
src/table_schema.py
NoSchoolViolence/Content_Logger
0b943f43fe13717ec4f835797afb73936a77a409
[ "MIT" ]
null
null
null
src/table_schema.py
NoSchoolViolence/Content_Logger
0b943f43fe13717ec4f835797afb73936a77a409
[ "MIT" ]
null
null
null
src/table_schema.py
NoSchoolViolence/Content_Logger
0b943f43fe13717ec4f835797afb73936a77a409
[ "MIT" ]
1
2021-03-12T19:58:01.000Z
2021-03-12T19:58:01.000Z
""" Purpose: This file sets the SQL table schema for the pubmed downloader. It inserts the data into a sql database for easy querying, extraction and to prevent redundancies in data. Author: Natalie Chun Created: 12 January 2019 """ def get_pubmed_table_schema(): """Table schema for pubmed will supercede the...
30.539063
95
0.623177
e7a7ccf4b155e749ae7c3adb0351762992aad040
2,911
py
Python
timew_to_csv.py
mpoquet/taskwarrior-scripts
e1eb007c5fb9086eb15803c04518e66c7dfaba6c
[ "MIT" ]
2
2019-04-22T20:27:43.000Z
2021-05-25T08:14:58.000Z
timew_to_csv.py
mpoquet/taskwarrior-scripts
e1eb007c5fb9086eb15803c04518e66c7dfaba6c
[ "MIT" ]
1
2019-04-15T07:51:46.000Z
2019-04-15T15:49:05.000Z
timew_to_csv.py
mpoquet/taskwarrior-scripts
e1eb007c5fb9086eb15803c04518e66c7dfaba6c
[ "MIT" ]
1
2019-04-22T20:27:48.000Z
2019-04-22T20:27:48.000Z
#!/usr/bin/env nix-shell #!nix-shell -i python -A pyEnv '''Converts a timew JSON export to a convenient CSV to analyze and visualize. JSON entries with multiple tags are split into several CSV entries.''' import math import subprocess import sys import pandas as pd def is_entry_hooked_with_semantic_tags(tags): ''...
39.876712
152
0.665407
47dece53e710104776656ee77dcb44705afa5c6d
1,189
py
Python
time_handler.py
KermityOwen/CovidTracker
ef5bc2329cb8c4ef23dcd25d4b94f1ee4e2deeb4
[ "MIT" ]
null
null
null
time_handler.py
KermityOwen/CovidTracker
ef5bc2329cb8c4ef23dcd25d4b94f1ee4e2deeb4
[ "MIT" ]
null
null
null
time_handler.py
KermityOwen/CovidTracker
ef5bc2329cb8c4ef23dcd25d4b94f1ee4e2deeb4
[ "MIT" ]
null
null
null
""" Module contains functions for handling time format conversions and fetching current time in GMT UTC+0. """ import logging import time def hhmmss_to_seconds(hhmmss): """ Translates HHMMSS or HHMM formatted time into seconds. Args: hhmmss (str): String in HHMMSS or HHMM format Returns: ...
26.422222
105
0.644239
0d5c70f36c5ef6ac5e2ebedeaa67d4a1786f17df
1,066
py
Python
pod042_bot/migrations/versions/c58fb194c34b_.py
saber-nyan/pod042-bot_new
b8ab509b85ba88cba61f5c3db8c0235f3c073802
[ "WTFPL" ]
1
2019-06-14T11:07:25.000Z
2019-06-14T11:07:25.000Z
pod042_bot/migrations/versions/c58fb194c34b_.py
saber-nyan/pod042-bot_new
b8ab509b85ba88cba61f5c3db8c0235f3c073802
[ "WTFPL" ]
null
null
null
pod042_bot/migrations/versions/c58fb194c34b_.py
saber-nyan/pod042-bot_new
b8ab509b85ba88cba61f5c3db8c0235f3c073802
[ "WTFPL" ]
null
null
null
"""empty message Revision ID: c58fb194c34b Revises: 9c628daec881 Create Date: 2020-04-29 18:11:17.154517 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = 'c58fb194c34b' down_revision = '9c628daec881' branch_labels = None depends_on = None def upgrade(): # #...
29.611111
94
0.617261
f0f5e786fd3e6a3515256c1966307e476fa7fcb0
1,423
py
Python
test/option--lw.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
1,403
2017-11-23T14:24:01.000Z
2022-03-30T20:59:39.000Z
test/option--lw.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
3,708
2017-11-27T13:47:12.000Z
2022-03-29T17:21:17.000Z
test/option--lw.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
281
2017-12-01T23:48:38.000Z
2022-03-31T15:25:44.000Z
#!/usr/bin/env python # # __COPYRIGHT__ # # 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, ...
33.880952
73
0.767393
d8bd6e71928f962120717ff75902dfd40a059ac1
23,807
py
Python
pysnmp/ELTEX-MES-BRIDGE-STP-MULTIPROCESS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/ELTEX-MES-BRIDGE-STP-MULTIPROCESS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/ELTEX-MES-BRIDGE-STP-MULTIPROCESS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ELTEX-MES-BRIDGE-STP-MULTIPROCESS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ELTEX-MES-BRIDGE-STP-MULTIPROCESS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:46:28 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 #...
160.858108
5,111
0.804427