hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
794d8b5ba2a66727da52af091bb2853a1eb0adfc
13,483
py
Python
__main__.py
Lukasdotcom/youtubeMusic
96a669e9e1c74d7c5a8351cea4043866fad6b8fa
[ "MIT" ]
null
null
null
__main__.py
Lukasdotcom/youtubeMusic
96a669e9e1c74d7c5a8351cea4043866fad6b8fa
[ "MIT" ]
2
2021-05-27T12:14:29.000Z
2021-08-06T14:02:40.000Z
__main__.py
Lukasdotcom/youtubeMusic
96a669e9e1c74d7c5a8351cea4043866fad6b8fa
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 from pytube import YouTube, Playlist import sys import os import json import glob import vlc import random import time from mutagen.mp4 import MP4 print("youtubeMusic downloader is starting! This program can be used to download your music playlist from youtube for free in a fast and easy way!") ...
37.041209
181
0.579174
794d8b7e819dc62853bd14aa423695613c6d139b
5,153
py
Python
tests/prettyexc_test.py
youknowone/prettyexc
03894a86c72d3196c3326a5a8bce2a961c87f60d
[ "BSD-2-Clause-FreeBSD" ]
6
2015-10-28T13:40:50.000Z
2020-03-24T06:05:30.000Z
tests/prettyexc_test.py
youknowone/prettyexc
03894a86c72d3196c3326a5a8bce2a961c87f60d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/prettyexc_test.py
youknowone/prettyexc
03894a86c72d3196c3326a5a8bce2a961c87f60d
[ "BSD-2-Clause-FreeBSD" ]
2
2015-08-31T16:32:00.000Z
2017-05-31T08:32:42.000Z
from prettyexc import PrettyException, Environment from prettyexc import patch from prettyexc.environment import default_python_environment, human_environment from prettyexc.exceptions import InvalidArgumentCount, InvalidArgumentKeyword def test_default(): e = PrettyException() assert(e) assert(str(e) ==...
28.469613
98
0.63594
794d8cc7adc1a5e8c894742b28819d6fa4a6298f
5,784
py
Python
eoflow/models/pse_tae_layers.py
JDESLOIRES/eo-flow
def495e9292809656b906cfd6b8e7389ff9cea61
[ "MIT" ]
80
2019-09-11T08:53:03.000Z
2022-03-29T05:32:02.000Z
eoflow/models/pse_tae_layers.py
JDESLOIRES/eo-flow
def495e9292809656b906cfd6b8e7389ff9cea61
[ "MIT" ]
12
2019-10-11T11:00:56.000Z
2022-01-31T10:43:40.000Z
eoflow/models/pse_tae_layers.py
JDESLOIRES/eo-flow
def495e9292809656b906cfd6b8e7389ff9cea61
[ "MIT" ]
21
2019-09-11T08:12:57.000Z
2022-03-07T01:05:05.000Z
import numpy as np import tensorflow as tf import tensorflow.keras.layers as L from .transformer_encoder_layers import scaled_dot_product_attention, positional_encoding pooling_methods = { 'mean': tf.math.reduce_mean, 'std': tf.math.reduce_std, 'max': tf.math.reduce_max, 'min': tf.math.reduce_min } c...
32.677966
107
0.640387
794d8d023fc10b58c8d4cd639d5c7a5ea95f20c2
7,486
py
Python
neutron/tests/unit/objects/test_network.py
mail2nsrajesh/neutron
352afb37afcf4952f03436b25618d0066c51f3f1
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/objects/test_network.py
mail2nsrajesh/neutron
352afb37afcf4952f03436b25618d0066c51f3f1
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/objects/test_network.py
mail2nsrajesh/neutron
352afb37afcf4952f03436b25618d0066c51f3f1
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
33.271111
78
0.682474
794d8db77bc38258c667143acbc2d428d5e2223e
16,109
py
Python
truffe2/accounting_main/migrations/0010_auto__del_field_budgetline_compte__add_field_budgetline_account.py
JonathanCollaud/truffe2
5cbb055ac1acf7e7dc697340618fcb56c67fbd91
[ "BSD-2-Clause" ]
9
2016-09-14T02:19:19.000Z
2020-10-18T14:52:14.000Z
truffe2/accounting_main/migrations/0010_auto__del_field_budgetline_compte__add_field_budgetline_account.py
JonathanCollaud/truffe2
5cbb055ac1acf7e7dc697340618fcb56c67fbd91
[ "BSD-2-Clause" ]
19
2016-11-09T21:28:51.000Z
2021-02-10T22:37:31.000Z
truffe2/accounting_main/migrations/0010_auto__del_field_budgetline_compte__add_field_budgetline_account.py
JonathanCollaud/truffe2
5cbb055ac1acf7e7dc697340618fcb56c67fbd91
[ "BSD-2-Clause" ]
13
2016-12-31T14:22:09.000Z
2020-12-27T19:43:19.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Renaming field 'ExpenseClaim.account_id' db.rename_column(u'accounting_...
80.949749
195
0.574337
794d8e12a242f72a52dbb030f118ea36e4bdd16c
1,508
py
Python
configs.py
AppleBotz/WM_bot
36311af327f24126b0d202f5e5b16145bb1a00d3
[ "MIT" ]
null
null
null
configs.py
AppleBotz/WM_bot
36311af327f24126b0d202f5e5b16145bb1a00d3
[ "MIT" ]
null
null
null
configs.py
AppleBotz/WM_bot
36311af327f24126b0d202f5e5b16145bb1a00d3
[ "MIT" ]
null
null
null
# (c) @AbirHasan2005 # Don't Forget That I Made This! # So Give Credits! import os class Config(object): BOT_TOKEN = os.environ.get("BOT_TOKEN") API_ID = int(os.environ.get("API_ID", 12345)) API_HASH = os.environ.get("API_HASH") STREAMTAPE_API_PASS = os.environ.get("STREAMTAPE_API_PASS", "NoNeed") STREAMTAPE_...
35.069767
219
0.728117
794d8e8ed8437f9ed74a7fa971afe6b7f787b607
32,929
py
Python
utils/models.py
ClaudiaRaffaelli/Protein-subcellular-localization
38a40c7389ee717954c254114959368223a55e43
[ "MIT" ]
null
null
null
utils/models.py
ClaudiaRaffaelli/Protein-subcellular-localization
38a40c7389ee717954c254114959368223a55e43
[ "MIT" ]
null
null
null
utils/models.py
ClaudiaRaffaelli/Protein-subcellular-localization
38a40c7389ee717954c254114959368223a55e43
[ "MIT" ]
1
2021-08-25T07:50:43.000Z
2021-08-25T07:50:43.000Z
import numpy as np import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras import layers, optimizers from tensorflow import keras import matplotlib.pyplot as plt import itertools from sklearn.metrics import classification_report, confusion_matrix, matthews_corrcoef import math cla...
51.211509
138
0.650764
794d8f040221fc90fe127e9a149fd01c59dbfd63
11,431
py
Python
conda/misc.py
astrojuanlu/conda
badf048f5e8287250ef1940249a048f9bde08477
[ "BSD-3-Clause" ]
null
null
null
conda/misc.py
astrojuanlu/conda
badf048f5e8287250ef1940249a048f9bde08477
[ "BSD-3-Clause" ]
null
null
null
conda/misc.py
astrojuanlu/conda
badf048f5e8287250ef1940249a048f9bde08477
[ "BSD-3-Clause" ]
null
null
null
# this module contains miscellaneous stuff which enventually could be moved # into other places from __future__ import absolute_import, division, print_function, unicode_literals from collections import defaultdict import os from os.path import (abspath, dirname, exists, expanduser, isdir, isfile, islink, join, ...
34.224551
97
0.593036
794d8f5be6b479b0f51c6e40fdfe4046cd62bcd9
3,096
py
Python
Transformer/B-H-Diagram.py
AlexTsagas/Quality-Graphs
eb03f0baf84db4343d6048143ababa724813de94
[ "MIT" ]
1
2021-10-03T19:07:57.000Z
2021-10-03T19:07:57.000Z
Transformer/B-H-Diagram.py
AlexTsagas/Quality-Graphs
eb03f0baf84db4343d6048143ababa724813de94
[ "MIT" ]
null
null
null
Transformer/B-H-Diagram.py
AlexTsagas/Quality-Graphs
eb03f0baf84db4343d6048143ababa724813de94
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from matplotlib import rc import pandas as pd from scipy import integrate # Write with LaTeX rc('text', usetex=True) rc('font', family='serif') # Read .csv file B_s, B_e = [], [] H_s, H_e = [], [] m_s, m_e = [], [] file = pd.read_csv('D2-Measurments.csv', header=Non...
25.377049
123
0.64438
794d8ff1f62517bb0385bcbfbb67afa1cba7ed5c
1,213
py
Python
tests/unit/states/test_eselect.py
velom/salt
f5d4334178c50d0dfcd205d5a7fb9cfb27fd369e
[ "Apache-2.0" ]
1
2021-04-05T19:46:35.000Z
2021-04-05T19:46:35.000Z
tests/unit/states/test_eselect.py
dv-trading/salt
f5d4334178c50d0dfcd205d5a7fb9cfb27fd369e
[ "Apache-2.0" ]
null
null
null
tests/unit/states/test_eselect.py
dv-trading/salt
f5d4334178c50d0dfcd205d5a7fb9cfb27fd369e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>` ''' # Import Python libs from __future__ import absolute_import # Import Salt Testing Libs from tests.support.unit import skipIf, TestCase from tests.support.mock import ( NO_MOCK, NO_MOCK_REASON, MagicMock, pat...
25.808511
80
0.597692
794d8fffa4644b04f1b8779986a16cec6e902586
7,975
py
Python
scripts/run_ggcnn_with_detection.py
kamilmlodzikowski/ggcnn_ur5_grasping
8604813360357aef82ab2516fef0d66e55d4b6ef
[ "BSD-3-Clause" ]
null
null
null
scripts/run_ggcnn_with_detection.py
kamilmlodzikowski/ggcnn_ur5_grasping
8604813360357aef82ab2516fef0d66e55d4b6ef
[ "BSD-3-Clause" ]
null
null
null
scripts/run_ggcnn_with_detection.py
kamilmlodzikowski/ggcnn_ur5_grasping
8604813360357aef82ab2516fef0d66e55d4b6ef
[ "BSD-3-Clause" ]
null
null
null
#! /home/kamil/robot40human_ws/src/ggcnn_ur5_grasping/python_ggcnn/bin/python3 import time import numpy as np import tensorflow as tf from keras.models import load_model from tensorflow.keras.models import Sequential import cv2 import scipy.ndimage as ndimage from skimage.draw import circle from skimage.feature imp...
35.287611
148
0.66721
794d901cce31a0a30bd38682d72b9a79afb6fefd
722
py
Python
homeassistant/components/zwave/websocket_api.py
bigiot/home-assistant
2e6038b6405885deafa64f4e710e2207ce0ee582
[ "Apache-2.0" ]
null
null
null
homeassistant/components/zwave/websocket_api.py
bigiot/home-assistant
2e6038b6405885deafa64f4e710e2207ce0ee582
[ "Apache-2.0" ]
null
null
null
homeassistant/components/zwave/websocket_api.py
bigiot/home-assistant
2e6038b6405885deafa64f4e710e2207ce0ee582
[ "Apache-2.0" ]
2
2019-01-21T05:49:23.000Z
2019-02-19T16:30:48.000Z
"""Web socket API for Z-Wave.""" import logging import voluptuous as vol from homeassistant.components import websocket_api from homeassistant.core import callback from .const import DATA_NETWORK _LOGGER = logging.getLogger(__name__) TYPE = "type" ID = "id" @websocket_api.require_admin @websocket_api.websocket_...
24.066667
78
0.764543
794d917af94edfbc51cfb12c2810fc8c40a42f7e
2,554
py
Python
ditto/dittoforms/utils.py
Kvoti/ditto
eb4efb241e54bf679222d14afeb71d9d5441c122
[ "BSD-3-Clause" ]
null
null
null
ditto/dittoforms/utils.py
Kvoti/ditto
eb4efb241e54bf679222d14afeb71d9d5441c122
[ "BSD-3-Clause" ]
9
2015-11-10T15:17:22.000Z
2015-11-12T11:07:02.000Z
ditto/dittoforms/utils.py
Kvoti/ditto
eb4efb241e54bf679222d14afeb71d9d5441c122
[ "BSD-3-Clause" ]
null
null
null
import json from django import forms from .models import FormSubmission class FormFromSpecMixin(object): def add_fields_from_spec(self, spec): for item in spec: if 'on' in item and not item['on']: continue if 'fields' in item: # group of fields ...
30.404762
92
0.568912
794d9286b786da4b4a6a8c9a1266f29a7750d86b
2,529
py
Python
app/recipe/tests/test_tags_api.py
emeraldev/recipe-app-api
9483c71c85e55b4ba3de9af7e30aecb7b39fe194
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
emeraldev/recipe-app-api
9483c71c85e55b4ba3de9af7e30aecb7b39fe194
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
emeraldev/recipe-app-api
9483c71c85e55b4ba3de9af7e30aecb7b39fe194
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Tag from recipe.serializers import TagSerializer TAGS_URL = reverse('recipe:tag-list') class PublicTa...
30.107143
71
0.654013
794d9297da5d65c5f2b6ad7582e2d89e85450ce3
608
py
Python
api/util/stub.py
aleibovici/datrium_natural_hazard_protection
7ae593050765d8d30bbc08b436bbe334e59d985a
[ "Apache-2.0" ]
null
null
null
api/util/stub.py
aleibovici/datrium_natural_hazard_protection
7ae593050765d8d30bbc08b436bbe334e59d985a
[ "Apache-2.0" ]
null
null
null
api/util/stub.py
aleibovici/datrium_natural_hazard_protection
7ae593050765d8d30bbc08b436bbe334e59d985a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #************************************************************** #* Copyright (c) 2017 Datrium, Inc. All rights reserved. * #* -- Datrium Confidential -- * #************************************************************** from datrium.rpc.client.stub_factory impor...
33.777778
68
0.524671
794d92a0431f481e02accf68302593fe5736e4fc
168
py
Python
data/kernel_binaries/assemble.py
harskish/Fluctus
861cf7a88c3b6ac2c051c67b6216e36653eb64f7
[ "MIT" ]
52
2017-06-26T13:23:41.000Z
2022-01-12T07:09:28.000Z
data/kernel_binaries/assemble.py
harskish/Fluctus
861cf7a88c3b6ac2c051c67b6216e36653eb64f7
[ "MIT" ]
null
null
null
data/kernel_binaries/assemble.py
harskish/Fluctus
861cf7a88c3b6ac2c051c67b6216e36653eb64f7
[ "MIT" ]
14
2018-11-07T05:52:24.000Z
2021-12-25T02:24:33.000Z
import glob import os files = glob.glob("*.cl.ptx") for ptx in files: inst = "ptxas {} -o {}.elf --gpu-name sm_61".format(ptx, ptx[:-4]) print(inst) os.system(inst)
21
67
0.642857
794d933e7f84d7c02670ce9deaad985a3fb08578
325
py
Python
pollme/urls.py
satya1145/Django-Poll-App-master
aa1649cb11ff34e3c1ae6bf3364c53eb1939db51
[ "MIT" ]
20
2021-05-02T19:32:24.000Z
2021-07-09T19:16:34.000Z
pollme/urls.py
satya1145/Django-Poll-App-master
aa1649cb11ff34e3c1ae6bf3364c53eb1939db51
[ "MIT" ]
3
2021-06-01T14:29:21.000Z
2021-06-08T06:42:20.000Z
pollme/urls.py
satya1145/Django-Poll-App-master
aa1649cb11ff34e3c1ae6bf3364c53eb1939db51
[ "MIT" ]
1
2021-09-12T19:22:16.000Z
2021-09-12T19:22:16.000Z
from django.contrib import admin from django.urls import path, include from . import views urlpatterns = [ path('admin/', admin.site.urls), path('home/', views.home, name='home'), path('polls/', include('polls.urls', namespace="polls")), path('accounts/', include('accounts.urls', namespace="accounts")...
27.083333
70
0.673846
794d9382fa884a04bda75abf14f7cbf6b8aa925c
1,754
py
Python
tensorflow_probability/python/internal/backend/numpy/deprecation.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
2
2020-12-17T20:43:24.000Z
2021-06-11T22:09:16.000Z
tensorflow_probability/python/internal/backend/numpy/deprecation.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
2
2021-08-25T16:14:51.000Z
2022-02-10T04:47:11.000Z
tensorflow_probability/python/internal/backend/numpy/deprecation.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
1
2020-05-31T13:08:33.000Z
2020-05-31T13:08:33.000Z
# Copyright 2020 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
29.233333
78
0.710946
794d940441c6265f656c5126900f6634e58621c0
1,491
py
Python
app/forms.py
lambrosopos/bible-school-web-app
7206026d0cb014c518314b76bd6fd7a223582044
[ "MIT" ]
null
null
null
app/forms.py
lambrosopos/bible-school-web-app
7206026d0cb014c518314b76bd6fd7a223582044
[ "MIT" ]
null
null
null
app/forms.py
lambrosopos/bible-school-web-app
7206026d0cb014c518314b76bd6fd7a223582044
[ "MIT" ]
null
null
null
from django import forms from django.utils.translation import gettext_lazy as _ from .models import Student class StudentForm(forms.ModelForm): class Meta: model = Student fields = [ 'name', 'title', 'contact', 'memo', 'church', 'cohort'] widgets = { "name": forms.TextInput( ...
28.132075
74
0.380952
794d94442dfccd9fb0860ed1722ed3107bbed462
1,244
py
Python
qiime_16s/combine_collapsed_otu_tables.py
lotrus28/TaboCom
b67d66e4c410375a9efa08c5e637301e78e9204b
[ "Apache-2.0" ]
null
null
null
qiime_16s/combine_collapsed_otu_tables.py
lotrus28/TaboCom
b67d66e4c410375a9efa08c5e637301e78e9204b
[ "Apache-2.0" ]
null
null
null
qiime_16s/combine_collapsed_otu_tables.py
lotrus28/TaboCom
b67d66e4c410375a9efa08c5e637301e78e9204b
[ "Apache-2.0" ]
null
null
null
import sys import re import pandas as pd def combine_otu_tables(path_to_files): with open(path_to_files) as a: filenames = a.read().splitlines() separated = {re.search(r'ERR\d+?(?=_)',x).group(0):pd.read_table(x, sep = '\t', index_col = 1, header = None,engine='python') for x in file...
30.341463
129
0.639871
794d94b3b6202103969dece6193fe5cd4f56b8d5
8,914
py
Python
adminsortable/admin.py
dokterbob/django-admin-sortable
4e5e4af8b157cc323acbb69491f1b08b9f3e62bf
[ "MS-PL", "Naumen", "Condor-1.1", "Apache-1.1" ]
null
null
null
adminsortable/admin.py
dokterbob/django-admin-sortable
4e5e4af8b157cc323acbb69491f1b08b9f3e62bf
[ "MS-PL", "Naumen", "Condor-1.1", "Apache-1.1" ]
null
null
null
adminsortable/admin.py
dokterbob/django-admin-sortable
4e5e4af8b157cc323acbb69491f1b08b9f3e62bf
[ "MS-PL", "Naumen", "Condor-1.1", "Apache-1.1" ]
null
null
null
import json from django.conf import settings from django.conf.urls.defaults import patterns, url from django.contrib.admin import ModelAdmin, TabularInline, StackedInline from django.contrib.admin.options import InlineModelAdmin from django.contrib.contenttypes.models import ContentType from django.http import Ht...
45.948454
111
0.645277
794d955abe7c2e57c598ccba89b526dccd45098e
766
py
Python
migrations/versions/2ea41f4610fd_.py
boladmin/security_monkey
c28592ffd518fa399527d26262683fc860c30eef
[ "Apache-2.0" ]
4,258
2015-01-04T22:06:10.000Z
2022-03-31T23:40:27.000Z
migrations/versions/2ea41f4610fd_.py
boladmin/security_monkey
c28592ffd518fa399527d26262683fc860c30eef
[ "Apache-2.0" ]
1,013
2015-01-12T02:31:03.000Z
2021-09-16T19:09:03.000Z
migrations/versions/2ea41f4610fd_.py
boladmin/security_monkey
c28592ffd518fa399527d26262683fc860c30eef
[ "Apache-2.0" ]
965
2015-01-11T21:06:07.000Z
2022-03-17T16:53:57.000Z
"""Increasing size of name field to accomodate longer AWS Resource IDs Revision ID: 2ea41f4610fd Revises: 1727fb4309d8 Create Date: 2016-04-18 17:59:04.622111 """ # revision identifiers, used by Alembic. revision = '2ea41f4610fd' down_revision = '1727fb4309d8' from alembic import op import sqlalchemy as sa def up...
28.37037
111
0.718016
794d967a74c5e27749cd76fcccbe8f03d16ae821
3,234
py
Python
sanitize_kana.py
blueset/vocaloid-yomigana
240549955342bb4b02d0abcf21753809f8b9278c
[ "MIT" ]
1
2021-09-06T22:44:10.000Z
2021-09-06T22:44:10.000Z
sanitize_kana.py
blueset/vocaloid-yomigana
240549955342bb4b02d0abcf21753809f8b9278c
[ "MIT" ]
null
null
null
sanitize_kana.py
blueset/vocaloid-yomigana
240549955342bb4b02d0abcf21753809f8b9278c
[ "MIT" ]
null
null
null
#%% import MeCab from pyokaka import okaka import csv import jaconv import unicodedata import re tagger = MeCab.Tagger('-d /usr/local/lib/mecab/dic/mecab-ipadic-neologd --node-format="%M\t%f[7]\n" --unk-format="%M\t%M\n"') prefix = "outcomes/fandom/fandom" # %% def romaji_to_hiragana(romaji): return strip_punct(o...
29.944444
125
0.649041
794d96a7082cb3e1850d0f14a5256cc0780a81e6
1,993
py
Python
heat/tests/clients/test_zaqar_client.py
jasondunsmore/heat
6bd7352dc4838b8ef782f2345a4dfdf57ba3e356
[ "Apache-2.0" ]
1
2015-12-18T21:46:55.000Z
2015-12-18T21:46:55.000Z
heat/tests/clients/test_zaqar_client.py
jasondunsmore/heat
6bd7352dc4838b8ef782f2345a4dfdf57ba3e356
[ "Apache-2.0" ]
null
null
null
heat/tests/clients/test_zaqar_client.py
jasondunsmore/heat
6bd7352dc4838b8ef782f2345a4dfdf57ba3e356
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
39.078431
78
0.66282
794d96d1424fb66ddc58b8247d8dfd491f4b9b3f
6,890
py
Python
watertap/examples/flowsheets/full_treatment_train/model_components/eNRTL/test_enrtl.py
avdudchenko/watertap
ac8d59e015688ff175a8087d2d52272e4f1fe84f
[ "BSD-3-Clause-LBNL" ]
4
2021-11-06T01:13:22.000Z
2022-02-08T21:16:38.000Z
watertap/examples/flowsheets/full_treatment_train/model_components/eNRTL/test_enrtl.py
avdudchenko/watertap
ac8d59e015688ff175a8087d2d52272e4f1fe84f
[ "BSD-3-Clause-LBNL" ]
233
2021-10-13T12:53:44.000Z
2022-03-31T21:59:50.000Z
watertap/examples/flowsheets/full_treatment_train/model_components/eNRTL/test_enrtl.py
avdudchenko/watertap
ac8d59e015688ff175a8087d2d52272e4f1fe84f
[ "BSD-3-Clause-LBNL" ]
12
2021-11-01T19:11:03.000Z
2022-03-08T22:20:58.000Z
############################################################################### # WaterTAP Copyright (c) 2021, The Regents of the University of California, # through Lawrence Berkeley National Laboratory, Oak Ridge National # Laboratory, National Renewable Energy Laboratory, and National Energy # Technology Laboratory ...
33.446602
86
0.635994
794d978a14f5f28990ce6a168b4d71da54ad765b
2,708
py
Python
addons/BlenderImgui-main/ImguiExample/operators.py
V-Sekai/V-Sekai-Blender-tools
3473ad4abb737756290a9007273519460742960d
[ "MIT" ]
2
2021-12-21T16:38:58.000Z
2022-01-08T00:56:35.000Z
addons/BlenderImgui-main/ImguiExample/operators.py
V-Sekai/V-Sekai-Blender-game-tools
3473ad4abb737756290a9007273519460742960d
[ "MIT" ]
1
2022-01-29T05:46:50.000Z
2022-01-29T05:46:50.000Z
addons/BlenderImgui-main/ImguiExample/operators.py
V-Sekai/V-Sekai-Blender-game-tools
3473ad4abb737756290a9007273519460742960d
[ "MIT" ]
1
2021-11-07T19:41:34.000Z
2021-11-07T19:41:34.000Z
# ##### BEGIN GPL LICENSE BLOCK ##### # # Copyright (c) 2020 Elie Michel # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later...
34.717949
88
0.627031
794d979ce249133f8b03d292589247f8fa791592
26,009
py
Python
misp_event_functions.py
malwaredevil/malpedia_to_misp
4e1fc211495a68822b1b9dee88cdd19715bf4491
[ "MIT" ]
3
2020-07-10T15:13:32.000Z
2021-07-22T03:29:29.000Z
misp_event_functions.py
malwaredevil/malpedia_to_misp
4e1fc211495a68822b1b9dee88cdd19715bf4491
[ "MIT" ]
2
2021-01-03T01:13:37.000Z
2021-01-03T01:13:54.000Z
misp_event_functions.py
malwaredevil/malpedia_to_misp
4e1fc211495a68822b1b9dee88cdd19715bf4491
[ "MIT" ]
null
null
null
import pymisp as pm import json from pymisp.tools import make_binary_objects from pymisp import MISPTag from pymisp import ExpandedPyMISP, MISPEvent, ExpandedPyMISP, MISPAttribute from pathlib import Path import glob import requests from urllib3.exceptions import ProtocolError import globals as gv import sys import ...
37.694203
186
0.568995
794d98c3e55f0cef925c894773d4728356eb7d8e
1,158
py
Python
discernwise/commands/train.py
eeriksp/discernwise
26cdb86c0f069f1dd26b9b0c1338c7343208eeea
[ "MIT" ]
3
2021-04-15T13:42:40.000Z
2021-04-16T15:44:59.000Z
discernwise/commands/train.py
eeriksp/discernwise
26cdb86c0f069f1dd26b9b0c1338c7343208eeea
[ "MIT" ]
null
null
null
discernwise/commands/train.py
eeriksp/discernwise
26cdb86c0f069f1dd26b9b0c1338c7343208eeea
[ "MIT" ]
null
null
null
from argparse import ArgumentParser from commands.base import BaseCommand from presentation.train import display_training_results from services.train import TrainingConfig, train class TrainCommand(BaseCommand): """ Use the given dataset to train a new model, save the model to the given path and disp...
37.354839
120
0.728843
794d994e6a654793b9be5dad209aa40c437a4b42
1,555
py
Python
wk8_hw/ex5_netmiko_sh_ver.py
philuu12/PYTHON_4_NTWK_ENGRS
ac0126ed687a5201031a6295d0094a536547cb92
[ "Apache-2.0" ]
1
2016-03-01T14:39:17.000Z
2016-03-01T14:39:17.000Z
wk8_hw/ex5_netmiko_sh_ver.py
philuu12/PYTHON_4_NTWK_ENGRS
ac0126ed687a5201031a6295d0094a536547cb92
[ "Apache-2.0" ]
null
null
null
wk8_hw/ex5_netmiko_sh_ver.py
philuu12/PYTHON_4_NTWK_ENGRS
ac0126ed687a5201031a6295d0094a536547cb92
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ 5. Use Netmiko to connect to each of the devices in the database. Execute 'show version' on each device. Calculate the amount of time required to do this. """ from netmiko import ConnectHandler from datetime import datetime from net_system.models import NetworkDevice, Credentials import dja...
31.1
88
0.601286
794d99f9b2f1554757c8df78a1c60d89de6cd5ac
193
py
Python
data_collection/gazette/spiders/sc_paraiso.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
454
2018-04-07T03:32:57.000Z
2020-08-17T19:56:22.000Z
data_collection/gazette/spiders/sc_paraiso.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
254
2020-08-18T14:09:43.000Z
2022-03-28T11:30:51.000Z
data_collection/gazette/spiders/sc_paraiso.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
183
2018-04-11T15:09:37.000Z
2020-08-15T18:55:11.000Z
from gazette.spiders.base.fecam import FecamGazetteSpider class ScParaisoSpider(FecamGazetteSpider): name = "sc_paraiso" FECAM_QUERY = "cod_entidade:190" TERRITORY_ID = "4212239"
24.125
57
0.766839
794d9b0b5c574f8e6daac8f3f5543d271e6019e6
3,243
py
Python
openGaussBase/testcase/GUC/CONNECTIONAUTHENTICATION/Opengauss_Function_Guc_Connectionauthentication_Case0130.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/GUC/CONNECTIONAUTHENTICATION/Opengauss_Function_Guc_Connectionauthentication_Case0130.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/GUC/CONNECTIONAUTHENTICATION/Opengauss_Function_Guc_Connectionauthentication_Case0130.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
37.275862
84
0.655257
794d9ba91f84fed070a586dbccd061eb47efdcab
37,290
py
Python
dreamerv2/agent.py
footoredo/dreamerv2
493e1c0b92cf667a4b4fdcaf8f805273beeb165f
[ "MIT" ]
null
null
null
dreamerv2/agent.py
footoredo/dreamerv2
493e1c0b92cf667a4b4fdcaf8f805273beeb165f
[ "MIT" ]
null
null
null
dreamerv2/agent.py
footoredo/dreamerv2
493e1c0b92cf667a4b4fdcaf8f805273beeb165f
[ "MIT" ]
null
null
null
from genericpath import exists import re import numpy as np import tensorflow as tf from tensorflow.keras import mixed_precision as prec import common import expl class Agent(common.Module): def __init__(self, config, logger, step, shapes): self.config = config self._logger = logger sel...
46.787955
169
0.571574
794d9bde7aed8babf3ac89b5bd55781a3d150d0c
9,660
py
Python
lib/galaxy/jobs/runners/slurm.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
1,085
2015-02-18T16:14:38.000Z
2022-03-30T23:52:07.000Z
lib/galaxy/jobs/runners/slurm.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
11,253
2015-02-18T17:47:32.000Z
2022-03-31T21:47:03.000Z
lib/galaxy/jobs/runners/slurm.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
1,000
2015-02-18T16:18:10.000Z
2022-03-29T08:22:56.000Z
""" SLURM job control via the DRMAA API. """ import os import time from galaxy import model from galaxy.jobs.runners.drmaa import DRMAAJobRunner from galaxy.util import commands from galaxy.util.custom_logging import get_logger log = get_logger(__name__) __all__ = ('SlurmJobRunner', ) # Error message printed to job...
55.83815
193
0.591615
794d9d0b70f1a2757c266d5e88687961d25c58d4
2,753
py
Python
numpy/core/tests/test_getlimits.py
ivanov/numpy
6d2665626e40f346bb5af8d780579f5a429ff9ba
[ "BSD-3-Clause" ]
null
null
null
numpy/core/tests/test_getlimits.py
ivanov/numpy
6d2665626e40f346bb5af8d780579f5a429ff9ba
[ "BSD-3-Clause" ]
null
null
null
numpy/core/tests/test_getlimits.py
ivanov/numpy
6d2665626e40f346bb5af8d780579f5a429ff9ba
[ "BSD-3-Clause" ]
null
null
null
""" Test functions for limits module. """ from __future__ import division, absolute_import from numpy.testing import * from numpy.core import finfo, iinfo from numpy import half, single, double, longdouble import numpy as np ################################################## class TestPythonFloat(TestCase): de...
31.643678
79
0.602615
794d9d330e0dc89959942d07451cc052151dad54
15,826
py
Python
line_1D_alg/alternative versions/line_patterns_dict.py
vishalbelsare/CogAlg
ec54406be2f68c3ccb07bef13fc486d097784c49
[ "MIT" ]
102
2016-10-09T01:33:00.000Z
2022-01-28T01:03:23.000Z
line_1D_alg/alternative versions/line_patterns_dict.py
alex-pitertsev/CogAlg
23542710a172fccdcdccdca37e354283dd9f57bf
[ "MIT" ]
41
2017-06-04T16:09:43.000Z
2022-01-20T21:11:42.000Z
line_1D_alg/alternative versions/line_patterns_dict.py
alex-pitertsev/CogAlg
23542710a172fccdcdccdca37e354283dd9f57bf
[ "MIT" ]
50
2017-05-10T06:25:36.000Z
2021-08-02T20:28:54.000Z
''' line_patterns using dicts vs. classes, Kelvin's port ''' # add ColAlg folder to system path import sys from os.path import dirname, join, abspath sys.path.insert(0, abspath(join(dirname("CogAlg"), '../..'))) import cv2 import csv import argparse from time import time from utils import * from itertools import zi...
45.608069
137
0.59377
794da01efa2c2ba990c6bfcd983c94b061f32df9
154,962
py
Python
pysnmp-with-texts/DGS3612-L2MGMT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/DGS3612-L2MGMT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/DGS3612-L2MGMT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module DGS3612-L2MGMT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DGS3612-L2MGMT-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:46:32 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, ...
155.740704
12,771
0.791781
794da030b15f83eb42186125c67ec69c33836833
2,283
py
Python
comment/models.py
knightwk/mysite
9935b05e97fd5fb0cd57a0e97b8241ee4a8a67a5
[ "Apache-2.0" ]
null
null
null
comment/models.py
knightwk/mysite
9935b05e97fd5fb0cd57a0e97b8241ee4a8a67a5
[ "Apache-2.0" ]
14
2020-06-05T07:13:18.000Z
2022-03-11T23:45:57.000Z
comment/models.py
knightwk/mysite
9935b05e97fd5fb0cd57a0e97b8241ee4a8a67a5
[ "Apache-2.0" ]
null
null
null
import threading from django.db import models from django.core.mail import send_mail from django.conf import settings from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.contrib.auth.models import User from django.template.loader import...
36.238095
106
0.657906
794da17447a529745c118efb54689f6efa1e34b8
51
py
Python
Python/PythonTest.py
SPPhotonic/JetsonTX1
d0cea6bb34fd8a02e337611c18eebaeb43bbf1e2
[ "MIT" ]
null
null
null
Python/PythonTest.py
SPPhotonic/JetsonTX1
d0cea6bb34fd8a02e337611c18eebaeb43bbf1e2
[ "MIT" ]
null
null
null
Python/PythonTest.py
SPPhotonic/JetsonTX1
d0cea6bb34fd8a02e337611c18eebaeb43bbf1e2
[ "MIT" ]
null
null
null
#git init #git add . #git commit -m "First commit"
12.75
29
0.666667
794da1760b20173f8dc62e0f247a592910815c74
26,194
py
Python
src/python/zensols/deepnlp/vectorize/vectorizers.py
plandes/deepnlp
49820084ccf797d59535d5920559ab768bf2ec73
[ "MIT" ]
7
2020-05-11T07:13:56.000Z
2021-09-27T13:03:46.000Z
src/python/zensols/deepnlp/vectorize/vectorizers.py
plandes/deepnlp
49820084ccf797d59535d5920559ab768bf2ec73
[ "MIT" ]
null
null
null
src/python/zensols/deepnlp/vectorize/vectorizers.py
plandes/deepnlp
49820084ccf797d59535d5920559ab768bf2ec73
[ "MIT" ]
1
2022-02-12T00:22:26.000Z
2022-02-12T00:22:26.000Z
"""Generate and vectorize language features. """ __author__ = 'Paul Landes' from typing import List, Tuple, Set, Union, Dict from dataclasses import dataclass, field import logging import sys from functools import reduce import torch from torch import Tensor from zensols.deeplearn.vectorize import ( VectorizerErr...
39.567976
86
0.620142
794da1cebeb62c155689d7ab16bc98a69236d34e
819
py
Python
plugins/cricket.py
TeamIndianUserBot/Andencento
f7a4cbc8a6d5c359d04acbd5bac8c8745a5f8162
[ "CC0-1.0" ]
2
2021-12-14T06:15:31.000Z
2021-12-14T12:46:04.000Z
plugins/cricket.py
Hobby-Dev-0/Andencento-1
2b3a01439666093445b5fa3d66cede877098fcb9
[ "CC0-1.0" ]
null
null
null
plugins/cricket.py
Hobby-Dev-0/Andencento-1
2b3a01439666093445b5fa3d66cede877098fcb9
[ "CC0-1.0" ]
1
2021-08-30T09:26:23.000Z
2021-08-30T09:26:23.000Z
import urllib.request from bs4 import BeautifulSoup from . import * @Andencento.on(andencento_cmd(pattern="cs$")) @Andencento.on(sudo_cmd(pattern="cs$", allow_sudo=True)) async def _(event): if event.fwd_from: return score_page = "http://static.cricinfo.com/rss/livescores.xml" page = urllib.requ...
28.241379
87
0.661783
794da3eb95cf7b1b271cc3bbdba4b7f96af9b993
2,326
py
Python
tests/mal_scraper/test_mal_utils.py
QasimK/mal-scraper
2657be490c80fe695da2e774aea1602846aeb207
[ "MIT" ]
17
2016-10-16T16:19:14.000Z
2022-02-11T07:46:43.000Z
tests/mal_scraper/test_mal_utils.py
QasimK/mal-scraper
2657be490c80fe695da2e774aea1602846aeb207
[ "MIT" ]
20
2016-05-15T19:06:59.000Z
2021-06-01T21:59:28.000Z
tests/mal_scraper/test_mal_utils.py
QasimK/mal-scraper
2657be490c80fe695da2e774aea1602846aeb207
[ "MIT" ]
11
2017-08-06T07:29:09.000Z
2022-02-07T17:03:54.000Z
from datetime import date, datetime, timedelta import pytest from mal_scraper import mal_utils class TestGetDatetime(object): nowish = datetime.utcnow() yesterdayish = nowish - timedelta(days=1) @pytest.mark.parametrize('text,expected_datetime', [ ('Now', datetime.utcnow()), ('Oct 1, 2...
43.886792
98
0.654772
794da437ac98e144b5c50b10d4f26b6288407928
336
py
Python
brl_baselines/qmdp_ddpg/models.py
gilwoolee/brl_baselines
c85df28c0f2dfbd69d3d27928bcbabf36a3663bb
[ "BSD-3-Clause" ]
null
null
null
brl_baselines/qmdp_ddpg/models.py
gilwoolee/brl_baselines
c85df28c0f2dfbd69d3d27928bcbabf36a3663bb
[ "BSD-3-Clause" ]
null
null
null
brl_baselines/qmdp_ddpg/models.py
gilwoolee/brl_baselines
c85df28c0f2dfbd69d3d27928bcbabf36a3663bb
[ "BSD-3-Clause" ]
null
null
null
import tensorflow as tf from baselines.common.models import get_network_builder from baselines.ddpg.models import Critic, Model class PretrainableCritic(Model): def __init__(self, name='critic', network='mlp', **network_kwargs): super().__init__(name=name, network=network, **network_kwargs) self.la...
37.333333
71
0.755952
794da486a5b1af44c2de5f729dca6317ea8a8f80
6,613
py
Python
indico/modules/events/management/controllers/settings.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
1
2018-11-12T21:29:26.000Z
2018-11-12T21:29:26.000Z
indico/modules/events/management/controllers/settings.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
9
2020-09-08T09:25:57.000Z
2022-01-13T02:59:05.000Z
indico/modules/events/management/controllers/settings.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
3
2020-07-20T09:09:44.000Z
2020-10-19T00:29:49.000Z
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals from flask import redirect, session from werkzeug.exceptions impo...
44.986395
117
0.683956
794da53f7f918ffd128d0cb789377a770123133a
174
py
Python
VSR/Backend/Torch/Framework/__init__.py
Kadantte/VideoSuperResolution
4c86e49d81c7a9bea1fe0780d651afc126768df3
[ "MIT" ]
1,447
2018-06-04T08:44:07.000Z
2022-03-29T06:19:10.000Z
VSR/Backend/Torch/Framework/__init__.py
AbdulMoqeet/VideoSuperResolution
82c3347554561ff9dfb5e86d9cf0a55239ca662e
[ "MIT" ]
96
2018-08-29T01:02:45.000Z
2022-01-12T06:00:01.000Z
VSR/Backend/Torch/Framework/__init__.py
AbdulMoqeet/VideoSuperResolution
82c3347554561ff9dfb5e86d9cf0a55239ca662e
[ "MIT" ]
307
2018-06-26T13:35:54.000Z
2022-01-21T09:01:54.000Z
# Copyright (c) 2017-2020 Wenyi Tang. # Author: Wenyi Tang # Email: wenyitang@outlook.com # Update: 2020 - 2 - 7 __all__ = [ 'Environment', 'Summary', 'Trainer' ]
15.818182
38
0.632184
794da6d9e7c9bd55147f0996c0b51b7bb9cec19b
165
py
Python
faebryk/__init__.py
NoR8quoh1r/faebryk
9d0b2c20bc933d18f2f7124e69032fe308ab41bc
[ "MIT" ]
null
null
null
faebryk/__init__.py
NoR8quoh1r/faebryk
9d0b2c20bc933d18f2f7124e69032fe308ab41bc
[ "MIT" ]
null
null
null
faebryk/__init__.py
NoR8quoh1r/faebryk
9d0b2c20bc933d18f2f7124e69032fe308ab41bc
[ "MIT" ]
null
null
null
# This file is part of the faebryk project # SPDX-License-Identifier: MIT import faebryk.exporters import faebryk.libs import faebryk.library import faebryk.version
23.571429
42
0.824242
794da9972be25bd22bee5901b20d4324d6b15699
17,007
py
Python
instrumentation/opentelemetry-instrumentation-pymemcache/tests/test_pymemcache.py
LetzNico/opentelemetry-python
b565d6b643f175faee3f57ef81c8b7edbf50ec41
[ "Apache-2.0" ]
null
null
null
instrumentation/opentelemetry-instrumentation-pymemcache/tests/test_pymemcache.py
LetzNico/opentelemetry-python
b565d6b643f175faee3f57ef81c8b7edbf50ec41
[ "Apache-2.0" ]
null
null
null
instrumentation/opentelemetry-instrumentation-pymemcache/tests/test_pymemcache.py
LetzNico/opentelemetry-python
b565d6b643f175faee3f57ef81c8b7edbf50ec41
[ "Apache-2.0" ]
null
null
null
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
32.394286
81
0.632151
794dab153991a79fcc034623a437748f75fc1d04
4,621
py
Python
wavenet/data.py
wusq121/wavenet
98e9328292f5d5a72355027f88867e12d121d43f
[ "MIT" ]
2
2019-09-10T08:51:30.000Z
2021-06-02T05:57:56.000Z
wavenet/data.py
wusq121/wavenet
98e9328292f5d5a72355027f88867e12d121d43f
[ "MIT" ]
null
null
null
wavenet/data.py
wusq121/wavenet
98e9328292f5d5a72355027f88867e12d121d43f
[ "MIT" ]
null
null
null
""" data load and preprocess """ import os import librosa import numpy as np import torch import torch.utils.data as data def load_audio(filename, sample_rate=22500, trim=True, trim_frame_length=2048): audio, _ = librosa.load(filename, sr=sample_rate, mono=True) audio = audio.reshape(-1, 1) if trim: ...
31.435374
117
0.608959
794dadd70198c482fd1abeae3d70e21cfde31e6b
11,375
py
Python
ub/modules/ShivamCredits.py
parv779/javes-3.0
d510717b2756a65b39ff18d9f53d4adc46d8e23f
[ "MIT" ]
15
2020-12-13T17:37:05.000Z
2021-06-23T00:00:49.000Z
ub/modules/ShivamCredits.py
parv779/javes-3.0
d510717b2756a65b39ff18d9f53d4adc46d8e23f
[ "MIT" ]
2
2021-01-11T16:39:31.000Z
2021-01-25T22:35:28.000Z
ub/modules/ShivamCredits.py
parv779/javes-3.0
d510717b2756a65b39ff18d9f53d4adc46d8e23f
[ "MIT" ]
78
2020-12-13T17:52:51.000Z
2022-03-24T03:43:09.000Z
from ub.events import javes05 from ub import CMD_HELP, bot as javes, LOGS, JAVES_NAME from ub.javes_main.commands import rekcah05 from telethon.events import ChatAction #made by shivam #Made by Sh1vam#Made by Sh1vam#Made by Sh1vam#Made by Sh1vam #Made by Shivam#Made by Shivam#Made by Shivam#Made by Shivam#Made by Shiva...
48.404255
360
0.679121
794dae771531eaa01af409cebec126950c94cec8
3,623
py
Python
homeassistant/components/websocket_api/auth.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
homeassistant/components/websocket_api/auth.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/websocket_api/auth.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""Handle the auth of a connection.""" from __future__ import annotations from collections.abc import Callable from typing import TYPE_CHECKING, Any, Final from aiohttp.web import Request import voluptuous as vol from voluptuous.humanize import humanize_error from homeassistant.auth.models import RefreshToken, User ...
32.63964
88
0.663539
794db01e747f6fd6852026d3623061c0f8c6d699
1,498
py
Python
setup.py
mickstevens/plushcap
0602a69b950b49f17451684e2ebd355652beeb7e
[ "BSD-3-Clause" ]
null
null
null
setup.py
mickstevens/plushcap
0602a69b950b49f17451684e2ebd355652beeb7e
[ "BSD-3-Clause" ]
null
null
null
setup.py
mickstevens/plushcap
0602a69b950b49f17451684e2ebd355652beeb7e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') requirements = [ # TODO: put package requirements here ] test_requi...
27.236364
109
0.624166
794db02f372050109bf10f602052ebdefa376743
26,347
py
Python
tests/test_event.py
rootless4real/cozmo-python-sdk
dd29edef18748fcd816550469195323842a7872e
[ "Apache-2.0" ]
794
2016-10-14T16:56:34.000Z
2022-03-31T16:21:21.000Z
tests/test_event.py
rootless4real/cozmo-python-sdk
dd29edef18748fcd816550469195323842a7872e
[ "Apache-2.0" ]
63
2016-10-16T21:16:32.000Z
2021-12-25T06:01:36.000Z
tests/test_event.py
rootless4real/cozmo-python-sdk
dd29edef18748fcd816550469195323842a7872e
[ "Apache-2.0" ]
485
2016-10-14T19:49:43.000Z
2022-03-29T17:30:09.000Z
# Copyright (c) 2016 Anki, 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 in the file LICENSE.txt or at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
37.004213
99
0.640111
794db07ec015e21e366e867ac4e06628283c5bfb
21,207
py
Python
ecom/views.py
patrickikhidero/e-Market
8a79959371ba47bbe22d3451d5b3076cefee86ef
[ "MIT" ]
null
null
null
ecom/views.py
patrickikhidero/e-Market
8a79959371ba47bbe22d3451d5b3076cefee86ef
[ "MIT" ]
null
null
null
ecom/views.py
patrickikhidero/e-Market
8a79959371ba47bbe22d3451d5b3076cefee86ef
[ "MIT" ]
null
null
null
from django.shortcuts import render,redirect,reverse from . import forms,models from django.http import HttpResponseRedirect,HttpResponse from django.core.mail import send_mail from django.contrib.auth.models import Group from django.contrib.auth.decorators import login_required,user_passes_test from django.contrib imp...
39.127306
163
0.67888
794db0fe6fb178ab6e2d585276abe653e29bed3d
541
py
Python
scrapy/tests/test_dependencies.py
kamendula/scrapy
bd79b6e1d3e13344b98c268ac738d4b0ed9a1ce1
[ "BSD-3-Clause" ]
1
2015-04-23T15:02:58.000Z
2015-04-23T15:02:58.000Z
scrapy/tests/test_dependencies.py
KDOTGIS/scrapy
fa245af6d24c9bf87b00419b7ffb6a483baba199
[ "BSD-3-Clause" ]
null
null
null
scrapy/tests/test_dependencies.py
KDOTGIS/scrapy
fa245af6d24c9bf87b00419b7ffb6a483baba199
[ "BSD-3-Clause" ]
null
null
null
from twisted.trial import unittest class ScrapyUtilsTest(unittest.TestCase): def test_required_openssl_version(self): try: module = __import__('OpenSSL', {}, {}, ['']) except ImportError as ex: raise unittest.SkipTest("OpenSSL is not available") if hasattr(module, '...
33.8125
83
0.626617
794db15560c8ef600c23007274a1ef06f3eff191
3,172
py
Python
statey/hooks.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
4
2021-02-16T19:34:38.000Z
2022-01-31T16:44:14.000Z
statey/hooks.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
null
null
null
statey/hooks.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
null
null
null
from typing import Optional import pluggy from statey import NS hookspec = pluggy.HookspecMarker(NS) hookimpl = pluggy.HookimplMarker(NS) def create_plugin_manager() -> pluggy.PluginManager: """ Factory function to create a plugin manager w/ the default namespace """ return pluggy.PluginManager(N...
25.788618
86
0.70681
794db2220704cf1bbb75a99b3efef99da6b82704
3,247
py
Python
tests/test_path_encoding.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
76
2015-03-01T11:46:57.000Z
2022-02-18T10:57:44.000Z
tests/test_path_encoding.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
119
2015-01-14T11:53:08.000Z
2022-03-30T08:22:50.000Z
tests/test_path_encoding.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
46
2015-02-09T23:50:57.000Z
2022-01-06T16:04:40.000Z
# coding=utf-8 import unittest from urllib.parse import quote from bugsnag.event import Event from bugsnag.configuration import (Configuration, RequestConfiguration) class PathEncodingTest(unittest.TestCase): environ = { 'SCRIPT_NAME': '', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '80',...
26.614754
75
0.59963
794db42d2be0a8f9178bec865ee17b1007677673
288
py
Python
fdk_client/platform/models/StatsImported.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/StatsImported.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/StatsImported.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
"""Platform Models.""" from marshmallow import fields, Schema from marshmallow.validate import OneOf from ..enums import * from ..models.BaseSchema import BaseSchema class StatsImported(BaseSchema): # Communication swagger.json count = fields.Int(required=False)
16
42
0.732639
794db431c93c8398f9e9d36a557953856b80c14c
4,952
py
Python
layers/modules/multibox_loss.py
chosj95/SSD-Zoomed
0e8fd9829406e6b903c974733cb6976b8e0fd968
[ "MIT" ]
null
null
null
layers/modules/multibox_loss.py
chosj95/SSD-Zoomed
0e8fd9829406e6b903c974733cb6976b8e0fd968
[ "MIT" ]
null
null
null
layers/modules/multibox_loss.py
chosj95/SSD-Zoomed
0e8fd9829406e6b903c974733cb6976b8e0fd968
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from data import coco as cfg from ..box_utils import match, log_sum_exp class MultiBoxLoss(nn.Module): """SSD Weighted Loss Function Compute Targets: 1) Produce Confidence Tar...
41.266667
84
0.622981
794db481e4ec975914252f90d9e72d526bdbfa44
4,524
py
Python
mobile_bot/mobile_bot_ekf/scripts/plot_pose.py
benmo009/ros-simulations
dc25f285a06658f88a9852e349bffe9b4b505484
[ "MIT" ]
null
null
null
mobile_bot/mobile_bot_ekf/scripts/plot_pose.py
benmo009/ros-simulations
dc25f285a06658f88a9852e349bffe9b4b505484
[ "MIT" ]
null
null
null
mobile_bot/mobile_bot_ekf/scripts/plot_pose.py
benmo009/ros-simulations
dc25f285a06658f88a9852e349bffe9b4b505484
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import numpy as np import matplotlib.pyplot as plt from gazebo_msgs.srv import GetModelState from geometry_msgs.msg import Pose from tf.transformations import euler_from_quaternion class PosePlotter: def __init__(self, name): # Initialize ROS node rospy.init_node...
40.756757
110
0.60588
794db5131ed61b290e05385c82f6b7e55acd7da8
4,992
py
Python
qa/rpc-tests/wallet-hd.py
fg12347/smc
15cac6c49e27c055d4f217ec31ad9923691051fe
[ "MIT" ]
null
null
null
qa/rpc-tests/wallet-hd.py
fg12347/smc
15cac6c49e27c055d4f217ec31ad9923691051fe
[ "MIT" ]
null
null
null
qa/rpc-tests/wallet-hd.py
fg12347/smc
15cac6c49e27c055d4f217ec31ad9923691051fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # coding=utf-8 # ^^^^^^^^^^^^ TODO remove when supporting only Python3 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test Hierarchical Deterministic walle...
43.789474
108
0.638622
794db58b3c91bef74d65b5b1679ba23b8072e828
598
py
Python
distributed/protocol/tests/test_numba.py
gforsyth/distributed
6fe62774aa7ad585cf2231ca6475f70fdc1cec24
[ "BSD-3-Clause" ]
null
null
null
distributed/protocol/tests/test_numba.py
gforsyth/distributed
6fe62774aa7ad585cf2231ca6475f70fdc1cec24
[ "BSD-3-Clause" ]
null
null
null
distributed/protocol/tests/test_numba.py
gforsyth/distributed
6fe62774aa7ad585cf2231ca6475f70fdc1cec24
[ "BSD-3-Clause" ]
null
null
null
from distributed.protocol import serialize, deserialize import pytest cuda = pytest.importorskip("numba.cuda") np = pytest.importorskip("numpy") @pytest.mark.parametrize("dtype", ["u1", "u4", "u8", "f4"]) def test_serialize_cupy(dtype): ary = np.arange(100, dtype=dtype) x = cuda.to_device(ary) header, fr...
29.9
86
0.667224
794db66e44edd6cf54aee6795ef3619dd22e5e94
6,973
py
Python
PyEvoDyn/pyevodyn/tests/moran_process_simulation_test.py
juliangarcia/pyevodyn
79091f0a50e1dd834b8697e3158dfe75acd2efc1
[ "BSD-2-Clause-FreeBSD" ]
1
2020-09-22T07:10:49.000Z
2020-09-22T07:10:49.000Z
PyEvoDyn/pyevodyn/tests/moran_process_simulation_test.py
juliangarcia/pyevodyn
79091f0a50e1dd834b8697e3158dfe75acd2efc1
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
PyEvoDyn/pyevodyn/tests/moran_process_simulation_test.py
juliangarcia/pyevodyn
79091f0a50e1dd834b8697e3158dfe75acd2efc1
[ "BSD-2-Clause-FreeBSD" ]
4
2016-12-20T03:05:42.000Z
2021-01-01T09:01:45.000Z
''' Created on Oct 3, 2012 @author: garcia ''' import unittest from pyevodyn import games import numpy as np from pyevodyn.simulation import MoranProcess import pyevodyn.simulation as sim class Test(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def mock_up_payoff_fu...
51.272059
119
0.597591
794db6894239ea4f65ede0a38067e7d98f5164f0
3,460
py
Python
datasets/opinosis/opinosis.py
dkajtoch/datasets
12ef7f0d541a5aca5b29ebc2dddf5e1214f0e3e9
[ "Apache-2.0" ]
9
2021-04-26T14:43:52.000Z
2021-11-08T09:47:24.000Z
datasets/opinosis/opinosis.py
jramapuram/huggingface_datasets
62c7ac0783a00bdc1192b6a75439a65d522b6cbc
[ "Apache-2.0" ]
null
null
null
datasets/opinosis/opinosis.py
jramapuram/huggingface_datasets
62c7ac0783a00bdc1192b6a75439a65d522b6cbc
[ "Apache-2.0" ]
3
2021-01-03T22:08:20.000Z
2021-08-12T20:09:39.000Z
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
36.421053
101
0.665029
794db6e1be0e854c53f2116da18be815e2f22235
3,876
py
Python
tools/run_tests/task_runner.py
samotarnik/grpc
3278bdceda8030d5aa130f12765e5f07263c860d
[ "Apache-2.0" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
tools/run_tests/task_runner.py
samotarnik/grpc
3278bdceda8030d5aa130f12765e5f07263c860d
[ "Apache-2.0" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tools/run_tests/task_runner.py
samotarnik/grpc
3278bdceda8030d5aa130f12765e5f07263c860d
[ "Apache-2.0" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/env python # Copyright 2016 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
33.413793
80
0.718008
794db81583e691d9cd6471733e9881289a39da13
2,751
py
Python
src/djangosaml2_spid/spid_request.py
Martini991/spid-django
8f1ce59e01e3972006c75ff672b9c56a4d1234d4
[ "Apache-2.0" ]
1
2021-12-06T14:58:24.000Z
2021-12-06T14:58:24.000Z
src/djangosaml2_spid/spid_request.py
damikael/spid-django
3ca45df31195541ac669503dc85ae753254c6d00
[ "Apache-2.0" ]
null
null
null
src/djangosaml2_spid/spid_request.py
damikael/spid-django
3ca45df31195541ac669503dc85ae753254c6d00
[ "Apache-2.0" ]
null
null
null
import logging import saml2 from django.conf import settings from django.urls import reverse from djangosaml2.overrides import Saml2Client from saml2.authn_context import requested_authn_context SAML2_DEFAULT_BINDING = getattr( settings, 'SAML2_DEFAULT_BINDING', saml2.BINDING_HTTP_POST ) logger = logging.getLog...
32.75
117
0.744457
794db86c0f04c54e26810ea29f0f98d549f3d0b4
3,540
py
Python
decompile.py
grievejia/ApkToJava
e38ced1abe778b8797f0bc2b784a1a6fa829b3c4
[ "MIT" ]
3
2017-08-22T09:48:21.000Z
2021-02-07T21:28:26.000Z
decompile.py
grievejia/ApkToJava
e38ced1abe778b8797f0bc2b784a1a6fa829b3c4
[ "MIT" ]
null
null
null
decompile.py
grievejia/ApkToJava
e38ced1abe778b8797f0bc2b784a1a6fa829b3c4
[ "MIT" ]
2
2017-05-24T15:19:36.000Z
2021-02-07T21:28:27.000Z
#!/usr/bin/env python3 """ Android decompiler """ from argparse import ArgumentParser import logging from pathlib import Path import sys import subprocess from tempfile import TemporaryDirectory __author__ = 'Grievejia' __version__ = '0.1' def sanity_check(args): for filepath in args.files: if not filepath.exists(...
34.368932
102
0.682768
794db8b09ddaa218c809057b5bd1e0e8ce83b040
2,512
py
Python
core_tools/sweeps/pulse_lib_wrappers/PSB_exp.py
peendebak/core_tools
2e43edf0bbc1d7ceb7042559db499535e8f6a076
[ "BSD-2-Clause" ]
null
null
null
core_tools/sweeps/pulse_lib_wrappers/PSB_exp.py
peendebak/core_tools
2e43edf0bbc1d7ceb7042559db499535e8f6a076
[ "BSD-2-Clause" ]
null
null
null
core_tools/sweeps/pulse_lib_wrappers/PSB_exp.py
peendebak/core_tools
2e43edf0bbc1d7ceb7042559db499535e8f6a076
[ "BSD-2-Clause" ]
null
null
null
from core_tools.utility.digitizer_param_conversions import IQ_to_scalar, down_sampler,data_reshaper, PSB_param, get_phase_compentation_IQ_signal from core_tools.utility.mk_digitizer_param import get_digitizer_param from core_tools.utility.dig_utility import autoconfig_dig_v2, MODES from core_tools.drivers.M3102A impor...
36.405797
144
0.759952
794db934a7ddd4480315d1ea9d71cf1feecf077a
5,622
py
Python
MHD/FEniCS/MHD/Stabilised/SaddlePointForm/Test/SplitMatrix/P1P1/Solver.py
wathen/PhD
35524f40028541a4d611d8c78574e4cf9ddc3278
[ "MIT" ]
3
2020-10-25T13:30:20.000Z
2021-08-10T21:27:30.000Z
MHD/FEniCS/MHD/Stabilised/SaddlePointForm/Test/SplitMatrix/P1P1/Solver.py
wathen/PhD
35524f40028541a4d611d8c78574e4cf9ddc3278
[ "MIT" ]
null
null
null
MHD/FEniCS/MHD/Stabilised/SaddlePointForm/Test/SplitMatrix/P1P1/Solver.py
wathen/PhD
35524f40028541a4d611d8c78574e4cf9ddc3278
[ "MIT" ]
3
2019-10-28T16:12:13.000Z
2020-01-13T13:59:44.000Z
from dolfin import assemble, MixedFunctionSpace, tic,toc import petsc4py import sys petsc4py.init(sys.argv) from petsc4py import PETSc import CheckPetsc4py as CP import StokesPrecond import NSpreconditioner import MaxwellPrecond as MP import MatrixOperations as MO import PETScIO as IO import numpy as np import P as P...
33.464286
257
0.574884
794db9d6baaa01685f9b80350dd55255b583f8a3
4,644
py
Python
lib/bridgedb/Time.py
wfn/bridgedb
f266f32c365eb7a16cf156cc02f7e492266a7b51
[ "BSD-3-Clause-Clear" ]
1
2016-09-21T12:55:21.000Z
2016-09-21T12:55:21.000Z
lib/bridgedb/Time.py
wfn/bridgedb
f266f32c365eb7a16cf156cc02f7e492266a7b51
[ "BSD-3-Clause-Clear" ]
null
null
null
lib/bridgedb/Time.py
wfn/bridgedb
f266f32c365eb7a16cf156cc02f7e492266a7b51
[ "BSD-3-Clause-Clear" ]
null
null
null
# BridgeDB by Nick Mathewson. # Copyright (c) 2007-2009, The Tor Project, Inc. # See LICENSE for licensing information """ This module implements functions for dividing time into chunks. """ import calendar import time KNOWN_INTERVALS = [ "hour", "day", "week", "month" ] class Schedule: def intervalStart(self, ...
35.723077
78
0.546296
794dbb0ee7e8b8350c669427147314eccfd919bd
347
py
Python
gge_proxy_manager/tasks.py
mrcrgl/gge-storage
a8471624c1a865d4f7eeb00415bd4cd2a91ea310
[ "MIT" ]
null
null
null
gge_proxy_manager/tasks.py
mrcrgl/gge-storage
a8471624c1a865d4f7eeb00415bd4cd2a91ea310
[ "MIT" ]
1
2015-04-09T15:58:19.000Z
2015-04-14T06:37:02.000Z
gge_proxy_manager/tasks.py
mrcrgl/gge-storage
a8471624c1a865d4f7eeb00415bd4cd2a91ea310
[ "MIT" ]
null
null
null
from .methods import clean_duplicate_players, clean_duplicate_alliances, clean_duplicate_castles import celery @celery.task def clean_duplicates(*args, **kwargs): print "Clean castles..." clean_duplicate_castles() print "Clean players..." clean_duplicate_players() print "Clean alliances..." ...
24.785714
96
0.757925
794dbb832780aa5cdaa4f8a1ca99c6dd5bd6f288
3,078
py
Python
python/helpers/pydev/_pydev_bundle/pydev_ipython_code_executor.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/helpers/pydev/_pydev_bundle/pydev_ipython_code_executor.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/helpers/pydev/_pydev_bundle/pydev_ipython_code_executor.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
import sys import traceback from _pydev_bundle.pydev_code_executor import BaseCodeExecutor from _pydev_bundle.pydev_ipython_console_011 import get_pydev_ipython_frontend from _pydevd_bundle.pydevd_constants import dict_iter_items # Uncomment to force PyDev standard shell. # raise ImportError() # TODO reuse `CodeExe...
39.974026
121
0.598116
794dbc0c94eb68d3f533d5b6ca14865a8896bf7e
34,754
py
Python
solver.py
michaelaesquire/stargan-morpheus
022eab14d26e06c24de91091fe06a207e199fb53
[ "MIT" ]
1
2020-07-28T18:59:53.000Z
2020-07-28T18:59:53.000Z
solver.py
michaelaesquire/stargan-morpheus
022eab14d26e06c24de91091fe06a207e199fb53
[ "MIT" ]
null
null
null
solver.py
michaelaesquire/stargan-morpheus
022eab14d26e06c24de91091fe06a207e199fb53
[ "MIT" ]
null
null
null
from model import Generator from model import Discriminator from torch.autograd import Variable from torchvision.utils import save_image from torchvision.utils import make_grid import torch import torch.nn.functional as F import numpy as np import os import time import datetime from PIL import Image import cv2 class ...
49.790831
166
0.508776
794dbd4a4984846367c3a9606fbdc3f433cabd55
135,885
py
Python
oblib/tests/test_json_clips.py
michael-bbs/pyoblib
f7f11d455809d80b7701fa89b69995dc703dfbab
[ "Apache-2.0" ]
null
null
null
oblib/tests/test_json_clips.py
michael-bbs/pyoblib
f7f11d455809d80b7701fa89b69995dc703dfbab
[ "Apache-2.0" ]
null
null
null
oblib/tests/test_json_clips.py
michael-bbs/pyoblib
f7f11d455809d80b7701fa89b69995dc703dfbab
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 SunSpec Alliance # 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.69328
131
0.411878
794dbd8fd6bd42e6b27c901deb0aafa877641475
584
py
Python
blousebrothers/confs/management/commands/clean_conf_images.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
1
2022-01-27T11:58:10.000Z
2022-01-27T11:58:10.000Z
blousebrothers/confs/management/commands/clean_conf_images.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
5
2021-03-19T00:01:54.000Z
2022-03-11T23:46:21.000Z
blousebrothers/confs/management/commands/clean_conf_images.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from blousebrothers.confs.models import Conference class Command(BaseCommand): help = 'Check conference images given his conference slug' def add_arguments(self, parser): # This is an optional argument parser.add_argument('slug', nargs='+', ty...
34.352941
62
0.666096
794dbda5ee0dfbbdd30bd7de21cd621fe36055d3
16,036
py
Python
v/lib/python2.7/site-packages/sphinx/directives/other.py
lucywyman/slides-ii
5b00451bfabaa7e17aa32072c65d8ca7f5e3769f
[ "Apache-2.0" ]
1
2021-05-13T19:48:03.000Z
2021-05-13T19:48:03.000Z
sphinx/directives/other.py
Rapptz/sphinx
9ff6eb55f83893e1bbdd06db87321b0c46f206e0
[ "BSD-2-Clause" ]
null
null
null
sphinx/directives/other.py
Rapptz/sphinx
9ff6eb55f83893e1bbdd06db87321b0c46f206e0
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ sphinx.directives.other ~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from six.moves import range from docutils import nodes from docutils.parsers.rst import Directive, directives from do...
37.12037
90
0.602582
794dbe94a4ebec5f45950698cf43f413e6e94506
416
py
Python
phigaro/batch/runner.py
Stormrider935/phigaro
d2dfb311d069e8edc6261b800f73380687b58798
[ "MIT" ]
1
2022-03-09T13:57:06.000Z
2022-03-09T13:57:06.000Z
phigaro/batch/runner.py
Stormrider935/phigaro
d2dfb311d069e8edc6261b800f73380687b58798
[ "MIT" ]
null
null
null
phigaro/batch/runner.py
Stormrider935/phigaro
d2dfb311d069e8edc6261b800f73380687b58798
[ "MIT" ]
null
null
null
from .task.base import AbstractTask import logging logger = logging.getLogger(__name__) def run_tasks_chain(tasks_chain): """ :type tasks_chain: list[AbstractTask] :rtype: str """ for task in tasks_chain: logger.info("Executing {task}. output: {output}".format( task=task.task...
19.809524
64
0.620192
794dc0d18821e1cdba546e3d23cd9deed75ef312
3,312
py
Python
manager/apps/brand/migrations/0009_auto__add_field_brand_brand_logo.py
willArrive/brand-manager
8fc9b07921b970e88c2e2abd2a69c0e8a27ad212
[ "MIT" ]
3
2016-11-17T14:21:25.000Z
2019-11-15T16:25:11.000Z
manager/apps/brand/migrations/0009_auto__add_field_brand_brand_logo.py
willArrive/brand-manager
8fc9b07921b970e88c2e2abd2a69c0e8a27ad212
[ "MIT" ]
null
null
null
manager/apps/brand/migrations/0009_auto__add_field_brand_brand_logo.py
willArrive/brand-manager
8fc9b07921b970e88c2e2abd2a69c0e8a27ad212
[ "MIT" ]
1
2016-12-19T23:32:48.000Z
2016-12-19T23:32:48.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Brand.brand_logo' db.add_column(u'brand', 'brand_logo', ...
63.692308
171
0.594203
794dc26bd4f1464b1d2f8d54f3a8054d514960ef
4,278
py
Python
Project2Manifold.py
thu-fit/DCGAN-anime
da549bd45a6ca3c4c5a8894945d3242c59f823a0
[ "MIT" ]
null
null
null
Project2Manifold.py
thu-fit/DCGAN-anime
da549bd45a6ca3c4c5a8894945d3242c59f823a0
[ "MIT" ]
null
null
null
Project2Manifold.py
thu-fit/DCGAN-anime
da549bd45a6ca3c4c5a8894945d3242c59f823a0
[ "MIT" ]
null
null
null
from model import DCGAN import tensorflow as tf from utils import * from ops import * import numpy as np from utils_extended import * import os class Project2Manifold: def __init__(self, dcgan, FLAGS): self.dcgan = dcgan self.FLAGS = FLAGS self.output_height = FLAGS.output_height self.output_width = ...
33.952381
120
0.654278
794dc459f5bb403856c9a652bb2463eee15f6644
1,621
py
Python
qiskit_nature/drivers/watson_hamiltonian.py
divshacker/qiskit-nature
08f6dcec5e4ac8c08f5b84e764ee78cc3d12facb
[ "Apache-2.0" ]
null
null
null
qiskit_nature/drivers/watson_hamiltonian.py
divshacker/qiskit-nature
08f6dcec5e4ac8c08f5b84e764ee78cc3d12facb
[ "Apache-2.0" ]
null
null
null
qiskit_nature/drivers/watson_hamiltonian.py
divshacker/qiskit-nature
08f6dcec5e4ac8c08f5b84e764ee78cc3d12facb
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2020, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
31.784314
88
0.657002
794dc4eb1e3d23a5e3c4cfe480a62ddd7639579b
121
py
Python
test_suite/microbenchmarks/bench11/test.py
joncatanio/cannoli
410f6bea362bf9e33eecc0e01fb080dadd14ef23
[ "MIT" ]
755
2017-12-09T05:34:43.000Z
2022-03-26T09:15:56.000Z
test_suite/microbenchmarks/bench11/test.py
joncatanio/cannoli
410f6bea362bf9e33eecc0e01fb080dadd14ef23
[ "MIT" ]
8
2017-12-12T01:03:18.000Z
2020-06-29T01:41:03.000Z
test_suite/microbenchmarks/bench11/test.py
joncatanio/cannoli
410f6bea362bf9e33eecc0e01fb080dadd14ef23
[ "MIT" ]
23
2018-05-17T17:48:23.000Z
2022-03-26T09:15:57.000Z
lst = [] i = 0 while i < 100: i += 1 lst.append(i) i = 0 while i < 1000000: i += 1 reversed_lst = lst[::-1]
11
27
0.487603
794dc69b278c1ea0bc6f99f1bd1710158343f430
730
py
Python
lib_ddos_simulator/managers/protag/isolator_2i_kf.py
jfuruness/lib_ddos_simulator
2d860fd3f35f4c25262f5269251eed89975f95e8
[ "BSD-4-Clause" ]
1
2020-04-01T22:42:36.000Z
2020-04-01T22:42:36.000Z
lib_ddos_simulator/managers/protag/isolator_2i_kf.py
jfuruness/lib_ddos_simulator
2d860fd3f35f4c25262f5269251eed89975f95e8
[ "BSD-4-Clause" ]
null
null
null
lib_ddos_simulator/managers/protag/isolator_2i_kf.py
jfuruness/lib_ddos_simulator
2d860fd3f35f4c25262f5269251eed89975f95e8
[ "BSD-4-Clause" ]
1
2020-02-16T17:55:46.000Z
2020-02-16T17:55:46.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """This module contains the class Protag_Manager, which manages a cloud This manager inherits Manager class and uses Protag shuffling algorithm """ __Lisence__ = "BSD" __maintainer__ = "Justin Furuness" __email__ = "jfuruness@gmail.com, agorbenko97@gmail.com" __status__...
23.548387
71
0.747945
794dc76a76b28232977f2db994766a3d5589085d
104
py
Python
app/forms/user/__init__.py
jinxiu89/uwget
1827f882a091a68a77d00086968f695991e5278a
[ "MIT" ]
null
null
null
app/forms/user/__init__.py
jinxiu89/uwget
1827f882a091a68a77d00086968f695991e5278a
[ "MIT" ]
1
2021-06-02T00:29:20.000Z
2021-06-02T00:29:20.000Z
app/forms/user/__init__.py
jinxiu89/uwget
1827f882a091a68a77d00086968f695991e5278a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # _*_ coding:utf-8_*_ # author:jinxiu89@163.com # create by thomas on 2019/6/23.
17.333333
32
0.692308
794dc79171a2ce2367be2ef9b7e3b8cfe9f83587
4,812
py
Python
app/main/views.py
neverland0/quickForm
431635326a1d8d66d4a9a7d47cdaa1d83ab0eec4
[ "MIT" ]
null
null
null
app/main/views.py
neverland0/quickForm
431635326a1d8d66d4a9a7d47cdaa1d83ab0eec4
[ "MIT" ]
null
null
null
app/main/views.py
neverland0/quickForm
431635326a1d8d66d4a9a7d47cdaa1d83ab0eec4
[ "MIT" ]
null
null
null
from flask import render_template, jsonify, request from . import main import json,datetime from flask_login import current_user, login_required from ..models import Questionnaire, Item, Answer, Map, User @main.route('/') def index(): return render_template('index.html') @main.route('/design', methods=['GET', 'PO...
28.814371
89
0.554863
794dc8e0ac2faec7eabae56260b6fb42ff259ab0
87
py
Python
plugins/microsoft_atp/komand_microsoft_atp/actions/get_security_recommendations/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/microsoft_atp/komand_microsoft_atp/actions/get_security_recommendations/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/microsoft_atp/komand_microsoft_atp/actions/get_security_recommendations/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT from .action import GetSecurityRecommendations
29
46
0.816092
794dca0896f9e27bdd1c6e5d6b022448cdf74b5d
53
py
Python
good/expIntegers.py
Alberto42/Interpreter
a56c4d905672572734a8470ef607b66727489f15
[ "BSD-3-Clause" ]
null
null
null
good/expIntegers.py
Alberto42/Interpreter
a56c4d905672572734a8470ef607b66727489f15
[ "BSD-3-Clause" ]
null
null
null
good/expIntegers.py
Alberto42/Interpreter
a56c4d905672572734a8470ef607b66727489f15
[ "BSD-3-Clause" ]
null
null
null
x = 1 + 2 y = 2 * 2 z = 5 - 3 v = 5 / 3 a = x + y + z
10.6
13
0.301887
794dcba2606c5ac6d956b74b840e581c64f592b4
4,742
py
Python
library/k8s_v1beta1_token_review.py
ansible/ansible-kubernetes-modules-
b5c7a85de6173c2f6141f19a130ff37b1fdafbf6
[ "Apache-2.0" ]
91
2017-03-23T03:46:43.000Z
2021-06-03T18:30:03.000Z
library/k8s_v1beta1_token_review.py
ansible/ansible-kubernetes-modules-
b5c7a85de6173c2f6141f19a130ff37b1fdafbf6
[ "Apache-2.0" ]
28
2017-06-02T18:21:13.000Z
2020-01-29T22:33:05.000Z
library/k8s_v1beta1_token_review.py
ansible/ansible-kubernetes-modules-
b5c7a85de6173c2f6141f19a130ff37b1fdafbf6
[ "Apache-2.0" ]
40
2017-03-23T03:46:45.000Z
2022-02-01T14:29:21.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from ansible.module_utils.k8s_common import KubernetesAnsibleModule, KubernetesAnsibleException DOCUMENTATION = ''' module: k8s_v1beta1_token_review short_description: Kubernetes TokenReview description: - Manage the lifecycle of a token_review object. Supports check mode, an...
32.040541
100
0.706031
794dcc0d5bad5987a8c5aace14fd42c9321e5a5b
37
py
Python
tests/commands/iot/__init__.py
epenet/aioguardian
2050c83ea746f831872f62569eecd85226112353
[ "MIT" ]
1
2020-06-26T05:25:34.000Z
2020-06-26T05:25:34.000Z
tests/commands/iot/__init__.py
epenet/aioguardian
2050c83ea746f831872f62569eecd85226112353
[ "MIT" ]
79
2020-04-15T00:35:44.000Z
2022-03-31T10:07:58.000Z
tests/commands/iot/__init__.py
epenet/aioguardian
2050c83ea746f831872f62569eecd85226112353
[ "MIT" ]
6
2020-09-04T16:06:18.000Z
2022-03-30T18:42:37.000Z
"""Define tests for IOT commands."""
18.5
36
0.675676
794dcc36fb59afb3ea020bbbd423fde8116dedf6
9,327
py
Python
preprocess.py
c1a1o1/ByteSing-tf1.10
5ad0c76bd5bae8515108bd1811fcd589ac46300a
[ "MIT" ]
2
2022-01-09T13:32:07.000Z
2022-02-01T06:33:39.000Z
preprocess.py
c1a1o1/ByteSing-tf1.10
5ad0c76bd5bae8515108bd1811fcd589ac46300a
[ "MIT" ]
null
null
null
preprocess.py
c1a1o1/ByteSing-tf1.10
5ad0c76bd5bae8515108bd1811fcd589ac46300a
[ "MIT" ]
1
2021-12-29T08:52:36.000Z
2021-12-29T08:52:36.000Z
# coding:utf- import argparse import os from multiprocessing import cpu_count import wave from pydub import AudioSegment import music21 as m21 from concurrent.futures import ProcessPoolExecutor import numpy as np from functools import partial from tqdm import tqdm from myData import pinyin from datasets import audio f...
40.202586
124
0.637397
794dcc9da123fd3026508cb55b125c9cb70768e0
3,117
py
Python
ganjoor/spiders/khaghani/divankh/scrapyghasidekh.py
amirmasoud/ganjoor-crawler
a86fe379955ce854765086ab7ba0a78513d052bd
[ "MIT" ]
null
null
null
ganjoor/spiders/khaghani/divankh/scrapyghasidekh.py
amirmasoud/ganjoor-crawler
a86fe379955ce854765086ab7ba0a78513d052bd
[ "MIT" ]
null
null
null
ganjoor/spiders/khaghani/divankh/scrapyghasidekh.py
amirmasoud/ganjoor-crawler
a86fe379955ce854765086ab7ba0a78513d052bd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy class scrapyghasidekhSpider(scrapy.Spider): name = "scrapyghasidekh" allowed_domains = ["ganjoor.net"] if 224 == 1: start_urls = ["https://ganjoor.net/khaghani/divankh/ghasidekh/sh"] else: start_urls = ["https://ganjoor.net/khaghani/divankh/ghasidek...
51.098361
210
0.45717
794dcd9fe4c4a500ad2bd233a27fda8949c6373a
887
py
Python
socketshark/constants.py
Play2Live/socketshark
9b1e40654bf629c593079fb44c548911d4c864af
[ "MIT" ]
70
2017-06-15T01:30:56.000Z
2022-03-18T19:35:26.000Z
socketshark/constants.py
Play2Live/socketshark
9b1e40654bf629c593079fb44c548911d4c864af
[ "MIT" ]
40
2017-08-03T20:54:43.000Z
2021-12-06T10:43:53.000Z
socketshark/constants.py
Play2Live/socketshark
9b1e40654bf629c593079fb44c548911d4c864af
[ "MIT" ]
7
2018-10-03T10:00:10.000Z
2021-11-05T07:14:33.000Z
# Authentication method to use if "method" param is omitted. DEFAULT_AUTH_METHOD = 'ticket' # Max string length of the "event" parameter. MAX_EVENT_LENGTH = 40 # General event errors ERR_INVALID_EVENT = 'Messages must be JSON and contain an event field.' ERR_UNHANDLED_EXCEPTION = 'Unhandled exception.' ERR_EVENT_NOT_...
35.48
71
0.808343
794dcdf5698e7a57b8c61f87d36df8e54a5be188
2,968
py
Python
06/Python/assembler.py
MrEbbinghaus/nand2tetris
1d01969761dbca674b5b31238253ce56b632bfe9
[ "MIT" ]
null
null
null
06/Python/assembler.py
MrEbbinghaus/nand2tetris
1d01969761dbca674b5b31238253ce56b632bfe9
[ "MIT" ]
null
null
null
06/Python/assembler.py
MrEbbinghaus/nand2tetris
1d01969761dbca674b5b31238253ce56b632bfe9
[ "MIT" ]
null
null
null
#python3 from sys import argv from os import path from re import sub memoryCounter = 16 symbolTable = { "SCREEN":int("4000",16), "SP":0, "LCL":1, "ARG":2, "THIS":3, "THAT":4, "KBD":int("6000",16), } jmpTable = { "null":"000", "JGT":"001", "JEQ":"010", "JGE":"011", "JLT":"100", "JNE":"101", "JLE":"110...
16.218579
85
0.583895
794dceadb1e9891584adab104b35a53490cb3374
3,055
py
Python
tools/linux-tick-processor.py
martine/v8c
222c7cd957ea7be31701172e8f66e4c31d0aa3f4
[ "BSD-3-Clause-Clear" ]
3
2015-01-01T16:04:49.000Z
2016-05-08T13:54:15.000Z
tools/linux-tick-processor.py
martine/v8c
222c7cd957ea7be31701172e8f66e4c31d0aa3f4
[ "BSD-3-Clause-Clear" ]
null
null
null
tools/linux-tick-processor.py
martine/v8c
222c7cd957ea7be31701172e8f66e4c31d0aa3f4
[ "BSD-3-Clause-Clear" ]
null
null
null
#!/usr/bin/env python # # Copyright 2008 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # noti...
37.256098
87
0.68216
794dcf8e928665c70c1d925de63b7567b8085bb2
787
py
Python
nxxcgram/notifications/views.py
nxxc/nxxcgram
bad344d92f75ee46bfadf3b5dacbe99668c9e9ca
[ "MIT" ]
null
null
null
nxxcgram/notifications/views.py
nxxc/nxxcgram
bad344d92f75ee46bfadf3b5dacbe99668c9e9ca
[ "MIT" ]
8
2020-06-05T19:40:44.000Z
2022-02-26T13:25:34.000Z
nxxcgram/notifications/views.py
nxxc/nxxcgram
bad344d92f75ee46bfadf3b5dacbe99668c9e9ca
[ "MIT" ]
null
null
null
from rest_framework.response import Response from rest_framework.views import APIView from rest_framework import status from . import models, serializers class Notifications(APIView): def get(self, request, format=None): user = request.user notifications = models.Notification.objects.filter(to=...
24.59375
82
0.726811
794dd0cbdaa93e2af91ed7b66c579171bb48ffd0
7,289
py
Python
resto_client_tests/resto_client_cli_test.py
CNES/resto_client
7048bd79c739e33882ebd664790dcf0528e81aa4
[ "Apache-2.0" ]
6
2019-12-20T09:12:30.000Z
2021-07-08T11:44:55.000Z
resto_client_tests/resto_client_cli_test.py
CNES/resto_client
7048bd79c739e33882ebd664790dcf0528e81aa4
[ "Apache-2.0" ]
null
null
null
resto_client_tests/resto_client_cli_test.py
CNES/resto_client
7048bd79c739e33882ebd664790dcf0528e81aa4
[ "Apache-2.0" ]
1
2019-12-17T20:16:39.000Z
2019-12-17T20:16:39.000Z
# -*- coding: utf-8 -*- """ .. admonition:: License Copyright 2019 CNES 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...
38.162304
100
0.634655
794dd121633adfafef9329e0e840cf7cfdc49418
2,677
py
Python
src/zibalzeep/__main__.py
imanashoorii/zibal-zeep
9ff7b229b0759597823da41d1dbf48c6e7b5b383
[ "MIT" ]
null
null
null
src/zibalzeep/__main__.py
imanashoorii/zibal-zeep
9ff7b229b0759597823da41d1dbf48c6e7b5b383
[ "MIT" ]
null
null
null
src/zibalzeep/__main__.py
imanashoorii/zibal-zeep
9ff7b229b0759597823da41d1dbf48c6e7b5b383
[ "MIT" ]
null
null
null
from __future__ import absolute_import, print_function import argparse import logging import logging.config import time from urllib.parse import urlparse import requests from zibalzeep.cache import SqliteCache from zibalzeep.client import Client from zibalzeep.settings import Settings from zibalzeep.transports impor...
28.784946
87
0.592081
794dd2965690fbe61acdf89fcfecd05fb465748f
2,459
py
Python
10_Other/Cuda Benchmarking/1_matrixMul.py
Arunken/PythonScripts
702d0a3af7a9be3311f9da0afc5285d453f15484
[ "Apache-2.0" ]
null
null
null
10_Other/Cuda Benchmarking/1_matrixMul.py
Arunken/PythonScripts
702d0a3af7a9be3311f9da0afc5285d453f15484
[ "Apache-2.0" ]
1
2021-06-02T00:58:47.000Z
2021-06-02T00:58:47.000Z
10_Other/Cuda Benchmarking/1_matrixMul.py
Arunken/PythonScripts
702d0a3af7a9be3311f9da0afc5285d453f15484
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Oct 14 09:44:05 2018 @author: arken """ # ============== no cuda ================================================== from tensorflow.python.client import device_lib print(device_lib.list_local_devices()) import os os.environ["CUDA_VISIBLE_DEVICES"]="1" ...
22.354545
127
0.581944
794dd3ca09ebb3c86926e59925694ad627a865df
5,672
py
Python
chrome/credential_provider/build/make_setup.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/credential_provider/build/make_setup.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/credential_provider/build/make_setup.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # This script builds the credential provider installer that is used to install # all required components of the Google Credential Prov...
38.849315
80
0.732017
794dd45f225b7bc3d2d7a02ac6ed80f2fcd23765
7,783
py
Python
tests/test_engine/test_update/test_update_mul.py
bobuk/montydb
9ee299e7f1d3a7236abb683e0dfe4f7817859b2c
[ "BSD-3-Clause" ]
478
2019-07-31T00:48:11.000Z
2022-03-18T09:12:29.000Z
tests/test_engine/test_update/test_update_mul.py
bobuk/montydb
9ee299e7f1d3a7236abb683e0dfe4f7817859b2c
[ "BSD-3-Clause" ]
47
2019-07-28T10:12:22.000Z
2022-01-04T16:25:12.000Z
tests/test_engine/test_update/test_update_mul.py
bobuk/montydb
9ee299e7f1d3a7236abb683e0dfe4f7817859b2c
[ "BSD-3-Clause" ]
26
2019-08-09T14:28:29.000Z
2022-02-22T02:49:51.000Z
import pytest from pymongo.errors import WriteError as mongo_write_err from montydb.errors import WriteError as monty_write_err from montydb.types import bson from ...conftest import skip_if_no_bson def test_update_mul_1(monty_update, mongo_update): docs = [ {"a": 1} ] spec = {"$mul": {"a": 2}}...
25.434641
73
0.588077
794dd51c70497c0d2598e1a62e9984d2bd0cdf61
2,817
py
Python
Testing/Generator/checker.py
PajekRadek/test
611b4f990fa7214227ac95d2ba85b0e336cc52d4
[ "MIT" ]
null
null
null
Testing/Generator/checker.py
PajekRadek/test
611b4f990fa7214227ac95d2ba85b0e336cc52d4
[ "MIT" ]
null
null
null
Testing/Generator/checker.py
PajekRadek/test
611b4f990fa7214227ac95d2ba85b0e336cc52d4
[ "MIT" ]
null
null
null
import asyncio import aiosonic import re import os import time import threading from tasksio import TaskPool from colorama import init, Fore, Back, Style init(convert=True) TOKENS_LOADED = 0 TOKENS_INVALID = 0 TOKENS_LOCKED = 0 TOKENS_VALID = 0 TOKENS_VALID_LIST = [] def filter_tokens(unfiltered):...
32.755814
147
0.587859
794dd56a1523b27531f48737d515e251f07fc768
6,199
py
Python
S4_3_Unknown_AD/cnn_lstm.py
gaofujie1997/ECG-ADGAN
ee48bd4c8e5992d0e1180fb7bdf85b126ceba146
[ "MIT" ]
2
2022-03-22T09:31:08.000Z
2022-03-22T09:41:30.000Z
S4_3_Unknown_AD/cnn_lstm.py
gaofujie1997/ECG-ADGAN
ee48bd4c8e5992d0e1180fb7bdf85b126ceba146
[ "MIT" ]
null
null
null
S4_3_Unknown_AD/cnn_lstm.py
gaofujie1997/ECG-ADGAN
ee48bd4c8e5992d0e1180fb7bdf85b126ceba146
[ "MIT" ]
null
null
null
import pickle import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from sklearn.metrics import confusion_matrix X_N = pickle.load(open("../data/X_AMMI_N.pkl", "rb"))[0:1000] print(np.shape(X_N)) X_N_label = np.zeros([np.shape(X_N)[0], 1]) X_S = pickle.load(open("../data/X_AMMI_S.pkl", "rb"))[0:3...
31.467005
105
0.670108
794dd5ab748d21c0db82b4304189cdc4cb87113a
173,983
py
Python
proteus/SubgridError.py
yuxianglin/proteus
ac5d5223410b1a1f270615f987e9cf327fb802af
[ "NASA-1.3" ]
null
null
null
proteus/SubgridError.py
yuxianglin/proteus
ac5d5223410b1a1f270615f987e9cf327fb802af
[ "NASA-1.3" ]
null
null
null
proteus/SubgridError.py
yuxianglin/proteus
ac5d5223410b1a1f270615f987e9cf327fb802af
[ "NASA-1.3" ]
null
null
null
""" A class hierarchy for subgrid error estimation methods (multiscale methods) .. inheritance-diagram:: proteus.SubgridError :parts: 1 """ import numpy import csubgridError import FemTools from .Profiling import logEvent class SGE_base: def __init__(self,coefficients,nd,lag=False,trackSubScales=False): ...
65.25994
215
0.337573