hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
f62f71f11c190d9d97f87487f6832615fa57c22f
6,647
py
Python
HMI_1h_synoptic_prep.py
bmampaey/SDO-auto-prep
ea34bcd70c261aaf158c31937e1ccf3086b48938
[ "MIT" ]
null
null
null
HMI_1h_synoptic_prep.py
bmampaey/SDO-auto-prep
ea34bcd70c261aaf158c31937e1ccf3086b48938
[ "MIT" ]
null
null
null
HMI_1h_synoptic_prep.py
bmampaey/SDO-auto-prep
ea34bcd70c261aaf158c31937e1ccf3086b48938
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import os import logging import signal import argparse from datetime import datetime, timedelta from dateutil.parser import parse as date_parser from glob import glob import Queue import threading from IDL import SSWIDL # The base directory of the input FITS files input_file_dir = "/data/...
37.767045
181
0.719723
c90ea0d7fe68dfd747d0895a38db13a372b6bb37
5,613
py
Python
venv/lib/python3.7/site-packages/keyring/tests/test_backend.py
margretmwangi/Rblog
2d606a858c3313e1d48cdd6a8ce205c8776be754
[ "Unlicense" ]
1
2021-04-05T02:52:30.000Z
2021-04-05T02:52:30.000Z
venv/lib/python3.7/site-packages/keyring/tests/test_backend.py
margretmwangi/Rblog
2d606a858c3313e1d48cdd6a8ce205c8776be754
[ "Unlicense" ]
2
2021-09-13T16:05:02.000Z
2021-10-21T21:24:41.000Z
venv/lib/python3.7/site-packages/keyring/tests/test_backend.py
margretmwangi/Rblog
2d606a858c3313e1d48cdd6a8ce205c8776be754
[ "Unlicense" ]
1
2021-04-07T09:11:05.000Z
2021-04-07T09:11:05.000Z
# coding: utf-8 """ Common test functionality for backends. """ from __future__ import unicode_literals import string import pytest from .util import random_string from keyring import errors __metaclass__ = type # unicode only characters # Sourced from The Quick Brown Fox... Pangrams # http://www.columbia.edu/~f...
35.301887
76
0.680563
31312070d94436ede8d223a14e9c560f187a6ec5
13,374
py
Python
allennlp/modules/token_embedders/pretrained_transformer_embedder.py
12seetharaman/allennlp
212035f23c4642b3f3bc850316fe0119f2053ab1
[ "Apache-2.0" ]
1
2021-06-12T22:01:10.000Z
2021-06-12T22:01:10.000Z
allennlp/modules/token_embedders/pretrained_transformer_embedder.py
12seetharaman/allennlp
212035f23c4642b3f3bc850316fe0119f2053ab1
[ "Apache-2.0" ]
null
null
null
allennlp/modules/token_embedders/pretrained_transformer_embedder.py
12seetharaman/allennlp
212035f23c4642b3f3bc850316fe0119f2053ab1
[ "Apache-2.0" ]
null
null
null
import math from typing import Optional, Tuple from overrides import overrides import torch import torch.nn.functional as F from transformers import XLNetConfig from transformers.modeling_auto import AutoModel from allennlp.data.tokenizers import PretrainedTransformerTokenizer from allennlp.modules.token_embedders.t...
45.335593
110
0.66719
748215b6da66f5ae1eff827082cc9066f02f2bd5
8,929
py
Python
train.py
bhsimon0810/attentive-reader
67d70938545523656ec50152a4c7049ec053b54f
[ "MIT" ]
null
null
null
train.py
bhsimon0810/attentive-reader
67d70938545523656ec50152a4c7049ec053b54f
[ "MIT" ]
null
null
null
train.py
bhsimon0810/attentive-reader
67d70938545523656ec50152a4c7049ec053b54f
[ "MIT" ]
null
null
null
import os import sys import time import datetime import numpy as np import tensorflow as tf from model import Reader from dataset import Dataset from utils import gen_embeddings, load_dict # Parameters # ================================================== # Data loading params tf.flags.DEFINE_string("tra...
47.748663
125
0.603875
40e2f3192f0b9e5fbfe9382ffe645eb3dc00f9a6
628
py
Python
scripts/quest/q1426e.py
cuongdt1994/v204.1
9b0e2d05bcb6d6c1cf2341a93267aa1b8c4bf7a5
[ "MIT" ]
9
2021-04-26T11:59:29.000Z
2021-12-20T13:15:27.000Z
scripts/quest/q1426e.py
varenty-x/v203.4
359d6575ef8256bb2d6df87bf4156c4608243232
[ "MIT" ]
null
null
null
scripts/quest/q1426e.py
varenty-x/v203.4
359d6575ef8256bb2d6df87bf4156c4608243232
[ "MIT" ]
6
2021-07-14T06:32:05.000Z
2022-02-06T02:32:56.000Z
# [Job Adv] (Lv.30) Gunslinger of the Seven Seas darkMarble = 4031013 job = "Gunslinger" sm.setSpeakerID(1090000) if sm.hasItem(darkMarble, 30): sm.sendNext("I am impressed, you surpassed the test. Only few are talented enough.\r\n" "You have proven yourself to be worthy, I shall mold your bod...
29.904762
102
0.686306
bb5e040798b190a627c0307ddee6a117d3a50962
138
py
Python
v1/chapter8/5-NltkTokenize.py
QTYResources/python-scraping
d7afe25a012fb5d079ee42372c7fce94b9494b9f
[ "MIT" ]
null
null
null
v1/chapter8/5-NltkTokenize.py
QTYResources/python-scraping
d7afe25a012fb5d079ee42372c7fce94b9494b9f
[ "MIT" ]
null
null
null
v1/chapter8/5-NltkTokenize.py
QTYResources/python-scraping
d7afe25a012fb5d079ee42372c7fce94b9494b9f
[ "MIT" ]
null
null
null
from nltk import word_tokenize from nltk import Text tokens = word_tokenize("Here is some not very interesting text") text = Text(tokens)
27.6
64
0.797101
2c4907a110a283541cd4f98f925a3a0777ad2d00
11,681
py
Python
zipline/gens/tradesimulation.py
npezolano/zipline
71effa5e98bd0425ac1863e1861c9b51fbc77242
[ "Apache-2.0" ]
1
2016-03-16T12:54:07.000Z
2016-03-16T12:54:07.000Z
zipline/gens/tradesimulation.py
Miles0918/zipline
e7a5e097c419bed7816d3cd6c370b5171db37b33
[ "Apache-2.0" ]
null
null
null
zipline/gens/tradesimulation.py
Miles0918/zipline
e7a5e097c419bed7816d3cd6c370b5171db37b33
[ "Apache-2.0" ]
null
null
null
# # Copyright 2014 Quantopian, 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 wr...
37.680645
79
0.566304
a08efd76e80db21932a56bd3069bf91cca0ca074
863
py
Python
data_sourcery/sources/images/base.py
tiagoprn/data_sourcery
4e847f42b228cb2359fa785119a2c21c1a12f656
[ "MIT" ]
null
null
null
data_sourcery/sources/images/base.py
tiagoprn/data_sourcery
4e847f42b228cb2359fa785119a2c21c1a12f656
[ "MIT" ]
7
2021-03-19T00:24:03.000Z
2022-01-13T01:12:47.000Z
data_sourcery/sources/images/base.py
tiagoprn/data_sourcery
4e847f42b228cb2359fa785119a2c21c1a12f656
[ "MIT" ]
null
null
null
import os class BaseImageDownloader: local_repository_path = '' remote_path = '' def __init__(self, remote_path=''): home_folder = os.environ.get('HOME') local_repository_home = (f'{home_folder}/.local/' f'share/data_sourcery') self.local_repositor...
27.83871
70
0.628042
8a8033971e3e0561994788b43e15e5dada3c0e08
536
py
Python
app/account/authentication.py
rogeriopaulos/gep
e56fd0450bdb8f572e2e35cc59a74ab0f0b372e2
[ "MIT" ]
null
null
null
app/account/authentication.py
rogeriopaulos/gep
e56fd0450bdb8f572e2e35cc59a74ab0f0b372e2
[ "MIT" ]
2
2021-09-02T04:22:45.000Z
2021-09-02T04:52:26.000Z
app/account/authentication.py
rogeriopaulos/gep
e56fd0450bdb8f572e2e35cc59a74ab0f0b372e2
[ "MIT" ]
1
2021-09-15T02:16:38.000Z
2021-09-15T02:16:38.000Z
# -*- coding: utf-8 -*- from django.contrib.auth.models import User class EmailAuthBackend(object): def authenticate(self, username=None, password=None): try: user = User.objects.get(email=username) if user.check_password(password): return user return ...
24.363636
57
0.591418
e47b42588e2677e296d9a7d716301d0a18bb5c0a
2,956
py
Python
word2vec/data/reader.py
sdliuyuzhi/word2vec-pytorch
2a3aa41983e8b655f1289eb2fc0524c3309f9280
[ "MIT" ]
null
null
null
word2vec/data/reader.py
sdliuyuzhi/word2vec-pytorch
2a3aa41983e8b655f1289eb2fc0524c3309f9280
[ "MIT" ]
null
null
null
word2vec/data/reader.py
sdliuyuzhi/word2vec-pytorch
2a3aa41983e8b655f1289eb2fc0524c3309f9280
[ "MIT" ]
2
2018-12-23T20:42:28.000Z
2021-02-21T02:21:17.000Z
import logging import os import numpy as np from tqdm import tqdm from torch.utils.data import Dataset, DataLoader from word2vec.nlp.corpus import Corpus from word2vec.nlp.tokenizer import UNK class DataReader(Dataset): def __init__(self, data_path, window_size=5, min_count=1, n_negs=6, batch_size=50, padding...
35.614458
102
0.560555
fd15467d497238963a24b1819472591464bb3000
210
py
Python
template.py
fenna/BFVP3INF2_DEMO
75f9c86adfdfe20989a63af464a7f537a326bdc5
[ "CNRI-Python" ]
null
null
null
template.py
fenna/BFVP3INF2_DEMO
75f9c86adfdfe20989a63af464a7f537a326bdc5
[ "CNRI-Python" ]
null
null
null
template.py
fenna/BFVP3INF2_DEMO
75f9c86adfdfe20989a63af464a7f537a326bdc5
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/env python3 """ description of the program """ __author__ = "my name" import sys def main(args): return 0 if __name__ == "__main__": exitcode = main(sys.argv) sys.exit(exitcode)
10
29
0.638095
6a5050aff0ffccfbaa9ad42f2a37a24ddb170e80
2,187
py
Python
lib/googlecloudsdk/third_party/apis/securitycenter/v1beta1/resources.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/securitycenter/v1beta1/resources.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
11
2020-02-29T02:51:12.000Z
2022-03-30T23:20:08.000Z
lib/googlecloudsdk/third_party/apis/securitycenter/v1beta1/resources.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
1
2020-07-24T18:47:35.000Z
2020-07-24T18:47:35.000Z
# -*- coding: utf-8 -*- # # Copyright 2015 Google LLC. 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 requir...
28.402597
93
0.656607
2c50105e7b020292295531bc31331004869defe3
3,059
py
Python
tools/poolout_tool.py
ThuYShao/pytorch-worker
1d5a576e0ad887d981c0aa06bdae6a23637b870b
[ "MIT" ]
null
null
null
tools/poolout_tool.py
ThuYShao/pytorch-worker
1d5a576e0ad887d981c0aa06bdae6a23637b870b
[ "MIT" ]
null
null
null
tools/poolout_tool.py
ThuYShao/pytorch-worker
1d5a576e0ad887d981c0aa06bdae6a23637b870b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'yshao' import logging import torch import json from torch.autograd import Variable from timeit import default_timer as timer from tools.eval_tool import gen_time_str, output_value logger = logging.getLogger(__name__) def load_state_keywise(model, pretrained_dict): logger...
31.536082
100
0.560968
3a2326e25eacd6aa055c595478f999562efd9a37
60,741
py
Python
src/app/voltdb/voltdb_src/lib/python/voltdbclient.py
OpenMPDK/SMDK
8f19d32d999731242cb1ab116a4cb445d9993b15
[ "BSD-3-Clause" ]
44
2022-03-16T08:32:31.000Z
2022-03-31T16:02:35.000Z
src/app/voltdb/voltdb_src/lib/python/voltdbclient.py
H2O0Lee/SMDK
eff49bc17a55a83ea968112feb2e2f2ea18c4ff5
[ "BSD-3-Clause" ]
1
2022-03-29T02:30:28.000Z
2022-03-30T03:40:46.000Z
src/app/voltdb/voltdb_src/lib/python/voltdbclient.py
H2O0Lee/SMDK
eff49bc17a55a83ea968112feb2e2f2ea18c4ff5
[ "BSD-3-Clause" ]
18
2022-03-19T04:41:04.000Z
2022-03-31T03:32:12.000Z
#!/usr/bin/env python3 # This file is part of VoltDB. # Copyright (C) 2008-2021 VoltDB Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at you...
36.220036
132
0.580728
0d862190c0eba884a1edccea5f414834e07c2ce6
4,079
py
Python
django/contrib/gis/tests/__init__.py
Smarsh/django
ffb738e0f56027e16564a79b709cbf44596c2335
[ "BSD-3-Clause" ]
19
2015-05-01T19:59:03.000Z
2021-12-09T08:03:16.000Z
django/contrib/gis/tests/__init__.py
aprefontaine/TMScheduler
298a332532b9df1d3f6a80b1334630bc106d3b78
[ "BSD-3-Clause" ]
1
2018-01-03T15:26:49.000Z
2018-01-03T15:26:49.000Z
django/contrib/gis/tests/__init__.py
aprefontaine/TMScheduler
298a332532b9df1d3f6a80b1334630bc106d3b78
[ "BSD-3-Clause" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
import sys def run_tests(*args, **kwargs): from django.test.simple import run_tests as base_run_tests return base_run_tests(*args, **kwargs) def geo_suite(): """ Builds a test suite for the GIS package. This is not named `suite` so it will not interfere with the Django test suite (since spati...
35.163793
87
0.689385
2f09c823ce531a80d03537d90aca6c82534771ee
553
py
Python
stanCode_Projects/name_searching_system/test.py
kunyi1022/sc-projects
0ab0019b2cdc86c434a0acff39b862263dcbc970
[ "MIT" ]
null
null
null
stanCode_Projects/name_searching_system/test.py
kunyi1022/sc-projects
0ab0019b2cdc86c434a0acff39b862263dcbc970
[ "MIT" ]
null
null
null
stanCode_Projects/name_searching_system/test.py
kunyi1022/sc-projects
0ab0019b2cdc86c434a0acff39b862263dcbc970
[ "MIT" ]
null
null
null
def main(): year = '' with open('data/full/baby-1900.txt', 'r') as f: for line in f: if len(line) == 5: year = line[:4] else: name_lst = line.split(",") rank_b = name_lst[0] name1_b = name_lst[1] name...
26.333333
55
0.423146
e0f53805ab2f5ea01cd2f18208750b866d690319
15,976
py
Python
bot/logic/unit_manager/unit_manager.py
Scottdecat/HiveMind
cbd9de0645d756a63d65918f6c971753e1178652
[ "MIT" ]
null
null
null
bot/logic/unit_manager/unit_manager.py
Scottdecat/HiveMind
cbd9de0645d756a63d65918f6c971753e1178652
[ "MIT" ]
null
null
null
bot/logic/unit_manager/unit_manager.py
Scottdecat/HiveMind
cbd9de0645d756a63d65918f6c971753e1178652
[ "MIT" ]
null
null
null
import math import random from collections import defaultdict from math import sqrt from typing import Union import bot.injector as injector from bot.logic.army_strategy_manager.army_strategy_manager_interface import \ ArmyStrategyManagerInterface from bot.logic.overlord_manager import OverlordManager from bot.log...
51.535484
250
0.668315
46c6dde37457f1d5ad3558b9acde5292308da09b
60,656
py
Python
tests/test_service.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
null
null
null
tests/test_service.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
null
null
null
tests/test_service.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # SPDX-License-Identifier: Apache-2.0 """Test Service module.""" from os import path from pathlib import Path from unittest import mock from unittest.mock import MagicMock, PropertyMock import shutil import oyaml as yaml import pytest import onapsdk.constants as const from onapsdk.exceptions i...
40.983784
266
0.639195
c6bc3faa8391507b27fe607d455e4f07486ce67a
8,828
py
Python
Code/models/VisualizeLip.py
Pooventhiran/VSR
de6d23c7fc4633e73a4d9c37e3e55c7561b35525
[ "MIT" ]
4
2020-02-03T17:05:08.000Z
2021-04-21T12:47:30.000Z
Code/models/VisualizeLip.py
Pooventhiran/VSR
de6d23c7fc4633e73a4d9c37e3e55c7561b35525
[ "MIT" ]
null
null
null
Code/models/VisualizeLip.py
Pooventhiran/VSR
de6d23c7fc4633e73a4d9c37e3e55c7561b35525
[ "MIT" ]
3
2021-10-16T05:38:13.000Z
2021-12-29T14:57:10.000Z
# Copyright {2017} {Amirsina Torfi} # # 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...
38.889868
113
0.415723
4f9eb066ebafb2a2d4e3f358e15feb253e4573f0
9,657
py
Python
conftest.py
wtgee/POCS
c88f5d0db3aff8e17c95339ba64249b56b3ceef7
[ "MIT" ]
null
null
null
conftest.py
wtgee/POCS
c88f5d0db3aff8e17c95339ba64249b56b3ceef7
[ "MIT" ]
null
null
null
conftest.py
wtgee/POCS
c88f5d0db3aff8e17c95339ba64249b56b3ceef7
[ "MIT" ]
null
null
null
import logging import os import stat import pytest import tempfile import shutil from contextlib import suppress from _pytest.logging import caplog as _caplog # noqa from panoptes.pocs import hardware from panoptes.utils.config.client import set_config from panoptes.utils.database import PanDB from panoptes.pocs.uti...
34.003521
100
0.66646
f4d5e2f545a684464725314e335c54d55f6a0a6e
2,371
py
Python
ops/viewport_display_from_shader.py
D4KU/BlenderScripts
d847b06ceb9c46de5472e38018b1253dd7397645
[ "MIT" ]
2
2020-03-20T03:14:00.000Z
2020-03-21T19:49:31.000Z
ops/viewport_display_from_shader.py
D4KU/BlenderScripts
d847b06ceb9c46de5472e38018b1253dd7397645
[ "MIT" ]
2
2021-03-02T20:11:23.000Z
2021-05-26T21:52:48.000Z
ops/viewport_display_from_shader.py
D4KU/BlenderScripts
d847b06ceb9c46de5472e38018b1253dd7397645
[ "MIT" ]
1
2021-03-02T01:19:50.000Z
2021-03-02T01:19:50.000Z
import bpy from smorgasbord.common.decorate import register @register class ViewportDisplayFromShader(bpy.types.Operator): bl_idname = "object.viewport_display_from_shader" bl_label = "Viewport Display from Shader" bl_description = ( "For each active material of each selected object, search its " ...
35.38806
74
0.592999
f1b0c8c64b5c89cbc6649eba9483c0c9327d9420
7,003
py
Python
inpaint.py
HugoSenetaire/vaeac
451d34dd4986c52f2f37c508f03ee3db9e7408d3
[ "MIT" ]
null
null
null
inpaint.py
HugoSenetaire/vaeac
451d34dd4986c52f2f37c508f03ee3db9e7408d3
[ "MIT" ]
null
null
null
inpaint.py
HugoSenetaire/vaeac
451d34dd4986c52f2f37c508f03ee3db9e7408d3
[ "MIT" ]
null
null
null
from argparse import ArgumentParser from importlib import import_module from os import makedirs from os.path import join from unicodedata import normalize import torch from torch.utils.data import DataLoader from torchvision.transforms import ToPILImage from tqdm import tqdm from datasets import load_dataset, ZipData...
38.478022
123
0.651578
a22333d22a1a440fc97ce7bf34297be659920ea9
148,771
py
Python
pyvista/plotting/plotting.py
LucaZampieri/pyvista
ae2a7a0559961839c5aa2979228fcdef1f4b188e
[ "MIT" ]
null
null
null
pyvista/plotting/plotting.py
LucaZampieri/pyvista
ae2a7a0559961839c5aa2979228fcdef1f4b188e
[ "MIT" ]
null
null
null
pyvista/plotting/plotting.py
LucaZampieri/pyvista
ae2a7a0559961839c5aa2979228fcdef1f4b188e
[ "MIT" ]
null
null
null
"""Pyvista plotting module.""" import collections import logging import os import time import warnings from functools import wraps from threading import Thread import imageio import numpy as np import vtk from vtk.util import numpy_support as VN from vtk.util.numpy_support import numpy_to_vtk, vtk_to_numpy import py...
37.893785
149
0.592575
8cdb62593b1c4dae23b41a04212ca9d7469cecf0
3,611
py
Python
inou/prp/tests/prplib.py
realdavidpang/livehd
c0462922400d34c0327b4aabb450332bda50f174
[ "BSD-3-Clause" ]
46
2018-05-31T23:07:02.000Z
2019-09-16T20:21:03.000Z
inou/prp/tests/prplib.py
realdavidpang/livehd
c0462922400d34c0327b4aabb450332bda50f174
[ "BSD-3-Clause" ]
120
2018-05-16T23:11:09.000Z
2019-09-25T18:52:49.000Z
inou/prp/tests/prplib.py
realdavidpang/livehd
c0462922400d34c0327b4aabb450332bda50f174
[ "BSD-3-Clause" ]
8
2018-11-08T18:53:52.000Z
2019-09-05T20:04:20.000Z
#!/usr/bin/env python3 import argparse import os import re import subprocess import sys import yaml class PrpTest: """ Pyrope Test Object """ def __init__(self, prp_file): # Set default values self.params = {} self.params['name'] = os.path.basename(prp_file) self....
27.150376
76
0.495154
7a1fa208a9ed9387f80f6962f41e56431f37be62
8,984
py
Python
retratodefases/Cobweb.py
Loracio/retrato-de-fases
a2d870a69b911af3b78288708cb569c957506940
[ "MIT" ]
3
2021-03-22T00:07:28.000Z
2021-03-22T12:11:18.000Z
retratodefases/Cobweb.py
Loracio/retrato-de-fases
a2d870a69b911af3b78288708cb569c957506940
[ "MIT" ]
null
null
null
retratodefases/Cobweb.py
Loracio/retrato-de-fases
a2d870a69b911af3b78288708cb569c957506940
[ "MIT" ]
2
2021-03-20T19:00:53.000Z
2021-03-22T12:19:52.000Z
from inspect import signature import matplotlib.pyplot as plt import numpy as np from .exceptions import exceptions from .phase_diagrams import Funcion1D from .sliders import sliders from .utils import utils class Cobweb: """ Cobweb ------ Class dedicated cobweb plots of 1 dimension maps `x(t+1) = f...
29.748344
141
0.56801
c89e9e5feecf379f7049b45e2dcc243b964dd95e
961
py
Python
api/cases/migrations/0019_prep_advice_model.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
3
2019-05-15T09:30:39.000Z
2020-04-22T16:14:23.000Z
api/cases/migrations/0019_prep_advice_model.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
85
2019-04-24T10:39:35.000Z
2022-03-21T14:52:12.000Z
api/cases/migrations/0019_prep_advice_model.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
1
2021-01-17T11:12:19.000Z
2021-01-17T11:12:19.000Z
# Generated by Django 2.2.11 on 2020-05-07 11:24 import django from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("teams", "0002_auto_20200307_1805"), ("cases", "0018_auto_20200505_1721"), ] operations = [ migrations.AlterModelTable(...
32.033333
111
0.59001
5d01af9fb0f78fd34ac13bc93d2dea6d95f208c7
9,602
py
Python
akshare/futures/futures_basis.py
dindom999/akshare
95b38d3430c71637c3ee9ba799618c20afe4a010
[ "MIT" ]
1
2020-10-07T01:19:13.000Z
2020-10-07T01:19:13.000Z
akshare/futures/futures_basis.py
dindom999/akshare
95b38d3430c71637c3ee9ba799618c20afe4a010
[ "MIT" ]
1
2020-09-07T11:18:55.000Z
2020-09-07T11:18:55.000Z
akshare/futures/futures_basis.py
dindom999/akshare
95b38d3430c71637c3ee9ba799618c20afe4a010
[ "MIT" ]
1
2021-04-06T17:06:49.000Z
2021-04-06T17:06:49.000Z
# -*- coding:utf-8 -*- # /usr/bin/env python """ Date: 2020/3/24 15:00 Desc: 生意社网站采集大宗商品现货价格及相应基差数据, 数据时间段从 20110104-至今 备注:现期差 = 现货价格 - 期货价格(这里的期货价格为结算价) 黄金为 元/克, 白银为 元/千克, 玻璃现货为 元/平方米, 鸡蛋现货为 元/公斤, 鸡蛋期货为 元/500千克, 其余为 元/吨. 焦炭现货规格是: 一级冶金焦; 焦炭期货规格: 介于一级和二级之间, 焦炭现期差仅供参考. 铁矿石现货价格是: 湿吨, 铁矿石期货价格是: 干吨 网页地址: http://www.100ppi.c...
40.344538
146
0.57009
7dd5254a4c3ed579f5034c4746f1945447fc235f
8,744
py
Python
components/contributions.py
n8wachT/BotListBot
457160498a90c8d0a63d5a9f7400227e35431b6d
[ "MIT" ]
null
null
null
components/contributions.py
n8wachT/BotListBot
457160498a90c8d0a63d5a9f7400227e35431b6d
[ "MIT" ]
null
null
null
components/contributions.py
n8wachT/BotListBot
457160498a90c8d0a63d5a9f7400227e35431b6d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import logging import re from pprint import pprint from peewee import fn from telegram import Message as TelegramMessage from telegram import ParseMode from telegram.ext import ConversationHandler import mdformat import settings import util from model import User, Bot, Suggesti...
39.745455
120
0.631404
2125d50f0a942780416d3a75b0ee164f257d3cba
9,082
py
Python
DroneCode/coordTrans.py
RafaelCabanas/ret2018software
de810b8a5840a401a87d794cee991939bd6c35dd
[ "MIT" ]
null
null
null
DroneCode/coordTrans.py
RafaelCabanas/ret2018software
de810b8a5840a401a87d794cee991939bd6c35dd
[ "MIT" ]
null
null
null
DroneCode/coordTrans.py
RafaelCabanas/ret2018software
de810b8a5840a401a87d794cee991939bd6c35dd
[ "MIT" ]
1
2019-07-16T15:44:51.000Z
2019-07-16T15:44:51.000Z
from tkinter import Tk # to get window and select file. from tkinter.filedialog import askopenfilename import sys # to kill program when needed. import os # to run instruction in the bash. import pandas ...
41.852535
170
0.676943
2d072dff59c23dc8b1840564f14dd0450b4d3844
442
py
Python
generate_data.py
meggers/pyflix
76a322de3e1b8c75988e05e1af343bfbfbd6be10
[ "MIT" ]
null
null
null
generate_data.py
meggers/pyflix
76a322de3e1b8c75988e05e1af343bfbfbd6be10
[ "MIT" ]
null
null
null
generate_data.py
meggers/pyflix
76a322de3e1b8c75988e05e1af343bfbfbd6be10
[ "MIT" ]
null
null
null
#generates a csv containing 30,000 1024 byte frames and their order import os, binascii csv_file = "server/movie_data.txt" frame_size = 509 num_frames = 30000 target = open(csv_file, 'wb') target.truncate() for index in range(0, num_frames): frame_no = '{0:05d}'.format(index) frame_data = binascii.b2a_hex...
22.1
67
0.705882
67a423f61c8e541f0cdb78f3d01af8eb164660bd
1,682
py
Python
sample/sample-python/sample-japanese-tables.py
George-/tsduck
bcda6aa095c54071c9818ad8c035b5b86389d158
[ "BSD-2-Clause" ]
542
2017-06-21T07:40:10.000Z
2022-03-29T13:44:39.000Z
sample/sample-python/sample-japanese-tables.py
George-/tsduck
bcda6aa095c54071c9818ad8c035b5b86389d158
[ "BSD-2-Clause" ]
939
2017-09-01T21:00:42.000Z
2022-03-31T14:39:27.000Z
sample/sample-python/sample-japanese-tables.py
George-/tsduck
bcda6aa095c54071c9818ad8c035b5b86389d158
[ "BSD-2-Clause" ]
167
2017-10-30T12:07:29.000Z
2022-03-23T11:36:10.000Z
#!/usr/bin/env python #---------------------------------------------------------------------------- # # TSDuck sample Python application : manipulate PSI/SI tables using various # options (DTV standard, character sets, etc.) # # The input file japanese-tables.bin, located in the same directory as the # sample source co...
36.565217
112
0.687277
466d0c10af31181815eb5f252f30aff7fd6e4ee8
2,971
py
Python
qa/rpc-tests/test_framework/coverage.py
Bitcoin-OLD/Bitcoin-OLD
16627f390aa418a99103843f9d94c48931fad826
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/coverage.py
Bitcoin-OLD/Bitcoin-OLD
16627f390aa418a99103843f9d94c48931fad826
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/coverage.py
Bitcoin-OLD/Bitcoin-OLD
16627f390aa418a99103843f9d94c48931fad826
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoinold Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ This module contains utilities for doing coverage analysis on the RPC interface. It provides a wa...
27.766355
79
0.661393
ce0c757ffa9b1a80535dc76f7afb0c4e33b8f897
6,691
py
Python
result1.py
eseJiHeaLim/find_child
29596529ccf39241492b092b01baf03b76d0eb3a
[ "MIT" ]
null
null
null
result1.py
eseJiHeaLim/find_child
29596529ccf39241492b092b01baf03b76d0eb3a
[ "MIT" ]
null
null
null
result1.py
eseJiHeaLim/find_child
29596529ccf39241492b092b01baf03b76d0eb3a
[ "MIT" ]
null
null
null
import numpy as np import cv2 import tkinter as tk import PIL import os from PIL import Image from PIL import ImageTk #import face_recognition # 정보 info=[[0]*30 for i in range(4)] index=0 find_index=-1; temp_child_name = [] temp_par_name = [] temp_contact1 = [] temp_contact2 = [] # main window window=tk.Tk() window....
30.276018
162
0.712599
ef1f30c3924c00344adccaf01b0a31971836ef41
32,699
py
Python
code/BERT/eval_mixup_model_OOD.py
StevenyzZhang/Guided-Adversarial-Augmentation
35602d20a969597bb1b1ddb4e98f65a53d4d21a9
[ "Apache-2.0" ]
1
2022-03-22T19:37:45.000Z
2022-03-22T19:37:45.000Z
code/BERT/eval_mixup_model_OOD.py
StevenyzZhang/Guided-Adversarial-Augmentation
35602d20a969597bb1b1ddb4e98f65a53d4d21a9
[ "Apache-2.0" ]
1
2022-03-22T19:49:43.000Z
2022-03-22T19:50:10.000Z
code/BERT/eval_mixup_model_OOD.py
StevenyzZhang/Guided-Adversarial-Augmentation
35602d20a969597bb1b1ddb4e98f65a53d4d21a9
[ "Apache-2.0" ]
1
2022-03-22T19:40:57.000Z
2022-03-22T19:40:57.000Z
import argparse import glob import logging as log import os import random import time import torch.nn.functional as F import numpy as np import torch from eval_utils import f1_score, precision_score, recall_score, classification_report, macro_score from utils import gen_knn_mix_batch from torch.nn import CrossEntrop...
42.083655
285
0.606502
bb84956b71aa41972ca466de5b5e9a9b005df483
531
py
Python
algorithm/rating/main.py
kosyachniy/dev
39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4
[ "Apache-2.0" ]
13
2018-12-17T23:30:54.000Z
2021-12-29T14:31:43.000Z
algorithm/rating/main.py
kosyachniy/dev
39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4
[ "Apache-2.0" ]
36
2018-06-07T21:34:13.000Z
2022-03-13T21:01:43.000Z
algorithm/rating/main.py
kosyachniy/dev
39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4
[ "Apache-2.0" ]
2
2021-01-03T11:47:20.000Z
2021-12-29T14:31:49.000Z
a=list() with open('db.txt', 'r') as file: for i in file: a.append(i.strip()) b=input() interval=len(a) shift=0 while interval>=1: t=interval%2 interval//=2 i=interval+t print('1 - ', a[i+shift-1], ' | 2 - ', b) r=input() while r!='1' and r!='2': r=input() if r=='1': shift+=i else: if not t: inte...
17.7
44
0.559322
22d4e0e177fd7dc75d591fb0f81815eb6d7dbc3b
831
py
Python
server/protocols/volgactf.py
suiljex/DestructiveFarm
e10d786a927cce6965259bc201dce139976ecb03
[ "MIT" ]
159
2018-07-14T18:07:14.000Z
2022-03-08T15:47:49.000Z
server/protocols/volgactf.py
suiljex/DestructiveFarm
e10d786a927cce6965259bc201dce139976ecb03
[ "MIT" ]
18
2018-10-16T06:34:18.000Z
2022-03-17T13:18:26.000Z
server/protocols/volgactf.py
suiljex/DestructiveFarm
e10d786a927cce6965259bc201dce139976ecb03
[ "MIT" ]
65
2018-10-14T09:05:29.000Z
2022-03-05T17:44:24.000Z
from themis.finals.attack.helper import Helper from themis.finals.attack.result import Result from server.models import FlagStatus, SubmitResult RESPONSES = { FlagStatus.ACCEPTED: [Result.SUCCESS_FLAG_ACCEPTED], FlagStatus.REJECTED: [Result.ERROR_FLAG_EXPIRED, Result.ERROR_FLAG_YOURS, ...
30.777778
84
0.679904
d130432b7b712ba50b131cc44ffd84353997f159
10,879
py
Python
config/settings/base.py
giussepi/wsp-math-exam
b1c83029291635dc8387dc6692fb186ae302f5ee
[ "MIT" ]
null
null
null
config/settings/base.py
giussepi/wsp-math-exam
b1c83029291635dc8387dc6692fb186ae302f5ee
[ "MIT" ]
null
null
null
config/settings/base.py
giussepi/wsp-math-exam
b1c83029291635dc8387dc6692fb186ae302f5ee
[ "MIT" ]
null
null
null
""" Base settings to build other settings files upon. """ import environ ROOT_DIR = environ.Path(__file__) - 3 # (math_class_exams/config/settings/base.py - 3 = math_class_exams/) APPS_DIR = ROOT_DIR.path('math_class_exams') env = environ.Env() READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', default=False...
38.992832
107
0.638478
d7692a76c8adb07a78687134ea20b43472898d83
27,278
py
Python
vnpy/trader/utility.py
Jornpen/vnpy
5b46e1359d95adcda314f9f529a329925cbbb7d0
[ "MIT" ]
null
null
null
vnpy/trader/utility.py
Jornpen/vnpy
5b46e1359d95adcda314f9f529a329925cbbb7d0
[ "MIT" ]
null
null
null
vnpy/trader/utility.py
Jornpen/vnpy
5b46e1359d95adcda314f9f529a329925cbbb7d0
[ "MIT" ]
null
null
null
""" General utility functions. """ import json import logging import sys from pathlib import Path from typing import Callable, Dict, Tuple, Union, Optional from decimal import Decimal from math import floor, ceil import numpy as np import talib from .object import BarData, TickData from .constant import Exchange, In...
27.778004
104
0.546154
1ce849a74243e4388f803a6d34ee744b1b590e35
506
py
Python
infrapy/cli/run_assoc.py
LANL-Seismoacoustics/infrapy
132c1f5f9c074eca7300ab35d23109d8423a9912
[ "MIT" ]
23
2020-03-17T18:43:19.000Z
2022-03-22T17:47:14.000Z
infrapy/cli/run_assoc.py
LANL-Seismoacoustics/infrapy
132c1f5f9c074eca7300ab35d23109d8423a9912
[ "MIT" ]
10
2020-04-28T01:09:35.000Z
2022-02-28T06:06:20.000Z
infrapy/cli/run_assoc.py
LANL-Seismoacoustics/infrapy
132c1f5f9c074eca7300ab35d23109d8423a9912
[ "MIT" ]
2
2021-03-08T20:29:27.000Z
2021-03-28T18:03:39.000Z
#!/usr/bin/env python import sys from infrapy.database.taskbase.assoc import AssocInfraPy_LANL def run(config_file): pdetect = AssocInfraPy_LANL(config_file) pdetect.database_connecting() pdetect.data_processing() if __name__ == '__main__': try: config_file = sys.argv[1] except Excepti...
22
74
0.703557
9e895dbce951fb9e601825a8231650772b2f4357
1,450
py
Python
add_frac.py
HRA1173/homework1
befffeffa27ffa87031a94bb3348e229eeed9794
[ "Apache-2.0" ]
null
null
null
add_frac.py
HRA1173/homework1
befffeffa27ffa87031a94bb3348e229eeed9794
[ "Apache-2.0" ]
null
null
null
add_frac.py
HRA1173/homework1
befffeffa27ffa87031a94bb3348e229eeed9794
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jan 5 19:28:36 2020 @author: User """ """ Aufgabe3.1: Schreiben Sie eine Funktion add_frac, die zwei Brüche addieren kann. Dabei werden jeweils Zähler und Nenner als Input an die Funktion übergeben add_frac(Zaehler1,Nenner1,Zaehler2,Nenner2) und als Liste verwal...
39.189189
167
0.70069
26105935616a1ae4765be3247bf00a6e3f7d364d
8,980
py
Python
kaolin/transforms/meshfunc.py
Bob-Yeah/kaolin
7ad34f8158000499a30b8dfa14fb3ed86d2e57a6
[ "ECL-2.0", "Apache-2.0" ]
1
2020-07-21T16:02:47.000Z
2020-07-21T16:02:47.000Z
kaolin/transforms/meshfunc.py
Bob-Yeah/kaolin
7ad34f8158000499a30b8dfa14fb3ed86d2e57a6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kaolin/transforms/meshfunc.py
Bob-Yeah/kaolin
7ad34f8158000499a30b8dfa14fb3ed86d2e57a6
[ "ECL-2.0", "Apache-2.0" ]
2
2021-08-10T09:19:19.000Z
2021-11-12T08:18:17.000Z
# Copyright (c) 2019, 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 applic...
34.40613
85
0.606904
9634e3c2887e8eec83a793bad36f4c173832cb08
408
py
Python
string-transforms-into-another-string/string-transforms-into-another-string.py
QQuinn03/LeetHub
51ce21d721f0f524a07ed24266fb5fca473fcaa5
[ "MIT" ]
null
null
null
string-transforms-into-another-string/string-transforms-into-another-string.py
QQuinn03/LeetHub
51ce21d721f0f524a07ed24266fb5fca473fcaa5
[ "MIT" ]
null
null
null
string-transforms-into-another-string/string-transforms-into-another-string.py
QQuinn03/LeetHub
51ce21d721f0f524a07ed24266fb5fca473fcaa5
[ "MIT" ]
null
null
null
class Solution: def canConvert(self, str1: str, str2: str) -> bool: dic={} idx=0 while idx<len(str1): if str1[idx] not in dic: dic[str1[idx]]=str2[idx] if dic[str1[idx]]!= str2[idx]: print(dic[str1[idx]],str2[idx]) ...
31.384615
55
0.460784
9a5f65921654368be9c7791f6a1225258b41e8cf
25,169
py
Python
airflow/providers/google/cloud/hooks/vision.py
Hartorn/airflow
a79e2d4c4aa105f3fac5ae6a28e29af9cd572407
[ "Apache-2.0" ]
1
2020-07-17T20:06:33.000Z
2020-07-17T20:06:33.000Z
airflow/providers/google/cloud/hooks/vision.py
Hartorn/airflow
a79e2d4c4aa105f3fac5ae6a28e29af9cd572407
[ "Apache-2.0" ]
9
2021-03-01T21:20:13.000Z
2022-03-29T22:28:14.000Z
airflow/providers/google/cloud/hooks/vision.py
vuppalli/airflow
dfe8337ca2d3ed173d9ecc112938271519792c40
[ "Apache-2.0" ]
2
2020-03-08T14:12:55.000Z
2020-06-10T10:17:32.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...
37.509687
154
0.644881
e800386f478b3677b89454e5cd048391f765608b
43,853
py
Python
text/src/autogluon/text/automm/utils.py
canerturkmen/autogluon
f3e5d0f3f8d0156984dfd3f80fb6832a67875219
[ "Apache-2.0" ]
null
null
null
text/src/autogluon/text/automm/utils.py
canerturkmen/autogluon
f3e5d0f3f8d0156984dfd3f80fb6832a67875219
[ "Apache-2.0" ]
null
null
null
text/src/autogluon/text/automm/utils.py
canerturkmen/autogluon
f3e5d0f3f8d0156984dfd3f80fb6832a67875219
[ "Apache-2.0" ]
null
null
null
import pytz import datetime import os import functools import logging import pandas as pd import pickle import collections import copy import torch from torch import nn import warnings from contextlib import contextmanager from typing import Optional, List, Any, Dict, Tuple, Union from nptyping import NDArray from omeg...
35.594968
139
0.631405
fe57a71e81c7fa82099f8ce22ec0d5f651400e1c
388
py
Python
maro/cli/utils/params.py
KangFengjian/maro
2694a75731d5174ba5b33780670ba38d776d8c5a
[ "MIT" ]
1
2021-04-16T14:53:47.000Z
2021-04-16T14:53:47.000Z
maro/cli/utils/params.py
KangFengjian/maro
2694a75731d5174ba5b33780670ba38d776d8c5a
[ "MIT" ]
2
2020-12-15T09:13:43.000Z
2020-12-16T08:02:41.000Z
maro/cli/utils/params.py
KangFengjian/maro
2694a75731d5174ba5b33780670ba38d776d8c5a
[ "MIT" ]
1
2021-10-01T09:17:43.000Z
2021-10-01T09:17:43.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import logging class GlobalParams: PARALLELS = 5 LOG_LEVEL = logging.INFO class GlobalPaths: MARO_LIB = '~/.maro/lib' MARO_GRASS_LIB = '~/.maro/lib/grass' MARO_K8S_LIB = '~/.maro/lib/k8s' MARO_CLUSTERS = '~/.maro/clus...
19.4
40
0.654639
286d0a8a42c77cc4bbc98b014e78c2d26e36dbbe
1,142
py
Python
test/test_del_contact.py
Nish1975/python_training
55e9149aea2bb274b03c2aa828bfac5fd76b0ce6
[ "Apache-2.0" ]
null
null
null
test/test_del_contact.py
Nish1975/python_training
55e9149aea2bb274b03c2aa828bfac5fd76b0ce6
[ "Apache-2.0" ]
null
null
null
test/test_del_contact.py
Nish1975/python_training
55e9149aea2bb274b03c2aa828bfac5fd76b0ce6
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact import random import time def test_delete_some_contact(app,db,check_ui): if len(db.get_contact_list()) == 0: app.contact.create_contact( Contact(firstname="Kirill", middlename="A", lastname="Zimin", nickname="kira", title="Mr.", company="Gen...
42.296296
119
0.665499
9f03b318bff090a113ff1996fc7ca2f1a6803284
4,270
py
Python
scripts/dom_comparitor.py
twoodcock/pythonDOMComparitor
6ac152c6a23fbc4ff981b844c47cb621612a4ccc
[ "MIT" ]
1
2020-08-08T22:14:44.000Z
2020-08-08T22:14:44.000Z
scripts/dom_comparitor.py
pythonthings/pythonDOMComparitor
6ac152c6a23fbc4ff981b844c47cb621612a4ccc
[ "MIT" ]
null
null
null
scripts/dom_comparitor.py
pythonthings/pythonDOMComparitor
6ac152c6a23fbc4ff981b844c47cb621612a4ccc
[ "MIT" ]
1
2020-04-30T20:45:46.000Z
2020-04-30T20:45:46.000Z
#!env/bin/python3 import subprocess import argparse from htmldom import htmldom import difflib import urllib.parse import os # force latin1 encoding. class LatinHtmlDom(htmldom.HtmlDom): def getEncoding(self, response): return "iso-8859-1"; def MyURL(uri, path="", query=""): theURI = urllib.parse.quot...
27.548387
85
0.540749
bde8757229dab6e08551f5e82676f9fee9b8e466
586
py
Python
Driver.py
CamIHelpYou/BIC_CalendarSync
091b755fbbfa0503419084b715454465e78004aa
[ "MIT" ]
null
null
null
Driver.py
CamIHelpYou/BIC_CalendarSync
091b755fbbfa0503419084b715454465e78004aa
[ "MIT" ]
null
null
null
Driver.py
CamIHelpYou/BIC_CalendarSync
091b755fbbfa0503419084b715454465e78004aa
[ "MIT" ]
null
null
null
#!/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 ''' Created on Oct 17, 2018 @author: camli ''' from HTML import getDates from Parse import getEvents from Calendar import modifyCal import getpass def main(): user = input("User: ") password = getpass.getpass("Password: ") print("Gathering...
20.928571
75
0.686007
3fc00ee3ca6e18cc152881f71f5840646b01aa8b
1,079
py
Python
resources/lib/serial.py
DamonToumbourou/plugin.audio.serial
081189551dcf54ecf5a5a9dd8603e76423f44147
[ "MIT" ]
null
null
null
resources/lib/serial.py
DamonToumbourou/plugin.audio.serial
081189551dcf54ecf5a5a9dd8603e76423f44147
[ "MIT" ]
null
null
null
resources/lib/serial.py
DamonToumbourou/plugin.audio.serial
081189551dcf54ecf5a5a9dd8603e76423f44147
[ "MIT" ]
null
null
null
import requests import re import urllib2 from bs4 import BeautifulSoup as bs def get_soup(url): page = requests.get(url) soup = bs(page.text, 'html.parser') return soup def get_podcast_s1(url): soup = get_soup(url) content = soup.find_all('div', {'class': 'node node-episode node-promoted node-t...
20.75
127
0.545876
5a199f36d3768516e3c84db287169fca85186bad
179,415
py
Python
ryu/ofproto/ofproto_v1_4_parser.py
Rashminadig/SDN
9945f93156ca488bcad9b95c298d7ddc90873a87
[ "Apache-2.0" ]
null
null
null
ryu/ofproto/ofproto_v1_4_parser.py
Rashminadig/SDN
9945f93156ca488bcad9b95c298d7ddc90873a87
[ "Apache-2.0" ]
null
null
null
ryu/ofproto/ofproto_v1_4_parser.py
Rashminadig/SDN
9945f93156ca488bcad9b95c298d7ddc90873a87
[ "Apache-2.0" ]
1
2019-02-04T21:41:00.000Z
2019-02-04T21:41:00.000Z
# Copyright (C) 2012, 2013, 2014 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2012, 2013 Isaku Yamahata <yamahata at valinux co jp> # # 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...
36.296783
79
0.568498
b8d0ebf5afa5ac80f6d42e72c50180cf0816f36c
5,971
py
Python
tests/lastfm/commands/test_cmd_add.py
Starz0r/pytuber
5bb53edde6a39cedec48c4a8f41ba22db21d4727
[ "MIT" ]
8
2019-01-27T00:52:20.000Z
2021-07-15T15:57:19.000Z
tests/lastfm/commands/test_cmd_add.py
Starz0r/pytuber
5bb53edde6a39cedec48c4a8f41ba22db21d4727
[ "MIT" ]
22
2019-01-25T14:57:08.000Z
2021-12-13T19:55:04.000Z
tests/lastfm/commands/test_cmd_add.py
Starz0r/pytuber
5bb53edde6a39cedec48c4a8f41ba22db21d4727
[ "MIT" ]
4
2019-02-17T09:56:30.000Z
2021-04-17T17:53:13.000Z
from unittest import mock from pytuber import cli from pytuber.core.models import PlaylistManager, Provider from pytuber.lastfm.models import PlaylistType, UserPlaylistType from pytuber.lastfm.params import ( ArtistParamType, CountryParamType, TagParamType, UserParamType, ) from tests.utils import Comm...
35.331361
74
0.587674
fac20aba3508bc35ba4ef852e19adbaa0bf5d979
19,965
py
Python
lodbox/testy_mctestface.py
teessider/LODBox
702bb8309365146b0174e5fe044c683cf4f7679d
[ "MIT" ]
6
2019-11-06T15:52:45.000Z
2022-01-24T09:09:26.000Z
lodbox/testy_mctestface.py
teessider/LODBox
702bb8309365146b0174e5fe044c683cf4f7679d
[ "MIT" ]
null
null
null
lodbox/testy_mctestface.py
teessider/LODBox
702bb8309365146b0174e5fe044c683cf4f7679d
[ "MIT" ]
null
null
null
from __future__ import print_function, absolute_import import os import fbx import FbxCommon import lodbox.fbx_io import lodbox.scene file_paths = {'Attributes': "Sphere_Attr.fbx", 'lodGroup': "Sphere_lodGroup.fbx", 'lodGroup_Max': "Sphere_lodGroup_Max.FBX", 'Group_lods': "...
60.135542
173
0.607864
875032a11297392038a2e01daca95d99ac6f187c
1,738
py
Python
apps/utils/format/obj_format.py
zhoujun/sometitle
65438cd4cbc528251aefa0a020d93516ccb8ee21
[ "BSD-2-Clause" ]
null
null
null
apps/utils/format/obj_format.py
zhoujun/sometitle
65438cd4cbc528251aefa0a020d93516ccb8ee21
[ "BSD-2-Clause" ]
null
null
null
apps/utils/format/obj_format.py
zhoujun/sometitle
65438cd4cbc528251aefa0a020d93516ccb8ee21
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ obj_format.py ~~~~~~~~~~~~~~~~~~~ :author: Finger :license: BSD, see LICENSE for more details. """ import json import sys import regex as re from pymongo.cursor import Cursor def obj_id_to_str(data, fields=["_id"]): if isinstance(data, (list, Cursor)): _da...
23.808219
74
0.506329
787caa28b87ef6d4c0d8dd6a59cbaade0de8b6ff
762
py
Python
camera.py
mcnichol/chicky-cam
18a5cc6b7eaff6ff9a39ea55f0634124478f3bcc
[ "MIT" ]
null
null
null
camera.py
mcnichol/chicky-cam
18a5cc6b7eaff6ff9a39ea55f0634124478f3bcc
[ "MIT" ]
null
null
null
camera.py
mcnichol/chicky-cam
18a5cc6b7eaff6ff9a39ea55f0634124478f3bcc
[ "MIT" ]
null
null
null
#Modified by smartbuilds.io #Date: 27.09.20 #Desc: This scrtipt script.. import cv2 from imutils.video.pivideostream import PiVideoStream import imutils import time #import numpy as np class VideoCamera(object): def __init__(self, flip = False): print("Starting Stream...") self.vs = PiVideoStream...
23.090909
53
0.615486
498c313f00ec287f5347ee9daf504353d3c3e04a
46
py
Python
tests/__init__.py
trewjames/receipt-tracker
1f1768741f8599252f9bb153f111b245bdc995d4
[ "MIT" ]
null
null
null
tests/__init__.py
trewjames/receipt-tracker
1f1768741f8599252f9bb153f111b245bdc995d4
[ "MIT" ]
null
null
null
tests/__init__.py
trewjames/receipt-tracker
1f1768741f8599252f9bb153f111b245bdc995d4
[ "MIT" ]
null
null
null
"""Unit test package for receipt_tracker."""
23
45
0.717391
694ef8be13edab2bc4007422c56c2ce9c126a393
3,806
py
Python
moxing_metric.py
baobrian/deep-speaker
850f160375c4e9d1c95a73c722f8c068aa4bdb6e
[ "Apache-2.0" ]
null
null
null
moxing_metric.py
baobrian/deep-speaker
850f160375c4e9d1c95a73c722f8c068aa4bdb6e
[ "Apache-2.0" ]
null
null
null
moxing_metric.py
baobrian/deep-speaker
850f160375c4e9d1c95a73c722f8c068aa4bdb6e
[ "Apache-2.0" ]
null
null
null
import logging import os import shutil import time from argparse import ArgumentParser import random import numpy as np from audio_reader import AudioReader from constants import c from utils import InputsGenerator def arg_parse(): arg_p = ArgumentParser() arg_p.add_argument('--audio_dir', required=True) ...
37.313725
97
0.665791
36f9e24de357a03ead0250507ab5512baefcf46a
5,529
py
Python
python/oneflow/test/modules/test_clamp.py
LiPengze97/oneflow
1c1d2d3faa1c02d20e009046a290cf1095ee12e0
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_clamp.py
LiPengze97/oneflow
1c1d2d3faa1c02d20e009046a290cf1095ee12e0
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_clamp.py
LiPengze97/oneflow
1c1d2d3faa1c02d20e009046a290cf1095ee12e0
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
33.107784
84
0.660336
78ed39f180fe4843acc0fad555f445369065ef27
2,426
py
Python
OnlineCourseRegistration/users/urls.py
rusheel98/Online-Course-Registration
3cdb26be29ce7f409d6d1753d2b8c15fed27f43a
[ "MIT" ]
1
2020-09-28T13:08:30.000Z
2020-09-28T13:08:30.000Z
OnlineCourseRegistration/users/urls.py
rusheel98/Online-Course-Registration
3cdb26be29ce7f409d6d1753d2b8c15fed27f43a
[ "MIT" ]
null
null
null
OnlineCourseRegistration/users/urls.py
rusheel98/Online-Course-Registration
3cdb26be29ce7f409d6d1753d2b8c15fed27f43a
[ "MIT" ]
null
null
null
from django.urls import path,include from django.conf.urls import url from django.views.generic.base import TemplateView,RedirectView from . import views from .views import CourseListView,StudentCourseListView,RegCourseListView,Login,SignUp # app_name = 'users' urlpatterns = [ path('signup/', views.SignUp.as_view...
57.761905
114
0.760923
0eedcea6542b62281c1ba220383c46cc2735703f
5,515
py
Python
lib/pysot/datasets/video.py
Existever/PyCFTrackers
3221e47aecca40de21ad9be875b2f8d960b4e09c
[ "MIT" ]
231
2019-04-01T08:04:40.000Z
2020-02-19T10:16:12.000Z
lib/pysot/datasets/video.py
Existever/PyCFTrackers
3221e47aecca40de21ad9be875b2f8d960b4e09c
[ "MIT" ]
18
2020-04-17T03:52:02.000Z
2021-10-15T13:36:46.000Z
lib/pysot/datasets/video.py
Existever/PyCFTrackers
3221e47aecca40de21ad9be875b2f8d960b4e09c
[ "MIT" ]
63
2020-02-24T15:21:12.000Z
2022-03-26T21:44:40.000Z
import os import cv2 import re import numpy as np import json from glob import glob class Video(object): def __init__(self, name, root, video_dir, init_rect, img_names, gt_rect, attr, load_img=False): self.name = name self.video_dir = video_dir self.init_rect = init_rect ...
37.517007
113
0.513327
c6c84cdb015f3ac2e3d3c7cd1768a8d5dadfcbf6
441
py
Python
2187.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
1
2022-01-14T08:45:32.000Z
2022-01-14T08:45:32.000Z
2187.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
null
null
null
2187.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
null
null
null
notes = [50, 10, 5, 1] count = 1 while True: v = int(input()) if v == 0: break arr = [0]*4 while v != 0: for i in range(len(notes)): if v - notes[i] >= 0: v -= notes[i] arr[i] += 1 break print(f"Teste {count}") ...
23.210526
36
0.394558
845fdc488b7e5c84879a6469622600199eef4def
1,485
py
Python
setup.py
christopherahern/lifelines
9d7c13468111fc456a66f78a18cb3f7f9b6c9506
[ "MIT" ]
1
2020-03-07T07:39:07.000Z
2020-03-07T07:39:07.000Z
setup.py
zhaobeile/lifelines
a91113f06b983a8dce923c2cc2242d78b1da4600
[ "MIT" ]
null
null
null
setup.py
zhaobeile/lifelines
a91113f06b983a8dce923c2cc2242d78b1da4600
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os from setuptools import setup, find_packages def filepath(fname): return os.path.join(os.path.dirname(__file__), fname) exec(compile(open("lifelines/version.py").read(), "lifelines/version.py", "exec")) with open("README.md") as f: long_description = f.read() setup( n...
30.9375
112
0.628283
fea7819c2afa54d95b95d89e91c0f30347de3168
1,823
py
Python
app/handlers/users/mathematics/equations.py
vitaliy-ukiru/math-bot
72c116b4f5a4aa6a5f8eaae67ecbbf3df821f9e9
[ "MIT" ]
1
2021-12-11T07:41:38.000Z
2021-12-11T07:41:38.000Z
app/handlers/users/mathematics/equations.py
vitaliy-ukiru/math-bot
72c116b4f5a4aa6a5f8eaae67ecbbf3df821f9e9
[ "MIT" ]
8
2021-05-08T21:48:34.000Z
2022-01-20T15:42:00.000Z
app/handlers/users/mathematics/equations.py
vitaliy-ukiru/math-bot
72c116b4f5a4aa6a5f8eaae67ecbbf3df821f9e9
[ "MIT" ]
null
null
null
__all__ = ( 'SOLUTION_METHODS', ) from math import sqrt from app.utils.math import biquadratic_roots, view, view_sqrt def equation_solution(a: float, b: float, c: float) -> str: d = b ** 2 - 4 * a * c total_answer = f'<i>D = {b ** 2} - {view(4 * a * c)} = {d}</i>\n' if d < 0: total_answer +...
26.042857
72
0.410861
31d624c5e7a6090428de47478d8d536f2e085b77
2,168
py
Python
countries_field/bitfield/forms.py
egosko/django-countries-field
0710f6d148dfefd5c56767bc5203081e96b8dee4
[ "Unlicense" ]
3
2016-02-18T15:06:41.000Z
2019-12-25T15:34:28.000Z
countries_field/bitfield/forms.py
egosko/django-countries-field
0710f6d148dfefd5c56767bc5203081e96b8dee4
[ "Unlicense" ]
2
2016-02-19T07:54:56.000Z
2018-05-15T14:46:31.000Z
countries_field/bitfield/forms.py
egosko/django-countries-field
0710f6d148dfefd5c56767bc5203081e96b8dee4
[ "Unlicense" ]
8
2015-03-24T10:27:28.000Z
2020-11-30T09:56:19.000Z
from __future__ import absolute_import from django.utils.encoding import force_text from django.forms import CheckboxSelectMultiple, IntegerField, ValidationError from .types import BitHandler class BitFieldCheckboxSelectMultiple(CheckboxSelectMultiple): def render(self, name, value, attrs=None, choices=()): ...
34.412698
91
0.571033
dfe3d9cd8b242b0d8d82e2758d16b8b8516908f2
6,198
py
Python
samples/ThreadedReadProperty.py
ChristianTremblay/bacpypes
e6c5a805552ddbf9517e6bf43063b4ca20d7266f
[ "MIT" ]
1
2021-07-11T02:13:40.000Z
2021-07-11T02:13:40.000Z
samples/ThreadedReadProperty.py
ChristianTremblay/bacpypes
e6c5a805552ddbf9517e6bf43063b4ca20d7266f
[ "MIT" ]
null
null
null
samples/ThreadedReadProperty.py
ChristianTremblay/bacpypes
e6c5a805552ddbf9517e6bf43063b4ca20d7266f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Threaded Read Property This application has a static list of points that it would like to read. It starts a thread for each unique device address and reads the points for that device. """ from threading import Thread from bacpypes.debugging import bacpypes_debugging, ModuleLogger from bac...
29.235849
91
0.645531
2f39e331b4ca8607c537a0f0c0fc44f245ae6670
25,740
py
Python
Plugins/Utilities/Generate_Diffs.py
bvbohnen/X4_Customizer
6f865008690916a66a44c97331d9a2692baedb35
[ "MIT" ]
25
2018-12-10T12:52:11.000Z
2022-01-29T14:42:57.000Z
Plugins/Utilities/Generate_Diffs.py
bvbohnen/X4_Customizer
6f865008690916a66a44c97331d9a2692baedb35
[ "MIT" ]
4
2019-08-01T19:09:11.000Z
2022-01-02T01:47:42.000Z
Plugins/Utilities/Generate_Diffs.py
bvbohnen/X4_Customizer
6f865008690916a66a44c97331d9a2692baedb35
[ "MIT" ]
6
2019-02-16T08:39:04.000Z
2021-12-21T06:11:58.000Z
from pathlib import Path from itertools import zip_longest import difflib from Framework import Utility_Wrapper from Framework import Plugin_Log from Framework import Print from Framework.File_Manager import XML_File from Framework.File_Manager.Cat_Reader import Get_Hash_String from Framework.File_Manager.XML_Diff im...
39.29771
104
0.645532
2180d5d372ad5f67d84f358bbf342c6dac9754d2
33,187
py
Python
userbot/plugins/animation1.py
sakhiofsakshi/catuserbot
4703928a4b4184e3118ffae7f853f988117fa66f
[ "MIT" ]
9
2021-05-16T23:40:05.000Z
2022-03-26T02:08:17.000Z
userbot/plugins/animation1.py
RamshourieshR/catuserbot
b16b5a2531e89058b78ac01d979f01ffd30a37f7
[ "MIT" ]
null
null
null
userbot/plugins/animation1.py
RamshourieshR/catuserbot
b16b5a2531e89058b78ac01d979f01ffd30a37f7
[ "MIT" ]
47
2021-03-16T17:16:25.000Z
2022-03-29T12:59:36.000Z
from telethon import events import asyncio from userbot.utils import admin_cmd from userbot import ALIVE_NAME import random, re from userbot import CMD_HELP from collections import deque import importlib.util import random DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "cat" @borg.on(admin_cmd(pattern="stupid$")) as...
140.029536
4,035
0.124266
b337bc2eb1491f1ae84ef879fdbbf5707032fa14
12,977
py
Python
code/python/QuotesAPIforDigitalPortals/v3/fds/sdk/QuotesAPIforDigitalPortals/model/inline_response2006.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/QuotesAPIforDigitalPortals/v3/fds/sdk/QuotesAPIforDigitalPortals/model/inline_response2006.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/QuotesAPIforDigitalPortals/v3/fds/sdk/QuotesAPIforDigitalPortals/model/inline_response2006.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Quotes API For Digital Portals The quotes API combines endpoints for retrieving security end-of-day, delayed, and realtime prices with performance key figures and basic reference data on the security and market level. The API supports over 20 different price types for each quote and comes with basic searc...
48.421642
1,302
0.60245
b47d843a6300949080b59c927c7608e67db92759
2,259
py
Python
test/scons-time/obj/format-gnuplot.py
datalogics-staylor/scons
4c48deb6947066e53aac7d86621a7ec17f3b4034
[ "MIT" ]
3
2017-01-06T09:26:23.000Z
2017-03-04T04:13:20.000Z
test/scons-time/obj/format-gnuplot.py
datalogics-staylor/scons
4c48deb6947066e53aac7d86621a7ec17f3b4034
[ "MIT" ]
2
2015-10-27T20:17:24.000Z
2016-08-04T21:49:56.000Z
test/scons-time/obj/format-gnuplot.py
datalogics-staylor/scons
4c48deb6947066e53aac7d86621a7ec17f3b4034
[ "MIT" ]
4
2015-03-31T16:09:15.000Z
2021-08-04T12:41:47.000Z
#!/usr/bin/env python # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, ...
29.337662
73
0.732625
e1cf4c9a574a2e7a81cb735d9a220cc261fc6efc
682
py
Python
settings.py
tumluliu/tracks-rest-api
e70bf473c8cb94a2747c7eac649bf0e4208a1131
[ "MIT" ]
1
2019-08-04T01:08:14.000Z
2019-08-04T01:08:14.000Z
settings.py
tumluliu/tracks-rest-api
e70bf473c8cb94a2747c7eac649bf0e4208a1131
[ "MIT" ]
null
null
null
settings.py
tumluliu/tracks-rest-api
e70bf473c8cb94a2747c7eac649bf0e4208a1131
[ "MIT" ]
null
null
null
""" Read config.json file to construct the project-level settings object """ import json import logging logger = logging.getLogger(__name__) # TODO: Identify the config.json file in a good way CONFIG_FILE = "config.json" with (open(CONFIG_FILE, 'r')) as conf_file: conf = json.load(conf_file) logger.debug("Ge...
34.1
74
0.683284
1e46556d2608ebf16548a8cca36317b3febe8c43
12,514
py
Python
seg/lib/utils/flops/jit_handles.py
Frank-Abagnal/HRFormer
d7d362770de8648f8e0a379a71cee25f42954503
[ "MIT" ]
254
2021-08-13T10:05:22.000Z
2022-03-25T09:21:45.000Z
seg/lib/utils/flops/jit_handles.py
Sense-X/HRFormer
1245b88b5824fbd8cdb358b5ee909a4e537a2ef5
[ "MIT" ]
17
2021-09-08T01:40:49.000Z
2022-03-23T10:53:47.000Z
seg/lib/utils/flops/jit_handles.py
Sense-X/HRFormer
1245b88b5824fbd8cdb358b5ee909a4e537a2ef5
[ "MIT" ]
48
2021-08-13T14:06:58.000Z
2022-03-30T02:41:26.000Z
# taken from detectron2 / fvcore with a few modifications # https://github.com/facebookresearch/detectron2/blob/master/detectron2/utils/analysis.py # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import typing from collections import Counter, OrderedDict import numpy as np from numpy import prod...
36.063401
117
0.634649
92c543fac364705107a3b02720aeb18a6fd6062d
26,894
py
Python
hyperopt_wgan.py
lliutianc/gan-flow
00922d76a3a78ffbd882bc2eaef46c84d7d34fef
[ "MIT" ]
13
2020-06-19T22:11:20.000Z
2021-11-03T10:07:26.000Z
hyperopt_wgan.py
lliutianc/gan-flow
00922d76a3a78ffbd882bc2eaef46c84d7d34fef
[ "MIT" ]
1
2021-11-03T10:09:02.000Z
2021-11-04T01:41:52.000Z
hyperopt_wgan.py
lliutianc/gan-flow
00922d76a3a78ffbd882bc2eaef46c84d7d34fef
[ "MIT" ]
null
null
null
import os import sys import argparse from functools import partial import time import matplotlib.pyplot as plt # import seaborn.apionly as sns import seaborn as sns import torch.nn as nn import torch.nn.utils.spectral_norm as spectral_norm from torch import autograd from torch.autograd import Variable import ray.tun...
34.259873
132
0.548821
bb35520069f248479e887d2a0c54108e9e121d80
1,090
py
Python
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/euc_jis_2004.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/euc_jis_2004.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
30
2019-01-04T10:14:56.000Z
2020-10-12T14:00:31.000Z
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/euc_jis_2004.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
# # euc_jis_2004.py: Python Unicode Codec for EUC_JIS_2004 # # Written by Hye-Shik Chang <perky@FreeBSD.org> # import _codecs_jp, codecs import _multibytecodec as mbc codec = _codecs_jp.getcodec('euc_jis_2004') class Codec(codecs.Codec): encode = codec.encode decode = codec.decode class Incre...
27.25
75
0.686239
8f71601bd22eaa229058ccf4fc955e17ae14aa28
7,772
py
Python
pcapkit/const/ipv4/router_alert.py
chellvs/PyPCAPKit
f8d66f9955904196b71a6143e49ff4ec4c4922dc
[ "BSD-3-Clause" ]
131
2018-10-12T09:45:44.000Z
2022-03-31T18:58:14.000Z
pcapkit/const/ipv4/router_alert.py
chellvs/PyPCAPKit
f8d66f9955904196b71a6143e49ff4ec4c4922dc
[ "BSD-3-Clause" ]
39
2018-08-18T12:15:04.000Z
2022-03-07T20:28:08.000Z
pcapkit/const/ipv4/router_alert.py
chellvs/PyPCAPKit
f8d66f9955904196b71a6143e49ff4ec4c4922dc
[ "BSD-3-Clause" ]
23
2018-10-12T09:45:52.000Z
2022-03-05T15:23:00.000Z
# -*- coding: utf-8 -*- # pylint: disable=line-too-long """IPv4 Router Alert Option Values""" from aenum import IntEnum, extend_enum __all__ = ['RouterAlert'] class RouterAlert(IntEnum): """[RouterAlert] IPv4 Router Alert Option Values""" #: Aggregated Reservation Nesting Level [:rfc:`3175`] Aggregated...
33.213675
79
0.701107
2672de8e7d463742dbd062a3b586f07c10031ecc
12,612
py
Python
tests/json_rpc_tests/rpc_test_framework.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
33
2019-05-27T13:04:35.000Z
2022-03-17T13:33:05.000Z
tests/json_rpc_tests/rpc_test_framework.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
31
2019-06-10T01:55:47.000Z
2022-03-09T07:27:49.000Z
tests/json_rpc_tests/rpc_test_framework.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
25
2019-05-13T18:39:24.000Z
2021-11-16T03:07:33.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
49.07393
202
0.650571
724ba40e951370a4d28d95bbafcbd8a270f8ca3b
168
py
Python
powernad/Object/StatReport/RequestObject/CreateStatReportObject.py
devkingsejong/python---PowerNad
c308bba4cb31126ccd318e4574071f4057f5d23f
[ "CNRI-Python" ]
34
2017-03-16T14:32:49.000Z
2022-03-18T09:23:05.000Z
powernad/Object/StatReport/RequestObject/CreateStatReportObject.py
devkingsejong/python---PowerNad
c308bba4cb31126ccd318e4574071f4057f5d23f
[ "CNRI-Python" ]
16
2018-02-08T02:37:56.000Z
2022-03-15T13:45:34.000Z
powernad/Object/StatReport/RequestObject/CreateStatReportObject.py
devkingsejong/python---PowerNad
c308bba4cb31126ccd318e4574071f4057f5d23f
[ "CNRI-Python" ]
19
2017-03-28T21:48:18.000Z
2021-11-30T05:13:43.000Z
class CreateStatReportObject: def __init__(self, reportTp, statDt): self.reportTp = reportTp self.statDt = statDt #self.customerId = 1109868
33.6
41
0.672619
123c6e757a258fa380ac64e450c24064b2bfa83f
3,371
py
Python
image/simclr/train_simclr.py
huxin711/ColossalAI-Examples
fa3560683dec891315d5356e76c10ff20e41266f
[ "Apache-2.0" ]
null
null
null
image/simclr/train_simclr.py
huxin711/ColossalAI-Examples
fa3560683dec891315d5356e76c10ff20e41266f
[ "Apache-2.0" ]
null
null
null
image/simclr/train_simclr.py
huxin711/ColossalAI-Examples
fa3560683dec891315d5356e76c10ff20e41266f
[ "Apache-2.0" ]
null
null
null
import colossalai from colossalai.core import global_context as gpc from colossalai.logging import get_dist_logger from colossalai.trainer import Trainer, hooks from colossalai.utils import get_dataloader, MultiTimer from colossalai.nn.lr_scheduler import CosineAnnealingWarmupLR from colossalai.engine.schedule import N...
29.831858
106
0.68051
fd4263c962ca32cfe70ddfad457532b60f8ae69b
38,969
py
Python
cloudify_cli/commands/plugins.py
tirkarthi/cloudify-cli
68365052649a6deea9896cccb05e66d0a6d737cb
[ "Apache-2.0" ]
null
null
null
cloudify_cli/commands/plugins.py
tirkarthi/cloudify-cli
68365052649a6deea9896cccb05e66d0a6d737cb
[ "Apache-2.0" ]
null
null
null
cloudify_cli/commands/plugins.py
tirkarthi/cloudify-cli
68365052649a6deea9896cccb05e66d0a6d737cb
[ "Apache-2.0" ]
null
null
null
######## # Copyright (c) 2018 Cloudify Platform Ltd. 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 requi...
38.204902
79
0.628166
31039fa08aa678dad3107b6ac0f8834aa2a63607
1,477
py
Python
lib/dataset/iNaturalist.py
zhangyongshun/BagofTricks-LT
aec4d9a552236c32231374b7b00fa5bf4208dae3
[ "MIT" ]
115
2020-12-27T06:32:11.000Z
2022-03-31T13:27:16.000Z
lib/dataset/iNaturalist.py
mymuli/BagofTricks-LT
46e1ca38f1ff3efb15fe25d50754d56f911c2ff1
[ "MIT" ]
9
2021-01-06T12:53:21.000Z
2022-01-31T04:39:32.000Z
lib/dataset/iNaturalist.py
mymuli/BagofTricks-LT
46e1ca38f1ff3efb15fe25d50754d56f911c2ff1
[ "MIT" ]
21
2021-01-14T14:52:18.000Z
2022-03-23T13:26:49.000Z
from dataset.baseset import BaseSet import random, cv2 import numpy as np class iNaturalist(BaseSet): def __init__(self, mode='train', cfg=None, transform=None): super(iNaturalist, self).__init__(mode, cfg, transform) random.seed(0) self.class_dict = self._get_class_dict() ...
34.348837
105
0.616791
18b600010b16ef8995e9c69b5675903c264d76a9
71,753
py
Python
simulator/sim.py
predict-drone/drone-control
e406f117e62a6b4533b587aecefadb895deb88c8
[ "BSD-2-Clause" ]
227
2021-01-20T05:34:32.000Z
2022-03-29T12:43:05.000Z
machine_learning/CoppeliaSim_gym_reinforcement_learning/simple demos/VREP_RemoteAPIs/sim.py
passYYYY/guyueclass
2054ccec2f5e6c002727a5561b494a1046484504
[ "Apache-2.0" ]
5
2021-10-07T18:46:58.000Z
2021-10-07T19:44:41.000Z
machine_learning/CoppeliaSim_gym_reinforcement_learning/simple demos/VREP_RemoteAPIs/sim.py
passYYYY/guyueclass
2054ccec2f5e6c002727a5561b494a1046484504
[ "Apache-2.0" ]
239
2021-01-28T02:59:53.000Z
2022-03-29T08:02:17.000Z
import platform import struct import sys import os import ctypes as ct from simConst import * #load library libsimx = None try: file_extension = '.so' if platform.system() =='cli': file_extension = '.dll' elif platform.system() =='Windows': file_extension = '.dll' elif pl...
48.027443
539
0.693156
c18a5df9f8cd5e6279144e34bfc82e143f349f98
3,750
py
Python
LUCI/LuciVisualize.py
lyalcorn/LUCI
ed9dde4286ca80694f53a3a50e1da2073a92ff76
[ "MIT" ]
null
null
null
LUCI/LuciVisualize.py
lyalcorn/LUCI
ed9dde4286ca80694f53a3a50e1da2073a92ff76
[ "MIT" ]
null
null
null
LUCI/LuciVisualize.py
lyalcorn/LUCI
ed9dde4286ca80694f53a3a50e1da2073a92ff76
[ "MIT" ]
null
null
null
""" Luci visualization tools """ import matplotlib.pyplot as plt import numpy as np from matplotlib.widgets import RectangleSelector, Slider import seaborn as sns def visualize(deep_image, spectrum_axis, cube_final): """ Function that allows you to visualize the deep frame, click on a pixel, and then see...
39.473684
134
0.586133
76180365eb73d57f4ac271df111bc64be75e06c9
330
py
Python
datapyle/sqlaimports.py
quidditymaster/datapyle
c5f311353a507aafc7947f2657ebc0ee95a53d72
[ "MIT" ]
null
null
null
datapyle/sqlaimports.py
quidditymaster/datapyle
c5f311353a507aafc7947f2657ebc0ee95a53d72
[ "MIT" ]
null
null
null
datapyle/sqlaimports.py
quidditymaster/datapyle
c5f311353a507aafc7947f2657ebc0ee95a53d72
[ "MIT" ]
null
null
null
import sqlalchemy as sa from sqlalchemy import ForeignKey from sqlalchemy import Column, Date, Integer, String, Float, DateTime from sqlalchemy import PickleType, Boolean from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.ext.declarative import declared_attr from sqlalchemy.orm import relationship,...
36.666667
69
0.854545
18ae1b0a6a8ee84702f427665d6f306fc185fbf0
894
py
Python
tests/test_env_config.py
gosuto-ai/badger-rewards
45a7cefce2035bc385bebf5f103780c7ff614304
[ "MIT" ]
3
2022-01-05T20:33:35.000Z
2022-02-09T16:07:30.000Z
tests/test_env_config.py
gosuto-ai/badger-rewards
45a7cefce2035bc385bebf5f103780c7ff614304
[ "MIT" ]
341
2021-08-04T13:01:21.000Z
2022-03-31T19:46:30.000Z
tests/test_env_config.py
gosuto-ai/badger-rewards
45a7cefce2035bc385bebf5f103780c7ff614304
[ "MIT" ]
3
2021-09-07T12:54:27.000Z
2021-12-22T13:27:23.000Z
import logging import os import pytest os.environ["KUBE"] = "False" os.environ["AWS_ACCESS_KEY_ID"] = "" os.environ["AWS_SECRET_ACCESS_KEY"] = "" from config.env_config import EnvConfig from helpers.enums import Environment logger = logging.getLogger("test-env-config") def test_valid_environment(): if "ENV" i...
24.833333
74
0.668904
80d8c25f8ed1d3c22b6d0b712f39f1bd187eee7a
312
py
Python
cross_circle_gym/envs/__init__.py
Ferch42/PyDSRL
bd9ea3e739c837db0db5052f7db23476fa21c472
[ "MIT" ]
null
null
null
cross_circle_gym/envs/__init__.py
Ferch42/PyDSRL
bd9ea3e739c837db0db5052f7db23476fa21c472
[ "MIT" ]
null
null
null
cross_circle_gym/envs/__init__.py
Ferch42/PyDSRL
bd9ea3e739c837db0db5052f7db23476fa21c472
[ "MIT" ]
null
null
null
from cross_circle_gym.envs.cross_circle_neg_grid import CrossCircleNegGrid from cross_circle_gym.envs.cross_circle_mixed_grid import CrossCircleMixedGrid from cross_circle_gym.envs.cross_circle_neg_rand import CrossCircleNegRand from cross_circle_gym.envs.cross_circle_mixed_rand import CrossCircleMixedRand
62.4
79
0.910256
ee1da9100b470a72b7d9dce8b74c82a4f4ee5ce8
711
py
Python
bw2io/errors.py
mfastudillo/brightway2-io
dc383ddb6003a46e78259aeb7f87b9d80965d689
[ "BSD-3-Clause" ]
null
null
null
bw2io/errors.py
mfastudillo/brightway2-io
dc383ddb6003a46e78259aeb7f87b9d80965d689
[ "BSD-3-Clause" ]
null
null
null
bw2io/errors.py
mfastudillo/brightway2-io
dc383ddb6003a46e78259aeb7f87b9d80965d689
[ "BSD-3-Clause" ]
null
null
null
class InvalidPackage(Exception): """bw2package data doesn't validate""" pass class UnsafeData(Exception): """bw2package data comes from a class that isn't recognized by Brightway2""" pass class UnsupportedExchange(Exception): """This exchange uncertainty type can't be rescaled automatically"""...
17.341463
80
0.706048
614d10aa70c9104be1792b8082a8ed0b81f4a352
5,561
py
Python
Genetic Algorithm /Genetic Algorithm.py
TonyHinjos/Machine-Learning-Algorithms-Toolkit
7f322e148ee5b9908e6ea02f7692838ec08501d3
[ "MIT" ]
1
2015-11-05T23:57:57.000Z
2015-11-05T23:57:57.000Z
Genetic Algorithm Final/Genetic Algorithm.py
urandu/machine-learning-assignments
6c6f727a4b2dd00a1ac3ee755bcf36390781d2b6
[ "Apache-2.0" ]
null
null
null
Genetic Algorithm Final/Genetic Algorithm.py
urandu/machine-learning-assignments
6c6f727a4b2dd00a1ac3ee755bcf36390781d2b6
[ "Apache-2.0" ]
null
null
null
__author__ = 'steve_w' import random class GeneticAlgorithm(object): def __init__(self, genetics): self.genetics = genetics pass def run(self): population = self.genetics.initial() while True: fits_pops = [(self.genetics.fitness(ch), ch) for ch in population] ...
31.95977
79
0.560691
4c96d1e0c3b9271ce553a43e30941adc7ce3a747
4,982
py
Python
examples/converters.py
AryamanSrii/PyDiscord
3366d20e2725672ae7e6b29335119cac1aee76f9
[ "MIT" ]
null
null
null
examples/converters.py
AryamanSrii/PyDiscord
3366d20e2725672ae7e6b29335119cac1aee76f9
[ "MIT" ]
null
null
null
examples/converters.py
AryamanSrii/PyDiscord
3366d20e2725672ae7e6b29335119cac1aee76f9
[ "MIT" ]
null
null
null
# This example requires the 'members' privileged intent to use the Member converter. import typing import pydiscord from pydiscord.ext import commands intents = pydiscord.Intents.default() intents.members = True bot = commands.Bot('!', intents=intents) @bot.command() async def userinfo(ctx: commands.Context, user...
42.220339
105
0.704135
37e05e28cad9d9ba1e0daa400251e30890c9b5e0
17,324
py
Python
twitter/models.py
jakeshi/python-twitter
243e7185c68117f71d27f36b08bbbb36cb3ce0da
[ "Apache-2.0" ]
null
null
null
twitter/models.py
jakeshi/python-twitter
243e7185c68117f71d27f36b08bbbb36cb3ce0da
[ "Apache-2.0" ]
null
null
null
twitter/models.py
jakeshi/python-twitter
243e7185c68117f71d27f36b08bbbb36cb3ce0da
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from calendar import timegm try: from rfc822 import parsedate except ImportError: from email.utils import parsedate class TwitterModel(object): """ Base class from which all twitter models will inherit. """ def __init__(se...
32.810606
100
0.540349
04b81299c29bbb22d42d79eef7153224cf5da3ae
1,063
py
Python
cvxpy/expressions/constants/callback_param.py
jasondark/cvxpy
56aaa01b0e9d98ae5a91a923708129a7b37a6f18
[ "ECL-2.0", "Apache-2.0" ]
7
2015-06-03T01:33:46.000Z
2021-11-15T01:48:49.000Z
cvxpy/expressions/constants/callback_param.py
h-vetinari/cvxpy
86307f271819bb78fcdf64a9c3a424773e8269fa
[ "ECL-2.0", "Apache-2.0" ]
1
2020-10-22T07:46:38.000Z
2020-10-22T07:46:38.000Z
cvxpy/expressions/constants/callback_param.py
h-vetinari/cvxpy
86307f271819bb78fcdf64a9c3a424773e8269fa
[ "ECL-2.0", "Apache-2.0" ]
2
2020-10-22T01:35:58.000Z
2022-01-19T10:48:51.000Z
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
30.371429
72
0.725306
ba70d7253458c1d5b83d8fb22e5155503553cb3f
23,014
py
Python
src/MOSIM/mmi/services/MPostureBlendingService.py
dfki-asr/MMIPython-Core
2f4b51ffde606c45661d9dbd5153576f919bdb8b
[ "MIT" ]
null
null
null
src/MOSIM/mmi/services/MPostureBlendingService.py
dfki-asr/MMIPython-Core
2f4b51ffde606c45661d9dbd5153576f919bdb8b
[ "MIT" ]
null
null
null
src/MOSIM/mmi/services/MPostureBlendingService.py
dfki-asr/MMIPython-Core
2f4b51ffde606c45661d9dbd5153576f919bdb8b
[ "MIT" ]
null
null
null
# # Autogenerated by Thrift Compiler (0.13.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive impo...
37.482085
134
0.586295
3dc2ee1285d661dd93e5989264d671b0c4a9f35f
255
py
Python
src/rastervision/ml_tasks/utils.py
nholeman/raster-vision
f3e1e26c555feed6fa018183c3fa04d7858d91bd
[ "Apache-2.0" ]
null
null
null
src/rastervision/ml_tasks/utils.py
nholeman/raster-vision
f3e1e26c555feed6fa018183c3fa04d7858d91bd
[ "Apache-2.0" ]
null
null
null
src/rastervision/ml_tasks/utils.py
nholeman/raster-vision
f3e1e26c555feed6fa018183c3fa04d7858d91bd
[ "Apache-2.0" ]
null
null
null
def is_window_inside_aoi(window, aoi_polygons): if not aoi_polygons: return True window_shapely = window.get_shapely() for polygon in aoi_polygons: if window_shapely.within(polygon): return True return False
21.25
47
0.678431
3ac013d649f723ed9218d806eb3d3c5ebf513811
1,772
py
Python
python/tvm/exec/rpc_tracker.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
python/tvm/exec/rpc_tracker.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
python/tvm/exec/rpc_tracker.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
# pylint: disable=redefined-outer-name, invalid-name """Tool to start RPC tracker""" from __future__ import absolute_import import logging import argparse import multiprocessing import sys from ..rpc.tracker import Tracker def main(args): """Main funciton""" tracker = Tracker(args.host, port=args.port, port_...
36.916667
91
0.602709
4875e923df4f8593693bf8abdfc480c55169a82f
2,467
py
Python
umamaheswar/bin/explode.py
oyearunpal/NagarGatPat
c9c0f29af47cef134b0b158cb4df503ce3417f0a
[ "MIT" ]
null
null
null
umamaheswar/bin/explode.py
oyearunpal/NagarGatPat
c9c0f29af47cef134b0b158cb4df503ce3417f0a
[ "MIT" ]
null
null
null
umamaheswar/bin/explode.py
oyearunpal/NagarGatPat
c9c0f29af47cef134b0b158cb4df503ce3417f0a
[ "MIT" ]
null
null
null
#!/home/arun/umamaheswar/umamaheswar/bin/python # # The Python Imaging Library # $Id$ # # split an animation into a number of frame files # from __future__ import print_function from PIL import Image import os import sys class Interval(object): def __init__(self, interval="0"): self.setinterval(interv...
21.831858
75
0.539522
be714622fdfce8043719c8c1e9f2deeebc61f216
126
py
Python
files/database-rename.py
opus-codium/puppet-odoo
319cd1360a568e8272743ca67897fecc88147677
[ "Apache-2.0" ]
null
null
null
files/database-rename.py
opus-codium/puppet-odoo
319cd1360a568e8272743ca67897fecc88147677
[ "Apache-2.0" ]
9
2020-06-29T16:02:34.000Z
2021-12-02T17:46:58.000Z
files/database-rename.py
opus-codium/puppet-odoo
319cd1360a568e8272743ca67897fecc88147677
[ "Apache-2.0" ]
null
null
null
import os odoo.tools.config['list_db'] = True odoo.service.db.exp_rename(os.environ['PT_oldname'], os.environ['PT_newname'])
25.2
78
0.753968
cd0bf489fd9fd6000bad400bb93384ac6ad7ed04
609
py
Python
courses/urls.py
Terahpatrick/Django-Course-Articles-Class-Based-view
79aa277fd2e8e01017c49f891a59313fb3799f4c
[ "MIT" ]
1
2019-10-09T12:11:39.000Z
2019-10-09T12:11:39.000Z
courses/urls.py
Terahpatrick/Django-Course-Articles-Class-Based-view
79aa277fd2e8e01017c49f891a59313fb3799f4c
[ "MIT" ]
null
null
null
courses/urls.py
Terahpatrick/Django-Course-Articles-Class-Based-view
79aa277fd2e8e01017c49f891a59313fb3799f4c
[ "MIT" ]
null
null
null
from django.urls import path # from .views import course_list_view from .views import ( CourseListView, CourseDetailView, CourseCreateView, CourseDeleteView, CourseUpdateView ) app_name = 'courses' urlpatterns = [ path('', CourseListView.as_view(), name = "course_list"), path('<int:id>/', C...
33.833333
81
0.694581
7012a9822ba66be45291895f80070eabb8640797
1,273
py
Python
scenarios/dualist_gps/plots/plot_all.py
domingoesteban/robolearn
0d20125425c352b80ef2eeed1c0b11ab6497b11a
[ "BSD-3-Clause" ]
1
2020-01-13T09:44:22.000Z
2020-01-13T09:44:22.000Z
scenarios/dualist_gps/plots/plot_all.py
domingoesteban/robolearn
0d20125425c352b80ef2eeed1c0b11ab6497b11a
[ "BSD-3-Clause" ]
null
null
null
scenarios/dualist_gps/plots/plot_all.py
domingoesteban/robolearn
0d20125425c352b80ef2eeed1c0b11ab6497b11a
[ "BSD-3-Clause" ]
1
2021-12-22T00:41:20.000Z
2021-12-22T00:41:20.000Z
import os from robolearn.old_utils.plots.policy_cost import plot_policy_cost from robolearn.old_utils.plots.specific_cost import plot_specific_cost from robolearn.old_utils.plots.duals import plot_duals method = 'gps' # 'gps' or 'trajopt' gps_directory_names = ['reacher_log']#, 'reacher_log2', 'reacher_log3'] gps_mod...
39.78125
76
0.732914
2c23c4c812db17fd205fab1d8180ea575145ad6b
1,350
py
Python
slurk/models/log.py
TimDiekmann/slurk
6b597c9b75978ce4d191934b9e94185dd6fcb871
[ "BSD-3-Clause" ]
null
null
null
slurk/models/log.py
TimDiekmann/slurk
6b597c9b75978ce4d191934b9e94185dd6fcb871
[ "BSD-3-Clause" ]
null
null
null
slurk/models/log.py
TimDiekmann/slurk
6b597c9b75978ce4d191934b9e94185dd6fcb871
[ "BSD-3-Clause" ]
null
null
null
from sqlalchemy import String, Integer, ForeignKey, JSON, Column from sqlalchemy.orm import relationship from .common import Common class Log(Common): __tablename__ = "Log" event = Column(String, nullable=False) user_id = Column(Integer, ForeignKey("User.id", ondelete="CASCADE")) room_id = Column(In...
34.615385
82
0.643704
e89ca8043ca046e29a9e38f5900a400b330e7da1
185
py
Python
Coloring/setup.py
zarahz/MARL-and-Markets
3591a160e098e7251b9e7c7b59c6d0ab08ba0779
[ "MIT" ]
1
2022-03-12T09:17:32.000Z
2022-03-12T09:17:32.000Z
Coloring/setup.py
zarahz/MARL-and-Markets
3591a160e098e7251b9e7c7b59c6d0ab08ba0779
[ "MIT" ]
null
null
null
Coloring/setup.py
zarahz/MARL-and-Markets
3591a160e098e7251b9e7c7b59c6d0ab08ba0779
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='coloring', version='0.0.1', # for visualization also install matplotlib # install_requires=['gym', 'numpy', 'torch'] )
23.125
50
0.637838
1d850243b46adee5d5a29a03f7cc1016f77c4760
2,416
py
Python
supervised_learning/test_attention.py
gonzalezJohnas/SpeechCommand-recognition
d5351abe45c571a075c24bd04d328e76293f9230
[ "MIT" ]
null
null
null
supervised_learning/test_attention.py
gonzalezJohnas/SpeechCommand-recognition
d5351abe45c571a075c24bd04d328e76293f9230
[ "MIT" ]
2
2021-04-10T18:12:44.000Z
2022-02-09T23:36:43.000Z
supervised_learning/test_attention.py
gonzalezJohnas/SpeechCommand-recognition
d5351abe45c571a075c24bd04d328e76293f9230
[ "MIT" ]
null
null
null
import argparse # Data Loading from tensorflow.python.keras import Model from tensorflow.keras.backend import squeeze from global_utils import read_sample import numpy as np import matplotlib.pyplot as plt from supervised_learning.config import * import random from scipy import signal import scipy.io.wavfile as wavf...
24.653061
74
0.643626
d0c9b64aacea4727ad7c9ec35e7c35aea3b78518
2,409
py
Python
src/transformers/utils/dummy_sentencepiece_objects.py
suliuzh/transformers
f34372a9ff99f6bc8619ac83dc07f7afe6b92141
[ "Apache-2.0" ]
96
2021-06-16T09:06:52.000Z
2022-03-26T09:56:32.000Z
src/transformers/utils/dummy_sentencepiece_objects.py
suliuzh/transformers
f34372a9ff99f6bc8619ac83dc07f7afe6b92141
[ "Apache-2.0" ]
16
2021-07-01T05:34:48.000Z
2022-03-28T09:40:15.000Z
src/transformers/utils/dummy_sentencepiece_objects.py
suliuzh/transformers
f34372a9ff99f6bc8619ac83dc07f7afe6b92141
[ "Apache-2.0" ]
24
2021-06-19T15:58:31.000Z
2022-03-14T09:17:19.000Z
# This file is autogenerated by the command `make fix-copies`, do not edit. from ..file_utils import requires_sentencepiece class AlbertTokenizer: def __init__(self, *args, **kwargs): requires_sentencepiece(self) @classmethod def from_pretrained(self, *args, **kwargs): requires_sentencepi...
23.617647
75
0.688252
f59f42fe47d5da2e4c3a5e15f275bfe093945c6e
5,634
py
Python
mbbl_envs/mbbl/util/kfac/estimator.py
hbutsuak95/iv_rl
0f72a8f077a238237027ea96b7d1160c35ac9959
[ "MIT" ]
9
2022-01-16T11:27:00.000Z
2022-03-13T14:04:48.000Z
mbbl_envs/mbbl/util/kfac/estimator.py
hbutsuak95/iv_rl
0f72a8f077a238237027ea96b7d1160c35ac9959
[ "MIT" ]
null
null
null
mbbl_envs/mbbl/util/kfac/estimator.py
hbutsuak95/iv_rl
0f72a8f077a238237027ea96b7d1160c35ac9959
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import contextlib import itertools from tensorflow.python.framework import ops as tf_ops from tensorflow.python.ops import control_flow_ops from tensorflow.python.ops import gradients_impl from tensorflow.pyth...
36.823529
100
0.663294