hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
7a19d360fa1e44512450b65f0c0c154f5c643ddb
8,495
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_11_01/aio/operations/_load_balancer_probes_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_11_01/aio/operations/_load_balancer_probes_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_11_01/aio/operations/_load_balancer_probes_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.458101
192
0.665097
ca6e181ba06535a5b98e3635481a8168280357db
3,481
py
Python
op/usematplot/intro1.py
RustFisher/python-playground
3851eedd3db58d0e7de149da35f44356c7caa3f6
[ "MIT" ]
2
2021-07-22T01:58:16.000Z
2021-07-22T06:24:13.000Z
op/usematplot/intro1.py
RustFisher/python-playground
3851eedd3db58d0e7de149da35f44356c7caa3f6
[ "MIT" ]
null
null
null
op/usematplot/intro1.py
RustFisher/python-playground
3851eedd3db58d0e7de149da35f44356c7caa3f6
[ "MIT" ]
null
null
null
import math import matplotlib.pyplot as plt def demo1(): x_list = [] y_list = [] for i in range(0, 100): x_list.append(i) y_list.append(math.sin(i * 0.1)) ax = plt.gca() ax.set_title('rustfisher.com mapplotlib example') ax.set_xlabel('x') ax.set_ylabel('y = sin(x)') ax...
25.595588
106
0.587188
d0e3cb36f8c6fc6c3df3ebd0f5a0a79c460796ad
1,625
py
Python
example.py
andrii-z4i/xmind-sdk-python
d5114550da29b7be440e023125e0e12daab05f46
[ "MIT" ]
10
2018-04-09T10:08:32.000Z
2021-02-13T15:01:12.000Z
example.py
andrii-z4i/xmind-sdk-python
d5114550da29b7be440e023125e0e12daab05f46
[ "MIT" ]
30
2017-12-29T20:54:57.000Z
2021-03-28T21:26:53.000Z
example.py
andrii-z4i/xmind-sdk-python
d5114550da29b7be440e023125e0e12daab05f46
[ "MIT" ]
2
2020-10-23T13:19:01.000Z
2020-11-09T16:15:29.000Z
#-*- coding: utf-8 -*- import xmind from xmind.core import workbook,saver from xmind.core.topic import TopicElement w = xmind.load("test.xmind") # load an existing file or create a new workbook if nothing is found s1=w.getPrimarySheet() # get the first sheet s1.setTitle("first sheet") # set its title r1=s1.getRootTop...
31.25
100
0.748923
fcfe0471669f19c20befcafa9ec58af5df9671ad
11,236
py
Python
src/transformers/models/wav2vec2/feature_extraction_wav2vec2.py
yhavinga/transformers
9932ee4b4bca9045d941af6687ef69eedcf68483
[ "Apache-2.0" ]
1
2022-03-16T13:02:15.000Z
2022-03-16T13:02:15.000Z
src/transformers/models/wav2vec2/feature_extraction_wav2vec2.py
yhavinga/transformers
9932ee4b4bca9045d941af6687ef69eedcf68483
[ "Apache-2.0" ]
2
2022-03-14T10:13:16.000Z
2022-03-14T11:50:27.000Z
src/transformers/models/wav2vec2/feature_extraction_wav2vec2.py
yhavinga/transformers
9932ee4b4bca9045d941af6687ef69eedcf68483
[ "Apache-2.0" ]
2
2022-03-21T04:32:39.000Z
2022-03-22T01:02:49.000Z
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. # # 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...
47.210084
140
0.643734
81536ffbda91d5c74e3810053bf64c14192bcca0
10,947
py
Python
pyfpm/pattern.py
martinblech/pyfpm
8351c3b7979260ddc423c2b42a100360e434c38a
[ "MIT" ]
25
2015-01-06T15:14:51.000Z
2021-04-22T00:54:59.000Z
pyfpm/pattern.py
martinblech/pyfpm
8351c3b7979260ddc423c2b42a100360e434c38a
[ "MIT" ]
1
2019-10-18T03:01:45.000Z
2019-10-18T03:01:45.000Z
pyfpm/pattern.py
martinblech/pyfpm
8351c3b7979260ddc423c2b42a100360e434c38a
[ "MIT" ]
5
2015-09-18T10:03:22.000Z
2018-07-26T05:03:53.000Z
""" This module holds the actual pattern implementations. End users should not normally have to deal with it, except for constructing patterns programatically without making use of the pattern syntax parser. """ import re try: # python 2.x base string _basestring = basestring except NameError: # python ...
30.923729
80
0.566548
b43dabd546e2dfe9a577038cfd5aad99f4826480
486
py
Python
output/models/ms_data/regex/re_dg5_xsd/re_dg5.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/regex/re_dg5_xsd/re_dg5.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/regex/re_dg5_xsd/re_dg5.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import List, Optional @dataclass class Regex: att: Optional[str] = field( default=None, metadata={ "type": "Attribute", "pattern": r"--0[123]\-(12|14)", } ) @dataclass class Doc: class Meta: name...
17.357143
44
0.50823
d19c6e78dd238a277cab37575208c81b3b13faf5
14,205
py
Python
ycmd_client.py
Chiel92/fateycmd
052fd7b2a352dc42cf55a33037024c410d3ac046
[ "MIT" ]
2
2015-08-03T14:42:44.000Z
2015-08-03T16:19:39.000Z
ycmd_client.py
Chiel92/fateycmd
052fd7b2a352dc42cf55a33037024c410d3ac046
[ "MIT" ]
null
null
null
ycmd_client.py
Chiel92/fateycmd
052fd7b2a352dc42cf55a33037024c410d3ac046
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2014 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 ...
37.480211
87
0.611334
b1a74d2b005ac13e2c324ca74bccd1425ca1abfc
4,934
py
Python
var/spack/repos/builtin/packages/rocprofiler-dev/package.py
HigherOrderMethods/spack
87ed3fcc59fc25ce250042338d082925e3a3610b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-03-05T10:54:32.000Z
2021-03-05T14:14:52.000Z
var/spack/repos/builtin/packages/rocprofiler-dev/package.py
HigherOrderMethods/spack
87ed3fcc59fc25ce250042338d082925e3a3610b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
32
2020-12-15T17:29:20.000Z
2022-03-21T15:08:31.000Z
var/spack/repos/builtin/packages/rocprofiler-dev/package.py
HigherOrderMethods/spack
87ed3fcc59fc25ce250042338d082925e3a3610b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-07-19T20:31:27.000Z
2021-07-19T21:14:14.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RocprofilerDev(CMakePackage): """ROCPROFILER library for AMD HSA runtime API extension su...
45.266055
96
0.637211
545d791a4b28bfd4fe8ff953a16084b1bb290abf
1,283
py
Python
Blog/blogForms.py
stevenpi/Link.Python.Django.DiyBlog
b5899a9727ce68c069c2f121747b0e74747d005c
[ "MIT" ]
null
null
null
Blog/blogForms.py
stevenpi/Link.Python.Django.DiyBlog
b5899a9727ce68c069c2f121747b0e74747d005c
[ "MIT" ]
57
2018-03-09T15:02:57.000Z
2022-03-11T23:20:29.000Z
Blog/blogForms.py
stevenpi/Link.Python.Django.DiyBlog
b5899a9727ce68c069c2f121747b0e74747d005c
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.forms import TextInput, Textarea, FileInput from django.utils.translation import ugettext_lazy as _ from markdownx.fields import MarkdownxFormField from Blog.models import Post, Profile class PostCreateForm(forms.ModelForm): class ...
24.207547
103
0.558067
855648bf998a6dd371725815622a112cc14e6e6b
1,645
py
Python
lib/python/treadmill/websocket/api/identity_group.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
2
2017-10-31T18:48:20.000Z
2018-03-04T20:35:20.000Z
lib/python/treadmill/websocket/api/identity_group.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
lib/python/treadmill/websocket/api/identity_group.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
"""A WebSocket handler for Treadmill state. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging from treadmill import schema from treadmill import yamlwrapper as yaml _LOGGER = logging.getLogger(__na...
26.532258
74
0.576292
78a24203b6c398d043460466acfc5d35a525cc4d
343
py
Python
apk_bitminer/setup.py
linkedin/apk-bitminer
111752379e67f095f1f3ac2bc0bf2943ce36120e
[ "BSD-2-Clause" ]
4
2018-08-15T06:49:40.000Z
2021-05-25T04:43:27.000Z
apk_bitminer/setup.py
linkedin/apk-bitminer
111752379e67f095f1f3ac2bc0bf2943ce36120e
[ "BSD-2-Clause" ]
null
null
null
apk_bitminer/setup.py
linkedin/apk-bitminer
111752379e67f095f1f3ac2bc0bf2943ce36120e
[ "BSD-2-Clause" ]
4
2018-08-27T08:02:27.000Z
2020-04-21T00:50:53.000Z
import setuptools setuptools.setup( name='apk_bitminer', package_dir={'': 'src'}, packages=setuptools.find_packages('src'), include_package_data=True, namespace_packages=[], license='BSD 2-CLAUSE LICENSE', version='1.0.6', scripts=['src/apk_bitminer/pydexdump', 'src/apk_b...
21.4375
45
0.661808
b25b9900279f75a9b0b6aa96bdacc5c0f60930a1
126,765
py
Python
atp_mens/data_2019_05.py
Tjorriemorrie/ufc
46918c91e1ccf464d9d03dc8524dab91eca239d2
[ "Apache-2.0" ]
1
2019-11-10T14:14:42.000Z
2019-11-10T14:14:42.000Z
atp_mens/data_2019_05.py
Tjorriemorrie/ufc
46918c91e1ccf464d9d03dc8524dab91eca239d2
[ "Apache-2.0" ]
2
2020-09-25T23:55:31.000Z
2022-02-10T00:20:20.000Z
atp_mens/data_2019_05.py
Tjorriemorrie/ufc
46918c91e1ccf464d9d03dc8524dab91eca239d2
[ "Apache-2.0" ]
null
null
null
from men import * from location import * DATA_2019_05 = [ { 'location': MADRID, 'date': '2019-05-05', 'matches': [ # 2019-05-04 { 'round': 512, 'players': [ ALBERT_RAMOS_VINOLAS, TARO_DANIEL ...
29.168201
67
0.261831
5ea685d51551aeb72095bc8a466ad5c6ce50f6cb
6,543
py
Python
sdk/python/pulumi_azure_native/network/v20160330/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_native/network/v20160330/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_native/network/v20160330/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from enum import Enum __all__ = [ 'ApplicationGatewayCookieBasedAffinity', 'ApplicationGatewayProtocol', 'ApplicationGatewayRequestRouting...
24.414179
265
0.683479
8d3248d6618818ee429828912e6ae7fbd78e9e3a
980
py
Python
easyneuron/neighbours/__init__.py
neuron-ai/easyNeuron
15454f342092729765ed3428f8b54ec7d0e5e626
[ "Apache-2.0" ]
1
2021-12-11T14:04:04.000Z
2021-12-11T14:04:04.000Z
easyneuron/neighbours/__init__.py
neuron-ai/easyNeuron
15454f342092729765ed3428f8b54ec7d0e5e626
[ "Apache-2.0" ]
null
null
null
easyneuron/neighbours/__init__.py
neuron-ai/easyNeuron
15454f342092729765ed3428f8b54ec7d0e5e626
[ "Apache-2.0" ]
null
null
null
"""easyneuron.neighbours offers a variety of tools to accellerate the development and usage of neighbour-based ML algorithms. Classes ------- KNNClassifier - K-Nearest-Neighbours classification algorithm """ # Copyright 2021 Neuron-AI GitHub Authors. All Rights Reserved. # # Licensed under the Apache Licen...
42.608696
126
0.696939
ff89d6e03cef335fa05a5e68cd8ff1dc5ec7a293
33,458
py
Python
stellar_base/builder.py
shredding/py-stellar-base
46089e0c27f43fb877c3d105c661b43921094e12
[ "Apache-2.0" ]
null
null
null
stellar_base/builder.py
shredding/py-stellar-base
46089e0c27f43fb877c3d105c661b43921094e12
[ "Apache-2.0" ]
null
null
null
stellar_base/builder.py
shredding/py-stellar-base
46089e0c27f43fb877c3d105c661b43921094e12
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import binascii import warnings from .asset import Asset from .horizon import HORIZON_LIVE, HORIZON_TEST from .horizon import Horizon from .keypair import Keypair from . import memo from .network import NETWORKS, Network from . import operation from .transaction import Transaction from .transaction_env...
41.002451
129
0.612828
8debb216347154706fa810448fac54aadf7f6272
870
py
Python
src/cms/templatetags/text_filters.py
mckinly/cms-django
c9995a3bfab6ee2d02f2406a7f83cf91b7ccfcca
[ "Apache-2.0" ]
14
2020-12-03T07:56:30.000Z
2021-10-30T13:09:50.000Z
integreat_cms/cms/templatetags/text_filters.py
Carlosbogo/integreat-cms
066f188b138e105e72f5420bc36d25709f25402d
[ "Apache-2.0" ]
367
2020-11-20T00:34:20.000Z
2021-12-14T15:20:42.000Z
src/cms/templatetags/text_filters.py
mckinly/cms-django
c9995a3bfab6ee2d02f2406a7f83cf91b7ccfcca
[ "Apache-2.0" ]
3
2021-02-09T18:46:52.000Z
2021-12-07T10:41:39.000Z
""" This is a collection of tags and filters for strings. """ from django import template register = template.Library() @register.filter(name="words") def words(text): """ Split the given text into a list of words, see :meth:`python:str.split`. :param text: The input string :type text: str :ret...
23.513514
76
0.687356
b37bf34822cdf36a8a5826bc16a0c7348e8f1236
2,181
py
Python
setup.py
momyc/gevent-fastcgi
4fef82c5a73a24b288d0d6c47bb63ff47921e8dc
[ "MIT" ]
11
2015-02-25T14:24:40.000Z
2019-12-06T02:30:23.000Z
setup.py
momyc/gevent-fastcgi
4fef82c5a73a24b288d0d6c47bb63ff47921e8dc
[ "MIT" ]
3
2015-12-05T14:20:52.000Z
2019-12-21T01:00:01.000Z
setup.py
momyc/gevent-fastcgi
4fef82c5a73a24b288d0d6c47bb63ff47921e8dc
[ "MIT" ]
7
2015-08-25T16:37:46.000Z
2021-06-02T12:51:58.000Z
import os import sys from setuptools import setup, Extension, find_packages ext_modules = [] # C speedups are no good for PyPy if '__pypy__' not in sys.builtin_module_names: if os.name == "nt": ext_modules.append( Extension('gevent_fastcgi.speedups', ['gevent_fastcgi/speedups.c'], libraries=["...
34.619048
102
0.646492
f95e38997da5d346ef3d0f6684f0c86fdb7a050b
2,723
py
Python
OpenDataCatalog/opendata/feeds.py
runonthespot/Open-Data-Catalog
5fca499b383279a511188d5e05190b46d37fdaad
[ "MIT" ]
105
2015-01-11T19:08:03.000Z
2022-03-09T12:58:39.000Z
OpenDataCatalog/opendata/feeds.py
runonthespot/Open-Data-Catalog
5fca499b383279a511188d5e05190b46d37fdaad
[ "MIT" ]
3
2017-08-23T15:12:39.000Z
2019-03-06T22:58:35.000Z
OpenDataCatalog/opendata/feeds.py
runonthespot/Open-Data-Catalog
5fca499b383279a511188d5e05190b46d37fdaad
[ "MIT" ]
40
2015-05-18T01:25:08.000Z
2022-03-09T02:14:27.000Z
from django.contrib.syndication.views import Feed from django.utils.feedgenerator import Rss201rev2Feed as Rss2 from django.shortcuts import get_object_or_404 from OpenDataCatalog.opendata.models import Resource, Tag, Idea class BaseResourceFeed(Feed): feed_type = Rss2 def item_title(self, item): retu...
34.0375
102
0.696658
da5dda673b7fe6e8a6eb580e1e0016e8307a9ee4
7,701
py
Python
tests/test_utils.py
scottyhq/pystac
6314b1961156b9e99857dd8c5cf99d4f72ef4ac3
[ "Apache-2.0" ]
null
null
null
tests/test_utils.py
scottyhq/pystac
6314b1961156b9e99857dd8c5cf99d4f72ef4ac3
[ "Apache-2.0" ]
null
null
null
tests/test_utils.py
scottyhq/pystac
6314b1961156b9e99857dd8c5cf99d4f72ef4ac3
[ "Apache-2.0" ]
null
null
null
import unittest import os import json import ntpath from datetime import datetime, timezone, timedelta from pystac import utils from pystac.utils import (make_relative_href, make_absolute_href, is_absolute_href) class UtilsTest(unittest.TestCase): def test_make_relative_href(self): # Test cases of (sour...
51
100
0.529152
91dd079c4f75acbef563eaac8083f9d812797397
5,126
py
Python
aggregators/brute.py
LPD-EPFL/DifferentialByzantine
132d4feee305126c672b4f06198287daa615ec35
[ "MIT" ]
2
2021-10-18T02:56:19.000Z
2021-11-13T02:31:15.000Z
aggregators/brute.py
IKACE/DifferentialByzantine-1
809fd6e070fedeb87a6dbff6f883e93e3c5c8e09
[ "MIT" ]
null
null
null
aggregators/brute.py
IKACE/DifferentialByzantine-1
809fd6e070fedeb87a6dbff6f883e93e3c5c8e09
[ "MIT" ]
1
2021-12-04T21:58:48.000Z
2021-12-04T21:58:48.000Z
# coding: utf-8 ### # @file brute.py # @author Sébastien Rouault <sebastien.rouault@alumni.epfl.ch> # # @section LICENSE # # Copyright © 2018-2021 École Polytechnique Fédérale de Lausanne (EPFL). # See LICENSE file. # # @section DESCRIPTION # # Brute GAR. ### import tools from . import register import it...
32.649682
133
0.665431
85f36bdd9ab27d953dfceee3235135b8a975b712
762
py
Python
package/standalone_kr_usn/lib/hostap/script/wpas/halow_sta.py
teledatics/nrc7292_sdk
d0ba3f17e1bef3d6fec7370e7f0ffa77db56e3a4
[ "MIT" ]
7
2020-07-20T03:58:40.000Z
2022-03-15T13:29:18.000Z
package/standalone_kr_usn/lib/hostap/script/wpas/halow_sta.py
teledatics/nrc7292_sdk
d0ba3f17e1bef3d6fec7370e7f0ffa77db56e3a4
[ "MIT" ]
3
2021-07-16T12:39:36.000Z
2022-02-02T18:19:51.000Z
package/standalone_kr_usn/lib/hostap/script/wpas/halow_sta.py
teledatics/nrc7292_sdk
d0ba3f17e1bef3d6fec7370e7f0ffa77db56e3a4
[ "MIT" ]
4
2020-09-19T18:03:04.000Z
2022-02-02T13:17:34.000Z
#!/usr/bin/python import os import time import commands print "NRC STA setting for HaLow ..." print "[0] rmmod" os.system("sudo killall -9 wpa_supplicant") os.system("sudo rmmod nrc") print "[1] insmod" os.system("sudo insmod ./nrc.ko power_save=1 fw_name=uni_s1g.bin") time.sleep(5) print "[2] set trx gain" os.sys...
23.090909
78
0.716535
708abc0c59f58cdf1238639cb90b24b53cd4ac52
3,043
py
Python
examples/repost_best_photos_from_users.py
vistar/instabot
078606725b71fcc23081b205c6acecbf487024ed
[ "Apache-2.0" ]
null
null
null
examples/repost_best_photos_from_users.py
vistar/instabot
078606725b71fcc23081b205c6acecbf487024ed
[ "Apache-2.0" ]
null
null
null
examples/repost_best_photos_from_users.py
vistar/instabot
078606725b71fcc23081b205c6acecbf487024ed
[ "Apache-2.0" ]
null
null
null
""" instabot example Workflow: Repost best photos from users to your account By default bot checks username_database.txt The file should contain one username per line! """ import argparse import os import sys from tqdm import tqdm sys.path.append(os.path.join(sys.path[0], '../')) from instabot i...
32.031579
104
0.720342
98da95c26c49e00f421e2acb4249e0c3f9032be5
662
py
Python
auto/www/app.py
mawentao119/bigface
e6f14809b9dc0785ad7cdeccd38ed87de2b925a6
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
auto/www/app.py
mawentao119/bigface
e6f14809b9dc0785ad7cdeccd38ed87de2b925a6
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2021-08-13T10:43:31.000Z
2021-08-13T10:43:31.000Z
auto/www/app.py
mawentao119/bigface
e6f14809b9dc0785ad7cdeccd38ed87de2b925a6
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = "苦叶子" """ Modified by mawentao119@gmail.com """ from flask import Flask from flask_apscheduler import APScheduler from auto.configuration import config scheduler = APScheduler() def create_app(config_name): app = Flask(__name__) app.config.from_object(config[config_na...
20.060606
63
0.73716
77af8727abc9a2267e96a85e53b655ccf594f6af
3,500
py
Python
espnet2/bin/aggregate_stats_dirs.py
undeadyequ/espnet
8c3f85ce695153abcb9cf365180b1d7554ad565e
[ "Apache-2.0" ]
1
2021-12-22T06:04:44.000Z
2021-12-22T06:04:44.000Z
espnet2/bin/aggregate_stats_dirs.py
undeadyequ/espnet
8c3f85ce695153abcb9cf365180b1d7554ad565e
[ "Apache-2.0" ]
null
null
null
espnet2/bin/aggregate_stats_dirs.py
undeadyequ/espnet
8c3f85ce695153abcb9cf365180b1d7554ad565e
[ "Apache-2.0" ]
1
2022-01-07T02:29:05.000Z
2022-01-07T02:29:05.000Z
#!/usr/bin/env python3 import argparse import logging from pathlib import Path import sys from typing import Iterable from typing import Union import numpy as np from espnet.utils.cli_utils import get_commandline_args def aggregate_stats_dirs( input_dir: Iterable[Union[str, Path]], output_dir: Union[str, Path],...
35.353535
88
0.550571
d51ea929be8aa572c050a6c917ad73fe581e1e26
3,143
py
Python
rest_framework/pagination.py
0x64746b/django-rest-framework
8d83ff8e6c8513d0a88d6b1fecb34ed86f1e2085
[ "Unlicense" ]
87
2016-01-24T16:41:02.000Z
2021-12-20T21:13:24.000Z
rest_framework/pagination.py
laborautonomo/django-rest-framework
299a8347e8ef448eefc611eebfe80d7e142ceaa1
[ "Unlicense" ]
16
2020-02-11T23:19:19.000Z
2022-03-11T23:33:40.000Z
rest_framework/pagination.py
laborautonomo/django-rest-framework
299a8347e8ef448eefc611eebfe80d7e142ceaa1
[ "Unlicense" ]
57
2016-02-02T05:46:14.000Z
2021-03-21T15:46:06.000Z
""" Pagination serializers determine the structure of the output that should be used for paginated responses. """ from __future__ import unicode_literals from rest_framework import serializers from rest_framework.templatetags.rest_framework import replace_query_param class NextPageField(serializers.Field): """ ...
33.084211
93
0.686287
cb257908ca99a3923ad2354661946b9e54779d7d
1,143
py
Python
contrib/filter-lcov.py
j2ibeo/askalcoin
56cbf4ad39e8b43c65dad647531b5e573584ac91
[ "MIT" ]
null
null
null
contrib/filter-lcov.py
j2ibeo/askalcoin
56cbf4ad39e8b43c65dad647531b5e573584ac91
[ "MIT" ]
null
null
null
contrib/filter-lcov.py
j2ibeo/askalcoin
56cbf4ad39e8b43c65dad647531b5e573584ac91
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2020 The Askalcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import argparse parser = argparse.ArgumentParser(description='Remove the coverage data from a tracefil...
39.413793
125
0.67979
4f0d585475669677a437d5567ad7e050c51db64a
804
py
Python
invalidation.py
tored11/DRF-redis-cache-decorator
8653f8afce35554e1bc00a5158871b152c5535b0
[ "MIT" ]
null
null
null
invalidation.py
tored11/DRF-redis-cache-decorator
8653f8afce35554e1bc00a5158871b152c5535b0
[ "MIT" ]
null
null
null
invalidation.py
tored11/DRF-redis-cache-decorator
8653f8afce35554e1bc00a5158871b152c5535b0
[ "MIT" ]
null
null
null
from django.core.cache import cache from .key_construction import get_user_cache_key, get_model_cache_key def invalidate_model_cache(model): """ Invalidates all model related caches. :param model: Model class """ model_name = get_model_cache_key(model) invalidate_cache_key_pattern(model_name)...
25.935484
69
0.743781
b9e245c35f72e903156ccaee8e7d434bfd9b864d
3,630
py
Python
models/rscnn_ssn_cls.py
v-wewei/Relation-Shape-CNN
04c114d6eaf981736721f0013dab4fc3c91ae05f
[ "MIT" ]
421
2019-04-17T01:52:40.000Z
2022-03-23T09:42:54.000Z
models/rscnn_ssn_cls.py
v-wewei/Relation-Shape-CNN
04c114d6eaf981736721f0013dab4fc3c91ae05f
[ "MIT" ]
45
2019-04-19T02:35:53.000Z
2022-02-15T10:18:17.000Z
models/rscnn_ssn_cls.py
v-wewei/Relation-Shape-CNN
04c114d6eaf981736721f0013dab4fc3c91ae05f
[ "MIT" ]
84
2019-04-17T16:20:45.000Z
2022-03-29T07:55:18.000Z
import os, sys BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) sys.path.append(os.path.join(BASE_DIR, "../utils")) import torch import torch.nn as nn from torch.autograd import Variable import pytorch_utils as pt_utils from pointnet2_modules import PointnetSAModule, PointnetSAModuleMSG i...
33.302752
112
0.571625
68461dca6710b158fb77a6647536d4434a21c133
3,477
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/python-mega-algo/scripts/validate_solutions.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
5
2021-06-02T23:44:25.000Z
2021-12-27T16:21:57.000Z
scripts/validate_solutions.py
Agha-Muqarib/Python
04f156a8973d6156a4357e0717d9eb0aa264d086
[ "MIT" ]
22
2021-05-31T01:33:25.000Z
2021-10-18T18:32:39.000Z
scripts/validate_solutions.py
Agha-Muqarib/Python
04f156a8973d6156a4357e0717d9eb0aa264d086
[ "MIT" ]
3
2021-06-19T03:37:47.000Z
2021-08-31T00:49:51.000Z
#!/usr/bin/env python3 import hashlib import importlib.util import json import os import pathlib from types import ModuleType import pytest import requests PROJECT_EULER_DIR_PATH = pathlib.Path.cwd().joinpath("project_euler") PROJECT_EULER_ANSWERS_PATH = pathlib.Path.cwd().joinpath( "scripts", "project_euler_answ...
35.845361
86
0.694277
cc806f4a0b41e7f3e89bc14ef30b653aaeb3e9cf
6,825
py
Python
tf2onnx/optimizer/const_fold_optimizer.py
garymm/tensorflow-onnx
a8f78ac7903493dee579304b7b1717aa9ec9706f
[ "Apache-2.0" ]
null
null
null
tf2onnx/optimizer/const_fold_optimizer.py
garymm/tensorflow-onnx
a8f78ac7903493dee579304b7b1717aa9ec9706f
[ "Apache-2.0" ]
null
null
null
tf2onnx/optimizer/const_fold_optimizer.py
garymm/tensorflow-onnx
a8f78ac7903493dee579304b7b1717aa9ec9706f
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 """const fold Optimizer. if op's inputs are all const then do op computation when building the graph to improve performance for example, input of transpose node is const then we can do transpose statically instead of at runtime """ import numpy as np from .. import utils f...
37.916667
111
0.653187
ca6f67a7cc855cbdafffcebccb10c6deb6c204c1
1,897
py
Python
ivy_tests/test_array_api/array_api_tests/special_cases/test_acosh.py
djl11/ivy
209f74b5a1a82ca69ad712788ae0469c3f8614d9
[ "Apache-2.0" ]
null
null
null
ivy_tests/test_array_api/array_api_tests/special_cases/test_acosh.py
djl11/ivy
209f74b5a1a82ca69ad712788ae0469c3f8614d9
[ "Apache-2.0" ]
null
null
null
ivy_tests/test_array_api/array_api_tests/special_cases/test_acosh.py
djl11/ivy
209f74b5a1a82ca69ad712788ae0469c3f8614d9
[ "Apache-2.0" ]
null
null
null
""" Special cases tests for acosh. These tests are generated from the special cases listed in the spec. NOTE: This file is generated automatically by the generate_stubs.py script. Do not modify it directly. """ from ..array_helpers import NaN, assert_exactly_equal, exactly_equal, infinity, less, one, zero from ..hyp...
28.313433
95
0.647865
70fd9a74bdbaa067ea3e3f9376e4ac8e51a65416
1,057
py
Python
python/tests/test_plot.py
jsemric/keepsake
d9a7922556748e9e913e83c48e5378b7324eeac7
[ "Apache-2.0" ]
810
2021-02-09T09:26:26.000Z
2022-03-25T14:06:13.000Z
python/tests/test_plot.py
jsemric/keepsake
d9a7922556748e9e913e83c48e5378b7324eeac7
[ "Apache-2.0" ]
347
2021-02-08T07:24:29.000Z
2022-03-31T23:05:29.000Z
python/tests/test_plot.py
jsemric/keepsake
d9a7922556748e9e913e83c48e5378b7324eeac7
[ "Apache-2.0" ]
43
2020-10-30T19:55:42.000Z
2021-01-18T22:41:49.000Z
import datetime import matplotlib.pyplot as plt from keepsake.checkpoint import Checkpoint, CheckpointList from keepsake.experiment import Experiment, ExperimentList from keepsake.project import Project, init def test_num_plots(temp_workdir): with open("keepsake.yaml", "w") as f: f.write("repository: fil...
30.2
80
0.662252
3a312a33d9f450e9d41221c8d5dfcf426afe450f
42,724
py
Python
tools/build/v2/build/virtual_target.py
jmuskaan72/Boost
047e36c01841a8cd6a5c74d4e3034da46e327bc1
[ "BSL-1.0" ]
198
2015-01-13T05:47:18.000Z
2022-03-09T04:46:46.000Z
tools/build/v2/build/virtual_target.py
xiaoliang2121/Boost
fc90c3fde129c62565c023f091eddc4a7ed9902b
[ "BSL-1.0" ]
4
2015-03-19T08:23:23.000Z
2019-06-24T07:48:47.000Z
tools/build/v2/build/virtual_target.py
xiaoliang2121/Boost
fc90c3fde129c62565c023f091eddc4a7ed9902b
[ "BSL-1.0" ]
139
2015-01-15T20:09:31.000Z
2022-01-31T15:21:16.000Z
# Status: ported. # Base revision: 64488. # # Copyright (C) Vladimir Prus 2002. Permission to copy, use, modify, sell and # distribute this software is granted provided this copyright notice appears in # all copies. This software is provided "as is" without express or implied # warranty, and with no claim as...
38.180518
120
0.553085
856b1a37d65971b47afece31886ae288d771c654
16,824
py
Python
train_results_individualslices.py
aikonbrasil/RL_on_Slicing
fe6cdb064826480172fd2bef35423f1339dd9af7
[ "MIT" ]
null
null
null
train_results_individualslices.py
aikonbrasil/RL_on_Slicing
fe6cdb064826480172fd2bef35423f1339dd9af7
[ "MIT" ]
null
null
null
train_results_individualslices.py
aikonbrasil/RL_on_Slicing
fe6cdb064826480172fd2bef35423f1339dd9af7
[ "MIT" ]
1
2021-08-07T10:49:36.000Z
2021-08-07T10:49:36.000Z
# -*- coding: utf-8 -*- """ @author: anonymous """ import numpy as np import matplotlib.pyplot as plt from itertools import cycle import json import matplotlib #matplotlib.use('Qt5Agg') import argparse import csv import scipy.io as extmatlab def main(scenario): json_file = scenario['json...
50.371257
204
0.683785
e3f6c8a6322c1d518d5f6f8ced3a4d703b6b3d72
2,319
py
Python
EthanBrown.SublimeText2.WebPackages/tools/PackageCache/SublimeLinter/sublimelinter/modules/perl.py
michaelray/Iristyle-ChocolateyPackages
5051538253ff095af4b64d469137b23420f28be0
[ "MIT" ]
18
2015-01-14T13:36:47.000Z
2020-10-22T19:53:57.000Z
sublimelinter/modules/perl.py
davgit/SublimeLinter
f1f3a9f66bc3d5f8ebb1671ad36963e9121a5074
[ "MIT" ]
12
2015-04-13T13:56:14.000Z
2017-02-04T08:35:35.000Z
sublimelinter/modules/perl.py
davgit/SublimeLinter
f1f3a9f66bc3d5f8ebb1671ad36963e9121a5074
[ "MIT" ]
30
2015-01-20T12:32:53.000Z
2019-01-26T12:39:02.000Z
# -*- coding: utf-8 -*- # perl.py - sublimelint package for checking perl files import re import subprocess from base_linter import BaseLinter CONFIG = { 'language': 'Perl' } class Linter(BaseLinter): PERLCRITIC_RE = re.compile(r'\[(?P<pbp>.+)\] (?P<error>.+?) at line (?P<line>\d+), column (?P<column>\d+)....
35.136364
156
0.550668
f3096cdbe1da1c36fed741281d01ec91cd5cab99
3,834
py
Python
networking_bagpipe/bagpipe_bgp/bgp_daemon.py
daespinel/networking-bagpipe-1
7e96cc651394813c1dc80747186b6cfcaa173f14
[ "Apache-2.0" ]
29
2015-11-09T21:47:52.000Z
2022-01-25T16:03:17.000Z
networking_bagpipe/bagpipe_bgp/bgp_daemon.py
openstack/networking-bagpipe-l2
d472fb7b5d05b70f9f4e12288eee1a9a01fdc9fd
[ "Apache-2.0" ]
null
null
null
networking_bagpipe/bagpipe_bgp/bgp_daemon.py
openstack/networking-bagpipe-l2
d472fb7b5d05b70f9f4e12288eee1a9a01fdc9fd
[ "Apache-2.0" ]
9
2015-11-17T08:24:32.000Z
2020-10-25T18:59:48.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # encoding: utf-8 # Copyright 2014 Orange # # 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 # # Un...
29.267176
79
0.691445
203abe1bfbdd57f76bc43df415fa9c12d5619ca5
315
py
Python
config.py
nicfro/brownian_motion
03db2d9a2527b6ee9c6004960cc71da302a1fe2e
[ "MIT" ]
null
null
null
config.py
nicfro/brownian_motion
03db2d9a2527b6ee9c6004960cc71da302a1fe2e
[ "MIT" ]
null
null
null
config.py
nicfro/brownian_motion
03db2d9a2527b6ee9c6004960cc71da302a1fe2e
[ "MIT" ]
null
null
null
settings = {"velocity_min": 1, "velocity_max": 3, "x_boundary": 800, "y_boundary": 800, "small_particle_radius": 5, "big_particle_radius": 10, "number_of_particles": 500, "density_min": 2, "density_max": 20 }
31.5
39
0.47619
9ec3328f482770e5f1af0357233920a8760f88a4
923
py
Python
kikit/defs.py
patrykf03/KiKit
dc85f67fb9e209c9b511ec84672c0809e203f8ea
[ "MIT" ]
784
2020-04-08T08:26:38.000Z
2022-03-31T12:56:27.000Z
kikit/defs.py
patrykf03/KiKit
dc85f67fb9e209c9b511ec84672c0809e203f8ea
[ "MIT" ]
257
2020-04-07T20:29:05.000Z
2022-03-29T21:15:50.000Z
kikit/defs.py
patrykf03/KiKit
dc85f67fb9e209c9b511ec84672c0809e203f8ea
[ "MIT" ]
110
2020-04-09T09:19:26.000Z
2022-03-30T15:04:32.000Z
from enum import Enum, IntEnum # These classes miss in the exported interface class Layer(IntEnum): F_Cu = 0 B_Cu = 31 B_Adhes = 32 F_Adhes = 33 B_Paste = 34 F_Paste = 35 B_SilkS = 36 F_SilkS = 37 B_Mask = 38 F_Mask = 39 Dwgs_User = 40 Cmts_User = 41 Eco1_User = 42 ...
18.46
46
0.631636
44f12c7525f7650a6540436cd5f6f1f1f39b7347
169
py
Python
della/inbox/forms.py
tdidechkin/della-django
a035a34fd3b9a5bd1aec872c0f48508b836d53b2
[ "MIT" ]
50
2016-11-02T12:46:52.000Z
2021-06-10T14:28:19.000Z
della/inbox/forms.py
tdidechkin/della-django
a035a34fd3b9a5bd1aec872c0f48508b836d53b2
[ "MIT" ]
13
2016-11-08T16:53:18.000Z
2017-05-10T17:59:57.000Z
della/inbox/forms.py
tdidechkin/della-django
a035a34fd3b9a5bd1aec872c0f48508b836d53b2
[ "MIT" ]
21
2016-11-08T16:40:22.000Z
2021-10-14T17:34:24.000Z
from django.forms import ModelForm from .models import Message class MessageCreateForm(ModelForm): class Meta: model = Message fields = ['text']
15.363636
35
0.680473
17aee985a13459c2b9259841b25648e101f019ea
6,301
py
Python
tracext/git/future27.py
brokenbeatnik/trac-git-plugin
722342ef03639415d7a1dc0230239d34cb97d988
[ "BSD-3-Clause" ]
3
2015-06-03T02:34:35.000Z
2016-07-31T21:54:07.000Z
tracext/git/future27.py
brokenbeatnik/trac-git-plugin
722342ef03639415d7a1dc0230239d34cb97d988
[ "BSD-3-Clause" ]
2
2015-02-19T09:02:19.000Z
2019-05-22T09:14:13.000Z
tracext/git/future27.py
brokenbeatnik/trac-git-plugin
722342ef03639415d7a1dc0230239d34cb97d988
[ "BSD-3-Clause" ]
3
2015-02-19T05:25:41.000Z
2017-09-26T07:47:09.000Z
# Copyright (C) 2001-2010 Python Software Foundation; All Rights Reserved # This file contains backports for Python 2.5 based on Python 2.7's standard library __all__ = ['namedtuple'] from operator import itemgetter as _itemgetter from keyword import iskeyword as _iskeyword import sys as _sys ######################...
39.879747
126
0.595778
d7f86e4ab470623dddc5e15eff8071f847e02c77
119
py
Python
bbs_answers/admin.py
TakeshiOkamoto/mpp_bbs_dj
0a91c9bf3e1450dc6d062f0beeba263faa33b1e3
[ "MIT" ]
null
null
null
bbs_answers/admin.py
TakeshiOkamoto/mpp_bbs_dj
0a91c9bf3e1450dc6d062f0beeba263faa33b1e3
[ "MIT" ]
null
null
null
bbs_answers/admin.py
TakeshiOkamoto/mpp_bbs_dj
0a91c9bf3e1450dc6d062f0beeba263faa33b1e3
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Answer admin.site.register(Answer)
17
32
0.798319
4edb147f3aa73a878f6420dbf286c7f61bbc8d23
5,072
py
Python
supplementary/simulations/nestablish_DNM_d0.05_s0.20/sim.py
mmosmond/rescueCoalescent
568e3d214d86268bded740612f6fd22129fe34b4
[ "MIT" ]
1
2019-10-21T13:06:45.000Z
2019-10-21T13:06:45.000Z
supplementary/simulations/nestablish_DNM_d0.05_s0.20/sim.py
mmosmond/rescueCoalescent
568e3d214d86268bded740612f6fd22129fe34b4
[ "MIT" ]
null
null
null
supplementary/simulations/nestablish_DNM_d0.05_s0.20/sim.py
mmosmond/rescueCoalescent
568e3d214d86268bded740612f6fd22129fe34b4
[ "MIT" ]
null
null
null
import os #to run SLiM from python N0 = 1e4 #intial population size and carrying capacity d = 0.05 #decline rate s = 0.2 #selection coefficient h = 0.5 #dominance coefficient B = 2 #number of offspring per parent us = [10**(i/4) for i in range(-24,-11,2)] #mutation rates at selected site to explore m = 0 #migration ra...
45.693694
199
0.683162
c9e08dec9fa715ce53a70f011ffa6a11343e7950
6,270
py
Python
zeus/pubsub/server.py
conrad-kronos/zeus
ddb6bc313e51fb22222b30822b82d76f37dbbd35
[ "Apache-2.0" ]
221
2017-07-03T17:29:21.000Z
2021-12-07T19:56:59.000Z
zeus/pubsub/server.py
conrad-kronos/zeus
ddb6bc313e51fb22222b30822b82d76f37dbbd35
[ "Apache-2.0" ]
298
2017-07-04T18:08:14.000Z
2022-03-03T22:24:51.000Z
zeus/pubsub/server.py
conrad-kronos/zeus
ddb6bc313e51fb22222b30822b82d76f37dbbd35
[ "Apache-2.0" ]
24
2017-07-15T13:46:45.000Z
2020-08-16T16:14:45.000Z
import aioredis import asyncio import io import json from aiohttp.web import Application, Response, StreamResponse from collections import namedtuple from functools import wraps from flask import current_app from urllib.parse import urlparse from uuid import uuid4 import sentry_sdk from zeus import auth from zeus.ut...
30.8867
87
0.611962
a02ff8de5b12c28d27fbb28af5e5414a95cc37c8
530
py
Python
pysbolgraph/S2Experiment.py
zhfanrui/pysbolgraph
c4914705bd9b22a2b69db0fc4d43049fcb07ad17
[ "BSD-2-Clause" ]
4
2018-06-29T10:43:08.000Z
2019-03-27T22:33:33.000Z
pysbolgraph/S2Experiment.py
zhfanrui/pysbolgraph
c4914705bd9b22a2b69db0fc4d43049fcb07ad17
[ "BSD-2-Clause" ]
14
2019-01-22T16:03:12.000Z
2019-11-11T19:05:32.000Z
pysbolgraph/S2Experiment.py
zhfanrui/pysbolgraph
c4914705bd9b22a2b69db0fc4d43049fcb07ad17
[ "BSD-2-Clause" ]
12
2018-07-01T10:59:37.000Z
2021-03-01T08:48:20.000Z
from .S2Identified import S2Identified from .terms import Prov from .terms import SBOL2 from rdflib import URIRef from rdflib.namespace import RDF class S2Experiment(S2Identified): def __init__(self, g, uri): super(S2Experiment, self).__init__(g, uri) @property def experimental_data(self): ...
24.090909
101
0.749057
1453a5af872ae03a445f7ab9351ff5e14d812e58
1,090
py
Python
setup.py
ivanrvpereira/mllp-http
a2c527ece4159c6b3e9ab19b13475be86df30921
[ "MIT" ]
6
2020-11-12T19:24:52.000Z
2022-02-04T15:32:02.000Z
setup.py
ivanrvpereira/mllp-http
a2c527ece4159c6b3e9ab19b13475be86df30921
[ "MIT" ]
8
2021-02-15T15:00:42.000Z
2022-02-19T00:36:50.000Z
setup.py
ivanrvpereira/mllp-http
a2c527ece4159c6b3e9ab19b13475be86df30921
[ "MIT" ]
3
2021-03-09T16:45:24.000Z
2021-08-25T08:47:33.000Z
#!/usr/bin/env python3 import os import setuptools version = {} with open("mllp_http/version.py", "r") as f: exec(f.read(), version) with open("README.md", "r") as f: long_description = f.read() setuptools.setup( author="Rivet Health", author_email="ops@rivethealth.com", classifiers=[ "Li...
27.948718
68
0.640367
78553ae2885e4caac2be1618c6082936929065c2
2,803
py
Python
python/GafferUI/Spacer.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
561
2016-10-18T04:30:48.000Z
2022-03-30T06:52:04.000Z
python/GafferUI/Spacer.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
1,828
2016-10-14T19:01:46.000Z
2022-03-30T16:07:19.000Z
python/GafferUI/Spacer.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
120
2016-10-18T15:19:13.000Z
2021-12-20T16:28:23.000Z
########################################################################## # # Copyright (c) 2011, John Haddon. All rights reserved. # Copyright (c) 2011-2012, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided ...
42.469697
94
0.699964
7ae1e20bc239e92f069139819ad1cb808bf74b39
17,381
py
Python
tests/strings_test.py
adbmd/vaex
48531b5d0ff3b8010809dc422f7e67555f0ad79b
[ "MIT" ]
1
2020-08-31T17:53:01.000Z
2020-08-31T17:53:01.000Z
tests/strings_test.py
adbmd/vaex
48531b5d0ff3b8010809dc422f7e67555f0ad79b
[ "MIT" ]
null
null
null
tests/strings_test.py
adbmd/vaex
48531b5d0ff3b8010809dc422f7e67555f0ad79b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import re import vaex import numpy as np import pyarrow as pa import pytest @pytest.mark.skipif(vaex.utils.osname == 'windows', reason="windows' snprintf seems buggy") def test_format(): num1 = np.array([1, 2, 3], dtype=np.int32) num2 = np.array([1.1, 2....
38.032823
135
0.661412
6c7776c63343f6c0eae35947bdd3fdb171dd6687
4,080
py
Python
extdirect/django/filter.py
pavelgood/extdirect.django
58c460e26338521002775b4b038e35a96464fecd
[ "BSD-3-Clause" ]
1
2015-04-02T13:13:31.000Z
2015-04-02T13:13:31.000Z
extdirect/django/filter.py
pavelgood/extdirect.django
58c460e26338521002775b4b038e35a96464fecd
[ "BSD-3-Clause" ]
null
null
null
extdirect/django/filter.py
pavelgood/extdirect.django
58c460e26338521002775b4b038e35a96464fecd
[ "BSD-3-Clause" ]
null
null
null
import operator import string import json import sys from django.db.models import Q from django.db.models.fields import FieldDoesNotExist class QueryParser: """ Mongodb like query parser. Parses query from dict and returns Q-objects. $lt, $gt, $lte, $gte syntax: { field: {$lt: value} } $and, ...
28.93617
98
0.5125
d32f740d2dd09a447e5d9691fa5a1af261fa88aa
8,195
py
Python
src/chains/tests/test_signals.py
byteflyfunny/safe-config-service
86af4a0bcfb7538b57218290f72729cbf3e56b78
[ "MIT" ]
null
null
null
src/chains/tests/test_signals.py
byteflyfunny/safe-config-service
86af4a0bcfb7538b57218290f72729cbf3e56b78
[ "MIT" ]
null
null
null
src/chains/tests/test_signals.py
byteflyfunny/safe-config-service
86af4a0bcfb7538b57218290f72729cbf3e56b78
[ "MIT" ]
null
null
null
import responses from django.test import TestCase, override_settings from chains.models import Feature, Wallet from chains.tests.factories import ChainFactory, GasPriceFactory @override_settings( CGW_URL="http://127.0.0.1", CGW_FLUSH_TOKEN="example-token", ) class ChainNetworkHookTestCase(TestCase): @res...
30.464684
81
0.588408
1e0cb873594b42e970958dc96375fe5179d63c7f
11,297
py
Python
python_scripts/ensemble_gradient_boosting.py
ph4ge/scikit-learn-mooc
a8d0feded54d987fe88480e7ade7d218be69019e
[ "CC-BY-4.0" ]
null
null
null
python_scripts/ensemble_gradient_boosting.py
ph4ge/scikit-learn-mooc
a8d0feded54d987fe88480e7ade7d218be69019e
[ "CC-BY-4.0" ]
null
null
null
python_scripts/ensemble_gradient_boosting.py
ph4ge/scikit-learn-mooc
a8d0feded54d987fe88480e7ade7d218be69019e
[ "CC-BY-4.0" ]
null
null
null
# %% [markdown] # # Gradient-boosting decision tree (GBDT) # # In this notebook, we will present the gradient boosting decision tree # algorithm and contrast it with AdaBoost. # # Gradient-boosting differs from AdaBoost due to the following reason: instead # of assigning weights to specific samples, GBDT will fit a dec...
38.294915
79
0.717005
0e416f250bed301a221befa2e791d36dcfc51c4a
865
py
Python
ducktape/utils/local_filesystem_utils.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
ducktape/utils/local_filesystem_utils.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
ducktape/utils/local_filesystem_utils.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Confluent 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, s...
28.833333
74
0.692486
12c8a888330416de78848e233a2e387cecba70f5
1,366
py
Python
utilities/get_client.py
LaudateCorpus1/aruba-fabric-composer-companion
500bf4153e4658503ea7765ec8cec39847546b8b
[ "Apache-2.0" ]
null
null
null
utilities/get_client.py
LaudateCorpus1/aruba-fabric-composer-companion
500bf4153e4658503ea7765ec8cec39847546b8b
[ "Apache-2.0" ]
null
null
null
utilities/get_client.py
LaudateCorpus1/aruba-fabric-composer-companion
500bf4153e4658503ea7765ec8cec39847546b8b
[ "Apache-2.0" ]
1
2022-02-18T07:09:49.000Z
2022-02-18T07:09:49.000Z
# -*-coding: utf-8 -*- # (C) Copyright 2019 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/licenses/LICENSE-2.0 # Unless ...
31.767442
74
0.72694
9ed0d9bc5f5dba837ce326747709b75d4d14c8da
14,854
py
Python
source-code/real_single_data_processing.py
asvspoof/ASVspoof2019_system
aaf8ec546e1c9154594bfc93c96b6c4f91f26322
[ "MIT" ]
22
2020-02-26T04:00:18.000Z
2021-12-30T10:58:08.000Z
source-code/real_single_data_processing.py
asvspoof/D3M
b85d256d564e93806c4cadc2257863b4f1b0f588
[ "MIT" ]
13
2020-03-02T10:30:23.000Z
2022-01-13T02:19:11.000Z
source-code/real_single_data_processing.py
asvspoof/D3M
b85d256d564e93806c4cadc2257863b4f1b0f588
[ "MIT" ]
4
2020-10-25T12:01:52.000Z
2020-12-23T08:56:23.000Z
import os import numpy as np import torch from torch.utils.data import Dataset, DataLoader from myexp import ex def get_utt_list(_dir_dataset): l_utt = [] for root, dirs, files in os.walk(_dir_dataset): for f in files: if os.path.splitext(f)[1] == ".npy": l_utt.append(f.s...
34.868545
177
0.575737
e9b06c309f9a35f769774d881ec3acf099e6c2ac
1,178
py
Python
capablerobot_camera/deserializers/__init__.py
CapableRobot/CapableRobot_Camera_Python
3880e04e243ad21783c6a67563d83519a23d3eb4
[ "MIT" ]
null
null
null
capablerobot_camera/deserializers/__init__.py
CapableRobot/CapableRobot_Camera_Python
3880e04e243ad21783c6a67563d83519a23d3eb4
[ "MIT" ]
null
null
null
capablerobot_camera/deserializers/__init__.py
CapableRobot/CapableRobot_Camera_Python
3880e04e243ad21783c6a67563d83519a23d3eb4
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2019 Chris Osterwood for Capable Robot Components # # 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...
51.217391
79
0.780136
87f08808a1a1d313a68f6399ee93d2e7ec22b8e4
5,264
py
Python
otter/assign/cell_generators.py
nalderto/otter-grader
a4714bf48df07b7eb8b3c41530ce7a778fd42c98
[ "BSD-3-Clause" ]
null
null
null
otter/assign/cell_generators.py
nalderto/otter-grader
a4714bf48df07b7eb8b3c41530ce7a778fd42c98
[ "BSD-3-Clause" ]
null
null
null
otter/assign/cell_generators.py
nalderto/otter-grader
a4714bf48df07b7eb8b3c41530ce7a778fd42c98
[ "BSD-3-Clause" ]
null
null
null
""" Miscellaneous cell generators for Otter Assign """ import copy import nbformat from .constants import MD_RESPONSE_CELL_SOURCE from .utils import get_source, lock def gen_init_cell(): """ Generates a cell to initialize Otter in the notebook. The code cell has the following contents: .. code-block:: p...
33.106918
116
0.669073
0cf7f15e5fe624698fdca9751b312187a4999a64
681
py
Python
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/samplers/__init__.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
5
2022-01-30T07:35:58.000Z
2022-02-08T05:45:20.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/samplers/__init__.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-14T02:33:28.000Z
2022-01-14T02:33:28.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/samplers/__init__.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-24T16:27:01.000Z
2022-01-24T16:27:01.000Z
# Copyright (c) 2020 PaddlePaddle 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 applic...
37.833333
74
0.767988
2b515f6bcef12b20e05b266be9e86dc8353738a1
5,397
py
Python
mmaction/datasets/extra_aug.py
evgeny-izutov/mmaction
c92d29af87f2373641e2d29bdb14705939fc5423
[ "Apache-2.0" ]
1
2021-03-13T13:07:39.000Z
2021-03-13T13:07:39.000Z
mmaction/datasets/extra_aug.py
evgeny-izutov/mmaction
c92d29af87f2373641e2d29bdb14705939fc5423
[ "Apache-2.0" ]
null
null
null
mmaction/datasets/extra_aug.py
evgeny-izutov/mmaction
c92d29af87f2373641e2d29bdb14705939fc5423
[ "Apache-2.0" ]
1
2021-03-13T13:08:03.000Z
2021-03-13T13:08:03.000Z
import mmcv import numpy as np class PhotoMetricDistortion(object): def __init__(self, brightness_range=None, contrast_range=None, saturation_range=None, hue_delta=None, noise_sigma=None, color_scale=None): self.brightness_lower, self.brightness_upper =\ brightness_range if br...
38.55
113
0.625903
29fbf4df56da53e507777674f4e5f1014faa7ffe
6,377
py
Python
test/test_output_formatter.py
SophieAu/todoster
6f69f7b254683d63f60f934eafa8971e78df7eb2
[ "MIT" ]
5
2020-08-05T21:02:35.000Z
2021-11-11T14:31:35.000Z
test/test_output_formatter.py
SophieAu/todoster
6f69f7b254683d63f60f934eafa8971e78df7eb2
[ "MIT" ]
1
2020-09-24T04:41:20.000Z
2020-09-28T04:37:50.000Z
test/test_output_formatter.py
SophieAu/todoster
6f69f7b254683d63f60f934eafa8971e78df7eb2
[ "MIT" ]
1
2021-08-09T19:23:24.000Z
2021-08-09T19:23:24.000Z
import unittest from todoster import output_formatter class Testformat(unittest.TestCase): bold = "\033[1m" dim = "\033[2m" ul = "\033[4m" reset = "\033[0m" color_default = "\033[39m" color_red = "\033[31m" def setUp(self): pass def tearDown(self): pass def test...
42.798658
148
0.559511
40ee4638590c00c60552c948504d2288f1bfbe07
23,171
py
Python
qcodes/instrument_drivers/tektronix/AWG520.py
LGruenhaupt/Qcodes
ffb74dae53c13c4885e61b5a2df3f833d524de04
[ "MIT" ]
1
2019-12-07T01:25:49.000Z
2019-12-07T01:25:49.000Z
qcodes/instrument_drivers/tektronix/AWG520.py
Dominik-Vogel/Qcodes
b4cf7d58bc1bf3be97af6bf48f57cb6b87d588bb
[ "MIT" ]
12
2020-10-13T16:53:37.000Z
2020-10-14T17:16:22.000Z
qcodes/instrument_drivers/tektronix/AWG520.py
Dominik-Vogel/Qcodes
b4cf7d58bc1bf3be97af6bf48f57cb6b87d588bb
[ "MIT" ]
1
2020-05-03T22:47:40.000Z
2020-05-03T22:47:40.000Z
# Tektronix_AWG520.py class, to perform the communication between the Wrapper and the device # Pieter de Groot <pieterdegroot@gmail.com>, 2008 # Martijn Schaafsma <qtlab@mcschaafsma.nl>, 2008 # Vishal Ranjan, 2012 # Ron schutjens, 2012 # Adriaan Rol, 2016 Ported to QCodes # This program is free software; you can redist...
34.635277
118
0.51914
adab49da32b23fb74b4093f623e84359a42f89df
1,672
py
Python
setup.py
guillaumevincent/rtfdoc
d640d4ec931775830598b8f1eb126c6389d7333a
[ "BSD-2-Clause" ]
1
2015-07-25T22:37:04.000Z
2015-07-25T22:37:04.000Z
setup.py
guillaumevincent/rtfdoc
d640d4ec931775830598b8f1eb126c6389d7333a
[ "BSD-2-Clause" ]
null
null
null
setup.py
guillaumevincent/rtfdoc
d640d4ec931775830598b8f1eb126c6389d7333a
[ "BSD-2-Clause" ]
1
2015-07-26T01:49:56.000Z
2015-07-26T01:49:56.000Z
from os import path from codecs import open from setuptools import setup from rtfdoc import __version__ base_dir = path.abspath(path.dirname(__file__)) with open(path.join(base_dir, 'LICENSE'), encoding='utf-8') as f: LICENSE = f.read() REQUIREMENTS = [ 'CommonMark>=0.5.4', 'Jinja2>=2.7.3' ] setup( ...
30.962963
177
0.642943
bc30e3dce803acae500ded31f26bf9ff253af2f6
2,490
py
Python
wazimap_ng/datasets/admin/__init__.py
OpenUpSA/wazimap-ng
57334e6da319482aa4ff2fde86c4ec27c30ee8d6
[ "Apache-2.0" ]
11
2019-12-31T20:27:22.000Z
2022-03-10T03:55:38.000Z
wazimap_ng/datasets/admin/__init__.py
OpenUpSA/wazimap-ng
57334e6da319482aa4ff2fde86c4ec27c30ee8d6
[ "Apache-2.0" ]
164
2020-02-06T15:02:22.000Z
2022-03-30T22:42:00.000Z
wazimap_ng/datasets/admin/__init__.py
OpenUpSA/wazimap-ng
57334e6da319482aa4ff2fde86c4ec27c30ee8d6
[ "Apache-2.0" ]
16
2020-01-03T20:30:24.000Z
2022-01-11T11:05:15.000Z
from django.contrib import admin from django.contrib.postgres import fields from django_json_widget.widgets import JSONEditorWidget from treebeard.admin import TreeAdmin from treebeard.forms import movenodeform_factory from .indicator_data_admin import IndicatorDataAdmin from .dataset_admin import DatasetAdmin from ....
25.151515
85
0.671888
2b8e6339cb8ce3b65f46ef9e44e9a99c36e73a30
476
py
Python
libs/sqlobject/inheritance/tests/testDestroyCascade.py
scambra/HTPC-Manager
1a1440db84ae1b6e7a2610c7f3bd5b6adf0aab1d
[ "MIT" ]
422
2015-01-08T14:08:08.000Z
2022-02-07T11:47:37.000Z
libs/sqlobject/inheritance/tests/testDestroyCascade.py
scambra/HTPC-Manager
1a1440db84ae1b6e7a2610c7f3bd5b6adf0aab1d
[ "MIT" ]
581
2015-01-01T08:07:16.000Z
2022-02-23T11:44:37.000Z
libs/sqlobject/inheritance/tests/testDestroyCascade.py
scambra/HTPC-Manager
1a1440db84ae1b6e7a2610c7f3bd5b6adf0aab1d
[ "MIT" ]
162
2015-01-01T00:21:16.000Z
2022-02-23T02:36:04.000Z
from sqlobject import * from sqlobject.inheritance import * from sqlobject.tests.dbtest import * class TestCascade1(InheritableSQLObject): dummy = IntCol() class TestCascade2(TestCascade1): c = ForeignKey('TestCascade3', cascade='null') class TestCascade3(SQLObject): dummy = IntCol() def test_destroySe...
22.666667
58
0.731092
80f8cb0cffd024992aef3424b27b37120394de53
917
py
Python
problems/test_0646_sort_by_start.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
1
2017-06-17T23:47:17.000Z
2017-06-17T23:47:17.000Z
problems/test_0646_sort_by_start.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
problems/test_0646_sort_by_start.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
import unittest from typing import List import utils # O(nlog(n)) time. O(1) space. Interval, sorting by end, greedy. class Solution: def findLongestChain(self, pairs: List[List[int]]) -> int: if not pairs: return 0 pairs.sort() num_non_overlaps = 0 prev_end = pairs[0...
23.512821
70
0.582334
cf9f62e501a0468f9a185d4f3c1951cc025a482f
817
py
Python
full-problems/facingSun.py
vikas-t/DS-Algo
ea654d1cad5374c824c52da9d3815a9546eb43fa
[ "Apache-2.0" ]
null
null
null
full-problems/facingSun.py
vikas-t/DS-Algo
ea654d1cad5374c824c52da9d3815a9546eb43fa
[ "Apache-2.0" ]
null
null
null
full-problems/facingSun.py
vikas-t/DS-Algo
ea654d1cad5374c824c52da9d3815a9546eb43fa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # https://practice.geeksforgeeks.org/problems/facing-the-sun/0 def sol(arr, n): """ Create an auxiliary array that stores the index of the building which is tallest till that index. For any building if the tallest bulding is at the same index(same building) it can recieve sunlight ...
29.178571
78
0.602203
4b8f15b645cd5400918f03d8dab01be7ddce106b
498
py
Python
histPlot.py
rhiggins2308/G00364712-project2018
a12817bfba14863595556b1771143993dbf13f37
[ "Apache-2.0" ]
null
null
null
histPlot.py
rhiggins2308/G00364712-project2018
a12817bfba14863595556b1771143993dbf13f37
[ "Apache-2.0" ]
null
null
null
histPlot.py
rhiggins2308/G00364712-project2018
a12817bfba14863595556b1771143993dbf13f37
[ "Apache-2.0" ]
null
null
null
# Robert Higgins (G00364712) - Final Submission 2018-04-29 # 52167-Programming & Scripting # Project 2018 # generate Histograms for Fishers Iris Dataset def getData(): return numpy.genfromtxt('data/iris.csv', delimiter=',') import numpy import matplotlib.pyplot as pl iris = getData() # for various histogram plot...
24.9
67
0.716867
56effed4f983564a3b9dbe9226d10d8074e6cbbc
7,490
py
Python
allennlp/modules/seq2seq_encoders/stacked_self_attention.py
hellozhaojian/allennlp
c22809f27a0764f6948a5c21c4d35d59845c39ac
[ "Apache-2.0" ]
null
null
null
allennlp/modules/seq2seq_encoders/stacked_self_attention.py
hellozhaojian/allennlp
c22809f27a0764f6948a5c21c4d35d59845c39ac
[ "Apache-2.0" ]
null
null
null
allennlp/modules/seq2seq_encoders/stacked_self_attention.py
hellozhaojian/allennlp
c22809f27a0764f6948a5c21c4d35d59845c39ac
[ "Apache-2.0" ]
null
null
null
from typing import List from overrides import overrides import torch from torch.nn import Dropout from allennlp.modules.feedforward import FeedForward from allennlp.modules.layer_norm import LayerNorm from allennlp.modules.seq2seq_encoders.multi_head_self_attention import MultiHeadSelfAttention from allennlp.modules....
44.850299
130
0.680374
c57e94826af412f4dd06be37fe871a91ceed4ede
3,827
py
Python
airbyte-integrations/connectors/source-chargebee/unit_tests/test_source.py
Danucas/airbyte
9e77879a7a3b1a5a559a3df9fa85056365b6fbef
[ "MIT" ]
1
2022-03-29T01:08:58.000Z
2022-03-29T01:08:58.000Z
airbyte-integrations/connectors/source-chargebee/unit_tests/test_source.py
Danucas/airbyte
9e77879a7a3b1a5a559a3df9fa85056365b6fbef
[ "MIT" ]
5
2022-02-22T14:49:48.000Z
2022-03-19T10:43:08.000Z
airbyte-integrations/connectors/source-chargebee/unit_tests/test_source.py
Danucas/airbyte
9e77879a7a3b1a5a559a3df9fa85056365b6fbef
[ "MIT" ]
1
2022-03-11T06:21:24.000Z
2022-03-11T06:21:24.000Z
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # from unittest.mock import MagicMock import responses from airbyte_cdk.models import AirbyteConnectionStatus, AirbyteMessage, ConnectorSpecification, Status, Type from jsonschema import Draft7Validator from source_chargebee import SourceChargebee @response...
30.616
108
0.695323
430c7f47633934cf6e802741731a390ff26b0882
893
py
Python
examples/sklearn/grid_search.py
kintatta/d3rl
0674c4898927a53f36c5c875d8f217337f22d364
[ "MIT" ]
null
null
null
examples/sklearn/grid_search.py
kintatta/d3rl
0674c4898927a53f36c5c875d8f217337f22d364
[ "MIT" ]
null
null
null
examples/sklearn/grid_search.py
kintatta/d3rl
0674c4898927a53f36c5c875d8f217337f22d364
[ "MIT" ]
null
null
null
from d3rlpy.algos import DQN from d3rlpy.datasets import get_cartpole from d3rlpy.metrics.scorer import evaluate_on_environment from d3rlpy.context import parallel from sklearn.model_selection import GridSearchCV # obtain dataset dataset, env = get_cartpole() # setup algowithm with GPU enabled dqn = DQN(n_epochs=1, u...
33.074074
64
0.621501
1a4b5921b730831e2a919d37d23bc559fba281f2
14,188
py
Python
spinup/algos/pytorch/ddpg/ddpg.py
MLRG-CEFET-RJ/DRL-ALM
19e08ee71660c0ce294b0cea8d36e8ac637ddbcf
[ "MIT" ]
3
2020-03-05T09:49:00.000Z
2021-05-18T22:03:24.000Z
spinup/algos/pytorch/ddpg/ddpg.py
MLRG-CEFET-RJ/DRL-ALM
19e08ee71660c0ce294b0cea8d36e8ac637ddbcf
[ "MIT" ]
null
null
null
spinup/algos/pytorch/ddpg/ddpg.py
MLRG-CEFET-RJ/DRL-ALM
19e08ee71660c0ce294b0cea8d36e8ac637ddbcf
[ "MIT" ]
null
null
null
from copy import deepcopy import numpy as np import pandas as pd import torch from torch.optim import Adam import gym import time import spinup.algos.pytorch.ddpg.core as core from spinup.utils.logx import EpochLogger class ReplayBuffer: """ A simple FIFO experience replay buffer for DDPG agents. """ ...
40.887608
103
0.612983
f3c2fbcd5ce1eee3395175c89c6e1eebaf2f0bf9
5,902
py
Python
se_leg_ra/views/ra.py
SUNET/se-leg-ra
ac30e700dda4fceb7a9205b4b2790478cf3ba5b4
[ "BSD-3-Clause" ]
null
null
null
se_leg_ra/views/ra.py
SUNET/se-leg-ra
ac30e700dda4fceb7a9205b4b2790478cf3ba5b4
[ "BSD-3-Clause" ]
null
null
null
se_leg_ra/views/ra.py
SUNET/se-leg-ra
ac30e700dda4fceb7a9205b4b2790478cf3ba5b4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Blueprint, current_app, render_template, url_for, request, redirect from se_leg_ra.forms import DriversLicenseForm, IdCardForm, PassportForm, NationalIDCardForm from se_leg_ra.decorators import require_eppn from se_leg_ra.db import IdCardProofing, DriversLicenseProofing, Passp...
40.986111
119
0.64978
4b640742320c6611df738a7e0061c4f6a09db0ad
1,058
py
Python
model_zoo/__init__.py
misads/torch_image_template
db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1
[ "MIT" ]
5
2019-12-23T05:13:15.000Z
2020-04-09T03:47:53.000Z
torch_template/model_zoo/__init__.py
misads/torch_template
959be6d4bc368c1c3310c3902cc04271cca0941f
[ "MIT" ]
null
null
null
torch_template/model_zoo/__init__.py
misads/torch_template
959be6d4bc368c1c3310c3902cc04271cca0941f
[ "MIT" ]
null
null
null
from .FFA import FFA from .linknet import LinkNet from .linknet import LinkNet50 from .unet import NestedUNet, UNet from .pix2pix import GlobalGenerator, LocalEnhancer from .transform_net import TransformNet from .dense import Dense model_zoo = { 'FFA': FFA, 'LinkNet': LinkNet, 'LinkNet50': LinkNet50, ...
33.0625
69
0.586957
496710b10edee25a22becc8d259831ecfb232e8c
1,634
py
Python
byceps/services/ticketing/log_service.py
GyBraLAN/byceps
b53087849c10a531b66d08999116fa1bef312a7f
[ "BSD-3-Clause" ]
null
null
null
byceps/services/ticketing/log_service.py
GyBraLAN/byceps
b53087849c10a531b66d08999116fa1bef312a7f
[ "BSD-3-Clause" ]
null
null
null
byceps/services/ticketing/log_service.py
GyBraLAN/byceps
b53087849c10a531b66d08999116fa1bef312a7f
[ "BSD-3-Clause" ]
null
null
null
""" byceps.services.ticketing.log_service ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from __future__ import annotations from datetime import datetime from sqlalchemy import select from ...database import db from .dbmod...
27.694915
72
0.716034
43c024f5d198128ac350efe4ad27c6ac469c47db
4,771
py
Python
myslice/lib/remote.py
loicbaron/myslice2
32af9462cc9e5654a6e3036978ae74b0a03a2698
[ "MIT" ]
null
null
null
myslice/lib/remote.py
loicbaron/myslice2
32af9462cc9e5654a6e3036978ae74b0a03a2698
[ "MIT" ]
1
2020-06-02T12:30:07.000Z
2020-06-02T12:30:07.000Z
myslice/lib/remote.py
loicbaron/myslice2
32af9462cc9e5654a6e3036978ae74b0a03a2698
[ "MIT" ]
1
2018-10-29T16:11:26.000Z
2018-10-29T16:11:26.000Z
import socket import select import os import glob import hashlib import paramiko from paramiko.ssh_exception import BadAuthenticationType, BadHostKeyException, AuthenticationException, SSHException # static atm username = 'root' rsa_private_key = "/Users/moray/.ssh/planetlab_root_ssh_key.rsa" remote_dir = "/root/.mysl...
30.388535
116
0.617481
66d0a89b7912adaa6ac8de189bb5d51e3349b9a2
17,093
py
Python
haproxy/tests/test_unit.py
remicalixte/integrations-core
b115e18c52820fe1a92495f538fdc14ddf83cfe1
[ "BSD-3-Clause" ]
null
null
null
haproxy/tests/test_unit.py
remicalixte/integrations-core
b115e18c52820fe1a92495f538fdc14ddf83cfe1
[ "BSD-3-Clause" ]
null
null
null
haproxy/tests/test_unit.py
remicalixte/integrations-core
b115e18c52820fe1a92495f538fdc14ddf83cfe1
[ "BSD-3-Clause" ]
null
null
null
import copy import os from collections import defaultdict import mock from . import common BASE_CONFIG = {'url': 'http://localhost/admin?stats', 'collect_status_metrics': True, 'enable_service_check': True} def _assert_agg_statuses( aggregator, count_status_by_service=True, collate_status_tags_per_host=False, ...
45.825737
119
0.713801
289e68bba99ec1fd4ae116072cfe517821955169
262
py
Python
ScotlandPYard/spyengine/aimrx.py
fkarg/ScotlandPYard
768ecbf20357f5cde8d669f05d11cacaf3299dbb
[ "MIT" ]
6
2017-12-12T08:45:16.000Z
2020-05-15T19:34:09.000Z
ScotlandPYard/spyengine/aimrx.py
fkarg/ScotlandPYard
768ecbf20357f5cde8d669f05d11cacaf3299dbb
[ "MIT" ]
139
2017-12-15T22:29:27.000Z
2022-03-01T15:01:24.000Z
ScotlandPYard/spyengine/aimrx.py
fkarg/ScotlandPYard
768ecbf20357f5cde8d669f05d11cacaf3299dbb
[ "MIT" ]
2
2018-10-09T17:38:55.000Z
2020-06-21T21:28:28.000Z
from .abstractmrx import AbstractMrX class AIMrX(AbstractMrX): def __init__(self, engine, num_players=4): super().__init__(engine, is_ai=True, num_players=num_players) def play_next(self): """TODO: insert AI logic here""" pass
23.818182
69
0.675573
0e4f940ad9df3bb034da44485bcf1e245fe2ec85
138
py
Python
foo.py
Ca2Patton/PythonStuff
9d13f340296bcea41dfca87a4b36e445821703de
[ "Apache-2.0" ]
null
null
null
foo.py
Ca2Patton/PythonStuff
9d13f340296bcea41dfca87a4b36e445821703de
[ "Apache-2.0" ]
null
null
null
foo.py
Ca2Patton/PythonStuff
9d13f340296bcea41dfca87a4b36e445821703de
[ "Apache-2.0" ]
null
null
null
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python def myfunction (**args): print args myfunction(foo="bar", happy="joy")
19.714286
62
0.731884
2b7e260bb339364d3d4da02ea18165121e73f297
8,761
py
Python
api/api/settings.py
marzmehr/representation-grant-app
7155e9193367b7d538381aa7a0745ed1cdfb1f62
[ "Apache-2.0" ]
null
null
null
api/api/settings.py
marzmehr/representation-grant-app
7155e9193367b7d538381aa7a0745ed1cdfb1f62
[ "Apache-2.0" ]
null
null
null
api/api/settings.py
marzmehr/representation-grant-app
7155e9193367b7d538381aa7a0745ed1cdfb1f62
[ "Apache-2.0" ]
null
null
null
""" Django settings for api project. Generated by 'django-admin startproject' using Django 1.9.1. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os from cor...
32.93609
142
0.701176
49611ae91fb652b3531e2c61f9e192724c52b6cf
1,829
py
Python
scrumate/core/deliverable/models.py
nahidsaikat/scrumate
11a63f1cc361261a7023eceafc2a27e29561dca0
[ "MIT" ]
1
2019-04-29T05:44:34.000Z
2019-04-29T05:44:34.000Z
scrumate/core/deliverable/models.py
nahidsaikat/scrumate
11a63f1cc361261a7023eceafc2a27e29561dca0
[ "MIT" ]
27
2019-05-20T18:42:28.000Z
2019-07-20T08:00:46.000Z
scrumate/core/deliverable/models.py
nahidsaikat/scrumate
11a63f1cc361261a7023eceafc2a27e29561dca0
[ "MIT" ]
null
null
null
from django.db import models from simple_history.models import HistoricalRecords from scrumate.core.deliverable.choices import DeliverableStatus from scrumate.core.task.models import Task from scrumate.core.project.models import Project from scrumate.core.sprint.models import Sprint from scrumate.general.choices impor...
52.257143
135
0.762712
d4dce99898990c8328f4b60d00c1d7b05c635ca0
40
py
Python
index.py
seyedmohammadhosseini/blockchain
656f26a84c70e9bd9c041e0a9494454d70293cf1
[ "MIT" ]
null
null
null
index.py
seyedmohammadhosseini/blockchain
656f26a84c70e9bd9c041e0a9494454d70293cf1
[ "MIT" ]
null
null
null
index.py
seyedmohammadhosseini/blockchain
656f26a84c70e9bd9c041e0a9494454d70293cf1
[ "MIT" ]
null
null
null
from system import startup startup.run()
20
26
0.825
76b4898117480e31a640e64a75bddef47e10282e
446
py
Python
src/pretalx/orga/templatetags/orga_edit_link.py
hrchu/pretalx
cd7e5525f80c7290d9650065b4cf4f085032adfc
[ "Apache-2.0" ]
418
2017-10-05T05:52:49.000Z
2022-03-24T09:50:06.000Z
src/pretalx/orga/templatetags/orga_edit_link.py
hrchu/pretalx
cd7e5525f80c7290d9650065b4cf4f085032adfc
[ "Apache-2.0" ]
1,049
2017-09-16T09:34:55.000Z
2022-03-23T16:13:04.000Z
src/pretalx/orga/templatetags/orga_edit_link.py
hrchu/pretalx
cd7e5525f80c7290d9650065b4cf4f085032adfc
[ "Apache-2.0" ]
155
2017-10-16T18:32:01.000Z
2022-03-15T12:48:33.000Z
from django import template from django.utils.safestring import mark_safe from django.utils.translation import gettext_lazy as _ register = template.Library() @register.simple_tag() def orga_edit_link(url, target=None): if target: url = f"{url}#{target}" result = f'<a href="{url}" class="btn btn-xs b...
31.857143
146
0.706278
741ad7355515195cea3829124a005bdf4b9f661e
5,739
py
Python
openstates/openstates-master/openstates/fl/legislators.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/fl/legislators.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/fl/legislators.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
import re import urlparse from billy.scrape.legislators import LegislatorScraper, Legislator import lxml.html class FLLegislatorScraper(LegislatorScraper): jurisdiction = 'fl' latest_only = True def scrape(self, chamber, term): if chamber == 'upper': self.scrape_senators(term) ...
34.160714
90
0.500958
4fe3be244e850e895a2e634af2ac99f00ac6f470
1,101
py
Python
watchout/Demo1/src/robot_decision/scripts/listener.py
GuoPingPan/Watchout
f1abf050408f429d3e3ae46c41f79714248b4010
[ "Apache-2.0" ]
null
null
null
watchout/Demo1/src/robot_decision/scripts/listener.py
GuoPingPan/Watchout
f1abf050408f429d3e3ae46c41f79714248b4010
[ "Apache-2.0" ]
null
null
null
watchout/Demo1/src/robot_decision/scripts/listener.py
GuoPingPan/Watchout
f1abf050408f429d3e3ae46c41f79714248b4010
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import String import threading msg1 = "hellow" msg2 = "hellow" def callback1(msg): print("callback1") print(msg) msg1 = msg def callback2(msg): print("callback2") print(msg) msg2 = msg def subone(): print("1") sub1 = rospy.Subsc...
18.04918
66
0.620345
7e4290117025d869cdb8ea1ae3bce44745024a1e
4,471
py
Python
projects/ISTR/istr/dataset_mapper.py
braindevices/ISTR
520b0d410ba8be5dbf53971d962b0bfcf072a7c0
[ "Apache-2.0" ]
171
2021-05-04T02:44:01.000Z
2022-03-28T09:58:29.000Z
projects/ISTR/istr/dataset_mapper.py
braindevices/ISTR
520b0d410ba8be5dbf53971d962b0bfcf072a7c0
[ "Apache-2.0" ]
10
2021-05-09T16:04:43.000Z
2021-12-03T01:21:44.000Z
projects/ISTR/istr/dataset_mapper.py
braindevices/ISTR
520b0d410ba8be5dbf53971d962b0bfcf072a7c0
[ "Apache-2.0" ]
21
2021-05-04T02:47:57.000Z
2022-01-06T07:34:24.000Z
import copy import logging import numpy as np import torch from detectron2.data import detection_utils as utils from detectron2.data import transforms as T from detectron2.data.transforms import TransformGen __all__ = ["ISTRDatasetMapper"] def build_transform_gen(cfg, is_train): """ Create a list of :class...
36.647541
111
0.639454
de01461afcef863f7464a5a0d09d974cfda5f0ba
3,115
py
Python
backend/sales/models.py
cbreezy623/modabella
b68bcc8aca903887d31489baae609ed70fe3dba7
[ "Apache-2.0" ]
null
null
null
backend/sales/models.py
cbreezy623/modabella
b68bcc8aca903887d31489baae609ed70fe3dba7
[ "Apache-2.0" ]
null
null
null
backend/sales/models.py
cbreezy623/modabella
b68bcc8aca903887d31489baae609ed70fe3dba7
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.utils.translation import gettext_lazy as _ from appointments.models import Appointment, SchedulerAppointment from products.models import Product from services.models import Service, Modifier from decimal import * class PaymentMethod(models.TextChoices): CASH = 'cash', _('Ca...
33.138298
110
0.689567
52817143cc7a0213abd64709958136ec45543a0e
18,040
py
Python
src/m4_sequences.py
Zdanavz/20-Exam3Practice
8ead8bf864e757cb78c2a107971bd53de67a63ad
[ "MIT" ]
null
null
null
src/m4_sequences.py
Zdanavz/20-Exam3Practice
8ead8bf864e757cb78c2a107971bd53de67a63ad
[ "MIT" ]
null
null
null
src/m4_sequences.py
Zdanavz/20-Exam3Practice
8ead8bf864e757cb78c2a107971bd53de67a63ad
[ "MIT" ]
null
null
null
""" PRACTICE Exam 3. This problem provides practice at: *** SEQUENCES. *** Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Amanda Stouder, Aaron Wilkin, their colleagues, and Zack Z. """ # Done: 1. PUT YOUR NAME IN THE ABOVE LINE. #################################...
41.281465
104
0.47306
706f8374c59ed2888e924920e187de4a38c4d51b
1,144
py
Python
src/richie/apps/social/pipeline/user.py
leduong/richie
bf7ed379b7e2528cd790dadcec10ac2656efd189
[ "MIT" ]
174
2018-04-14T23:36:01.000Z
2022-03-10T09:27:01.000Z
src/richie/apps/social/pipeline/user.py
leduong/richie
bf7ed379b7e2528cd790dadcec10ac2656efd189
[ "MIT" ]
631
2018-04-04T11:28:53.000Z
2022-03-31T11:18:31.000Z
src/richie/apps/social/pipeline/user.py
leduong/richie
bf7ed379b7e2528cd790dadcec10ac2656efd189
[ "MIT" ]
64
2018-06-27T08:35:01.000Z
2022-03-10T09:27:43.000Z
"""Module used by python-social-auth pipeline.""" from social_core.exceptions import AuthAlreadyAssociated, AuthFailed USER_FIELDS = ["username", "email"] # pylint: disable=unused-argument,keyword-arg-before-vararg def get_username(strategy, details, backend, user=None, *args, **kwargs): """Check if the username...
33.647059
74
0.69493
e55107a5109ad63bb1e0c49da4342a6f33f656cc
151
py
Python
docs/api_overrides/headers.py
JosXa/TgIntegration
ea8faade8a8892650dfd2f67a83b027e4b2e269b
[ "MIT" ]
109
2018-07-07T12:37:05.000Z
2022-03-16T19:48:47.000Z
docs/api_overrides/headers.py
JosXa/TgIntegration
ea8faade8a8892650dfd2f67a83b027e4b2e269b
[ "MIT" ]
26
2018-07-20T18:35:39.000Z
2021-12-19T23:43:20.000Z
docs/api_overrides/headers.py
JosXa/TgIntegration
ea8faade8a8892650dfd2f67a83b027e4b2e269b
[ "MIT" ]
18
2018-08-25T10:37:30.000Z
2022-01-02T00:41:09.000Z
from mkapi.plugins.mkdocs import MkapiPlugin from mkdocs.config import Config def on_config_with_mkapi(config: Config, mkapi: MkapiPlugin): pass
21.571429
61
0.807947
c8d147acf9c3510b28c03d113f066b07dd4158f1
8,494
py
Python
sdks/python/apache_beam/io/iobase_test.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
1
2019-08-02T18:03:15.000Z
2019-08-02T18:03:15.000Z
sdks/python/apache_beam/io/iobase_test.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
80
2020-01-16T09:55:09.000Z
2020-10-03T13:43:07.000Z
sdks/python/apache_beam/io/iobase_test.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
1
2020-04-29T20:09:40.000Z
2020-04-29T20:09:40.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
39.324074
80
0.749823
a3107c30343304c077ccd961fa8d41050f3685fc
8,035
py
Python
env/lib/python3.6/site-packages/django/db/backends/base/introspection.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
58
2018-10-03T19:41:36.000Z
2022-03-14T21:24:43.000Z
env/lib/python3.6/site-packages/django/db/backends/base/introspection.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
env/lib/python3.6/site-packages/django/db/backends/base/introspection.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
from collections import namedtuple # Structure returned by DatabaseIntrospection.get_table_list() TableInfo = namedtuple('TableInfo', ['name', 'type']) # Structure returned by the DB-API cursor.description interface (PEP 249) FieldInfo = namedtuple('FieldInfo', 'name type_code display_size internal_size precision sca...
41.632124
117
0.640572
9231a9dd42e45467f775342d1226d64a3c6d8495
847
py
Python
1013.py
OmangRawat/Leetcode
6fa696367ef9c5e6b08940b11e2202382d1afc07
[ "MIT" ]
null
null
null
1013.py
OmangRawat/Leetcode
6fa696367ef9c5e6b08940b11e2202382d1afc07
[ "MIT" ]
null
null
null
1013.py
OmangRawat/Leetcode
6fa696367ef9c5e6b08940b11e2202382d1afc07
[ "MIT" ]
null
null
null
""" ---> Partition Array Into Three Parts With Equal Sum ---> Easy """ class Solution: def canThreePartsEqualSum(self, arr) -> bool: sum_of_part = sum(arr) / 3 if sum_of_part != int(sum_of_part) or len(arr) < 3: return False curr_sum = 0 no_of_parts ...
20.658537
93
0.497048
c9666013be6917ca7f0fb6c40afaddb048da53c1
4,724
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_09_01/operations/_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_09_01/operations/_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_09_01/operations/_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.945455
133
0.6558
f8e99bc8b96f285debd4f1ea53b92bc3aea12891
1,202
py
Python
2019/10 October/dp10202019.py
vishrutkmr7/DailyPracticeProblemsDIP
d1bfbc75f2024736c22c05385f753a90ddcfa0f5
[ "MIT" ]
5
2019-08-06T02:34:41.000Z
2022-01-08T03:03:16.000Z
2019/10 October/dp10202019.py
ourangzeb/DailyPracticeProblemsDIP
66c07af88754e5d59b243e3ee9f02db69f7c0a77
[ "MIT" ]
15
2021-06-01T14:04:16.000Z
2022-03-08T21:17:22.000Z
2019/10 October/dp10202019.py
ourangzeb/DailyPracticeProblemsDIP
66c07af88754e5d59b243e3ee9f02db69f7c0a77
[ "MIT" ]
4
2019-09-19T20:00:05.000Z
2021-08-16T11:31:51.000Z
# This problem was recently asked by Facebook: # You are given the root of a binary tree. Find the path between 2 nodes that maximizes the sum of all the nodes in the path, # and return the sum. The path does not necessarily need to go through the root. class Node: def __init__(self, val): self.val = val...
23.568627
125
0.623128
335005df148e53c295b210b88d1580ab7b74052f
1,640
py
Python
z2/part3/updated_part2_batch/jm/parser_errors_2/585479137.py
kozakusek/ipp-2020-testy
09aa008fa53d159672cc7cbf969a6b237e15a7b8
[ "MIT" ]
1
2020-04-16T12:13:47.000Z
2020-04-16T12:13:47.000Z
z2/part3/updated_part2_batch/jm/parser_errors_2/585479137.py
kozakusek/ipp-2020-testy
09aa008fa53d159672cc7cbf969a6b237e15a7b8
[ "MIT" ]
18
2020-03-06T17:50:15.000Z
2020-05-19T14:58:30.000Z
z2/part3/updated_part2_batch/jm/parser_errors_2/585479137.py
kozakusek/ipp-2020-testy
09aa008fa53d159672cc7cbf969a6b237e15a7b8
[ "MIT" ]
18
2020-03-06T17:45:13.000Z
2020-06-09T19:18:31.000Z
from part1 import ( gamma_board, gamma_busy_fields, gamma_delete, gamma_free_fields, gamma_golden_move, gamma_golden_possible, gamma_move, gamma_new, ) """ scenario: test_random_actions uuid: 585479137 """ """ random actions, total chaos """ board = gamma_new(3, 3, 4, 3) assert board is...
28.275862
40
0.656707
50a186c28684d7813f5908b76287234350232bb8
2,609
py
Python
python/mine/mine/app.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
1
2021-12-03T09:23:41.000Z
2021-12-03T09:23:41.000Z
python/mine/mine/app.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
null
null
null
python/mine/mine/app.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
null
null
null
import pygame import game_config as gc import mineswipper as game from pygame import display, event, image from time import sleep import Images def find_index_from_xy(x, y): row = y // gc.IMAGE_SIZE col = x // gc.IMAGE_SIZE index = row * gc.NUM_TILES_SIDE + col return row, col, index pyga...
30.337209
117
0.589115
d51e7c5ca01618c4e5a14ffcf615f490ee81370b
2,420
py
Python
openstack_dashboard/dashboards/admin/metadata_defs/tabs.py
hashsos/hashcloudos-horizon
0cc080ca6777e4a1dac5cbcc6143202baddab176
[ "Apache-2.0" ]
930
2015-01-04T08:06:03.000Z
2022-03-13T18:47:13.000Z
openstack_dashboard/dashboards/admin/metadata_defs/tabs.py
hashsos/hashcloudos-horizon
0cc080ca6777e4a1dac5cbcc6143202baddab176
[ "Apache-2.0" ]
106
2019-01-18T03:06:55.000Z
2019-11-29T05:06:18.000Z
openstack_dashboard/dashboards/admin/metadata_defs/tabs.py
hashsos/hashcloudos-horizon
0cc080ca6777e4a1dac5cbcc6143202baddab176
[ "Apache-2.0" ]
1,040
2015-01-01T18:48:28.000Z
2022-03-19T08:35:18.000Z
# (c) Copyright 2014 Hewlett-Packard Development Company, L.P. # # 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...
35.072464
78
0.63595
e201d3ed7e787d9f431f3c50d52fe5a3e3f4a5b8
112,425
py
Python
python/ccxt/async_support/binance.py
zsyh/ccxt
ac0d0ac2a20166b8b5dc0523ed2d1e4e7f505b80
[ "MIT" ]
null
null
null
python/ccxt/async_support/binance.py
zsyh/ccxt
ac0d0ac2a20166b8b5dc0523ed2d1e4e7f505b80
[ "MIT" ]
null
null
null
python/ccxt/async_support/binance.py
zsyh/ccxt
ac0d0ac2a20166b8b5dc0523ed2d1e4e7f505b80
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import math import json from ccxt.base.errors import ExchangeError from ccxt.base.err...
45.27789
355
0.478034
b829d0031ef2cca9076c7685d49f9c94bad9b50c
4,691
py
Python
textattack/attention_models/han.py
MINGG2333/TextAttack
7667d80f52140aa3cea83b63ce404cad17561dbb
[ "MIT" ]
null
null
null
textattack/attention_models/han.py
MINGG2333/TextAttack
7667d80f52140aa3cea83b63ce404cad17561dbb
[ "MIT" ]
null
null
null
textattack/attention_models/han.py
MINGG2333/TextAttack
7667d80f52140aa3cea83b63ce404cad17561dbb
[ "MIT" ]
null
null
null
import torch from torch import nn from .utils import preprocess, rev_label_map import json import os import gzip import os import sys import io import re import random import csv import numpy as np from nltk.tokenize import PunktSentenceTokenizer, TreebankWordTokenizer from .han_model import HierarchialAttentionNetwork...
42.645455
155
0.626093
6906f4bc1ab2c9bb0c5b90344d59239c8fce2686
5,829
py
Python
website/views.py
hms-dbmi/cistrome-explorer-higlass-server
df811491c7bb757245d7e6804a0a54e356ded54e
[ "MIT" ]
11
2016-11-03T20:19:15.000Z
2018-08-28T09:49:02.000Z
website/views.py
hms-dbmi/cistrome-explorer-higlass-server
df811491c7bb757245d7e6804a0a54e356ded54e
[ "MIT" ]
44
2016-12-12T23:57:13.000Z
2018-06-27T19:32:36.000Z
website/views.py
hms-dbmi/cistrome-explorer-higlass-server
df811491c7bb757245d7e6804a0a54e356ded54e
[ "MIT" ]
6
2016-11-09T20:11:04.000Z
2018-05-29T21:44:38.000Z
import subprocess import pyppeteer import asyncio import logging import os import os.path as op from pyppeteer import launch import tempfile import tilesets.models as tm import higlass_server.settings as hss from django.core.exceptions import ObjectDoesNotExist from django.http import HttpRequest, HttpResponse, \ ...
36.43125
222
0.687768
492991700d662af55cd6b2170303b1cdd10731bc
59
py
Python
2 semester/PW/Coursera/Python/3 Week/12.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
1
2022-02-06T17:50:25.000Z
2022-02-06T17:50:25.000Z
2 semester/PW/Coursera/Python/3 Week/12.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
null
null
null
2 semester/PW/Coursera/Python/3 Week/12.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
1
2022-03-02T06:45:06.000Z
2022-03-02T06:45:06.000Z
s = input() print(s[:s.find("h")] + s[s.rfind("h") + 1:])
14.75
45
0.457627
92a333fd2ebecaecff76ca75b4ce6e3e48b68c0a
272
py
Python
setup.py
RajeshNathani/easy-nlp
915c60a46e523684a3730cf5b7574c14f1c71c4b
[ "MIT" ]
1
2020-08-24T12:28:06.000Z
2020-08-24T12:28:06.000Z
setup.py
RajeshNathani/easy-nlp
915c60a46e523684a3730cf5b7574c14f1c71c4b
[ "MIT" ]
null
null
null
setup.py
RajeshNathani/easy-nlp
915c60a46e523684a3730cf5b7574c14f1c71c4b
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='easy nlp', version = '0.1.1', description = "NLP made easy.", author = "Rajesh Nathani" , author_email = "rajeshnathani055@gmail.com", license = "MIT" , install_requires =['spacy==2.2'], packages = ['easy_nlp'] , zip_safe = False )
27.2
44
0.698529