hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7958e1d2d15748bf820b404326bfa0ad8981a466
783
py
Python
app/chatcmd.py
yumimint/PSO2LogReader
b065ca2643776962d22cb10329443fbea5884ca4
[ "MIT" ]
null
null
null
app/chatcmd.py
yumimint/PSO2LogReader
b065ca2643776962d22cb10329443fbea5884ca4
[ "MIT" ]
null
null
null
app/chatcmd.py
yumimint/PSO2LogReader
b065ca2643776962d22cb10329443fbea5884ca4
[ "MIT" ]
null
null
null
import re cmd_rex = [ 'toge|moya|[apt]', '(mn|vo|symbol|' 'spage|swp|' 'mainpalette|mpal|' 'subpalette|spal|' 'myset|ms|' 'myfashion|mf)' r'\d+', r'(face\d|fc\d|ce(all)?)' '( +(on|off))?', r'uioff( +\d+)?', r'ci\d+( +\d+)?( +t[1-5])?( +\d+)?', '(skillring|sr|' 'costume|cs|' 'camouflage|cmf)...
27
78
0.498084
7958e2e481fe76ab5e7f2d3b737b64c32a6f7b11
2,682
py
Python
tplbuild/output.py
msg555/tplbuild
1517fa97b17df4883f6885a7fb3ccfe017576e53
[ "BSD-3-Clause" ]
null
null
null
tplbuild/output.py
msg555/tplbuild
1517fa97b17df4883f6885a7fb3ccfe017576e53
[ "BSD-3-Clause" ]
null
null
null
tplbuild/output.py
msg555/tplbuild
1517fa97b17df4883f6885a7fb3ccfe017576e53
[ "BSD-3-Clause" ]
null
null
null
import random import sys from typing import List, Optional class OutputStream: """ Class that manages writing to output for a single sub-process. """ def __init__(self, title: str, color: Optional[bytes] = None) -> None: self.title = title self.prefix = b"" if title: ...
32.707317
82
0.598061
7958e36e43f04d735db6d6e2fd678f506ae9f526
6,330
py
Python
openpeerpower/components/zha/entity.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
null
null
null
openpeerpower/components/zha/entity.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
null
null
null
openpeerpower/components/zha/entity.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
1
2019-04-24T14:10:08.000Z
2019-04-24T14:10:08.000Z
"""Entity for Zigbee Home Automation.""" import asyncio import logging import time from openpeerpower.core import callback from openpeerpower.helpers import entity from openpeerpower.helpers.device_registry import CONNECTION_ZIGBEE from openpeerpower.helpers.dispatcher import async_dispatcher_connect from openpeerpow...
32.628866
88
0.631438
7958e38463d45d7bad039d45a390e42785908c0d
3,718
py
Python
src/fuse_utils.py
amosproj/amos2021ss03-synthetic-file-system
b274556808c07eeef34f37d4449824fa9f020a16
[ "MIT" ]
5
2021-04-14T14:52:41.000Z
2021-06-11T09:22:21.000Z
src/fuse_utils.py
amosproj/amos2021ss03-synthetic-file-system
b274556808c07eeef34f37d4449824fa9f020a16
[ "MIT" ]
60
2021-04-14T08:43:17.000Z
2021-07-14T13:19:30.000Z
src/fuse_utils.py
amosproj/amos2021ss03-synthetic-file-system
b274556808c07eeef34f37d4449824fa9f020a16
[ "MIT" ]
3
2021-04-20T19:11:01.000Z
2021-05-19T09:44:53.000Z
# 3rd party imports from anytree import Node, Resolver from typing import Dict, List def build_tree_from_files(files: List[Dict]) -> Node: """Builds a directory tree out of the results from the metadata-hub query. The tree is build upon a "Root" node which is returned at the end. Each dict contains the en...
36.45098
99
0.647122
7958e3abaaeb6ae06b9bb1714ee48ec1921a1fd6
13,865
py
Python
src/OFS/tests/testFileAndImage.py
hitotsunorb1/Zope
6beac6385e1a302903889561385013874ef94cb1
[ "ZPL-2.1" ]
null
null
null
src/OFS/tests/testFileAndImage.py
hitotsunorb1/Zope
6beac6385e1a302903889561385013874ef94cb1
[ "ZPL-2.1" ]
null
null
null
src/OFS/tests/testFileAndImage.py
hitotsunorb1/Zope
6beac6385e1a302903889561385013874ef94cb1
[ "ZPL-2.1" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import time import unittest from io import BytesIO import six from six import PY3 import OFS.Image import Testing.testbrowser import Testing.ZopeTestCase import transaction import Zope2 from Acquisition import aq_base from App.Common import rfc1123_date from OFS.Applicatio...
35.190355
79
0.644428
7958e3b59f5ad86fd0baef4f2595df67752cc8e3
1,610
py
Python
tests/test_ingest_open_access.py
ourresearch/journalsdb
169feb9be684eac59f3294dccdb319eb10fe1958
[ "MIT" ]
8
2021-02-01T21:00:20.000Z
2022-01-25T09:51:24.000Z
tests/test_ingest_open_access.py
ourresearch/journalsdb
169feb9be684eac59f3294dccdb319eb10fe1958
[ "MIT" ]
43
2021-04-28T00:20:53.000Z
2022-03-09T00:39:56.000Z
tests/test_ingest_open_access.py
ourresearch/journalsdb
169feb9be684eac59f3294dccdb319eb10fe1958
[ "MIT" ]
null
null
null
import pandas as pd import pytest from ingest.open_access import import_open_access from models.usage import OpenAccess from views import app test_data = { "issn_l": ["2291-5222"], "title": ["Tropical Parasitology"], "year": ["2010"], "num_dois": ["10"], "num_open": [7], "open_rate": ["0.7"],...
24.769231
78
0.652795
7958e3c0a6e65ba617fa92f3006a44cc0275c1bb
20,656
py
Python
google/resumable_media/_download.py
google/google-resumable-upload-python
82f9769f3368404d1854dd22eeed34eeb25ea835
[ "Apache-2.0" ]
null
null
null
google/resumable_media/_download.py
google/google-resumable-upload-python
82f9769f3368404d1854dd22eeed34eeb25ea835
[ "Apache-2.0" ]
null
null
null
google/resumable_media/_download.py
google/google-resumable-upload-python
82f9769f3368404d1854dd22eeed34eeb25ea835
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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, ...
36.885714
88
0.617787
7958e4acc66eca059d101eb2884d712cd85ea78b
7,668
py
Python
MMcalendar/models.py
PhiloTFarnsworth/MarketMePostMortem
4627312f1c784abaf51a4eab7e0ecae940112478
[ "MIT" ]
null
null
null
MMcalendar/models.py
PhiloTFarnsworth/MarketMePostMortem
4627312f1c784abaf51a4eab7e0ecae940112478
[ "MIT" ]
null
null
null
MMcalendar/models.py
PhiloTFarnsworth/MarketMePostMortem
4627312f1c784abaf51a4eab7e0ecae940112478
[ "MIT" ]
null
null
null
from django.db import models from uuid import uuid4 from MMUX.models import User from MMcalendar.util import initStaticValue from datetime import timedelta, datetime ## Relationship Levels at this moment. public events and public time are ## displayed to anyone, the following button makes the introduction, then ## c...
51.463087
131
0.713615
7958e5b4409d56818d4ed7fef0478e2ca853bec7
1,314
py
Python
build/catkin_generated/generate_cached_setup.py
tianchenji/gem-gazebo
b0e45d55eb2805327f628625006ffedbe1783774
[ "MIT" ]
null
null
null
build/catkin_generated/generate_cached_setup.py
tianchenji/gem-gazebo
b0e45d55eb2805327f628625006ffedbe1783774
[ "MIT" ]
null
null
null
build/catkin_generated/generate_cached_setup.py
tianchenji/gem-gazebo
b0e45d55eb2805327f628625006ffedbe1783774
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import argparse import os import stat import sys # find the import for catkin's python package - either from source space or from an installed underlay if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')): sys....
42.387097
102
0.736682
7958e5c22ada98cf8fcb383fe0a8c5493f54b3a0
2,538
py
Python
tests/extmod/uctypes_native_le.py
TG-Techie/circuitpython
390295dd218fb705fe652de77132dea472adf1ed
[ "MIT", "BSD-3-Clause", "MIT-0", "Unlicense" ]
663
2018-12-30T00:17:59.000Z
2022-03-14T05:03:41.000Z
tests/extmod/uctypes_native_le.py
TG-Techie/circuitpython
390295dd218fb705fe652de77132dea472adf1ed
[ "MIT", "BSD-3-Clause", "MIT-0", "Unlicense" ]
41
2019-06-06T08:31:19.000Z
2022-02-13T16:53:41.000Z
tests/extmod/uctypes_native_le.py
TG-Techie/circuitpython
390295dd218fb705fe652de77132dea472adf1ed
[ "MIT", "BSD-3-Clause", "MIT-0", "Unlicense" ]
60
2019-06-01T04:25:00.000Z
2022-02-25T01:47:31.000Z
# This test is exactly like uctypes_le.py, but uses native structure layout. # Codepaths for packed vs native structures are different. This test only works # on little-endian machine (no matter if 32 or 64 bit). import sys try: import uctypes except ImportError: print("SKIP") raise SystemExit if sys.byte...
26.4375
79
0.62963
7958e602ce18e615a314b68529c0d6315b406a02
2,270
py
Python
rllib/airgym/envs/test.py
rlturkiye/flying-cavalry
a56c304afd970deaf762b0c6c90fb141106cbd81
[ "MIT" ]
9
2021-05-22T09:44:41.000Z
2022-03-16T17:26:58.000Z
rllib/airgym/envs/test.py
rlturkiye/flying-cavalry
a56c304afd970deaf762b0c6c90fb141106cbd81
[ "MIT" ]
2
2021-05-22T12:11:33.000Z
2021-07-05T02:27:50.000Z
rllib/airgym/envs/test.py
rlturkiye/flying-cavalry
a56c304afd970deaf762b0c6c90fb141106cbd81
[ "MIT" ]
1
2021-05-22T09:44:53.000Z
2021-05-22T09:44:53.000Z
import airsim from airsim.types import YawMode import numpy as np import random from time import sleep import math drone = airsim.CarClient() #print(drone.getCarState().kinematics_estimated.position) #print(drone.simGetObjectPose("KargoArabasi").position) #print(random.randint(0, 4)) def transform_angle(yaw): phi...
28.375
73
0.617181
7958e70153ce5a5858fc5ef3ec7713709317624e
4,559
py
Python
_pycharm_skeletons/renderdoc/SDObject.py
Lex-DRL/renderdoc-py-stubs
75d280e4f500ded506f3315a49fc432b37ab4fa6
[ "MIT" ]
null
null
null
_pycharm_skeletons/renderdoc/SDObject.py
Lex-DRL/renderdoc-py-stubs
75d280e4f500ded506f3315a49fc432b37ab4fa6
[ "MIT" ]
null
null
null
_pycharm_skeletons/renderdoc/SDObject.py
Lex-DRL/renderdoc-py-stubs
75d280e4f500ded506f3315a49fc432b37ab4fa6
[ "MIT" ]
null
null
null
# encoding: utf-8 # module renderdoc # from P:\1-Scripts\_Python\Py-Autocomplete\renderdoc.pyd # by generator 1.146 # no doc # imports import enum as __enum from .SwigPyObject import SwigPyObject class SDObject(SwigPyObject): """ Defines a single structured object. """ def AddChild(self, child): # real sign...
28.31677
97
0.586093
7958e76862c46f95ae940e84090876437c8ebe94
9,577
py
Python
mlir/test/Integration/Dialect/SparseTensor/python/test_stress.py
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
null
null
null
mlir/test/Integration/Dialect/SparseTensor/python/test_stress.py
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
null
null
null
mlir/test/Integration/Dialect/SparseTensor/python/test_stress.py
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
null
null
null
# RUN: SUPPORT_LIB=%mlir_runner_utils_dir/libmlir_c_runner_utils%shlibext \ # RUN: %PYTHON %s | FileCheck %s import ctypes import errno import itertools import os import sys from typing import List, Callable import numpy as np from mlir import ir from mlir import runtime as rt from mlir.execution_engine import Ex...
39.25
88
0.666493
7958e824e0194d4727eea659a2d12d33b9eed812
2,379
py
Python
macdaily/cls/install/pip.py
JarryShaw/MacDaily
853b841dd1f1f7e6aae7bf2c305ff008bc76055c
[ "BSD-3-Clause" ]
10
2018-09-20T19:57:56.000Z
2021-11-14T18:28:10.000Z
macdaily/cls/install/pip.py
JarryShaw/jsdaily
3ca7aa7c75a12dc08ab44f78af2b089e1ed41d3d
[ "BSD-3-Clause" ]
2
2020-05-31T08:49:47.000Z
2021-12-28T16:57:42.000Z
macdaily/cls/install/pip.py
JarryShaw/jsdaily
3ca7aa7c75a12dc08ab44f78af2b089e1ed41d3d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from macdaily.cmd.install import InstallCommand from macdaily.core.pip import PipCommand from macdaily.util.tools.print import print_info, print_scpt from macdaily.util.tools.script import sudo class PipInstall(PipCommand, InstallCommand): def _parse_args(self, namespace): self._...
46.647059
118
0.656999
7958e8be36da6380c479203f6844c7801d423bd7
1,691
py
Python
python-cim/cim/mutablenamedtuple.py
pombredanne/flare-wmi
fdde184b7bf98e1043f8246e0c75a7a1316c48c9
[ "Apache-2.0" ]
390
2015-08-06T20:33:01.000Z
2021-09-11T21:43:34.000Z
python-cim/cim/mutablenamedtuple.py
pombredanne/flare-wmi
fdde184b7bf98e1043f8246e0c75a7a1316c48c9
[ "Apache-2.0" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/vstructui/mutablenamedtuple.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
106
2015-08-08T22:44:50.000Z
2021-08-25T09:20:57.000Z
""" mutablenamedtuple is like collections.namedtuple, but the fields may be modified. This makes it basically a record type. Desired usage: F = mutablenamedtuple("F", ["foo", "bar", "baz"]) f = F(1, bar=2, baz=3) f.baz = 9 print(f) --> "F(foo=1, bar=2, baz=9)" """ def _mutablenamedtuple__init(sel...
31.90566
88
0.612655
7958e8f0998c95c2736a0019cc223253cd66d24e
921
py
Python
tests/test-order_test-case.py
omarion3698/Book-A-Meal
330a2331ee13b52772d20eedbc00fc4364585709
[ "MIT" ]
null
null
null
tests/test-order_test-case.py
omarion3698/Book-A-Meal
330a2331ee13b52772d20eedbc00fc4364585709
[ "MIT" ]
null
null
null
tests/test-order_test-case.py
omarion3698/Book-A-Meal
330a2331ee13b52772d20eedbc00fc4364585709
[ "MIT" ]
null
null
null
def test_get_all_menus(self): """ Test API can get all menus.""" self.menu = { "name": "KFC Special", "description": "Finger lickin chicken" } response = self.app.post("/api/v1/menus", data = self.menu) self.assertEqual(response.status_code, 201) response = self.app.get("/api/v1/menus") self.assertE...
41.863636
92
0.687296
7958e96b443967cbf237c8e9f11a4ff5808e77a5
12,529
py
Python
utils/progress_bar.py
Syler1984/seismo-ml-models-integration
fbfb98cda1b59699bc17e51d51de314be52e259e
[ "MIT" ]
null
null
null
utils/progress_bar.py
Syler1984/seismo-ml-models-integration
fbfb98cda1b59699bc17e51d51de314be52e259e
[ "MIT" ]
1
2021-05-14T00:12:13.000Z
2021-05-14T00:12:13.000Z
utils/progress_bar.py
Syler1984/seismo-ml-models-integration
fbfb98cda1b59699bc17e51d51de314be52e259e
[ "MIT" ]
null
null
null
class ProgressBar: def __init__(self): self.progress_maxes = {} self.progress = {} self.progress_char = '#' self.current_progress_char = '#' self.empty_char = '-' self.progress_char_length = 30 self._prefix_expression = None self._postfix_expressio...
35.899713
112
0.598531
7958e9962ae33e1471559476dcd149bc41c4084b
5,908
py
Python
prody/atomic/chain.py
sixpi/ProDy
b0db61622ac774b4c79eafa00c74e0f3b604a774
[ "MIT" ]
null
null
null
prody/atomic/chain.py
sixpi/ProDy
b0db61622ac774b4c79eafa00c74e0f3b604a774
[ "MIT" ]
null
null
null
prody/atomic/chain.py
sixpi/ProDy
b0db61622ac774b4c79eafa00c74e0f3b604a774
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """This module defines classes for handling polypeptide/nucleic acid chains.""" from numpy import arange, unique from .subset import AtomSubset __all__ = ['Chain'] AAMAP = { 'ALA': 'A', 'ARG': 'R', 'ASN': 'N', 'ASP': 'D', 'CYS': 'C', 'GLN': 'Q', 'GLU': 'E', 'GLY': 'G', 'HIS': 'H', 'I...
32.284153
79
0.527251
7958e9a76431bfec083f2aa95c36554f8a98f764
632
py
Python
beginProject/manage.py
cs-fullstack-2019-fall/django-models3-cw-b-marcus110379
a6fc1231dd868145d5f5eba766f78cca8526a0de
[ "Apache-2.0" ]
null
null
null
beginProject/manage.py
cs-fullstack-2019-fall/django-models3-cw-b-marcus110379
a6fc1231dd868145d5f5eba766f78cca8526a0de
[ "Apache-2.0" ]
null
null
null
beginProject/manage.py
cs-fullstack-2019-fall/django-models3-cw-b-marcus110379
a6fc1231dd868145d5f5eba766f78cca8526a0de
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'beginProject.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise I...
28.727273
76
0.685127
7958ea1d1c188614413d5027d3547da311dade3a
2,547
py
Python
app/settings.py
cmyui/cmyui
bb41302c002714efef59042d11902c011e533b7f
[ "MIT" ]
10
2022-02-07T16:11:39.000Z
2022-03-13T14:05:37.000Z
app/settings.py
Miku-Network/gulag
c6a3835ce138a8d27f7efd764e75466c881e105c
[ "MIT" ]
26
2022-03-15T18:39:10.000Z
2022-03-31T06:57:06.000Z
app/settings.py
Miku-Network/gulag
c6a3835ce138a8d27f7efd764e75466c881e105c
[ "MIT" ]
6
2022-03-20T18:52:31.000Z
2022-03-30T21:55:16.000Z
from __future__ import annotations from typing import Optional from databases import DatabaseURL from starlette.config import Config from starlette.datastructures import CommaSeparatedStrings from starlette.datastructures import Secret config = Config(".env") SERVER_ADDR: str = config("SERVER_ADDR") SERVER_PORT: Op...
27.387097
81
0.713388
7958eabaa3d9f6b06c07ab735b469b5247f9f30e
984
py
Python
pw_watch/py/setup.py
LuDuda/pigweed
dcd7230895a234156bc7b6e5061e6936627c5fbb
[ "Apache-2.0" ]
1
2020-12-19T19:42:46.000Z
2020-12-19T19:42:46.000Z
pw_watch/py/setup.py
LuDuda/pigweed
dcd7230895a234156bc7b6e5061e6936627c5fbb
[ "Apache-2.0" ]
3
2021-03-11T06:53:56.000Z
2022-02-13T21:59:25.000Z
pw_watch/py/setup.py
LuDuda/pigweed
dcd7230895a234156bc7b6e5061e6936627c5fbb
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Pigweed 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
31.741935
79
0.722561
7958eae286ceae37a18c61fdab57b216f7ccbc97
77
py
Python
steemexchange/__init__.py
cryptomental/python-goloslib
0766f9b48e478bc3cdd18b22a6b5867b82a9f81e
[ "MIT" ]
1
2017-04-08T05:08:35.000Z
2017-04-08T05:08:35.000Z
steemexchange/__init__.py
cryptomental/python-goloslib
0766f9b48e478bc3cdd18b22a6b5867b82a9f81e
[ "MIT" ]
null
null
null
steemexchange/__init__.py
cryptomental/python-goloslib
0766f9b48e478bc3cdd18b22a6b5867b82a9f81e
[ "MIT" ]
null
null
null
from steemexchange.exchange import SteemExchange __all__ = ['steemexchange']
25.666667
48
0.831169
7958eb7d4b058594941024cd3c6a352e6c0dcd3f
741
py
Python
leetcode/easy/NumberOf1Bits.py
cheshtaaagarrwal/DS-Algos
d64f07355a0ea4342e868a359f34be28c183f8ff
[ "MIT" ]
null
null
null
leetcode/easy/NumberOf1Bits.py
cheshtaaagarrwal/DS-Algos
d64f07355a0ea4342e868a359f34be28c183f8ff
[ "MIT" ]
null
null
null
leetcode/easy/NumberOf1Bits.py
cheshtaaagarrwal/DS-Algos
d64f07355a0ea4342e868a359f34be28c183f8ff
[ "MIT" ]
1
2021-10-11T23:11:55.000Z
2021-10-11T23:11:55.000Z
# Write a function that takes an unsigned integer and # returns the number of '1' bits it has (also known as the Hamming weight). # Example 1: # Input: 11 # Output: 3 # Explanation: Integer 11 has binary representation 00000000000000000000000000001011 # Example 2: # Input: 128 # Output: 1 # Explanation: Integer 128 ...
23.903226
85
0.642375
7958ebd128d8506a778306b4b8ba80855b416c85
1,567
py
Python
tests/garage/envs/test_point_env.py
fangqyi/garage
ddafba385ef005f46f913ab352f9638760e5b412
[ "MIT" ]
1
2021-03-02T08:43:20.000Z
2021-03-02T08:43:20.000Z
tests/garage/envs/test_point_env.py
fangqyi/garage
ddafba385ef005f46f913ab352f9638760e5b412
[ "MIT" ]
null
null
null
tests/garage/envs/test_point_env.py
fangqyi/garage
ddafba385ef005f46f913ab352f9638760e5b412
[ "MIT" ]
null
null
null
import pickle import numpy as np from garage.envs.point_env import PointEnv from tests.helpers import step_env class TestPointEnv: def test_pickleable(self): env = PointEnv() round_trip = pickle.loads(pickle.dumps(env)) assert round_trip step_env(round_trip) ...
24.873016
54
0.530951
7958ec2c2146ec7a470fc6d23991dddcc2136cff
1,788
py
Python
onmt/speech/Augmenter.py
Dan-hbd/NMTGMinor
84e59ac8391ee78852d7c71afc60c3c8b8e3d44d
[ "MIT" ]
1
2021-06-28T06:26:36.000Z
2021-06-28T06:26:36.000Z
onmt/speech/Augmenter.py
Dan-hbd/NMTGMinor
84e59ac8391ee78852d7c71afc60c3c8b8e3d44d
[ "MIT" ]
null
null
null
onmt/speech/Augmenter.py
Dan-hbd/NMTGMinor
84e59ac8391ee78852d7c71afc60c3c8b8e3d44d
[ "MIT" ]
null
null
null
import math import torch from collections import defaultdict import onmt import random class Augmenter(object): """ Implementation of the "Spec Augmentation" method (Only vertical and horizontal masking) """ def __init__(self, F=8, mf=2, T=64, max_t=0.2, mt=2, input_size=40, conc...
26.686567
91
0.574385
7958ecdbb803b6ee725169b5fc5e14204e7c0be6
3,877
py
Python
messages.dat reader.py
sharpbitmessage/PyBitmessage
875144ceff4f83ba50502f0cd91f4753b281b8f4
[ "MIT" ]
1
2015-06-09T14:01:29.000Z
2015-06-09T14:01:29.000Z
messages.dat reader.py
sharpbitmessage/PyBitmessage
875144ceff4f83ba50502f0cd91f4753b281b8f4
[ "MIT" ]
null
null
null
messages.dat reader.py
sharpbitmessage/PyBitmessage
875144ceff4f83ba50502f0cd91f4753b281b8f4
[ "MIT" ]
null
null
null
#This program can be used to print out everything in your Inbox or Sent folders and also take things out of the trash. #Scroll down to the bottom to see the functions that you can uncomment. Save then run this file. #The functions only read the database file seem to function just fine even if you have Bitmessage runnin...
38.77
262
0.686355
7958ed2381685f56e708077ff3b1e0038534a875
58,252
py
Python
twisted/mail/pop3.py
Laharah/twisted
bf436c724c94268ef470699577356ea887c503cd
[ "MIT", "Unlicense" ]
null
null
null
twisted/mail/pop3.py
Laharah/twisted
bf436c724c94268ef470699577356ea887c503cd
[ "MIT", "Unlicense" ]
null
null
null
twisted/mail/pop3.py
Laharah/twisted
bf436c724c94268ef470699577356ea887c503cd
[ "MIT", "Unlicense" ]
null
null
null
# -*- test-case-name: twisted.mail.test.test_pop3 -*- # # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Post-office Protocol version 3. @author: Glyph Lefkowitz @author: Jp Calderone """ import base64 import binascii import warnings from hashlib import md5 from zope.interface import imp...
30.968634
91
0.590589
7958ed5c6845d36fd2642d47f8ef83d52e914b2f
1,145
py
Python
warriors/modbus_warrior.py
alegrey91/legion
c234c54cc6255e744a0cfde9a9d5909263850480
[ "MIT" ]
430
2019-06-10T09:43:39.000Z
2022-03-31T19:46:11.000Z
warriors/modbus_warrior.py
alegrey91/legion
c234c54cc6255e744a0cfde9a9d5909263850480
[ "MIT" ]
10
2019-09-17T15:48:47.000Z
2021-02-17T11:09:59.000Z
warriors/modbus_warrior.py
alegrey91/legion
c234c54cc6255e744a0cfde9a9d5909263850480
[ "MIT" ]
110
2019-06-10T17:22:17.000Z
2022-03-28T03:23:08.000Z
# -*- coding: utf-8 -*- from warriors.warrior import Warrior #You can test this module against querier (10.10.10.125) class Modbus_warrior (Warrior): def __init__(self, host, port, workdir, protocol, intensity, username, ulist, password, plist, notuse, extensions, path, reexec, ipv6, domain, interactive, verbose...
57.25
192
0.644541
7958edd73bceed0818c5671468c540605e70f4a8
810
py
Python
applymask_2d.py
mcooper12590/4DWormholes
47eea53377a6d02cf1b5bb8994a68b194b981c55
[ "MIT" ]
null
null
null
applymask_2d.py
mcooper12590/4DWormholes
47eea53377a6d02cf1b5bb8994a68b194b981c55
[ "MIT" ]
null
null
null
applymask_2d.py
mcooper12590/4DWormholes
47eea53377a6d02cf1b5bb8994a68b194b981c55
[ "MIT" ]
null
null
null
import imageio from numpy import array import argparse parser = argparse.ArgumentParser() parser.add_argument('-i','--ifile') parser.add_argument('-m','--mfile') parser.add_argument('-o','--ofile') parser.add_argument('-r','--resfile') args = parser.parse_args() rdir = "/media/maxc/IcyBox/Cooper2021_Data/" sname = "...
19.285714
52
0.687654
7958edfc6363c9f565aa125b340b0b87d191b736
786
py
Python
scripts/dhp19/generate_DHP19/Python_Files/normalizeImage3Sigma.py
preshmalinetpereira/lifting_events_to_3d_hpe
2d7b196dc6ab85e10ae07466657304f324a64a37
[ "Apache-2.0" ]
null
null
null
scripts/dhp19/generate_DHP19/Python_Files/normalizeImage3Sigma.py
preshmalinetpereira/lifting_events_to_3d_hpe
2d7b196dc6ab85e10ae07466657304f324a64a37
[ "Apache-2.0" ]
null
null
null
scripts/dhp19/generate_DHP19/Python_Files/normalizeImage3Sigma.py
preshmalinetpereira/lifting_events_to_3d_hpe
2d7b196dc6ab85e10ae07466657304f324a64a37
[ "Apache-2.0" ]
null
null
null
### File created by preshma import numpy as np from statistics import variance as var import math def normalizeImage3Sigma(img): m, n = img.shape sum_img=np.sum(img) count_img=np.count_nonzero(img>0) mean_img = sum_img / count_img var_img=var(img[img>0]) sig_img = np.sqrt(var_img) if (...
23.818182
54
0.550891
7958ef679cda428aed01c0bdfa24dfd3991bca77
7,284
py
Python
activitysim/core/input.py
SEMCOG/SEMCOG_ActSim
cc18cce84b2e4b5f380f58c7919953d2cd03ee73
[ "BSD-3-Clause" ]
null
null
null
activitysim/core/input.py
SEMCOG/SEMCOG_ActSim
cc18cce84b2e4b5f380f58c7919953d2cd03ee73
[ "BSD-3-Clause" ]
1
2021-06-30T23:39:37.000Z
2021-06-30T23:39:37.000Z
activitysim/core/input.py
SEMCOG/SEMCOG_ActSim
cc18cce84b2e4b5f380f58c7919953d2cd03ee73
[ "BSD-3-Clause" ]
null
null
null
# ActivitySim # See full license in LICENSE.txt. import logging import warnings import os import pandas as pd from activitysim.core import ( inject, config, util, ) from activitysim.core import mem logger = logging.getLogger(__name__) def read_input_table(tablename): """Reads input table name and ...
40.021978
117
0.605437
7958f07f7a81ee681267c9608f219d2f92dcc3d8
1,669
py
Python
django_websocket/middleware.py
carlesso/django-websocket
619156b0ceed9cc7c29799158d5e87699a7b3ee8
[ "BSD-3-Clause" ]
1
2019-06-13T16:18:48.000Z
2019-06-13T16:18:48.000Z
django_websocket/middleware.py
carlesso/django-websocket
619156b0ceed9cc7c29799158d5e87699a7b3ee8
[ "BSD-3-Clause" ]
null
null
null
django_websocket/middleware.py
carlesso/django-websocket
619156b0ceed9cc7c29799158d5e87699a7b3ee8
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.http import HttpResponseBadRequest from django_websocket.websocket import setup_websocket, MalformedWebSocket WEBSOCKET_ACCEPT_ALL = getattr(settings, 'WEBSOCKET_ACCEPT_ALL', False) class WebSocketMiddleware(object): def process_request(self, request): try: ...
40.707317
78
0.666267
7958f0bac3afce24f2a04710d045579bd723570c
1,195
py
Python
skdist/tests/test_postprocessing.py
awesome-archive/sk-dist
0e478a4655fcd28cf4ce6395197747dae133263d
[ "Apache-2.0" ]
1
2019-09-28T02:22:45.000Z
2019-09-28T02:22:45.000Z
skdist/tests/test_postprocessing.py
lucassocct/sk-dist
15cd2383f2927313c7cfb539ea9ca8909727b84a
[ "Apache-2.0" ]
null
null
null
skdist/tests/test_postprocessing.py
lucassocct/sk-dist
15cd2383f2927313c7cfb539ea9ca8909727b84a
[ "Apache-2.0" ]
null
null
null
""" Test postprocessing """ try: import numpy as np from sklearn.linear_model import LogisticRegression from skdist import postprocessing _import_error = None except Exception as e: _import_error = e def test_import_postprocessing(): assert _import_error == None def test_predict(): X = n...
24.895833
55
0.632636
7958f0e4828de1052d8310ca2a62680ae91f5cf5
28,326
py
Python
src/oci/data_safe/models/sensitive_column_summary.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_safe/models/sensitive_column_summary.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_safe/models/sensitive_column_summary.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...
37.517881
245
0.675139
7958f24e4014c54eaf025118bb9811c0e4c9130b
767
py
Python
download.py
bedna-KU/Loto_sk_prediction
689991212a1450b865e01461ad7e892f06eb5774
[ "BSD-2-Clause" ]
null
null
null
download.py
bedna-KU/Loto_sk_prediction
689991212a1450b865e01461ad7e892f06eb5774
[ "BSD-2-Clause" ]
null
null
null
download.py
bedna-KU/Loto_sk_prediction
689991212a1450b865e01461ad7e892f06eb5774
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import requests from clint.textui import progress import os url1 = "https://www.tipos.sk/loterie/ciselne-loterie/archiv-vyzrebovanych-cisel?file=loto1" url2 = "https://www.tipos.sk/loterie/ciselne-loterie/archiv-vyzrebovanych-cisel?file=loto2" def download (url, file): r = requests.get (url...
34.863636
118
0.65189
7958f413b366ee8854b729ee9e4db80783ff0cc0
8,188
py
Python
src/scancode_analyzer/summary.py
AyanSinhaMahapatra/scancode-analyzer
5cc8ccda7a1301b0886fd321550d77192213e936
[ "Apache-2.0" ]
1
2021-01-02T17:27:52.000Z
2021-01-02T17:27:52.000Z
src/scancode_analyzer/summary.py
AyanSinhaMahapatra/scancode-results-analyzer
5cc8ccda7a1301b0886fd321550d77192213e936
[ "Apache-2.0" ]
null
null
null
src/scancode_analyzer/summary.py
AyanSinhaMahapatra/scancode-results-analyzer
5cc8ccda7a1301b0886fd321550d77192213e936
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) nexB Inc. and others. All rights reserved. # ScanCode is a trademark of nexB Inc. # SPDX-License-Identifier: Apache-2.0 # See http://www.apache.org/licenses/LICENSE-2.0 for the license text. # See https://github.com/nexB/scancode-toolkit for support or download. # See https://aboutcode.org for more in...
33.975104
100
0.64509
7958f4744d148fcf37845491b6913b9f1ceada8e
12,628
py
Python
virtual/lib/python3.6/site-packages/typed_ast/ast27.py
drewheathens/The-Moringa-Tribune
98ee4d63c9df6f1f7497fc6876960a822d914500
[ "MIT" ]
3
2019-03-17T11:27:05.000Z
2020-08-30T04:19:11.000Z
virtual/lib/python3.6/site-packages/typed_ast/ast27.py
drewheathens/The-Moringa-Tribune
98ee4d63c9df6f1f7497fc6876960a822d914500
[ "MIT" ]
16
2020-02-12T00:28:11.000Z
2022-03-11T23:48:19.000Z
virtual/lib/python3.6/site-packages/typed_ast/ast27.py
drewheathens/The-Moringa-Tribune
98ee4d63c9df6f1f7497fc6876960a822d914500
[ "MIT" ]
2
2020-04-30T18:47:05.000Z
2021-05-24T15:07:41.000Z
# -*- coding: utf-8 -*- """ ast27 ~~~ The `ast27` module helps Python applications to process trees of the Python abstract syntax grammar. The abstract syntax itself might change with each Python release; this module helps to find out programmatically what the current grammar looks like and al...
38.855385
81
0.625752
7958f4a2689b8ac22f59cb4a6986b13fab2b6e66
16,126
py
Python
Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/python/debug/lib/debug_graphs.py
JustinACoder/H22-GR3-UnrealAI
361eb9ef1147f8a2991e5f98c4118cd823184adf
[ "MIT" ]
6
2022-02-04T18:12:24.000Z
2022-03-21T23:57:12.000Z
Lib/site-packages/tensorflow/python/debug/lib/debug_graphs.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/tensorflow/python/debug/lib/debug_graphs.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2022-02-08T03:53:23.000Z
2022-02-08T03:53:23.000Z
# Copyright 2016 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...
31.996032
81
0.673819
7958f5e69f44eab0ddeba3b0c6563964502d4083
640
bzl
Python
third_party/ruy/workspace.bzl
Kinoo2/tensorflow
e334eb2f95bdece6f0df3eff0cf9c402078fe392
[ "Apache-2.0" ]
2
2021-12-04T07:29:53.000Z
2021-12-04T07:30:00.000Z
third_party/ruy/workspace.bzl
Kinoo2/tensorflow
e334eb2f95bdece6f0df3eff0cf9c402078fe392
[ "Apache-2.0" ]
3
2021-08-25T15:10:14.000Z
2022-02-10T04:33:14.000Z
third_party/ruy/workspace.bzl
Kinoo2/tensorflow
e334eb2f95bdece6f0df3eff0cf9c402078fe392
[ "Apache-2.0" ]
3
2021-09-26T22:20:25.000Z
2021-09-26T23:07:13.000Z
"""Loads the ruy library, used by TensorFlow Lite.""" load("//third_party:repo.bzl", "tf_http_archive") def repo(): tf_http_archive( name = "ruy", sha256 = "fa9a0b9041095817bc3533f7b125c3b4044570c0b3ee6c436d2d29dae001c06b", strip_prefix = "ruy-e6c1b8dc8a8b00ee74e7268aac8b18d7260ab1ce", ...
40
142
0.698438
7958f5e799516c2ad41b7386ed8ec98bcae8cce5
890
py
Python
_teaching/csci127-summer-2020/readings/activities/raven_words_updated.py
lgw2/lgw2.github.io
3e2b0fb849407c26a64afd8e97be0eff7ce07f9b
[ "MIT" ]
null
null
null
_teaching/csci127-summer-2020/readings/activities/raven_words_updated.py
lgw2/lgw2.github.io
3e2b0fb849407c26a64afd8e97be0eff7ce07f9b
[ "MIT" ]
null
null
null
_teaching/csci127-summer-2020/readings/activities/raven_words_updated.py
lgw2/lgw2.github.io
3e2b0fb849407c26a64afd8e97be0eff7ce07f9b
[ "MIT" ]
null
null
null
f = open('raven.txt', 'r') # create an empty dictionary count = {} for line in f: for word in line.split(): # remove punctuation word = word.replace('_', '').replace('"', '').replace(',', '').replace('.', '') word = word.replace('-', '').replace('?', '').replace('!', '').replace("'", "") ...
24.054054
87
0.507865
7958f5ee1defe1d52c82ca39a7d5cde1d24f524d
25,643
py
Python
test/functional/sendheaders.py
wolfoxonly/dk
090c9862a1a14c187eefcb8285e43601db5ed35b
[ "MIT" ]
null
null
null
test/functional/sendheaders.py
wolfoxonly/dk
090c9862a1a14c187eefcb8285e43601db5ed35b
[ "MIT" ]
null
null
null
test/functional/sendheaders.py
wolfoxonly/dk
090c9862a1a14c187eefcb8285e43601db5ed35b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Dealtoken Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test behavior of headers messages to announce blocks. Setup: - Two nodes: - node0 is the node-u...
42.809683
130
0.636977
7958f7ee15ea14ac7b8f536ccb18dbbbe6f987d0
32,020
py
Python
tensorflow/python/eager/core_test.py
plopresti/tensorflow
8b0c84d30d957596cbb3bcac9245e114c3f0b65b
[ "Apache-2.0" ]
1
2019-07-15T08:40:24.000Z
2019-07-15T08:40:24.000Z
tensorflow/python/eager/core_test.py
plopresti/tensorflow
8b0c84d30d957596cbb3bcac9245e114c3f0b65b
[ "Apache-2.0" ]
3
2020-10-14T00:35:40.000Z
2022-02-09T22:35:09.000Z
tensorflow/python/eager/core_test.py
plopresti/tensorflow
8b0c84d30d957596cbb3bcac9245e114c3f0b65b
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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...
33.991507
115
0.656059
7958f87ce89ecf5faa5a0038ffdafbd84e91299e
8,083
py
Python
tests/test_qmexcitedstatetrajectories.py
PotentialParadox/pynasqm
1bd51299b6ca7f8229d8a15428515d53a358903c
[ "MIT" ]
1
2020-03-13T22:34:03.000Z
2020-03-13T22:34:03.000Z
tests/test_qmexcitedstatetrajectories.py
PotentialParadox/pynasqm
1bd51299b6ca7f8229d8a15428515d53a358903c
[ "MIT" ]
null
null
null
tests/test_qmexcitedstatetrajectories.py
PotentialParadox/pynasqm
1bd51299b6ca7f8229d8a15428515d53a358903c
[ "MIT" ]
null
null
null
''' Units tests for the cpptraj wrappers for nasqm ''' import os import subprocess import types import pytest from pynasqm.trajectories.qmexcitedstatetrajectories import QmExcitedStateTrajectories from pynasqm.trajectories.create_restarts import create_restarts_from_parent from pynasqm.inputceon import InputCeon from p...
45.666667
110
0.733515
7958f8913d5189d833372e3e601da3a945b063b2
9,050
py
Python
sympy/testing/pytest.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/testing/pytest.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/testing/pytest.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
"""py.test hacks to support XFAIL/XPASS""" from __future__ import print_function, division import sys import functools import os import contextlib import warnings from sympy.core.compatibility import get_function_name from sympy.utilities.exceptions import SymPyDeprecationWarning ON_TRAVIS = os.getenv("TRAVIS_BUILD...
31.314879
80
0.613702
7958f8b566b77bb83d1f6f9f41f9bcf25aa8d4cb
14,837
py
Python
src/mist/api/keys/views.py
cc-daveloper/mist.io_mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
1
2019-04-10T11:37:25.000Z
2019-04-10T11:37:25.000Z
src/mist/api/keys/views.py
d-mo/mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
3
2021-04-07T23:15:17.000Z
2021-09-23T23:21:45.000Z
src/mist/api/keys/views.py
cc-daveloper/mist.io_mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
null
null
null
import mongoengine as me from pyramid.response import Response from mist.api.clouds.models import Cloud from mist.api.machines.models import Machine from mist.api.keys.models import SignedSSHKey, SSHKey, Key from mist.api.auth.methods import auth_context_from_request from mist.api.helpers import view_config, params_...
32.184382
78
0.648783
7958f8e6cec0a9f14d162274f05dd3bd06f4d35a
874
py
Python
setup.py
petryx/extractor
2c21df8104cb3ac42e95b287d7dafa1406613dba
[ "BSD-3-Clause" ]
null
null
null
setup.py
petryx/extractor
2c21df8104cb3ac42e95b287d7dafa1406613dba
[ "BSD-3-Clause" ]
1
2020-09-28T15:16:25.000Z
2020-09-28T18:10:48.000Z
setup.py
petryx/extractor
2c21df8104cb3ac42e95b287d7dafa1406613dba
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup import os,sys try: import pypandoc long_description = pypandoc.convert('README.md','rst') except (IOError,ImportError): long_description = open('README.md').read() setup(name='pyextractor', version='0.9-beta', description='Command...
33.615385
71
0.526316
7958f932e5f0ae63ad219ba6fac90f8ff53b91ff
9,495
py
Python
tests/parsers/filestat.py
log2timeline/plaso
406e77c4d8cf2edfc2aad82c61d4f910a038b759
[ "Apache-2.0" ]
1,253
2015-01-02T13:58:02.000Z
2022-03-31T08:43:39.000Z
tests/parsers/filestat.py
log2timeline/plaso
406e77c4d8cf2edfc2aad82c61d4f910a038b759
[ "Apache-2.0" ]
3,388
2015-01-02T11:17:58.000Z
2022-03-30T10:21:45.000Z
tests/parsers/filestat.py
log2timeline/plaso
406e77c4d8cf2edfc2aad82c61d4f910a038b759
[ "Apache-2.0" ]
376
2015-01-20T07:04:54.000Z
2022-03-04T23:53:00.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for filestat parser.""" import os import unittest from dfvfs.lib import definitions as dfvfs_definitions from dfvfs.path import factory as path_spec_factory from plaso.lib import definitions from plaso.parsers import filestat from tests import test_lib as sha...
36.102662
75
0.722801
7958fa47094ea4edfa706034357cc9023a79bed0
7,192
py
Python
tastypie/api.py
PyUnchained/django-tastypie
a2f3d0af111acc71a8954d47918560fdb7f906d7
[ "BSD-3-Clause" ]
1
2022-03-18T06:12:56.000Z
2022-03-18T06:12:56.000Z
tastypie/api.py
PyUnchained/django-tastypie
a2f3d0af111acc71a8954d47918560fdb7f906d7
[ "BSD-3-Clause" ]
null
null
null
tastypie/api.py
PyUnchained/django-tastypie
a2f3d0af111acc71a8954d47918560fdb7f906d7
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import warnings from django.core.exceptions import ImproperlyConfigured from django.http import HttpResponse, HttpResponseBadRequest from tastypie.compat import reverse from tastypie.exceptions import NotRegistered, BadRequest from tastypie.serializers import Serializer from tast...
36.882051
153
0.640573
7958fa868f1321f368d780ca59e0dd18d6a43231
2,213
py
Python
src/urtypes/cbor/data.py
selfcustody/urtypes
8ff8e6ebe484d7a0f98ad73f4441708704998b43
[ "MIT" ]
null
null
null
src/urtypes/cbor/data.py
selfcustody/urtypes
8ff8e6ebe484d7a0f98ad73f4441708704998b43
[ "MIT" ]
null
null
null
src/urtypes/cbor/data.py
selfcustody/urtypes
8ff8e6ebe484d7a0f98ad73f4441708704998b43
[ "MIT" ]
null
null
null
# The MIT License (MIT) # Copyright (c) 2021 Tom J. Sun # Copyright (c) 2015 Sokolov Yura # Copyright (c) 2013 Fritz Grimpen # 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 restrict...
28.74026
79
0.67962
7958faa2ac535c52c6a8534646c950febbd794e8
119
py
Python
problem/10000~19999/14913/14913.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-19T16:37:44.000Z
2019-04-19T16:37:44.000Z
problem/10000~19999/14913/14913.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-20T11:42:44.000Z
2019-04-20T11:42:44.000Z
problem/10000~19999/14913/14913.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
3
2019-04-19T16:37:47.000Z
2021-10-25T00:45:00.000Z
a,d,n=map(int,input().split()) if (n-a)%d==0: if d<0 and n<=a or d>0 and n>=a: print((n-a)//d+1) exit() print('X')
19.833333
33
0.521008
7958fb54ddf75dfdbf0ad0a40b06a8a153579fdc
13,128
py
Python
tests/framework/scheduler.py
mziyabo/firecracker
92d4a2a5ae40df9927ee2838bd3a599554f2e67a
[ "Apache-2.0" ]
1
2020-02-26T05:27:55.000Z
2020-02-26T05:27:55.000Z
tests/framework/scheduler.py
mziyabo/firecracker
92d4a2a5ae40df9927ee2838bd3a599554f2e67a
[ "Apache-2.0" ]
null
null
null
tests/framework/scheduler.py
mziyabo/firecracker
92d4a2a5ae40df9927ee2838bd3a599554f2e67a
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """Pytest plugin that schedules tests to run concurrently. This plugin adds a new command line option (`--concurrency`), allowing the user to choose the maximum number of worker processes that can run tests ...
37.295455
79
0.577544
7958fba9631dd8e36727ee5bf3eeea65bcd15ca7
976
py
Python
run.py
nedludd0/python-base
b5d825a5e056d15295e8d7c7ad5e37f20fdeb7cd
[ "MIT" ]
1
2020-05-16T11:36:37.000Z
2020-05-16T11:36:37.000Z
run.py
nedludd0/python-base
b5d825a5e056d15295e8d7c7ad5e37f20fdeb7cd
[ "MIT" ]
null
null
null
run.py
nedludd0/python-base
b5d825a5e056d15295e8d7c7ad5e37f20fdeb7cd
[ "MIT" ]
null
null
null
""" There are four collection data types in the Python programming language: - LIST is a collection which is ordered and changeable. Allows duplicate members. - TUPLE is a collection which is ordered and unchangeable. Allows duplicate members. - SET is a collection which is unord...
28.705882
101
0.645492
7958fbb21c8c01dbafc491118d1c11230aa2b8cf
1,574
py
Python
touchpoint/location.py
zappospizza/touchpoint-python
19572c0c1360408dd980ed95e852046dcdba3623
[ "MIT" ]
null
null
null
touchpoint/location.py
zappospizza/touchpoint-python
19572c0c1360408dd980ed95e852046dcdba3623
[ "MIT" ]
null
null
null
touchpoint/location.py
zappospizza/touchpoint-python
19572c0c1360408dd980ed95e852046dcdba3623
[ "MIT" ]
null
null
null
# touchpoint/location.py '''This module defines a location.''' class Location(): ''' The Location object contains a location's details :param location_id: Used to identify a given location :type location_id: str :param wss_url: Used to define a location's wss url :type wss...
28.618182
83
0.588945
7958fc1e5cd366e374d9758a62d641f5cea4b043
269
py
Python
qct_energy/config/desktop.py
Suraj787/qct_energy
a1969a5236ade31a08bc049b2d42f6a3458c1e1d
[ "MIT" ]
null
null
null
qct_energy/config/desktop.py
Suraj787/qct_energy
a1969a5236ade31a08bc049b2d42f6a3458c1e1d
[ "MIT" ]
null
null
null
qct_energy/config/desktop.py
Suraj787/qct_energy
a1969a5236ade31a08bc049b2d42f6a3458c1e1d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "module_name": "qct energy", "color": "grey", "icon": "octicon octicon-file-directory", "type": "module", "label": _("qct energy") } ]
17.933333
44
0.613383
7958fc46c44af43489e17f00403817a6075629dd
1,166
py
Python
tests.py
correa-coder/console_menu
0bbf1a0d7d027d68f78187b8a6db9ce463a671bd
[ "MIT" ]
null
null
null
tests.py
correa-coder/console_menu
0bbf1a0d7d027d68f78187b8a6db9ce463a671bd
[ "MIT" ]
null
null
null
tests.py
correa-coder/console_menu
0bbf1a0d7d027d68f78187b8a6db9ce463a671bd
[ "MIT" ]
null
null
null
import unittest from package import menu class TestText(unittest.TestCase): def test_text_output(self): print('-' * 32) print("testing menu.Text") texts = [ menu.Text('Success', 'green'), menu.Text('Info', 'blue'), menu.Text('Error', 'red') ] ...
28.439024
102
0.557461
7958fcc6c64cd3ed9f80fcc6dabf2109bbddd58a
118
py
Python
lib/galaxy/version.py
tsungjui/fusionline
26d5d41e82ac83822ba41df1cd14c54afa112655
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/version.py
tsungjui/fusionline
26d5d41e82ac83822ba41df1cd14c54afa112655
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/version.py
tsungjui/fusionline
26d5d41e82ac83822ba41df1cd14c54afa112655
[ "CC-BY-3.0" ]
null
null
null
VERSION_MAJOR = "17.01" VERSION_MINOR = None VERSION = VERSION_MAJOR + ('.' + VERSION_MINOR if VERSION_MINOR else '')
29.5
72
0.728814
7958fd3e335e3610976a4a76a66ff29d4fec6333
183
py
Python
kinton/file_system.py
the-cocktail/kinton
e43c22260064a22cb90d30cf856e874a91ea9587
[ "MIT" ]
2
2018-02-06T09:08:29.000Z
2018-09-24T08:06:16.000Z
kinton/file_system.py
the-cocktail/kinton
e43c22260064a22cb90d30cf856e874a91ea9587
[ "MIT" ]
1
2018-09-26T12:18:18.000Z
2018-09-26T12:18:18.000Z
kinton/file_system.py
the-cocktail/kinton
e43c22260064a22cb90d30cf856e874a91ea9587
[ "MIT" ]
1
2018-01-29T17:09:02.000Z
2018-01-29T17:09:02.000Z
import os import shutil class FileSystem: def create_folder(path): if not os.path.exists(path): os.makedirs(path) def remove_folder(path): shutil.rmtree(path)
16.636364
32
0.688525
7958fe7bcc628a6d158a5b17d14df3e3c75d0ae5
2,209
py
Python
examples/003_evaluation_one_dataset.py
szghlm/smote_variants
9066ddbd526b18bb273746c1b989e8e07a35abd2
[ "MIT" ]
271
2020-01-18T09:04:35.000Z
2022-03-31T11:49:12.000Z
examples/003_evaluation_one_dataset.py
szghlm/smote_variants
9066ddbd526b18bb273746c1b989e8e07a35abd2
[ "MIT" ]
19
2020-05-04T18:24:03.000Z
2022-03-21T23:44:43.000Z
examples/003_evaluation_one_dataset.py
szghlm/smote_variants
9066ddbd526b18bb273746c1b989e8e07a35abd2
[ "MIT" ]
70
2020-01-18T15:01:43.000Z
2022-03-28T15:10:19.000Z
# coding: utf-8 # # Evaluation of oversamplers with a set of classifiers on one database # # In this notebook we give an example of optimizing oversamplers and classifiers for given dataset. # In[1]: import os.path from sklearn.neighbors import KNeighborsClassifier from sklearn.tree import DecisionTreeClassifier...
22.313131
108
0.641919
7958feea9ffec546fc256084af68e1badac7611d
494
py
Python
ACME/math/linint.py
mauriziokovacic/ACME
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
3
2019-10-23T23:10:55.000Z
2021-09-01T07:30:14.000Z
ACME/math/linint.py
mauriziokovacic/ACME-Python
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
null
null
null
ACME/math/linint.py
mauriziokovacic/ACME-Python
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
1
2020-07-11T11:35:43.000Z
2020-07-11T11:35:43.000Z
import torch from ..utility.istorch import * def linint(A, B, t): """ Computes the linear interpolation between the two input at the specified parameter Parameters ---------- A : Tensor the first input tensor B : Tensor the second input tensor t : float the interpo...
18.296296
86
0.578947
7958ff306d8e6a38ae2771ed853bdc831406b360
6,743
py
Python
ckan_cloud_operator/providers/cluster/aws/manager.py
mickeyrouash/ckan-cloud-operator
10e38f13964af30fe57b07e8d8a3b7521ed69cc2
[ "MIT" ]
null
null
null
ckan_cloud_operator/providers/cluster/aws/manager.py
mickeyrouash/ckan-cloud-operator
10e38f13964af30fe57b07e8d8a3b7521ed69cc2
[ "MIT" ]
null
null
null
ckan_cloud_operator/providers/cluster/aws/manager.py
mickeyrouash/ckan-cloud-operator
10e38f13964af30fe57b07e8d8a3b7521ed69cc2
[ "MIT" ]
null
null
null
#### standard provider code #### # import the correct PROVIDER_SUBMODULE and PROVIDER_ID constants for your provider from .constants import PROVIDER_ID from ..constants import PROVIDER_SUBMODULE # define common provider functions based on the constants from ckan_cloud_operator.providers import manager as providers_ma...
43.785714
273
0.677888
7959003e6e94c565cba18407e915b39e1e488a7f
6,843
py
Python
cohesity_management_sdk/http/http_client.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/http/http_client.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/http/http_client.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. from cohesity_management_sdk.http.http_method_enum import HttpMethodEnum from cohesity_management_sdk.http.http_request import HttpRequest class HttpClient(object): """An interface for the methods that an HTTP Client must implement This class should no...
35.092308
92
0.555897
795902765be5618c63ab684d03e9e95f556ed8ff
190
py
Python
flying_bear_bot/urls.py
wolendranh/flying_bear_bot
0b8a8ad47a744146e59cc218dc6d6547fb9b6c0e
[ "Apache-2.0" ]
1
2018-12-28T13:58:56.000Z
2018-12-28T13:58:56.000Z
flying_bear_bot/urls.py
wolendranh/flying_bear_bot
0b8a8ad47a744146e59cc218dc6d6547fb9b6c0e
[ "Apache-2.0" ]
12
2019-12-04T22:16:35.000Z
2022-03-12T00:50:02.000Z
flying_bear_bot/urls.py
wolendranh/flying_bear_bot
0b8a8ad47a744146e59cc218dc6d6547fb9b6c0e
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url, include from django.contrib import admin urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^bot_register/', include('bot_register.urls')), ]
23.75
57
0.705263
79590277b52e59f190bbaf0c7423f80d7cbd2b19
667
py
Python
src/match_modality/methods/dummy_constant/script.py
hhuuggoo/neurips2021_multimodal_viash
f17af09a34ecac6309bcd7b5f8f5122e09318e0c
[ "MIT" ]
null
null
null
src/match_modality/methods/dummy_constant/script.py
hhuuggoo/neurips2021_multimodal_viash
f17af09a34ecac6309bcd7b5f8f5122e09318e0c
[ "MIT" ]
null
null
null
src/match_modality/methods/dummy_constant/script.py
hhuuggoo/neurips2021_multimodal_viash
f17af09a34ecac6309bcd7b5f8f5122e09318e0c
[ "MIT" ]
null
null
null
import anndata import numpy as np # VIASH START par = { "input_mod1": "resources_test/match_modality/test_resource.mod1.h5ad", "input_mod2": "resources_test/match_modality/test_resource.mod2.h5ad", "output": "resources_test/match_modality/test_resource.prediction.h5ad", } # VIASH END # load dataset to be ...
26.68
76
0.721139
795902841a8a600a7373c64060cdd70153cd1ac0
12,113
py
Python
gamestonk_terminal/fundamental_analysis/market_watch_api.py
sandsturm/GamestonkTerminal
1969ff3b251711099a448024ec71e5b4e50413f7
[ "MIT" ]
null
null
null
gamestonk_terminal/fundamental_analysis/market_watch_api.py
sandsturm/GamestonkTerminal
1969ff3b251711099a448024ec71e5b4e50413f7
[ "MIT" ]
null
null
null
gamestonk_terminal/fundamental_analysis/market_watch_api.py
sandsturm/GamestonkTerminal
1969ff3b251711099a448024ec71e5b4e50413f7
[ "MIT" ]
null
null
null
import argparse import requests import pandas as pd from bs4 import BeautifulSoup from gamestonk_terminal.helper_funcs import ( get_user_agent, parse_known_args_and_warn, patch_pandas_text_adjustment, financials_colored_values, ) from gamestonk_terminal import feature_flags as gtff def income(l_args, ...
44.862963
119
0.669694
79590437b5ed7df3a1392406a9c5fd717d4be296
762
py
Python
cmake_configuration.py
Stefantb/CMakeTools
3fd909e0d45034180e8cf97d73779468c555368f
[ "MIT" ]
null
null
null
cmake_configuration.py
Stefantb/CMakeTools
3fd909e0d45034180e8cf97d73779468c555368f
[ "MIT" ]
null
null
null
cmake_configuration.py
Stefantb/CMakeTools
3fd909e0d45034180e8cf97d73779468c555368f
[ "MIT" ]
null
null
null
class CMakeConfiguration: __slots__ = ('cmake_binary', 'source_folder', 'build_folder', 'generator', 'arguments') def __init__(self, cmake_binary: str, source_folder: str, build_folder: str, generator: str, arguments: dict): self.cmake_binary = cmake_binary s...
29.307692
69
0.595801
795906faf251573e44c7a500c239bb744593a6e9
957
py
Python
atman/__main__.py
adityaruplaha/attendance-manager
c1305717936453b6250cedf21266dab1a04b7be5
[ "BSD-3-Clause" ]
null
null
null
atman/__main__.py
adityaruplaha/attendance-manager
c1305717936453b6250cedf21266dab1a04b7be5
[ "BSD-3-Clause" ]
3
2021-01-04T16:36:15.000Z
2021-03-08T06:26:55.000Z
atman/__main__.py
adityaruplaha/atman
c1305717936453b6250cedf21266dab1a04b7be5
[ "BSD-3-Clause" ]
null
null
null
import getpass import atman.manager import atman.frontend import colorama username = input("Enter database username: ") password = getpass.getpass(prompt="Enter database password: ") database_name = input("Enter database name: ") connection_parameters = { 'host': "localhost", 'port': 3306, 'user': usern...
19.9375
75
0.691745
795906feeb6e1ee56670258141c2513b412544ac
1,257
py
Python
myvenv/Lib/site-packages/payments/widgets.py
Fa67/saleor-shop
76110349162c54c8bfcae61983bb59ba8fb0f778
[ "BSD-3-Clause" ]
3
2020-04-17T19:01:57.000Z
2022-03-07T19:54:43.000Z
myvenv/Lib/site-packages/payments/widgets.py
Fa67/saleor-shop
76110349162c54c8bfcae61983bb59ba8fb0f778
[ "BSD-3-Clause" ]
5
2020-03-24T16:37:25.000Z
2021-06-10T21:24:54.000Z
upibo-venv/Lib/site-packages/payments/widgets.py
smbpgroup/upibo
625dcda9f9692c62aeb9fe8f7123a5d407c610ae
[ "BSD-3-Clause" ]
1
2020-08-18T18:15:04.000Z
2020-08-18T18:15:04.000Z
import re from django.forms.widgets import TextInput, MultiWidget, Select class CreditCardNumberWidget(TextInput): def render(self, name, value, attrs=None): if value: value = re.sub('[\s-]', '', value) if len(value) == 16: value = ' '.join([value[0:4], value[4:8]...
30.658537
77
0.609387
7959074a47108d35de961c951512f8bb3d28998d
3,376
py
Python
monasca_analytics/sml/logistic_regression.py
daisuke-fujita/monsaca-analytics_20181107
5809e66874d76bd9f102e7694197bd849210fa3b
[ "Apache-2.0" ]
null
null
null
monasca_analytics/sml/logistic_regression.py
daisuke-fujita/monsaca-analytics_20181107
5809e66874d76bd9f102e7694197bd849210fa3b
[ "Apache-2.0" ]
1
2019-01-21T09:44:29.000Z
2019-01-21T09:44:29.000Z
monasca_analytics/sml/logistic_regression.py
daisuke-fujita/monsaca-analytics_20181107
5809e66874d76bd9f102e7694197bd849210fa3b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2016 FUJITSU LIMITED # # 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 la...
33.425743
79
0.665284
79590788673c56827b2800c3f2364bd350a1d477
2,424
py
Python
invenio_records/models.py
ppanero/invenio-records
b0b1481d04012e45cb71b5ae4019e91dde88d1e2
[ "MIT" ]
null
null
null
invenio_records/models.py
ppanero/invenio-records
b0b1481d04012e45cb71b5ae4019e91dde88d1e2
[ "MIT" ]
null
null
null
invenio_records/models.py
ppanero/invenio-records
b0b1481d04012e45cb71b5ae4019e91dde88d1e2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2015-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Record models.""" import uuid from datetime import datetime from invenio_db impo...
25.515789
79
0.648515
795907a154d694b64c887e50696352ac36c8c823
22,077
py
Python
mvpa2/generators/partition.py
thomastweets/PyMVPA
a9c05acd7569639bb636aed3c22a13b21559ca02
[ "MIT" ]
1
2016-08-23T05:04:09.000Z
2016-08-23T05:04:09.000Z
mvpa2/generators/partition.py
thomastweets/PyMVPA
a9c05acd7569639bb636aed3c22a13b21559ca02
[ "MIT" ]
null
null
null
mvpa2/generators/partition.py
thomastweets/PyMVPA
a9c05acd7569639bb636aed3c22a13b21559ca02
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the PyMVPA package for the # copyright and license terms. # ### ### ### ### ###...
37.93299
84
0.592064
795907e92e52c9832c578a4d9ba7a154b9136a39
475
py
Python
makemessages.py
jackton1/django-service-objects
cdcaedb64154b949ab6c5e5de60b4f9835f1cc98
[ "MIT" ]
328
2017-08-13T19:09:31.000Z
2022-03-30T09:02:35.000Z
makemessages.py
jackton1/django-service-objects
cdcaedb64154b949ab6c5e5de60b4f9835f1cc98
[ "MIT" ]
50
2017-08-17T02:31:49.000Z
2022-02-23T22:45:13.000Z
makemessages.py
jackton1/django-service-objects
cdcaedb64154b949ab6c5e5de60b4f9835f1cc98
[ "MIT" ]
32
2017-08-15T03:29:53.000Z
2022-01-24T22:18:05.000Z
import os import django from django.conf import settings from django.core import management BASE_DIR = os.path.dirname(__file__) settings.configure( DATABASES={ 'default': { 'ENGINE': 'django.db.backends.sqlite3', } }, LOCALE_PATHS=( os.path.join(BASE_DIR, 'loca...
19.791667
70
0.604211
795907f67ca47c3be4b267da774edd733ef4c68b
1,034
py
Python
kubernetes_asyncio/test/test_v1_projected_volume_source.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_v1_projected_volume_source.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_v1_projected_volume_source.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.14.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import kube...
25.85
124
0.743714
7959085f033f86092c7627b0914a72900d850aa3
22,082
py
Python
Python27/Lib/bsddb/test/test_replication.py
Jeff-Tian/mybnb
1a42890a1d2f1344d5465f8be10c42df01964f5a
[ "Apache-2.0" ]
1
2019-05-17T08:58:11.000Z
2019-05-17T08:58:11.000Z
Python27/Lib/bsddb/test/test_replication.py
Jeff-Tian/mybnb
1a42890a1d2f1344d5465f8be10c42df01964f5a
[ "Apache-2.0" ]
2
2016-12-12T05:54:58.000Z
2016-12-12T05:55:44.000Z
Python27/Lib/bsddb/test/test_replication.py
Jeff-Tian/mybnb
1a42890a1d2f1344d5465f8be10c42df01964f5a
[ "Apache-2.0" ]
null
null
null
"""TestCases for distributed transactions. """ import os import time import unittest from test_all import db, test_support, have_threads, verbose, \ get_new_environment_path, get_new_database_path #---------------------------------------------------------------------- class DBReplication(unitt...
40.591912
98
0.577212
79590923c22ea1d25379dad0673a358ddf6d5faf
1,537
py
Python
main.py
mkcarl/NovelScraper
8c6bc11197add9149057edfc0d9c7105745aa24a
[ "MIT" ]
null
null
null
main.py
mkcarl/NovelScraper
8c6bc11197add9149057edfc0d9c7105745aa24a
[ "MIT" ]
null
null
null
main.py
mkcarl/NovelScraper
8c6bc11197add9149057edfc0d9c7105745aa24a
[ "MIT" ]
null
null
null
import WebProcesses from ebooklib import epub import os import time def main(): NOVEL_BASE_URL = "https://www.wuxiaworld.com/novel/rmji/rmji-chapter-" novel = WebProcesses.Novel(NOVEL_BASE_URL, 0, 2110) # Change me novel.content_id = "chapter-content" # Change me novel.name = "A Record of a Mortal's Jo...
31.367347
118
0.640859
795909c59fbbd0a7f67f1165db0673e3b04a07df
576
py
Python
the_site/auth/views.py
Er-sumit/django-jwt
813beec098112f4b731e10319fda656384dfeeb7
[ "MIT" ]
null
null
null
the_site/auth/views.py
Er-sumit/django-jwt
813beec098112f4b731e10319fda656384dfeeb7
[ "MIT" ]
null
null
null
the_site/auth/views.py
Er-sumit/django-jwt
813beec098112f4b731e10319fda656384dfeeb7
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. from django.http import HttpResponse from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.permissions import IsAuthenticated from django.views import View def index(request): return HttpResponse("...
27.428571
101
0.765625
79590e61f5ae980f173fba603325289bc3bcaf26
6,407
py
Python
k2/python/tests/index_test.py
pzelasko/k2
2dbb3e09b152fcf98354c946baa271e5b57c8321
[ "Apache-2.0" ]
null
null
null
k2/python/tests/index_test.py
pzelasko/k2
2dbb3e09b152fcf98354c946baa271e5b57c8321
[ "Apache-2.0" ]
null
null
null
k2/python/tests/index_test.py
pzelasko/k2
2dbb3e09b152fcf98354c946baa271e5b57c8321
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) # Xiaomi Corporation (authors: Haowen Qiu) # # See ../../../LICENSE for clarification regarding multiple authors # To run this single test, use # # ctest --verbose -R index_test_py import unittest import...
39.549383
79
0.474325
79590ea2affde36f6ab85c172f0dfbd0b988546b
5,299
py
Python
market1501/make_hdf5_for_market1501.py
luweijia1013/ReID-2015
ae415b3aa8cd3a1c0bd366284be5b106212c5473
[ "MIT" ]
3
2018-04-17T03:05:51.000Z
2019-12-07T00:36:48.000Z
market1501/make_hdf5_for_market1501.py
luweijia1013/ReID-2015
ae415b3aa8cd3a1c0bd366284be5b106212c5473
[ "MIT" ]
null
null
null
market1501/make_hdf5_for_market1501.py
luweijia1013/ReID-2015
ae415b3aa8cd3a1c0bd366284be5b106212c5473
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import h5py import numpy as np from PIL import Image def make_positive_index_market1501(train_or_test = 'train',user_name = 'workspace'): f = h5py.File('market1501_positive_index.h5') path_list = get_image_path_list(train_or_test = train_or_test, system_user_name = use...
42.392
131
0.545763
79590f3f1736b1969d06bb65bc8f5b9f74a0cd1a
41,567
py
Python
resources/usr/lib/python2.7/dist-packages/numpy/polynomial/chebyshev.py
edawson/parliament2
2632aa3484ef64c9539c4885026b705b737f6d1e
[ "Apache-2.0" ]
null
null
null
resources/usr/lib/python2.7/dist-packages/numpy/polynomial/chebyshev.py
edawson/parliament2
2632aa3484ef64c9539c4885026b705b737f6d1e
[ "Apache-2.0" ]
null
null
null
resources/usr/lib/python2.7/dist-packages/numpy/polynomial/chebyshev.py
edawson/parliament2
2632aa3484ef64c9539c4885026b705b737f6d1e
[ "Apache-2.0" ]
1
2020-05-28T23:01:44.000Z
2020-05-28T23:01:44.000Z
""" Objects for dealing with Chebyshev series. This module provides a number of objects (mostly functions) useful for dealing with Chebyshev series, including a `Chebyshev` class that encapsulates the usual arithmetic operations. (General information on how this module represents and works with such polynomials is in...
28.64714
79
0.596387
7959105a7099848bfde754a5af3e191bd07de5f1
1,833
py
Python
Mining/Mind.py
penut85420/FinMind
df2aa29d6fbf180d5a701bb2c207197e9324f857
[ "Apache-2.0" ]
null
null
null
Mining/Mind.py
penut85420/FinMind
df2aa29d6fbf180d5a701bb2c207197e9324f857
[ "Apache-2.0" ]
null
null
null
Mining/Mind.py
penut85420/FinMind
df2aa29d6fbf180d5a701bb2c207197e9324f857
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import requests from FinMind.Data import Load def MoveAverage(stock_price,days = 5,variable = 'close'): # variable = 'close' # days = 5 return stock_price[variable].rolling(window = days).mean() def RSV(stock_price,days = 9): sp = stock_price #rsv_list ...
29.095238
89
0.570104
795910d35c5159642e4f8c92b60c5f9b7b616842
3,002
py
Python
dgfbot/views.py
olegaobini/dontGetFiredBot
4421170337e9ffbc356e7c97db2cb3a70ce89c69
[ "MIT" ]
1
2022-02-21T02:18:28.000Z
2022-02-21T02:18:28.000Z
dgfbot/views.py
olegaobini/dontGetFiredBot
4421170337e9ffbc356e7c97db2cb3a70ce89c69
[ "MIT" ]
null
null
null
dgfbot/views.py
olegaobini/dontGetFiredBot
4421170337e9ffbc356e7c97db2cb3a70ce89c69
[ "MIT" ]
null
null
null
from dgfbot.device_facade import * from dgfbot.utils import similar_arr_in_list, checkImage, ImageDraw, Image import numpy """ hiring process view dialog view CS 640x1520 """ screenPath = "screenshots\\screenshot.png" class mainView: def __init__(self, device: DeviceFacade): self.device...
29.722772
85
0.541306
795911bc2020fdc400f56ddafd661d5d2cad1e61
2,848
py
Python
bbs/settings.py
wangqiang001/bbs
3b7193b948e8c2a3c3e5d42471c9bd29a73b7a6a
[ "MIT" ]
null
null
null
bbs/settings.py
wangqiang001/bbs
3b7193b948e8c2a3c3e5d42471c9bd29a73b7a6a
[ "MIT" ]
2
2019-01-22T11:48:17.000Z
2019-01-22T12:04:17.000Z
bbs/settings.py
wangqiang001/bbs
3b7193b948e8c2a3c3e5d42471c9bd29a73b7a6a
[ "MIT" ]
null
null
null
""" Django settings for bbs project. Generated by 'django-admin startproject' using Django 1.11.15. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os #...
23.733333
91
0.692065
795911fea2965b162c93164c04d040ea51055665
1,042
py
Python
src/EmotionsRecognizer/text_process/predict_text.py
Ahostility/AnalyzePeople-1
edcd70fd6b236f4fafdbe4565b8a4975c1e084e4
[ "Apache-2.0" ]
null
null
null
src/EmotionsRecognizer/text_process/predict_text.py
Ahostility/AnalyzePeople-1
edcd70fd6b236f4fafdbe4565b8a4975c1e084e4
[ "Apache-2.0" ]
null
null
null
src/EmotionsRecognizer/text_process/predict_text.py
Ahostility/AnalyzePeople-1
edcd70fd6b236f4fafdbe4565b8a4975c1e084e4
[ "Apache-2.0" ]
null
null
null
from dostoevsky.tokenization import RegexTokenizer from dostoevsky.models import FastTextSocialNetworkModel from .parse_kaldi import open_text tokenizer = RegexTokenizer() # токенизатор текста text_model = FastTextSocialNetworkModel(tokenizer=tokenizer) # модель анализа тональности to_numbers = { 'negative': 0,...
24.809524
90
0.71881
795912988bed0500d18b583bb5b81addce072f78
1,532
py
Python
acmicpc/7576/7576.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
3
2019-03-09T05:19:23.000Z
2019-04-06T09:26:36.000Z
acmicpc/7576/7576.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2020-02-23T10:38:04.000Z
2020-02-23T10:38:04.000Z
acmicpc/7576/7576.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2019-05-22T13:47:53.000Z
2019-05-22T13:47:53.000Z
def bfs(farm:list, tomatoes:list, tcount:int, urcount:int)->int: dx = [-1, 0, 1, 0] dy = [0, 1, 0, -1] is_changed = True count = 0 while is_changed: next_tomatoes = [] count += 1 is_changed = False while tomatoes: tomato = tomatoes.pop() x, y =...
25.966102
74
0.474543
795913526defac367a98ece52152f73e6c54bfe1
6,298
py
Python
zvmsdk/sdkwsgi/validation/parameter_types.py
jichenjc/python-zvm-sdk
c081805c6079107b4823af898babdf92cf5577ee
[ "Apache-2.0" ]
null
null
null
zvmsdk/sdkwsgi/validation/parameter_types.py
jichenjc/python-zvm-sdk
c081805c6079107b4823af898babdf92cf5577ee
[ "Apache-2.0" ]
null
null
null
zvmsdk/sdkwsgi/validation/parameter_types.py
jichenjc/python-zvm-sdk
c081805c6079107b4823af898babdf92cf5577ee
[ "Apache-2.0" ]
null
null
null
# 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 # d...
24.893281
78
0.572563
7959139f83b81e1fa0bc5d4aaa1b624585313fe3
1,185
py
Python
test/test_scheduled_task_details_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
test/test_scheduled_task_details_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
test/test_scheduled_task_details_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Octopus Server API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a Generated by: https://github.com/swagger-api...
28.902439
131
0.763713
795913a976b849dfe9f09972fbeb46eef68fc598
1,755
py
Python
05_weather_client/program.py
CarlosJimeno/Python-JumpStart-by-Building-10-apps
9111ae2eb1eb61dc368c1eb681711bc40d902b52
[ "MIT" ]
null
null
null
05_weather_client/program.py
CarlosJimeno/Python-JumpStart-by-Building-10-apps
9111ae2eb1eb61dc368c1eb681711bc40d902b52
[ "MIT" ]
null
null
null
05_weather_client/program.py
CarlosJimeno/Python-JumpStart-by-Building-10-apps
9111ae2eb1eb61dc368c1eb681711bc40d902b52
[ "MIT" ]
null
null
null
import requests import bs4 import collections WeatherReport = collections.namedtuple('WeatherReport', 'cond, temp, scale, loc') def main(): print_header() code = input('What zipcode do you want to use? ') html = get_html_from_web(code) report = get_weather_fr...
24.375
86
0.621083
795913f5a00a01f8fde3d57cdb8455a06956c360
1,903
py
Python
pyrevolve/genotype/lsystem_neat/crossover.py
braj29/robo_swimmers
b3c3fa91976884095eb6b5e67844167598ec573d
[ "Apache-1.1" ]
null
null
null
pyrevolve/genotype/lsystem_neat/crossover.py
braj29/robo_swimmers
b3c3fa91976884095eb6b5e67844167598ec573d
[ "Apache-1.1" ]
null
null
null
pyrevolve/genotype/lsystem_neat/crossover.py
braj29/robo_swimmers
b3c3fa91976884095eb6b5e67844167598ec573d
[ "Apache-1.1" ]
null
null
null
from pyrevolve.genotype.plasticoding.plasticoding import Plasticoding, Alphabet from pyrevolve.genotype.lsystem_neat.lsystem_neat_genotype import LSystemCPGHyperNEATGenotype from pyrevolve.genotype.neat_brain_genome.crossover import NEATCrossoverConf from pyrevolve.genotype.neat_brain_genome.crossover import standard_c...
38.836735
124
0.781923
795914e15637b1885ef00fd4c774b7ed3e870a32
98
py
Python
scripts/portal/in_ban.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/portal/in_ban.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/portal/in_ban.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# Created by MechAviv # ID :: [865000000] # Commerci Republic : San Commerci sm.warp(865000003, 1)
24.5
34
0.72449
7959153a759657ee7eb8bb6269c0b99a12dab94b
8,939
py
Python
tf_agents/policies/py_tf_policy.py
Francis777/agents
24e878a697be418307cfbff69724d86be767719d
[ "Apache-2.0" ]
null
null
null
tf_agents/policies/py_tf_policy.py
Francis777/agents
24e878a697be418307cfbff69724d86be767719d
[ "Apache-2.0" ]
null
null
null
tf_agents/policies/py_tf_policy.py
Francis777/agents
24e878a697be418307cfbff69724d86be767719d
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The TF-Agents 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
38.038298
80
0.695604
79591658b4bedf95b8eafb0e23471e9714785784
1,533
py
Python
tools/configen/tests/test_modules/future_annotations.py
sara-nl/hydra
8fd0d23d71cf528528ca5eda26e0c1f0c1e973d7
[ "MIT" ]
null
null
null
tools/configen/tests/test_modules/future_annotations.py
sara-nl/hydra
8fd0d23d71cf528528ca5eda26e0c1f0c1e973d7
[ "MIT" ]
null
null
null
tools/configen/tests/test_modules/future_annotations.py
sara-nl/hydra
8fd0d23d71cf528528ca5eda26e0c1f0c1e973d7
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from __future__ import annotations # type: ignore # noqa: F407 from dataclasses import dataclass from typing import List, Optional from omegaconf import MISSING @dataclass class User: name: str = MISSING age: int = MISSING class Libra...
27.872727
77
0.634703
7959185032c26caa9f9c672ddcbb4d456b467c18
647
py
Python
tests/migrations/test_migrations_first/second.py
iMerica/dj-models
fbe4a55ac362f9355a2298f58aa0deb0b6082e19
[ "BSD-3-Clause" ]
5
2019-02-15T16:47:50.000Z
2021-12-26T18:52:23.000Z
tests/migrations/test_migrations_first/second.py
iMerica/dj-models
fbe4a55ac362f9355a2298f58aa0deb0b6082e19
[ "BSD-3-Clause" ]
null
null
null
tests/migrations/test_migrations_first/second.py
iMerica/dj-models
fbe4a55ac362f9355a2298f58aa0deb0b6082e19
[ "BSD-3-Clause" ]
2
2021-08-09T02:29:09.000Z
2021-08-20T03:30:11.000Z
from djmodels.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("migrations", "thefirst"), ("migrations2", "0002_second"), ] operations = [ migrations.DeleteModel("Tribble"), migrations.RemoveField("Author", "silly_field"), m...
23.107143
95
0.57187
795918b3dc00fd7eb6ca9f4e5178eb83f87fed73
1,754
py
Python
py/dcp/problems/misc/pattern_matching.py
bmoretz/Daily-Coding-Problem
f79e062e9f6e7b18b7e95c071fbe71ad104affcb
[ "MIT" ]
1
2020-06-26T13:28:43.000Z
2020-06-26T13:28:43.000Z
py/dcp/problems/misc/pattern_matching.py
bmoretz/Daily-Coding-Problem
f79e062e9f6e7b18b7e95c071fbe71ad104affcb
[ "MIT" ]
7
2021-11-18T19:46:08.000Z
2022-03-12T01:03:01.000Z
py/dcp/problems/misc/pattern_matching.py
bmoretz/Daily-Coding-Problem
f79e062e9f6e7b18b7e95c071fbe71ad104affcb
[ "MIT" ]
null
null
null
""" Pattern Matching. You are given two strings, pattern and value. The pattern string consists of just the letters a and b, describing a pattern within a string. For example, the string catcatgocatgo matches the pattern aabab (where cat is a and go is b). It also matches patterns like a, ab, and b. Write a method to ...
24.361111
76
0.531357
79591939bad209771e6fefdee5745d01f55610be
13,366
py
Python
reversion/revisions.py
bellini666/django-reversion
3be3e51ed20bf3f3db07b069a03923ca889f69b2
[ "BSD-3-Clause" ]
null
null
null
reversion/revisions.py
bellini666/django-reversion
3be3e51ed20bf3f3db07b069a03923ca889f69b2
[ "BSD-3-Clause" ]
null
null
null
reversion/revisions.py
bellini666/django-reversion
3be3e51ed20bf3f3db07b069a03923ca889f69b2
[ "BSD-3-Clause" ]
null
null
null
from contextvars import ContextVar from collections import namedtuple, defaultdict from contextlib import contextmanager from functools import wraps from django.apps import apps from django.core import serializers from django.core.exceptions import ObjectDoesNotExist from django.db import models, transaction, router fr...
31.011601
103
0.662577
79591a2260195efbc52e75d062179cd21347463b
1,543
py
Python
arcade/gui/examples/box_group.py
akapkotel/arcade
6e43ec53e7bfa3dee1aa574404794e3695aad381
[ "MIT" ]
null
null
null
arcade/gui/examples/box_group.py
akapkotel/arcade
6e43ec53e7bfa3dee1aa574404794e3695aad381
[ "MIT" ]
1
2022-03-21T06:24:29.000Z
2022-03-21T06:24:29.000Z
arcade/gui/examples/box_group.py
Ibrahim2750mi/arcade
bf3229e64117931bffb8e50926a996a7a8fc9b8b
[ "MIT" ]
null
null
null
import arcade from arcade.gui import UIManager, UIBoxLayout from arcade.gui.widgets import UIDummy, UISpace from arcade.gui.widgets.layout import UIAnchorLayout class UIMockup(arcade.Window): def __init__(self): super().__init__(800, 600, "UI Mockup", resizable=True) self.manager = UIManager() ...
28.574074
84
0.564485
79591c0692d7618f5316e7b429e8d2302c7453e9
1,617
py
Python
src/get_more_features/get_reading_level.py
kashev/reddit-reliability
6d92486019b9264d2b7bfd51912ef257fc6088ae
[ "MIT" ]
null
null
null
src/get_more_features/get_reading_level.py
kashev/reddit-reliability
6d92486019b9264d2b7bfd51912ef257fc6088ae
[ "MIT" ]
null
null
null
src/get_more_features/get_reading_level.py
kashev/reddit-reliability
6d92486019b9264d2b7bfd51912ef257fc6088ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python ## -*- coding: utf-8 -*- # reddit-reliability import pymongo from textstat.textstat import textstat from pymongo import MongoClient def main(): mongo_client = MongoClient('mongodb://cs598tar:cs598tar@' '107.170.215.176:27017') reddit_data = mongo_client.re...
30.509434
76
0.606679
79591c2f6720db8aa3a9952697556ade325272de
6,198
py
Python
arjuna/core/discovery.py
test-mile/arjuna
21880b41e061e11bac2e600a3614684f8af75b2f
[ "Apache-2.0" ]
9
2018-11-15T10:09:17.000Z
2021-01-12T05:59:19.000Z
arjuna/core/discovery.py
test-mile/arjuna
21880b41e061e11bac2e600a3614684f8af75b2f
[ "Apache-2.0" ]
2
2019-07-01T15:33:46.000Z
2019-07-12T13:04:08.000Z
arjuna/core/discovery.py
test-mile/arjuna
21880b41e061e11bac2e600a3614684f8af75b2f
[ "Apache-2.0" ]
4
2018-12-02T15:14:04.000Z
2020-05-28T12:57:24.000Z
''' This file is a part of Test Mile Arjuna Copyright 2018 Test Mile Software Testing Pvt Ltd Website: www.TestMile.com Email: support [at] testmile.com Creator: Rahul Verma 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 ...
43.957447
115
0.626492
79591c4b891257d60320b96c04dfa00d8443b0ec
9,095
py
Python
lib/primestonelib.py
edgaralenpwn/primestoneSentinel
71c2d72fb12b90e5ba1832776581fb6e2306a287
[ "MIT" ]
null
null
null
lib/primestonelib.py
edgaralenpwn/primestoneSentinel
71c2d72fb12b90e5ba1832776581fb6e2306a287
[ "MIT" ]
null
null
null
lib/primestonelib.py
edgaralenpwn/primestoneSentinel
71c2d72fb12b90e5ba1832776581fb6e2306a287
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..')) sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'lib')) import base58 import hashlib import re from decimal import Decimal import simplejson import binascii from misc import printdbg, epoch2str import time def is_valid_p...
29.529221
103
0.632655
79591c806e37cfddd012f73141cd8bc62b037109
6,287
py
Python
models_clevr_snmn/output_unit.py
AgarwalVedika/snmn_cvpr
494dbc36ae4938d4f16072c4d91e7fbdfd76723f
[ "BSD-2-Clause" ]
null
null
null
models_clevr_snmn/output_unit.py
AgarwalVedika/snmn_cvpr
494dbc36ae4938d4f16072c4d91e7fbdfd76723f
[ "BSD-2-Clause" ]
null
null
null
models_clevr_snmn/output_unit.py
AgarwalVedika/snmn_cvpr
494dbc36ae4938d4f16072c4d91e7fbdfd76723f
[ "BSD-2-Clause" ]
null
null
null
import tensorflow as tf from tensorflow import convert_to_tensor as to_T, newaxis as ax from .config import cfg from util.cnn import fc_layer as fc, fc_elu_layer as fc_elu, conv_layer as conv import ipdb def build_output_unit_vqa(q_encoding, m_last, num_choices, apply_dropout, scope='output_...
39.540881
79
0.613806
79591cea06b9747769fcf0c59477363e68c0095a
10,032
py
Python
sdk/core/azure-core/azure/core/pipeline/transport/_requests_basic.py
ellismg/azure-sdk-for-python
9e1e067feddd23c90b17be03b7f4f85d12f7d05b
[ "MIT" ]
null
null
null
sdk/core/azure-core/azure/core/pipeline/transport/_requests_basic.py
ellismg/azure-sdk-for-python
9e1e067feddd23c90b17be03b7f4f85d12f7d05b
[ "MIT" ]
null
null
null
sdk/core/azure-core/azure/core/pipeline/transport/_requests_basic.py
ellismg/azure-sdk-for-python
9e1e067feddd23c90b17be03b7f4f85d12f7d05b
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""), ...
39.341176
116
0.648724
79591dbf5284c5487705229bc3eb520aca27d1d6
14,974
py
Python
harness/tests/experiment/utils.py
gh-determined-ai/determined
9a1ab33a3a356b69681b3351629fef4ab98ddb56
[ "Apache-2.0" ]
null
null
null
harness/tests/experiment/utils.py
gh-determined-ai/determined
9a1ab33a3a356b69681b3351629fef4ab98ddb56
[ "Apache-2.0" ]
null
null
null
harness/tests/experiment/utils.py
gh-determined-ai/determined
9a1ab33a3a356b69681b3351629fef4ab98ddb56
[ "Apache-2.0" ]
null
null
null
import os import pathlib from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Type import numpy as np import pytest from mypy_extensions import DefaultNamedArg from tensorflow.keras import utils as keras_utils import determined as det from determined import core, gpu, keras, workload class Train...
34.422989
100
0.656872