hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
1d738f1f3ca0e3cf84852051f83cca89f6ca9ab4
901
py
Python
visualization/data.py
pollyyu/trends-togo
9fc192f19599f9aaba1754f80d242cce2d0e38c9
[ "MIT" ]
1
2020-06-08T22:39:09.000Z
2020-06-08T22:39:09.000Z
visualization/data.py
pollyyu/trends-togo
9fc192f19599f9aaba1754f80d242cce2d0e38c9
[ "MIT" ]
null
null
null
visualization/data.py
pollyyu/trends-togo
9fc192f19599f9aaba1754f80d242cce2d0e38c9
[ "MIT" ]
null
null
null
import pandas as pd from sqlalchemy import create_engine engine = create_engine('xxx') import sys try: import psycopg2 as pg except ImportError: print("You should install psycopg2 with the command") print(" conda install psycopg2") sys.exit(0) connection_args = { '...
27.30303
193
0.699223
1d74086575fc306925f77889be4cb99cdc8fae52
32,665
py
Python
electrum/plugins/revealer/qt.py
traysi/electrum-raven
b2a64a459da32afd2987149460253cfadec03384
[ "MIT" ]
5
2018-10-31T18:47:54.000Z
2021-09-20T02:04:42.000Z
electrum/plugins/revealer/qt.py
traysi/electrum-raven
b2a64a459da32afd2987149460253cfadec03384
[ "MIT" ]
null
null
null
electrum/plugins/revealer/qt.py
traysi/electrum-raven
b2a64a459da32afd2987149460253cfadec03384
[ "MIT" ]
11
2018-10-31T19:46:05.000Z
2019-09-25T20:18:37.000Z
''' Revealer So you have something to hide? plug-in for the electrum wallet. Features: - Deep Cold multi-factor backup solution - Safety - One time pad security - Redundancy - Trustless printing & distribution - Encrypt your seedphrase or any secret you want for your revealer - Based on crypto by...
42.202842
151
0.57508
1d7409c7abcefa7a0cf23af9918ad513759e392f
3,149
py
Python
embiggen/embedders/pykeen_embedders/auto_sf.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
2
2020-01-30T11:57:37.000Z
2020-05-02T00:05:49.000Z
embiggen/embedders/pykeen_embedders/auto_sf.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
93
2020-01-26T00:43:51.000Z
2020-05-10T03:29:54.000Z
embiggen/embedders/pykeen_embedders/auto_sf.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
5
2020-02-13T07:18:11.000Z
2020-03-19T08:03:34.000Z
"""Submodule providing wrapper for PyKeen's AutoSF model.""" from typing import Union, Type, Dict, Any from pykeen.training import TrainingLoop from pykeen.models import AutoSF from embiggen.embedders.pykeen_embedders.entity_relation_embedding_model_pykeen import EntityRelationEmbeddingModelPyKeen from pykeen.triples i...
33.5
121
0.588123
1d741400374acea553f7ad3066fb74ae76e626a4
44,424
py
Python
test/unit/managers/test_HistoryManager.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
test/unit/managers/test_HistoryManager.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
test/unit/managers/test_HistoryManager.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
# -*- coding: utf-8 -*- """ """ import os import sys import unittest import sqlalchemy from six import string_types from sqlalchemy import true from galaxy import ( exceptions, model ) from galaxy.managers import ( base, hdas ) from galaxy.managers.histories import ( HistoryDeserializer, Histo...
48.871287
122
0.69109
1d74157bff5f461665bd4e980ef651cbe9d174b0
13,552
py
Python
pjinoise/sources/random.py
pji/pjinoise
3967d69fa57be1136cdeb8f4a5d187ee455fa783
[ "MIT" ]
1
2021-04-07T06:20:55.000Z
2021-04-07T06:20:55.000Z
pjinoise/sources/random.py
pji/pjinoise
3967d69fa57be1136cdeb8f4a5d187ee455fa783
[ "MIT" ]
null
null
null
pjinoise/sources/random.py
pji/pjinoise
3967d69fa57be1136cdeb8f4a5d187ee455fa783
[ "MIT" ]
null
null
null
""" random ~~~~~~ Sources for the pjinoise module that involve random generation. """ from typing import Sequence, Union import cv2 import numpy as np from numpy.random import default_rng from pjinoise import common as c from pjinoise import operations as op from pjinoise.constants import X, Y, Z from .source import...
39.858824
78
0.607733
1d74230271e590c457c649c217902bb4dc94bd4e
1,657
py
Python
reliabilly/tests/monitor_clients/test_data_monitoring_client.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2018-11-24T02:07:37.000Z
2018-11-24T02:07:37.000Z
reliabilly/tests/monitor_clients/test_data_monitoring_client.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2019-01-23T07:12:30.000Z
2019-01-23T07:12:30.000Z
reliabilly/tests/monitor_clients/test_data_monitoring_client.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2019-01-16T05:30:49.000Z
2019-01-16T05:30:49.000Z
# pylint: disable=invalid-name,no-self-use import unittest from unittest import skipUnless from unittest.mock import MagicMock from reliabilly.components.tools.data_monitoring_client import DataMonitoringClient from reliabilly.settings import Settings, Constants class DataMonitoringClientTests(unittest.TestCase): ...
40.414634
107
0.665661
1d742911917d2a8c2b7e0346e7aaba209ef2192f
8,977
py
Python
internal/chrome_desktop.py
saadasimosu/wptagent
d81741692ccf22c555ec79a93035e825a3e635d3
[ "Apache-2.0" ]
null
null
null
internal/chrome_desktop.py
saadasimosu/wptagent
d81741692ccf22c555ec79a93035e825a3e635d3
[ "Apache-2.0" ]
null
null
null
internal/chrome_desktop.py
saadasimosu/wptagent
d81741692ccf22c555ec79a93035e825a3e635d3
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. All rights reserved. # Use of this source code is governed by the Apache 2.0 license that can be # found in the LICENSE file. """Logic for controlling a desktop Chrome browser""" import gzip import logging import os import platform import subprocess import shutil import time from .desktop_b...
42.545024
95
0.605102
1d743eb815c31c72d88deddd6f9f984b7d047778
1,323
py
Python
dopamine/thesis/scratch/test_network_pytree.py
xqz-u/dopamine
d562750a58bcf681a6f8b590f4e4dfb263654b5e
[ "Apache-2.0" ]
null
null
null
dopamine/thesis/scratch/test_network_pytree.py
xqz-u/dopamine
d562750a58bcf681a6f8b590f4e4dfb263654b5e
[ "Apache-2.0" ]
null
null
null
dopamine/thesis/scratch/test_network_pytree.py
xqz-u/dopamine
d562750a58bcf681a6f8b590f4e4dfb263654b5e
[ "Apache-2.0" ]
null
null
null
import jax import optax from jax import numpy as jnp from jax import random as jrand from thesis import custom_pytrees from thesis.jax import networks from thesis.tests import test_rng_pytree @jax.jit def pippone(a): a.params = jax.tree_map(lambda p: p * 2, a.params) return a @jax.jit def cip(a): return...
24.962264
77
0.70446
1d744a585c0a769276f78ce71235b9470f438665
8,123
py
Python
artisan/_fs_index.py
MasonMcGill/artisan
f24932289bfe4f606b30516d429dc982df27ffdd
[ "MIT" ]
null
null
null
artisan/_fs_index.py
MasonMcGill/artisan
f24932289bfe4f606b30516d429dc982df27ffdd
[ "MIT" ]
9
2019-06-10T11:27:56.000Z
2022-01-20T15:53:28.000Z
artisan/_fs_index.py
MasonMcGill/artisan
f24932289bfe4f606b30516d429dc982df27ffdd
[ "MIT" ]
1
2019-06-07T15:44:33.000Z
2019-06-07T15:44:33.000Z
''' Filesystem indexing. Internal definitions: DirIndex (class): An index of entries in a directory. TreeIndex (class): An index of entries in a directory tree. ''' from __future__ import annotations import json from os.path import lexists from pathlib import Path from time import time from typing import Any...
33.705394
80
0.598301
1d74635cf02020406a9ee5bb12ae5377e40dd705
4,077
py
Python
jrnl/upgrade.py
TonyRoomZ/jrnl
75459bb9fcd19107d56b9560094137924e88959f
[ "MIT" ]
null
null
null
jrnl/upgrade.py
TonyRoomZ/jrnl
75459bb9fcd19107d56b9560094137924e88959f
[ "MIT" ]
null
null
null
jrnl/upgrade.py
TonyRoomZ/jrnl
75459bb9fcd19107d56b9560094137924e88959f
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals import codecs import os import sys from . import Journal, __version__, util from .EncryptedJournal import EncryptedJournal def backup(filename, binary=False): util.prompt(" Created a backup at {}.backup".format(filename)) filename = os.path.expanduse...
39.582524
110
0.680402
1d74c71c7e70426bfb290d09697d4f050a24c24a
10,056
py
Python
src/sentry/web/frontend/auth_login.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
src/sentry/web/frontend/auth_login.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
src/sentry/web/frontend/auth_login.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from django.conf import settings from django.contrib import messages from django.contrib.auth import REDIRECT_FIELD_NAME from django.core.urlresolvers import reverse from django.db import transaction from django.http import HttpResponseRedirect from django.utils.translation impor...
38.676923
100
0.650457
1d74d092971f62794443020bb2106b1a6d1cd26c
2,412
py
Python
tests/api/v1_3_1/test_authentication.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/api/v1_3_1/test_authentication.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/api/v1_3_1/test_authentication.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNACenterAPI authentication API fixtures and tests. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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 restric...
34.956522
95
0.763682
1d74e8b3679807eb7fdb8511c5ac3db8726b77d5
2,456
py
Python
salah_com_fetcher.py
hamir/islam-buddy
3ec70d74814cbed719ecc3683668a0e5fb5a410c
[ "MIT" ]
7
2017-10-26T00:23:17.000Z
2021-01-21T06:27:46.000Z
salah_com_fetcher.py
hamir/islam-buddy
3ec70d74814cbed719ecc3683668a0e5fb5a410c
[ "MIT" ]
12
2017-05-23T22:54:50.000Z
2019-07-31T17:26:17.000Z
salah_com_fetcher.py
hamir/islam-buddy
3ec70d74814cbed719ecc3683668a0e5fb5a410c
[ "MIT" ]
5
2017-05-23T00:44:10.000Z
2019-10-23T14:57:35.000Z
"""Fetches prayer times from 'www.salah.com'.""" import json import requests _SALAH_API_URL = 'http://www.salah.com/times/get' ''' The 'salah.com' API provides a response in the following format: "Prayers": { "2017": { "5": { 17": { # actual prayer times yere "Fajr": "5 AM" ... }}} } The depth of the ...
28.229885
79
0.618893
1d74fb04e009af9dc19fd90de56e2f7f522ae1e0
1,747
py
Python
opersist/models/crawlstatus.py
datadavev/mnlite
be3118cde634fce97ea689e1044803edf3cbc1ea
[ "Apache-2.0" ]
null
null
null
opersist/models/crawlstatus.py
datadavev/mnlite
be3118cde634fce97ea689e1044803edf3cbc1ea
[ "Apache-2.0" ]
14
2021-07-07T13:17:40.000Z
2022-01-17T19:01:34.000Z
opersist/models/crawlstatus.py
datadavev/mnlite
be3118cde634fce97ea689e1044803edf3cbc1ea
[ "Apache-2.0" ]
null
null
null
import logging import os import time try: import orjson as json except ModuleNotFoundError: import json import dateparser import sqlalchemy import sqlalchemy.ext.declarative import sqlalchemy.orm import sqlalchemy.exc import sqlalchemy.event class CrawlInfo(opersist.models.Base): """ Info about a cra...
22.986842
87
0.661706
1d751c25685579f8473c3599181efbe834d9424a
14,619
py
Python
autotest/gdrivers/jpeg2000.py
chambbj/gdal
3d56aecb5b8e9890dae8f560acd099992e707d12
[ "MIT" ]
1
2015-02-16T16:51:38.000Z
2015-02-16T16:51:38.000Z
autotest/gdrivers/jpeg2000.py
theduckylittle/gdal
61be261cae524582ba28bceebb027cc1e967e0ab
[ "MIT" ]
null
null
null
autotest/gdrivers/jpeg2000.py
theduckylittle/gdal
61be261cae524582ba28bceebb027cc1e967e0ab
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test read/write functionality for Jasper/JP2ECW driver. # Author: Even Rouault <even dot rouault at mines dash paris dot org> # ##################################...
31.43871
231
0.586976
1d75256ff739f1e81320102065e511d36afc105c
3,296
py
Python
pos_ngrams/preprocessing/cleaning.py
Usherwood/pos_ngrams
c734716013be08732766b4a0ddf500214dc58ca5
[ "BSD-2-Clause" ]
null
null
null
pos_ngrams/preprocessing/cleaning.py
Usherwood/pos_ngrams
c734716013be08732766b4a0ddf500214dc58ca5
[ "BSD-2-Clause" ]
null
null
null
pos_ngrams/preprocessing/cleaning.py
Usherwood/pos_ngrams
c734716013be08732766b4a0ddf500214dc58ca5
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """Functions for cleaning generic text data, the master function 'clean_text' calls all sub functions if required.""" import string from pos_ngrams.preprocessing.tokenizer import tokenizer_word, tokenizer_pos, de_tokenizer_pos __author__ = "Peter J Usherwood" __python_version__ = "3.6" def c...
30.518519
117
0.676578
1d756a76a6296138a3749380d4f9827bd9d9d5d7
2,879
py
Python
google-assistant-sdk/setup.py
lcaggio/assistant-sdk-python
9636fb37d30b700fce42f720422bfc5eb8280272
[ "Apache-2.0" ]
null
null
null
google-assistant-sdk/setup.py
lcaggio/assistant-sdk-python
9636fb37d30b700fce42f720422bfc5eb8280272
[ "Apache-2.0" ]
null
null
null
google-assistant-sdk/setup.py
lcaggio/assistant-sdk-python
9636fb37d30b700fce42f720422bfc5eb8280272
[ "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,...
33.091954
74
0.644321
1d757d7dade0a551b3258979aceeeb4134394e1d
60,737
py
Python
google/cloud/compute_v1/services/networks/client.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/networks/client.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/networks/client.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 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...
44.957069
114
0.620363
1d7595d77cb503bb66e2fcc2b1d5443a6d16034e
14,252
py
Python
website/specimens/models.py
BelgianBiodiversityPlatform/Astapor
b54f6b8595e90250575e1220802720ab4ac0229d
[ "BSD-2-Clause" ]
1
2017-06-20T08:09:29.000Z
2017-06-20T08:09:29.000Z
website/specimens/models.py
BelgianBiodiversityPlatform/Astapor
b54f6b8595e90250575e1220802720ab4ac0229d
[ "BSD-2-Clause" ]
31
2017-06-20T11:11:29.000Z
2018-01-11T15:03:24.000Z
website/specimens/models.py
BelgianBiodiversityPlatform/Astapor
b54f6b8595e90250575e1220802720ab4ac0229d
[ "BSD-2-Clause" ]
null
null
null
from django.contrib.gis.db import models from django.contrib.postgres.fields import FloatRangeField, HStoreField from django.core.exceptions import ObjectDoesNotExist, ValidationError from django.core.validators import MaxValueValidator, MinValueValidator from django.conf import settings from mptt.models import MPTTM...
40.146479
182
0.671906
1d75a7aeadd452f847a67301b2daac8f4edfbe87
6,709
py
Python
matrix_calculus/matrix_massage.py
tkerola/matrix_calculus
21c4f262b501337996453280d75d06a47a9fd135
[ "MIT" ]
1
2019-04-18T03:48:08.000Z
2019-04-18T03:48:08.000Z
matrix_calculus/matrix_massage.py
tkerola/matrix_calculus
21c4f262b501337996453280d75d06a47a9fd135
[ "MIT" ]
null
null
null
matrix_calculus/matrix_massage.py
tkerola/matrix_calculus
21c4f262b501337996453280d75d06a47a9fd135
[ "MIT" ]
null
null
null
""" @author Tommi Kerola """ import copy import functools from matrix_calculus.matrix_expr import * from matrix_calculus.matrix_expr_match import match_deepest, translate_case CANONICAL_VERBOSE = True def massage2canonical(expr, verbose=True): """ Massages the given expression to canonical form with t...
32.410628
151
0.515576
1d75d8eabb227ec600adf8ed319971585d394626
497
py
Python
Insight_Project_Framework/train.py
shijiez777/Insight_Project
50d85b353b6b68cc420f94016794d488377d4d78
[ "MIT" ]
null
null
null
Insight_Project_Framework/train.py
shijiez777/Insight_Project
50d85b353b6b68cc420f94016794d488377d4d78
[ "MIT" ]
null
null
null
Insight_Project_Framework/train.py
shijiez777/Insight_Project
50d85b353b6b68cc420f94016794d488377d4d78
[ "MIT" ]
null
null
null
"""Train and save the trained model.""" from Classifier import * if __name__ == "__main__": config_path = "../configs/config.yml" config = read_yaml(config_path) clf = svm.LinearSVC() c = Classifier(config["text_folder_path"], config["num_pages"], config["language"], config["keys"], config["county_nam...
35.5
178
0.676056
1d76195f4312048bf2b667203dcd3d2ebb0906ec
6,458
py
Python
neuro-sdk/tests/test_users.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
11
2020-10-11T15:38:11.000Z
2021-11-09T11:29:50.000Z
neuro-sdk/tests/test_users.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
611
2020-09-30T21:27:52.000Z
2022-01-10T10:44:44.000Z
neuro-sdk/tests/test_users.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
1
2020-10-05T15:10:24.000Z
2020-10-05T15:10:24.000Z
from decimal import Decimal from typing import AsyncIterator, Callable import pytest from aiohttp import web from yarl import URL from neuro_sdk import Action, Client, Permission, ResourceNotFound from neuro_sdk.users import Quota from tests import _TestServerFactory _MakeClient = Callable[..., Client] @pytest.fi...
36.485876
85
0.647569
1d765856a44a8379402e8e6d91b2ce59afaa5c33
2,749
py
Python
tests/001_utils.py
sveetch/django-icomoon
327b70e5509811db7b46f2baa8d301a49e626167
[ "MIT" ]
3
2015-09-19T11:46:52.000Z
2016-07-16T13:12:33.000Z
tests/001_utils.py
sveetch/django-icomoon
327b70e5509811db7b46f2baa8d301a49e626167
[ "MIT" ]
15
2015-09-19T21:30:06.000Z
2021-12-22T00:24:57.000Z
tests/001_utils.py
sveetch/django-icomoon
327b70e5509811db7b46f2baa8d301a49e626167
[ "MIT" ]
null
null
null
import pytest from icomoon.utils import IcomoonSettingsError, extend_webfont_settings def test_extend_settings_success(): """ Correct settings, nothing to do """ webfont_settings = { 'fontdir_path': 'static/fonts', 'csspart_path': 'static/css/icomoon_icons.scss', } result = ex...
23.698276
71
0.523827
1d7658e2deacc053de05d2ced31f43ad4586e1f6
3,447
py
Python
oscar/lib/python2.7/site-packages/IPython/lib/security.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/lib/security.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/lib/security.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
""" Password generation for the IPython notebook. """ #----------------------------------------------------------------------------- # Imports #----------------------------------------------------------------------------- # Stdlib import getpass import hashlib import random # Our own from IPython.core.erro...
29.973913
83
0.521903
1d766663ba3c6034e1ebdbc3d30700716ea6051c
8,410
py
Python
docs/source/conf.py
williamjoy/hostlists
96b93c8e08fddb51fb5789c7a49b86536d2ccb15
[ "Apache-2.0" ]
13
2015-02-04T17:13:52.000Z
2021-06-06T11:24:46.000Z
docs/source/conf.py
williamjoy/hostlists
96b93c8e08fddb51fb5789c7a49b86536d2ccb15
[ "Apache-2.0" ]
2
2015-05-29T19:58:26.000Z
2018-03-05T17:25:04.000Z
docs/source/conf.py
williamjoy/hostlists
96b93c8e08fddb51fb5789c7a49b86536d2ccb15
[ "Apache-2.0" ]
3
2015-11-09T20:57:07.000Z
2018-03-05T17:22:01.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # hostlists documentation build configuration file, created by # sphinx-quickstart on Thu Mar 5 15:56:28 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # ...
31.380597
79
0.719144
1d768a53197cc6503d8b8c57077137a3ebe307c1
18,911
py
Python
pcdet/datasets/kitti/kitti_dataset.py
halostorm/OpenPCDet
9650c9d71e7f03815e925fee6e16909fb219336a
[ "Apache-2.0" ]
2
2020-08-04T08:39:28.000Z
2021-02-09T08:07:13.000Z
pcdet/datasets/kitti/kitti_dataset.py
halostorm/OpenPCDet
9650c9d71e7f03815e925fee6e16909fb219336a
[ "Apache-2.0" ]
null
null
null
pcdet/datasets/kitti/kitti_dataset.py
halostorm/OpenPCDet
9650c9d71e7f03815e925fee6e16909fb219336a
[ "Apache-2.0" ]
null
null
null
import pickle import copy import numpy as np from skimage import io from ...utils import box_utils, common_utils, calibration_kitti, object3d_kitti from ..dataset import DatasetTemplate from ...ops.roiaware_pool3d import roiaware_pool3d_utils class KittiDataset(DatasetTemplate): def __init__(self, dataset_cfg, cl...
42.785068
119
0.59082
1d7692570e35419ddb526b38b96878554a0d130d
2,825
py
Python
sndfileio/backend_miniaudio.py
gesellkammer/sndfileio
3bda51504836a6d9da533b4ab883ae3655c9578e
[ "MIT" ]
3
2017-05-28T11:30:55.000Z
2020-04-14T18:53:45.000Z
sndfileio/backend_miniaudio.py
gesellkammer/sndfileio
3bda51504836a6d9da533b4ab883ae3655c9578e
[ "MIT" ]
1
2018-11-06T18:45:30.000Z
2018-11-07T08:10:45.000Z
sndfileio/backend_miniaudio.py
gesellkammer/sndfileio
3bda51504836a6d9da533b4ab883ae3655c9578e
[ "MIT" ]
null
null
null
from __future__ import annotations from .datastructs import SndInfo from typing import Iterator import numpy as np import miniaudio from typing import TYPE_CHECKING if TYPE_CHECKING: from .datastructs import sample_t from typing import Iterator def _readfragment(path:str, start:float, end:float) -> sample_t: ...
35.3125
101
0.653451
1d76c1de22fa6c7e76dd633d071105061dd660d3
3,084
py
Python
tests/common/test_op/ascend/segment_max.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/ascend/segment_max.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/ascend/segment_max.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
28.82243
99
0.648508
1d76c948c344669491c55b08719d451c0ea08176
7,600
py
Python
cadnano/part/xovercmds.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2022-03-27T14:37:32.000Z
2022-03-27T14:37:32.000Z
cadnano/part/xovercmds.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
null
null
null
cadnano/part/xovercmds.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2021-01-22T02:29:38.000Z
2021-01-22T02:29:38.000Z
# -*- coding: utf-8 -*- import random # from cadnano import getBatch from cadnano.views.pathview import pathstyles from cadnano.proxies.cnproxy import UndoCommand from cadnano.strand import Strand class CreateXoverCommand(UndoCommand): """ Creates a Xover from the 3' end of strand5p to the 5' end of strand3p...
34.862385
101
0.637632
1d7702b4390128b137a403c07c9be6ac1bd88b46
323
py
Python
tests/test_helpers.py
HumbleRetreat/meru
a6ca7cd1442b664958c3039f4b0bbe48dc0596a5
[ "MIT" ]
1
2022-03-09T13:59:55.000Z
2022-03-09T13:59:55.000Z
tests/test_helpers.py
HumbleRetreat/meru
a6ca7cd1442b664958c3039f4b0bbe48dc0596a5
[ "MIT" ]
null
null
null
tests/test_helpers.py
HumbleRetreat/meru
a6ca7cd1442b664958c3039f4b0bbe48dc0596a5
[ "MIT" ]
1
2021-02-18T07:30:23.000Z
2021-02-18T07:30:23.000Z
from meru.base import Action from meru.helpers import build_address, get_full_path_to_class def test_get_full_path_to_class(): res = get_full_path_to_class(Action) assert res == 'meru.base.Action' def test_build_address(): res = build_address('127.0.0.1', 24051) assert res == 'tcp://127.0.0.1:2405...
21.533333
62
0.727554
1d77a5b3702e36c627f1a75f9d9fe5fedb9bfe58
2,083
py
Python
LineAPI/linepy/config.py
drwirot2532/10kickMoopor1
6d973ca6053b6c318ac31be09ab8eaecd83266a9
[ "MIT" ]
2
2019-08-13T13:10:43.000Z
2019-09-29T04:48:33.000Z
LineAPI/linepy/config.py
drwirot2532/10kickMoopor1
6d973ca6053b6c318ac31be09ab8eaecd83266a9
[ "MIT" ]
null
null
null
LineAPI/linepy/config.py
drwirot2532/10kickMoopor1
6d973ca6053b6c318ac31be09ab8eaecd83266a9
[ "MIT" ]
4
2019-08-13T13:10:44.000Z
2019-08-21T10:52:30.000Z
# -*- coding: utf-8 -*- from akad.ttypes import ApplicationType import re class Config(object): LINE_HOST_DOMAIN = 'https://gd2.line.naver.jp' LINE_OBS_DOMAIN = 'https://obs-sg.line-apps.com' LINE_TIMELINE_API = 'https://gd2.line.naver.jp/mh/api' LINE_TIMELINE_MH ...
34.147541
128
0.56025
1d77aa9b30631f02a778b6a35c1f9c6dbab1aeb5
1,737
py
Python
bin/upgrade_config.py
itsroops/eva-submission
16c0860e020013ce1d1c2b8a3688676460269f40
[ "Apache-2.0" ]
null
null
null
bin/upgrade_config.py
itsroops/eva-submission
16c0860e020013ce1d1c2b8a3688676460269f40
[ "Apache-2.0" ]
null
null
null
bin/upgrade_config.py
itsroops/eva-submission
16c0860e020013ce1d1c2b8a3688676460269f40
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2021 EMBL - European Bioinformatics Institute # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
34.74
112
0.751295
1d77dbb7f3c39ffa748314402bbd458af6cd51b6
308
py
Python
test_server/__init__.py
lorien/test-server
0f86e97b638506560110755b5ef73ceea261891f
[ "MIT" ]
null
null
null
test_server/__init__.py
lorien/test-server
0f86e97b638506560110755b5ef73ceea261891f
[ "MIT" ]
null
null
null
test_server/__init__.py
lorien/test-server
0f86e97b638506560110755b5ef73ceea261891f
[ "MIT" ]
null
null
null
from test_server.server import * # noqa pylint: disable=wildcard-import from test_server.structure import * # noqa pylint: disable=wildcard-import from test_server.error import * # noqa pylint: disable=wildcard-import from test_server.version import TEST_SERVER_VERSION __version__ = TEST_SERVER_VERSION
44
75
0.821429
1d77edb2dc8ecb1ab3356264bba4cc96a405f348
3,841
py
Python
analysis_notebooks/scripts/generate_protein_dielectric.py
ncclementi/pygbe_lspr
0a73406701a74369206c33e0a3fd31d7b5f0cf55
[ "BSD-3-Clause" ]
null
null
null
analysis_notebooks/scripts/generate_protein_dielectric.py
ncclementi/pygbe_lspr
0a73406701a74369206c33e0a3fd31d7b5f0cf55
[ "BSD-3-Clause" ]
null
null
null
analysis_notebooks/scripts/generate_protein_dielectric.py
ncclementi/pygbe_lspr
0a73406701a74369206c33e0a3fd31d7b5f0cf55
[ "BSD-3-Clause" ]
null
null
null
import numpy import sys from argparse import ArgumentParser def read_inputs(args): """ Parse command-line arguments to read arguments in main. """ parser = ArgumentParser(description='Read arguments to determine wavelength range') parser.add_argument('-s', '--start', ...
31.483607
90
0.593856
1d78027c8e045b12f25454c148b2546be71ee328
374
py
Python
tests/test_user_validation.py
Adoniswalker/StackOverflow-lite
3679d1e8bf23aca73338e0fa9ff51de63ba85f7d
[ "MIT" ]
16
2018-08-11T13:07:07.000Z
2021-04-06T00:44:34.000Z
tests/test_user_validation.py
PeterCHK/stackoverflow-lite
1d3e46bce494235d608fbec68925ee88b3b83513
[ "MIT" ]
13
2018-08-14T12:48:38.000Z
2021-06-01T22:31:53.000Z
tests/test_user_validation.py
PeterCHK/stackoverflow-lite
1d3e46bce494235d608fbec68925ee88b3b83513
[ "MIT" ]
14
2018-08-10T11:05:13.000Z
2021-12-24T13:10:41.000Z
from .base import BaseTestCase from app.auth.validatons import validate_user_details class TestUserTestCase(BaseTestCase): def test_auth_user_validation(self): """ Validate user details """ data = {"email": "", 'password': ''} user = validate_user_details(data) assert user.get('em...
28.769231
79
0.684492
1d7802eb9c4cafd6cd86bb5bc29ef46a2ec6a7bb
452
py
Python
Seeder/harvests/migrations/0013_auto_20201103_0630.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
8
2017-08-16T19:18:57.000Z
2022-01-24T10:08:19.000Z
Seeder/harvests/migrations/0013_auto_20201103_0630.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
242
2017-02-03T19:15:52.000Z
2022-03-25T08:02:52.000Z
Seeder/harvests/migrations/0013_auto_20201103_0630.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
2
2019-03-06T12:36:29.000Z
2019-07-08T12:52:20.000Z
# Generated by Django 2.2.12 on 2020-11-03 06:30 import core.models from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('harvests', '0012_auto_20200507_1345'), ] operations = [ migrations.AlterField( model_name='topiccollection', ...
22.6
93
0.632743
1d780c5a3001d8d9491fb0133e67d51a5f6fe2e5
93
py
Python
tests/__init__.py
andreisavu/python-sitemap
6466b634a39b763fcff2d60e63b866a2fd99516c
[ "Apache-2.0" ]
13
2015-05-29T09:57:44.000Z
2021-08-20T06:27:24.000Z
tests/__init__.py
dilshod/python-sitemap
d7ee665c185268f52621955f821bd6e2f8bb7c98
[ "BSD-2-Clause" ]
1
2017-02-12T05:32:56.000Z
2017-02-12T05:32:56.000Z
tests/__init__.py
dilshod/python-sitemap
d7ee665c185268f52621955f821bd6e2f8bb7c98
[ "BSD-2-Clause" ]
10
2015-07-08T06:18:34.000Z
2020-03-01T16:04:06.000Z
from test_sitemapindex import * from test_urlset import * from test_urlsetelement import *
15.5
32
0.817204
1d78278fb9be32e06c78de2ea56bcd464d567f51
5,522
py
Python
sdk/communication/azure-communication-sms/azure/communication/sms/aio/_sms_client_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/communication/azure-communication-sms/azure/communication/sms/aio/_sms_client_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/communication/azure-communication-sms/azure/communication/sms/aio/_sms_client_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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 uuid...
37.310811
117
0.604129
1d78285cc7cc5b766a217a4f9b01f128800ad514
9,579
py
Python
Apps/Steropes/StyleSheet/MainStyleSheet.py
geoffroygivry/CyclopsVFX-Unity
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
17
2017-06-27T04:14:42.000Z
2022-03-07T03:37:44.000Z
Apps/Steropes/StyleSheet/MainStyleSheet.py
geoffroygivry/Cyclops-VFX
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
2
2017-06-14T04:17:51.000Z
2018-08-23T20:12:44.000Z
Apps/Steropes/StyleSheet/MainStyleSheet.py
geoffroygivry/CyclopsVFX-Unity
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
2
2019-03-18T06:18:33.000Z
2019-08-14T21:07:53.000Z
#The MIT License (MIT) # #Copyright (c) 2015 Geoffroy Givry # #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, m...
25.544
162
0.61948
1d7836a7c32dda850c45de9d030e190ad421decb
2,868
py
Python
tests/integration/test_push.py
jeremylinlin/operator-courier
9e53cee85e02e3ab54cfbef5770cfd58b4895c3b
[ "Apache-2.0" ]
1
2019-04-09T04:52:16.000Z
2019-04-09T04:52:16.000Z
tests/integration/test_push.py
jeremylinlin/operator-courier
9e53cee85e02e3ab54cfbef5770cfd58b4895c3b
[ "Apache-2.0" ]
null
null
null
tests/integration/test_push.py
jeremylinlin/operator-courier
9e53cee85e02e3ab54cfbef5770cfd58b4895c3b
[ "Apache-2.0" ]
null
null
null
import pytest import subprocess from os import getenv from random import randint import requests quay_namespace = getenv('QUAY_NAMESPACE') quay_access_token = getenv('QUAY_ACCESS_TOKEN') @pytest.mark.parametrize('source_dir,repository_name', [ ('tests/test_files/yaml_source_dir/valid_yamls_with_multiple_crds', ...
38.24
86
0.676081
1d787c3637ab1e9e4e97cc88ef2910e20125d5f7
10,189
py
Python
datamol/convert.py
Ishan-Kumar2/datamol
480998ad9e7fdabfab25bc25d78364301e55eccb
[ "Apache-2.0" ]
null
null
null
datamol/convert.py
Ishan-Kumar2/datamol
480998ad9e7fdabfab25bc25d78364301e55eccb
[ "Apache-2.0" ]
null
null
null
datamol/convert.py
Ishan-Kumar2/datamol
480998ad9e7fdabfab25bc25d78364301e55eccb
[ "Apache-2.0" ]
null
null
null
from typing import Union from typing import List from typing import Optional import re from loguru import logger import pandas as pd from rdkit import Chem from rdkit.Chem import PandasTools import selfies as sf import datamol as dm def to_smiles( mol: Chem.rdchem.Mol, canonical: bool = True, isomer...
28.224377
103
0.636078
1d78860594ad68285baafbc69fac17d74389dbbf
6,762
py
Python
src/variants_analysis.py
yaosichao0915/DeepImmuno
a2a7832f6cded9296735475c2e8fa5c9b62b3f8d
[ "MIT" ]
20
2020-12-28T03:34:34.000Z
2022-03-14T01:36:52.000Z
src/variants_analysis.py
zhangjiahuan17/DeepImmuno
5ab182429bc3276fd43be2ec8d86b72e773992ef
[ "MIT" ]
3
2021-04-23T19:21:11.000Z
2021-08-22T00:39:01.000Z
src/variants_analysis.py
zhangjiahuan17/DeepImmuno
5ab182429bc3276fd43be2ec8d86b72e773992ef
[ "MIT" ]
11
2021-04-23T16:46:29.000Z
2022-03-18T15:53:55.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt with open('/Users/ligk2e/Desktop/github/DeepImmuno/files/covid/ORF2-spike.fa','r') as f: spike = f.readlines() spike = ''.join([item.rstrip('\n') for item in spike[1:]]) record = 'MFVFLVLLPLVSSQCVNLTTRTQLPPAYTNSFTRGVYYPDKVFRSSVLHSTQDLFLPFFSN...
56.823529
1,284
0.737947
1d78b68b8a128f8b877ff6cd924dad5ec8803593
208
py
Python
regparser/tree/supplement.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
36
2015-01-05T21:17:36.000Z
2020-04-28T21:02:55.000Z
regparser/tree/supplement.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
146
2016-04-06T19:07:54.000Z
2022-01-02T20:09:53.000Z
regparser/tree/supplement.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
28
2016-04-09T20:40:48.000Z
2021-05-08T17:52:59.000Z
from regparser.search import find_start def find_supplement_start(text, supplement='I'): """Find the start of the supplement (e.g. Supplement I)""" return find_start(text, 'Supplement', supplement)
29.714286
62
0.740385
1d79190d96efeba48c124d7e35744cf21cc9b342
616
py
Python
examination/forms.py
henrylameck/school_management_system
38c270977d001d28f2338eb90fffc3e8c2598d06
[ "MIT" ]
null
null
null
examination/forms.py
henrylameck/school_management_system
38c270977d001d28f2338eb90fffc3e8c2598d06
[ "MIT" ]
3
2021-06-05T00:01:48.000Z
2021-09-22T19:39:12.000Z
examination/forms.py
henrylameck/school_management_system
38c270977d001d28f2338eb90fffc3e8c2598d06
[ "MIT" ]
null
null
null
from django import forms from django.forms.formsets import formset_factory from django.forms.models import inlineformset_factory from .models import * class ExamMasterForm(forms.ModelForm): class Meta: model = ExamMaster fields = ('name', 'select_class', 'enter_code', 'select_term',) ExamSubj...
38.5
304
0.771104
1d791eb365a950b0b2641c73496ad606d85f2e00
2,435
py
Python
openstack_dashboard/test/tests/templates.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/test/tests/templates.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/test/tests/templates.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
4
2015-05-05T08:17:28.000Z
2020-02-05T10:47:06.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2012 OpenStack Foundation # 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.a...
33.819444
78
0.623819
1d793ca0e53d6cb235fe18632871614334c6d40b
3,632
py
Python
topo/responsefn/projfn.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
40
2015-02-05T14:53:10.000Z
2020-10-12T06:26:23.000Z
topo/responsefn/projfn.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
95
2015-01-01T16:14:20.000Z
2022-02-11T22:50:27.000Z
topo/responsefn/projfn.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
22
2015-05-03T10:24:17.000Z
2019-11-15T06:34:31.000Z
""" Projection-level response functions. For CFProjections, these function objects compute a response matrix when given an input pattern and a set of ConnectionField objects. """ import numpy as np import param from topo.base.cf import CFPResponseFn from topo.base.functionfamily import ResponseFn,DotProduct from top...
36.686869
86
0.669879
1d795172eeb538459e46a0cfbc40cbbb01b6fc59
4,179
py
Python
dynamic/rpm_db_search.py
DanielOjalvo/execview
f606663437b76a9a0d5d7876c4b26a3b658dac14
[ "Apache-2.0" ]
null
null
null
dynamic/rpm_db_search.py
DanielOjalvo/execview
f606663437b76a9a0d5d7876c4b26a3b658dac14
[ "Apache-2.0" ]
null
null
null
dynamic/rpm_db_search.py
DanielOjalvo/execview
f606663437b76a9a0d5d7876c4b26a3b658dac14
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ This tool is used to find the RPM and executable a symbol is defined in and, optionally, where it is linked in. """ from argparse import ArgumentParser from json import load from os import listdir, path, getcwd from sys import stdout def load_json_file(json_file): #print(json_file) ...
33.97561
101
0.564728
1d796aed0e2160fbb24238d81755c2e87cf09233
1,628
py
Python
chef_validator/tests/unit/api/middleware/test_ssl.py
ging/fi-ware-chef_validator
eaeb72801f3f2dba7f933740b033687dcb02e5c8
[ "Apache-2.0" ]
1
2015-08-27T08:49:28.000Z
2015-08-27T08:49:28.000Z
chef_validator/tests/unit/api/middleware/test_ssl.py
ging/fiware-chef_validator
eaeb72801f3f2dba7f933740b033687dcb02e5c8
[ "Apache-2.0" ]
null
null
null
chef_validator/tests/unit/api/middleware/test_ssl.py
ging/fiware-chef_validator
eaeb72801f3f2dba7f933740b033687dcb02e5c8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
36.177778
76
0.708231
1d79712eb792fe0e277133c28f035b56113fe8d5
2,049
py
Python
db/VoltDB2Table2Rec/lib/python/voltcli/volt.d/config.py
scdblab/BG
e678e7063a0c49af8a0a88d6e2838ce103ad69de
[ "BSD-2-Clause" ]
1
2020-04-09T20:47:03.000Z
2020-04-09T20:47:03.000Z
db/VoltDB2Table2Rec/lib/python/voltcli/volt.d/config.py
scdblab/BG
e678e7063a0c49af8a0a88d6e2838ce103ad69de
[ "BSD-2-Clause" ]
null
null
null
db/VoltDB2Table2Rec/lib/python/voltcli/volt.d/config.py
scdblab/BG
e678e7063a0c49af8a0a88d6e2838ce103ad69de
[ "BSD-2-Clause" ]
3
2018-08-29T17:58:01.000Z
2020-04-05T18:14:09.000Z
# This file is part of VoltDB. # Copyright (C) 2008-2013 VoltDB Inc. # # This file contains original code and/or modifications of original code. # Any modifications made by VoltDB Inc. are licensed under the following # terms and conditions: # # Permission is hereby granted, free of charge, to any person obtaining # a...
44.543478
73
0.684724
1d797d3b356cc0fcbc535261baf021aa999ccc0e
111,182
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/surface/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/surface/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/surface/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): # maxpoints # --------- @property def maxpoints(self): """ Sets the maximum number of points to keep on the plots from an incoming str...
35.318297
93
0.561629
1d79916165187d1b4c8ccf80c32a808ecbc793c9
359
py
Python
backup/scripts/params.py
dpvonline/keycloak-config
5fcad4cf63c5a86b7769e1e71eb7ea97b55da450
[ "MIT" ]
1
2021-12-12T16:04:50.000Z
2021-12-12T16:04:50.000Z
backup/scripts/params.py
dpvonline/keycloak-config
5fcad4cf63c5a86b7769e1e71eb7ea97b55da450
[ "MIT" ]
null
null
null
backup/scripts/params.py
dpvonline/keycloak-config
5fcad4cf63c5a86b7769e1e71eb7ea97b55da450
[ "MIT" ]
1
2021-04-30T16:40:57.000Z
2021-04-30T16:40:57.000Z
#!/usr/bin/env python __author__ = "OBI" __copyright__ = "Copyright 2021, DPV e.V." __license__ = "MIT" PARAMS = { 'BACKUP_DIR': '', 'MYSQL_HOST': '', 'MYSQL_USER': '', 'MYSQL_PASSWORD': '', 'MYSQL_DATABASE': '', 'SEND_MAIL': '', 'SMTP_TO': '', 'SMTP_FROM': '', 'SMTP_PWD': '', '...
18.894737
42
0.523677
1d79c73bfb4bc5e943dd3bb78e1376edc851f272
709
py
Python
exemplo_39_sistema_operacional.py
alef123vinicius/Estudo_python
30b121d611f94eb5df9fbb41ef7279546143221b
[ "Apache-2.0" ]
null
null
null
exemplo_39_sistema_operacional.py
alef123vinicius/Estudo_python
30b121d611f94eb5df9fbb41ef7279546143221b
[ "Apache-2.0" ]
null
null
null
exemplo_39_sistema_operacional.py
alef123vinicius/Estudo_python
30b121d611f94eb5df9fbb41ef7279546143221b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Feb 16 11:11:39 2021 @author: alef """ import os import sys import platform def uid(): """ uid() -> retorna a identificação do usuário corrente ou None se não for possível identificar """ # Variáveis de ambiente para cada ...
22.15625
57
0.640339
1d79e5046a1b50801bea2169b3a2b815cfdbdfb4
2,752
py
Python
pivoteer/collectors/api.py
armyninja/cyber
e20db027f44deb3ec1ca7e55e1cb58b5e7348ba5
[ "MIT" ]
1
2019-03-13T09:21:56.000Z
2019-03-13T09:21:56.000Z
pivoteer/collectors/api.py
armyninja/cyber
e20db027f44deb3ec1ca7e55e1cb58b5e7348ba5
[ "MIT" ]
null
null
null
pivoteer/collectors/api.py
armyninja/cyber
e20db027f44deb3ec1ca7e55e1cb58b5e7348ba5
[ "MIT" ]
null
null
null
import logging import requests import json class PassiveTotal(object): base_url = "https://www.passivetotal.org/api" api_versions = {"v1": "/v1", "current": "/current"} GET_resources = {"metadata": "/metadata", "passive": "/passive", "subdom...
35.74026
79
0.53343
1d7a298dda72fde5f700df9927bb4976a8f79725
1,703
py
Python
src/testers/tiny_vgg_tester.py
MohamedAli1995/Cifar-100-Classifier
924704a81ce13062825a88b90b80e8ac2ba45d63
[ "MIT" ]
2
2019-05-12T16:11:20.000Z
2020-04-10T22:39:57.000Z
src/testers/tiny_vgg_tester.py
MohamedAli1995/Cifar-100-Classifier
924704a81ce13062825a88b90b80e8ac2ba45d63
[ "MIT" ]
null
null
null
src/testers/tiny_vgg_tester.py
MohamedAli1995/Cifar-100-Classifier
924704a81ce13062825a88b90b80e8ac2ba45d63
[ "MIT" ]
null
null
null
import tensorflow as tf from src.base.base_test import BaseTest from tqdm import tqdm import numpy as np import cv2 from src.data_loader.preprocessing import preprocess_input_image class TinyVGGTester(BaseTest): def __init__(self, sess, model, data, config, logger): super().__init__(sess, model, data, confi...
34.06
97
0.593658
1d7a38a4691a85b43f36ce685ffaee9fe9c97a66
356
py
Python
src/samples/pymxs/bent_cylinder.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
88
2020-03-19T20:24:08.000Z
2022-03-23T23:13:54.000Z
src/samples/pymxs/bent_cylinder.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
5
2020-04-09T19:56:47.000Z
2021-11-12T20:02:18.000Z
src/samples/pymxs/bent_cylinder.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
22
2020-03-19T19:24:36.000Z
2022-03-18T21:55:19.000Z
''' Demonstrates creating a cylinder and appling a bend modifier. ''' from pymxs import runtime as rt # pylint: disable=import-error def main(): """Create a cylinder and add a bend modifier to it.""" cyl = rt.cylinder() cyl.radius = 10 cyl.height = 30 bend = rt.Bend() bend.bendAngle = 45 ...
22.25
65
0.648876
1d7a5164fdc503d1505e1d3ea3c0d7277e8fa8d7
21,016
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
39.578154
221
0.669395
1d7a5fc1d24d1b61dca9f5f757e093e6526909d1
5,408
py
Python
visualize_segmentation.py
ozcell/pytorch-auto-drive
f1c2fd223cf7d307a3968fe671d0271b03ced39c
[ "BSD-3-Clause" ]
1
2021-04-12T22:59:48.000Z
2021-04-12T22:59:48.000Z
visualize_segmentation.py
ozcell/pytorch-auto-drive
f1c2fd223cf7d307a3968fe671d0271b03ced39c
[ "BSD-3-Clause" ]
null
null
null
visualize_segmentation.py
ozcell/pytorch-auto-drive
f1c2fd223cf7d307a3968fe671d0271b03ced39c
[ "BSD-3-Clause" ]
null
null
null
import yaml import argparse import torch from torch.cuda.amp import autocast from PIL import Image from utils.all_utils_semseg import load_checkpoint, build_segmentation_model from tools.vis_tools import segmentation_visualize_batched, simple_segmentation_transform, save_images from transforms import functional as F fr...
57.531915
120
0.64497
1d7a718355aee71909cb1f6b55ea8be6995265b6
33,498
py
Python
sdk/storage/azure-storage-blob/tests/test_blob_encryption_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/storage/azure-storage-blob/tests/test_blob_encryption_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-blob/tests/test_blob_encryption_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import py...
43.674055
119
0.703415
1d7a7b1a38622bfb0541841954b08134310099ef
17,451
py
Python
datacube/utils/geometry/tools.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
1
2020-04-15T16:10:27.000Z
2020-04-15T16:10:27.000Z
datacube/utils/geometry/tools.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
null
null
null
datacube/utils/geometry/tools.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
null
null
null
from pyproj.transformer import Transformer import numpy as np import collections from types import SimpleNamespace from typing import Tuple from affine import Affine # This is numeric code, short names make sense in this context, so disabling # "invalid name" checks for the whole file # pylint: disable=invalid-name ...
27.182243
95
0.578305
1d7b1e2e0f84703c21b0e7bd9abd60cc02dcf2d1
587
py
Python
twitter_api/__init__.py
ECrownofFire/chaos
0cfbb85ab52654967909aef54eff3a0e62b641bd
[ "MIT" ]
1,804
2017-05-23T02:34:27.000Z
2017-05-26T00:44:44.000Z
twitter_api/__init__.py
ECrownofFire/chaos
0cfbb85ab52654967909aef54eff3a0e62b641bd
[ "MIT" ]
345
2017-05-20T23:55:12.000Z
2017-06-19T07:48:58.000Z
twitter_api/__init__.py
ECrownofFire/chaos
0cfbb85ab52654967909aef54eff3a0e62b641bd
[ "MIT" ]
248
2017-05-23T02:00:07.000Z
2017-05-26T00:00:28.000Z
from . import misc import twitter __all__ = ["misc", "twitter"] class API_TWITTER(): def __init__(self, path): self.__twitter_keys = misc.GetKeys(path) self.__api = twitter.Api(consumer_key=str(self.__twitter_keys['consumer_key']), consumer_secret=str(self.__twit...
32.611111
95
0.609881
1d7b41a5f94ad760368ab40cc0819a915b1c2e5c
403
py
Python
maro/utils/exception/data_lib_exeption.py
zhawan/maro
d8c98deea4296cdcb90efd1fb59bc571cec3a2ef
[ "MIT" ]
null
null
null
maro/utils/exception/data_lib_exeption.py
zhawan/maro
d8c98deea4296cdcb90efd1fb59bc571cec3a2ef
[ "MIT" ]
null
null
null
maro/utils/exception/data_lib_exeption.py
zhawan/maro
d8c98deea4296cdcb90efd1fb59bc571cec3a2ef
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from .base_exception import MAROException from .error_code import ERROR_CODE class MetaTimestampNotExist(MAROException): def __init__(self): super().__init__(2000, ERROR_CODE[2000]) class EcrGeneratorInvalidParkingDuration(MAROE...
23.705882
56
0.759305
1d7b49b0c9645c96cc4911eef5ab4924435f1102
1,794
py
Python
188/save1_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
188/save1_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
188/save1_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
from os import path import statistics as st from urllib.request import urlretrieve STATS = path.join('/tmp', 'testfiles_number_loc.txt') if not path.isfile(STATS): urlretrieve('https://bit.ly/2Jp5CUt', STATS) STATS_OUTPUT = """ Basic statistics: - count : {count:7d} - min : {min_:7d} - max : {max...
27.6
63
0.61204
1d7b4d21ebaf5d10938705a2368db184cc708dc9
3,665
py
Python
flu/figure_scripts/flu_examples_fig4ab_polarizer.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
11
2015-08-24T05:20:56.000Z
2021-08-13T13:58:31.000Z
flu/figure_scripts/flu_examples_fig4ab_polarizer.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
3
2015-08-24T04:43:25.000Z
2021-07-06T00:33:44.000Z
flu/figure_scripts/flu_examples_fig4ab_polarizer.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
3
2019-08-30T18:52:49.000Z
2021-06-15T06:47:04.000Z
#!/ebio/ag-neher/share/programs/bin/python2.7 # #makes figure 3ab consisting of 2 trees of year 2007 colored with the prediction #for the external nodes. It also produces a joint tree with the following season #to illustrates the prediction. In the actual figure, the trees are rotated by 90degrees #but without changing...
38.989362
141
0.754434
1d7b82b42f6018cddb75426e81b87195382b0fde
3,751
py
Python
app/settings.py
TvvH05ozL6/table-summarisation
2549ec29844a6e2b7350a9ba37c0b45d1c76a5ba
[ "MIT" ]
1
2021-12-06T10:35:14.000Z
2021-12-06T10:35:14.000Z
app/settings.py
TvvH05ozL6/table-summarisation
2549ec29844a6e2b7350a9ba37c0b45d1c76a5ba
[ "MIT" ]
null
null
null
app/settings.py
TvvH05ozL6/table-summarisation
2549ec29844a6e2b7350a9ba37c0b45d1c76a5ba
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # Build...
26.792857
152
0.694748
1d7b87bc046114e5c87a19d4127167d950b4897d
184
py
Python
PythonEuterpea/__init__.py
donya/PythonEuterpea
3033417b41053a8f928fe1525a845e2438933e55
[ "CNRI-Python" ]
7
2018-07-14T04:52:38.000Z
2021-08-08T02:59:21.000Z
PythonEuterpeaN/__init__.py
donya/PythonEuterpea
3033417b41053a8f928fe1525a845e2438933e55
[ "CNRI-Python" ]
null
null
null
PythonEuterpeaN/__init__.py
donya/PythonEuterpea
3033417b41053a8f928fe1525a845e2438933e55
[ "CNRI-Python" ]
null
null
null
from PythonEuterpea import * from GMInstruments import * from MusicPlayer import * from FromMidi2 import * from MidiReader import * from EuterpeaShorthands import * from Chunk import *
26.285714
32
0.815217
1d7b955d9c44b8608fe7099aff6219f10ac5980f
11,172
py
Python
src/ror/polygonstats.py
rowennetfinder555/Object-Recognition2
e519e4ff96f13c850eb17215c553200c43c18b84
[ "MIT" ]
null
null
null
src/ror/polygonstats.py
rowennetfinder555/Object-Recognition2
e519e4ff96f13c850eb17215c553200c43c18b84
[ "MIT" ]
null
null
null
src/ror/polygonstats.py
rowennetfinder555/Object-Recognition2
e519e4ff96f13c850eb17215c553200c43c18b84
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' -------------------------------------------------------------------- This file is part of the raster object recognition project. https://github.com/woodbri/raster-object-recognition MIT License. See LICENSE file for details. Copyright 2017, Stephen Woodbridge ---------------...
34.695652
89
0.571339
1d7b9ad6f0c49f9adf1b058ba1bf8293b005d095
1,751
py
Python
hayes/transport.py
andersinno/hayes
f0843960ee71e78d3c7360ea8a77ae8b681be1be
[ "MIT" ]
2
2016-02-16T07:43:56.000Z
2018-05-13T17:31:46.000Z
hayes/transport.py
andersinno/hayes
f0843960ee71e78d3c7360ea8a77ae8b681be1be
[ "MIT" ]
9
2017-08-17T11:34:39.000Z
2021-12-13T19:48:50.000Z
hayes/transport.py
andersinno/hayes
f0843960ee71e78d3c7360ea8a77ae8b681be1be
[ "MIT" ]
3
2015-10-29T15:10:19.000Z
2017-01-14T18:00:45.000Z
# -*- coding: utf-8 -*- import datetime import json import requests from requests.exceptions import HTTPError def json_encode(obj): if isinstance(obj, datetime.datetime): return obj.isoformat() elif isinstance(obj, datetime.date): return obj.isoformat() else: raise ValueError("Ca...
27.359375
63
0.619646
1d7ba44482dd7de88e1402034f369c7d20a7d3d2
11,915
py
Python
test_LUP_rank.py
touqir14/LUP-rank-computer
e790f0a2954ec57190d4314a9cec48c309e7ff8b
[ "MIT" ]
5
2020-07-18T10:59:03.000Z
2021-12-06T13:30:56.000Z
test_LUP_rank.py
touqir14/LUP-rank-computer
e790f0a2954ec57190d4314a9cec48c309e7ff8b
[ "MIT" ]
null
null
null
test_LUP_rank.py
touqir14/LUP-rank-computer
e790f0a2954ec57190d4314a9cec48c309e7ff8b
[ "MIT" ]
null
null
null
import numpy as np from numpy.linalg import matrix_rank import LUP_rank import other_rank_computers import statistics as stat from time import perf_counter import argparse RANK_COMPUTER = None def run_all_tests(params, threshold, diagnostics, runs): """ It runs all testing functions given within params along...
31.858289
168
0.636089
1d7be57970fb6edc302df2adb2d956caa64aa5c1
10,852
py
Python
train.py
yl-1993/ConvDeltaOrthogonal-Init
c8ae2a1d582e64bf9649f97e8e92b12733f8b2eb
[ "MIT" ]
6
2018-09-07T20:38:45.000Z
2021-05-06T03:45:19.000Z
train.py
yl-1993/ConvDeltaOrthogonal-Init
c8ae2a1d582e64bf9649f97e8e92b12733f8b2eb
[ "MIT" ]
1
2018-09-07T14:30:21.000Z
2019-04-18T07:02:42.000Z
train.py
yl-1993/ConvDeltaOrthogonal-Init
c8ae2a1d582e64bf9649f97e8e92b12733f8b2eb
[ "MIT" ]
2
2020-07-10T01:35:31.000Z
2021-12-20T10:10:39.000Z
import argparse import torch.utils.data.distributed import os import time import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data from torchvision import datasets, transforms import models from utils import AverageMeter, accuracy, sav...
39.750916
110
0.572337
1d7beab2324d3224be0f18774f407ab3d021464e
33,340
py
Python
telethon/events/__init__.py
igor-zmitrovich/Telethon
a353679796891ef8e0443233bf44c145d1376611
[ "MIT" ]
1
2020-02-04T08:54:04.000Z
2020-02-04T08:54:04.000Z
telethon/events/__init__.py
igor-zmitrovich/Telethon
a353679796891ef8e0443233bf44c145d1376611
[ "MIT" ]
null
null
null
telethon/events/__init__.py
igor-zmitrovich/Telethon
a353679796891ef8e0443233bf44c145d1376611
[ "MIT" ]
null
null
null
import abc import datetime import itertools import re from .. import utils from ..errors import RPCError from ..extensions import markdown from ..tl import types, functions def _into_id_set(client, chats): """Helper util to turn the input chat or chats into a set of IDs.""" if chats is None: return N...
38.498845
80
0.542681
1d7c023fc3ee87ed3421758b3483567fe4f373e4
799
py
Python
src/codegenTest.py
ezielramos/cool-compiler-2021
e5b2aa51e47296b21f8b1ea14d73b1c7e7ef0785
[ "MIT" ]
null
null
null
src/codegenTest.py
ezielramos/cool-compiler-2021
e5b2aa51e47296b21f8b1ea14d73b1c7e7ef0785
[ "MIT" ]
null
null
null
src/codegenTest.py
ezielramos/cool-compiler-2021
e5b2aa51e47296b21f8b1ea14d73b1c7e7ef0785
[ "MIT" ]
null
null
null
import lexer_rules import parser_rules import sys from ply.lex import lex from ply.yacc import yacc from semantic_rules import Semantic import cool_to_cil, cil_to_mips def run(addr): lexer = lex(module=lexer_rules) parser = yacc(module=parser_rules) sem = Semantic() with open(addr, encoding = "utf-8"...
21.594595
76
0.643304
1d7c1b2322f1013ee1827879f6f31e94d9b2a46c
7,552
py
Python
data/level/level1068.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level1068.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level1068.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = { 'level_index': 1068, 'move_count': 25, 'fall_ratio': 0, 'board_info': { (0, 2): { 'prev': (0, -1), 'next': (0, 1), 'base': (2, 1) }, (7, 2): { 'prev': (0, -1), 'next': (0, 1), 'base': (6, 1) ...
22.954407
34
0.197034
1d7c4129848c3cbd0a0e8a87fa3eb960e2d65f1f
2,047
py
Python
lib/utils/handy_SCOOPBEANS.py
ivalab/affordanceNet_Novel
8e51773dacaadae6bde3dce9fdd43ee28819218a
[ "BSD-2-Clause" ]
3
2020-07-31T02:39:21.000Z
2020-11-24T13:01:50.000Z
lib/utils/handy_SCOOPBEANS.py
ivalab/affordanceNet_Novel
8e51773dacaadae6bde3dce9fdd43ee28819218a
[ "BSD-2-Clause" ]
1
2021-11-02T08:43:49.000Z
2021-11-02T08:43:49.000Z
lib/utils/handy_SCOOPBEANS.py
ivalab/affordanceNet_Novel
8e51773dacaadae6bde3dce9fdd43ee28819218a
[ "BSD-2-Clause" ]
1
2022-02-06T17:17:50.000Z
2022-02-06T17:17:50.000Z
# get object centroids, convert index to actual object name, check if object has desired affordance # i.e. graspable and contains # TODO: deal with identifical objects of the same type import os OBJ_CLASSES = ('__background__', 'bowl', 'cup', 'hammer', 'knife', 'ladle', 'mallet', 'mug', 'pot', 'saw', 'scissors','sco...
39.365385
359
0.601856
1d7c447fce2b9cb1e82bfe92fe688bf38cb42e2b
2,299
py
Python
myapp/notgood/school.py
rnagumo/numpyro_example
04820753586658e621c6537ee63a29274f8f427e
[ "MIT" ]
null
null
null
myapp/notgood/school.py
rnagumo/numpyro_example
04820753586658e621c6537ee63a29274f8f427e
[ "MIT" ]
null
null
null
myapp/notgood/school.py
rnagumo/numpyro_example
04820753586658e621c6537ee63a29274f8f427e
[ "MIT" ]
null
null
null
from typing import Optional import numpy as np import numpyro import numpyro.distributions as dist from jax import random from numpyro.infer import MCMC, NUTS, Predictive from numpyro.infer.reparam import TransformReparam def model(num: int, sigma: np.ndarray, y: Optional[np.ndarray] = None) -> None: mu = numpy...
30.653333
91
0.635059
1d7c840ec16390632b10d6f721016a31abb440d4
4,627
py
Python
experiments/ashvin/vae/old/pointmass/test_vae2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/old/pointmass/test_vae2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/old/pointmass/test_vae2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
from rlkit.envs.multitask.multitask_env import MultitaskToFlatEnv from rlkit.envs.multitask.point2d import MultitaskImagePoint2DEnv from rlkit.envs.mujoco.pusher2d import Pusher2DEnv from rlkit.envs.wrappers import NormalizedBoxEnv from rlkit.exploration_strategies.base import ( PolicyWrappedWithExplorationStrategy...
32.356643
96
0.653987
1d7c9375f09964f9a5d9296264e208e9bf1e00dd
5,856
py
Python
keras2onnx/ke2onnx/activation.py
xadupre/keras-onnx
17559f987ecce7ec40ab8a36a9596eb950f9b332
[ "MIT" ]
null
null
null
keras2onnx/ke2onnx/activation.py
xadupre/keras-onnx
17559f987ecce7ec40ab8a36a9596eb950f9b332
[ "MIT" ]
null
null
null
keras2onnx/ke2onnx/activation.py
xadupre/keras-onnx
17559f987ecce7ec40ab8a36a9596eb950f9b332
[ "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. ############################################################################### imp...
55.245283
115
0.690061
1d7c9a580ff5e4766791720c25161a79c7890197
12,687
py
Python
tests/sourcecache/push.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/sourcecache/push.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/sourcecache/push.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2019 Bloomberg Finance LP # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
39.523364
85
0.653898
1d7c9cf335e112a5638414f89b15f1ec69a738ef
9,546
py
Python
fastmvsnet/nn/conv.py
molspace/FastMVS_experiments
b897015d77600687ca2addf99bb6a6f0de524e5f
[ "MIT" ]
173
2020-03-29T17:34:51.000Z
2022-03-03T06:59:21.000Z
fastmvsnet/nn/conv.py
molspace/FastMVS_experiments
b897015d77600687ca2addf99bb6a6f0de524e5f
[ "MIT" ]
25
2020-04-17T02:17:06.000Z
2022-03-30T05:15:31.000Z
fastmvsnet/nn/conv.py
molspace/FastMVS_experiments
b897015d77600687ca2addf99bb6a6f0de524e5f
[ "MIT" ]
33
2020-03-31T01:38:55.000Z
2022-01-31T17:22:06.000Z
from torch import nn import torch.nn.functional as F from .init import init_uniform, init_bn class Conv1d(nn.Module): """Applies a 1D convolution over an input signal composed of several input planes. optionally followed by batch normalization and relu activation Attributes: conv (nn.Module): co...
31.609272
93
0.594595
1d7ceb00043638160cf24c66525a3f479b7bf8e7
3,000
py
Python
influxdb_client/domain/pkg_spec.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
1
2021-06-06T10:39:47.000Z
2021-06-06T10:39:47.000Z
influxdb_client/domain/pkg_spec.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
influxdb_client/domain/pkg_spec.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class PkgS...
26.548673
124
0.559333
1d7cef48a9e672a7fac4f38f072c32a724ee99d7
6,222
py
Python
lib/motif.py
rcalfredson/time-series-motif
347834fa746153b01fa64f80f36c6f7eb725e421
[ "BSD-2-Clause" ]
null
null
null
lib/motif.py
rcalfredson/time-series-motif
347834fa746153b01fa64f80f36c6f7eb725e421
[ "BSD-2-Clause" ]
null
null
null
lib/motif.py
rcalfredson/time-series-motif
347834fa746153b01fa64f80f36c6f7eb725e421
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from lib.dtw import DTW from lib.list_helpers import pad_insert from lib.markov import MarkovChain from lib.segment import new_segment_size def forecast_motifs(x, pred_len, s_min, s_max, max_dist): N = x.shape[1] tot_len = pred_len + N models, starts, ends, idx, best_prefix_length, _ =...
41.48
135
0.586307
1d7d056a1623ae781802915561a6e534feadf808
13,458
py
Python
pytest_notebook/nb_regression.py
kanderso-nrel/pytest-notebook
40381be0963a8866d1a46994595844bbfb4e66c1
[ "BSD-3-Clause" ]
37
2019-08-10T20:09:38.000Z
2022-03-01T22:17:59.000Z
pytest_notebook/nb_regression.py
kanderso-nrel/pytest-notebook
40381be0963a8866d1a46994595844bbfb4e66c1
[ "BSD-3-Clause" ]
15
2019-12-09T14:34:14.000Z
2022-01-18T13:32:50.000Z
pytest_notebook/nb_regression.py
kanderso-nrel/pytest-notebook
40381be0963a8866d1a46994595844bbfb4e66c1
[ "BSD-3-Clause" ]
7
2020-04-14T10:57:15.000Z
2022-02-10T09:18:30.000Z
"""Jupyter Notebook Regression Test Class.""" import copy import logging import os import sys from typing import Any, List, TextIO, Tuple, Union import attr from attr.validators import instance_of from nbdime.diff_format import DiffEntry import nbformat from nbformat import NotebookNode try: # coverage is an opti...
34.775194
88
0.639397
1d7d11994ae0af93310e97f6199594ddff21f1ed
1,673
py
Python
esst/wan/__init__.py
etcher-be/esst
ac41cd0c07af8ca8532997f533756c529c9609a4
[ "MIT" ]
4
2018-06-24T14:03:44.000Z
2019-01-21T01:20:02.000Z
esst/wan/__init__.py
etcher-be/esst
ac41cd0c07af8ca8532997f533756c529c9609a4
[ "MIT" ]
106
2018-06-24T13:59:52.000Z
2019-11-26T09:05:14.000Z
esst/wan/__init__.py
theendsofinvention/esst
ac41cd0c07af8ca8532997f533756c529c9609a4
[ "MIT" ]
null
null
null
# coding=utf-8 """ Monitors WAN connection """ import asyncio import requests import requests.exceptions from esst import LOGGER, commands, core async def wan_available(retry: int = 0): """ Returns: True if connected to WAN """ try: response = requests.get('http://google.com', timeout=2) ...
28.355932
91
0.632995
1d7d1bc61aca1fe84b97545af86570516ca3873b
10,705
py
Python
legal-api/src/legal_api/models/business.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
1
2019-11-07T20:32:59.000Z
2019-11-07T20:32:59.000Z
legal-api/src/legal_api/models/business.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
null
null
null
legal-api/src/legal_api/models/business.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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 agr...
41.816406
120
0.675385
1d7d2a14f8279d5c06c42389f08bd2c3e05a9061
19,841
py
Python
salt/transport/mixins/auth.py
rfairburn/salt
7e44444e873e1cb1d2fe13e39b0edea3779a2b5e
[ "Apache-2.0" ]
null
null
null
salt/transport/mixins/auth.py
rfairburn/salt
7e44444e873e1cb1d2fe13e39b0edea3779a2b5e
[ "Apache-2.0" ]
null
null
null
salt/transport/mixins/auth.py
rfairburn/salt
7e44444e873e1cb1d2fe13e39b0edea3779a2b5e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Import Python Libs from __future__ import absolute_import import multiprocessing import ctypes import logging import os import hashlib import shutil import binascii # Import Salt Libs import salt.crypt import salt.payload import salt.master import salt.utils.event from salt.utils.cache impor...
43.320961
112
0.504964
1d7d2f8939d5266549065461d33ae74ab0436ee9
3,644
py
Python
examples/speaker_recognition/extract_speaker_embeddings.py
JMichaelStringer/NeMo
b5b29a69ccb0ec3d8c9ace2f33872ee99858a559
[ "Apache-2.0" ]
2
2021-06-23T19:16:59.000Z
2022-02-23T18:49:07.000Z
examples/speaker_recognition/extract_speaker_embeddings.py
JMichaelStringer/NeMo
b5b29a69ccb0ec3d8c9ace2f33872ee99858a559
[ "Apache-2.0" ]
null
null
null
examples/speaker_recognition/extract_speaker_embeddings.py
JMichaelStringer/NeMo
b5b29a69ccb0ec3d8c9ace2f33872ee99858a559
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
35.038462
177
0.72146
1d7d40fe02d3d20c7b763364a38123879302dd59
553
py
Python
scripts/view_kinect.py
wjchen84/rapprentice
9232a6a21e2c80f00854912f07dcdc725b0be95a
[ "BSD-2-Clause" ]
23
2015-08-25T19:40:18.000Z
2020-12-27T09:23:06.000Z
scripts/view_kinect.py
wjchen84/rapprentice
9232a6a21e2c80f00854912f07dcdc725b0be95a
[ "BSD-2-Clause" ]
null
null
null
scripts/view_kinect.py
wjchen84/rapprentice
9232a6a21e2c80f00854912f07dcdc725b0be95a
[ "BSD-2-Clause" ]
8
2016-05-18T20:13:06.000Z
2020-11-03T16:09:50.000Z
#!/usr/bin/env python import cloudprocpy, cv2 import numpy as np import subprocess subprocess.call("killall XnSensorServer", shell=True) cmap = np.zeros((256, 3),dtype='uint8') cmap[:,0] = range(256) cmap[:,2] = range(256)[::-1] cmap[0] = [0,0,0] grabber = cloudprocpy.CloudGrabber() grabber.startRGBD() try: w...
21.269231
75
0.650995
1d7d42f317903d8b533f427bc0131e4125ad5683
1,348
py
Python
Smart_Fusion/plots.py
Kapil19-dev/MultiRespDL
79aa114c4a0de063222f77155c702221008a843c
[ "MIT" ]
null
null
null
Smart_Fusion/plots.py
Kapil19-dev/MultiRespDL
79aa114c4a0de063222f77155c702221008a843c
[ "MIT" ]
null
null
null
Smart_Fusion/plots.py
Kapil19-dev/MultiRespDL
79aa114c4a0de063222f77155c702221008a843c
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt def box_plot_resp(error): ''' input -- Absolute error in form of dataframe, based on different methods. output -- returns the boxplot array description -- This function takes the absolute error dataframe and then return ...
33.7
95
0.627596
1d7d466a1645941820b9ddf542ed3fbf25ccc832
16,978
py
Python
superset/connectors/sqla/views.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
11
2018-01-16T16:52:12.000Z
2020-06-12T12:17:03.000Z
superset/connectors/sqla/views.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
67
2017-11-06T21:31:14.000Z
2020-11-19T03:52:18.000Z
superset/connectors/sqla/views.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
4
2018-01-31T00:11:50.000Z
2019-12-26T04:11:52.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.590517
103
0.590882
1d7d6140134bc7a5f43bcd65520e5e0951ae29f7
7,755
py
Python
pytorch_forecasting/models/temporal_fusion_transformer/tuning.py
KazukiNoto/pytorch-forecasting
8a1636388e091456f042f999892dd52733903dd6
[ "MIT" ]
1
2021-06-09T09:51:13.000Z
2021-06-09T09:51:13.000Z
pytorch_forecasting/models/temporal_fusion_transformer/tuning.py
KazukiNoto/pytorch-forecasting
8a1636388e091456f042f999892dd52733903dd6
[ "MIT" ]
null
null
null
pytorch_forecasting/models/temporal_fusion_transformer/tuning.py
KazukiNoto/pytorch-forecasting
8a1636388e091456f042f999892dd52733903dd6
[ "MIT" ]
1
2021-06-15T11:31:44.000Z
2021-06-15T11:31:44.000Z
""" Hyperparameters can be efficiently tuned with `optuna <https://optuna.readthedocs.io/>`_. """ import os from typing import Any, Dict, Tuple import numpy as np import optuna from optuna.integration import PyTorchLightningPruningCallback, TensorBoardCallback import pytorch_lightning as pl from pytorch_lightning impo...
45.350877
118
0.675951
1d7d9b249c8e1648ec9fa11cdd645e65d7948d32
133
py
Python
rltorch/scheduler/__init__.py
Brandon-Rozek/rltorch
cb87105305315c5df4cae91fee0ee54b981bc04b
[ "MIT" ]
null
null
null
rltorch/scheduler/__init__.py
Brandon-Rozek/rltorch
cb87105305315c5df4cae91fee0ee54b981bc04b
[ "MIT" ]
null
null
null
rltorch/scheduler/__init__.py
Brandon-Rozek/rltorch
cb87105305315c5df4cae91fee0ee54b981bc04b
[ "MIT" ]
null
null
null
from .Scheduler import Scheduler from .LinearScheduler import LinearScheduler from .ExponentialScheduler import ExponentialScheduler
33.25
54
0.887218
1d7db1cfb528486633b7f8900d7ef54a65734984
485
py
Python
var/spack/repos/builtin.mock/packages/git-test-full/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin.mock/packages/git-test-full/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin.mock/packages/git-test-full/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class GitTestFull(Package): """Mock package that uses git for fetching.""" homepage = "http:...
28.529412
83
0.707216
1d7dbe0d90e00468d1e537bcbecbda97bb65c90c
541
py
Python
ParsersClasses/QuicksortParser.py
UFRGS-CAROL/radiation-benchmarks-parsers
a39844ed3ed511f4f2672bc2e0c7e6f920dc7f2b
[ "Apache-2.0" ]
null
null
null
ParsersClasses/QuicksortParser.py
UFRGS-CAROL/radiation-benchmarks-parsers
a39844ed3ed511f4f2672bc2e0c7e6f920dc7f2b
[ "Apache-2.0" ]
null
null
null
ParsersClasses/QuicksortParser.py
UFRGS-CAROL/radiation-benchmarks-parsers
a39844ed3ed511f4f2672bc2e0c7e6f920dc7f2b
[ "Apache-2.0" ]
null
null
null
import re from SortParser import SortParser class QuicksortParser(SortParser): """ input: header is the logfilename header no return must set _size attribute to a string, this string will be used to create the csv file """ def setSize(self, header): self._size = None m = re...
27.05
57
0.573013
1d7de7333b8170b2a2aae65f2be4b63c3e829ece
2,596
py
Python
acme/agents/tf/r2d2/agent_test.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
2,650
2020-06-01T16:31:25.000Z
2022-03-31T07:32:41.000Z
acme/agents/tf/r2d2/agent_test.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
199
2020-06-02T01:09:09.000Z
2022-03-31T17:11:20.000Z
acme/agents/tf/r2d2/agent_test.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
344
2020-06-01T16:45:21.000Z
2022-03-30T11:15:09.000Z
# python3 # Copyright 2018 DeepMind Technologies Limited. 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 re...
30.541176
78
0.716102
1d7e004c8d79363535baf160a88b29df4f27fd53
5,962
py
Python
main_rl.py
csm9493/UCL
a64e954a745bb5d654a024a0cafdedde921e5fef
[ "MIT" ]
25
2019-11-26T12:41:14.000Z
2022-03-22T23:26:11.000Z
main_rl.py
cuijiahui/UCL
f25c77402b3b88da83bb1b740177545c89795a20
[ "MIT" ]
1
2021-05-05T06:57:48.000Z
2021-05-05T06:57:48.000Z
main_rl.py
cuijiahui/UCL
f25c77402b3b88da83bb1b740177545c89795a20
[ "MIT" ]
7
2020-04-18T18:29:33.000Z
2021-06-22T09:24:34.000Z
import sys, os, time import numpy as np import torch.nn as nn import torch.nn.init as init import torch.nn.functional as F import torch.optim as optim import pickle import torch from arguments_rl import get_args from collections import deque from rl_module.a2c_ppo_acktr.envs import make_vec_envs from rl_module.a2c_pp...
31.052083
149
0.577994
1d7e1dc339e299a9207f6e1bc698fc9619e37bd3
7,888
py
Python
fetch_filter_keywords.py
oscar-coin/twitter-to-mongo
793b0f416fe1c2770c72cd680b62736dca13ebff
[ "Apache-2.0" ]
null
null
null
fetch_filter_keywords.py
oscar-coin/twitter-to-mongo
793b0f416fe1c2770c72cd680b62736dca13ebff
[ "Apache-2.0" ]
null
null
null
fetch_filter_keywords.py
oscar-coin/twitter-to-mongo
793b0f416fe1c2770c72cd680b62736dca13ebff
[ "Apache-2.0" ]
null
null
null
import traceback from collections import defaultdict __author__ = 'emre' from datetime import datetime from enum import Enum from pymongo.collection import Collection date_format = "%d %B %Y" date_format_year_only = "%Y" current_data_timestamp = datetime(2015, 11, 1) next_year_timestamp = datetime(2016, 1, 1) cl...
32.73029
120
0.61283
1d7e303d19672ffe114e206e1a01186d06ab671c
1,679
py
Python
documentstore_migracao/utils/logger.py
joffilyfe/document-store-migracao
b5125b7aedec56f0e8787900bdfd124aaf65e3e3
[ "BSD-2-Clause" ]
null
null
null
documentstore_migracao/utils/logger.py
joffilyfe/document-store-migracao
b5125b7aedec56f0e8787900bdfd124aaf65e3e3
[ "BSD-2-Clause" ]
14
2019-03-13T12:19:12.000Z
2019-03-19T17:37:08.000Z
documentstore_migracao/utils/logger.py
joffilyfe/document-store-migracao
b5125b7aedec56f0e8787900bdfd124aaf65e3e3
[ "BSD-2-Clause" ]
3
2019-03-12T18:55:55.000Z
2019-03-20T18:38:02.000Z
""" module to utils of logger app """ import os from logging import config as l_config from documentstore_migracao import config def configure_logger(): SUB_DICT_CONFIG = {"level": "DEBUG", "handlers": ["file"], "propagate": False} l_config.dictConfig( { "version": 1, "format...
36.5
88
0.472901
1d7e4d6413ccdabfe787816e02cf72384b383517
805
py
Python
master/teachkids-master/teachkids-master/ch03/AtlantaPizza.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/teachkids-master/teachkids-master/ch03/AtlantaPizza.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/teachkids-master/teachkids-master/ch03/AtlantaPizza.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
# AtlantaPizza.py – a simple pizza cost calculator # Ask the person how many pizzas they want, get the # with eval() number_of_pizzas = eval( input("How many pizzas do you want: ") ) # Ask for the menu cost of each pizza cost_per_pizza = eval( input("How much does each pizza cost: ") ) # Calculate the total cost of ...
35
65
0.730435
1d7e7030cb92ad166b189349a24759acb977ff7e
170
py
Python
violas_client/lbrtypes/__init__.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
violas_client/lbrtypes/__init__.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
violas_client/lbrtypes/__init__.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
1
2022-01-05T06:49:42.000Z
2022-01-05T06:49:42.000Z
# import os # import sys # sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../canoser'))) from violas_client.lbrtypes.chain_id import NamedChain
34
89
0.764706
1d7e759f6a6332307c3c88ce555745f1b7552d51
163
py
Python
vivid/featureset/__init__.py
upura/vivid
6139697d60656d4774aceae880f5a07d929124a8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
vivid/featureset/__init__.py
upura/vivid
6139697d60656d4774aceae880f5a07d929124a8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
vivid/featureset/__init__.py
upura/vivid
6139697d60656d4774aceae880f5a07d929124a8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from .atoms import AbstractMergeAtom, AbstractAtom, StringContainsAtom from .molecules import create_molecule, find_molecule from .utils import create_data_loader
40.75
70
0.871166
1d7e7df4fd5453c085d052369a09a7cab7809eaf
4,051
py
Python
filters/http_client_source.py
koolspin/rosetta
89fe48d99c92e67df3c52dac9839b608e202cd3d
[ "MIT" ]
null
null
null
filters/http_client_source.py
koolspin/rosetta
89fe48d99c92e67df3c52dac9839b608e202cd3d
[ "MIT" ]
null
null
null
filters/http_client_source.py
koolspin/rosetta
89fe48d99c92e67df3c52dac9839b608e202cd3d
[ "MIT" ]
null
null
null
from tornado import httpclient, gen from tornado.platform.asyncio import AsyncIOMainLoop from filters.tornado_source import TornadoSource from graph.filter_base import FilterBase, FilterState, FilterType from graph.input_pin import InputPin from graph.output_pin import OutputPin class HttpClientSource(FilterBase): ...
38.951923
130
0.642064