hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
01fb854b0d0ac3cf71b900816c8f1a8866f1ec75
4,071
py
Python
modelvshuman/models/pytorch/simclr/utils/gdrive.py
TizianThieringer/model-vs-human
17729b8167520f682d93d55c340c27de07bb2681
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
158
2021-06-04T15:19:58.000Z
2022-03-30T00:31:28.000Z
modelvshuman/models/pytorch/simclr/utils/gdrive.py
TizianThieringer/model-vs-human
17729b8167520f682d93d55c340c27de07bb2681
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
7
2021-07-20T03:57:34.000Z
2022-02-01T11:00:47.000Z
modelvshuman/models/pytorch/simclr/utils/gdrive.py
TizianThieringer/model-vs-human
17729b8167520f682d93d55c340c27de07bb2681
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
14
2021-06-16T13:33:11.000Z
2022-03-29T15:04:09.000Z
import requests import torch import os import sys import hashlib import re import errno from tqdm import tqdm import warnings import zipfile import gdown from gdown.parse_url import parse_url def _get_name(id): """ Gets the base url name from the gdrive using the file id. """ url = 'https://drive...
33.644628
125
0.642348
b61f4e6cf3bc674f3901ca5169d9684d35c6d7fa
9,436
py
Python
server/lib/python/cartodb_services/test/refactor/service/test_mapzen_geocoder_config.py
digideskio/dataservices-api
246ec135dbeaa3f9a52717fdac50a4ab040ce22b
[ "BSD-3-Clause" ]
22
2016-03-11T17:33:31.000Z
2021-02-22T04:00:43.000Z
server/lib/python/cartodb_services/test/refactor/service/test_mapzen_geocoder_config.py
digideskio/dataservices-api
246ec135dbeaa3f9a52717fdac50a4ab040ce22b
[ "BSD-3-Clause" ]
338
2016-02-16T16:13:13.000Z
2022-03-30T15:50:17.000Z
server/lib/python/cartodb_services/test/refactor/service/test_mapzen_geocoder_config.py
CartoDB/dataservices-api
d0f28cc002ef11df9f371d5d1fd2d0901c245f97
[ "BSD-3-Clause" ]
14
2016-09-22T15:29:33.000Z
2021-02-08T03:46:40.000Z
from unittest import TestCase from mockredis import MockRedis from datetime import datetime from cartodb_services.refactor.service.mapzen_geocoder_config import * from cartodb_services.refactor.storage.redis_config import * from cartodb_services.refactor.storage.mem_config import InMemoryConfigStorage class TestMapze...
55.181287
147
0.532323
ca178747a0ddd2dfb262e04c77a736c51c9fdca6
350
py
Python
docs/res/sphinx-config/conf.py
apifytech/apify-client-python
ebefbae724fcb11621ce666a3229206fe03ab486
[ "Apache-2.0" ]
5
2021-09-20T08:07:21.000Z
2022-02-23T13:15:05.000Z
docs/res/sphinx-config/conf.py
apifytech/apify-client-python
ebefbae724fcb11621ce666a3229206fe03ab486
[ "Apache-2.0" ]
33
2020-11-08T23:24:08.000Z
2021-09-20T08:42:44.000Z
docs/res/sphinx-config/conf.py
apify/apify-client-python
ebefbae724fcb11621ce666a3229206fe03ab486
[ "Apache-2.0" ]
null
null
null
import os import sys sys.path.insert(0, os.path.abspath('../../src/')) extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx_autodoc_typehints', 'sphinx_markdown_builder', ] autodoc_default_options = { 'members': True, 'member-order': 'bysource', } add_module_names = False nap...
16.666667
49
0.685714
b6b733e008445686e6c9128a76bacbff6a704775
10,586
py
Python
automaton/lib/registrar.py
nemec/Automaton
eea2f89dc10031fba45c80eb63053480dfc3543f
[ "MIT" ]
6
2016-01-05T09:14:57.000Z
2021-05-17T20:46:46.000Z
automaton/lib/registrar.py
nemec/Automaton
eea2f89dc10031fba45c80eb63053480dfc3543f
[ "MIT" ]
null
null
null
automaton/lib/registrar.py
nemec/Automaton
eea2f89dc10031fba45c80eb63053480dfc3543f
[ "MIT" ]
1
2018-12-18T02:37:24.000Z
2018-12-18T02:37:24.000Z
import copy from threading import Lock from collections import defaultdict from automaton.lib.interpreter import Interpreter from automaton.lib.utils import locked import automaton.lib.logger as logger class ServiceDoesNotExist(Exception): """Indicates that a requested service does not exist in the registrar. ...
29.405556
78
0.688929
542c1d6cc3f54ab9ae1ea79dcf0173a96cd1d637
342
py
Python
distpy/calc/cupy_facade.py
billmcchesney1/distpy
fa49d2a910b164514057ee75fa570397b7004159
[ "MIT" ]
23
2020-02-12T13:25:22.000Z
2022-01-19T07:09:39.000Z
distpy/calc/cupy_facade.py
billmcchesney1/distpy
fa49d2a910b164514057ee75fa570397b7004159
[ "MIT" ]
2
2020-03-09T11:24:00.000Z
2020-09-14T10:50:51.000Z
distpy/calc/cupy_facade.py
billmcchesney1/distpy
fa49d2a910b164514057ee75fa570397b7004159
[ "MIT" ]
11
2020-03-28T16:40:39.000Z
2021-07-30T16:02:12.000Z
# (C) 2020, Schlumberger. Refer to LICENSE. ''' cupy_facade - a do-nothing class for devices that don't have cupy installed This allows CPU/GPU agnostic code to be written. We engage with the GPU via the cuda_facade. ''' import numpy def get_array_module(x): return numpy def asarray(x): return x def asn...
18
76
0.71345
d0a26469da1946edb21a8935512dcf2e4863a44c
313
py
Python
insertion_sort.py
dutraleonardo/sorting-algorithms
f2b40fcad27756b2b2392171e634592a73349f88
[ "Apache-2.0" ]
null
null
null
insertion_sort.py
dutraleonardo/sorting-algorithms
f2b40fcad27756b2b2392171e634592a73349f88
[ "Apache-2.0" ]
null
null
null
insertion_sort.py
dutraleonardo/sorting-algorithms
f2b40fcad27756b2b2392171e634592a73349f88
[ "Apache-2.0" ]
null
null
null
def ins_sort(data): for index in range(1, len(data)): current_value = data[index] position = index while position > 0 and data[position - 1] > current_value: data[position] = data[position - 1] position = position - 1 data[position] = current_value
24.076923
66
0.584665
6bf0573f51d3e81c40f68c40e37c57ac98a5ec62
5,960
py
Python
build/android/gyp/dist_aar.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
build/android/gyp/dist_aar.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
250
2018-02-02T23:16:57.000Z
2022-03-21T06:09:53.000Z
build/android/gyp/dist_aar.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
#!/usr/bin/env python3 # # Copyright 2017 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. """Creates an Android .aar file.""" import argparse import os import posixpath import shutil import sys import tempfile import zipf...
37.25
80
0.689933
07806fd3652fda3f2cbc32b699b1c68679d17f6c
6,227
py
Python
scattering/van_hove.py
XiaoboLinlin/scattering
0173b63f3243bdbcccfa562dbf5e3714920cded2
[ "MIT" ]
null
null
null
scattering/van_hove.py
XiaoboLinlin/scattering
0173b63f3243bdbcccfa562dbf5e3714920cded2
[ "MIT" ]
null
null
null
scattering/van_hove.py
XiaoboLinlin/scattering
0173b63f3243bdbcccfa562dbf5e3714920cded2
[ "MIT" ]
null
null
null
import itertools as it import numpy as np import mdtraj as md from progressbar import ProgressBar from scattering.utils.utils import get_dt from scattering.utils.constants import get_form_factor def compute_van_hove(trj, chunk_length, water=False, r_range=(0, 1.0), bin_width=0.005, n_bins=None,...
36.629412
117
0.604464
b4104a4bec0666d91bdb29b7dc6311cf3be19dc9
12,966
py
Python
tests/unit/test_oneview_server_profile_facts.py
SHANDCRUZ/test-codecov
f7aca851423641570fa86d3f8233235d14c71756
[ "Apache-2.0" ]
10
2020-12-14T19:06:14.000Z
2022-03-24T15:36:49.000Z
tests/unit/test_oneview_server_profile_facts.py
SHANDCRUZ/test-codecov
f7aca851423641570fa86d3f8233235d14c71756
[ "Apache-2.0" ]
40
2020-10-12T11:45:25.000Z
2022-03-29T14:43:47.000Z
tests/unit/test_oneview_server_profile_facts.py
SHANDCRUZ/test-codecov
f7aca851423641570fa86d3f8233235d14c71756
[ "Apache-2.0" ]
16
2020-10-05T14:48:56.000Z
2022-03-11T12:52:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ### # Copyright (2019-2020) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/l...
45.978723
120
0.700139
9799f0200f92c53b593d5290848d929cff76ebf8
914
py
Python
sahara_plugin_cdh/tests/unit/plugins/cdh/v5_11_0/test_validation.py
tellesnobrega/sahara-plugin-cdh
c6a8a3e11b40ee36a8b41069f2cb96c029461b65
[ "Apache-2.0" ]
2
2019-01-28T22:10:54.000Z
2019-02-20T08:35:58.000Z
sahara_plugin_cdh/tests/unit/plugins/cdh/v5_11_0/test_validation.py
openstack/sahara-plugin-cdh
063c3ee8de7e56831ef6b3bc8807706bd5fd7cea
[ "Apache-2.0" ]
null
null
null
sahara_plugin_cdh/tests/unit/plugins/cdh/v5_11_0/test_validation.py
openstack/sahara-plugin-cdh
063c3ee8de7e56831ef6b3bc8807706bd5fd7cea
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Intel Corpration # # 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 w...
36.56
74
0.776805
3469950c4adedc708699a630dfdc2133adedf41a
1,304
py
Python
kodekangaroo/urls.py
peterson-dev/code-snippet-app
b5ecb7b8b679c307d361a7ce100d4115f92d99a5
[ "MIT" ]
2
2019-05-22T21:54:43.000Z
2019-05-26T22:22:14.000Z
kodekangaroo/urls.py
peterson-dev/code-snippet-app
b5ecb7b8b679c307d361a7ce100d4115f92d99a5
[ "MIT" ]
14
2020-02-12T00:04:05.000Z
2022-03-11T23:51:10.000Z
kodekangaroo/urls.py
peterson-dev/kode-kangaroo
b5ecb7b8b679c307d361a7ce100d4115f92d99a5
[ "MIT" ]
null
null
null
"""kodekangaroo URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
36.222222
78
0.721626
91f9e8416d7788f26b978071d97a52432d95b68c
1,111
py
Python
veidt/metrics.py
yimingchen95/veidt
90f201f856d2f71c578f74b7391c0c9ff284986b
[ "BSD-3-Clause" ]
18
2018-01-18T08:32:26.000Z
2022-02-06T16:56:30.000Z
veidt/metrics.py
yimingchen95/veidt
90f201f856d2f71c578f74b7391c0c9ff284986b
[ "BSD-3-Clause" ]
77
2017-08-16T18:09:07.000Z
2020-04-03T13:17:17.000Z
veidt/metrics.py
yimingchen95/veidt
90f201f856d2f71c578f74b7391c0c9ff284986b
[ "BSD-3-Clause" ]
12
2017-09-11T17:23:26.000Z
2020-01-30T02:19:21.000Z
import numpy as np from sklearn.metrics import mean_squared_error, mean_absolute_error from veidt.utils.general_utils import deserialize_veidt_object from veidt.utils.general_utils import serialize_veidt_object def binary_accuracy(y_true, y_pred): return np.mean(np.array(y_true).ravel() == np.array(y_pred).ravel...
30.027027
89
0.687669
32efe6e2bf28508baa395c13eaba0a510626356b
714
py
Python
extractedDefs/mhside/fbx_binary/fbx_data_element_custom_properties.py
makehumancommunity/community-plugins-fbx
1f78be1723063cee0ae83232587431ab0f2e9894
[ "MIT" ]
1
2020-04-17T16:32:06.000Z
2020-04-17T16:32:06.000Z
extractedDefs/mhside/fbx_binary/fbx_data_element_custom_properties.py
makehumancommunity/community-plugins-fbx
1f78be1723063cee0ae83232587431ab0f2e9894
[ "MIT" ]
null
null
null
extractedDefs/mhside/fbx_binary/fbx_data_element_custom_properties.py
makehumancommunity/community-plugins-fbx
1f78be1723063cee0ae83232587431ab0f2e9894
[ "MIT" ]
5
2019-06-01T07:04:17.000Z
2022-02-21T14:14:51.000Z
def fbx_data_element_custom_properties(props, bid): """ Store custom properties of blender ID bid (any mapping-like object, in fact) into FBX properties props. """ for k, v in bid.items(): list_val = getattr(v, "to_list", lambda: None)() if isinstance(v, str): elem_props_set...
39.666667
107
0.623249
afe0df0028a449ced94ebf1440e30056ca11aadc
430
py
Python
easy/longest-continuous-increasing-subsequence.py
trilliwon/LeetCode
d137df53fa2489821b3c17ac22f24d9a1ae86304
[ "MIT" ]
null
null
null
easy/longest-continuous-increasing-subsequence.py
trilliwon/LeetCode
d137df53fa2489821b3c17ac22f24d9a1ae86304
[ "MIT" ]
null
null
null
easy/longest-continuous-increasing-subsequence.py
trilliwon/LeetCode
d137df53fa2489821b3c17ac22f24d9a1ae86304
[ "MIT" ]
null
null
null
class Solution: def findLengthOfLCIS(self, nums): """ :type nums: List[int] :rtype: int """ if not nums: return 0 ans = 0 counter = 0 for i in range(1, len(nums)): counter += 1 if nums[i] <= nums[i-1]: ...
21.5
39
0.423256
aeb95c571d5e7d539f8f58b85341de3ce793cf5e
1,070
py
Python
app/apps/notes/tests/fixtures.py
Capwell/practicum-app-profiles
c3dbc4565f83300ec5e4cc25b434002690185e56
[ "MIT" ]
null
null
null
app/apps/notes/tests/fixtures.py
Capwell/practicum-app-profiles
c3dbc4565f83300ec5e4cc25b434002690185e56
[ "MIT" ]
null
null
null
app/apps/notes/tests/fixtures.py
Capwell/practicum-app-profiles
c3dbc4565f83300ec5e4cc25b434002690185e56
[ "MIT" ]
null
null
null
import datetime from django.contrib.auth import get_user_model from django.db import transaction from django.test import TestCase from notes.forms import ArticleCreateForm from notes.models import Article class Settings(TestCase): @classmethod def setUpClass(cls): super().setUpClass() user ...
29.722222
78
0.621495
b396ec1a698daadc19ac148efa329de45101d245
536
py
Python
app/tasks.py
fossabot/fermentrack
3070bc14791b1482ec661607005ebda961ca3a8f
[ "MIT" ]
114
2017-03-19T22:51:45.000Z
2022-01-18T06:00:23.000Z
app/tasks.py
fossabot/fermentrack
3070bc14791b1482ec661607005ebda961ca3a8f
[ "MIT" ]
392
2017-03-12T17:09:16.000Z
2022-03-31T22:08:45.000Z
app/tasks.py
fossabot/fermentrack
3070bc14791b1482ec661607005ebda961ca3a8f
[ "MIT" ]
67
2017-03-19T18:11:54.000Z
2022-01-31T12:12:17.000Z
# Create your tasks here from __future__ import absolute_import, unicode_literals from huey.contrib.djhuey import periodic_task, task, db_periodic_task, db_task # Note - Huey is being installed/set up, but the functionality will remain latent for the time being. The plan is to # use it to create tasks later that run i...
26.8
116
0.716418
2bcdb5992047101deb09e0beee0df7a6f9c72e51
13,522
py
Python
grodddroid/AnalyseAndroBlareTools/logparser/logconverter.py
demirdagemir/thesis
4a48bddf815c91729e27484548bb7bbf7ddeda64
[ "MIT" ]
null
null
null
grodddroid/AnalyseAndroBlareTools/logparser/logconverter.py
demirdagemir/thesis
4a48bddf815c91729e27484548bb7bbf7ddeda64
[ "MIT" ]
null
null
null
grodddroid/AnalyseAndroBlareTools/logparser/logconverter.py
demirdagemir/thesis
4a48bddf815c91729e27484548bb7bbf7ddeda64
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import graphtodot import argparse import time import ply.lex as lex import networkx as nx import ply.yacc as yacc import math import string import libsystemflowgraph as lsfg import re import os.path import os from multiprocessing import Pool # Define a list of couple (pattern, substit...
37.148352
240
0.610708
a69224f733226f6a027a4264ab4f2b29dcf9e377
5,463
py
Python
python/libgarib/parsers/construct/glover_objbank.py
naclomi/libgarib
3ffbcfe99c8331024a3c5016a50ffcba43b01a05
[ "MIT" ]
null
null
null
python/libgarib/parsers/construct/glover_objbank.py
naclomi/libgarib
3ffbcfe99c8331024a3c5016a50ffcba43b01a05
[ "MIT" ]
null
null
null
python/libgarib/parsers/construct/glover_objbank.py
naclomi/libgarib
3ffbcfe99c8331024a3c5016a50ffcba43b01a05
[ "MIT" ]
null
null
null
from construct import * from construct.lib import * glover_objbank__uv = Struct( 'u1' / LazyBound(lambda: glover_objbank__fixed_11_5), 'v1' / LazyBound(lambda: glover_objbank__fixed_11_5), 'u2' / LazyBound(lambda: glover_objbank__fixed_11_5), 'v2' / LazyBound(lambda: glover_objbank__fixed_11_5), 'u3' / LazyBound(...
35.474026
204
0.729087
3e50315ca9f422e6cc6e97e59c0ddfcd8f26da05
4,813
py
Python
tests/webinspect/download_unit_test.py
matt-fevold/webbreaker
b500fc620ebba03a27321c8f832ab77bb760b9c5
[ "MIT" ]
7
2018-12-20T19:18:43.000Z
2019-12-10T15:03:41.000Z
tests/webinspect/download_unit_test.py
matt-fevold/webbreaker
b500fc620ebba03a27321c8f832ab77bb760b9c5
[ "MIT" ]
5
2019-04-02T17:07:44.000Z
2020-02-17T07:08:11.000Z
tests/webinspect/download_unit_test.py
matt-fevold/webbreaker
b500fc620ebba03a27321c8f832ab77bb760b9c5
[ "MIT" ]
7
2019-01-10T10:40:55.000Z
2022-03-13T14:08:37.000Z
import mock import pytest from webbreaker.webinspect.download import WebInspectDownload @mock.patch('webbreaker.webinspect.download.WebInspectDownload.download') def test_download_init_success(download_mock): # Given # When WebInspectDownload(server=None, scan_name=None, ...
34.876812
139
0.665074
21903e2886dc9664a39048aaf5e0da98b1c26819
891
py
Python
azure-mgmt-kusto/azure/mgmt/kusto/models/trusted_external_tenant.py
bgsky/azure-sdk-for-python
ec18d0b25be10fddbde416b901b905dfb0896430
[ "MIT" ]
null
null
null
azure-mgmt-kusto/azure/mgmt/kusto/models/trusted_external_tenant.py
bgsky/azure-sdk-for-python
ec18d0b25be10fddbde416b901b905dfb0896430
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-mgmt-kusto/azure/mgmt/kusto/models/trusted_external_tenant.py
bgsky/azure-sdk-for-python
ec18d0b25be10fddbde416b901b905dfb0896430
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
30.724138
76
0.574635
78e29856757a8830ab86060779253c2bedcc6e76
1,024
py
Python
djangocon_2022/users/admin.py
andywaltlova/2022.djangocon.eu
2757816362fa8d3386dcbdaf655ced8ccb41b295
[ "MIT" ]
2
2022-03-21T08:00:00.000Z
2022-03-21T08:33:14.000Z
djangocon_2022/users/admin.py
andywaltlova/2022.djangocon.eu
2757816362fa8d3386dcbdaf655ced8ccb41b295
[ "MIT" ]
1
2022-03-17T08:36:12.000Z
2022-03-17T08:36:12.000Z
djangocon_2022/users/admin.py
andywaltlova/2022.djangocon.eu
2757816362fa8d3386dcbdaf655ced8ccb41b295
[ "MIT" ]
2
2022-03-16T14:22:55.000Z
2022-03-17T08:28:48.000Z
from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth import get_user_model from django.utils.translation import gettext_lazy as _ from djangocon_2022.users.forms import UserAdminChangeForm, UserAdminCreationForm User = get_user_model() @admin.register(User) c...
29.257143
81
0.567383
604a303101d841f9301518f09972f235d7be28c8
10,611
py
Python
insightMedium/model.py
gnicks007/insightMedium
7a8f70754619d01ee968ef38fc6613c2c3ebcbca
[ "MIT" ]
null
null
null
insightMedium/model.py
gnicks007/insightMedium
7a8f70754619d01ee968ef38fc6613c2c3ebcbca
[ "MIT" ]
null
null
null
insightMedium/model.py
gnicks007/insightMedium
7a8f70754619d01ee968ef38fc6613c2c3ebcbca
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf8 -*- from enum import Enum __author__ = 'nick' #make model iterable for example class User: def __init__(self, user_id): self.user_id = user_id @property def username(self): return self._username @username.setter def username(self, username): ...
21.699387
108
0.626708
4267b532e764b4cc513cf7b6a5fe2c08683e7d25
4,111
py
Python
src/main.py
xianfengting/ascii-video-converter
4cb8711456e8c061ef9b5d09692a96139e775476
[ "MIT" ]
5
2019-07-18T16:51:46.000Z
2019-12-18T05:36:47.000Z
src/main.py
xianfengting/ascii-video-converter
4cb8711456e8c061ef9b5d09692a96139e775476
[ "MIT" ]
3
2021-03-19T02:03:47.000Z
2022-01-13T01:24:45.000Z
src/main.py
xianfengting/ascii-video-converter
4cb8711456e8c061ef9b5d09692a96139e775476
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import os from PIL import Image, ImageFont, ImageDraw from src import ascii_tools import progressbar as pbar from concurrent.futures import ThreadPoolExecutor, as_completed import threading import shutil RAW_PICTURES_DIR = "./tmp/pictures" ASCII_PICTURES_DIR = "./tmp/ascii-pictures" BGM_FILE_PA...
40.70297
128
0.662856
13fa9487e52ede0c5d212803836e61954d096438
7,047
py
Python
tests/test_signal_augment.py
vshalts/fastaudio
8631a3f9c7bc8da332ea413a15c2d39c24a505c3
[ "MIT" ]
1
2020-08-25T20:07:04.000Z
2020-08-25T20:07:04.000Z
tests/test_signal_augment.py
vshalts/fastaudio
8631a3f9c7bc8da332ea413a15c2d39c24a505c3
[ "MIT" ]
7
2020-08-25T20:20:53.000Z
2020-08-27T01:48:00.000Z
tests/test_signal_augment.py
vshalts/fastaudio
8631a3f9c7bc8da332ea413a15c2d39c24a505c3
[ "MIT" ]
1
2020-08-26T10:02:38.000Z
2020-08-26T10:02:38.000Z
import random import pytest import torch from fastai.data.all import test_close as _test_close from fastai.data.all import test_eq as _test_eq from fastai.data.all import test_ne as _test_ne from fastaudio.all import ( AddNoise, AudioPadType, AudioTensor, ChangeVolume, DownmixMono, NoiseColor...
29.119835
88
0.674188
b84666ddf4861759908ae62f8ba8f4eb8daafc9f
2,052
py
Python
make5/crosshair.py
RacingTadpole/boggle
2185da9e204e2d1ed686ccaac76d0d73396408fb
[ "MIT" ]
null
null
null
make5/crosshair.py
RacingTadpole/boggle
2185da9e204e2d1ed686ccaac76d0d73396408fb
[ "MIT" ]
null
null
null
make5/crosshair.py
RacingTadpole/boggle
2185da9e204e2d1ed686ccaac76d0d73396408fb
[ "MIT" ]
null
null
null
from dataclasses import dataclass from make5.types import FrequencyDict, WordDict from typing import Dict, List, Optional, Sequence from make5.choice import get_sorted_choices from make5.utilities import replace ALL_LETTERS = 'abcdefghijklmnopqrstuvwxyz' @dataclass(frozen=True) class Crosshair: letter: str s...
36.642857
190
0.630604
8b081631b283ee4e0b4cb0c50ee04ac473bec319
2,866
py
Python
examples/connectivity/plot_cwt_sensor_connectivity.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
2
2015-09-27T20:33:49.000Z
2020-04-22T19:10:56.000Z
examples/connectivity/plot_cwt_sensor_connectivity.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
null
null
null
examples/connectivity/plot_cwt_sensor_connectivity.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
1
2018-09-15T09:45:38.000Z
2018-09-15T09:45:38.000Z
""" ============================================================== Compute seed based time-frequency connectivity in sensor space ============================================================== Computes the connectivity between a seed-gradiometer close to the visual cortex and all other gradiometers. The connectivity i...
35.825
79
0.691905
259d156ddee10b6b5dc0ded6c3907c184236e3d0
903
py
Python
instagram/accounts/admin.py
developer-LeeSteve/django_instagram_clonecoding
efad44cb6bda89b935bf203e66cdc6b69a3caa6a
[ "MIT" ]
1
2020-12-16T14:23:49.000Z
2020-12-16T14:23:49.000Z
instagram/accounts/admin.py
SihwanLee/django_instagram_clonecoding
efad44cb6bda89b935bf203e66cdc6b69a3caa6a
[ "MIT" ]
null
null
null
instagram/accounts/admin.py
SihwanLee/django_instagram_clonecoding
efad44cb6bda89b935bf203e66cdc6b69a3caa6a
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from accounts.models import User, FollowingRelationship, BlockedRelationship class CustomUserAdmin(UserAdmin): list_display = ('email', 'username', 'name', 'date_joined', 'is_staff', 'is_active', 'id',) search_fields = () fieldsets=( ...
34.730769
110
0.684385
3e983f83f43182b685e8134b7df37d8f4c7a780f
4,000
py
Python
tests/hazmat/primitives/twofactor/test_hotp.py
wdscxsj/cryptography
94590a9aecc9e5ef6fc8eda52bae43643a4c44bd
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
1
2021-04-15T09:36:15.000Z
2021-04-15T09:36:15.000Z
tests/hazmat/primitives/twofactor/test_hotp.py
wdscxsj/cryptography
94590a9aecc9e5ef6fc8eda52bae43643a4c44bd
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
99
2021-02-13T23:35:41.000Z
2022-03-31T03:09:24.000Z
tests/hazmat/primitives/twofactor/test_hotp.py
wdscxsj/cryptography
94590a9aecc9e5ef6fc8eda52bae43643a4c44bd
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
1
2021-07-03T21:11:25.000Z
2021-07-03T21:11:25.000Z
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import os import pytest from cryptography.exceptions import _Reasons from cryptography.hazmat.primitives import hashes from cryptography...
31.746032
79
0.66275
5a3ed0a0b590389b6175323e4e5f1e911f871d05
728
py
Python
droplet/shared/reference.py
cs262-pfs/droplet
aff149dfed53f9ae89356927f1ea9cab391582d6
[ "Apache-2.0" ]
null
null
null
droplet/shared/reference.py
cs262-pfs/droplet
aff149dfed53f9ae89356927f1ea9cab391582d6
[ "Apache-2.0" ]
null
null
null
droplet/shared/reference.py
cs262-pfs/droplet
aff149dfed53f9ae89356927f1ea9cab391582d6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 U.C. Berkeley RISE Lab # # 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 agree...
36.4
75
0.730769
c1c5b8ca3de80b5d844cffda384dc41534b4c8ac
4,583
py
Python
MACS2/filterdup_cmd.py
junaruga/MACS
8d7304f05c60ba6a3bc6dd553a931d06be94ce5c
[ "BSD-3-Clause" ]
null
null
null
MACS2/filterdup_cmd.py
junaruga/MACS
8d7304f05c60ba6a3bc6dd553a931d06be94ce5c
[ "BSD-3-Clause" ]
null
null
null
MACS2/filterdup_cmd.py
junaruga/MACS
8d7304f05c60ba6a3bc6dd553a931d06be94ce5c
[ "BSD-3-Clause" ]
null
null
null
# Time-stamp: <2019-11-05 10:59:31 taoliu> """Description: Filter duplicate reads depending on sequencing depth. This code is free software; you can redistribute it and/or modify it under the terms of the BSD License (see the file LICENSE included with the distribution). """ # ------------------------------------ # ...
35.253846
133
0.619681
261ec47e72d44ba3adb164a81dd5d90c065a8d92
3,652
py
Python
terraform/jenkins/ansible/library/jenkins.py
cicdenv/cicdenv
5b72fd9ef000bf07c2052471b59edaa91af18778
[ "MIT" ]
8
2020-08-10T20:57:24.000Z
2021-08-08T10:46:20.000Z
terraform/jenkins/ansible/library/jenkins.py
cicdenv/cicdenv
5b72fd9ef000bf07c2052471b59edaa91af18778
[ "MIT" ]
null
null
null
terraform/jenkins/ansible/library/jenkins.py
cicdenv/cicdenv
5b72fd9ef000bf07c2052471b59edaa91af18778
[ "MIT" ]
1
2020-08-10T20:42:09.000Z
2020-08-10T20:42:09.000Z
#!/usr/bin/python from os import path, environ from pathlib import Path from time import time from ansible.module_utils.basic import AnsibleModule from jenkins import Jenkins import jenkinsapi NORMAL_TIMEOUT = 30 # seconds RUNNING_JOBS_TIMEOUT = 300 # seconds def inspect_server(server, result): info = server....
33.2
139
0.580778
541d237a7e21d8f495c2ebd8ac4ef5527872a79b
6,224
py
Python
system/models/action.py
u-n-i-c-o-rn/jimi
bbd647fa9cd4326305a33a99122d8d8a2614967d
[ "Apache-2.0" ]
1
2021-03-14T21:27:51.000Z
2021-03-14T21:27:51.000Z
system/models/action.py
u-n-i-c-o-rn/jimi
bbd647fa9cd4326305a33a99122d8d8a2614967d
[ "Apache-2.0" ]
null
null
null
system/models/action.py
u-n-i-c-o-rn/jimi
bbd647fa9cd4326305a33a99122d8d8a2614967d
[ "Apache-2.0" ]
null
null
null
from core.models import action from core.models import trigger import jimi class _resetTrigger(action._action): enabled = True scope = 3 def run(self,data,persistentData,actionResult): try: if "event" in data: if "triggerID" in data["event"]: failed...
37.047619
96
0.60347
669df462b049e8c92bfc172ce26531c15e21f3ef
10,252
py
Python
pypi_packages/ranger_adabelief_0.1.0/ranger_adabelief/ranger_adabelief.py
wwoods/Adabelief-Optimizer
82d196da832d7f6d26a6945302a5f867c2cc613a
[ "BSD-2-Clause" ]
null
null
null
pypi_packages/ranger_adabelief_0.1.0/ranger_adabelief/ranger_adabelief.py
wwoods/Adabelief-Optimizer
82d196da832d7f6d26a6945302a5f867c2cc613a
[ "BSD-2-Clause" ]
null
null
null
pypi_packages/ranger_adabelief_0.1.0/ranger_adabelief/ranger_adabelief.py
wwoods/Adabelief-Optimizer
82d196da832d7f6d26a6945302a5f867c2cc613a
[ "BSD-2-Clause" ]
null
null
null
# Ranger deep learning optimizer - AdaBelief + RAdam + Lookahead + Gradient Centralization, combined into one optimizer. # https://github.com/lessw2020/Ranger-Deep-Learning-Optimizer # and/or # https://github.com/lessw2020/Best-Deep-Learning-Optimizers # Credits: # Gradient Centralization --> https://arxiv.org/abs/20...
44.380952
176
0.55833
9cf34f76e4359023bb0243b4a5da026c6538b680
1,170
py
Python
mask-detection/pytorch/custom-objects/mask_detection_mobilenet_v2.py
yonishelach/demos
722bdd7d907f546b110675aaab9f16dc666911f9
[ "Apache-2.0" ]
null
null
null
mask-detection/pytorch/custom-objects/mask_detection_mobilenet_v2.py
yonishelach/demos
722bdd7d907f546b110675aaab9f16dc666911f9
[ "Apache-2.0" ]
null
null
null
mask-detection/pytorch/custom-objects/mask_detection_mobilenet_v2.py
yonishelach/demos
722bdd7d907f546b110675aaab9f16dc666911f9
[ "Apache-2.0" ]
null
null
null
import torch from torch.nn import Module import torchvision class MaskDetectionMobilenetV2(Module): def __init__(self): super(MaskDetectionMobilenetV2, self).__init__() # The model will be based on MobileNetV2: self.mobilenet_v2 = torchvision.models.mobilenet_v2(pretrained=True) ...
35.454545
120
0.64359
525bca2c00d9eb0b93b6d778d56b585a9ec7af0f
1,179
py
Python
playground.py
devbas/aml-quora
da343ff3499566da082e12329e6228a1d9b34a7a
[ "MIT" ]
null
null
null
playground.py
devbas/aml-quora
da343ff3499566da082e12329e6228a1d9b34a7a
[ "MIT" ]
null
null
null
playground.py
devbas/aml-quora
da343ff3499566da082e12329e6228a1d9b34a7a
[ "MIT" ]
null
null
null
# 8. Validate model train_df = train_df.reindex(np.random.permutation(train_df.index)) # set number of train and test instances num_train = int(train_df.shape[0] * 0.88) num_validation = train_df.shape[0] - num_train print("Number of training pairs: %i"%(num_train)) print("Number of testing pairs: %i"%(num_validati...
24.061224
85
0.725191
e6a4ab858c5f3c77bcfac085cf5814bbac2f31ea
5,409
py
Python
azul/AzulLogic.py
EricPHamilton/PyAzul
8ecb17dc0d97c0ecc90175697628fc342ba9e2a2
[ "MIT" ]
null
null
null
azul/AzulLogic.py
EricPHamilton/PyAzul
8ecb17dc0d97c0ecc90175697628fc342ba9e2a2
[ "MIT" ]
null
null
null
azul/AzulLogic.py
EricPHamilton/PyAzul
8ecb17dc0d97c0ecc90175697628fc342ba9e2a2
[ "MIT" ]
null
null
null
from .Player import Player from .TileCollection import TileCollection from .Center import Center from .TileColor import TileColor from .AzulAction import AzulAction import random import numpy as np import math class AzulBoard(): def __init__(self): self.player1 = Player(1) self.player2 ...
35.821192
134
0.590312
d7768e8d063614e8df9ba85308ea28cba47dd899
590
py
Python
experiments/vgs/linear-norm/global_diagnostic.py
gchrupala/platalea
65833307bb6c5ad6cbdd6b17ad8ca59cf51fcd81
[ "Apache-2.0" ]
1
2019-12-16T17:05:46.000Z
2019-12-16T17:05:46.000Z
experiments/vgs/linear-norm/global_diagnostic.py
gchrupala/platalea
65833307bb6c5ad6cbdd6b17ad8ca59cf51fcd81
[ "Apache-2.0" ]
1
2020-03-11T16:12:50.000Z
2020-03-11T16:12:50.000Z
experiments/vgs/linear-norm/global_diagnostic.py
gchrupala/platalea
65833307bb6c5ad6cbdd6b17ad8ca59cf51fcd81
[ "Apache-2.0" ]
1
2020-02-11T11:53:30.000Z
2020-02-11T11:53:30.000Z
SEED=666 import torch torch.manual_seed(SEED) import random random.seed(SEED) import numpy as np np.random.seed(SEED) import platalea.analysis.phoneme as P config = dict(directory = '../../../data/out/vgs/', attention = 'linear', standardize = True, hidden_size = None, ...
24.583333
72
0.569492
b7c2a0f49fca66e3e897cbcd7a0b7067ddd93d40
664
py
Python
Medium/Redundant Connection.py
Koushik-Deb/LeetCode
de2e3f6222f89d42ef716076b4846173d01f69a2
[ "MIT" ]
null
null
null
Medium/Redundant Connection.py
Koushik-Deb/LeetCode
de2e3f6222f89d42ef716076b4846173d01f69a2
[ "MIT" ]
null
null
null
Medium/Redundant Connection.py
Koushik-Deb/LeetCode
de2e3f6222f89d42ef716076b4846173d01f69a2
[ "MIT" ]
3
2021-07-29T14:06:48.000Z
2021-07-29T16:54:13.000Z
class DSU: def __init__(self, N): self.p = list(range(N + 1)) def find(self, x): if self.p[x] != x: self.p[x] = self.find(self.p[x]) return self.p[x] def union(self, x, y): xp = self.find(x) yp = self.find(y) if xp == yp: return -1 ...
22.133333
75
0.444277
a28d866d1ee2940931ae195ba12b66b9cfb46d0d
38,052
py
Python
Pilot1/Combo/combo_loader.py
deephyper/Benchmarks
414bbd28f99055dffe5f23056faf771634c34920
[ "MIT" ]
null
null
null
Pilot1/Combo/combo_loader.py
deephyper/Benchmarks
414bbd28f99055dffe5f23056faf771634c34920
[ "MIT" ]
null
null
null
Pilot1/Combo/combo_loader.py
deephyper/Benchmarks
414bbd28f99055dffe5f23056faf771634c34920
[ "MIT" ]
null
null
null
#! /usr/bin/env python from __future__ import division, print_function import argparse import collections import logging import os import random import threading import gzip import numpy as np import pandas as pd from itertools import cycle, islice import tensorflow.keras as keras from tensorflow.keras import back...
38.243216
148
0.588116
48e37f8f5457a0cdbfd5ba8d634bc8003993f92f
2,760
py
Python
data_generation/data_generator.py
Bartzi/handwriting-determination
e8b1d84cd854f8cfd6af59fd46b120df910322d0
[ "MIT" ]
1
2021-06-14T05:49:21.000Z
2021-06-14T05:49:21.000Z
data_generation/data_generator.py
Bartzi/handwriting-determination
e8b1d84cd854f8cfd6af59fd46b120df910322d0
[ "MIT" ]
null
null
null
data_generation/data_generator.py
Bartzi/handwriting-determination
e8b1d84cd854f8cfd6af59fd46b120df910322d0
[ "MIT" ]
null
null
null
import os import cv2 import numpy as np import random import threading, queue import argparse from tqdm import tqdm from fragment_generator import generate_fragment, positive_trait, negative_trait DIMENSION_X, DIMENSION_Y = 224, 224 # write images asynchronously to disk to unblock computation to_write = queue.Queu...
35.844156
107
0.674638
d6423d00d457cf16f47ada22a39631d3004935af
326
py
Python
countingElements/frog_river_one.py
mamoudmatook/codility_solutions
0eb6936b2dddee46447fa6c0b0ef91b6784e58fb
[ "MIT" ]
null
null
null
countingElements/frog_river_one.py
mamoudmatook/codility_solutions
0eb6936b2dddee46447fa6c0b0ef91b6784e58fb
[ "MIT" ]
null
null
null
countingElements/frog_river_one.py
mamoudmatook/codility_solutions
0eb6936b2dddee46447fa6c0b0ef91b6784e58fb
[ "MIT" ]
null
null
null
# you can write to stdout for debugging purposes, e.g. # print("this is a debug message") def solution(X, A): ones = int("1" * X, 2) positions = 0 for i, v in enumerate(A): positions |= (1 << (v - 1)) if positions == ones: return i return -1 solution(5, [1, 3, 1, 4, 2, 3, ...
23.285714
54
0.530675
24965a0216280a4552ae2d8847d3d571fb83cb21
1,469
py
Python
typedpy/__init__.py
reesmanp/typedpy
eca9e002b6c9edae19f803cef55447926f502309
[ "MIT" ]
null
null
null
typedpy/__init__.py
reesmanp/typedpy
eca9e002b6c9edae19f803cef55447926f502309
[ "MIT" ]
null
null
null
typedpy/__init__.py
reesmanp/typedpy
eca9e002b6c9edae19f803cef55447926f502309
[ "MIT" ]
null
null
null
""" A type-safe strictly defined structures, compatible with JSON draft 4 but offers significantly more functionality. """ from typedpy.structures import ( Structure, Field, TypedField, ClassReference, ImmutableStructure, create_typed_field, NoneField, FinalStructure, ImmutableField,...
17.698795
83
0.696392
6c37f7fb5de68bd195a8d370d0e0ed282be0614d
3,315
py
Python
src/cowrie/output/malshare.py
tsunami416604/cowrie
caefdfa4d53a568b15a860991c3e0a1610445d92
[ "BSD-3-Clause" ]
null
null
null
src/cowrie/output/malshare.py
tsunami416604/cowrie
caefdfa4d53a568b15a860991c3e0a1610445d92
[ "BSD-3-Clause" ]
null
null
null
src/cowrie/output/malshare.py
tsunami416604/cowrie
caefdfa4d53a568b15a860991c3e0a1610445d92
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2015 Michel Oosterhof <michel@oosterhof.net> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, th...
33.15
85
0.64736
69334fa10cee883322a012949ea3dfa53233b907
2,486
py
Python
tests/test_utilities/test_csvstack.py
diraol/csvkit
118f79dbf013c7be2c160bb7dc5990f0997adc92
[ "MIT" ]
null
null
null
tests/test_utilities/test_csvstack.py
diraol/csvkit
118f79dbf013c7be2c160bb7dc5990f0997adc92
[ "MIT" ]
null
null
null
tests/test_utilities/test_csvstack.py
diraol/csvkit
118f79dbf013c7be2c160bb7dc5990f0997adc92
[ "MIT" ]
null
null
null
#!/usr/bin/env python import StringIO import unittest from csvkit import CSVKitReader from csvkit.utilities.csvstack import CSVStack class TestCSVStack(unittest.TestCase): def test_explicit_grouping(self): # stack two CSV files args = ['--groups', 'asd,sdf', '-n', 'foo', 'examples/dummy.csv', 'ex...
34.054795
96
0.627514
e3fe736999d8a6485929ec529b03d8584b3592f1
2,257
py
Python
employee/views.py
shourya1997/django-crud
0a0e97d96ac3f067edcaa89ef9b8fd692cddffcf
[ "Apache-2.0" ]
null
null
null
employee/views.py
shourya1997/django-crud
0a0e97d96ac3f067edcaa89ef9b8fd692cddffcf
[ "Apache-2.0" ]
8
2020-06-05T20:27:35.000Z
2021-09-22T18:22:42.000Z
employee/views.py
shourya1997/django-crud
0a0e97d96ac3f067edcaa89ef9b8fd692cddffcf
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse from django.contrib.auth import authenticate, get_user_model, login, logout from rest_framework.response import Response from rest_framework.views import APIView from rest_framework.permissions import IsAuthenticated from rest_framework...
28.56962
75
0.712007
f05964ce9a002bb0455c4bb65ac12281bd72a55c
15,245
py
Python
pymks/mks_homogenization_model.py
wd15/pymks-clean
97a4145c56626f6a1dea5c3a67dbaf83d3372446
[ "MIT" ]
null
null
null
pymks/mks_homogenization_model.py
wd15/pymks-clean
97a4145c56626f6a1dea5c3a67dbaf83d3372446
[ "MIT" ]
null
null
null
pymks/mks_homogenization_model.py
wd15/pymks-clean
97a4145c56626f6a1dea5c3a67dbaf83d3372446
[ "MIT" ]
null
null
null
from .mks_structure_analysis import MKSStructureAnalysis from sklearn.linear_model import LinearRegression from sklearn.preprocessing import PolynomialFeatures from sklearn.pipeline import Pipeline import numpy as np class MKSHomogenizationModel(MKSStructureAnalysis): """ The `MKSHomogenizationModel` takes i...
43.433048
79
0.613644
93949e17d3e68cbfebba9b085aae59eb5457ccb8
8,775
py
Python
lib/MsneddonContigFilter4/MsneddonContigFilter4Impl.py
msneddon/MsneddonContigFilter4
b786aff7664cbf4eca74433cf82e696832a9396a
[ "MIT" ]
null
null
null
lib/MsneddonContigFilter4/MsneddonContigFilter4Impl.py
msneddon/MsneddonContigFilter4
b786aff7664cbf4eca74433cf82e696832a9396a
[ "MIT" ]
null
null
null
lib/MsneddonContigFilter4/MsneddonContigFilter4Impl.py
msneddon/MsneddonContigFilter4
b786aff7664cbf4eca74433cf82e696832a9396a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #BEGIN_HEADER # The header block is where all import statments should live import os from Bio import SeqIO from pprint import pprint, pformat from AssemblyUtil.AssemblyUtilClient import AssemblyUtil from KBaseReport.KBaseReportClient import KBaseReport #END_HEADER class MsneddonContigFilter4: ...
46.925134
109
0.631795
009af8e2de286d96eb59e67a4693aada5b25a4d7
389
py
Python
setup.py
sammyrulez/diablo-api-py
2942b1e5668aeb3dd2231e12b87ea7ee2d45215c
[ "BSD-3-Clause" ]
6
2015-07-29T09:58:31.000Z
2021-05-05T09:33:26.000Z
setup.py
sammyrulez/diablo-api-py
2942b1e5668aeb3dd2231e12b87ea7ee2d45215c
[ "BSD-3-Clause" ]
null
null
null
setup.py
sammyrulez/diablo-api-py
2942b1e5668aeb3dd2231e12b87ea7ee2d45215c
[ "BSD-3-Clause" ]
1
2015-11-08T18:47:01.000Z
2015-11-08T18:47:01.000Z
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='diablo_api_py', version='0.0.2', description='Python client for Diablo 3 web api', author='sammyrulez', url='https://github.com/sammyrulez/diablo-api-py', license='BSD', packages=find_packages(exclude=('tests...
21.611111
54
0.658098
218943472c17f630e2cba1dcc10f89a505338761
3,832
py
Python
netdata/santabpf/app/base.py
SantaBPF/santabpf
865d56f6e7ba2ebff7153cfbd62c38fbcc39b529
[ "MIT" ]
null
null
null
netdata/santabpf/app/base.py
SantaBPF/santabpf
865d56f6e7ba2ebff7153cfbd62c38fbcc39b529
[ "MIT" ]
null
null
null
netdata/santabpf/app/base.py
SantaBPF/santabpf
865d56f6e7ba2ebff7153cfbd62c38fbcc39b529
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re import subprocess from dataclasses import dataclass from datetime import datetime from itertools import compress from typing import List, Any, Dict, Callable from loguru import logger from tabulate import tabulate @dataclass class Event: file: str roles: str # the roles that...
33.614035
103
0.677975
5954ec5fd7adfd91d0fc8c60d497fe823f3141c1
4,879
py
Python
tests/sampleData.py
RobMackie/CheckMeIn
2cb66b4fff7259fa038a2754878056af9dbca6f4
[ "MIT" ]
1
2020-10-22T13:22:39.000Z
2020-10-22T13:22:39.000Z
tests/sampleData.py
RobMackie/CheckMeIn
2cb66b4fff7259fa038a2754878056af9dbca6f4
[ "MIT" ]
34
2018-07-05T18:18:37.000Z
2022-03-12T01:01:03.000Z
tests/sampleData.py
RobMackie/CheckMeIn
2cb66b4fff7259fa038a2754878056af9dbca6f4
[ "MIT" ]
1
2021-09-06T04:12:43.000Z
2021-09-06T04:12:43.000Z
import datetime def timeAgo(days=0, hours=0): return datetime.datetime.now() - datetime.timedelta(days=days, hours=hours) def testData(): return{ "visits": [ { "start": timeAgo(days=7, hours=1), "leave": timeAgo(days=7, hours=0), "barcode":...
29.569697
79
0.380406
3d4e44db334f5ccf93981f3ccd6089550672392c
610
py
Python
tests/database_utils/test_database_sucessful_import.py
DanielPDWalker/FinPy
3708c4b779cb4c177cea93bb228fcdd8b019c327
[ "MIT" ]
null
null
null
tests/database_utils/test_database_sucessful_import.py
DanielPDWalker/FinPy
3708c4b779cb4c177cea93bb228fcdd8b019c327
[ "MIT" ]
1
2021-01-28T14:40:38.000Z
2021-01-28T14:40:38.000Z
tests/database_utils/test_database_sucessful_import.py
DanielPDWalker/FinPy
3708c4b779cb4c177cea93bb228fcdd8b019c327
[ "MIT" ]
null
null
null
import unittest import os import pandas as pd from sqlalchemy import create_engine class TestDatabaseImport(unittest.TestCase): def setUp(self): pass def tearDown(self): os.remove('test_finpy_database.db') def test_all_data_imported_into_database(self): # Test reading from data...
23.461538
79
0.693443
e2f0383b2b14f18b901be3adef929a9fe3db36db
2,296
py
Python
omni.py
vongoetz/omnifocus-google-docs
95d6c2ba1229d688d9a17c90e395a2af23baed0c
[ "MIT" ]
null
null
null
omni.py
vongoetz/omnifocus-google-docs
95d6c2ba1229d688d9a17c90e395a2af23baed0c
[ "MIT" ]
null
null
null
omni.py
vongoetz/omnifocus-google-docs
95d6c2ba1229d688d9a17c90e395a2af23baed0c
[ "MIT" ]
1
2020-09-29T03:53:03.000Z
2020-09-29T03:53:03.000Z
import os import sqlite3 from config import params from datetime import date, timedelta def get_omnifocus_tasks(): # Connect to the database locally stored db_path = params['db_path'] # Create connection to local Omnifocus DB conn = sqlite3.connect(db_path) c = conn.cursor() # Get project...
34.268657
227
0.658972
03706bc4648d06069cd3d16dcf10d3f98798fdc0
13,264
py
Python
mnist_training.py
ombretta/3D-ResNets-PyTorch
a5b0f092c36c5256257ba854fbc50718c35244fb
[ "MIT" ]
null
null
null
mnist_training.py
ombretta/3D-ResNets-PyTorch
a5b0f092c36c5256257ba854fbc50718c35244fb
[ "MIT" ]
null
null
null
mnist_training.py
ombretta/3D-ResNets-PyTorch
a5b0f092c36c5256257ba854fbc50718c35244fb
[ "MIT" ]
1
2020-12-22T11:24:38.000Z
2020-12-22T11:24:38.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Dec 21 10:23:32 2020 @author: ombretta """ '''Arguments IN 3D ResNets PyTorch''' import os submit_on_cluster = True pretrained = False continue_training = False cluster_text = '' if submit_on_cluster: cluster_text = '#!/bin/sh\n'+\ '#SBATC...
43.631579
159
0.603589
e1dfd1add948e9af4675ad177873772ef2af0c9e
474
py
Python
books/bigbook/keyml/setup.py
HootingYard/keyml
1bcb7b2a210866b55de8bd1e36b05901f9f1ef56
[ "CC0-1.0" ]
null
null
null
books/bigbook/keyml/setup.py
HootingYard/keyml
1bcb7b2a210866b55de8bd1e36b05901f9f1ef56
[ "CC0-1.0" ]
null
null
null
books/bigbook/keyml/setup.py
HootingYard/keyml
1bcb7b2a210866b55de8bd1e36b05901f9f1ef56
[ "CC0-1.0" ]
1
2020-12-15T10:23:02.000Z
2020-12-15T10:23:02.000Z
from setuptools import setup setup( name='keyml', version='1.0.0', description='Tests that XHTML files are in the "KeyML" subset.', author='', author_email='', url='https://github.com/hootingyard/', entry_points={ 'console_scripts': [ 'keyml=keyml:main', ], }...
21.545455
68
0.575949
63d4f0e8368513d8bf7993ad85bd8764126f0968
89,315
py
Python
torch/nn/modules/loss.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
1
2020-07-03T20:27:13.000Z
2020-07-03T20:27:13.000Z
torch/nn/modules/loss.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
14
2021-10-14T06:58:50.000Z
2021-12-17T11:51:07.000Z
torch/nn/modules/loss.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
null
null
null
import warnings from .distance import PairwiseDistance from .module import Module from .. import functional as F from .. import _reduction as _Reduction from torch import Tensor from typing import Callable, Optional class _Loss(Module): reduction: str def __init__(self, size_average=None, reduce=None, redu...
51.183381
131
0.619179
4de5cd7825d901b7eb15a0c327fec0d5eb3585cf
2,465
py
Python
plugins/LogToIrc/__init__.py
mogad0n/Limnoria
f31e5c4b9a77e30918d6b93f69d69f3b8f910e3c
[ "BSD-3-Clause" ]
476
2015-01-04T17:42:59.000Z
2021-08-13T07:40:54.000Z
plugins/LogToIrc/__init__.py
mogad0n/Limnoria
f31e5c4b9a77e30918d6b93f69d69f3b8f910e3c
[ "BSD-3-Clause" ]
491
2015-01-01T04:12:23.000Z
2021-08-12T19:24:47.000Z
plugins/LogToIrc/__init__.py
mogad0n/Limnoria
f31e5c4b9a77e30918d6b93f69d69f3b8f910e3c
[ "BSD-3-Clause" ]
203
2015-01-02T18:29:43.000Z
2021-08-15T12:52:22.000Z
# -*- coding:utf-8 -*- ### # Copyright (c) 2004, Stéphan Kochen # Copyright (c) 2021, The Limnoria Contributors # 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 c...
38.515625
79
0.767546
b0ce22b7602aac2abedb7a0a0a733a4accde4c2b
57
py
Python
inheritance_exercise/players_and_monsters/project/elf.py
Xamaneone/Python-OOP
7514cdc92bb4f7adf27666516739cbf42a35453c
[ "MIT" ]
null
null
null
inheritance_exercise/players_and_monsters/project/elf.py
Xamaneone/Python-OOP
7514cdc92bb4f7adf27666516739cbf42a35453c
[ "MIT" ]
null
null
null
inheritance_exercise/players_and_monsters/project/elf.py
Xamaneone/Python-OOP
7514cdc92bb4f7adf27666516739cbf42a35453c
[ "MIT" ]
null
null
null
from project.hero import Hero class Elf(Hero): pass
11.4
29
0.719298
61505b31dde8f55652cb98c9012287b4858e373a
4,477
py
Python
date_machine/test/corpus.py
andychase/date_machine
b56dec60fc2722827e21ee6059e37461f0da2884
[ "MIT" ]
null
null
null
date_machine/test/corpus.py
andychase/date_machine
b56dec60fc2722827e21ee6059e37461f0da2884
[ "MIT" ]
null
null
null
date_machine/test/corpus.py
andychase/date_machine
b56dec60fc2722827e21ee6059e37461f0da2884
[ "MIT" ]
null
null
null
from datetime import timedelta from date_machine.functions import Date corpus = { "Standard Slash Format": { "01/18/2013": [Date(month=1, day=18, year=2013)], "12/3/2012": [Date(month=12, day=3, year=2012)], }, "Basic Text Format": { "Wednesday september 12": [Date(month=9, day=12)]...
55.9625
115
0.553942
8ee6d922aea0dc6bfbc1a2a852bb2b4d6ee4a244
1,172
py
Python
bbpyp/lexicomb_engine/bootstrap.py
BloggerBust/tag_script
985a4b6b8c026431842d608ba8feafe8751dd425
[ "Apache-2.0" ]
null
null
null
bbpyp/lexicomb_engine/bootstrap.py
BloggerBust/tag_script
985a4b6b8c026431842d608ba8feafe8751dd425
[ "Apache-2.0" ]
null
null
null
bbpyp/lexicomb_engine/bootstrap.py
BloggerBust/tag_script
985a4b6b8c026431842d608ba8feafe8751dd425
[ "Apache-2.0" ]
null
null
null
from bbpyp.common.common_ioc_container import CommonIocContainer from bbpyp.message_bus.message_bus_ioc_container import MessageBusIocContainer from bbpyp.state_machine import StateMachineIocContainer from bbpyp.lexical_state_machine import LexicalStateMachineIocContainer from bbpyp.interpreter_state_machine import Int...
46.88
81
0.852389
3dd852c138289d7551992a1f37f49dda7185bd30
1,093
py
Python
model/project.py
Angel-fund/skycity
695e7da15db82e9070a81ca2c46f184d980c221a
[ "MIT", "BSD-3-Clause" ]
1
2016-01-19T14:52:56.000Z
2016-01-19T14:52:56.000Z
model/project.py
Angel-fund/skycity
695e7da15db82e9070a81ca2c46f184d980c221a
[ "MIT", "BSD-3-Clause" ]
null
null
null
model/project.py
Angel-fund/skycity
695e7da15db82e9070a81ca2c46f184d980c221a
[ "MIT", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # # Copyright 2012 F2E.im # Do have a faith in what you're doing. # Make your life a story worth telling. import time from base import BaseModel class ProjectModel(BaseModel): def __init__(self, db): table_name = "project" super(ProjectModel, self).__ini...
28.025641
109
0.655078
836f103b0b78ee494d8bcf2ba121376fa8ababb1
7,124
py
Python
bin/helpers.py
isieo/Mediapipe-VR-Fullbody-Tracking
0d89ef6c79461424f904c1d07d29037e637ec410
[ "MIT" ]
75
2021-08-18T13:30:22.000Z
2022-03-31T10:24:49.000Z
bin/helpers.py
isieo/Mediapipe-VR-Fullbody-Tracking
0d89ef6c79461424f904c1d07d29037e637ec410
[ "MIT" ]
12
2021-08-20T12:01:50.000Z
2022-03-17T23:50:36.000Z
bin/helpers.py
isieo/Mediapipe-VR-Fullbody-Tracking
0d89ef6c79461424f904c1d07d29037e637ec410
[ "MIT" ]
12
2021-12-05T19:07:02.000Z
2022-03-27T23:19:53.000Z
import cv2 import numpy as np from scipy.spatial.transform import Rotation as R # Dictionary that maps from joint names to keypoint indices. KEYPOINT_DICT = { 'nose': 0, 'left_eye': 1, 'right_eye': 2, 'left_ear': 3, 'right_ear': 4, 'left_shoulder': 5, 'right_shoulder': 6, 'left_elbow': ...
24.231293
162
0.536356
3de80a7c061395715dfc7ff5f6a6365193411aff
3,403
py
Python
pymatgen/util/tests/test_string_utils.py
tamuhey/pymatgen
cf1793f0af59844ea9222d973212e3ab83e58209
[ "MIT" ]
1
2018-10-10T02:37:10.000Z
2018-10-10T02:37:10.000Z
pymatgen/util/tests/test_string_utils.py
tamuhey/pymatgen
cf1793f0af59844ea9222d973212e3ab83e58209
[ "MIT" ]
null
null
null
pymatgen/util/tests/test_string_utils.py
tamuhey/pymatgen
cf1793f0af59844ea9222d973212e3ab83e58209
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ = "Shyue Ping Ong" __email__ = "shyuep...
38.235955
93
0.585954
20a23345a5f96c02a0b67822d450937a52c65641
8,485
py
Python
python/iviz/Widgets/GridViewer.py
eddy-ilg/iviz
8c392dcc75a6563c5d076bbbd84152273a3c0f71
[ "MIT" ]
null
null
null
python/iviz/Widgets/GridViewer.py
eddy-ilg/iviz
8c392dcc75a6563c5d076bbbd84152273a3c0f71
[ "MIT" ]
null
null
null
python/iviz/Widgets/GridViewer.py
eddy-ilg/iviz
8c392dcc75a6563c5d076bbbd84152273a3c0f71
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from ..Widgets import * from ..Widgets.IntSlider import IntSlider from ..Widgets.LabelDisplay import LabelDisplay from .Synchronizer import synchronizer from .SaveMultipleDialog import SaveMultipleDialog from PyQt5.QtWidgets import QWidget, QVBoxLayout, QComboBox, QGridLayout, QPushButton, QSize...
35.502092
111
0.578315
780c740ae6e3fbc03a3a19e381c5d1dc2d9e9f25
600
py
Python
_16CarGameUsingWhile.py
yash001dev/learnpython
d311d86e8da43abddd33c9a9c8c9015fc9e858eb
[ "MIT" ]
2
2020-06-19T17:05:08.000Z
2021-04-05T18:04:25.000Z
_16CarGameUsingWhile.py
yash001dev/learnpython
d311d86e8da43abddd33c9a9c8c9015fc9e858eb
[ "MIT" ]
null
null
null
_16CarGameUsingWhile.py
yash001dev/learnpython
d311d86e8da43abddd33c9a9c8c9015fc9e858eb
[ "MIT" ]
null
null
null
#Game command="" started=False while True: command=input("> ").lower() if command=="start": if started: print("Car Already Started...") else: print("Car Started...") started=True elif command=="stop": print("Car Stoped...") elif c...
21.428571
58
0.506667
ad800c2440003ba0398d2c50fd8da7cb763e70f5
683
py
Python
app/core/migrations/0002_tag.py
aonchicken/recipe-app-api
14718359475abc5bc3a5772bd058ff5425d8b142
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
aonchicken/recipe-app-api
14718359475abc5bc3a5772bd058ff5425d8b142
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
aonchicken/recipe-app-api
14718359475abc5bc3a5772bd058ff5425d8b142
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-06-09 09:14 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.CreateModel( ...
28.458333
118
0.616398
7ac08b02315aeb6533a9c5342f94c38ff4fade9a
896
py
Python
oas/python-client/test/test_trello_action.py
NGenetzky/jatdb
518e0cedca1b61b8a744aef5e02255d8501bf8eb
[ "MIT" ]
null
null
null
oas/python-client/test/test_trello_action.py
NGenetzky/jatdb
518e0cedca1b61b8a744aef5e02255d8501bf8eb
[ "MIT" ]
null
null
null
oas/python-client/test/test_trello_action.py
NGenetzky/jatdb
518e0cedca1b61b8a744aef5e02255d8501bf8eb
[ "MIT" ]
null
null
null
# coding: utf-8 """ jatdb JSON API to DB: Fetch JSON from APIs and send to a TinyDB database. # noqa: E501 OpenAPI spec version: 0.0.2 Contact: Nathan@Genetzky.us Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest impor...
21.853659
85
0.695313
03cf6c62d6687db9fc065aee66aed0a77071ae02
1,590
py
Python
yarh/comment.py
minacle/yarh
bb99e48d89a463687680bd0a1414dd0e09407c23
[ "BSD-2-Clause" ]
3
2015-12-24T00:43:08.000Z
2015-12-24T20:22:31.000Z
yarh/comment.py
minacle/yarh
bb99e48d89a463687680bd0a1414dd0e09407c23
[ "BSD-2-Clause" ]
null
null
null
yarh/comment.py
minacle/yarh
bb99e48d89a463687680bd0a1414dd0e09407c23
[ "BSD-2-Clause" ]
null
null
null
from .node import Node from io import StringIO import re class Comment(Node): def __init__(self, parent, indent, rawtext, inline=True, escape=True): super().__init__(parent, indent) self.rawtext = rawtext.replace("--/>", "-->") if escape else rawtext self.inline = inline self.esca...
32.44898
86
0.567296
c914319aa424b8c918a63c9d1f8b4fbc353284e4
2,997
py
Python
homeassistant/components/axis/camera.py
hmctl/ha-core
677c276b41f99dbef34fdbaa9bdb14b3685163ef
[ "Apache-2.0" ]
2
2019-11-20T20:56:59.000Z
2021-01-03T08:52:18.000Z
homeassistant/components/axis/camera.py
hmctl/ha-core
677c276b41f99dbef34fdbaa9bdb14b3685163ef
[ "Apache-2.0" ]
5
2020-04-26T10:50:01.000Z
2021-03-16T21:19:46.000Z
homeassistant/components/axis/camera.py
winterscar/core
5a55d508791aae65f16396691d014c73fb2095f0
[ "Apache-2.0" ]
1
2021-04-18T19:36:34.000Z
2021-04-18T19:36:34.000Z
"""Support for Axis camera streaming.""" from homeassistant.components.camera import SUPPORT_STREAM from homeassistant.components.mjpeg.camera import ( CONF_MJPEG_URL, CONF_STILL_IMAGE_URL, MjpegCamera, filter_urllib3_logging, ) from homeassistant.const import ( CONF_AUTHENTICATION, CONF_HOST, ...
32.934066
84
0.691024
7404a4577cd8c25d60b81b85aa962289ad35c706
269
py
Python
python/functions.py
jadsonjs/DataScience
61d09064d438fd7a910cbc2bd8f1107e27d5cd5c
[ "Apache-2.0" ]
null
null
null
python/functions.py
jadsonjs/DataScience
61d09064d438fd7a910cbc2bd8f1107e27d5cd5c
[ "Apache-2.0" ]
null
null
null
python/functions.py
jadsonjs/DataScience
61d09064d438fd7a910cbc2bd8f1107e27d5cd5c
[ "Apache-2.0" ]
null
null
null
# # https://docs.python.org/3/tutorial/ # # to execute this file type: "python3 functions.py" on linux or macoc terminal # # Defining Functions def fib(n): a, b = 0, 1 while a < n: print(a, end=' ') a, b = b, a + b print() fib(100)
15.823529
79
0.550186
9f81c43c2ae1252ac62fa677eacf83a3119e78d2
4,424
py
Python
session2/b_bar_chart_covid19.py
iestebanmarina/MACT20.21_Digital_tools_Big_Data_part_2
752ed8a244aa8ce3d700755fb9631c1ebe9a097a
[ "Apache-2.0" ]
null
null
null
session2/b_bar_chart_covid19.py
iestebanmarina/MACT20.21_Digital_tools_Big_Data_part_2
752ed8a244aa8ce3d700755fb9631c1ebe9a097a
[ "Apache-2.0" ]
null
null
null
session2/b_bar_chart_covid19.py
iestebanmarina/MACT20.21_Digital_tools_Big_Data_part_2
752ed8a244aa8ce3d700755fb9631c1ebe9a097a
[ "Apache-2.0" ]
1
2021-01-27T15:16:45.000Z
2021-01-27T15:16:45.000Z
# encoding: utf-8 ################################################## # This script shows how to collect data from remote sources and create bar plots # Find extra documentation for the source code here: # https://github.com/diegopajarito/COVID19_datavis # Note: the project does not have changes after mid 2019 ########...
39.855856
199
0.712251
4c5880d8b8ab49a75174cc7d3570b71142dae8de
20,572
py
Python
mobly/utils.py
booneng/mobly
539788309c7631c20fa5381937e10f9cd997e2d0
[ "Apache-2.0" ]
null
null
null
mobly/utils.py
booneng/mobly
539788309c7631c20fa5381937e10f9cd997e2d0
[ "Apache-2.0" ]
null
null
null
mobly/utils.py
booneng/mobly
539788309c7631c20fa5381937e10f9cd997e2d0
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.312024
80
0.681995
109183a1208a119d26de52c086789764903cc835
2,915
py
Python
src/geektime/geektime.py
gaoxingliang/geek-time-courses
09ac32a2efcf4a46c47a29cef1ff3f43a726b7a4
[ "MIT" ]
17
2019-05-20T01:42:03.000Z
2021-08-23T02:26:36.000Z
src/geektime/geektime.py
gaoxingliang/geek-time-courses
09ac32a2efcf4a46c47a29cef1ff3f43a726b7a4
[ "MIT" ]
1
2019-06-07T14:41:26.000Z
2019-06-20T07:15:53.000Z
src/geektime/geektime.py
gaoxingliang/geek-time-courses
09ac32a2efcf4a46c47a29cef1ff3f43a726b7a4
[ "MIT" ]
5
2019-05-21T09:59:00.000Z
2022-01-16T02:56:58.000Z
import requests import json import os from .util.help import formatFileName, dumpResp import pathlib from .util.fileop import multi_thread_download # change it to ld/sd/hd when choosing the video quality videoQuality = "sd" from .Course import Course def getAllCourses(session, **kwargs): # after login get the ...
34.294118
98
0.586621
546178e22778924a9ef25135f12d6bdc3afa3739
1,464
py
Python
book/src/ch06/tests/test_descriptors_uses_1.py
zangyuchen2008/Clean-Code-in-Python-Second-Edition
0be2e41f6cf7322e12ec55d76135ff398df61b4a
[ "MIT" ]
133
2016-07-22T15:16:16.000Z
2022-03-29T22:39:40.000Z
book/src/ch06/tests/test_descriptors_uses_1.py
zangyuchen2008/Clean-Code-in-Python-Second-Edition
0be2e41f6cf7322e12ec55d76135ff398df61b4a
[ "MIT" ]
137
2021-01-05T11:21:04.000Z
2022-03-31T11:10:11.000Z
book/src/ch06/tests/test_descriptors_uses_1.py
zangyuchen2008/Clean-Code-in-Python-Second-Edition
0be2e41f6cf7322e12ec55d76135ff398df61b4a
[ "MIT" ]
41
2020-12-29T04:46:14.000Z
2022-03-20T22:36:17.000Z
"""Clean Code in Python - Chapter 6: Descriptors > Tests for descriptors_uses_1.py """ from datetime import datetime from unittest import TestCase, main from descriptors_uses_1 import LoginEvent DATE_TIME = datetime(2016, 7, 20, 15, 45) class TestLoginEvent(TestCase): def test_serialization(self): eve...
27.111111
64
0.579235
d4f34a6f7ee4d9f00015911a91bf71ad3bbba0c2
2,077
py
Python
conanfile.py
uilianries/conan-catch2
398897f098bc68533d65646a0881e2afbb20e3e9
[ "MIT" ]
null
null
null
conanfile.py
uilianries/conan-catch2
398897f098bc68533d65646a0881e2afbb20e3e9
[ "MIT" ]
3
2018-04-09T14:02:20.000Z
2018-11-23T11:36:56.000Z
conanfile.py
uilianries/conan-catch2
398897f098bc68533d65646a0881e2afbb20e3e9
[ "MIT" ]
3
2018-08-21T09:04:41.000Z
2019-01-15T17:10:10.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from conans import ConanFile, tools, CMake import os import tempfile class Catch2Conan(ConanFile): name = "catch2" version = "2.5.0" description = "A modern, C++-native, header-only, framework for unit-tests, TDD and BDD" homepage = "https://github.com/ca...
37.763636
116
0.662975
a6150098327cbc7a3bb9ea330a511a235f880a01
893
py
Python
switchbot_client/scenes/base.py
kzosabe/switchbot-client
71a3a214e178ffdabbc9352c15676cbf4268928b
[ "Apache-2.0", "MIT" ]
1
2021-09-04T06:38:36.000Z
2021-09-04T06:38:36.000Z
switchbot_client/scenes/base.py
kzosabe/switchbot-client
67f0c43da823d3342d006bbb3d370f298f55df56
[ "Apache-2.0", "MIT" ]
9
2021-09-06T00:26:55.000Z
2022-03-12T10:22:18.000Z
switchbot_client/scenes/base.py
kzosabe/switchbot-client
71a3a214e178ffdabbc9352c15676cbf4268928b
[ "Apache-2.0", "MIT" ]
null
null
null
from __future__ import annotations from dataclasses import dataclass from typing import TYPE_CHECKING from switchbot_client.devices import SwitchBotCommandResult if TYPE_CHECKING: from switchbot_client import SwitchBotClient @dataclass() class SwitchBotScene: client: SwitchBotClient scene_id: str s...
26.264706
92
0.697648
21962f9fa1bbadad13865c49dd8ec5360172fd35
833
py
Python
Python/Codes/Practice/LeetCode/287 Find the Duplicate Number.py
QuincyWork/AllCodes
59fe045608dda924cb993dde957da4daff769438
[ "MIT" ]
null
null
null
Python/Codes/Practice/LeetCode/287 Find the Duplicate Number.py
QuincyWork/AllCodes
59fe045608dda924cb993dde957da4daff769438
[ "MIT" ]
null
null
null
Python/Codes/Practice/LeetCode/287 Find the Duplicate Number.py
QuincyWork/AllCodes
59fe045608dda924cb993dde957da4daff769438
[ "MIT" ]
1
2019-04-01T10:30:03.000Z
2019-04-01T10:30:03.000Z
class Solution(object): def findDuplicate(self, nums): """ :type nums: List[int] :rtype: int """ self.quickSort(nums,0,len(nums)-1) def quickSort(self,nums,left,right): """ """ if left < right: pivot = self.partition(nums...
25.242424
57
0.494598
6fd95958ed7daa9a61a0040663837eca60aa60c9
1,531
py
Python
setup.py
Matatika/iplotter
1b43973cb64cd7c310c6209577213d01a9d1acbe
[ "MIT" ]
1
2021-11-23T16:06:28.000Z
2021-11-23T16:06:28.000Z
setup.py
Matatika/iplotter
1b43973cb64cd7c310c6209577213d01a9d1acbe
[ "MIT" ]
null
null
null
setup.py
Matatika/iplotter
1b43973cb64cd7c310c6209577213d01a9d1acbe
[ "MIT" ]
null
null
null
from setuptools import setup from setuptools import find_packages __version__ = '1.2.1' if __name__ == '__main__': setup( name='matatika-iplotter', version=__version__, description='JavaScript Charting for iPython/Jupyter notebooks', setup_requires=['setuptools-markdown'], ...
38.275
77
0.578707
406e3375b00bf519a574dff50c6d91c548752e53
7,541
py
Python
ch06/layers.py
bossm0n5t3r/deep-learning-from-scratch
8b06ffc7067f54ca54cc23822ec4a86d33c5e10a
[ "MIT" ]
null
null
null
ch06/layers.py
bossm0n5t3r/deep-learning-from-scratch
8b06ffc7067f54ca54cc23822ec4a86d33c5e10a
[ "MIT" ]
null
null
null
ch06/layers.py
bossm0n5t3r/deep-learning-from-scratch
8b06ffc7067f54ca54cc23822ec4a86d33c5e10a
[ "MIT" ]
null
null
null
# coding: utf-8 import numpy as np from functions import * from util import im2col, col2im class Relu: def __init__(self): self.mask = None def forward(self, x): self.mask = (x <= 0) out = x.copy() out[self.mask] = 0 return out def backward(self, dout): d...
26.552817
101
0.516377
00d562e89ff30f6e80adc64d36f4b5300c37cc19
572
py
Python
data/test/python/00d562e89ff30f6e80adc64d36f4b5300c37cc19signals.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/test/python/00d562e89ff30f6e80adc64d36f4b5300c37cc19signals.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/test/python/00d562e89ff30f6e80adc64d36f4b5300c37cc19signals.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
import django.dispatch user_signed_up = django.dispatch.Signal(providing_args=["user", "form"]) user_sign_up_attempt = django.dispatch.Signal(providing_args=["username", "email", "result"]) signup_code_sent = django.dispatch.Signal(providing_args=["signup_code"]) signup_code_used = django.dispatch.Signal(providing_a...
52
94
0.809441
5bdb5cf007cfc79c7b3f8e1ad21dc19401467d33
601
py
Python
search_bar/search_indexes.py
sudo-woodo/hitmeup
45e50b0676d986a7308ba80bf623daa8a588767d
[ "MIT" ]
1
2018-03-28T14:38:35.000Z
2018-03-28T14:38:35.000Z
search_bar/search_indexes.py
sudo-woodo/hitmeup
45e50b0676d986a7308ba80bf623daa8a588767d
[ "MIT" ]
1
2022-02-11T19:13:04.000Z
2022-02-11T19:13:04.000Z
search_bar/search_indexes.py
sudo-woodo/hitmeup
45e50b0676d986a7308ba80bf623daa8a588767d
[ "MIT" ]
1
2018-02-14T06:36:43.000Z
2018-02-14T06:36:43.000Z
from haystack import indexes from django.contrib.auth.models import User # Create search_bar index for user search_bar, can add additional filters later class UserIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) username_auto = indexes.NgramField(model_a...
42.928571
79
0.785358
3e777aa60c3e8bad894938a3035cb8f8d0992181
7,830
py
Python
intersight/models/hyperflex_st_platform_cluster_healing_info.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/hyperflex_st_platform_cluster_healing_info.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/hyperflex_st_platform_cluster_healing_info.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class HyperflexStPlatformClusterHealingInfo(object): ""...
30.826772
166
0.646871
d6572c66a26113b7b742e8c3641fee718310acf7
726
py
Python
tovp/donate/urls.py
nrsimha/tovp
311bc957c95c294811d737f5df30b0a218d35610
[ "MIT" ]
null
null
null
tovp/donate/urls.py
nrsimha/tovp
311bc957c95c294811d737f5df30b0a218d35610
[ "MIT" ]
null
null
null
tovp/donate/urls.py
nrsimha/tovp
311bc957c95c294811d737f5df30b0a218d35610
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.DonateView.as_view(), name="donate"), url(r'^donate/(?P<promotion_slug>[-\w]+)/$', views.SelectRegionView.as_view(), name="select_region"), url(r'^donate/radha-madhava-brick/(?P<region>[-\w]+)/$', views.DonateRadhaMadhav...
55.846154
134
0.687328
f02299674cb22f29271b96057999ea9bb115fd3e
17,505
py
Python
src/autonlp/project.py
goncaloperes/autonlp
6ce277027ca72ab01664d372ea106a2fd59d7a96
[ "Apache-2.0" ]
667
2021-03-05T14:00:05.000Z
2022-03-24T06:43:41.000Z
src/autonlp/project.py
goncaloperes/autonlp
6ce277027ca72ab01664d372ea106a2fd59d7a96
[ "Apache-2.0" ]
54
2021-03-05T18:31:39.000Z
2022-01-24T13:17:33.000Z
src/autonlp/project.py
goncaloperes/autonlp
6ce277027ca72ab01664d372ea106a2fd59d7a96
[ "Apache-2.0" ]
45
2021-03-07T13:02:18.000Z
2021-12-11T08:09:53.000Z
import os import shutil import subprocess from dataclasses import dataclass from datetime import datetime from typing import Dict, List, Optional, Tuple import requests from huggingface_hub import Repository from loguru import logger from prettytable import PrettyTable from tqdm import tqdm from .audio_utils import S...
39.604072
125
0.577092
ed5db7369f13b05b3d4f16790ff3cbed6e518d8a
110,618
py
Python
tensorflow/contrib/tpu/python/tpu/tpu_estimator.py
ashuven63/tf_audio
bc561b81069001da01a1c7df4c16f6b9ba9a400b
[ "Apache-2.0" ]
1
2018-05-30T00:34:05.000Z
2018-05-30T00:34:05.000Z
tensorflow/contrib/tpu/python/tpu/tpu_estimator.py
timctho/tensorflow
015c72eac3f4e448dd8ab852843e902771496532
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/tpu/python/tpu/tpu_estimator.py
timctho/tensorflow
015c72eac3f4e448dd8ab852843e902771496532
[ "Apache-2.0" ]
1
2021-11-16T19:59:48.000Z
2021-11-16T19:59:48.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.351832
112
0.697183
28cb58b5bed6715deb375ff156b3abc562deea7b
1,296
py
Python
apps/threaded_comment/serializers.py
coogger/coogger
9e5e3ca172d8a14272948284a6822000b119119c
[ "MIT" ]
48
2018-04-13T13:00:10.000Z
2020-03-17T23:35:23.000Z
apps/threaded_comment/serializers.py
coogger/coogger
9e5e3ca172d8a14272948284a6822000b119119c
[ "MIT" ]
77
2018-03-25T13:17:12.000Z
2020-08-11T08:24:49.000Z
apps/threaded_comment/serializers.py
coogger/coogger
9e5e3ca172d8a14272948284a6822000b119119c
[ "MIT" ]
35
2018-03-30T21:43:21.000Z
2020-08-11T05:51:46.000Z
from rest_framework import serializers from .models import ThreadedComments class ReplySerializer(serializers.ModelSerializer): username = serializers.ReadOnlyField(source="user.username") title = serializers.ReadOnlyField(source="user.userprofile.title") avatar_url = serializers.ReadOnlyField( s...
28.8
73
0.573302
c49db127bb5e4014c48482754cd52fd553e8b48f
3,077
py
Python
cycles/utils/setMat_VColorEdge.py
HTDerekLiu/BlenderToolbox
99b2e7009ecd49423b4043049de4c25c36b9a43f
[ "Apache-2.0" ]
208
2019-02-28T21:02:07.000Z
2022-03-29T17:17:50.000Z
cycles/utils/setMat_VColorEdge.py
ANABUR920/BlenderToolbox
99b2e7009ecd49423b4043049de4c25c36b9a43f
[ "Apache-2.0" ]
1
2020-10-15T12:11:12.000Z
2020-10-15T12:11:12.000Z
cycles/utils/setMat_VColorEdge.py
ANABUR920/BlenderToolbox
99b2e7009ecd49423b4043049de4c25c36b9a43f
[ "Apache-2.0" ]
25
2019-03-01T01:46:33.000Z
2022-03-12T09:42:30.000Z
# Copyright 2020 Hsueh-Ti Derek Liu # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
38.949367
92
0.753656
082a2d78665e3092c919344f9f963ee8ede61b2b
417
py
Python
L1Trigger/Phase2L1Taus/python/L1TkEGTausAnalyzer_cff.py
thesps/cmssw
ad5315934948ce96699b29cc1d5b03a59f99634f
[ "Apache-2.0" ]
null
null
null
L1Trigger/Phase2L1Taus/python/L1TkEGTausAnalyzer_cff.py
thesps/cmssw
ad5315934948ce96699b29cc1d5b03a59f99634f
[ "Apache-2.0" ]
null
null
null
L1Trigger/Phase2L1Taus/python/L1TkEGTausAnalyzer_cff.py
thesps/cmssw
ad5315934948ce96699b29cc1d5b03a59f99634f
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms from L1Trigger.Phase2L1Taus.L1TkEGTausAnalyzer_cfi import l1TrkEGTausAnalysis TkEGEff = l1TrkEGTausAnalysis.clone() TkEGEff.ObjectType = cms.string("TkEG") TkEGEff.AnalysisOption = cms.string("Efficiency") TkEGRate = l1TrkEGTausAnalysis.cl...
34.75
77
0.733813
3222f4b14f414080b45ae81cbb2626aa6ad1028c
33,225
py
Python
tensorflow/python/kernel_tests/while_v2_test.py
wxwxzhang/tensorflow
fd2d5a3739590590b6bec4c856421ed6eb73a905
[ "Apache-2.0" ]
1
2020-09-03T12:28:15.000Z
2020-09-03T12:28:15.000Z
tensorflow/python/kernel_tests/while_v2_test.py
wxwxzhang/tensorflow
fd2d5a3739590590b6bec4c856421ed6eb73a905
[ "Apache-2.0" ]
null
null
null
tensorflow/python/kernel_tests/while_v2_test.py
wxwxzhang/tensorflow
fd2d5a3739590590b6bec4c856421ed6eb73a905
[ "Apache-2.0" ]
1
2018-09-03T18:32:25.000Z
2018-09-03T18:32:25.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.311475
80
0.654567
a899376acabd4f8112edcf7a0b0ce1f6e2819485
1,761
py
Python
examples/ad_manager/v201811/proposal_service/get_all_proposals.py
beamc83/python-googleads
6039d08e2d85850a46a70f24359d362ffde2f7ed
[ "Apache-2.0" ]
2
2019-07-11T13:01:56.000Z
2019-07-11T13:01:58.000Z
examples/ad_manager/v201811/proposal_service/get_all_proposals.py
SoungMo/googleads-python-lib
fe86335c416e0571328c0a481c4b0cff863c01d9
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v201811/proposal_service/get_all_proposals.py
SoungMo/googleads-python-lib
fe86335c416e0571328c0a481c4b0cff863c01d9
[ "Apache-2.0" ]
1
2020-07-19T14:24:05.000Z
2020-07-19T14:24:05.000Z
#!/usr/bin/env python # # Copyright 2016 Google Inc. 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...
35.22
80
0.73197
2e5c1df9d8227db3edf1ebfac6e8de6f559109a3
3,540
py
Python
config.py
liuyuying123/xss_scan_liu
7b8390ad2cc17d45ee57e7c50b9c17ffca7e7e81
[ "MIT" ]
null
null
null
config.py
liuyuying123/xss_scan_liu
7b8390ad2cc17d45ee57e7c50b9c17ffca7e7e81
[ "MIT" ]
null
null
null
config.py
liuyuying123/xss_scan_liu
7b8390ad2cc17d45ee57e7c50b9c17ffca7e7e81
[ "MIT" ]
null
null
null
globalVariables={'jsondata':'','path':''} #it holds variables during runtime for collaboration across modules proxies = {'http': 'http://0.0.0.0:8080', 'https': 'http://0.0.0.0:8080'} tags = ('html', 'd3v', 'a', 'details') # HTML Tags badTags = ('iframe', 'title', 'textarea', 'noembed', 'style', 'templat...
38.478261
134
0.582486
de9125698ed7bddac509f7d2eb839f7aa21f7a6b
51,622
py
Python
src/network.py
Maria-Riaz/RealmGateway
863434f60d48f6bad94c4136c852c800c7576df4
[ "BSD-3-Clause" ]
1
2018-04-25T11:25:17.000Z
2018-04-25T11:25:17.000Z
src/network.py
Maria-Riaz/RealmGateway
863434f60d48f6bad94c4136c852c800c7576df4
[ "BSD-3-Clause" ]
1
2018-06-24T13:38:47.000Z
2018-06-24T13:38:47.000Z
src/network.py
Maria-Riaz/RealmGateway
863434f60d48f6bad94c4136c852c800c7576df4
[ "BSD-3-Clause" ]
3
2018-04-26T07:01:08.000Z
2019-07-16T13:56:43.000Z
""" BSD 3-Clause License Copyright (c) 2018, Jesus Llorente Santos, Aalto University, Finland 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 copy...
49.070342
518
0.6338
f60e8e878da20bc4514d8f83a385f7a8d57cc0d3
559
py
Python
tools/site_compare/operators/__init__.py
rwatson/chromium-capsicum
b03da8e897f897c6ad2cda03ceda217b760fd528
[ "BSD-3-Clause" ]
11
2015-03-20T04:08:08.000Z
2021-11-15T15:51:36.000Z
tools/site_compare/operators/__init__.py
changbai1980/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
null
null
null
tools/site_compare/operators/__init__.py
changbai1980/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
1
2020-11-04T07:22:28.000Z
2020-11-04T07:22:28.000Z
#!/usr/bin/python2.4 # # Copyright 2007 Google Inc. All Rights Reserved. """Selects the appropriate operator.""" __author__ = 'jhaas@google.com (Jonathan Haas)' def GetOperator(operator): """Given an operator by name, returns its module. Args: operator: string describing the comparison Returns: modu...
20.703704
75
0.711986
567a884d992c77591aa658a9bffeda22944fd9d1
5,316
py
Python
simscale_sdk/models/augmented_lagrange_method.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
8
2021-01-22T13:41:03.000Z
2022-01-03T09:00:10.000Z
simscale_sdk/models/augmented_lagrange_method.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
null
null
null
simscale_sdk/models/augmented_lagrange_method.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
3
2021-03-18T15:52:52.000Z
2022-01-03T08:59:30.000Z
# coding: utf-8 """ SimScale API The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from simscale_sdk.configuration import Configuration class AugmentedLagrangeMethod(object): """NOTE: This class is auto ge...
34.519481
146
0.638074
5bb284aa522886558fc7dd66a026ebb1825cf71f
1,035
py
Python
src/upcoming_python_events/with_selenium.py
codermrhasan/web-scraping-with-python
7cd9b6d3d5af3b85a214e8531e5a29cdb68ef405
[ "MIT" ]
null
null
null
src/upcoming_python_events/with_selenium.py
codermrhasan/web-scraping-with-python
7cd9b6d3d5af3b85a214e8531e5a29cdb68ef405
[ "MIT" ]
1
2021-03-31T19:41:22.000Z
2021-03-31T19:41:22.000Z
src/upcoming_python_events/with_selenium.py
codermrhasan/web-scraping-with-python
7cd9b6d3d5af3b85a214e8531e5a29cdb68ef405
[ "MIT" ]
null
null
null
from selenium import webdriver def scraper(): url = 'https://www.python.org/events/python-events/' driver = webdriver.Chrome(executable_path='chromedriver') driver.get(url) events = driver.find_elements_by_xpath('//ul[contains(@class, "list-recent-events")]/li') print( f"\n Upcomin...
33.387097
103
0.582609
dcde3c4094c351329c70b177983a22d44ee0afdb
490
py
Python
test.py
threefoldtech/digital_me_recipes
3a67e2c6683cae32294fddc292244a50a4745781
[ "Apache-2.0" ]
null
null
null
test.py
threefoldtech/digital_me_recipes
3a67e2c6683cae32294fddc292244a50a4745781
[ "Apache-2.0" ]
null
null
null
test.py
threefoldtech/digital_me_recipes
3a67e2c6683cae32294fddc292244a50a4745781
[ "Apache-2.0" ]
null
null
null
from jumpscale import j community = j.servers.digitalme.community community.knowledge_learn("recipes") m = community.service_dna["zos_virtualbox"] c = community.coordinator_get("node_robot") s = c.service_get(name="os_ubuntu1804_base",instance="main") #now knowledge has been loaded # for i in range(100): # ...
16.896552
81
0.720408
54350e70b2041725773fce71e0a028318af12197
13,209
py
Python
tests/hikari/test_messages.py
ashwinvin/hikari
0d38beef0b883f39e6dd6dd9ae60c2abf2541cca
[ "MIT" ]
1
2021-09-05T18:15:24.000Z
2021-09-05T18:15:24.000Z
tests/hikari/test_messages.py
ashwinvin/hikari
0d38beef0b883f39e6dd6dd9ae60c2abf2541cca
[ "MIT" ]
34
2021-10-01T17:08:11.000Z
2022-03-29T02:21:07.000Z
tests/hikari/test_messages.py
norinorin/hikari
fc72441c75fb1ff39bbdca9e8ce11cbb16270a34
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020 Nekokatt # Copyright (c) 2021 davfsa # # 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 right...
35.130319
118
0.641381
cbd60caa78d6e42d2460c8970f754e886cd97bb6
20,551
py
Python
log_complete_bcl2/model_713.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_complete_bcl2/model_713.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_complete_bcl2/model_713.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', '...
95.143519
798
0.804146
e0145045f5a3f35ec90fa0d0309a73c1f0e2c121
648
py
Python
src/services/utils/armor/__init__.py
solomonricky/epic-awesome-gamer
a6ecff90a716bb145931bb4042f9510e68698694
[ "Apache-2.0" ]
null
null
null
src/services/utils/armor/__init__.py
solomonricky/epic-awesome-gamer
a6ecff90a716bb145931bb4042f9510e68698694
[ "Apache-2.0" ]
null
null
null
src/services/utils/armor/__init__.py
solomonricky/epic-awesome-gamer
a6ecff90a716bb145931bb4042f9510e68698694
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Time : 2022/1/16 2:30 # Author : QIN2DIM # Github : https://github.com/QIN2DIM # Description: import os import random import sys import requests if os.getenv("RUNNER_TOOL_CACHE"): _uxo = f"https://github.com/{os.getenv('GITHUB_REPOSITORY', '')}" try: if requests...
27
72
0.604938
2438b25dfb18da6942ccabbd62c64ac294b707f0
3,812
py
Python
pretrained-model/vocoder/hifigan/hifigan-male-generator.py
huseinzol05/malaya-speech
4343c409340c608a426cc6f0926fbe2c1661783e
[ "MIT" ]
111
2020-08-31T04:58:54.000Z
2022-03-29T15:44:18.000Z
pretrained-model/vocoder/hifigan/hifigan-male-generator.py
huseinzol05/malaya-speech
4343c409340c608a426cc6f0926fbe2c1661783e
[ "MIT" ]
14
2020-12-16T07:27:22.000Z
2022-03-15T17:39:01.000Z
pretrained-model/vocoder/hifigan/hifigan-male-generator.py
huseinzol05/malaya-speech
4343c409340c608a426cc6f0926fbe2c1661783e
[ "MIT" ]
29
2021-02-09T08:57:15.000Z
2022-03-12T14:09:19.000Z
import os os.environ['CUDA_VISIBLE_DEVICES'] = '1' import tensorflow as tf import numpy as np from glob import glob from itertools import cycle mels = glob('../speech-bahasa/output-male-v2/mels/*.npy') file_cycle = cycle(mels) f = next(file_cycle) import random def generate(batch_max_steps=8192, hop_size=256): ...
27.824818
79
0.68809
996945d0a3fcfa1fccb8eaba1bb448ec5aa0f8b4
19,840
py
Python
kedro/io/core.py
sansagara/kedro
e4ff7bb1bf2b78e022f591bf63cb90bbf4842bf8
[ "Apache-2.0" ]
1
2021-08-24T14:23:18.000Z
2021-08-24T14:23:18.000Z
kedro/io/core.py
FoundryAI/kedro
5e1dca3e53a80d0ea8686c381f24abf67e7c9da7
[ "Apache-2.0" ]
null
null
null
kedro/io/core.py
FoundryAI/kedro
5e1dca3e53a80d0ea8686c381f24abf67e7c9da7
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 QuantumBlack Visual Analytics Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # THE SOFTWARE IS PROVIDED "AS IS"...
34.86819
96
0.603327