hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 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 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | 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 251 | max_forks_repo_name stringlengths 4 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.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
677d56032178efeb016755dc92a217e0030b9013 | 926 | py | Python | utils/exceptions.py | acatiadroid/util-bot | 2a91aa4335c4a844f5335d70cb7c7c32dd8010be | [
"MIT"
] | 1 | 2021-06-02T18:59:34.000Z | 2021-06-02T18:59:34.000Z | utils/exceptions.py | acatiadroid/util-bot | 2a91aa4335c4a844f5335d70cb7c7c32dd8010be | [
"MIT"
] | null | null | null | utils/exceptions.py | acatiadroid/util-bot | 2a91aa4335c4a844f5335d70cb7c7c32dd8010be | [
"MIT"
] | 1 | 2021-05-22T19:53:43.000Z | 2021-05-22T19:53:43.000Z | from pymongo.errors import PyMongoError
def human_join(seq, delim=', ', final='or'):
size = len(seq)
if size == 0:
return ''
if size == 1:
return seq[0]
if size == 2:
return f'{seq[0]} {final} {seq[1]}'
return delim.join(seq[:-1]) + f' {final} {seq[-1]}'
| 22.047619 | 67 | 0.552916 |
677f07bacda33862018d0c3f5ae887b33c4fb2d4 | 45,205 | py | Python | envs/flatland/utils/gym_env_wrappers.py | netceteragroup/Flatland-Challenge | 4292e8aa778d264d025ad6d32926840864b22a21 | [
"MIT"
] | 4 | 2021-01-15T10:49:33.000Z | 2021-12-31T08:11:35.000Z | envs/flatland/utils/gym_env_wrappers.py | netceteragroup/Flatland-Challenge | 4292e8aa778d264d025ad6d32926840864b22a21 | [
"MIT"
] | null | null | null | envs/flatland/utils/gym_env_wrappers.py | netceteragroup/Flatland-Challenge | 4292e8aa778d264d025ad6d32926840864b22a21 | [
"MIT"
] | null | null | null |
from typing import Dict, Any, Optional, List
import gym
import numpy as np
from collections import defaultdict
from flatland.core.grid.grid4_utils import get_new_position
from flatland.envs.agent_utils import EnvAgent, RailAgentStatus
from flatland.envs.rail_env import RailEnv, RailEnvActions
from envs.flatland.obse... | 48.659849 | 224 | 0.596284 |
677f502efc17cc81872e696789bcab5852c8b1a5 | 1,226 | py | Python | acceptability/models/cbow_classifier.py | nyu-mll/CoLA-baselines | dd095d3646ed05a315280aaa8ed4ec84ba435b3e | [
"MIT"
] | 54 | 2018-05-31T22:57:28.000Z | 2022-03-17T13:25:49.000Z | acceptability/models/cbow_classifier.py | nyu-mll/CoLA-baselines | dd095d3646ed05a315280aaa8ed4ec84ba435b3e | [
"MIT"
] | 4 | 2018-06-06T14:15:10.000Z | 2020-08-07T16:35:50.000Z | acceptability/models/cbow_classifier.py | nyu-mll/CoLA-baselines | dd095d3646ed05a315280aaa8ed4ec84ba435b3e | [
"MIT"
] | 18 | 2018-07-10T12:18:17.000Z | 2022-03-02T22:19:22.000Z | import torch
from torch import nn
| 34.055556 | 71 | 0.577488 |
677f53508c3acb6aa3c5210a9a7139a828c94921 | 14,637 | py | Python | tests/test_validators.py | yaaminu/yaval | 32f04ecfa092c978fc026f6b7f58d6cf2defd8c9 | [
"MIT"
] | 14 | 2021-02-12T19:04:21.000Z | 2021-03-12T18:18:09.000Z | tests/test_validators.py | yaaminu/yaval | 32f04ecfa092c978fc026f6b7f58d6cf2defd8c9 | [
"MIT"
] | 5 | 2021-02-12T16:04:37.000Z | 2021-04-14T12:05:02.000Z | tests/test_validators.py | yaaminu/yaval | 32f04ecfa092c978fc026f6b7f58d6cf2defd8c9 | [
"MIT"
] | null | null | null | import datetime
from mock import Mock, call
import pytest
from finicky import ValidationException, is_int, is_float, is_str, is_date, is_dict, is_list
# noinspection PyShadowingBuiltins
# noinspection PyShadowingBuiltins
def test_must_return_none_when_input_is_none_and_required_is_false(self):
assert ... | 52.841155 | 122 | 0.683678 |
677f77f661f042444b5b6e3515ca7ba65cf1bbd5 | 583 | py | Python | polygon.py | SYED-RAFI-NAQVI/10hourcodingchallenge | 20c7c3aee52a2eb281381a9db4d57075cbf38446 | [
"MIT"
] | null | null | null | polygon.py | SYED-RAFI-NAQVI/10hourcodingchallenge | 20c7c3aee52a2eb281381a9db4d57075cbf38446 | [
"MIT"
] | null | null | null | polygon.py | SYED-RAFI-NAQVI/10hourcodingchallenge | 20c7c3aee52a2eb281381a9db4d57075cbf38446 | [
"MIT"
] | null | null | null | import numpy as np
import cv2 as cv
img = cv.imread('1.jpeg',cv.IMREAD_COLOR)
#for polygon we need to have set of points so we create a numpy array. and pts is an object.
pts = np.array([[20,33],[300,120], [67,79], [123,111], [144,134]], np.int32)
#the method polylines will actully draws a polygon by taking differe... | 32.388889 | 117 | 0.711835 |
67805442e518a6adbf84390b3eb7ec7d3ff5cd9c | 3,871 | py | Python | lib/fathead/firefox_about_config/parse.py | aeisenberg/zeroclickinfo-fathead | 9be00a038d812ca9ccd0d601220afde777ab2f8e | [
"Apache-2.0"
] | 1 | 2021-01-05T16:48:23.000Z | 2021-01-05T16:48:23.000Z | lib/fathead/firefox_about_config/parse.py | aeisenberg/zeroclickinfo-fathead | 9be00a038d812ca9ccd0d601220afde777ab2f8e | [
"Apache-2.0"
] | null | null | null | lib/fathead/firefox_about_config/parse.py | aeisenberg/zeroclickinfo-fathead | 9be00a038d812ca9ccd0d601220afde777ab2f8e | [
"Apache-2.0"
] | 1 | 2016-06-12T06:12:02.000Z | 2016-06-12T06:12:02.000Z | #!/usr/bin/env python2
from BeautifulSoup import BeautifulSoup, NavigableString
import urllib
import string
import re
if __name__ == "__main__":
parser = Parser()
parser.findEntries()
with open('output.txt', 'w') as file:
for entry in parser.entries:
file.write(entry.__str__().encod... | 42.538462 | 92 | 0.422113 |
6781793ae8fc13e5299017f4d13600e84c029c5a | 547 | py | Python | sources/simulators/multiprocessing_simulator/start_client.py | M4rukku/impact_of_non_iid_data_in_federated_learning | c818db03699c82e42217d56f8ddd4cc2081c8bb1 | [
"MIT"
] | null | null | null | sources/simulators/multiprocessing_simulator/start_client.py | M4rukku/impact_of_non_iid_data_in_federated_learning | c818db03699c82e42217d56f8ddd4cc2081c8bb1 | [
"MIT"
] | null | null | null | sources/simulators/multiprocessing_simulator/start_client.py | M4rukku/impact_of_non_iid_data_in_federated_learning | c818db03699c82e42217d56f8ddd4cc2081c8bb1 | [
"MIT"
] | null | null | null | import flwr as fl
import flwr.client
from sources.utils.simulation_parameters import DEFAULT_SERVER_ADDRESS
from sources.simulators.base_client_provider import BaseClientProvider
| 39.071429 | 90 | 0.824497 |
6785745e950d85dea8868d37187f8f6ecdfbf12a | 23,056 | py | Python | aea/helpers/pipe.py | bryanchriswhite/agents-aea | d3f177a963eb855d9528555167255bf2b478f4ba | [
"Apache-2.0"
] | 126 | 2019-09-07T09:32:44.000Z | 2022-03-29T14:28:41.000Z | aea/helpers/pipe.py | salman6049/agents-aea | d3f177a963eb855d9528555167255bf2b478f4ba | [
"Apache-2.0"
] | 1,814 | 2019-08-24T10:08:07.000Z | 2022-03-31T14:28:36.000Z | aea/helpers/pipe.py | salman6049/agents-aea | d3f177a963eb855d9528555167255bf2b478f4ba | [
"Apache-2.0"
] | 46 | 2019-09-03T22:13:58.000Z | 2022-03-22T01:25:16.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You ma... | 32.022222 | 88 | 0.600885 |
6785ebdaa0a0f8a5a088b840a1b64f1e5c59a6a9 | 6,046 | py | Python | src/config/svc-monitor/svc_monitor/tests/test_port_tuple.py | UbuntuEvangelist/contrail-controller | 4e8a992230f8f8e91e4f753e19b5442d9e1b446d | [
"Apache-2.0"
] | null | null | null | src/config/svc-monitor/svc_monitor/tests/test_port_tuple.py | UbuntuEvangelist/contrail-controller | 4e8a992230f8f8e91e4f753e19b5442d9e1b446d | [
"Apache-2.0"
] | null | null | null | src/config/svc-monitor/svc_monitor/tests/test_port_tuple.py | UbuntuEvangelist/contrail-controller | 4e8a992230f8f8e91e4f753e19b5442d9e1b446d | [
"Apache-2.0"
] | 18 | 2017-01-12T09:28:44.000Z | 2019-04-18T20:47:42.000Z | import mock
from mock import patch
import unittest
from vnc_api.vnc_api import *
from svc_monitor.port_tuple import PortTupleAgent
from svc_monitor.config_db import *
import test_common_utils as test_utils
| 48.368 | 93 | 0.664406 |
6786e2d4a6f307e6300a31ab2c4e829094e2410e | 5,672 | py | Python | pearll/agents/ga.py | LondonNode/Anvil | bc50fd7b16af36051157814e2548a98e787b03de | [
"MIT"
] | 13 | 2022-01-17T14:43:05.000Z | 2022-03-10T04:05:36.000Z | pearll/agents/ga.py | LondonNode/Anvil | bc50fd7b16af36051157814e2548a98e787b03de | [
"MIT"
] | 3 | 2022-02-24T18:29:12.000Z | 2022-03-22T11:09:07.000Z | pearll/agents/ga.py | LondonNode/Anvil | bc50fd7b16af36051157814e2548a98e787b03de | [
"MIT"
] | null | null | null | from functools import partial
from typing import Callable, List, Optional, Type
import numpy as np
from gym.vector.vector_env import VectorEnv
from pearll.agents.base_agents import BaseAgent
from pearll.buffers import RolloutBuffer
from pearll.buffers.base_buffer import BaseBuffer
from pearll.callbacks.base_callback ... | 38.849315 | 99 | 0.701164 |
6787612d23eda8ccb35a41398442232a6c1a614e | 17,643 | py | Python | src/tequila/optimizers/optimizer_scipy.py | snc2/tequila | 6767ced9215408f7d055c22df7a66ccd610b00fb | [
"MIT"
] | null | null | null | src/tequila/optimizers/optimizer_scipy.py | snc2/tequila | 6767ced9215408f7d055c22df7a66ccd610b00fb | [
"MIT"
] | null | null | null | src/tequila/optimizers/optimizer_scipy.py | snc2/tequila | 6767ced9215408f7d055c22df7a66ccd610b00fb | [
"MIT"
] | null | null | null | import scipy, numpy, typing, numbers
from tequila.objective import Objective
from tequila.objective.objective import assign_variable, Variable, format_variable_dictionary, format_variable_list
from .optimizer_base import Optimizer
from ._containers import _EvalContainer, _GradContainer, _HessContainer, _QngContainer
fr... | 44.55303 | 141 | 0.590829 |
67884e5df8d269868ffffa5bd0b7c492cbdd5945 | 12,051 | py | Python | Section_3.3_simul_3/2_Runtime/bsolar.py | isaac2math/solar | 92a2a869cd902e15edce7aa5ed5af10f148763d9 | [
"Intel"
] | null | null | null | Section_3.3_simul_3/2_Runtime/bsolar.py | isaac2math/solar | 92a2a869cd902e15edce7aa5ed5af10f148763d9 | [
"Intel"
] | null | null | null | Section_3.3_simul_3/2_Runtime/bsolar.py | isaac2math/solar | 92a2a869cd902e15edce7aa5ed5af10f148763d9 | [
"Intel"
] | null | null | null | import numpy as np
import time
import warnings
from sklearn.linear_model import LinearRegression
from solar import solar
from sklearn.exceptions import ConvergenceWarning
# For recent version of Scikit-learn: since the class 'Lars' may rely on the Cholesky decomposition and hence may have potential c... | 46.528958 | 265 | 0.64866 |
6788b2d4a5d2258670eff8708364f1ba49cb5189 | 615 | py | Python | solutions/nelum_pokuna.py | UdeshUK/RxH5-Prextreme | 6f329b13d552d9c7e9ad927e2fe607c7cc0964f6 | [
"Apache-2.0"
] | 1 | 2018-10-14T12:47:03.000Z | 2018-10-14T12:47:03.000Z | solutions/nelum_pokuna.py | Team-RxH5/Prextreme | 6f329b13d552d9c7e9ad927e2fe607c7cc0964f6 | [
"Apache-2.0"
] | null | null | null | solutions/nelum_pokuna.py | Team-RxH5/Prextreme | 6f329b13d552d9c7e9ad927e2fe607c7cc0964f6 | [
"Apache-2.0"
] | null | null | null | cases=int(raw_input())
for case in range(cases):
answers=[0,0]
grid=[[0 for x in range(4)] for y in range(2)]
common=[]
for i in range(2):
answers[i]=int(raw_input())
for j in range(4):
grid[i][j]=raw_input().split()
grid[i][j] = map(int, grid[i][j])
# Code... | 23.653846 | 50 | 0.518699 |
6788c25e7a00ed595c0a516765861ce2d8e549e1 | 69,067 | py | Python | resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/MolKit/data/allct_dat.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | 9 | 2021-03-06T04:24:28.000Z | 2022-01-03T09:53:07.000Z | MolKit/data/allct_dat.py | e-mayo/autodocktools-prepare-py3k | 2dd2316837bcb7c19384294443b2855e5ccd3e01 | [
"BSD-3-Clause"
] | 3 | 2021-03-07T05:37:16.000Z | 2021-09-19T15:06:54.000Z | MolKit/data/allct_dat.py | e-mayo/autodocktools-prepare-py3k | 2dd2316837bcb7c19384294443b2855e5ccd3e01 | [
"BSD-3-Clause"
] | 4 | 2019-08-28T23:11:39.000Z | 2021-11-27T08:43:36.000Z | allct_dat = {
"TYR": { "HB2":{'torsion': 300.0, 'tree': 'E', 'NC': 4, 'NB': 6, 'NA': 8, 'I': 9, 'angle': 109.5, 'blen': 1.09, 'charge': 0.038, 'type': 'HC'},
"HB3":{'torsion': 60.0, 'tree': 'E', 'NC': 4, 'NB': 6, 'NA': 8, 'I': 10, 'angle': 109.5, 'blen': 1.09, 'charge': 0.038, 'type': 'HC'},
"impropTors":[['-M', 'CA'... | 116.274411 | 251 | 0.447768 |
678c13af2d3d4847271449c6ae5791e470d46e78 | 39,961 | py | Python | chi/_mechanistic_models.py | DavAug/erlotinib | 9d113257de52b56359ed6451ba7db455645315d1 | [
"BSD-3-Clause"
] | null | null | null | chi/_mechanistic_models.py | DavAug/erlotinib | 9d113257de52b56359ed6451ba7db455645315d1 | [
"BSD-3-Clause"
] | 221 | 2020-11-06T13:03:32.000Z | 2021-07-30T08:17:58.000Z | chi/_mechanistic_models.py | DavAug/erlotinib | 9d113257de52b56359ed6451ba7db455645315d1 | [
"BSD-3-Clause"
] | 1 | 2021-02-10T13:03:58.000Z | 2021-02-10T13:03:58.000Z | #
# This file is part of the chi repository
# (https://github.com/DavAug/chi/) which is released under the
# BSD 3-clause license. See accompanying LICENSE.md for copyright notice and
# full license details.
#
import copy
import myokit
import myokit.formats.sbml as sbml
import numpy as np
| 35.332449 | 79 | 0.620205 |
678d54c4f215c915ab40d1921519e8d17b0d89cd | 4,954 | py | Python | smartlicense/settings/__init__.py | coblo/smartlicense | 288b40496646c225716fa3bf5f43b48ff645b96c | [
"MIT"
] | 6 | 2018-04-26T05:54:29.000Z | 2021-04-03T05:08:46.000Z | smartlicense/settings/__init__.py | coblo/smartlicense | 288b40496646c225716fa3bf5f43b48ff645b96c | [
"MIT"
] | 13 | 2018-03-31T07:58:02.000Z | 2022-02-10T10:35:28.000Z | smartlicense/settings/__init__.py | coblo/smartlicense | 288b40496646c225716fa3bf5f43b48ff645b96c | [
"MIT"
] | 2 | 2019-06-13T21:42:21.000Z | 2021-04-03T05:09:02.000Z | # -*- coding: utf-8 -*-
"""
Django settings for smartlicense project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/re... | 27.370166 | 91 | 0.677836 |
678e1041a75c67c39856bfcf8a9561f7bd5138f9 | 2,226 | py | Python | firmwire/memory_map.py | j4s0n/FirmWire | d3a20e2429cb4827f538d1a16163afde8b45826b | [
"BSD-3-Clause"
] | null | null | null | firmwire/memory_map.py | j4s0n/FirmWire | d3a20e2429cb4827f538d1a16163afde8b45826b | [
"BSD-3-Clause"
] | null | null | null | firmwire/memory_map.py | j4s0n/FirmWire | d3a20e2429cb4827f538d1a16163afde8b45826b | [
"BSD-3-Clause"
] | null | null | null | ## Copyright (c) 2022, Team FirmWire
## SPDX-License-Identifier: BSD-3-Clause
from enum import Enum, auto
from .hw.soc import SOCPeripheral
| 28.177215 | 81 | 0.591195 |
678eb98334509fe0bad64239aa78922c47d0b166 | 1,688 | py | Python | src/resources/Land.py | noancloarec/mapisto-api | b2458f6b12b229babb116f906b3e4f7e8b7b8a71 | [
"MIT"
] | null | null | null | src/resources/Land.py | noancloarec/mapisto-api | b2458f6b12b229babb116f906b3e4f7e8b7b8a71 | [
"MIT"
] | 1 | 2020-07-08T07:12:31.000Z | 2020-07-08T07:12:31.000Z | src/resources/Land.py | noancloarec/mapisto-api | b2458f6b12b229babb116f906b3e4f7e8b7b8a71 | [
"MIT"
] | null | null | null | from .helper import fill_optional_fields
from maps_geometry.feature_extraction import get_bounding_box
from .MapistoShape import MapistoShape
from .BoundingBox import BoundingBox
| 35.166667 | 101 | 0.65936 |
6790c65796ad1cfbe5e6c6ab2a2c1453d34ad7fb | 298 | py | Python | reexercises/two_sum_target.py | R0bertWell/interview_questions | f8a65a842dfe03ac28c865bb8370422ff2071137 | [
"MIT"
] | null | null | null | reexercises/two_sum_target.py | R0bertWell/interview_questions | f8a65a842dfe03ac28c865bb8370422ff2071137 | [
"MIT"
] | null | null | null | reexercises/two_sum_target.py | R0bertWell/interview_questions | f8a65a842dfe03ac28c865bb8370422ff2071137 | [
"MIT"
] | null | null | null | from typing import List
print(two_sum([1, 2, 3, 4, 5, 6], 7))
| 19.866667 | 41 | 0.553691 |
6792c61e36032efcbcd6f3d46a42dbabd2400582 | 1,032 | py | Python | vue/decorators/base.py | adamlwgriffiths/vue.py | f4256454256ddfe54a8be6dea493d3fc915ef1a2 | [
"MIT"
] | 274 | 2018-07-07T00:57:17.000Z | 2022-03-22T23:49:53.000Z | vue/decorators/base.py | adamlwgriffiths/vue.py | f4256454256ddfe54a8be6dea493d3fc915ef1a2 | [
"MIT"
] | 25 | 2018-11-24T17:19:44.000Z | 2022-03-23T22:30:18.000Z | vue/decorators/base.py | adamlwgriffiths/vue.py | f4256454256ddfe54a8be6dea493d3fc915ef1a2 | [
"MIT"
] | 18 | 2019-07-04T07:18:18.000Z | 2022-03-22T23:49:55.000Z | from vue.bridge import Object
import javascript
| 28.666667 | 74 | 0.602713 |
679841fb13e9e1b6f465dd6a052897627ff56964 | 40,992 | py | Python | datalabeling/google/cloud/datalabeling_v1beta1/proto/data_labeling_service_pb2_grpc.py | DaveCheez/google-cloud-python | fc03d4d41f13e9d13db7206438163b3a471fdabd | [
"Apache-2.0"
] | 2 | 2021-11-26T07:08:43.000Z | 2022-03-07T20:20:04.000Z | datalabeling/google/cloud/datalabeling_v1beta1/proto/data_labeling_service_pb2_grpc.py | DaveCheez/google-cloud-python | fc03d4d41f13e9d13db7206438163b3a471fdabd | [
"Apache-2.0"
] | 6 | 2019-05-27T22:05:58.000Z | 2019-08-05T16:46:16.000Z | datalabeling/google/cloud/datalabeling_v1beta1/proto/data_labeling_service_pb2_grpc.py | DaveCheez/google-cloud-python | fc03d4d41f13e9d13db7206438163b3a471fdabd | [
"Apache-2.0"
] | 1 | 2019-03-29T18:26:16.000Z | 2019-03-29T18:26:16.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.cloud.datalabeling_v1beta1.proto import (
annotation_spec_set_pb2 as google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_annotation__spec__set__pb2,
)
from google.cloud.datalabeling_v1beta1.proto import (
data_la... | 63.553488 | 169 | 0.782616 |
67988b46e3108d80c389257b2f89c3e8f006472d | 6,777 | py | Python | keras_version/utils.py | nunu0910/BiO-Net | 2038eadb16f200c4e9de8346af5e3d23422eb438 | [
"MIT"
] | 44 | 2020-07-07T06:40:13.000Z | 2022-03-24T10:15:39.000Z | keras_version/utils.py | nunu0910/BiO-Net | 2038eadb16f200c4e9de8346af5e3d23422eb438 | [
"MIT"
] | 12 | 2020-11-18T01:27:08.000Z | 2021-09-22T08:19:14.000Z | keras_version/utils.py | nunu0910/BiO-Net | 2038eadb16f200c4e9de8346af5e3d23422eb438 | [
"MIT"
] | 14 | 2020-07-26T14:10:09.000Z | 2021-11-18T23:20:44.000Z | import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import keras
from keras.models import Model, load_model
from keras import backend as K
from keras.preprocessing.image import ImageDataGenerator
import tensorflow as tf
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR) # mute deprecation warnings
from kera... | 32.425837 | 182 | 0.703261 |
6798bb647c9031d2653050d76cd3f241dd42a5cd | 2,734 | py | Python | sdk/python/pulumi_azure_native/batch/__init__.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/batch/__init__.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/batch/__init__.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"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! ***
from .. import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .application import *
from .application_... | 43.396825 | 80 | 0.793343 |
6799287dad3bb8281070f0e2070fafa75ab7324c | 1,853 | py | Python | setup.py | tgolsson/appJar | 5e2f8bff44e927e7c2bae17fccddc6dbf79952f0 | [
"Apache-2.0"
] | 666 | 2016-11-14T18:17:40.000Z | 2022-03-29T03:53:22.000Z | setup.py | tgolsson/appJar | 5e2f8bff44e927e7c2bae17fccddc6dbf79952f0 | [
"Apache-2.0"
] | 598 | 2016-10-20T21:04:09.000Z | 2022-03-15T22:44:49.000Z | setup.py | tgolsson/appJar | 5e2f8bff44e927e7c2bae17fccddc6dbf79952f0 | [
"Apache-2.0"
] | 95 | 2017-01-19T12:23:58.000Z | 2022-03-06T18:16:21.000Z | from setuptools import setup, find_packages
__name__ = "appJar"
__version__ = "0.94.0"
__author__ = "Richard Jarvis"
__desc__ = "An easy-to-use, feature-rich GUI wrapper for tKinter. Designed specifically for use in the classroom, but powerful enough to be used anywhere."
__author_email_... | 37.06 | 180 | 0.658392 |
67995960cafd98e838927288e205c58078f19735 | 141,788 | py | Python | pertama/andir.py | alitkurniawan48/BelajarGIS | c52556bc6fa74b849b9c3461410805807b742967 | [
"MIT"
] | 2 | 2020-02-09T14:47:07.000Z | 2020-02-09T14:47:12.000Z | pertama/andir.py | alitkurniawan48/BelajarGIS | c52556bc6fa74b849b9c3461410805807b742967 | [
"MIT"
] | 12 | 2019-12-11T06:45:59.000Z | 2020-01-06T09:35:35.000Z | pertama/andir.py | alitkurniawan48/BelajarGIS | c52556bc6fa74b849b9c3461410805807b742967 | [
"MIT"
] | 71 | 2019-12-09T13:52:54.000Z | 2021-05-28T16:19:09.000Z | import shapefile
| 36.383885 | 64 | 0.471471 |
679d339786e1a3d3431ad8eb7251f79813420fa0 | 8,226 | py | Python | sparseconvnet/utils.py | THU-luvision/Occuseg | 163e1fba6f5d9afd4ee2a4202118bc81d8f7c5e4 | [
"BSD-3-Clause"
] | 1 | 2022-03-29T18:26:11.000Z | 2022-03-29T18:26:11.000Z | sparseconvnet/utils.py | THU-luvision/Occuseg | 163e1fba6f5d9afd4ee2a4202118bc81d8f7c5e4 | [
"BSD-3-Clause"
] | null | null | null | sparseconvnet/utils.py | THU-luvision/Occuseg | 163e1fba6f5d9afd4ee2a4202118bc81d8f7c5e4 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import torch, glob, os
from .sparseConvNetTensor import SparseConvNetTensor
from .metadata import Metadata
import sparsecon... | 35.153846 | 155 | 0.600049 |
679e2250d3e4704bdc0cc067419d5a8f3eb454fa | 12,983 | py | Python | python-numpy-lists/numpylists.py | tosinayanda/python-starter-kit | 9faee168ff82e46b6ef8102ae72ea936fd099961 | [
"MIT"
] | null | null | null | python-numpy-lists/numpylists.py | tosinayanda/python-starter-kit | 9faee168ff82e46b6ef8102ae72ea936fd099961 | [
"MIT"
] | null | null | null | python-numpy-lists/numpylists.py | tosinayanda/python-starter-kit | 9faee168ff82e46b6ef8102ae72ea936fd099961 | [
"MIT"
] | null | null | null | #
import numpy as np
#create numpy arrays
#
#Generate array
height=np.round(np.random.normal(1.75,0.20,5000),2)
weight=np.round(np.random.normal(60.32,15,5000),2)
np_city=np.column_stack((height,weight))
print(np_city.shape)
cars=["Toyota","Chevrolet","Ford","Honda","Brabus"]
cars_np=np.array(cars)
weight=[20.12,2... | 177.849315 | 4,931 | 0.484942 |
679f8e5b12103c54dd655de826901d7a4752b208 | 11,818 | py | Python | sysinv/sysinv/sysinv/sysinv/puppet/nfv.py | MarioCarrilloA/config | 06a6f142d154970ce658e979822cd84ce447f612 | [
"Apache-2.0"
] | null | null | null | sysinv/sysinv/sysinv/sysinv/puppet/nfv.py | MarioCarrilloA/config | 06a6f142d154970ce658e979822cd84ce447f612 | [
"Apache-2.0"
] | null | null | null | sysinv/sysinv/sysinv/sysinv/puppet/nfv.py | MarioCarrilloA/config | 06a6f142d154970ce658e979822cd84ce447f612 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2017-2018 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
from sysinv.common import constants
from sysinv.common import utils
from sysinv.helm import helm
from sysinv.puppet import openstack
| 42.358423 | 76 | 0.582924 |
679fc8ee35fed0b83bbf337e8c352e97186a807c | 1,151 | py | Python | qualif16/timeline.py | valenca/hashcode16 | ac47b6f480a9c2ce78446aa3510178cc32f26ea5 | [
"WTFPL"
] | 1 | 2016-02-08T17:23:18.000Z | 2016-02-08T17:23:18.000Z | qualif16/timeline.py | valenca/hashcode16 | ac47b6f480a9c2ce78446aa3510178cc32f26ea5 | [
"WTFPL"
] | null | null | null | qualif16/timeline.py | valenca/hashcode16 | ac47b6f480a9c2ce78446aa3510178cc32f26ea5 | [
"WTFPL"
] | null | null | null | from data import *
from heapq import *
if __name__ == '__main__':
q=Timeline()
d = Drone(0,0,100)
q.addEvent(Event(d,0,"load"))
q.addEvent(Event(d,0,"load"))
q.addEvent(Event(d,0,"load"))
q.addEvent(Event(d,1,"load"))
q.addEvent(Event(d,1,"load"))
q.addEvent(Event(d,2,"load"))
q.addEvent(Event(d,2,"load"))... | 19.508475 | 89 | 0.652476 |
67a10756dbb9e4be6d237dca1eb33c024676daf2 | 5,394 | py | Python | cfgov/v1/util/migrations.py | hkeeler/cfgov-refresh | 33977186a8e9cb972e63cc22baa357d381316aec | [
"CC0-1.0"
] | null | null | null | cfgov/v1/util/migrations.py | hkeeler/cfgov-refresh | 33977186a8e9cb972e63cc22baa357d381316aec | [
"CC0-1.0"
] | null | null | null | cfgov/v1/util/migrations.py | hkeeler/cfgov-refresh | 33977186a8e9cb972e63cc22baa357d381316aec | [
"CC0-1.0"
] | null | null | null | import json
from django.core.exceptions import ObjectDoesNotExist
from django.db import transaction
from treebeard.mp_tree import MP_Node
try:
from wagtail.core.blocks import StreamValue
except ImportError: # pragma: no cover; fallback for Wagtail < 2.0
from wagtail.wagtailcore.blocks import StreamValue
... | 32.299401 | 78 | 0.678532 |
67a10b0fb92da7a2ec247253549979648e850cef | 8,436 | py | Python | source/codes.py | Very1Fake/monitor | bb47352cffebd8b99bafac0a342324b042b3d826 | [
"Apache-2.0",
"MIT"
] | null | null | null | source/codes.py | Very1Fake/monitor | bb47352cffebd8b99bafac0a342324b042b3d826 | [
"Apache-2.0",
"MIT"
] | null | null | null | source/codes.py | Very1Fake/monitor | bb47352cffebd8b99bafac0a342324b042b3d826 | [
"Apache-2.0",
"MIT"
] | null | null | null | from typing import Dict
_codes: Dict[int, str] = {
# Debug (1xxxx)
# System (100xx)
10000: 'Test debug',
# Pipe (103xx)
10301: 'Reindexing parser',
# Resolver (109xx)
10901: 'Executing catalog',
10902: 'Executing target',
10903: 'Catalog executed',
10904: 'Target executed',
... | 30.345324 | 95 | 0.641062 |
67a1409839afbcce2cc6a08bb9dc1126a5b4df90 | 937 | py | Python | Stack.py | jdegene/ArcGIS-scripts | 8821adc32b89525039591db83c762083a4ef750f | [
"MIT"
] | null | null | null | Stack.py | jdegene/ArcGIS-scripts | 8821adc32b89525039591db83c762083a4ef750f | [
"MIT"
] | null | null | null | Stack.py | jdegene/ArcGIS-scripts | 8821adc32b89525039591db83c762083a4ef750f | [
"MIT"
] | null | null | null | # Erstellt aus vielen TIFF Datei eine stacked Datei mit dem ArcGIS
# Tool composite bands
import arcpy
import os
arcpy.env.overwriteOutput = True # Ueberschreiben fuer ArcGIS aktivieren
arcpy.env.pyramid = "NONE" # Verhindert dass Pyramiden berechnet werden
arcpy.env.rasterStatistics = "NONE" # Verhindert dass ... | 28.393939 | 92 | 0.640342 |
67a2a922aab66937ea10eabfea17b426aac61814 | 2,106 | py | Python | tests/test_frozenordereddict.py | tirkarthi/frozenordereddict | 8837a7e2b55cf8531793b0ec5ad40d56c500ec0f | [
"MIT"
] | 2 | 2016-01-14T18:03:42.000Z | 2020-11-03T22:13:03.000Z | tests/test_frozenordereddict.py | tirkarthi/frozenordereddict | 8837a7e2b55cf8531793b0ec5ad40d56c500ec0f | [
"MIT"
] | 4 | 2017-10-24T06:03:24.000Z | 2020-11-03T22:23:06.000Z | tests/test_frozenordereddict.py | tirkarthi/frozenordereddict | 8837a7e2b55cf8531793b0ec5ad40d56c500ec0f | [
"MIT"
] | 6 | 2015-12-02T11:34:33.000Z | 2021-11-04T04:31:11.000Z | from collections import OrderedDict
from unittest import TestCase
from frozenordereddict import FrozenOrderedDict
| 27.350649 | 85 | 0.625831 |
67a4b479d6f75f2f17d3b85691a149733addfde8 | 7,560 | py | Python | tests/test_data_gateway/test_dummy_serial.py | aerosense-ai/data-gateway | 019b8e4a114e16d363a3167171a457cefdbf004f | [
"Apache-2.0"
] | null | null | null | tests/test_data_gateway/test_dummy_serial.py | aerosense-ai/data-gateway | 019b8e4a114e16d363a3167171a457cefdbf004f | [
"Apache-2.0"
] | 34 | 2021-12-20T14:51:57.000Z | 2022-03-30T16:47:04.000Z | tests/test_data_gateway/test_dummy_serial.py | aerosense-ai/data-gateway | 019b8e4a114e16d363a3167171a457cefdbf004f | [
"Apache-2.0"
] | null | null | null | import random
import unittest
from serial.serialutil import SerialException
from data_gateway.dummy_serial import DummySerial, constants, exceptions, random_bytes, random_string
from tests.base import BaseTestCase
if __name__ == "__main__":
unittest.main()
| 41.538462 | 119 | 0.694577 |
67a4dc5dd5440ed57b743f18f84e2d218d7c1ec4 | 5,216 | py | Python | site/flask/lib/python2.7/site-packages/speaklater.py | theholyhades1/tartanHacks2015 | a801b473f21cfbd136e2a5a74423e8c72d14f900 | [
"MIT"
] | 32 | 2015-01-19T12:13:26.000Z | 2021-11-11T00:11:22.000Z | site/flask/lib/python2.7/site-packages/speaklater.py | theholyhades1/tartanHacks2015 | a801b473f21cfbd136e2a5a74423e8c72d14f900 | [
"MIT"
] | 10 | 2020-06-05T19:42:26.000Z | 2022-03-11T23:38:35.000Z | site/flask/lib/python2.7/site-packages/speaklater.py | theholyhades1/tartanHacks2015 | a801b473f21cfbd136e2a5a74423e8c72d14f900 | [
"MIT"
] | 9 | 2015-07-18T01:03:56.000Z | 2019-05-24T09:36:40.000Z | # -*- coding: utf-8 -*-
r"""
speaklater
~~~~~~~~~~
A module that provides lazy strings for translations. Basically you
get an object that appears to be a string but changes the value every
time the value is evaluated based on a callable you provide.
For example you can have a global `lazy_get... | 25.950249 | 78 | 0.637078 |
67a75973cb787f7c7e91d28c32afde2e4db5408b | 848 | py | Python | test/test_graph.py | mits58/Python-Graph-Library | aa85788ad63e356944d77a4c251ad707562dd9c0 | [
"MIT"
] | null | null | null | test/test_graph.py | mits58/Python-Graph-Library | aa85788ad63e356944d77a4c251ad707562dd9c0 | [
"MIT"
] | null | null | null | test/test_graph.py | mits58/Python-Graph-Library | aa85788ad63e356944d77a4c251ad707562dd9c0 | [
"MIT"
] | null | null | null | import unittest
import numpy as np
from graph import Graph
if __name__ == '__main__':
unittest.main()
| 24.941176 | 78 | 0.483491 |
67a783ee0f0ec9ab1fa4d600a15705146b7bc899 | 260 | py | Python | 09_cumledeki_kelime_sayisi.py | kabatasmirac/We_WantEd_OrnekCozumler | 0f022361659fb78cd3f644910f3611d45df64317 | [
"MIT"
] | 1 | 2020-06-09T13:09:23.000Z | 2020-06-09T13:09:23.000Z | 09_cumledeki_kelime_sayisi.py | kabatasmirac/We_WantEd_OrnekCozumler | 0f022361659fb78cd3f644910f3611d45df64317 | [
"MIT"
] | null | null | null | 09_cumledeki_kelime_sayisi.py | kabatasmirac/We_WantEd_OrnekCozumler | 0f022361659fb78cd3f644910f3611d45df64317 | [
"MIT"
] | null | null | null |
cumle = input("Cumlenizi giriniz : ")
print("Cumlenizdeki kelime sayisi = {}".format(kelime_sayisi(cumle))) | 26 | 69 | 0.615385 |
67a9204ea3bc6abf715d94ea6ccb879d61991881 | 909 | py | Python | pdns-mysql-domain-exp/lib/db.py | kilgoretrout1985/pdns-mysql-domain-exp | 9692971da82d625b242c740d9be8e2130a483249 | [
"MIT"
] | null | null | null | pdns-mysql-domain-exp/lib/db.py | kilgoretrout1985/pdns-mysql-domain-exp | 9692971da82d625b242c740d9be8e2130a483249 | [
"MIT"
] | null | null | null | pdns-mysql-domain-exp/lib/db.py | kilgoretrout1985/pdns-mysql-domain-exp | 9692971da82d625b242c740d9be8e2130a483249 | [
"MIT"
] | null | null | null | import MySQLdb
| 34.961538 | 104 | 0.537954 |
67a972ea6a872e759ef7065f8c8e54aa921e3f54 | 3,370 | py | Python | barni/_result.py | Thrameos/barni | e5ba76f9bb04a15a272b5159b25e6425733102c4 | [
"MIT"
] | 8 | 2020-03-16T23:21:59.000Z | 2021-08-12T12:26:44.000Z | barni/_result.py | johnromo04/barni | 3d758f21a9317b8826019261548339c047923b96 | [
"MIT"
] | 6 | 2020-03-17T16:57:14.000Z | 2020-08-04T17:51:45.000Z | barni/_result.py | johnromo04/barni | 3d758f21a9317b8826019261548339c047923b96 | [
"MIT"
] | 3 | 2020-03-17T00:47:28.000Z | 2020-07-29T18:19:10.000Z | ###############################################################################
# Copyright (c) 2019 Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory
#
# Written by M. Monterial, K. Nelson
# monterial1@llnl.gov
#
# LLNL-CODE-805904
#
# All rights reserved.
#
# Permissi... | 34.387755 | 81 | 0.67003 |
67a9af0c056744f8b59776cc12a80777352c44e7 | 2,976 | py | Python | work/code/5fold/paddle_model.py | kkoren/2021CCFBDCI-QAmatch-rank5 | 379f89ad43ffcfbd2c15ad6ac4f93e8fa5b27dc3 | [
"Apache-2.0"
] | null | null | null | work/code/5fold/paddle_model.py | kkoren/2021CCFBDCI-QAmatch-rank5 | 379f89ad43ffcfbd2c15ad6ac4f93e8fa5b27dc3 | [
"Apache-2.0"
] | null | null | null | work/code/5fold/paddle_model.py | kkoren/2021CCFBDCI-QAmatch-rank5 | 379f89ad43ffcfbd2c15ad6ac4f93e8fa5b27dc3 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on %(date)s
@author: %Christian
"""
"""
#BASE +BN
#dropout0.15
"""
import paddle
import paddle.nn as nn
import paddle.nn.functional as F
import paddlenlp as ppnlp
| 30.367347 | 108 | 0.584341 |
67aa649ee72d5a267bbc9cdfc568c9bcaf20b9fc | 21,917 | py | Python | q2_mlab/plotting/app.py | patrickimran/regression-benchmarking | 90a9dd1f4196d76145d17d733dffc13830fd95fa | [
"BSD-3-Clause"
] | null | null | null | q2_mlab/plotting/app.py | patrickimran/regression-benchmarking | 90a9dd1f4196d76145d17d733dffc13830fd95fa | [
"BSD-3-Clause"
] | 29 | 2020-04-22T16:39:02.000Z | 2021-08-02T15:43:11.000Z | q2_mlab/plotting/app.py | patrickimran/regression-benchmarking | 90a9dd1f4196d76145d17d733dffc13830fd95fa | [
"BSD-3-Clause"
] | 4 | 2019-12-30T17:06:04.000Z | 2020-08-14T17:55:31.000Z | from functools import partialmethod
import pandas as pd
from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine
import sqlite3
import click
import json
import pkg_resources
from itertools import combinations
from q2_mlab.db.schema import RegressionScore
from q2_mlab.plotting.components import (
... | 33.927245 | 79 | 0.578409 |
67add2205d4190930f5b032323a1238d7a058e8c | 6,378 | py | Python | gpn/distributions/base.py | WodkaRHR/Graph-Posterior-Network | 139e7c45c37324c9286e0cca60360a4978b3f411 | [
"MIT"
] | 23 | 2021-11-16T01:31:55.000Z | 2022-03-04T05:49:03.000Z | gpn/distributions/base.py | WodkaRHR/Graph-Posterior-Network | 139e7c45c37324c9286e0cca60360a4978b3f411 | [
"MIT"
] | 1 | 2021-12-17T01:25:16.000Z | 2021-12-20T10:38:30.000Z | gpn/distributions/base.py | WodkaRHR/Graph-Posterior-Network | 139e7c45c37324c9286e0cca60360a4978b3f411 | [
"MIT"
] | 7 | 2021-12-03T11:13:44.000Z | 2022-02-06T03:12:10.000Z | import torch
import torch.distributions as D
#--------------------------------------------------------------------------------------------------
#--------------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------... | 33.21875 | 100 | 0.607087 |
67addac624c1ac8a0bc388113f31ef1180a2d2c5 | 557 | py | Python | demos/python/3_statements.py | denfromufa/mipt-course | ad828f9f3777b68727090bcd69feb0dd91f17465 | [
"BSD-3-Clause"
] | null | null | null | demos/python/3_statements.py | denfromufa/mipt-course | ad828f9f3777b68727090bcd69feb0dd91f17465 | [
"BSD-3-Clause"
] | null | null | null | demos/python/3_statements.py | denfromufa/mipt-course | ad828f9f3777b68727090bcd69feb0dd91f17465 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
condition = 42
# IMPORTANT: colons, _indentation_ are significant!
if condition:
print "Condition is true!"
elif True: # not 'true'!
print "I said it's true! :)"
else:
print "Condition is false :("
# of course, elif/else are optional
assert True == (not False)
# Equivalent of `for (in... | 19.892857 | 51 | 0.601436 |
67ae4667834ab686277782bd3ef57e5f23b602fc | 6,492 | py | Python | dedupe/training.py | BrianSipple/dedupe | d276da675e319d5cc6e7cafd4963deebde0d485d | [
"MIT"
] | 1 | 2015-11-06T01:33:04.000Z | 2015-11-06T01:33:04.000Z | dedupe/training.py | BrianSipple/dedupe | d276da675e319d5cc6e7cafd4963deebde0d485d | [
"MIT"
] | null | null | null | dedupe/training.py | BrianSipple/dedupe | d276da675e319d5cc6e7cafd4963deebde0d485d | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# provides functions for selecting a sample of training data
from itertools import combinations, islice
import blocking
import core
import numpy
import logging
import random
import sys
def findUncertainPairs(field_distances, data_model, bias=0.5):
"""
Given a set of ... | 31.362319 | 91 | 0.590881 |
67aebac6e47b438aae9ad595766760877ca83a55 | 166 | py | Python | Chapter04/listcmp1.py | kaushalkumarshah/Learn-Python-in-7-Days | 2663656767c8959ace836f0c0e272f3e501bbe6e | [
"MIT"
] | 12 | 2018-07-09T16:20:31.000Z | 2022-03-21T22:52:15.000Z | Chapter04/listcmp1.py | kaushalkumarshah/Learn-Python-in-7-Days | 2663656767c8959ace836f0c0e272f3e501bbe6e | [
"MIT"
] | null | null | null | Chapter04/listcmp1.py | kaushalkumarshah/Learn-Python-in-7-Days | 2663656767c8959ace836f0c0e272f3e501bbe6e | [
"MIT"
] | 19 | 2018-01-09T12:49:06.000Z | 2021-11-23T08:05:55.000Z | list1 = [10,9,3,7,2,1,23,1,561,1,1,96,1]
list1.sort(cmp = cmp1)
print list1 | 12.769231 | 41 | 0.5 |
67aefde1df9dfdcb55a1ab80ea64b075758a46e0 | 520 | py | Python | ObitSystem/ObitTalk/test/template.py | sarrvesh/Obit | e4ce6029e9beb2a8c0316ee81ea710b66b2b7986 | [
"Linux-OpenIB"
] | 5 | 2019-08-26T06:53:08.000Z | 2020-10-20T01:08:59.000Z | ObitSystem/ObitTalk/test/template.py | sarrvesh/Obit | e4ce6029e9beb2a8c0316ee81ea710b66b2b7986 | [
"Linux-OpenIB"
] | null | null | null | ObitSystem/ObitTalk/test/template.py | sarrvesh/Obit | e4ce6029e9beb2a8c0316ee81ea710b66b2b7986 | [
"Linux-OpenIB"
] | 8 | 2017-08-29T15:12:32.000Z | 2022-03-31T12:16:08.000Z | from AIPS import AIPS
from AIPSTask import AIPSTask
from AIPSData import AIPSImage
from ObitTask import ObitTask
AIPS.userno = 103
image = AIPSImage('MANDELBROT', 'MANDL', 1, 1)
mandl = AIPSTask('mandl')
mandl.outdata = image
mandl.imsize[1:] = [ 512, 512 ]
mandl.go()
try:
template = ObitTask('Template')
te... | 20.8 | 46 | 0.701923 |
67afb6f388c98096e84a0f8aa3dc9e79c6d38f5b | 5,186 | py | Python | src/voxelize.py | Beskamir/BlenderDepthMaps | ba1201effde617078fb35f23d534372de3dd39c3 | [
"MIT"
] | null | null | null | src/voxelize.py | Beskamir/BlenderDepthMaps | ba1201effde617078fb35f23d534372de3dd39c3 | [
"MIT"
] | null | null | null | src/voxelize.py | Beskamir/BlenderDepthMaps | ba1201effde617078fb35f23d534372de3dd39c3 | [
"MIT"
] | null | null | null | import bpy
import bmesh
import numpy
from random import randint
import time
# pointsToVoxels() has been modified from the function generate_blocks() in https://github.com/cagcoach/BlenderPlot/blob/master/blendplot.py
# Some changes to accomodate Blender 2.8's API changes were made,
# and the function has been made m... | 42.508197 | 140 | 0.636521 |
67b5f86ef31a000c3511435b9060d1043c35b90a | 2,182 | py | Python | storage/lustre_client_iops/lustre_client_iops.py | jssfy/toolpedia | 084d592f7f1de373e6acae5856dfbb8b06b2f7a1 | [
"Apache-2.0"
] | null | null | null | storage/lustre_client_iops/lustre_client_iops.py | jssfy/toolpedia | 084d592f7f1de373e6acae5856dfbb8b06b2f7a1 | [
"Apache-2.0"
] | null | null | null | storage/lustre_client_iops/lustre_client_iops.py | jssfy/toolpedia | 084d592f7f1de373e6acae5856dfbb8b06b2f7a1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#-*-coding:utf-8-*-
import json
import sys
import time
# TBD: auto discovery
# data_path = "/proc/fs/lustre/llite/nvmefs-ffff883f8a4f2800/stats"
data_path = "/proc/fs/lustre/lmv/shnvme3-clilmv-ffff8859d3e2d000/md_stats"
# use a dic1/dic2 to hold sampling data
# put "next - prev" into delta
# ... | 26.289157 | 85 | 0.61824 |
67b63f883548e6cabc6d6344eb2af1aa23104352 | 5,716 | py | Python | test/lsh_test.py | titusz/datasketch | a483b39fe4e444c372792e5c91c86d9d8d27a4a5 | [
"MIT"
] | 1 | 2022-03-21T05:36:15.000Z | 2022-03-21T05:36:15.000Z | test/lsh_test.py | tomzhang/datasketch | a483b39fe4e444c372792e5c91c86d9d8d27a4a5 | [
"MIT"
] | null | null | null | test/lsh_test.py | tomzhang/datasketch | a483b39fe4e444c372792e5c91c86d9d8d27a4a5 | [
"MIT"
] | 2 | 2018-11-12T18:00:52.000Z | 2022-03-21T05:36:20.000Z | import unittest
from hashlib import sha1
import pickle
import numpy as np
from datasketch.lsh import MinHashLSH
from datasketch.minhash import MinHash
from datasketch.weighted_minhash import WeightedMinHashGenerator
if __name__ == "__main__":
unittest.main()
| 32.662857 | 64 | 0.561407 |
67b6738fcd0ebe0de56b7b545d7adc583f1c2d45 | 4,134 | py | Python | src/datasets/tsn_dataset.py | tomstark99/epic-kitchens-100-fyrp | cbc9e59569fb6110b900a51def1947b8a3c93699 | [
"Apache-2.0"
] | 2 | 2021-08-31T10:02:56.000Z | 2021-11-24T12:44:19.000Z | src/datasets/tsn_dataset.py | tomstark99/epic-kitchens-100-fyrp | cbc9e59569fb6110b900a51def1947b8a3c93699 | [
"Apache-2.0"
] | null | null | null | src/datasets/tsn_dataset.py | tomstark99/epic-kitchens-100-fyrp | cbc9e59569fb6110b900a51def1947b8a3c93699 | [
"Apache-2.0"
] | null | null | null | import logging
from typing import Callable
from typing import List
import numpy as np
import torch.utils.data
from .video_dataset import VideoDataset
from .video_dataset import VideoRecord
LOG = logging.getLogger(__name__)
# line_profiler injects a "profile" into __builtins__. When not running under
# line_profile... | 33.33871 | 87 | 0.60716 |
67b70692a042775258dace6d02203639346f7fe2 | 5,947 | py | Python | ce_cli/function.py | maiot-io/cengine | 3a1946c449e8c5e1d216215df6eeab941eb1640a | [
"Apache-2.0"
] | 7 | 2020-10-13T12:47:32.000Z | 2021-03-12T12:00:14.000Z | ce_cli/function.py | maiot-io/cengine | 3a1946c449e8c5e1d216215df6eeab941eb1640a | [
"Apache-2.0"
] | null | null | null | ce_cli/function.py | maiot-io/cengine | 3a1946c449e8c5e1d216215df6eeab941eb1640a | [
"Apache-2.0"
] | 1 | 2021-01-23T02:19:42.000Z | 2021-01-23T02:19:42.000Z | import click
import ce_api
import base64
import os
from ce_cli.cli import cli, pass_info
from ce_cli.utils import check_login_status
from ce_cli.utils import api_client, api_call
from ce_api.models import FunctionCreate, FunctionVersionCreate
from ce_cli.utils import declare, notice
from tabulate import tabulate
from c... | 35.189349 | 86 | 0.648562 |
67ba0ceb8217748f29955b3f1f48be862f98b8da | 1,747 | py | Python | office-plugin/windows-office/program/wizards/ui/event/RadioDataAware.py | jerrykcode/kkFileView | 6efc3750665c9c4034798fb9fb3e74cd8144165c | [
"Apache-2.0"
] | 6,660 | 2018-01-13T12:16:53.000Z | 2022-03-31T15:15:28.000Z | office-plugin/windows-office/program/wizards/ui/event/RadioDataAware.py | jerrykcode/kkFileView | 6efc3750665c9c4034798fb9fb3e74cd8144165c | [
"Apache-2.0"
] | 208 | 2018-01-26T08:55:12.000Z | 2022-03-29T02:36:34.000Z | office-plugin/windows-office/program/wizards/ui/event/RadioDataAware.py | jerrykcode/kkFileView | 6efc3750665c9c4034798fb9fb3e74cd8144165c | [
"Apache-2.0"
] | 1,933 | 2018-01-15T13:08:40.000Z | 2022-03-31T11:28:59.000Z | #
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This file incorporates work covered by the following license noti... | 35.653061 | 70 | 0.68403 |
67ba1058171fe27c8c016baa860730f05f7fd4ed | 5,416 | py | Python | Allura/allura/lib/patches.py | shalithasuranga/allura | 4f7fba13415954d07f602a051ec697329dd3706b | [
"Apache-2.0"
] | 1 | 2019-03-17T04:16:15.000Z | 2019-03-17T04:16:15.000Z | Allura/allura/lib/patches.py | DalavanCloud/allura | a25329caed9e6d136a1004c33372e0632a16e352 | [
"Apache-2.0"
] | null | null | null | Allura/allura/lib/patches.py | DalavanCloud/allura | a25329caed9e6d136a1004c33372e0632a16e352 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (t... | 42.3125 | 94 | 0.675406 |
67bb468d4e8788f36e1783f576c1ab1f1ae90543 | 834 | py | Python | leetcode/binary_search/search_for_a_range.py | phantomnat/python-learning | addc7ba5fc4fb8920cdd2891d4b2e79efd1a524a | [
"MIT"
] | null | null | null | leetcode/binary_search/search_for_a_range.py | phantomnat/python-learning | addc7ba5fc4fb8920cdd2891d4b2e79efd1a524a | [
"MIT"
] | null | null | null | leetcode/binary_search/search_for_a_range.py | phantomnat/python-learning | addc7ba5fc4fb8920cdd2891d4b2e79efd1a524a | [
"MIT"
] | null | null | null | from typing import List
s = Solution()
ans = [
s.searchRange([1],0),
s.searchRange([5,7,7,8,8,8,9,10],8),
s.searchRange([7,7,7,8,10],7),
s.searchRange([7,7,7,8,10,10,10,10],10),
s.searchRange([7,7,7,8,10],10),
s.searchRange([7,7,7,7,8,10],10),
]
for a in ans:
print(a) | 23.828571 | 69 | 0.425659 |
67bbf09857ef02050b6c12ecac3ac6f6bf74d30b | 770 | py | Python | pi/Cart/main.py | polycart/polycart | 2c36921b126df237b109312a16dfb04f2b2ab20f | [
"Apache-2.0"
] | 3 | 2020-01-10T15:54:57.000Z | 2020-03-14T13:04:14.000Z | pi/Cart/main.py | polycart/polycart | 2c36921b126df237b109312a16dfb04f2b2ab20f | [
"Apache-2.0"
] | null | null | null | pi/Cart/main.py | polycart/polycart | 2c36921b126df237b109312a16dfb04f2b2ab20f | [
"Apache-2.0"
] | 1 | 2020-01-29T06:07:39.000Z | 2020-01-29T06:07:39.000Z | #!/usr/bin/python3
import cartinit
from kivy.app import App
from kivy.uix.screenmanager import Screen, ScreenManager, SlideTransition
from kivy.lang import Builder
from buttons import RoundedButton
cartinit.init()
# create ScreenManager as root, put all screens into
sm = ScreenManager()
sm.transition = SlideTransiti... | 18.780488 | 73 | 0.720779 |
67bece9167131625c374de6477b0b045ebb3b193 | 160 | py | Python | docs.bak/test.py | goujou/CompartmentalSystems | 4724555c33f11395ddc32738e8dfed7349ee155f | [
"MIT"
] | null | null | null | docs.bak/test.py | goujou/CompartmentalSystems | 4724555c33f11395ddc32738e8dfed7349ee155f | [
"MIT"
] | null | null | null | docs.bak/test.py | goujou/CompartmentalSystems | 4724555c33f11395ddc32738e8dfed7349ee155f | [
"MIT"
] | null | null | null | from CompartmentalSystems import smooth_reservoir_model
from CompartmentalSystems import smooth_model_run
from CompartmentalSystems import start_distributions
| 32 | 55 | 0.91875 |
67bee977fd10b6b9e05e382910c3fcfaf854728d | 6,482 | py | Python | src/functions_DJTB.py | QTGTech/DJTB-Generator | 96c36516b4bede5fee7a538d79e1e7b380f9d31f | [
"Apache-2.0"
] | null | null | null | src/functions_DJTB.py | QTGTech/DJTB-Generator | 96c36516b4bede5fee7a538d79e1e7b380f9d31f | [
"Apache-2.0"
] | null | null | null | src/functions_DJTB.py | QTGTech/DJTB-Generator | 96c36516b4bede5fee7a538d79e1e7b380f9d31f | [
"Apache-2.0"
] | 1 | 2017-12-08T18:39:01.000Z | 2017-12-08T18:39:01.000Z | import numpy as np
import re
"""
"""
OCC_LIMIT = 10
def load_and_parse(filepath, verbose=True, pad_to_tweets=False, tweet_length=280):
"""
Le nom est plutot equivoque. Charge le fichier txt de chemin 'filepath' et retire les artefacts de parsing
:param filepath: chemin d'acces vers le fichier (.tx... | 38.583333 | 120 | 0.611848 |
67bfb2a09270657736e8e4b32cff8a3a6b09b92a | 141 | py | Python | src/tsp_c/__init__.py | kjudom/tsp-c | 2ed4ba83ac14443533e6167edf20a4199e871657 | [
"MIT"
] | null | null | null | src/tsp_c/__init__.py | kjudom/tsp-c | 2ed4ba83ac14443533e6167edf20a4199e871657 | [
"MIT"
] | null | null | null | src/tsp_c/__init__.py | kjudom/tsp-c | 2ed4ba83ac14443533e6167edf20a4199e871657 | [
"MIT"
] | null | null | null | from . import _tsp_c
from .tsp_c import solve_greedy
from .tsp_c import solve_SA
from .tsp_c import set_param_SA
from .tsp_c import solve_PSO | 28.2 | 31 | 0.829787 |
67bff67472f4b5e6324ab64de0cd6d6f2c3905b9 | 4,496 | py | Python | biosimulators_test_suite/results/data_model.py | Ryannjordan/Biosimulators_test_suite | 5f79f157ee8927df277b1967e9409ccfc6baf45f | [
"CC0-1.0",
"MIT"
] | null | null | null | biosimulators_test_suite/results/data_model.py | Ryannjordan/Biosimulators_test_suite | 5f79f157ee8927df277b1967e9409ccfc6baf45f | [
"CC0-1.0",
"MIT"
] | null | null | null | biosimulators_test_suite/results/data_model.py | Ryannjordan/Biosimulators_test_suite | 5f79f157ee8927df277b1967e9409ccfc6baf45f | [
"CC0-1.0",
"MIT"
] | null | null | null | """ Data model for results of test cases
:Author: Jonathan Karr <karr@mssm.edu>
:Date: 2021-01-01
:Copyright: 2021, Center for Reproducible Biomedical Modeling
:License: MIT
"""
from .._version import __version__
from ..warnings import TestCaseWarning # noqa: F401
import enum
__all__ = [
'TestCaseResultType',
... | 37.157025 | 119 | 0.61121 |
67c0cd97d0c8bd3cb2723928b3e6589de9cc3b73 | 8,834 | py | Python | Projects/Project1/regan/regression.py | adelezaini/MachineLearning | dc3f34f5d509bed6a993705373c46be4da3f97db | [
"MIT"
] | null | null | null | Projects/Project1/regan/regression.py | adelezaini/MachineLearning | dc3f34f5d509bed6a993705373c46be4da3f97db | [
"MIT"
] | 1 | 2021-10-03T15:16:07.000Z | 2021-10-03T15:16:07.000Z | Projects/Project1/regan/regression.py | adelezaini/MachineLearning | dc3f34f5d509bed6a993705373c46be4da3f97db | [
"MIT"
] | null | null | null | # The MIT License (MIT)
#
# Copyright 2021 Fridtjof Gjengset, Adele Zaini, Gaute Holen
#
# 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
# r... | 38.745614 | 191 | 0.695381 |
67c210c665f75559fb74fd11831d3b0f31fccc08 | 3,521 | py | Python | habittracker/commands/list-habits.py | anjakuchenbecker/oofpp_habits_project | 5db8e46fedc7ce839008bf8a7f00eabfee2ba901 | [
"MIT"
] | 2 | 2021-02-16T16:49:16.000Z | 2021-05-13T13:22:02.000Z | habittracker/commands/list-habits.py | anjakuchenbecker/oofpp_habits_project | 5db8e46fedc7ce839008bf8a7f00eabfee2ba901 | [
"MIT"
] | null | null | null | habittracker/commands/list-habits.py | anjakuchenbecker/oofpp_habits_project | 5db8e46fedc7ce839008bf8a7f00eabfee2ba901 | [
"MIT"
] | null | null | null | import json
import shelve
import sys
import os
import click
from prettytable import PrettyTable
import app_config as conf
import analytics
def get_json_out(raw_text):
"""Convert input raw text and return JSON."""
return json.dumps(raw_text, indent=4, sort_keys=False)
def get_human_out(raw... | 44.0125 | 113 | 0.585345 |
67c2e5278bdfc21f2e207b4643b01e0663656b3d | 4,065 | py | Python | src/zhinst/toolkit/helpers/shf_waveform.py | MadSciSoCool/zhinst-toolkit | 5ea884db03f53029552b7898dae310f22ce622ba | [
"MIT"
] | null | null | null | src/zhinst/toolkit/helpers/shf_waveform.py | MadSciSoCool/zhinst-toolkit | 5ea884db03f53029552b7898dae310f22ce622ba | [
"MIT"
] | null | null | null | src/zhinst/toolkit/helpers/shf_waveform.py | MadSciSoCool/zhinst-toolkit | 5ea884db03f53029552b7898dae310f22ce622ba | [
"MIT"
] | null | null | null | # Copyright (C) 2020 Zurich Instruments
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
import numpy as np
def _adjust_scale(self, wave):
"""Adjust the scaling of the waveform.
The data is actually sent as complex values i... | 34.74359 | 87 | 0.60861 |
67c3fb858e01fe9489719be010810d56f24cb176 | 3,905 | py | Python | mongoadmin/auth/forms.py | hywhut/django-mongoadmin | 7252f9724e4d556878a907914424745f5fdb0d42 | [
"BSD-3-Clause"
] | null | null | null | mongoadmin/auth/forms.py | hywhut/django-mongoadmin | 7252f9724e4d556878a907914424745f5fdb0d42 | [
"BSD-3-Clause"
] | null | null | null | mongoadmin/auth/forms.py | hywhut/django-mongoadmin | 7252f9724e4d556878a907914424745f5fdb0d42 | [
"BSD-3-Clause"
] | 1 | 2020-05-10T13:57:36.000Z | 2020-05-10T13:57:36.000Z | # from django.utils.translation import ugettext_lazy as _
# from django import forms
# from django.contrib.auth.forms import ReadOnlyPasswordHashField
#
# from mongoengine.django.auth import User
#
# from mongodbforms import DocumentForm
#
# class UserCreationForm(DocumentForm):
# """
# A form that creates a us... | 40.257732 | 81 | 0.589245 |
67c4dc33394c474c6cabe97b41d6b2b8fa22728a | 2,554 | py | Python | odin-libraries/python/odin_test.py | gspu/odin | a01d039e809eca257fa78d358fe72eb3ad2a09f2 | [
"MIT"
] | 447 | 2020-05-21T11:22:16.000Z | 2022-03-13T01:28:25.000Z | odin-libraries/python/odin_test.py | gspu/odin | a01d039e809eca257fa78d358fe72eb3ad2a09f2 | [
"MIT"
] | 40 | 2020-05-21T13:17:57.000Z | 2022-03-02T08:44:45.000Z | odin-libraries/python/odin_test.py | gspu/odin | a01d039e809eca257fa78d358fe72eb3ad2a09f2 | [
"MIT"
] | 25 | 2020-05-28T21:23:13.000Z | 2022-03-18T19:31:31.000Z | """ Runs tests for Ptyhon Odin SDK """
import unittest
from os import environ
import random
from pymongo import MongoClient
import pyodin as odin
if __name__ == "__main__":
unittest.main() # run all tests
| 34.513514 | 94 | 0.664056 |
67c4e469d6bfee9cfc7c187e94df576f7ce20488 | 657 | py | Python | artemis/general/test_dict_ops.py | peteroconnor-bc/artemis | ad2871fae7d986bf10580eec27aee5b7315adad5 | [
"BSD-2-Clause-FreeBSD"
] | 235 | 2016-08-26T14:18:51.000Z | 2022-03-13T10:54:39.000Z | artemis/general/test_dict_ops.py | peteroconnor-bc/artemis | ad2871fae7d986bf10580eec27aee5b7315adad5 | [
"BSD-2-Clause-FreeBSD"
] | 112 | 2016-04-30T11:48:38.000Z | 2021-01-12T20:17:32.000Z | artemis/general/test_dict_ops.py | peteroconnor-bc/artemis | ad2871fae7d986bf10580eec27aee5b7315adad5 | [
"BSD-2-Clause-FreeBSD"
] | 31 | 2016-11-05T19:09:19.000Z | 2021-09-13T07:35:40.000Z | from artemis.general.dict_ops import cross_dict_dicts, merge_dicts
__author__ = 'peter'
if __name__ == "__main__":
test_dict_merge()
test_cross_dict_dicts()
| 22.655172 | 98 | 0.427702 |
67c5e84b87b6ce3f11354746686bb279c5332a32 | 1,317 | py | Python | plur/eval/cubert_swapped_operand_classification_eval.py | VHellendoorn/plur | 63ea4b8dd44b43d26177fb23b0572e0b7c20f4cd | [
"Apache-2.0"
] | 52 | 2021-12-03T17:54:27.000Z | 2022-03-30T13:38:16.000Z | plur/eval/cubert_swapped_operand_classification_eval.py | VHellendoorn/plur | 63ea4b8dd44b43d26177fb23b0572e0b7c20f4cd | [
"Apache-2.0"
] | 2 | 2022-02-18T01:04:45.000Z | 2022-03-31T17:20:25.000Z | plur/eval/cubert_swapped_operand_classification_eval.py | VHellendoorn/plur | 63ea4b8dd44b43d26177fb23b0572e0b7c20f4cd | [
"Apache-2.0"
] | 6 | 2021-12-21T06:00:44.000Z | 2022-03-30T21:10:46.000Z | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 38.735294 | 112 | 0.742597 |
67c77d71f1fdbcad027edc06ae60ed4f292fc007 | 908 | py | Python | Dynamic Programming/Paint House II.py | ikaushikpal/DS-450-python | 9466f77fb9db9e6a5bb3f20aa89ba6332f49e848 | [
"MIT"
] | 3 | 2021-06-28T12:04:19.000Z | 2021-09-07T07:23:41.000Z | Dynamic Programming/Paint House II.py | ikaushikpal/DS-450-python | 9466f77fb9db9e6a5bb3f20aa89ba6332f49e848 | [
"MIT"
] | null | null | null | Dynamic Programming/Paint House II.py | ikaushikpal/DS-450-python | 9466f77fb9db9e6a5bb3f20aa89ba6332f49e848 | [
"MIT"
] | 1 | 2021-06-28T15:42:55.000Z | 2021-06-28T15:42:55.000Z |
if __name__ == "__main__":
cost = [[1, 5, 7, 2, 1, 4],
[5, 8, 4, 3, 6, 1],
[3, 2, 9, 7, 2, 3],
[1, 2, 4, 9, 1, 7]]
n, k = len(cost), len(cost[0])
print(Solution().paintHouse(cost, n, k)) | 29.290323 | 66 | 0.4163 |
67c9536255b8a2a78151de4a15608734a1f092c8 | 6,445 | py | Python | dufi/gui/balloontip/__init__.py | Shura1oplot/dufi | c9c25524020e57d3670c298acca305900b6490e7 | [
"MIT"
] | null | null | null | dufi/gui/balloontip/__init__.py | Shura1oplot/dufi | c9c25524020e57d3670c298acca305900b6490e7 | [
"MIT"
] | null | null | null | dufi/gui/balloontip/__init__.py | Shura1oplot/dufi | c9c25524020e57d3670c298acca305900b6490e7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, division, print_function, absolute_import
import sys
import os
import threading
import warnings
import locale
import logging
import win32api
import win32con
import win32gui
import win32ts
PY2 = sys.version_info < (3,)
if PY2:
... | 31.286408 | 84 | 0.611482 |
67caf9eed648abdd18c55cb059b56dcfdeff5272 | 7,893 | py | Python | ProxyIP.py | plumefox/BiliTrend | 449bade3cbaa92878fab866457f513aa81dcd567 | [
"Apache-2.0"
] | 2 | 2019-05-11T18:05:34.000Z | 2022-02-18T13:34:21.000Z | ProxyIP.py | plumefox/BiliTrend | 449bade3cbaa92878fab866457f513aa81dcd567 | [
"Apache-2.0"
] | null | null | null | ProxyIP.py | plumefox/BiliTrend | 449bade3cbaa92878fab866457f513aa81dcd567 | [
"Apache-2.0"
] | null | null | null | # * coding:utf-8 *
# Author : Lucy Cai
# Create Time : 2019/4/12
# IDE : PyCharm
# Copyright(C) 2019 Lucy Cai/plumefox (LucysTime@outlook.com)
# Github:https://github.com/plumefox/BiliTrend/
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | 33.444915 | 149 | 0.548714 |
67cc334615da33b43cc91dce1c8d5fcb9a162b36 | 29,914 | py | Python | name_matching/test/test_name_matcher.py | DeNederlandscheBank/name_matching | 366a376596403a1fd912cbf130062016b82306bf | [
"MIT"
] | null | null | null | name_matching/test/test_name_matcher.py | DeNederlandscheBank/name_matching | 366a376596403a1fd912cbf130062016b82306bf | [
"MIT"
] | null | null | null | name_matching/test/test_name_matcher.py | DeNederlandscheBank/name_matching | 366a376596403a1fd912cbf130062016b82306bf | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import os.path as path
import abydos.distance as abd
import abydos.phonetic as abp
import pytest
from scipy.sparse import csc_matrix
from sklearn.feature_extraction.text import TfidfVectorizer
import name_matching.name_matcher as nm
def test_vectorise_data(name_mat... | 55.499072 | 197 | 0.526576 |
67ccd647dc5505b2bf0b3f2efbfadce995daded7 | 645 | py | Python | data/train/python/67ccd647dc5505b2bf0b3f2efbfadce995daded7create_new_default.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/67ccd647dc5505b2bf0b3f2efbfadce995daded7create_new_default.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/67ccd647dc5505b2bf0b3f2efbfadce995daded7create_new_default.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | '''
Created on Dec 21, 2014
@author: Ben
'''
def create_new_default(directory: str, dest: dict, param: dict):
'''
Creates new default parameter file based on parameter settings
'''
with open(directory, 'w') as new_default:
new_default.write(
'''TARGET DESTINATION = {}
SAVE DESTINATION = {}... | 23.888889 | 70 | 0.612403 |
67cdceeb2a0e37311849079ddc2d4d94bc900a6a | 4,129 | py | Python | analysis/SiPMPE_reader.py | akira-okumura/isee_sipm | dff98c82ed8ef950c450c83ad8951743e3799e94 | [
"MIT"
] | 1 | 2019-07-08T02:43:12.000Z | 2019-07-08T02:43:12.000Z | analysis/SiPMPE_reader.py | akira-okumura/ISEE_SiPM | dff98c82ed8ef950c450c83ad8951743e3799e94 | [
"MIT"
] | null | null | null | analysis/SiPMPE_reader.py | akira-okumura/ISEE_SiPM | dff98c82ed8ef950c450c83ad8951743e3799e94 | [
"MIT"
] | null | null | null | import numpy as np
import math
import ROOT
import sys
# #
# PEd = PEdistr('/Volumes/Untitled/zenin/linearity_465/linearity_465_sipm/hists/3500_4_465')
#
# total = PEd.GetLambda()
# stat_err = PEd.GetStatError()
# sys_err = PEd.GetSysError()
#
# print('total lambda = %f \u00B1 %f stat \u00B1 %f sys'%(total, stat_err, s... | 34.123967 | 102 | 0.534996 |
67cde7d5e3ff3451bd18f756ff702549907cc3a3 | 2,364 | py | Python | bad_apps_blog/__init__.py | bkesk/bad-apps-blog | 86df1e848cd17f17bce9bb06d6c1ac1f81b23b9e | [
"BSD-3-Clause"
] | null | null | null | bad_apps_blog/__init__.py | bkesk/bad-apps-blog | 86df1e848cd17f17bce9bb06d6c1ac1f81b23b9e | [
"BSD-3-Clause"
] | 1 | 2022-03-31T00:30:57.000Z | 2022-03-31T21:31:17.000Z | bad_apps_blog/__init__.py | bkesk/bad-apps-blog | 86df1e848cd17f17bce9bb06d6c1ac1f81b23b9e | [
"BSD-3-Clause"
] | null | null | null | """
Bad Apps Blog
Author: Brandon Eskridge (a.k.a. 7UR7L3)
(Initial commit is based on the official Flask tutorial)
About: This app began as an (essentially) exact copy
of the official Flask tutorial (linke below). It is
intented as an opportunity to practice application
security, secure design, and secure coding t... | 29.55 | 112 | 0.706853 |
67ce55c048774bb454c705b23d4003d7370d1d13 | 204 | py | Python | status/urls.py | Khryptooo/infra_api | 15b69dea8e0ce1795525f96d9362722151b3c8f7 | [
"BSD-2-Clause"
] | null | null | null | status/urls.py | Khryptooo/infra_api | 15b69dea8e0ce1795525f96d9362722151b3c8f7 | [
"BSD-2-Clause"
] | null | null | null | status/urls.py | Khryptooo/infra_api | 15b69dea8e0ce1795525f96d9362722151b3c8f7 | [
"BSD-2-Clause"
] | null | null | null | from django.conf.urls import patterns, url
from status import views
urlpatterns = patterns('',
url(r'^ups$', views.ups_status, name='ups_status'),
url(r'^tor$', views.tor_status, name='tor_status'),
)
| 25.5 | 52 | 0.720588 |
67ce7c38eacf87bac8bd21b2a7cec718eeabebeb | 9,100 | py | Python | automation/auto_update_image_pr.py | WaqasAhmedLatif/cloud-native-edition | 1e6002f27ea971c153df59373e30d4506e9932dc | [
"Apache-2.0"
] | 23 | 2020-04-18T14:51:41.000Z | 2022-03-31T19:59:40.000Z | automation/auto_update_image_pr.py | WaqasAhmedLatif/cloud-native-edition | 1e6002f27ea971c153df59373e30d4506e9932dc | [
"Apache-2.0"
] | 236 | 2020-04-22T08:59:27.000Z | 2022-03-31T07:21:12.000Z | automation/auto_update_image_pr.py | WaqasAhmedLatif/cloud-native-edition | 1e6002f27ea971c153df59373e30d4506e9932dc | [
"Apache-2.0"
] | 23 | 2020-04-19T15:25:59.000Z | 2022-03-16T17:17:36.000Z | import os
import json
from common import update_json_file, get_logger, exec_cmd
from yamlparser import Parser
from pathlib import Path
logger = get_logger("update-image")
# Functions that work to update gluu_versions.json
def determine_final_official_and_dev_version(tag_list):
"""
Determine official version... | 42.325581 | 120 | 0.656703 |
67ce95b83726624dc137a006b385290c23c7bf1c | 2,767 | py | Python | es_reporting_tool/generate_report.py | yugendra/elasticsearch_reporting_tool | bdbb5ae95efdc7552d9dfe771ecf44432246d7bb | [
"Apache-2.0"
] | null | null | null | es_reporting_tool/generate_report.py | yugendra/elasticsearch_reporting_tool | bdbb5ae95efdc7552d9dfe771ecf44432246d7bb | [
"Apache-2.0"
] | 4 | 2021-06-01T21:49:24.000Z | 2022-01-13T00:39:06.000Z | es_reporting_tool/generate_report.py | yugendra/elasticsearch_reporting_tool | bdbb5ae95efdc7552d9dfe771ecf44432246d7bb | [
"Apache-2.0"
] | null | null | null | from reportlab.lib import colors
from reportlab.lib.styles import getSampleStyleSheet
from reportlab.lib.units import inch
from reportlab.lib.pagesizes import A3
from reportlab.platypus import Paragraph, SimpleDocTemplate, Table, TableStyle
from reportlab.lib.enums import TA_CENTER
import datetime
| 36.893333 | 118 | 0.550777 |
67cee025d3929b6dcb02f8283d7e7b80eb2a3619 | 2,958 | py | Python | fe/functional.py | proteneer/timemachine | feee9f24adcb533ab9e1c15a3f4fa4dcc9d9a701 | [
"Apache-2.0"
] | 91 | 2019-01-05T17:03:04.000Z | 2022-03-11T09:08:46.000Z | fe/functional.py | proteneer/timemachine | feee9f24adcb533ab9e1c15a3f4fa4dcc9d9a701 | [
"Apache-2.0"
] | 474 | 2019-01-07T14:33:15.000Z | 2022-03-31T19:15:12.000Z | fe/functional.py | proteneer/timemachine | feee9f24adcb533ab9e1c15a3f4fa4dcc9d9a701 | [
"Apache-2.0"
] | 12 | 2019-01-13T00:40:36.000Z | 2022-01-14T10:23:54.000Z | from jax import config
config.update("jax_enable_x64", True)
from jax import custom_jvp, numpy as np
from timemachine.lib.potentials import SummedPotential
def wrap_impl(impl, pack=lambda x: x):
"""Construct a differentiable function U(x, params, box, lam) -> float
from a single unbound potential
"""
... | 36.975 | 111 | 0.713658 |
67cf0d02161a3633d1e7bda727c4a5909dae5bbc | 996 | py | Python | utilityfiles/race.py | IronicNinja/covid19api | f96a18c646379fe144db228eaa3c69d66125628d | [
"MIT"
] | 1 | 2020-09-16T05:18:54.000Z | 2020-09-16T05:18:54.000Z | utilityfiles/race.py | IronicNinja/covid19api | f96a18c646379fe144db228eaa3c69d66125628d | [
"MIT"
] | null | null | null | utilityfiles/race.py | IronicNinja/covid19api | f96a18c646379fe144db228eaa3c69d66125628d | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup as soup
from urllib.request import Request, urlopen
from datetime import date
import math
import openpyxl
import pandas as pd
fname = 'https://www.governing.com/gov-data/census/state-minority-population-data-estimates.html'
req = Request(fname, headers={'User-Agent': 'Mozilla/5.0'})
webpa... | 25.538462 | 97 | 0.63755 |
67d227f164d327f585654ba9c51b22b4d48f67c1 | 7,601 | py | Python | prioListe/utils.py | FelixTheC/allSales | 76d955b80bf9b5bb58bd53d8ee644249cf04e1a3 | [
"Apache-2.0"
] | null | null | null | prioListe/utils.py | FelixTheC/allSales | 76d955b80bf9b5bb58bd53d8ee644249cf04e1a3 | [
"Apache-2.0"
] | null | null | null | prioListe/utils.py | FelixTheC/allSales | 76d955b80bf9b5bb58bd53d8ee644249cf04e1a3 | [
"Apache-2.0"
] | null | null | null | from django.core.exceptions import FieldError
from staff.models import Staff
import re
STAFFCHOICESONE = set()
for staff in Staff.objects.all():
STAFFCHOICESONE.add((staff.initialies, staff.name))
STAFFCHOICESTWO = set()
STAFFCHOICESTWO.add(('', ''))
for staff in Staff.objects.all():
STAFFCHOICESTWO.add((sta... | 32.482906 | 104 | 0.568215 |
67d23e8a7d069e05acd374ed761b417602e522e5 | 287 | py | Python | app/pydantic_models/phone.py | matiasbavera/fastapi-tortoise-fk-example | b61b202e20604a03bb36291fc534935048f17187 | [
"Apache-2.0"
] | null | null | null | app/pydantic_models/phone.py | matiasbavera/fastapi-tortoise-fk-example | b61b202e20604a03bb36291fc534935048f17187 | [
"Apache-2.0"
] | null | null | null | app/pydantic_models/phone.py | matiasbavera/fastapi-tortoise-fk-example | b61b202e20604a03bb36291fc534935048f17187 | [
"Apache-2.0"
] | null | null | null | from pydantic import BaseModel
from app.orm_models.phone import Phone
from tortoise.contrib.pydantic import pydantic_model_creator
Phone_Pydantic = pydantic_model_creator(Phone, name="Phone")
PhoneIn_Pydantic = pydantic_model_creator(
Phone, name="PhoneIn", exclude_readonly=True)
| 31.888889 | 60 | 0.832753 |
67d27163450c56993ca54027a1f3ba12395df50b | 6,403 | py | Python | suls/mealymachine.py | TCatshoek/lstar | 042b0ae3a0627db7a412c828f3752a9c30928ec1 | [
"MIT"
] | 2 | 2019-10-15T11:28:12.000Z | 2021-01-28T15:14:09.000Z | suls/mealymachine.py | TCatshoek/lstar | 042b0ae3a0627db7a412c828f3752a9c30928ec1 | [
"MIT"
] | null | null | null | suls/mealymachine.py | TCatshoek/lstar | 042b0ae3a0627db7a412c828f3752a9c30928ec1 | [
"MIT"
] | null | null | null |
# Need this to fix types
from __future__ import annotations
import tempfile
import threading
from typing import Union, Iterable, Dict, Tuple
from suls.sul import SUL
from graphviz import Digraph
import random
from itertools import product
# A statemachine can represent a system under learning
| 34.240642 | 116 | 0.562236 |
67d2e3d4874353fb5ea93748eaef79e0a94659bb | 636 | py | Python | app/email.py | DXYyang/shenNeng_gasAnalysis | d94e2451d1938c090d1377dfbd487d0c6a649188 | [
"MIT"
] | 1 | 2020-02-16T04:32:15.000Z | 2020-02-16T04:32:15.000Z | app/email.py | DXYyang/shenNeng_gasAnalysis | d94e2451d1938c090d1377dfbd487d0c6a649188 | [
"MIT"
] | null | null | null | app/email.py | DXYyang/shenNeng_gasAnalysis | d94e2451d1938c090d1377dfbd487d0c6a649188 | [
"MIT"
] | null | null | null | from threading import Thread
from flask import current_app,render_template
from flask_mail import Message
from . import mail | 35.333333 | 72 | 0.72956 |
67d3514f1ace46de9127a9a4a21e892c7ad712e0 | 29,708 | py | Python | MAIN_FIGURES.py | tortugar/Schott_etal_2022 | 5cccec4d59184397df39f0bae3544b9c8294ffe2 | [
"MIT"
] | null | null | null | MAIN_FIGURES.py | tortugar/Schott_etal_2022 | 5cccec4d59184397df39f0bae3544b9c8294ffe2 | [
"MIT"
] | null | null | null | MAIN_FIGURES.py | tortugar/Schott_etal_2022 | 5cccec4d59184397df39f0bae3544b9c8294ffe2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Oct 10 18:30:46 2021
@author: fearthekraken
"""
import AS
import pwaves
import sleepy
import pandas as pd
#%%
### FIGURE 1C - example EEGs for NREM, IS, and REM ###
ppath = '/home/fearthekraken/Documents/Data/photometry'
AS.plot_example(ppath, 'ha... | 60.752556 | 150 | 0.660832 |
67d3ce8adb8ddc67219cf049efed17f327e1aab1 | 42 | py | Python | bitmovin/services/filters/__init__.py | camberbridge/bitmovin-python | 3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95 | [
"Unlicense"
] | 44 | 2016-12-12T17:37:23.000Z | 2021-03-03T09:48:48.000Z | bitmovin/services/filters/__init__.py | camberbridge/bitmovin-python | 3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95 | [
"Unlicense"
] | 38 | 2017-01-09T14:45:45.000Z | 2022-02-27T18:04:33.000Z | bitmovin/services/filters/__init__.py | camberbridge/bitmovin-python | 3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95 | [
"Unlicense"
] | 27 | 2017-02-02T22:49:31.000Z | 2019-11-21T07:04:57.000Z | from .filter_service import FilterService
| 21 | 41 | 0.880952 |
67d3edf3fcff0ea5f8066746c234cf386931fcea | 4,177 | py | Python | inspect_population.py | puzis/OverflowPrediction | 01341df701e513025cb427d4cdf1db0868a5963b | [
"MIT"
] | 5 | 2019-11-19T11:53:23.000Z | 2022-03-11T05:54:46.000Z | inspect_population.py | puzis/OverflowPrediction | 01341df701e513025cb427d4cdf1db0868a5963b | [
"MIT"
] | 5 | 2020-05-29T23:53:14.000Z | 2022-03-12T00:05:11.000Z | inspect_population.py | erap129/EEGNAS | 1d9c94b106d40317146f7f09d79fad489f1059dc | [
"MIT"
] | 1 | 2021-12-17T14:25:04.000Z | 2021-12-17T14:25:04.000Z | import pickle
from copy import deepcopy
from graphviz import Digraph
from torch.nn import Conv2d, MaxPool2d, ELU, Dropout, BatchNorm2d
import pandas as pd
from EEGNAS.model_generation.abstract_layers import IdentityLayer, ConvLayer, PoolingLayer, ActivationLayer
from EEGNAS.model_generation.custom_modules import Ident... | 44.913978 | 201 | 0.677041 |
67d91682b7361980dedb029fa4ec3aa3743a4f6d | 3,910 | py | Python | implementations/rest/bin/authhandlers.py | djsincla/SplunkModularInputsPythonFramework | 1dd215214f3d2644cb358e41f4105fe40cff5393 | [
"Apache-2.0"
] | 3 | 2020-08-31T00:59:26.000Z | 2021-10-19T22:01:00.000Z | implementations/rest/bin/authhandlers.py | djsincla/SplunkModularInputsPythonFramework | 1dd215214f3d2644cb358e41f4105fe40cff5393 | [
"Apache-2.0"
] | null | null | null | implementations/rest/bin/authhandlers.py | djsincla/SplunkModularInputsPythonFramework | 1dd215214f3d2644cb358e41f4105fe40cff5393 | [
"Apache-2.0"
] | null | null | null | from requests.auth import AuthBase
import hmac
import base64
import hashlib
import urlparse
import urllib
#add your custom auth handler class to this module
#template
#example of adding a client certificate
#example of adding a client certificate
#cloudstack auth example | 29.179104 | 100 | 0.586701 |
67d9abf1948658a2c5e38ae12ec4d8b8adf3bd58 | 1,515 | py | Python | sdk/core/azure-core/azure/core/pipeline/policies/authentication_async.py | pjquirk/azure-sdk-for-python | cbf02ec4f177b96eae1dbbba87c34c2c93880150 | [
"MIT"
] | null | null | null | sdk/core/azure-core/azure/core/pipeline/policies/authentication_async.py | pjquirk/azure-sdk-for-python | cbf02ec4f177b96eae1dbbba87c34c2c93880150 | [
"MIT"
] | null | null | null | sdk/core/azure-core/azure/core/pipeline/policies/authentication_async.py | pjquirk/azure-sdk-for-python | cbf02ec4f177b96eae1dbbba87c34c2c93880150 | [
"MIT"
] | null | null | null | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from azure... | 48.870968 | 113 | 0.681848 |
67da024b54f0853f0965d1f566e700aad7c2a74c | 152 | py | Python | pbt/population/__init__.py | automl/HPO_for_RL | d82c7ddd6fe19834c088137570530f11761d9390 | [
"Apache-2.0"
] | 9 | 2021-06-22T08:54:19.000Z | 2022-03-28T09:10:59.000Z | pbt/population/__init__.py | automl/HPO_for_RL | d82c7ddd6fe19834c088137570530f11761d9390 | [
"Apache-2.0"
] | null | null | null | pbt/population/__init__.py | automl/HPO_for_RL | d82c7ddd6fe19834c088137570530f11761d9390 | [
"Apache-2.0"
] | null | null | null | from .trial import Trial, NoTrial
from .member import Member
from .population import Population
__all__ = ['Trial', 'NoTrial', 'Member', 'Population']
| 25.333333 | 54 | 0.75 |
67da0e87556ec7b055d13f1258cbac356a9a64d2 | 7,003 | py | Python | darth/process.py | OOXXXXOO/DARTH | bd899acc7a777157f393c7078b9deccbf6e7e461 | [
"Apache-2.0"
] | 11 | 2020-06-30T03:57:41.000Z | 2021-05-20T13:19:41.000Z | darth/process.py | ceresman/darth | 038cd7cdc18771b73873bd5a8653c89655336448 | [
"Apache-2.0"
] | 3 | 2021-09-08T02:14:52.000Z | 2022-03-12T00:37:29.000Z | darth/process.py | ceresman/darth | 038cd7cdc18771b73873bd5a8653c89655336448 | [
"Apache-2.0"
] | 6 | 2020-07-01T06:11:43.000Z | 2020-09-11T05:57:41.000Z | import multiprocessing
from tqdm import tqdm
import os
import gdal
from .downloader import downloader
from .obsclient import bucket
from .vector import Vector
def Process(
VectorDataSource,
WgsCord,
Class_key,
DataSourcesType='Google China',
DataSetName="DataSet",
Remote_dataset_root="DataS... | 31.977169 | 109 | 0.456519 |
67dbe149e9deb1f839afee4ecf248d5698ff9007 | 1,016 | py | Python | setup.py | Willd14469/cj8-patient-panthers | b977091c19cd0e7299f91ebd94ce25c086661fd7 | [
"MIT"
] | 1 | 2021-10-04T09:42:58.000Z | 2021-10-04T09:42:58.000Z | setup.py | Willd14469/cj8-patient-panthers | b977091c19cd0e7299f91ebd94ce25c086661fd7 | [
"MIT"
] | 5 | 2021-07-17T13:24:42.000Z | 2021-07-17T13:35:32.000Z | setup.py | Willd14469/cj8-patient-panthers | b977091c19cd0e7299f91ebd94ce25c086661fd7 | [
"MIT"
] | null | null | null | import sys
from setuptools import setup
required_packages = ["boombox", "Pillow", "PyYAML", "rich"]
win_packages = ["keyboard"]
unix_packages = ["pynput"]
WIN = "win32"
LINUX = "linux"
MACOS = "darwin"
if sys.platform == WIN:
required_packages += win_packages
elif sys.platform in (LINUX, MACOS):
required_pa... | 23.627907 | 73 | 0.616142 |
67dc3420f8889bf1e85452c17cc2bb0c45148c0c | 2,609 | py | Python | lunch_handler.py | wimo7083/Wheel-Of-Lunch-Slack-Bot | 7bcb8cc6a4ccd1b6034a9e3a60b470a1934962ef | [
"MIT"
] | 1 | 2018-03-27T04:01:19.000Z | 2018-03-27T04:01:19.000Z | lunch_handler.py | wimo7083/Wheel-Of-Lunch-Slack-Bot | 7bcb8cc6a4ccd1b6034a9e3a60b470a1934962ef | [
"MIT"
] | 2 | 2018-04-22T22:25:44.000Z | 2018-05-26T03:10:08.000Z | lunch_handler.py | wimo7083/Wheel-Of-Lunch-Slack-Bot | 7bcb8cc6a4ccd1b6034a9e3a60b470a1934962ef | [
"MIT"
] | null | null | null | from zipcodes import is_valid
from random import randint
from all_lunch_locs import call_lunch_api
default_max = 30
default_range = 20
if __name__ == '__main__':
# format of the json
# CombinedMultiDict([ImmutableMultiDict([]), ImmutableMultiDict(
# [('token', 'workspace token'), ('team_id', ... | 31.817073 | 156 | 0.690303 |
67e03d999e85af82b3115a02553d48dddb7a3aa2 | 1,414 | py | Python | py-insta/__init__.py | ItsTrakos/Py-insta | 483725f13b7c7eab0261b461c7ec507d1109a9f4 | [
"Unlicense"
] | null | null | null | py-insta/__init__.py | ItsTrakos/Py-insta | 483725f13b7c7eab0261b461c7ec507d1109a9f4 | [
"Unlicense"
] | null | null | null | py-insta/__init__.py | ItsTrakos/Py-insta | 483725f13b7c7eab0261b461c7ec507d1109a9f4 | [
"Unlicense"
] | null | null | null |
"""
# -*- coding: utf-8 -*-
__author__ = "Trakos"
__email__ = "mhdeiimhdeiika@gmail.com"
__version__ = 1.0.0"
__copyright__ = "Copyright (c) 2019 -2021 Leonard Richardson"
# Use of this source code is governed by the MIT license.
__license__ = "MIT"
Description:
py-Insta Is A Python Library
... | 32.883721 | 117 | 0.562942 |
67e244309b1b3c160456702586e33422cb197d21 | 1,182 | py | Python | pyopenproject/business/services/command/membership/create.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 5 | 2021-02-25T15:54:28.000Z | 2021-04-22T15:43:36.000Z | pyopenproject/business/services/command/membership/create.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 7 | 2021-03-15T16:26:23.000Z | 2022-03-16T13:45:18.000Z | pyopenproject/business/services/command/membership/create.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 6 | 2021-06-18T18:59:11.000Z | 2022-03-27T04:58:52.000Z | from pyopenproject.api_connection.exceptions.request_exception import RequestError
from pyopenproject.api_connection.requests.post_request import PostRequest
from pyopenproject.business.exception.business_error import BusinessError
from pyopenproject.business.services.command.membership.membership_command import Member... | 43.777778 | 99 | 0.685279 |
67e2f36fcb3cfb98bcd8a0637b9a6793dd11a7cc | 5,783 | py | Python | lottery/branch/singular_values.py | NogaBar/open_lth | 09bcea21e69708549ecff2659690162a6c45f9ca | [
"MIT"
] | null | null | null | lottery/branch/singular_values.py | NogaBar/open_lth | 09bcea21e69708549ecff2659690162a6c45f9ca | [
"MIT"
] | null | null | null | lottery/branch/singular_values.py | NogaBar/open_lth | 09bcea21e69708549ecff2659690162a6c45f9ca | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
from lottery.branch import base
import models.registry
from pruning.mask import Mask
from pruning.pruned_model import PrunedModel... | 45.896825 | 187 | 0.649144 |
67e342235525736d0490c23bf879ad0c51964c88 | 6,400 | py | Python | parser.py | Saevon/DMP-Career-Share | e3486080d1e17b93b6676bdf59e0dc89c524c9f6 | [
"MIT"
] | null | null | null | parser.py | Saevon/DMP-Career-Share | e3486080d1e17b93b6676bdf59e0dc89c524c9f6 | [
"MIT"
] | null | null | null | parser.py | Saevon/DMP-Career-Share | e3486080d1e17b93b6676bdf59e0dc89c524c9f6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from collections import OrderedDict
from decimal import Decimal
from parser_data import InlineList, DuplicationList
from state import State, StateMachine
from type_check import is_int, is_float, is_sci_notation
from format import format
from error import DMPException
... | 26.122449 | 90 | 0.569688 |
67e41af80998f84e9f552dffe5a9fc7f2b6c4124 | 1,795 | py | Python | scripts/redact_cli_py/redact/io/blob_reader.py | jhapran/OCR-Form-Tools | 77e80227f7285c419f72b12edbbc8c316b973874 | [
"MIT"
] | 412 | 2020-03-02T21:43:17.000Z | 2022-03-24T17:20:33.000Z | scripts/redact_cli_py/redact/io/blob_reader.py | jhapran/OCR-Form-Tools | 77e80227f7285c419f72b12edbbc8c316b973874 | [
"MIT"
] | 388 | 2020-03-05T14:08:31.000Z | 2022-03-25T19:07:05.000Z | scripts/redact_cli_py/redact/io/blob_reader.py | jhapran/OCR-Form-Tools | 77e80227f7285c419f72b12edbbc8c316b973874 | [
"MIT"
] | 150 | 2020-03-03T17:29:11.000Z | 2022-03-16T23:55:27.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project
# root for license information.
from typing import List
from pathlib import Path
from azure.storage.blob import ContainerClient
from redact.types.file_bundle import FileBundle
| 37.395833 | 78 | 0.640111 |
67e4a190f4b21b618d8a69e714cec31032c3687f | 8,111 | py | Python | layers/util/mapping_functions.py | meder411/spherical-package | 73d51a25da5891d12e4c04d8ad2e6f1854ffa121 | [
"BSD-3-Clause"
] | 8 | 2020-06-13T19:49:06.000Z | 2022-02-24T07:16:02.000Z | layers/util/mapping_functions.py | meder411/spherical-package | 73d51a25da5891d12e4c04d8ad2e6f1854ffa121 | [
"BSD-3-Clause"
] | 4 | 2020-07-03T08:44:13.000Z | 2021-09-17T12:18:57.000Z | layers/util/mapping_functions.py | meder411/spherical-package | 73d51a25da5891d12e4c04d8ad2e6f1854ffa121 | [
"BSD-3-Clause"
] | 3 | 2020-06-10T23:30:20.000Z | 2020-12-29T13:50:01.000Z | import torch
import math
from .grids import *
from .conversions import *
# =============================================================================
# Equirectangular mapping functions
# =============================================================================
#
# Note that there is no concept of padding for ... | 33.378601 | 198 | 0.601159 |
67e4a6a4b62a36140c3ec2606810cde8cf6567ae | 8,164 | py | Python | src/lambda_router/routers.py | jpaidoussi/lambda-router | c7909e6667f2fc837f34f54ccffcc409e33cebb6 | [
"BSD-3-Clause"
] | null | null | null | src/lambda_router/routers.py | jpaidoussi/lambda-router | c7909e6667f2fc837f34f54ccffcc409e33cebb6 | [
"BSD-3-Clause"
] | null | null | null | src/lambda_router/routers.py | jpaidoussi/lambda-router | c7909e6667f2fc837f34f54ccffcc409e33cebb6 | [
"BSD-3-Clause"
] | 1 | 2021-03-05T06:50:26.000Z | 2021-03-05T06:50:26.000Z | import json
from typing import Any, Callable, Dict, Optional
import attr
from .interfaces import Event, Router
| 32.268775 | 114 | 0.614037 |
67e5a6a6c74d4339ea14061f1806e706d149cac0 | 6,026 | py | Python | Modules/ego_planner/ego-planner-swarm/src/uav_simulator/Utils/multi_map_server/src/multi_map_server/msg/_VerticalOccupancyGridList.py | 473867143/Prometheus | df1e1b0d861490223ac8b94d8cc4796537172292 | [
"BSD-3-Clause"
] | 1,217 | 2020-07-02T13:15:18.000Z | 2022-03-31T06:17:44.000Z | Modules/ego_planner/ego-planner-swarm/src/uav_simulator/Utils/multi_map_server/src/multi_map_server/msg/_VerticalOccupancyGridList.py | 473867143/Prometheus | df1e1b0d861490223ac8b94d8cc4796537172292 | [
"BSD-3-Clause"
] | 167 | 2020-07-12T15:35:43.000Z | 2022-03-31T11:57:40.000Z | Modules/ego_planner/ego-planner-swarm/src/uav_simulator/Utils/multi_map_server/src/multi_map_server/msg/_VerticalOccupancyGridList.py | 473867143/Prometheus | df1e1b0d861490223ac8b94d8cc4796537172292 | [
"BSD-3-Clause"
] | 270 | 2020-07-02T13:28:00.000Z | 2022-03-28T05:43:08.000Z | """autogenerated by genpy from multi_map_server/VerticalOccupancyGridList.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
_struct_I = genpy.struct_I
_struct_2f = struct.Struct("<2f")
| 32.397849 | 123 | 0.623963 |
67e63c84e17221da6f00d66f3c8761be24cd93e2 | 2,718 | py | Python | examples/plot_benchmark.py | MrNuggelz/glvq | 1eba279a07fd7abe2ee18ccdba27fba22755f877 | [
"BSD-3-Clause"
] | 27 | 2018-04-11T06:46:07.000Z | 2022-03-24T06:15:31.000Z | examples/plot_benchmark.py | MrNuggelz/glvq | 1eba279a07fd7abe2ee18ccdba27fba22755f877 | [
"BSD-3-Clause"
] | 11 | 2018-04-13T02:04:06.000Z | 2021-09-26T21:32:50.000Z | examples/plot_benchmark.py | MrNuggelz/glvq | 1eba279a07fd7abe2ee18ccdba27fba22755f877 | [
"BSD-3-Clause"
] | 17 | 2018-04-05T13:46:06.000Z | 2022-03-24T06:15:35.000Z | """
==============
GLVQ Benchmark
==============
This example shows the differences between the 4 different GLVQ implementations and LMNN.
The Image Segmentation dataset is used for training and test. Each plot shows the projection
and classification from each implementation. Because Glvq can't project the data on its ... | 27.734694 | 92 | 0.654893 |