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
05fa50892db7f4b82e2bb71d0e69f07b9f35ea10
15,396
py
Python
lego/apps/events/tests/test_event_methods.py
andrinelo/lego
9b53c8fe538d9107b980a70e2a21fb487cc3b290
[ "MIT" ]
null
null
null
lego/apps/events/tests/test_event_methods.py
andrinelo/lego
9b53c8fe538d9107b980a70e2a21fb487cc3b290
[ "MIT" ]
null
null
null
lego/apps/events/tests/test_event_methods.py
andrinelo/lego
9b53c8fe538d9107b980a70e2a21fb487cc3b290
[ "MIT" ]
null
null
null
from datetime import timedelta from django.utils import timezone from lego.apps.events.models import Event, Pool, Registration from lego.apps.events.serializers.events import ( EventAdministrateSerializer, populate_event_registration_users_with_grade ) from lego.apps.users.constants import GROUP_GRADE, GROUP_OTHE...
43.738636
100
0.687191
b28585e28a86c740a6f6baa0569760a2e7eb1813
454
py
Python
sequana/cpg_islands.py
vladsaveliev/sequana
f6ee7fa7fb47ec179ceedf24684ba861a244656d
[ "BSD-3-Clause" ]
138
2016-07-13T06:24:45.000Z
2022-03-28T13:12:03.000Z
sequana/cpg_islands.py
vladsaveliev/sequana
f6ee7fa7fb47ec179ceedf24684ba861a244656d
[ "BSD-3-Clause" ]
655
2016-03-10T17:33:40.000Z
2022-03-30T16:10:45.000Z
sequana/cpg_islands.py
vladsaveliev/sequana
f6ee7fa7fb47ec179ceedf24684ba861a244656d
[ "BSD-3-Clause" ]
39
2016-11-04T11:40:58.000Z
2022-03-15T08:12:29.000Z
def CpG(sequence, size=200): """ The Sequence Manipulation Suite: CpG Islands Results for 1200 residue sequence "sample sequence" starting "taacatactt". CpG islands search using window size of 200. Range, value 32 to 231, the y-value is 1.75 and the %GC content is 50.5 33 to 232, the y-va...
23.894737
78
0.662996
903c2493a2fbe5c743773291aa056192ea43a73b
383
py
Python
__init__.py
johirbuet/PyData
8e41c6a86f0b17a34abe83072a9777db710fb231
[ "Apache-2.0" ]
null
null
null
__init__.py
johirbuet/PyData
8e41c6a86f0b17a34abe83072a9777db710fb231
[ "Apache-2.0" ]
null
null
null
__init__.py
johirbuet/PyData
8e41c6a86f0b17a34abe83072a9777db710fb231
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from appjar import gui from appjar import SelectableLabel from appjar import AutoCompleteEntry from appjar import ajScale from appjar import AjText, AjScrolledText from appjar import Meter from appjar import Properties from appjar import Link from appjar import Separator from appjar import Grip ...
27.357143
41
0.832898
86789b148aa8a60acf313dd92f144b16920497c6
12,123
py
Python
generator_data/transformer.py
lisjin/lat-par
e0076041b7f38eedca4d8e75af042024911c75f5
[ "MIT" ]
null
null
null
generator_data/transformer.py
lisjin/lat-par
e0076041b7f38eedca4d8e75af042024911c75f5
[ "MIT" ]
null
null
null
generator_data/transformer.py
lisjin/lat-par
e0076041b7f38eedca4d8e75af042024911c75f5
[ "MIT" ]
null
null
null
import torch from torch import nn from torch.nn import Parameter import torch.jit as jit import torch.nn.functional as F import math class Transformer(jit.ScriptModule): def __init__(self, layers, embed_dim, ff_embed_dim, num_heads, dropout, with_external=False, weights_dropout=True): super(Transformer, se...
41.948097
163
0.64357
14dc5fed23d74e565b11bae01b7f6bb9b46f0615
1,598
py
Python
project-metrics/metrics_service/database/models_test.py
ayumi-cloud/amp-github-apps
4d00a43c657f4168f3b0f40fd0ff4c1ec1dd2bbf
[ "Apache-2.0" ]
1
2019-11-10T06:58:02.000Z
2019-11-10T06:58:02.000Z
project-metrics/metrics_service/database/models_test.py
ayumi-cloud/amp-github-apps
4d00a43c657f4168f3b0f40fd0ff4c1ec1dd2bbf
[ "Apache-2.0" ]
8
2020-02-10T16:04:33.000Z
2022-03-26T13:56:22.000Z
project-metrics/metrics_service/database/models_test.py
ayumi-cloud/amp-github-apps
4d00a43c657f4168f3b0f40fd0ff4c1ec1dd2bbf
[ "Apache-2.0" ]
1
2019-10-08T01:34:21.000Z
2019-10-08T01:34:21.000Z
"""Tests for database models.""" from absl import flags from absl.testing import flagsaver import datetime import unittest from unittest import mock import sqlalchemy from sqlalchemy import orm import sys from database import init_db from database import models FLAGS = flags.FLAGS FLAGS(sys.argv) class TestBuild(u...
24.584615
73
0.702128
14f5ebdc0d76f0c471c8fd273b41be2ee149bf85
455
py
Python
plotly/validators/scatterpolar/_customdatasrc.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/scatterpolar/_customdatasrc.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/scatterpolar/_customdatasrc.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name='customdatasrc', parent_name='scatterpolar', **kwargs ): super(CustomdatasrcValidator, self).__init__( plotly_name=p...
23.947368
72
0.608791
55c737f14a8013a6485ea67114195dec169af99e
6,666
py
Python
bindings/python/ensmallen_graph/datasets/string/helicobacterfelis.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/helicobacterfelis.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/helicobacterfelis.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Helicobacter felis. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2021-02-...
34.900524
223
0.70267
a8969d966ccf8da86fc8b0f60c69bd3d0efdb918
49,275
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/aio/operations/_network_management_client_operations.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/aio/operations/_network_management_client_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/aio/operations/_network_management_client_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "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 ...
53.676471
244
0.674805
aaa34695f0977ee04e8b304d3b7320ffed812bce
2,456
py
Python
kubernetes/test/test_io_xk8s_cluster_bootstrap_v1alpha4_kubeadm_config_spec_join_configuration_discovery_bootstrap_token.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_io_xk8s_cluster_bootstrap_v1alpha4_kubeadm_config_spec_join_configuration_discovery_bootstrap_token.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_io_xk8s_cluster_bootstrap_v1alpha4_kubeadm_config_spec_join_configuration_discovery_bootstrap_token.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.20.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unitte...
41.627119
246
0.757736
1ae52d8001b4bac03f63220313017fcb21263e61
47
py
Python
pytype/__version__.py
kianmeng/pytype
b64248d6f8d9553da5b2f258fd6ad31d18b001d4
[ "Apache-2.0" ]
1
2021-12-31T08:46:43.000Z
2021-12-31T08:46:43.000Z
pytype/__version__.py
kianmeng/pytype
b64248d6f8d9553da5b2f258fd6ad31d18b001d4
[ "Apache-2.0" ]
null
null
null
pytype/__version__.py
kianmeng/pytype
b64248d6f8d9553da5b2f258fd6ad31d18b001d4
[ "Apache-2.0" ]
null
null
null
# pylint: skip-file __version__ = '2021.12.15'
15.666667
26
0.702128
9df4d91ecf5f3be1f2c308ea8ff278330f0d344b
1,365
py
Python
modules/dbnd/src/dbnd/_core/plugin/dbnd_plugin_spec.py
turbaszek/dbnd
6efbf3e7ecd175645e8e58d0d015d32fe9e95ea0
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/_core/plugin/dbnd_plugin_spec.py
turbaszek/dbnd
6efbf3e7ecd175645e8e58d0d015d32fe9e95ea0
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/_core/plugin/dbnd_plugin_spec.py
turbaszek/dbnd
6efbf3e7ecd175645e8e58d0d015d32fe9e95ea0
[ "Apache-2.0" ]
null
null
null
import typing from dbnd._vendor import pluggy if typing.TYPE_CHECKING: from dbnd._core.task_run.task_run import TaskRun hookspec = pluggy.HookspecMarker("dbnd") @hookspec def dbnd_setup_plugin(): """ Called right after plugin is imported """ pass @hookspec def dbnd_get_commands(): """ Called f...
18.69863
73
0.716484
d2bf1ad65401602dd74c91dc456176bb22f0f4d9
11,633
py
Python
langid/train/NBtrain.py
bpopeters/langid.py
9c6187f21bfd7f150bdd6d36a121353bd77ea990
[ "BSD-2-Clause-FreeBSD" ]
1,774
2015-01-03T00:15:46.000Z
2022-03-31T14:52:13.000Z
langid/train/NBtrain.py
bpopeters/langid.py
9c6187f21bfd7f150bdd6d36a121353bd77ea990
[ "BSD-2-Clause-FreeBSD" ]
57
2015-01-13T09:14:40.000Z
2021-09-14T13:14:31.000Z
langid/train/NBtrain.py
bpopeters/langid.py
9c6187f21bfd7f150bdd6d36a121353bd77ea990
[ "BSD-2-Clause-FreeBSD" ]
292
2015-01-20T00:52:29.000Z
2022-03-31T14:52:16.000Z
#!/usr/bin/env python """ NBtrain.py - Model generator for langid.py Marco Lui, January 2013 Based on research by Marco Lui and Tim Baldwin. Copyright 2013 Marco Lui <saffsd@gmail.com>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted p...
35.684049
124
0.691825
863fe275758a76fd16fb972a1f7d55e8fc3e6460
1,174
py
Python
kubernetes/test/test_extensions_v1beta1_runtime_class_strategy_options.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_extensions_v1beta1_runtime_class_strategy_options.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_extensions_v1beta1_runtime_class_strategy_options.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import kube...
29.35
153
0.774276
db45a9844c0fe0027fcb69a7835cae3bb65bbaad
9,434
py
Python
test_Read.py
HollickLab/metagene_analysis
a8b0df296dd1d76ba258fe92550a36bc5242db31
[ "MIT" ]
1
2022-01-22T22:48:38.000Z
2022-01-22T22:48:38.000Z
test_Read.py
HollickLab/metagene_analysis
a8b0df296dd1d76ba258fe92550a36bc5242db31
[ "MIT" ]
null
null
null
test_Read.py
HollickLab/metagene_analysis
a8b0df296dd1d76ba258fe92550a36bc5242db31
[ "MIT" ]
null
null
null
#!/usr/bin/python """test_Read.py to test the Read class. Requires: python 2 (https://www.python.org/downloads/) nose 1.3 (https://nose.readthedocs.org/en/latest/) Joy-El R.B. Talbot Copyright (c) 2014 The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy of this...
41.743363
118
0.647763
f1004836a14f81fe681310e986d7f427047dbb37
3,645
py
Python
correction_methods/coupling_v25/rdt_coupling_20mm_ip.py
a-sandra/FCC-ee-tolerance-package
73f886e5ef3b69e0e705833f31bd0784a43750d2
[ "MIT" ]
null
null
null
correction_methods/coupling_v25/rdt_coupling_20mm_ip.py
a-sandra/FCC-ee-tolerance-package
73f886e5ef3b69e0e705833f31bd0784a43750d2
[ "MIT" ]
null
null
null
correction_methods/coupling_v25/rdt_coupling_20mm_ip.py
a-sandra/FCC-ee-tolerance-package
73f886e5ef3b69e0e705833f31bd0784a43750d2
[ "MIT" ]
null
null
null
__author__ = 'sandra' # Python packages import os import sys sys.path.append('/afs/cern.ch/user/s/saumon/FCCee/packages/python/madx_parameter/') sys.path.append('/afs/cern.ch/user/s/saumon/FCCee/packages/python/metaclass/') sys.path.append('/afs/cern.ch/user/s/saumon/FCCee/packages/python/classtwisstable/') import num...
32.837838
222
0.623868
f9943ff7fdae7b67de3bf2dcb5b5dd3a04173403
35,213
py
Python
cherrypy/_cprequest.py
ron813c/cherrypy
2cc6da312556c1f4a53677a88f02bee5e2221cbd
[ "BSD-3-Clause" ]
null
null
null
cherrypy/_cprequest.py
ron813c/cherrypy
2cc6da312556c1f4a53677a88f02bee5e2221cbd
[ "BSD-3-Clause" ]
null
null
null
cherrypy/_cprequest.py
ron813c/cherrypy
2cc6da312556c1f4a53677a88f02bee5e2221cbd
[ "BSD-3-Clause" ]
1
2018-07-02T19:00:55.000Z
2018-07-02T19:00:55.000Z
import sys import time import uuid import six from six.moves.http_cookies import SimpleCookie, CookieError import cherrypy from cherrypy._cpcompat import text_or_bytes, ntob from cherrypy import _cpreqbody from cherrypy._cperror import format_exc, bare_error from cherrypy.lib import httputil, file_generator, reprconf...
37.223044
79
0.622639
3052bb8be996d43057a97e9837bc41eec8ca693a
5,783
py
Python
contrib/seeds/makeseeds.py
lirabit0101/lirabit
b6a864ebb53fe987fd681a52b09e60d23535c512
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
lirabit0101/lirabit
b6a864ebb53fe987fd681a52b09e60d23535c512
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
lirabit0101/lirabit
b6a864ebb53fe987fd681a52b09e60d23535c512
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Generate seeds.txt from Pieter's DNS seeder # NSEEDS=512 MAX_SEEDS_PER_ASN=2 MIN_BLOCKS = 337600 #...
33.427746
186
0.570292
a6d3375e9450e87faac2f1ef018ada3ba3d6690b
3,737
py
Python
net/elektronengehirn/LastFM.py
bartensud/RhythmboxPlugin-SyncLovedTracksFromLastFM
a5ad3f807ee98d86cf036b5bbd805c0f46ba9261
[ "MIT" ]
null
null
null
net/elektronengehirn/LastFM.py
bartensud/RhythmboxPlugin-SyncLovedTracksFromLastFM
a5ad3f807ee98d86cf036b5bbd805c0f46ba9261
[ "MIT" ]
null
null
null
net/elektronengehirn/LastFM.py
bartensud/RhythmboxPlugin-SyncLovedTracksFromLastFM
a5ad3f807ee98d86cf036b5bbd805c0f46ba9261
[ "MIT" ]
null
null
null
__author__ = "Thomas Bartensud" __date__ = "$Jul 17, 2010 7:34:02 PM$" #from xml.dom.minidom import parse import xml.dom.minidom import urllib.request import urllib.parse import urllib.error class LastFM: """A class for providing a user's loved tracks at last.fm""" apiKey = "c0b0c4e03c75ff9c09a87aecf3d7a7...
32.215517
110
0.595933
292392b63bcc4241d0ff805029778fd1a0e203eb
5,413
py
Python
bots/utilities/bot.py
justletterh/botsv2
2c14ed26b9aac1c3f181542ea1d7bda8eb30c3fc
[ "Unlicense" ]
1
2020-10-02T01:04:24.000Z
2020-10-02T01:04:24.000Z
bots/utilities/bot.py
justletterh/botsv2
2c14ed26b9aac1c3f181542ea1d7bda8eb30c3fc
[ "Unlicense" ]
null
null
null
bots/utilities/bot.py
justletterh/botsv2
2c14ed26b9aac1c3f181542ea1d7bda8eb30c3fc
[ "Unlicense" ]
null
null
null
import discord,jishaku,platform,os from discord.ext import commands from json import loads as jload cmdpfx="util." cpfx=cmdpfx client=commands.Bot(command_prefix=cmdpfx,case_insensitive=True,intents=discord.Intents.all()) token=os.environ['DISCORD_TOKEN'] hid=int(os.environ['HID']) async def is_owner(ctx): return c...
45.487395
197
0.666544
e145d949f3588f39728ab20b9769692a29848b36
2,182
py
Python
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/delete_mfa_device_response.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/delete_mfa_device_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/delete_mfa_device_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class DeleteMfaDeviceResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (d...
26.609756
74
0.533456
97ed523c27cc0f15f7b102b132a8db2ab2db2864
24,233
py
Python
minimax.py
linminhtoo/Pentago
0fbc1f791d6a113b4bb2c5566d7ab2cda1af69da
[ "MIT" ]
null
null
null
minimax.py
linminhtoo/Pentago
0fbc1f791d6a113b4bb2c5566d7ab2cda1af69da
[ "MIT" ]
null
null
null
minimax.py
linminhtoo/Pentago
0fbc1f791d6a113b4bb2c5566d7ab2cda1af69da
[ "MIT" ]
null
null
null
import numpy as np import random import math from typing import Optional, Tuple, List import time from tqdm import tqdm from functions import * def generate_all_moves(game_board: np.ndarray ) -> List[Tuple[int, int, int]]: game_size = game_board.shape[0] possible_moves = [] #generate a...
42.071181
139
0.573804
729dc052a23203969f2453a4f4415b12ecc9a9a8
348
py
Python
act/corrections/__init__.py
michaeltg12/ACT
c801ac7ac2762bdc73e1d419bc7c266512d55903
[ "BSD-3-Clause" ]
null
null
null
act/corrections/__init__.py
michaeltg12/ACT
c801ac7ac2762bdc73e1d419bc7c266512d55903
[ "BSD-3-Clause" ]
null
null
null
act/corrections/__init__.py
michaeltg12/ACT
c801ac7ac2762bdc73e1d419bc7c266512d55903
[ "BSD-3-Clause" ]
null
null
null
""" ================================= act.corrections (act.corrections) ================================= .. currentmodule:: act.corrections The procedures in this module contain corrections for various ARM datasets. .. autosummary:: :toctree: generated/ ceil.correct_ceil """ from . import common from . im...
18.315789
75
0.58908
73f43a66823dc1c731f99bf9e3bfc12776de0d58
1,289
py
Python
tests/vanilla/test_url_append.py
filfreire/questions-three
1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8
[ "MIT" ]
5
2019-07-22T06:04:07.000Z
2021-07-23T06:01:51.000Z
tests/vanilla/test_url_append.py
filfreire/questions-three
1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8
[ "MIT" ]
15
2020-07-28T17:33:40.000Z
2021-08-23T17:30:05.000Z
tests/vanilla/test_url_append.py
filfreire/questions-three
1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8
[ "MIT" ]
4
2019-08-25T22:41:59.000Z
2020-10-21T14:28:15.000Z
from unittest import TestCase, main from expects import expect, equal from questions_three.vanilla import url_append class TestUrlAppend(TestCase): def test_joins_arbitrary_number_of_strings(self): expect(url_append("spam/", "eggs/", "sausage/", "spam")).to(equal("spam/eggs/sausage/spam")) def test...
35.805556
100
0.713732
9e4fbee328bf83efa43b7b29e840f956d2fd86d1
20,549
py
Python
flux_combined_high_binding/model_512.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_combined_high_binding/model_512.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_combined_high_binding/model_512.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.134259
798
0.804127
df39d922b21c7524230b3f32cbedf2090b180df4
1,653
py
Python
src/alerter/emailer.py
jbowring/inventory-hunter
73ebbf428b80b6cf94fe93106adb441046ca3cea
[ "MIT" ]
1
2021-03-13T04:15:02.000Z
2021-03-13T04:15:02.000Z
src/alerter/emailer.py
jbowring/inventory-hunter
73ebbf428b80b6cf94fe93106adb441046ca3cea
[ "MIT" ]
null
null
null
src/alerter/emailer.py
jbowring/inventory-hunter
73ebbf428b80b6cf94fe93106adb441046ca3cea
[ "MIT" ]
1
2021-03-31T17:51:47.000Z
2021-03-31T17:51:47.000Z
import logging import smtplib from email.message import EmailMessage from email.utils import formatdate from alerter.common import Alerter, AlerterFactory @AlerterFactory.register class EmailAlerter(Alerter): def __init__(self, **kwargs): super().__init__(**kwargs) self.sender = kwargs.get('send...
30.054545
88
0.629159
e529720b736f0d59f5d3689a406e349ddef9ea58
4,841
py
Python
tf_agents/policies/random_tf_policy_test.py
npfp/agents
21ae8a6b7ccf80b7c693cf34debe68a616c8387e
[ "Apache-2.0" ]
2
2021-02-16T14:20:53.000Z
2021-02-16T16:38:03.000Z
tf_agents/policies/random_tf_policy_test.py
npfp/agents
21ae8a6b7ccf80b7c693cf34debe68a616c8387e
[ "Apache-2.0" ]
null
null
null
tf_agents/policies/random_tf_policy_test.py
npfp/agents
21ae8a6b7ccf80b7c693cf34debe68a616c8387e
[ "Apache-2.0" ]
1
2020-08-18T13:32:15.000Z
2020-08-18T13:32:15.000Z
# coding=utf-8 # Copyright 2018 The TF-Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
38.11811
74
0.715555
caaaab122079136635ac60933dfecc1723f6d3bd
193
py
Python
scripts/day01_pt2.py
rafaelgarcia094/AdventOfCode2020
d97b5ceb1f9f613883aea223707c1345b7500a3f
[ "MIT" ]
null
null
null
scripts/day01_pt2.py
rafaelgarcia094/AdventOfCode2020
d97b5ceb1f9f613883aea223707c1345b7500a3f
[ "MIT" ]
null
null
null
scripts/day01_pt2.py
rafaelgarcia094/AdventOfCode2020
d97b5ceb1f9f613883aea223707c1345b7500a3f
[ "MIT" ]
null
null
null
v = [int(input()) for _ in range(200)] for i in range(len(v) - 1): for j in range(i+1, len(v)): n = 2020 - v[i] - v[j] if n in v[j+1:]: print(n * v[i] * v[j])
21.444444
38
0.430052
69ea944c211acc9414a268185f2b1a80830455be
824
py
Python
web/migrations/versions/01e860788b42_change_sigma_to_nullable.py
lackita/online-ratings
14ceda5ad89c8c388e214e04c054eaadf0055db9
[ "MIT" ]
18
2015-04-01T21:58:27.000Z
2020-05-24T06:46:42.000Z
web/migrations/versions/01e860788b42_change_sigma_to_nullable.py
lackita/online-ratings
14ceda5ad89c8c388e214e04c054eaadf0055db9
[ "MIT" ]
63
2015-10-08T00:40:31.000Z
2020-09-12T18:35:55.000Z
web/migrations/versions/01e860788b42_change_sigma_to_nullable.py
lackita/online-ratings
14ceda5ad89c8c388e214e04c054eaadf0055db9
[ "MIT" ]
12
2015-08-16T19:46:17.000Z
2020-09-11T23:17:06.000Z
"""Change sigma to nullable Revision ID: 01e860788b42 Revises: ad456cec28f4 Create Date: 2017-01-01 01:14:33.127605 """ # revision identifiers, used by Alembic. revision = '01e860788b42' down_revision = 'ad456cec28f4' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql def upg...
26.580645
71
0.683252
bb6bbf5287083eb815222b8c7587aae50bab64b7
460
py
Python
translator/translator_api.py
colorzzr/Real-Time-Voice-Cloning
9705470f405b1bc83388512496bca35b5f2f5334
[ "MIT" ]
null
null
null
translator/translator_api.py
colorzzr/Real-Time-Voice-Cloning
9705470f405b1bc83388512496bca35b5f2f5334
[ "MIT" ]
null
null
null
translator/translator_api.py
colorzzr/Real-Time-Voice-Cloning
9705470f405b1bc83388512496bca35b5f2f5334
[ "MIT" ]
null
null
null
from flask_restx import Resource from flask import request from bson.objectid import ObjectId import inflect import math import translators as ts # from app import db_connection # this api instance is make random number of recipe for front page class Translator(Resource): def post(self): post_data = req...
21.904762
66
0.723913
f41b80cea2e15ff438d92fec7e865613fd92a012
395,914
py
Python
tests/data/test_candles_indicators.py
b1nhm1nh/jesse-ex
9ef0812480ee16768253492712dd35f4a2786975
[ "MIT" ]
1
2022-01-24T09:29:38.000Z
2022-01-24T09:29:38.000Z
tests/data/test_candles_indicators.py
b1nhm1nh/jesse-ex
9ef0812480ee16768253492712dd35f4a2786975
[ "MIT" ]
null
null
null
tests/data/test_candles_indicators.py
b1nhm1nh/jesse-ex
9ef0812480ee16768253492712dd35f4a2786975
[ "MIT" ]
null
null
null
test_candles_2 = [(1575547200000, 146.51, 147.03, 149.02, 146.51, 64788.46651), (1575561600000, 147.02, 147.6, 147.97, 146.3, 35810.46053), (1575576000000, 147.6, 148.1, 148.6, 147.37, 25217.5757), (1575590400000, 148.11, 147.26, 148.37, 146.91, 27447.3323), ...
86.255773
114
0.520348
85f6e032f679bfa70d3bb7241ef16b6799e124bc
1,479
py
Python
nipype/utils/tests/test_provenance.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
null
null
null
nipype/utils/tests/test_provenance.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
null
null
null
nipype/utils/tests/test_provenance.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: from __future__ import unicode_literals from builtins import str, bytes from future import standard_library standard_library.install_aliases() import os from tempfile import mkdtem...
32.866667
81
0.72549
7ed70adb56b5a359781cfa787a57370ec2104a8b
13,475
py
Python
pandapipes/properties/fluids.py
MDiesing/pandapipes
ba5bea706bcbdb003be325de78a181817539ee0f
[ "BSD-3-Clause" ]
null
null
null
pandapipes/properties/fluids.py
MDiesing/pandapipes
ba5bea706bcbdb003be325de78a181817539ee0f
[ "BSD-3-Clause" ]
null
null
null
pandapipes/properties/fluids.py
MDiesing/pandapipes
ba5bea706bcbdb003be325de78a181817539ee0f
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 by Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), Kassel. All rights reserved. # Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. import os import pandas as pd import numpy as np from pandapipes import pp_dir from pa...
33.436725
99
0.632505
88244b588c02946a7120c8d04ceea7659243f32a
6,170
py
Python
eggs/mercurial-2.2.3-py2.7-linux-x86_64-ucs4.egg/mercurial/httpclient/tests/test_chunked_transfer.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
eggs/mercurial-2.2.3-py2.7-linux-x86_64-ucs4.egg/mercurial/httpclient/tests/test_chunked_transfer.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
eggs/mercurial-2.2.3-py2.7-linux-x86_64-ucs4.egg/mercurial/httpclient/tests/test_chunked_transfer.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
1
2021-12-16T23:31:37.000Z
2021-12-16T23:31:37.000Z
# Copyright 2010, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
40.064935
79
0.559806
53d3dcadcd9b2e981815f566b22c254ff33047b4
3,791
py
Python
contessa/db.py
mindartur/contessa
45a93e9bf308891ada3ec9bccae825c9f62172a5
[ "MIT" ]
null
null
null
contessa/db.py
mindartur/contessa
45a93e9bf308891ada3ec9bccae825c9f62172a5
[ "MIT" ]
null
null
null
contessa/db.py
mindartur/contessa
45a93e9bf308891ada3ec9bccae825c9f62172a5
[ "MIT" ]
null
null
null
from typing import Union, List import logging from sqlalchemy import create_engine, Table, UniqueConstraint from sqlalchemy.dialects.postgresql import insert from sqlalchemy.engine.base import Engine import pandas.io.sql as pdsql from sqlalchemy.orm import sessionmaker class Connector: """ Wrapping sqlachemy...
30.821138
94
0.608547
da32141371b44bbd987f25c09e09c4320e7ac9ed
560
py
Python
src/officehours_api/migrations/0017_profile_phone_number.py
vikaschanduri/remote-office-hours-queue
485b7df27a013e804c42f04612cff0d1a911c64a
[ "Apache-2.0" ]
9
2020-04-13T13:18:43.000Z
2022-03-04T21:10:58.000Z
src/officehours_api/migrations/0017_profile_phone_number.py
vikaschanduri/remote-office-hours-queue
485b7df27a013e804c42f04612cff0d1a911c64a
[ "Apache-2.0" ]
249
2020-04-11T15:34:50.000Z
2022-02-19T00:25:28.000Z
src/officehours_api/migrations/0017_profile_phone_number.py
vikaschanduri/remote-office-hours-queue
485b7df27a013e804c42f04612cff0d1a911c64a
[ "Apache-2.0" ]
7
2020-04-10T12:19:54.000Z
2021-04-25T19:42:41.000Z
# Generated by Django 3.0.7 on 2020-06-04 20:19 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('officehours_api', '0016_...
25.454545
74
0.666071
e1fcf63944536f00628e45751010672be3528f62
753
py
Python
cache_github/migrations/0008_auto_20151111_1008.py
wuminorb/discoverGithub
98a0d76d21f4b3224796bfc1f8cb898717e4c967
[ "MIT" ]
1
2017-06-21T10:17:52.000Z
2017-06-21T10:17:52.000Z
cache_github/migrations/0008_auto_20151111_1008.py
wuminorb/discoverGithub
98a0d76d21f4b3224796bfc1f8cb898717e4c967
[ "MIT" ]
null
null
null
cache_github/migrations/0008_auto_20151111_1008.py
wuminorb/discoverGithub
98a0d76d21f4b3224796bfc1f8cb898717e4c967
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cache_github', '0007_githubuser_avatar'), ] operations = [ migrations.AddField( model_name='githubrepo', ...
25.1
71
0.585657
648ab31b271e97ce747f630cd6be1427c5c9b05a
8,329
py
Python
venv1/Lib/site-packages/tensorflow/contrib/signal/python/ops/shape_ops.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
null
null
null
venv1/Lib/site-packages/tensorflow/contrib/signal/python/ops/shape_ops.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
1
2021-05-20T00:58:04.000Z
2021-05-20T00:58:04.000Z
venv1/Lib/site-packages/tensorflow/contrib/signal/python/ops/shape_ops.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
null
null
null
# 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...
43.380208
81
0.675471
f5403d0af7a3a190d3b807fb77f26a183dda5173
6,086
py
Python
tutorials/03-advanced/image_captioning/train.py
xuwangyin/pytorch-tutorial
d6a29c19288c817432b3b101765596e037e01989
[ "MIT" ]
11
2017-08-20T18:12:34.000Z
2020-03-18T18:03:16.000Z
tutorials/03-advanced/image_captioning/train.py
xuwangyin/pytorch-tutorial
d6a29c19288c817432b3b101765596e037e01989
[ "MIT" ]
null
null
null
tutorials/03-advanced/image_captioning/train.py
xuwangyin/pytorch-tutorial
d6a29c19288c817432b3b101765596e037e01989
[ "MIT" ]
5
2017-08-10T05:15:37.000Z
2021-12-01T08:23:30.000Z
import argparse import torch import torch.nn as nn import numpy as np import os import pickle from data_loader import get_loader from build_vocab import Vocabulary from model import EncoderCNN, DecoderRNN, LayoutEncoder from torch.autograd import Variable from torch.nn.utils.rnn import pack_padded_sequence from torchvi...
42.559441
112
0.614361
0c94282f82bf750bf5ce2049d29af7a41346ea08
3,553
py
Python
pyopenfec/candidate.py
dwillis/pyopenfec
312bc589be7426dfac94d44b7f40250c3da280c3
[ "MIT" ]
1
2021-01-13T12:08:07.000Z
2021-01-13T12:08:07.000Z
pyopenfec/candidate.py
dwillis/pyopenfec
312bc589be7426dfac94d44b7f40250c3da280c3
[ "MIT" ]
null
null
null
pyopenfec/candidate.py
dwillis/pyopenfec
312bc589be7426dfac94d44b7f40250c3da280c3
[ "MIT" ]
null
null
null
from collections import defaultdict from . import utils from .committee import Committee class Candidate(utils.PyOpenFecApiPaginatedClass, utils.SearchMixin): def __init__(self, **kwargs): self.active_through = None self.candidate_id = None self.candidate_status = None self.candi...
31.723214
83
0.604841
615ab7560832ace80d220605f8287c167f2277d5
33,539
py
Python
vaderSentiment/vaderSentiment.py
jgerulskis/vaderSentiment
3e9d5b2565239b099b076968316bd3dec8ea6e3e
[ "MIT" ]
3,661
2015-02-13T19:05:36.000Z
2022-03-31T21:01:55.000Z
vaderSentiment/vaderSentiment.py
jgerulskis/vaderSentiment
3e9d5b2565239b099b076968316bd3dec8ea6e3e
[ "MIT" ]
117
2015-03-17T17:43:58.000Z
2022-03-31T20:21:13.000Z
vaderSentiment/vaderSentiment.py
jgerulskis/vaderSentiment
3e9d5b2565239b099b076968316bd3dec8ea6e3e
[ "MIT" ]
1,006
2015-02-13T19:05:40.000Z
2022-03-31T20:05:39.000Z
# coding: utf-8 # Author: C.J. Hutto # Thanks to George Berry for reducing the time complexity from something like O(N^4) to O(N). # Thanks to Ewan Klein and Pierpaolo Pantone for bringing VADER into NLTK. Those modifications were awesome. # For license information, see LICENSE.TXT """ If you use the VADER sentiment a...
48.677794
196
0.587734
c362d32e6ee0da1c408a751d7126de372a142607
202
py
Python
LeetCode/python3/1003.py
ZintrulCre/LeetCode_Archiver
de23e16ead29336b5ee7aa1898a392a5d6463d27
[ "MIT" ]
279
2019-02-19T16:00:32.000Z
2022-03-23T12:16:30.000Z
LeetCode/python3/1003.py
ZintrulCre/LeetCode_Archiver
de23e16ead29336b5ee7aa1898a392a5d6463d27
[ "MIT" ]
2
2019-03-31T08:03:06.000Z
2021-03-07T04:54:32.000Z
LeetCode/python3/1003.py
ZintrulCre/LeetCode_Crawler
de23e16ead29336b5ee7aa1898a392a5d6463d27
[ "MIT" ]
12
2019-01-29T11:45:32.000Z
2019-02-04T16:31:46.000Z
class Solution: def isValid(self, S: str) -> bool: while len(S) > 0: if S.find("abc") == -1: return False S = S.replace("abc", '') return True
28.857143
38
0.440594
06ddb92a66fb1ca740dc6c9bcbeced0b84d42d6d
3,571
py
Python
How to Create a Graphical RPG/constants.py
poly451/Tutorials
8b6746394a8b651c9b746adae11e768bb9c74a38
[ "MIT" ]
10
2020-10-17T18:40:05.000Z
2022-02-21T17:42:44.000Z
How to Create a Graphical RPG/constants.py
Mimsadi/Tutorials
ffd3b6eba3cecc4c30984cd1b33d7944bb4e0317
[ "MIT" ]
null
null
null
How to Create a Graphical RPG/constants.py
Mimsadi/Tutorials
ffd3b6eba3cecc4c30984cd1b33d7944bb4e0317
[ "MIT" ]
18
2020-10-22T09:00:33.000Z
2022-03-29T17:52:14.000Z
# From: # https://github.com/kidscancode/pygame_tutorials/blob/master/tilemap/part%2001/settings.py # =========================================================== # define some colors (R, G, B) import pygame # --------------------------------- ZONE_KINDS = ["world", "ancient_forest", "town", "shrine"] ZONE_KINDS += ["h...
28.34127
97
0.661719
c619a41c3d81c218a8cb24c3e51f4d7fea52b3e5
602
py
Python
libmultilabel/nn/networks/__init__.py
sian-chen/LibMultiLabel
8aa6a3ffff6ac437359de4fb53a99de544fdb720
[ "MIT" ]
null
null
null
libmultilabel/nn/networks/__init__.py
sian-chen/LibMultiLabel
8aa6a3ffff6ac437359de4fb53a99de544fdb720
[ "MIT" ]
1
2021-11-19T01:53:15.000Z
2021-11-19T01:53:15.000Z
libmultilabel/nn/networks/__init__.py
Eleven1Liu/LibMultiLabel
56feb362ee0342242656c3303c5f25816f2c12ab
[ "MIT" ]
null
null
null
import torch.nn as nn from .bert_attention import BERTAttention from .caml import CAML from .kim_cnn import KimCNN from .xml_cnn import XMLCNN from .labelwise_attention_networks import BiGRULWAN from .labelwise_attention_networks import BiLSTMLWAN from .labelwise_attention_networks import BiLSTMLWMHAN from .labelwise_...
33.444444
92
0.795681
7edd2d75b046a49b63f48e98025b770dba0cb658
2,154
py
Python
Previous_versions/bdwmspider_v0.py
MengXiangxi/bdwmspider
fbc210ab70e13117f92838d8c4223c02b0ead207
[ "MIT" ]
null
null
null
Previous_versions/bdwmspider_v0.py
MengXiangxi/bdwmspider
fbc210ab70e13117f92838d8c4223c02b0ead207
[ "MIT" ]
null
null
null
Previous_versions/bdwmspider_v0.py
MengXiangxi/bdwmspider
fbc210ab70e13117f92838d8c4223c02b0ead207
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from urllib import request import time def html_parse(html_content): html_len = len(html_content) uname = "" for i in range(0, html_len): line_content = html_content[i].strip().decode('utf-8') if line_content.find("bbsid") >= 1: uname = line_content[20:-...
37.789474
123
0.562674
c89b4b335e29a91d0ae8d2cf36ca9ee174318e7d
12,528
py
Python
1_CreatePKLFiles.py
UKPLab/-tacl2017-event-time-extraction
5b2eb9c5aa25336e45c0a254e5ef448ba831710a
[ "Apache-2.0" ]
20
2017-11-07T10:20:09.000Z
2022-03-02T03:16:55.000Z
1_CreatePKLFiles.py
UKPLab/-tacl2017-event-time-extraction
5b2eb9c5aa25336e45c0a254e5ef448ba831710a
[ "Apache-2.0" ]
1
2019-02-26T12:09:09.000Z
2019-02-28T12:18:46.000Z
1_CreatePKLFiles.py
UKPLab/-tacl2017-event-time-extraction
5b2eb9c5aa25336e45c0a254e5ef448ba831710a
[ "Apache-2.0" ]
7
2018-04-02T16:12:23.000Z
2021-08-24T06:49:10.000Z
import numpy as np import cPickle as pkl import gzip import os def createEmbeddingsFile(): folder = 'input/' embeddingsPath = '0_Preprocessing/embeddings/levy_dependency_based.words.vocab.gz' words = {} filePaths = [] for root, subdirs, files in os.walk(folder): for fName ...
34.13624
193
0.611111
7ef8d02bfa929e0cd1041d9a964e4616178f3071
666
py
Python
JUNE21C Competition/SHROUTE/performance.py
8Bit1Byte/Codechef-Solutions
a79d64042da04e007c5101d3c784a843df01f852
[ "MIT" ]
2
2021-05-24T11:20:46.000Z
2021-06-18T12:21:43.000Z
JUNE21C Competition/SHROUTE/performance.py
8Bit1Byte/CodechefSolutions
a79d64042da04e007c5101d3c784a843df01f852
[ "MIT" ]
null
null
null
JUNE21C Competition/SHROUTE/performance.py
8Bit1Byte/CodechefSolutions
a79d64042da04e007c5101d3c784a843df01f852
[ "MIT" ]
null
null
null
import numpy as np import time import random # // -------------------TEST-2 arr = np.random.randint(0, 3, 100000) print(np.isin(1, arr)) np.any(np.isin(1, arr)) if np.isin(1, arr): print(10) # // -------------------TEST-1 # s = ' '.join([str(random.randint(0, 2)) for i in range(100000)]) # t = time.time() # n...
20.181818
66
0.557057
1c2ffc8083c9d545f112d5983231edff751831f7
3,172
py
Python
tests/test_record.py
cyemeng/python-little_r
13aa985c9fd89106acc6260e6c4eeb4eb99111af
[ "BSD-3-Clause" ]
7
2018-03-19T01:39:37.000Z
2022-01-09T09:19:30.000Z
tests/test_record.py
cyemeng/python-little_r
13aa985c9fd89106acc6260e6c4eeb4eb99111af
[ "BSD-3-Clause" ]
null
null
null
tests/test_record.py
cyemeng/python-little_r
13aa985c9fd89106acc6260e6c4eeb4eb99111af
[ "BSD-3-Clause" ]
4
2020-03-20T09:19:59.000Z
2022-01-09T07:49:50.000Z
import unittest from datetime import datetime from little_r import Record class TestRecord(unittest.TestCase): def create_sample_record(self, **kwargs): ''' Creates a toy record.abs ''' return Record('TestName', 100, 50, None, datetime(2017, 1, 1, 18, 30, 0), **kwargs) def te...
38.216867
630
0.613178
96069bf899b489035d4e253b131555da6bcc01c0
1,467
py
Python
lib/surface/billing/__init__.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/surface/billing/__init__.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/surface/billing/__init__.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # 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...
32.6
79
0.759373
ab8367c924e4f65d48c69c83358e6dbb681053fb
3,041
py
Python
src/get_scripts_and_instrument/transform_programs.py
sola-st/Nalin
3a6f95cec95d9152a65af970cfbb145179b0bd72
[ "MIT" ]
null
null
null
src/get_scripts_and_instrument/transform_programs.py
sola-st/Nalin
3a6f95cec95d9152a65af970cfbb145179b0bd72
[ "MIT" ]
null
null
null
src/get_scripts_and_instrument/transform_programs.py
sola-st/Nalin
3a6f95cec95d9152a65af970cfbb145179b0bd72
[ "MIT" ]
null
null
null
""" Created on 21-March-2020 @author Jibesh Patra """ from pathlib import Path from AST_transformations import instrument_given_file_multiprocessing, instrument_given_file import os from multiprocessing import Pool, cpu_count from tqdm import tqdm def should_skip_file(file_path): """ Skip instrumenting file...
38.493671
144
0.674778
1af41b01d58e6ad54a9d8d5629f13ff9a0674f05
3,307
py
Python
docs/conf.py
ariebovenberg/gentools
4a1f9f928c7f8b4752b69168858e83b4b23d6bcb
[ "MIT" ]
8
2018-01-23T08:43:16.000Z
2022-02-02T12:09:28.000Z
docs/conf.py
ariebovenberg/gentools
4a1f9f928c7f8b4752b69168858e83b4b23d6bcb
[ "MIT" ]
9
2018-01-21T11:31:40.000Z
2018-03-02T18:02:53.000Z
docs/conf.py
ariebovenberg/gentools
4a1f9f928c7f8b4752b69168858e83b4b23d6bcb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # documentation build configuration file, created by # sphinx-quickstart on Tue Jun 13 22:58:12 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenera...
30.063636
79
0.698821
1a09f602a893b48f3c85ced3e91ef0f3975de7e9
8,139
py
Python
cloudify_types/cloudify_types/component/tests/test_polling.py
cloudify-cosmo/cloudify-manager
4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972
[ "Apache-2.0" ]
124
2015-01-22T22:28:37.000Z
2022-02-26T23:12:06.000Z
cloudify_types/cloudify_types/component/tests/test_polling.py
cloudify-cosmo/cloudify-manager
4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972
[ "Apache-2.0" ]
345
2015-01-08T15:49:40.000Z
2022-03-29T08:33:00.000Z
cloudify_types/cloudify_types/component/tests/test_polling.py
cloudify-cosmo/cloudify-manager
4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972
[ "Apache-2.0" ]
77
2015-01-07T14:04:35.000Z
2022-03-07T22:46:00.000Z
# Copyright (c) 2017-2019 Cloudify Platform Ltd. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
38.942584
79
0.589384
22853bcb9a15b26348773c6d768e2938406a76e9
365
py
Python
March/Day17-Score of Parentheses.py
tayyrov/Daily_Coding_Challenge
9e54a725082530dca1229dfcd973d04975374220
[ "MIT" ]
1
2022-01-01T21:54:45.000Z
2022-01-01T21:54:45.000Z
March/Day17-Score of Parentheses.py
tayyrov/Daily_Coding_Challenge
9e54a725082530dca1229dfcd973d04975374220
[ "MIT" ]
null
null
null
March/Day17-Score of Parentheses.py
tayyrov/Daily_Coding_Challenge
9e54a725082530dca1229dfcd973d04975374220
[ "MIT" ]
null
null
null
""" Question Source:Leetcode Level: Medium Topic: Stack Solver: Tayyrov Date: 17.03.2022 """ def scoreOfParentheses(s: str) -> int: stack = [0] for p in s: if p == "(": stack.append(0) else: last = stack.pop() stack[-1] += max(1, 2 * last) ...
17.380952
42
0.484932
76c7dfe3ad50dd3f31235e548741766f5d3833ba
402
py
Python
tdrs-backend/tdpservice/users/models.py
shubhi-raft/TANF-app
f07a4292a3dd208378014935366eafd138d28ace
[ "CC0-1.0" ]
null
null
null
tdrs-backend/tdpservice/users/models.py
shubhi-raft/TANF-app
f07a4292a3dd208378014935366eafd138d28ace
[ "CC0-1.0" ]
4
2021-04-08T19:55:25.000Z
2021-06-10T20:16:46.000Z
tdrs-backend/tdpservice/users/models.py
shubhi-raft/TANF-app
f07a4292a3dd208378014935366eafd138d28ace
[ "CC0-1.0" ]
null
null
null
"""Define user model.""" import uuid from django.contrib.auth.models import AbstractUser from django.db import models class User(AbstractUser): """Define user fields and methods.""" id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) def __str__(self): """Return the use...
23.647059
79
0.71393
9f8f4c4817bc60595cc3e467dfa0f6373278f340
736,260
py
Python
modules/t_google_play_download/gplay-cli/ext_libs/googleplay_api/googleplay_pb2.py
napoler/t-drupal-module
dd57ff751bf58dd0cdf5f6c951aee8b3ec4a78cd
[ "Apache-2.0" ]
7
2016-08-31T23:32:04.000Z
2022-03-13T17:42:32.000Z
playstore/gplay/googleplay_pb2.py
markraemer/mH-PriSe
1555c4c7e6457c3bb5bce3b6dae9c514ed7fc3d3
[ "MIT" ]
1
2017-08-14T12:09:57.000Z
2017-08-14T12:09:57.000Z
playstore/gplay/googleplay_pb2.py
markraemer/mH-PriSe
1555c4c7e6457c3bb5bce3b6dae9c514ed7fc3d3
[ "MIT" ]
9
2016-11-17T16:51:28.000Z
2021-03-17T14:11:38.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! from google.protobuf import descriptor from google.protobuf import message from google.protobuf import reflection from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) DESCRIPTOR = descriptor.FileDescriptor( name='googleplay.proto'...
43.73129
79,127
0.746333
b8d28ac6ac374333ffd849dd2d17c2becddfd3e8
1,484
py
Python
setup.py
fopina/kdbxpasswordpwned
3cf50b1630c42e86a96c7b8e1ba6e5926eac0645
[ "MIT" ]
73
2019-01-22T19:46:55.000Z
2021-12-09T19:25:17.000Z
setup.py
fopina/kdbxpasswordpwned
3cf50b1630c42e86a96c7b8e1ba6e5926eac0645
[ "MIT" ]
8
2019-01-22T20:49:30.000Z
2019-11-24T18:53:24.000Z
setup.py
fopina/kdbxpasswordpwned
3cf50b1630c42e86a96c7b8e1ba6e5926eac0645
[ "MIT" ]
7
2019-01-22T21:50:12.000Z
2019-11-23T14:17:49.000Z
#!/usr/bin/env python from distutils.core import setup README = open('README.md').read() try: VERSION = open('VERSION').read().strip() except IOError: VERSION = 'dev' setup( name='kdbxpasswordpwned', version=VERSION, description='Check KeePass passwords against https://haveibeenpwned.com/Passwords', l...
32.26087
87
0.626685
dd095c4dee960badcd948ed3955a4dcc2875f77c
7,253
py
Python
paleomix/common/versions.py
MikkelSchubert/paleomix
5c6414060088ba178ff1c400bdbd45d2f6b1aded
[ "MIT" ]
33
2015-04-08T10:44:19.000Z
2021-11-01T14:23:40.000Z
paleomix/common/versions.py
MikkelSchubert/paleomix
5c6414060088ba178ff1c400bdbd45d2f6b1aded
[ "MIT" ]
41
2015-07-17T12:46:16.000Z
2021-10-13T06:47:25.000Z
paleomix/common/versions.py
MikkelSchubert/paleomix
5c6414060088ba178ff1c400bdbd45d2f6b1aded
[ "MIT" ]
19
2015-01-23T07:09:39.000Z
2021-04-06T09:30:21.000Z
#!/usr/bin/python3 # # Copyright (c) 2012 Mikkel Schubert <MikkelSch@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights ...
36.084577
88
0.606508
1203363fb7beeb304a517e5bea7b58f78fa409ff
181
py
Python
ncluster/ncluster_globals.py
cclauss/ncluster
cb839813c694dab87c55f7d60f5fa2fc17b8c25f
[ "MIT" ]
null
null
null
ncluster/ncluster_globals.py
cclauss/ncluster
cb839813c694dab87c55f7d60f5fa2fc17b8c25f
[ "MIT" ]
null
null
null
ncluster/ncluster_globals.py
cclauss/ncluster
cb839813c694dab87c55f7d60f5fa2fc17b8c25f
[ "MIT" ]
null
null
null
# separate file for keeping global constants # right now need for LOGDIR_ROOT because this value is used in backend.py # but is defined in backend.py descendants LOGDIR_ROOT = None
36.2
73
0.801105
fe24d0d1ee2c3c9d2a79ca277dc3c88ed6ee5b93
893
py
Python
src/Server.py
manuandru/Reti2021-Smart-Meter-IoT
040f1498b9e94f2097a0934931af01e6c5385547
[ "MIT" ]
2
2021-05-14T16:14:30.000Z
2021-05-16T14:54:03.000Z
src/Server.py
manuandru/Reti2021-Smart-Meter-IoT
040f1498b9e94f2097a0934931af01e6c5385547
[ "MIT" ]
null
null
null
src/Server.py
manuandru/Reti2021-Smart-Meter-IoT
040f1498b9e94f2097a0934931af01e6c5385547
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Manuel """ import socket import pickle import sensor_version.config as config import time tcp_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server_address = (config.server_TCP_ip, config.server_TCP_port) tcp_socket.bind(server_address) tcp_socket.listen(1) print(f'Th...
24.135135
80
0.649496
72ebecad19c2c2fe531cfa4d0e57d03eaa1b4dfb
2,367
py
Python
ar-ray-robot/launch/demo.launch.py
Ar-Ray-code/ar-ray-robot
831557a00a1045bfc73aade3be5e80636f9c435c
[ "Apache-2.0" ]
1
2021-03-26T00:53:29.000Z
2021-03-26T00:53:29.000Z
ar-ray-robot/launch/demo.launch.py
Ar-Ray-code/ar-ray-robot
831557a00a1045bfc73aade3be5e80636f9c435c
[ "Apache-2.0" ]
null
null
null
ar-ray-robot/launch/demo.launch.py
Ar-Ray-code/ar-ray-robot
831557a00a1045bfc73aade3be5e80636f9c435c
[ "Apache-2.0" ]
null
null
null
import os import launch from ament_index_python.packages import get_package_share_directory from launch import LaunchDescription from launch.actions import DeclareLaunchArgument from launch_ros.actions import Node from launch.substitutions import LaunchConfiguration from launch.actions import IncludeLaunchDescription f...
32.875
77
0.666244
db5797f59779a9cf07fd16e0b8f9fa9735356cd4
2,241
py
Python
DaPy/core/base/LinkedArray.py
huihui7987/DaPy
b2bf72707ffcc92d05af1ac890e0786d5787816e
[ "RSA-MD" ]
552
2018-03-14T07:40:44.000Z
2022-03-30T19:15:23.000Z
DaPy/core/base/LinkedArray.py
huihui7987/DaPy
b2bf72707ffcc92d05af1ac890e0786d5787816e
[ "RSA-MD" ]
12
2018-03-19T10:29:56.000Z
2021-12-18T04:47:29.000Z
DaPy/core/base/LinkedArray.py
huihui7987/DaPy
b2bf72707ffcc92d05af1ac890e0786d5787816e
[ "RSA-MD" ]
49
2018-03-13T14:27:00.000Z
2022-02-26T09:52:11.000Z
from ctypes import Structure, POINTER, pointer, c_int as C_INT, byref from collections import Sequence, namedtuple class intLinkedNode(Structure): pass intLinkedNode._fields_ = [ ('next_', POINTER(intLinkedNode)), ('val', C_INT), ] ##class LinkedArray(Structure): ## pass ## ##LinkedArray._fields_ =...
25.758621
71
0.579206
59a15b37765d8e4a14ec08eb1e95534ece148031
161
py
Python
avista_base/api/service.py
isu-avista/base-server
266f74becfb19083125c40f3d15bc7c67ebff243
[ "MIT" ]
null
null
null
avista_base/api/service.py
isu-avista/base-server
266f74becfb19083125c40f3d15bc7c67ebff243
[ "MIT" ]
null
null
null
avista_base/api/service.py
isu-avista/base-server
266f74becfb19083125c40f3d15bc7c67ebff243
[ "MIT" ]
null
null
null
from avista_base.api import bp from flask import jsonify # sanity check route @bp.route('/ping', methods=['GET']) def ping_pong(): return jsonify('pong!')
17.888889
35
0.708075
793c2f8a142debb39d30bf0f9b71723f087a4417
10,318
py
Python
lab/lab06/classes.py
MessiahChen/CS61A
2552a08086323561dbb0d13a9550b7ccbebb6fc7
[ "Apache-2.0" ]
null
null
null
lab/lab06/classes.py
MessiahChen/CS61A
2552a08086323561dbb0d13a9550b7ccbebb6fc7
[ "Apache-2.0" ]
null
null
null
lab/lab06/classes.py
MessiahChen/CS61A
2552a08086323561dbb0d13a9550b7ccbebb6fc7
[ "Apache-2.0" ]
null
null
null
# Magic the Lambda-ing! import random class Card: cardtype = 'Staff' def __init__(self, name, attack, defense): """ Create a Card object with a name, attack, and defense. >>> staff_member = Card('staff', 400, 300) >>> staff_member.name 'staff' >>> staf...
32.24375
104
0.552917
5288608d3547d0ce0d79872ba8a9911aeabbe4b1
1,131
py
Python
uiserver/main.py
koyuspace/feldberg
8df6a343a672f2bd61966e87176d1270b3fc939e
[ "MIT" ]
null
null
null
uiserver/main.py
koyuspace/feldberg
8df6a343a672f2bd61966e87176d1270b3fc939e
[ "MIT" ]
null
null
null
uiserver/main.py
koyuspace/feldberg
8df6a343a672f2bd61966e87176d1270b3fc939e
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from bottle import template, run, get, static_file, response import os import os.path import uuid os.makedirs("db", exist_ok=True) if not os.path.exists("db/serial"): f = open("db/serial", "w+") f.write(str(uuid.uuid4())) f.close() @get("/") def index(): return template("data/app.tp...
24.06383
62
0.648983
22623257113893c5d86a21db8881cf0c9d815a5d
2,638
py
Python
pymatsolver/direct.py
simpeg/pymatsolver
8a45d810ab50145c1bd4eb10f2edf4bc329a8966
[ "MIT" ]
18
2019-02-03T07:53:10.000Z
2022-03-05T01:09:05.000Z
pymatsolver/direct.py
rowanc1/pymatsolver
8a45d810ab50145c1bd4eb10f2edf4bc329a8966
[ "MIT" ]
19
2015-05-13T16:19:24.000Z
2018-02-21T16:39:00.000Z
pymatsolver/direct.py
simpeg/pymatsolver
8a45d810ab50145c1bd4eb10f2edf4bc329a8966
[ "MIT" ]
10
2018-11-08T01:19:05.000Z
2021-12-30T15:13:50.000Z
from pymatsolver.solvers import Base try: from pydiso.mkl_solver import MKLPardisoSolver from pydiso.mkl_solver import set_mkl_pardiso_threads, get_mkl_pardiso_max_threads class Pardiso(Base): """ Pardiso Solver https://github.com/simpeg/pydiso documentation:: ...
27.479167
86
0.468158
3a4a77d3f6c2cded04e8ad622935102609a3d568
139
py
Python
std_number_validation/validators/__init__.py
lgrabowski/std-number-validation
b27a66ed3bd7c7ac25b64b99b462f1c3e3380f20
[ "MIT" ]
null
null
null
std_number_validation/validators/__init__.py
lgrabowski/std-number-validation
b27a66ed3bd7c7ac25b64b99b462f1c3e3380f20
[ "MIT" ]
null
null
null
std_number_validation/validators/__init__.py
lgrabowski/std-number-validation
b27a66ed3bd7c7ac25b64b99b462f1c3e3380f20
[ "MIT" ]
null
null
null
from .base_validator import BaseValidator from .context_validator import ContextValidator from .boolean_validator import BooleanValidator
46.333333
48
0.884892
31d0387ecc44bdb03700a52032c6a10e44ca90ba
967
py
Python
test/language/asp/asp_mapper_test.py
SimoneLucia/EmbASP-Python
77482d65fa63ad82211a56baeccfc91bcdf8ab03
[ "MIT" ]
null
null
null
test/language/asp/asp_mapper_test.py
SimoneLucia/EmbASP-Python
77482d65fa63ad82211a56baeccfc91bcdf8ab03
[ "MIT" ]
null
null
null
test/language/asp/asp_mapper_test.py
SimoneLucia/EmbASP-Python
77482d65fa63ad82211a56baeccfc91bcdf8ab03
[ "MIT" ]
null
null
null
import unittest from languages.asp.asp_mapper import ASPMapper from cell import Cell class ASPMapperTest(unittest.TestCase): def test(self): instance = ASPMapper.get_instance() try: instance.register_class(Cell) obj = instance.get_object("ce...
24.794872
69
0.527404
b2a887b453e7a02211d5df799bedfd146722354f
18,757
py
Python
tests.py
bloomark/f13x
2633b2316b8dfdb25b024bdfd91d60873e3193e6
[ "BSD-3-Clause" ]
12
2015-06-14T14:53:50.000Z
2020-05-12T09:10:12.000Z
tests.py
bloomark/f13x
2633b2316b8dfdb25b024bdfd91d60873e3193e6
[ "BSD-3-Clause" ]
null
null
null
tests.py
bloomark/f13x
2633b2316b8dfdb25b024bdfd91d60873e3193e6
[ "BSD-3-Clause" ]
7
2017-06-11T06:18:56.000Z
2021-12-16T20:27:21.000Z
#!/usr/bin/python import os import traceback import unittest import hyperdex.admin import hyperdex.client from datetime import datetime a = hyperdex.admin.Admin('127.0.0.1', 1982) c = hyperdex.client.Client('127.0.0.1', 1982) from config import basedir from app import app from app.forms import * from app.order_book i...
51.958449
423
0.592632
77f81ae990e64b55357b4abe4c5bd4f960e0d580
5,828
py
Python
stacked_capsule_autoencoders/capsules/attention.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
stacked_capsule_autoencoders/capsules/attention.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
stacked_capsule_autoencoders/capsules/attention.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
29.583756
80
0.665065
da9b659d1440c51cfbf2fb799e93e42b29af79b8
3,506
py
Python
bindings/python/ensmallen/datasets/string/desulfofarcimenintricatum.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/desulfofarcimenintricatum.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/desulfofarcimenintricatum.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Desulfofarcimen intricatum. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--pro...
33.390476
223
0.680833
2e4991aa190352efd2781862160da6f32c46ebc9
874
py
Python
leetcode/longest-substring-without-repeating-characters/sol.py
kilianovski/problems
84e2b35810fdfe1a89fcd7bb1dc3125eed75cba3
[ "MIT" ]
null
null
null
leetcode/longest-substring-without-repeating-characters/sol.py
kilianovski/problems
84e2b35810fdfe1a89fcd7bb1dc3125eed75cba3
[ "MIT" ]
null
null
null
leetcode/longest-substring-without-repeating-characters/sol.py
kilianovski/problems
84e2b35810fdfe1a89fcd7bb1dc3125eed75cba3
[ "MIT" ]
null
null
null
class Solution: def lengthOfLongestSubstring(self, s: str) -> int: seen = dict() curr_len = 0 max_len = 0 for i in range(len(s)): char = s[i] if char in seen: # Remove all values that are prev to this i prev_occurrence_i = seen...
29.133333
59
0.505721
e1a81e80be7a2d7d5fd52a4e9b99f448399eea2c
1,241
py
Python
setup.py
FRidh/streaming
bf8e61e932aea0b9007ceff174dab98ae80c6da0
[ "BSD-2-Clause" ]
3
2018-10-22T15:29:23.000Z
2020-10-24T20:30:26.000Z
setup.py
FRidh/streaming
bf8e61e932aea0b9007ceff174dab98ae80c6da0
[ "BSD-2-Clause" ]
2
2017-08-20T10:09:41.000Z
2021-02-25T14:11:05.000Z
setup.py
FRidh/streaming
bf8e61e932aea0b9007ceff174dab98ae80c6da0
[ "BSD-2-Clause" ]
2
2017-06-10T15:57:45.000Z
2020-10-24T20:32:07.000Z
import sys from setuptools import setup from setuptools.command.test import test as TestCommand import numpy as np from Cython.Build import cythonize class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True de...
25.326531
55
0.63336
a67c2d85b39fee8af8c3c8db3a8b643029d2a77d
928
py
Python
python/tink/hybrid/__init__.py
ekmixon/tink
9753ffddd4d04aa56e0605ff4a0db46f2fb80529
[ "Apache-2.0" ]
null
null
null
python/tink/hybrid/__init__.py
ekmixon/tink
9753ffddd4d04aa56e0605ff4a0db46f2fb80529
[ "Apache-2.0" ]
null
null
null
python/tink/hybrid/__init__.py
ekmixon/tink
9753ffddd4d04aa56e0605ff4a0db46f2fb80529
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
35.692308
74
0.797414
25c3005a4b9d59b7ca4d1130eb3f83b47483df97
1,258
py
Python
nirspec_pipe_testing_tool/calwebb_spec2_pytests/H_pathloss/pathloss_utils.py
tnking97/nirspec_pipe_testing_tool
ae46d0976ca8cbba4b75e13138f9054570c8555b
[ "BSD-3-Clause" ]
null
null
null
nirspec_pipe_testing_tool/calwebb_spec2_pytests/H_pathloss/pathloss_utils.py
tnking97/nirspec_pipe_testing_tool
ae46d0976ca8cbba4b75e13138f9054570c8555b
[ "BSD-3-Clause" ]
null
null
null
nirspec_pipe_testing_tool/calwebb_spec2_pytests/H_pathloss/pathloss_utils.py
tnking97/nirspec_pipe_testing_tool
ae46d0976ca8cbba4b75e13138f9054570c8555b
[ "BSD-3-Clause" ]
null
null
null
from .. import core_utils from .. auxiliary_code.reffile_test import create_rfile_test """ This file contains the functions which will be used to test the pathloss step of the JWST Calibration Pipeline. """ # HEADER __author__ = "M. A. Pena-Guerrero & Gray Kanarek" __version__ = "2.0" # HISTORY # Nov 2017 - Versi...
24.192308
82
0.705882
dcc1e0012a8bd5ca6307da7cf156dbf0499a1766
4,079
py
Python
circuit_training/environment/plc_client.py
sguada/circuit_training
220ca925c83cdc6e67181c305da577f305c602b3
[ "Apache-2.0" ]
280
2022-01-15T01:09:34.000Z
2022-03-24T01:47:04.000Z
circuit_training/environment/plc_client.py
google-research/circuit-training
dd197800aa3c82a5712bc3c29a0790058a54bad2
[ "Apache-2.0" ]
14
2022-01-19T02:42:45.000Z
2022-03-31T03:42:36.000Z
circuit_training/environment/plc_client.py
google-research/circuit-training
dd197800aa3c82a5712bc3c29a0790058a54bad2
[ "Apache-2.0" ]
42
2022-01-14T22:58:45.000Z
2022-03-26T13:20:31.000Z
# coding=utf-8 # Copyright 2021 The Circuit Training Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
34.567797
79
0.650159
921edee154dad6f0f24fe8b2a14a7ce441151572
669
py
Python
great_expectations/rule_based_profiler/types/data_assistant_result/plot_result.py
andyjessen/great_expectations
74f7f2aa7b51144f34156ed49490dae4edaa5cb7
[ "Apache-2.0" ]
null
null
null
great_expectations/rule_based_profiler/types/data_assistant_result/plot_result.py
andyjessen/great_expectations
74f7f2aa7b51144f34156ed49490dae4edaa5cb7
[ "Apache-2.0" ]
null
null
null
great_expectations/rule_based_profiler/types/data_assistant_result/plot_result.py
andyjessen/great_expectations
74f7f2aa7b51144f34156ed49490dae4edaa5cb7
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from enum import Enum from typing import List import altair as alt class PlotMode(Enum): DESCRIPTIVE = "descriptive" PRESCRIPTIVE = "prescriptive" @dataclass(frozen=True) class PlotResult: """Wrapper object around DataAssistantResult plotted Altair charts. Please ...
25.730769
87
0.750374
11fe6d33d28637e3fe6a8d708d8815a1b61e4cdd
4,870
py
Python
json_to_py.py
emernic/OT2_json_workarounds
55521df803ff503a85203e898cb38181bb80819a
[ "MIT" ]
null
null
null
json_to_py.py
emernic/OT2_json_workarounds
55521df803ff503a85203e898cb38181bb80819a
[ "MIT" ]
null
null
null
json_to_py.py
emernic/OT2_json_workarounds
55521df803ff503a85203e898cb38181bb80819a
[ "MIT" ]
null
null
null
import argparse import json parser = argparse.ArgumentParser( description=""" This is a workaround for the fact that the new OT2 JSON schema is not officially out yet (8/23/2018) It converts protocols made using the schema as described here: https://github.com/Opentrons/opentrons/blob/391dcebe52411c432bb6f680d8aa59...
42.347826
245
0.694456
185e453fee9a82ef50cae6b0700348b5f233e718
12,675
py
Python
art/estimators/tensorflow.py
minaremeli/adversarial-robustness-toolbox
3454f7f11c3ade9317d11637c8c8621c9f44e8fd
[ "MIT" ]
1
2021-06-26T07:54:00.000Z
2021-06-26T07:54:00.000Z
art/estimators/tensorflow.py
minaremeli/adversarial-robustness-toolbox
3454f7f11c3ade9317d11637c8c8621c9f44e8fd
[ "MIT" ]
34
2021-06-23T09:14:19.000Z
2022-03-24T09:16:11.000Z
art/estimators/tensorflow.py
minaremeli/adversarial-robustness-toolbox
3454f7f11c3ade9317d11637c8c8621c9f44e8fd
[ "MIT" ]
1
2021-11-25T12:50:45.000Z
2021-11-25T12:50:45.000Z
# MIT License # # Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2020 # # 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 # r...
43.556701
120
0.655306
8f29497f207b808410dd31c68d350e0e21c5751e
36,371
py
Python
tests/test_write.py
dcslagel/lasio
8b0982b35ffaa1ecee3f5175030adf3359aec55b
[ "MIT" ]
285
2015-08-17T13:08:46.000Z
2022-03-30T20:21:41.000Z
tests/test_write.py
dcslagel/lasio
8b0982b35ffaa1ecee3f5175030adf3359aec55b
[ "MIT" ]
363
2015-08-05T10:13:44.000Z
2022-03-16T03:46:04.000Z
tests/test_write.py
dcslagel/lasio
8b0982b35ffaa1ecee3f5175030adf3359aec55b
[ "MIT" ]
155
2015-08-17T12:57:13.000Z
2022-03-29T21:23:54.000Z
import os, sys sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) import pytest import numpy as np import lasio from lasio import read from lasio.excel import ExcelConverter from lasio.reader import StringIO test_dir = os.path.dirname(__file__) egfn = lambda fn: os.path.join(os.path.dirname(__file__),...
38.610403
99
0.543317
2d86edac31f540e488a49bad04e885d9f7d220bd
7,414
py
Python
efinance/utils/__init__.py
romepeng/efinance
6255dfaa7624a5ef28e55b5378c5263a63aa18e3
[ "MIT" ]
null
null
null
efinance/utils/__init__.py
romepeng/efinance
6255dfaa7624a5ef28e55b5378c5263a63aa18e3
[ "MIT" ]
null
null
null
efinance/utils/__init__.py
romepeng/efinance
6255dfaa7624a5ef28e55b5378c5263a63aa18e3
[ "MIT" ]
null
null
null
import time import json import re from typing import Callable, Dict, Union, List, TypeVar from functools import wraps import pandas as pd from collections import namedtuple from retry.api import retry import rich from ..config import SEARCH_RESULT_CACHE_PATH from ..shared import (SEARCH_RESULT_DICT, ...
25.390411
121
0.541273
c0c3128906141eb61d800fcbe6111b7a88a11b27
6,005
bzl
Python
pdk/open_road_configuration.bzl
RobSpringer/bazel_rules_hdl
51bb77ff589149dff0c58886ff2c54d55aac0174
[ "Apache-2.0" ]
null
null
null
pdk/open_road_configuration.bzl
RobSpringer/bazel_rules_hdl
51bb77ff589149dff0c58886ff2c54d55aac0174
[ "Apache-2.0" ]
null
null
null
pdk/open_road_configuration.bzl
RobSpringer/bazel_rules_hdl
51bb77ff589149dff0c58886ff2c54d55aac0174
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
48.821138
143
0.700083
f92cafbd40f961216795ad1b0d3272e2f5638c96
5,614
py
Python
configs/representation/ssp/ssp_r18_sgd_cos_100e_r2_1xNx2_k400.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
configs/representation/ssp/ssp_r18_sgd_cos_100e_r2_1xNx2_k400.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
configs/representation/ssp/ssp_r18_sgd_cos_100e_r2_1xNx2_k400.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
# model settings temperature = 0.2 with_norm = True query_dim = 128 model = dict( type='SimSiamPairTracker', backbone=dict( type='ResNet', pretrained=None, depth=18, out_indices=(3, ), # strides=(1, 2, 1, 1), norm_cfg=dict(type='SyncBN', requires_grad=True), ...
30.02139
78
0.620413
a68ae20321e3ac81d6e56ff293b55399e7444e1a
6,664
bzl
Python
antlir/bzl/image_source.bzl
SaurabhAgarwala/antlir
d9513d35d3eaa9d28717a40057a14d099c6ec775
[ "MIT" ]
null
null
null
antlir/bzl/image_source.bzl
SaurabhAgarwala/antlir
d9513d35d3eaa9d28717a40057a14d099c6ec775
[ "MIT" ]
null
null
null
antlir/bzl/image_source.bzl
SaurabhAgarwala/antlir
d9513d35d3eaa9d28717a40057a14d099c6ec775
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. load("@bazel_skylib//lib:types.bzl", "types") load("//antlir/bzl:shape.bzl", "shape") load(":maybe_export_file.bzl", "maybe_export_file") load...
49
85
0.652011
9b9a6a6c014bd070cf636bf2d7ddad498518f96b
28,674
py
Python
dataset/dataset.py
HoloClean/RecordFusion
4094cd9e6c779584b9dbed6f3ae68eb11b13e2b2
[ "Apache-2.0" ]
2
2022-01-11T21:08:20.000Z
2022-01-22T03:13:00.000Z
dataset/dataset.py
HoloClean/RecordFusion
4094cd9e6c779584b9dbed6f3ae68eb11b13e2b2
[ "Apache-2.0" ]
null
null
null
dataset/dataset.py
HoloClean/RecordFusion
4094cd9e6c779584b9dbed6f3ae68eb11b13e2b2
[ "Apache-2.0" ]
1
2022-02-24T06:01:04.000Z
2022-02-24T06:01:04.000Z
from enum import Enum import logging import os import time import pandas as pd from .dbengine import DBengine from .table import Table, Source from utils import dictify_df import random from sklearn.model_selection import train_test_split from tqdm import tqdm class AuxTables(Enum): c_cells = 1 dk_cells = 2...
41.737991
185
0.580386
0705c1e2f6d402cca9720bc84e72938e6fba6f5c
599
py
Python
tests/test_netcdf_basics.py
ludwiglierhammer/pyhomogenize
339cd823b0e8ce618f1b2e42a69c20fb92ca7485
[ "MIT" ]
null
null
null
tests/test_netcdf_basics.py
ludwiglierhammer/pyhomogenize
339cd823b0e8ce618f1b2e42a69c20fb92ca7485
[ "MIT" ]
null
null
null
tests/test_netcdf_basics.py
ludwiglierhammer/pyhomogenize
339cd823b0e8ce618f1b2e42a69c20fb92ca7485
[ "MIT" ]
null
null
null
import pytest import pyhomogenize as pyh from . import has_dask, requires_dask from . import has_xarray, requires_xarray from . import has_numpy, requires_numpy from . import has_iteration_utilities, requires_iteration_utilities netcdffile = pyh.test_netcdf[0] def test_netcdf_basics(): netcdfbasics = pyh.netcd...
23.96
67
0.782972
2085e057c4c1604d615cef43b38e0915733ac66b
599
py
Python
qlcoder/file_system/python/good_op2.py
CheYulin/OJCodes
5fc1c3e86f31dd687a4e3110ee06a290c22396c5
[ "MIT" ]
1
2017-05-25T19:41:47.000Z
2017-05-25T19:41:47.000Z
qlcoder/file_system/python/good_op2.py
CheYulin/OJCodes
5fc1c3e86f31dd687a4e3110ee06a290c22396c5
[ "MIT" ]
null
null
null
qlcoder/file_system/python/good_op2.py
CheYulin/OJCodes
5fc1c3e86f31dd687a4e3110ee06a290c22396c5
[ "MIT" ]
null
null
null
limit = 100000; array = [0] * limit def query(idx): ret = 0 while idx > 0: ret += array[idx]; idx -= idx&(-idx) return ret def update(idx, add): while idx < limit: array[idx] += add; idx += idx&(-idx) with open('good-2.txt', 'r') as f: ans = 0 for line in f.readlines(): ...
26.043478
66
0.494157
863e26d75ec61fac9d96f3dffac9229ae7b84a22
1,738
py
Python
handlers/inlineQrHandler.py
Sarratus/randomfoxbot
d35fc2efcffc491f4edc73eed8508c0dfe7ec67a
[ "MIT" ]
1
2021-05-07T05:01:53.000Z
2021-05-07T05:01:53.000Z
handlers/inlineQrHandler.py
Sarratus/randomfoxbot
d35fc2efcffc491f4edc73eed8508c0dfe7ec67a
[ "MIT" ]
3
2021-03-31T02:34:04.000Z
2022-03-25T13:06:15.000Z
handlers/inlineQrHandler.py
Sarratus/randomfoxbot
d35fc2efcffc491f4edc73eed8508c0dfe7ec67a
[ "MIT" ]
null
null
null
from misc import dp, bot from features.mainFunctions import \ createQR, uploadInputFileToTelegram,\ escapeMarkdown # from aiogram.types import \ InlineQuery, inline_keyboard, \ InlineQueryResultPhoto, ChosenInlineResult, \ InputMediaPhoto # from aiogram.utils import markdown from os import remove from time im...
27.15625
108
0.784235
96aacdd723ee6af6309e116281dfee6d3ca2fb60
4,539
py
Python
guestbook.py
eddy194/simple-python-page
6d3c6920452e1d109a30bd139ed7f61b702bcd9e
[ "Apache-2.0" ]
null
null
null
guestbook.py
eddy194/simple-python-page
6d3c6920452e1d109a30bd139ed7f61b702bcd9e
[ "Apache-2.0" ]
null
null
null
guestbook.py
eddy194/simple-python-page
6d3c6920452e1d109a30bd139ed7f61b702bcd9e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # 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...
38.466102
80
0.656753
acd406841b6f16d31e30cc5839e4cb95279f6268
1,014
py
Python
configs/textdet/psenet/psenet_r50_fpnf_600e_icdar2017.py
hongxuenong/mmocr
e8e3a059f8f2e4fca96af37751c33563fc48e2ba
[ "Apache-2.0" ]
2,261
2021-04-08T03:45:41.000Z
2022-03-31T23:37:46.000Z
configs/textdet/psenet/psenet_r50_fpnf_600e_icdar2017.py
hongxuenong/mmocr
e8e3a059f8f2e4fca96af37751c33563fc48e2ba
[ "Apache-2.0" ]
789
2021-04-08T05:40:13.000Z
2022-03-31T09:42:39.000Z
configs/textdet/psenet/psenet_r50_fpnf_600e_icdar2017.py
hongxuenong/mmocr
e8e3a059f8f2e4fca96af37751c33563fc48e2ba
[ "Apache-2.0" ]
432
2021-04-08T03:56:16.000Z
2022-03-30T18:44:43.000Z
_base_ = [ '../../_base_/schedules/schedule_sgd_600e.py', '../../_base_/runtime_10e.py', '../../_base_/det_models/psenet_r50_fpnf.py', '../../_base_/det_datasets/icdar2017.py', '../../_base_/det_pipelines/psenet_pipeline.py' ] model = {{_base_.model_quad}} train_list = {{_base_.train_list}} test_l...
28.166667
60
0.683432
faaabdb315644bdbb9fef37ac652d3ad0e2c8912
5,448
py
Python
smi2sdf.py
rnaimehaom/smi2sdf
851f4e62cbc4d9af10385addf61fe8e54de3440f
[ "MIT" ]
1
2022-03-16T12:17:20.000Z
2022-03-16T12:17:20.000Z
smi2sdf.py
rnaimehaom/smi2sdf
851f4e62cbc4d9af10385addf61fe8e54de3440f
[ "MIT" ]
null
null
null
smi2sdf.py
rnaimehaom/smi2sdf
851f4e62cbc4d9af10385addf61fe8e54de3440f
[ "MIT" ]
null
null
null
""" Conversion of SMILES 2D representation to 3D Coordinate generation This program uses RDKits EmbedMultipleConfs from AllChem to generate 3D structures of molecules based on an input SMILES string. The code is based on GB-GA (https://github.com/cstein/GB-GA) which is a fork of Jan Jensen's GB-GA (https://github.com...
31.674419
125
0.660793
d8799ee1c0d5e5c6b8d63f706f945347a9cb2b58
4,627
py
Python
utils.py
liaoyizhi123/crnn.pytorch
02d6f0806c44ee30de7b3723df90e583f26a269c
[ "MIT" ]
1
2021-10-15T07:16:01.000Z
2021-10-15T07:16:01.000Z
utils.py
liaoyizhi123/crnn.pytorch
02d6f0806c44ee30de7b3723df90e583f26a269c
[ "MIT" ]
null
null
null
utils.py
liaoyizhi123/crnn.pytorch
02d6f0806c44ee30de7b3723df90e583f26a269c
[ "MIT" ]
null
null
null
#!/usr/bin/python # encoding: utf-8 import torch import torch.nn as nn from torch.autograd import Variable import collections class strLabelConverter(object): """Convert between str and label. NOTE: Insert `blank` to the alphabet for CTC. Args: alphabet (str): set of the possible charac...
30.846667
136
0.527988
71597315dda693d6b8c36826986f4b5b4fc2c05e
4,644
py
Python
tools/hardirqs.py
fgwu/bcc
d1c797f8e95dcbf0e6ec325fecd41c9f135a3c0e
[ "ECL-2.0", "Apache-2.0" ]
1
2021-06-24T17:47:07.000Z
2021-06-24T17:47:07.000Z
tools/hardirqs.py
gdankel/bcc
2cc96a8c17b9b7059883627ea211f30a77061b2b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tools/hardirqs.py
gdankel/bcc
2cc96a8c17b9b7059883627ea211f30a77061b2b
[ "ECL-2.0", "Apache-2.0" ]
1
2021-02-01T12:09:24.000Z
2021-02-01T12:09:24.000Z
#!/usr/bin/python # @lint-avoid-python-3-compatibility-imports # # hardirqs Summarize hard IRQ (interrupt) event time. # For Linux, uses BCC, eBPF. # # USAGE: hardirqs [-h] [-T] [-Q] [-m] [-D] [interval] [count] # # Thanks Amer Ather for help understanding irq behavior. # # Copyright (c) 2015 Brendan Gregg. ...
29.579618
79
0.653531
203da2d49b2048d1021980ca860fe8b3269546b8
295
py
Python
floodsystem/analysis.py
reib2/Lab-3-Flood-Warning
9f86b4b8a7fa9508ddaa0e9754d64ff6c4e38f66
[ "MIT" ]
null
null
null
floodsystem/analysis.py
reib2/Lab-3-Flood-Warning
9f86b4b8a7fa9508ddaa0e9754d64ff6c4e38f66
[ "MIT" ]
null
null
null
floodsystem/analysis.py
reib2/Lab-3-Flood-Warning
9f86b4b8a7fa9508ddaa0e9754d64ff6c4e38f66
[ "MIT" ]
1
2022-02-01T23:24:15.000Z
2022-02-01T23:24:15.000Z
import matplotlib import numpy as np import matplotlib.pyplot as plt def polyfit(dates, levels, p): x = matplotlib.dates.date2num(dates) y = levels p_coeff = np.polyfit(x - x[0], y, p) poly = np.poly1d(p_coeff) d0 = matplotlib.dates.date2num(dates[0]) return poly, d0
21.071429
44
0.674576
12248c47251edcc20b41f760c78440650fc868f0
801
py
Python
ejercicios_resueltos/t06/t06ejer02.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
ejercicios_resueltos/t06/t06ejer02.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
ejercicios_resueltos/t06/t06ejer02.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
import math class Circle: def __init__(self, r): self.radius = r @property def area(self): return self._radius**2*math.pi @property def perimeter(self): return 2*self._radius*math.pi @property def radius(self): return self._radius ...
23.558824
66
0.621723
dc3269f4cc0e01d08f547763021292f8cafa021b
2,052
py
Python
theape/infrastructure/code_graphs.py
rsnakamura/theape
c480fc197eef49c73fa25f3948e3cf45d79e4abe
[ "MIT" ]
null
null
null
theape/infrastructure/code_graphs.py
rsnakamura/theape
c480fc197eef49c73fa25f3948e3cf45d79e4abe
[ "MIT" ]
null
null
null
theape/infrastructure/code_graphs.py
rsnakamura/theape
c480fc197eef49c73fa25f3948e3cf45d79e4abe
[ "MIT" ]
null
null
null
# python standard library import shlex import subprocess def module_diagram(module, project, output_format='png'): """ Creates a dependency diagram for the module given. :param: - `module`: path to the module - `project`: name to use to distinguish the output file - `output_format`: forma...
39.461538
92
0.480019
8ad118a379219e6f9cdb45cd5818f3a687e1496a
3,014
py
Python
semisupervised/labelpropagation/lp2.py
mssalvador/NextProject
b9e223f8f1de803fd3865c3f2148a417f88556da
[ "Apache-2.0" ]
1
2017-10-10T07:00:46.000Z
2017-10-10T07:00:46.000Z
semisupervised/labelpropagation/lp2.py
mssalvador/NextProject
b9e223f8f1de803fd3865c3f2148a417f88556da
[ "Apache-2.0" ]
null
null
null
semisupervised/labelpropagation/lp2.py
mssalvador/NextProject
b9e223f8f1de803fd3865c3f2148a417f88556da
[ "Apache-2.0" ]
2
2018-11-19T09:07:49.000Z
2018-11-28T12:54:25.000Z
from pyspark.mllib.linalg import distributed from pyspark import StorageLevel from semisupervised.labelpropagation.lp_generate_graph import do_cartesian from semisupervised.labelpropagation import lp_helper from semisupervised.labelpropagation import lp_iteration def label_propagation( sc, data_frame=None, ...
35.046512
82
0.692104
531d4cdbcf20fa36e55c250529e71ca430a9fb61
655
py
Python
venv/bin/rst2pseudoxml.py
boogieLing/r0_es
14ac336a40c4f87b8bd3bd62a60158b437690c35
[ "MIT" ]
null
null
null
venv/bin/rst2pseudoxml.py
boogieLing/r0_es
14ac336a40c4f87b8bd3bd62a60158b437690c35
[ "MIT" ]
null
null
null
venv/bin/rst2pseudoxml.py
boogieLing/r0_es
14ac336a40c4f87b8bd3bd62a60158b437690c35
[ "MIT" ]
null
null
null
#!/home/DEEPROUTE/hanyuanling/Desktop/tools/r0_es_helper/venv/bin/python # $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing pseudo-XML. """ ...
27.291667
73
0.749618
f7e63eb2782c95a44be0fe67a6ca5c58e1da654c
3,219
py
Python
tests/bugs/core_2005_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_2005_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_2005_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: bugs.core_2005 # title: Support SQL 2008 syntax for MERGE statement with DELETE extension # decription: # tracker_id: CORE-2005 # min_versions: ['3.0'] # versions: 3.0 # qmid: None import pytest from firebird.qa import db_factory, isql_act, Action # version: 3.0...
29.263636
81
0.410997
707f299def1ab3c4e9e98361c3ad3cb94eeaf208
475
py
Python
Exercise_8_7.py
kushrami/Python-Crash-Course-book-Excersice
7093181940a90d9f4bab5775ef56f57963450393
[ "Apache-2.0" ]
null
null
null
Exercise_8_7.py
kushrami/Python-Crash-Course-book-Excersice
7093181940a90d9f4bab5775ef56f57963450393
[ "Apache-2.0" ]
null
null
null
Exercise_8_7.py
kushrami/Python-Crash-Course-book-Excersice
7093181940a90d9f4bab5775ef56f57963450393
[ "Apache-2.0" ]
null
null
null
#Album: def make_album(artist_name,album_title,number_of_tracks=0): if number_of_tracks > 0: Dictionary = {'artist name' : artist_name,'album title': album_title,'Number of tracks':number_of_tracks} else: Dictionary = {'artist name' : artist_name,'album title': album_title} print(Dictionary...
29.6875
113
0.705263
57775a6a192623b70b4de9343ec36d17d37c7cdc
742
py
Python
var/spack/repos/builtin/packages/xsetpointer/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-06-25T15:25:29.000Z
2020-06-25T15:25:29.000Z
var/spack/repos/builtin/packages/xsetpointer/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2018-07-06T19:11:46.000Z
2018-07-06T19:12:28.000Z
var/spack/repos/builtin/packages/xsetpointer/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-03-06T11:04:37.000Z
2020-03-06T11:04:37.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Xsetpointer(AutotoolsPackage): """Set an X Input device as the main pointer.""" homep...
32.26087
95
0.721024
e53a5ed86175207cc1428f70fd4c495dc4b943cd
1,417
py
Python
experiments/UNITER/utils/misc.py
samuelyu2002/PACS
5010b2f0d20933b0647e3d6230d673e1830249ec
[ "MIT" ]
null
null
null
experiments/UNITER/utils/misc.py
samuelyu2002/PACS
5010b2f0d20933b0647e3d6230d673e1830249ec
[ "MIT" ]
null
null
null
experiments/UNITER/utils/misc.py
samuelyu2002/PACS
5010b2f0d20933b0647e3d6230d673e1830249ec
[ "MIT" ]
null
null
null
import json import random import sys import torch import numpy as np from utils.logger import LOGGER class NoOp(object): """ useful for distributed training No-Ops """ def __getattr__(self, name): return self.noop def noop(self, *args, **kwargs): return def parse_with_config(parser):...
21.469697
70
0.606916