hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
cb0b0b1ffbe16668a2110a056d87603ba9b8925d
47,481
py
Python
dnacentersdk/api/v2_1_1/wireless.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
32
2019-09-05T05:16:56.000Z
2022-03-22T09:50:38.000Z
dnacentersdk/api/v2_1_1/wireless.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
35
2019-09-07T18:58:54.000Z
2022-03-24T19:29:36.000Z
dnacentersdk/api/v2_1_1/wireless.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
18
2019-09-09T11:07:21.000Z
2022-03-25T08:49:59.000Z
# -*- coding: utf-8 -*- """Cisco DNA Center Wireless API wrapper. Copyright (c) 2019-2021 Cisco Systems. 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 lim...
39.766332
116
0.573429
ecef86831b53ac98803d10967d4fb4d16d3304ee
1,038
py
Python
examples/libtest/TupleTest.py
allbuttonspressed/pyjs
c726fdead530eb63ee4763ae15daaa58d84cd58f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
examples/libtest/TupleTest.py
allbuttonspressed/pyjs
c726fdead530eb63ee4763ae15daaa58d84cd58f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
examples/libtest/TupleTest.py
allbuttonspressed/pyjs
c726fdead530eb63ee4763ae15daaa58d84cd58f
[ "ECL-2.0", "Apache-2.0" ]
1
2019-11-18T14:17:59.000Z
2019-11-18T14:17:59.000Z
from UnitTest import UnitTest class TupleTest(UnitTest): def testGetItem(self): t = (1, 2) self.assertEqual(t[True], 2) self.assertEqual(t[False], 1) def testContains(self): value = (0, 1, 2, 3, 4) self.assertTrue(1 in value) self.assertFalse(10 in value) d...
22.565217
54
0.454721
0a25fd5ed4ee0805fb1f3ae5a245c487ef2d672a
18,697
py
Python
pipeline_plugins/tests/variables/collections/sites/open/cc/test_var_cmdb_set_module_ip_selector.py
springborland/bk-sops
a9057672c10efb5f2414a805a30ead4092429c76
[ "Apache-2.0" ]
null
null
null
pipeline_plugins/tests/variables/collections/sites/open/cc/test_var_cmdb_set_module_ip_selector.py
springborland/bk-sops
a9057672c10efb5f2414a805a30ead4092429c76
[ "Apache-2.0" ]
null
null
null
pipeline_plugins/tests/variables/collections/sites/open/cc/test_var_cmdb_set_module_ip_selector.py
springborland/bk-sops
a9057672c10efb5f2414a805a30ead4092429c76
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
39.865672
118
0.574959
51c86882b5eae136ce4b62d1cda4ef68dc3c564e
7,816
py
Python
TweetPinnaGraphs.py
IngoKl/TweetPinna
cf5908721486181accbb5a52455ff2e44ca385c9
[ "MIT" ]
4
2020-02-01T19:15:03.000Z
2022-02-04T21:40:08.000Z
TweetPinnaGraphs.py
IngoKl/TweetPinna
cf5908721486181accbb5a52455ff2e44ca385c9
[ "MIT" ]
4
2017-02-12T11:50:18.000Z
2020-04-12T15:10:32.000Z
TweetPinnaGraphs.py
IngoKl/TweetPinna
cf5908721486181accbb5a52455ff2e44ca385c9
[ "MIT" ]
1
2017-09-04T02:21:23.000Z
2017-09-04T02:21:23.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """TweetPinna - Twitter Status Archiver - Dashboard. TweetPinna streams Twitter statuses into a MongoDB database based on given search terms. It is also capable of retrieving a user's timeline. This script generates graphs for the dashboard. It is supposed to run...
38.313725
110
0.600947
9e75305ddf19625ed5e037d82ec8fff113412795
52,832
py
Python
ibis/backends/pyspark/compiler.py
LeeTZ/ibis
165f78de8f4f0121ba2c601b5c9f89bc0f65a593
[ "Apache-2.0" ]
null
null
null
ibis/backends/pyspark/compiler.py
LeeTZ/ibis
165f78de8f4f0121ba2c601b5c9f89bc0f65a593
[ "Apache-2.0" ]
1
2021-03-25T14:07:29.000Z
2021-03-25T14:07:29.000Z
ibis/backends/pyspark/compiler.py
LeeTZ/ibis
165f78de8f4f0121ba2c601b5c9f89bc0f65a593
[ "Apache-2.0" ]
null
null
null
import collections import enum import functools import operator import numpy as np import pyspark import pyspark.sql.functions as F from pyspark.sql import Window from pyspark.sql.functions import PandasUDFType, pandas_udf import ibis.common.exceptions as com import ibis.expr.datatypes as dtypes import ibis.expr.oper...
29.664234
79
0.668118
4504124ca6347f881ae36b0f3c8c43ede7587be0
123
py
Python
scrapyspider/run.py
yan-jin/douban_top250_scrapyspider
176c974a32cc0975b2ce6bede9cf201061761628
[ "MIT" ]
null
null
null
scrapyspider/run.py
yan-jin/douban_top250_scrapyspider
176c974a32cc0975b2ce6bede9cf201061761628
[ "MIT" ]
null
null
null
scrapyspider/run.py
yan-jin/douban_top250_scrapyspider
176c974a32cc0975b2ce6bede9cf201061761628
[ "MIT" ]
null
null
null
from scrapy import cmdline name = 'douban_movie_top250' cmd = 'scrapy crawl {}'.format(name) cmdline.execute(cmd.split())
20.5
36
0.747967
ed8bcb6e7e5cfbb694dcdfa4955337592d0d31c8
4,398
py
Python
homeassistant/components/locative/__init__.py
jeanfpoulin/home-assistant
04dbe5bc841e1a429873efbd850c35b823ef26ce
[ "Apache-2.0" ]
3
2020-05-18T10:18:16.000Z
2020-12-08T11:27:55.000Z
homeassistant/components/locative/__init__.py
jeanfpoulin/home-assistant
04dbe5bc841e1a429873efbd850c35b823ef26ce
[ "Apache-2.0" ]
3
2021-02-08T20:54:46.000Z
2021-09-08T02:30:04.000Z
homeassistant/components/locative/__init__.py
jeanfpoulin/home-assistant
04dbe5bc841e1a429873efbd850c35b823ef26ce
[ "Apache-2.0" ]
6
2020-04-10T06:21:11.000Z
2021-07-01T08:53:38.000Z
"""Support for Locative.""" import logging from typing import Dict import voluptuous as vol from aiohttp import web import homeassistant.helpers.config_validation as cv from homeassistant.components.device_tracker import DOMAIN as DEVICE_TRACKER from homeassistant.const import ( HTTP_UNPROCESSABLE_ENTITY, ATT...
32.577778
88
0.692133
44e5005e167dde44b963f3a92f3bd75c9021b2e5
386
py
Python
newsSpider/newsSpider/items.py
xunyangjian/spider
3d6cfa3d8e3a608b414bed920e4b408043d119a4
[ "MIT" ]
null
null
null
newsSpider/newsSpider/items.py
xunyangjian/spider
3d6cfa3d8e3a608b414bed920e4b408043d119a4
[ "MIT" ]
null
null
null
newsSpider/newsSpider/items.py
xunyangjian/spider
3d6cfa3d8e3a608b414bed920e4b408043d119a4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class NewsspiderItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() title = scrapy.Field() # 文章标题 lin...
22.705882
51
0.65544
f8ea9b06f93217608c0ac1c709fab70e125ec784
4,660
py
Python
neuspell/corrector_lstmlstm.py
michael-conrad/neuspell
f1d1a8b4efa7c6aa6e0564ea17db152905f4c7dc
[ "MIT" ]
1
2021-05-21T09:39:50.000Z
2021-05-21T09:39:50.000Z
neuspell/corrector_lstmlstm.py
michael-conrad/neuspell
f1d1a8b4efa7c6aa6e0564ea17db152905f4c7dc
[ "MIT" ]
null
null
null
neuspell/corrector_lstmlstm.py
michael-conrad/neuspell
f1d1a8b4efa7c6aa6e0564ea17db152905f4c7dc
[ "MIT" ]
null
null
null
import os from typing import List import torch from .commons import spacy_tokenizer, DEFAULT_DATA_PATH, Corrector from .seq_modeling.downloads import download_pretrained_model from .seq_modeling.helpers import load_data, load_vocab_dict, get_model_nparams from .seq_modeling.lstmlstm import load_model, load_pr...
40.172414
116
0.606652
6bd421e45a1e9a98dbdede27df576170327de262
79,010
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_10_01/operations/_virtual_network_gateways_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_10_01/operations/_virtual_network_gateways_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_10_01/operations/_virtual_network_gateways_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
50.679923
248
0.673244
64da72d5286962e5dd983171f507cf09fe354986
4,736
py
Python
appBody.py
MichelVanderhulst/web-app-central
d572d10ff8d5b6cbf0a0fc191a397f004bce75cc
[ "MIT" ]
null
null
null
appBody.py
MichelVanderhulst/web-app-central
d572d10ff8d5b6cbf0a0fc191a397f004bce75cc
[ "MIT" ]
null
null
null
appBody.py
MichelVanderhulst/web-app-central
d572d10ff8d5b6cbf0a0fc191a397f004bce75cc
[ "MIT" ]
null
null
null
# Dash app libraries import dash import dash_core_components as dcc import dash_html_components as html import dash_bootstrap_components as dbc import base64 import dash_table # Making table quickly import pandas as pd # Listing manually all the apps created derivatives = ["European option", "Europea...
49.333333
261
0.5019
5f2755f38b02e01a2205b23ecbd4acd716b2fdcf
1,598
py
Python
var/spack/repos/builtin/packages/ioapi/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/ioapi/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/ioapi/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.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) import os class Ioapi(MakefilePackage): """Models-3/EDSS Input/Output Applications Programming Interface.""" ho...
42.052632
93
0.670839
4cef8ebf9a319a43e6bef137aa8a124213e3a71c
165
py
Python
venv/bin/django-admin.py
justinburger/dinetta
a7cb9abd67167ee1be2cc4417e650ee1aae1afe3
[ "MIT" ]
null
null
null
venv/bin/django-admin.py
justinburger/dinetta
a7cb9abd67167ee1be2cc4417e650ee1aae1afe3
[ "MIT" ]
6
2020-06-05T23:19:48.000Z
2022-02-10T13:39:54.000Z
venv/bin/django-admin.py
justinburger/dinetta
a7cb9abd67167ee1be2cc4417e650ee1aae1afe3
[ "MIT" ]
null
null
null
#!/Users/justinburger/Documents/dinetta/venv/bin/python3.7 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
27.5
58
0.793939
90696b9ffc09244e6c8e1e5b4e1e7f6749eead64
2,342
py
Python
test/integration/tests/model_mapper/constant_tuple_then_float.py
AshKelly/PyAutoLens
043795966338a655339e61782253ad67cc3c14e6
[ "MIT" ]
null
null
null
test/integration/tests/model_mapper/constant_tuple_then_float.py
AshKelly/PyAutoLens
043795966338a655339e61782253ad67cc3c14e6
[ "MIT" ]
null
null
null
test/integration/tests/model_mapper/constant_tuple_then_float.py
AshKelly/PyAutoLens
043795966338a655339e61782253ad67cc3c14e6
[ "MIT" ]
null
null
null
import os from autofit import conf from autofit.optimize import non_linear as nl from autolens.data import ccd from autolens.model.galaxy import galaxy, galaxy_model as gm from autolens.pipeline import phase as ph from autolens.pipeline import pipeline as pl from autolens.model.profiles import light_profiles as lp fro...
37.174603
114
0.678907
83e13c5d67ad251c04924f0fb00a156bcc93dd07
3,622
py
Python
src/feeds/views.py
Talengi/phase
60ff6f37778971ae356c5b2b20e0d174a8288bfe
[ "MIT" ]
8
2016-01-29T11:53:40.000Z
2020-03-02T22:42:02.000Z
src/feeds/views.py
Talengi/phase
60ff6f37778971ae356c5b2b20e0d174a8288bfe
[ "MIT" ]
289
2015-03-23T07:42:52.000Z
2022-03-11T23:26:10.000Z
src/feeds/views.py
Talengi/phase
60ff6f37778971ae356c5b2b20e0d174a8288bfe
[ "MIT" ]
7
2015-12-08T09:03:20.000Z
2020-05-11T15:36:51.000Z
# -*- coding: utf-8 -*- from django.views.generic import TemplateView, ListView from django.utils.translation import ugettext_lazy as _ from django.core.urlresolvers import reverse from django.core.exceptions import ImproperlyConfigured from django.contrib.auth.mixins import LoginRequiredMixin from categories.views ...
29.933884
81
0.655163
ee49de9ea14a8c6f8f1bfd48d4bf681e710b0d97
12,004
py
Python
src/algorithms/modules.py
jangirrishabh/look-closer
91647b429a5e8f85fe29079035d4f51772df8382
[ "MIT" ]
15
2022-01-20T01:04:35.000Z
2022-01-29T09:30:50.000Z
src/algorithms/modules.py
jangirrishabh/look-closer
91647b429a5e8f85fe29079035d4f51772df8382
[ "MIT" ]
1
2022-03-24T23:44:11.000Z
2022-03-27T21:59:24.000Z
src/algorithms/modules.py
jangirrishabh/look-closer
91647b429a5e8f85fe29079035d4f51772df8382
[ "MIT" ]
1
2022-01-29T09:30:50.000Z
2022-01-29T09:30:50.000Z
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import math from functools import partial def _get_out_shape(in_shape, layers, attn=False): x = torch.randn(*in_shape).unsqueeze(0) if attn: return layers(x, x, x).squeeze(0).shape else: return layers(x).squeeze(0).shape de...
30.544529
236
0.671276
6f7ccfcb3a8bade3319722a0ddd6d4729eebdb44
135
py
Python
skeleton/test_unittest.py
cjhnim/daily-kata-python
44a4ba9583b9f8c9db8e0114fa4837acbbd83746
[ "MIT" ]
null
null
null
skeleton/test_unittest.py
cjhnim/daily-kata-python
44a4ba9583b9f8c9db8e0114fa4837acbbd83746
[ "MIT" ]
null
null
null
skeleton/test_unittest.py
cjhnim/daily-kata-python
44a4ba9583b9f8c9db8e0114fa4837acbbd83746
[ "MIT" ]
null
null
null
import inc_dec def test_increment(): assert inc_dec.increment(3) == 4 def test_decrement(): assert inc_dec.decrement(3) == 2
16.875
36
0.703704
fd3a4d6b8569e760378a3b44a64e6eed5c4f8f84
842
py
Python
setup.py
kimnnmadsen/eve-inc-waitlist
c3e4853c5563a95edbf105c11e73d481595fb3ab
[ "MIT" ]
null
null
null
setup.py
kimnnmadsen/eve-inc-waitlist
c3e4853c5563a95edbf105c11e73d481595fb3ab
[ "MIT" ]
1
2020-02-18T05:11:20.000Z
2020-02-18T05:29:10.000Z
setup.py
kimnnmadsen/eve-inc-waitlist
c3e4853c5563a95edbf105c11e73d481595fb3ab
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="EVE Incursion waitlist", version="1.7.4", author="SpeedProg", author_email="speedprogde@googlemail.com", description="Waitlist geared towards EveOnline Incursion Groups", long_descrip...
28.066667
69
0.685273
594a5da50c8db4eaefad53ea4868473960b16db6
1,153
py
Python
var/spack/repos/builtin/packages/r-powerlaw/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/r-powerlaw/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/r-powerlaw/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 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 RPowerlaw(RPackage): """Analysis of Heavy Tailed Distributions. An implementation of ...
41.178571
96
0.728534
a234a929fe189de6ef8d3b715afa44339aa650c5
2,521
py
Python
verification/testcases/functional_testcases/test_individual_verification.py
DhivakharVenkatachalam/snet-marketplace-service
6aee606bc9b00d418caeae26c64deae03792e0ce
[ "MIT" ]
14
2019-02-12T09:14:52.000Z
2021-03-11T18:42:22.000Z
verification/testcases/functional_testcases/test_individual_verification.py
prashantramangupta/snet-marketplace-service
7c293054e4b0207deefecc46defd743c064472a4
[ "MIT" ]
1,079
2019-01-10T04:31:24.000Z
2022-03-29T06:16:42.000Z
verification/testcases/functional_testcases/test_individual_verification.py
prashantramangupta/snet-marketplace-service
7c293054e4b0207deefecc46defd743c064472a4
[ "MIT" ]
20
2018-12-18T13:06:41.000Z
2021-09-17T11:13:01.000Z
import json from datetime import datetime from unittest import TestCase from unittest.mock import patch, Mock from uuid import uuid4 from common.exceptions import MethodNotImplemented from verification.application.handlers.verification_handlers import initiate, callback from verification.application.services.verificat...
42.016667
111
0.685442
a22913868525a9d0d6fd5a2eff0269a895e3b3b3
12,964
py
Python
test/sql/test_from_linter.py
petit87/sqlalchemy
67d674bd63ca36ac32b23f96e2b19e9dac6b0863
[ "MIT" ]
5,383
2018-11-27T07:34:03.000Z
2022-03-31T19:40:59.000Z
test/sql/test_from_linter.py
petit87/sqlalchemy
67d674bd63ca36ac32b23f96e2b19e9dac6b0863
[ "MIT" ]
2,719
2018-11-27T07:55:01.000Z
2022-03-31T22:09:44.000Z
test/sql/test_from_linter.py
petit87/sqlalchemy
67d674bd63ca36ac32b23f96e2b19e9dac6b0863
[ "MIT" ]
1,056
2015-01-03T00:30:17.000Z
2022-03-15T12:56:24.000Z
from sqlalchemy import Integer from sqlalchemy import select from sqlalchemy import sql from sqlalchemy import testing from sqlalchemy import true from sqlalchemy.testing import config from sqlalchemy.testing import engines from sqlalchemy.testing import expect_warnings from sqlalchemy.testing import fixtures from sqla...
32.820253
79
0.569809
eb458ce46b97dfd617058eb354f363c4005234bf
2,774
py
Python
users/views.py
tutorin-tech/tit-api
ad487f1ae245e8bca84c450b6e01615cc056eba2
[ "Apache-2.0" ]
null
null
null
users/views.py
tutorin-tech/tit-api
ad487f1ae245e8bca84c450b6e01615cc056eba2
[ "Apache-2.0" ]
null
null
null
users/views.py
tutorin-tech/tit-api
ad487f1ae245e8bca84c450b6e01615cc056eba2
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Denis Gavrilyuk. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
35.564103
87
0.721702
f5a064ae31803d80d625f717f4927f8ffc22e3ff
5,454
py
Python
amr_coref/coref/build_embeddings.py
bjascob/amr_coref
e062fcf39b3db82889a58e52fd2cfdb772a279dc
[ "MIT" ]
1
2021-03-04T13:02:04.000Z
2021-03-04T13:02:04.000Z
amr_coref/coref/build_embeddings.py
bjascob/amr_coref
e062fcf39b3db82889a58e52fd2cfdb772a279dc
[ "MIT" ]
1
2021-12-05T18:48:58.000Z
2021-12-05T18:48:58.000Z
amr_coref/coref/build_embeddings.py
bjascob/amr_coref
e062fcf39b3db82889a58e52fd2cfdb772a279dc
[ "MIT" ]
null
null
null
import re import difflib from tqdm import tqdm from multiprocessing import Pool from .vocab_embeddings import normalize_token def build_embeddings(embed_in_dict, gdata_dict): # Get all tokens from the serialized graph and normalize them # normalize_token is called the Vocab class before getting the emeb...
41.318182
106
0.666667
ceede86b847a6ddb94b441b824113bb98e016f25
1,554
py
Python
Chapter03/traffic.py
marcjour303/PytML
cd1391976167a7a671e98a1f588898c01585cee9
[ "MIT" ]
36
2019-04-05T00:58:57.000Z
2022-03-12T09:25:04.000Z
Chapter03/traffic.py
ClauPorto/Python-Machine-Learning-Cookbook-Second-Edition
99d8b799dbfe1d9a82f0bcc3648aaeb147b7298f
[ "MIT" ]
null
null
null
Chapter03/traffic.py
ClauPorto/Python-Machine-Learning-Cookbook-Second-Edition
99d8b799dbfe1d9a82f0bcc3648aaeb147b7298f
[ "MIT" ]
37
2019-04-16T00:50:20.000Z
2022-02-28T18:14:41.000Z
# SVM regressor to estimate traffic import numpy as np from sklearn import preprocessing from sklearn.svm import SVR input_file = 'traffic_data.txt' # Reading the data X = [] count = 0 with open(input_file, 'r') as f: for line in f.readlines(): data = line[:-1].split(',') X.append(data) X = np.a...
26.338983
84
0.675032
378c7fe7ad49032bbc94d23a12363c35294e744d
14,446
py
Python
sdk/python/pulumi_azure_native/web/latest/get_web_app_site_extension.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/latest/get_web_app_site_extension.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/latest/get_web_app_site_extension.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# 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! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
37.718016
480
0.648484
a68aba9651c0a1440755a5b0b0aecaff783f8b6e
76
py
Python
src/application/services.py
ericlongxuan/intersection-server
b6284c85ca7e405f525901b4ac986b9941906971
[ "MIT", "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
src/application/services.py
ericlongxuan/intersection-server
b6284c85ca7e405f525901b4ac986b9941906971
[ "MIT", "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
src/application/services.py
ericlongxuan/intersection-server
b6284c85ca7e405f525901b4ac986b9941906971
[ "MIT", "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
class Services(object): def add_user(self, user_model): return
15.2
35
0.657895
601fb3f7fff1ea63b4d5ac791b22dafe92a8eee3
9,206
py
Python
honssh/honeypot/docker_utils/docker_driver.py
tsarpaul/honssh
f2d6ad7fda81853a117d968379adbd7daa1ef57f
[ "BSD-3-Clause" ]
null
null
null
honssh/honeypot/docker_utils/docker_driver.py
tsarpaul/honssh
f2d6ad7fda81853a117d968379adbd7daa1ef57f
[ "BSD-3-Clause" ]
null
null
null
honssh/honeypot/docker_utils/docker_driver.py
tsarpaul/honssh
f2d6ad7fda81853a117d968379adbd7daa1ef57f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2016 Thomas Nicholson <tnnich@googlemail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above c...
45.800995
118
0.635564
3d43a309f82b814ef6fd49c71f81cc9e6012ebcb
13,892
py
Python
benchmark_helper.py
raikonenfnu/transformer-benchmarks
7edcae20c319262620127b2cb83c0d19ef7dea0f
[ "BSD-3-Clause" ]
14
2021-11-08T15:09:29.000Z
2022-03-19T22:35:43.000Z
benchmark_helper.py
raikonenfnu/transformer-benchmarks
7edcae20c319262620127b2cb83c0d19ef7dea0f
[ "BSD-3-Clause" ]
19
2021-08-21T08:43:10.000Z
2022-03-18T21:52:45.000Z
benchmark_helper.py
raikonenfnu/transformer-benchmarks
7edcae20c319262620127b2cb83c0d19ef7dea0f
[ "BSD-3-Clause" ]
3
2019-01-08T12:19:04.000Z
2020-05-09T21:33:12.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import ...
41.717718
124
0.607976
f4126de6d79a27064608aec94e13eee944cd9edb
1,585
py
Python
src/benchmarkstt/cli/main.py
ebu/benchmarkstt
3235d65661a4b771403e0369fac02c05e58c8974
[ "MIT" ]
30
2019-04-26T14:57:47.000Z
2022-01-31T13:59:12.000Z
src/benchmarkstt/cli/main.py
ebu/benchmarkstt
3235d65661a4b771403e0369fac02c05e58c8974
[ "MIT" ]
86
2019-04-24T13:42:48.000Z
2022-02-22T08:57:10.000Z
src/benchmarkstt/cli/main.py
ebu/ai-benchmarking
3235d65661a4b771403e0369fac02c05e58c8974
[ "MIT" ]
7
2019-06-28T13:08:50.000Z
2022-02-09T12:37:27.000Z
import logging import sys from contextlib import contextmanager from benchmarkstt import __meta__ from benchmarkstt.cli import create_parser, args_help, args_common, before_parseargs, args_complete @contextmanager def parser_context(): try: # import done here to avoid circular references import be...
28.303571
104
0.660568
2babd8c251bb2f286037eee86de1b8204199118c
1,077
py
Python
2016/aoc2016_8a.py
ByteCommander/AdventOfCode
daf8ffd88892e997e0cc763a29eaf2122585c4f9
[ "MIT" ]
2
2017-12-03T23:56:52.000Z
2017-12-04T09:49:48.000Z
2016/aoc2016_8a.py
ByteCommander/AdventOfCode
daf8ffd88892e997e0cc763a29eaf2122585c4f9
[ "MIT" ]
null
null
null
2016/aoc2016_8a.py
ByteCommander/AdventOfCode
daf8ffd88892e997e0cc763a29eaf2122585c4f9
[ "MIT" ]
null
null
null
# Advent Of Code 2016, day 8, part 1 # http://adventofcode.com/2016/day/8 # solution by ByteCommander, 2017-12-02 data = open("inputs/aoc2016_8.txt").read() board = [[0 for x in range(50)] for y in range(6)] def rot_row(row, by): global board board[row] = board[row][-by:] + board[row][:-by] def rot_col(co...
23.413043
65
0.519963
17628ffdda30e5edb1e26fea9ec9f2ed9059bacf
2,295
py
Python
desktop/core/ext-py/Django-1.11.20/tests/gis_tests/layermap/models.py
maulikjs/hue
59ac879b55bb6fb26ecb4e85f4c70836fc21173f
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
tests/gis_tests/layermap/models.py
287977288/test
142e3626ab3c676574631383ae6b5a4eced5a10e
[ "PSF-2.0", "BSD-3-Clause" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
tests/gis_tests/layermap/models.py
287977288/test
142e3626ab3c676574631383ae6b5a4eced5a10e
[ "PSF-2.0", "BSD-3-Clause" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
from django.contrib.gis.db import models from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class NamedModel(models.Model): name = models.CharField(max_length=25) class Meta: abstract = True def __str__(self): return self.name class State(NamedMo...
23.659794
95
0.642702
2a06d6172fd2526cf03417f52712acceb553093a
610
py
Python
sdk/python/tests/compiler/testdata/testpackage/mypipeline/__init__.py
hwk42/pipelines
c89ed71cf6339cdcdd957d4dca4b1f32c10db9c9
[ "Apache-2.0" ]
1
2021-08-23T19:09:56.000Z
2021-08-23T19:09:56.000Z
sdk/python/tests/compiler/testdata/testpackage/mypipeline/__init__.py
hwk42/pipelines
c89ed71cf6339cdcdd957d4dca4b1f32c10db9c9
[ "Apache-2.0" ]
2
2021-06-01T10:02:51.000Z
2021-06-07T07:19:14.000Z
sdk/python/tests/compiler/testdata/testpackage/mypipeline/__init__.py
hwk42/pipelines
c89ed71cf6339cdcdd957d4dca4b1f32c10db9c9
[ "Apache-2.0" ]
3
2022-01-10T13:40:24.000Z
2022-03-21T08:46:14.000Z
# Copyright 2018 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.882353
74
0.760656
cbac45dbdff3c4b6c1e61327bcbd8fa246b330df
1,105
py
Python
card_reader.py
JustinPead/card_authenticator
0ad8a0a05a5fccf1e392a2e1caed17ccf2ca9e59
[ "MIT" ]
null
null
null
card_reader.py
JustinPead/card_authenticator
0ad8a0a05a5fccf1e392a2e1caed17ccf2ca9e59
[ "MIT" ]
null
null
null
card_reader.py
JustinPead/card_authenticator
0ad8a0a05a5fccf1e392a2e1caed17ccf2ca9e59
[ "MIT" ]
null
null
null
import serial import logging import time class CardReader: def __init__(self,logger=logging.getLogger(__name__)): self.logger = logger #Open COM port port = "/dev/ttyACM0" #hardcoded for linux self.ser = serial.Serial(port,baudrate=9600,parity=serial.PARITY_ODD,stopbits=s...
38.103448
133
0.611765
f6b9209c0d1653269b5ff4bd13a0951895f938bc
3,541
py
Python
tests/text_test.py
mkorman9/ai_slovenian_press
8087b9379e0cd3464d5aa21f6bf1bbff19a69fdf
[ "MIT" ]
null
null
null
tests/text_test.py
mkorman9/ai_slovenian_press
8087b9379e0cd3464d5aa21f6bf1bbff19a69fdf
[ "MIT" ]
null
null
null
tests/text_test.py
mkorman9/ai_slovenian_press
8087b9379e0cd3464d5aa21f6bf1bbff19a69fdf
[ "MIT" ]
null
null
null
import slovenian_press.text import unittest import mock from assertpy import assert_that class TextTest(unittest.TestCase): def test_text_processing_chain_should_call_all_processors(self): # given processor1 = mock.MagicMock(spec=slovenian_press.text.TextProcessor) processor2 = mock.MagicM...
45.987013
101
0.521886
ffa3809694b1b0373a6010eb43d6ee390e88bdc8
9,253
py
Python
model/FPENet.py
ZAKAUDD/Segmentation-Networks
0f0c32e7af3463d381cb184a158ff60e16f7fb9a
[ "MIT" ]
743
2019-10-07T08:32:31.000Z
2022-03-31T12:06:23.000Z
model/FPENet.py
Super-Iron-Man/Efficient-Segmentation-Networks
7e006809a7345819ebc50326175df156beeca618
[ "MIT" ]
23
2019-12-02T12:35:23.000Z
2021-11-29T17:28:59.000Z
model/FPENet.py
Super-Iron-Man/Efficient-Segmentation-Networks
7e006809a7345819ebc50326175df156beeca618
[ "MIT" ]
140
2019-10-09T01:02:51.000Z
2022-03-08T01:46:14.000Z
################################################################################################### #FPENet:Feature Pyramid Encoding Network for Real-time Semantic Segmentation #Paper-Link: https://arxiv.org/pdf/1909.08599v1.pdf ###########################################################################################...
36.864542
131
0.591376
88e400539120c067caf6fcaaea7fdd8a86ef63e5
3,883
py
Python
venv/Lib/site-packages/botocore/__init__.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
venv/Lib/site-packages/botocore/__init__.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
venv/Lib/site-packages/botocore/__init__.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
# Copyright (c) 2012-2013 Mitch Garnaat http://garnaat.org/ # Copyright 2012-2014 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http...
36.980952
78
0.689673
58c88f0a21700a7ea78c511beac9b47c763ba875
1,159
py
Python
release_files/setup_yo_fluq_ds.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
16
2019-09-26T09:05:42.000Z
2021-02-04T01:39:09.000Z
release_files/setup_yo_fluq_ds.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
2
2019-10-23T19:01:23.000Z
2020-06-11T09:08:45.000Z
release_files/setup_yo_fluq_ds.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
2
2019-09-26T09:05:50.000Z
2019-10-23T18:46:11.000Z
from setuptools import setup, find_packages def readme(): with open('README.md') as file: return file.read() setup(name='yo_fluq_ds', version='VERSIONID', description='Fluent interface for data processing, advanced toolkit for data science', long_description=readme(), long_de...
29.717949
92
0.5522
58a2bea34786300a4b362fd68d15d1fcfbaf08fb
952
py
Python
MagicMirror/display/migrations/0001_initial.py
hu-tianyi/Magic-MIrror-Display
d0403118c87a02468be2fb01f8c9565c60786115
[ "MIT" ]
2
2019-04-20T17:30:48.000Z
2019-09-10T23:17:02.000Z
MagicMirror/display/migrations/0001_initial.py
hu-tianyi/Magic-MIrror-Display
d0403118c87a02468be2fb01f8c9565c60786115
[ "MIT" ]
null
null
null
MagicMirror/display/migrations/0001_initial.py
hu-tianyi/Magic-MIrror-Display
d0403118c87a02468be2fb01f8c9565c60786115
[ "MIT" ]
1
2019-04-25T09:58:17.000Z
2019-04-25T09:58:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-03-19 15:02 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Devic...
28.848485
114
0.563025
3ed7b5a06a2757418eda8cd3566262b4653670a4
4,194
py
Python
benchmark/startQiskit_Class2520.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class2520.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class2520.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=37 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
34.661157
140
0.648069
078f84aebbc3407471c5a8faa229c6474a406dda
15,272
py
Python
test/unit/common/test_daemon.py
fossabot/swift-1
63fc013b8b96484cede0e9901ad54676b8c93298
[ "Apache-2.0" ]
1
2021-09-30T14:00:22.000Z
2021-09-30T14:00:22.000Z
test/unit/common/test_daemon.py
fossabot/swift-1
63fc013b8b96484cede0e9901ad54676b8c93298
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
test/unit/common/test_daemon.py
fossabot/swift-1
63fc013b8b96484cede0e9901ad54676b8c93298
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright (c) 2010-2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
40.725333
79
0.60516
9c9ea4c874efbef43b37b72a2fb5a3c644f933e1
2,169
py
Python
idaes/tests/test_style.py
eslickj/idaes-pse
328ed07ffb0b4d98c03e972675ea32c41dd2531a
[ "RSA-MD" ]
112
2019-02-11T23:16:36.000Z
2022-03-23T20:59:57.000Z
idaes/tests/test_style.py
eslickj/idaes-pse
328ed07ffb0b4d98c03e972675ea32c41dd2531a
[ "RSA-MD" ]
621
2019-03-01T14:44:12.000Z
2022-03-31T19:49:25.000Z
idaes/tests/test_style.py
eslickj/idaes-pse
328ed07ffb0b4d98c03e972675ea32c41dd2531a
[ "RSA-MD" ]
154
2019-02-01T23:46:33.000Z
2022-03-23T15:07:10.000Z
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
32.373134
88
0.582296
5487e19c11152b59b2fb6a7cb8664973aafef48b
4,371
py
Python
chapter3/hw3-2and3-3 3/blogPostDAO.py
Baw25/MongoStuff
0a6f35505948d36b3bf1b07a1a75709babaeca71
[ "MIT" ]
null
null
null
chapter3/hw3-2and3-3 3/blogPostDAO.py
Baw25/MongoStuff
0a6f35505948d36b3bf1b07a1a75709babaeca71
[ "MIT" ]
null
null
null
chapter3/hw3-2and3-3 3/blogPostDAO.py
Baw25/MongoStuff
0a6f35505948d36b3bf1b07a1a75709babaeca71
[ "MIT" ]
null
null
null
__author__ = 'aje' # # Copyright (c) 2008 - 2013 10gen, Inc. <http://10gen.com> # # 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 r...
32.139706
195
0.565088
a41832bd44808b78900521ed2779817af59dd797
1,849
py
Python
flakeheaven/_logic/_config.py
snmishra/flakeheaven
20f94457744c47d965d4520d3b22def538b0cc49
[ "MIT" ]
1
2022-02-07T14:47:48.000Z
2022-02-07T14:47:48.000Z
flakeheaven/_logic/_config.py
snmishra/flakeheaven
20f94457744c47d965d4520d3b22def538b0cc49
[ "MIT" ]
null
null
null
flakeheaven/_logic/_config.py
snmishra/flakeheaven
20f94457744c47d965d4520d3b22def538b0cc49
[ "MIT" ]
null
null
null
# built-in from pathlib import Path from typing import Any, Dict # external import toml import urllib3 from flake8.utils import normalize_paths def read_config(*paths) -> Dict[str, Any]: config = dict() # type: Dict[str, Any] for path in paths: if isinstance(path, Path): new_config = _re...
27.191176
71
0.624121
1e695a14c67a65720abd119b9f4083c31851b58f
12,461
py
Python
Tensile/KernelWriterConversion.py
nielenventer/Tensile
3625c894aa73533453b2eac15285174afce4e2dd
[ "MIT" ]
null
null
null
Tensile/KernelWriterConversion.py
nielenventer/Tensile
3625c894aa73533453b2eac15285174afce4e2dd
[ "MIT" ]
null
null
null
Tensile/KernelWriterConversion.py
nielenventer/Tensile
3625c894aa73533453b2eac15285174afce4e2dd
[ "MIT" ]
null
null
null
################################################################################ # Copyright 2020-2021 Advanced Micro Devices, Inc. All rights reserved. # # 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 t...
40.457792
149
0.598106
e6a7cb713f89d9766ce7027a60813d441286db11
492
py
Python
lib/model/session.py
dev1x-org/python-example
ad6b100d87d1ba8d5b77f160854dd3c387ded222
[ "MIT" ]
null
null
null
lib/model/session.py
dev1x-org/python-example
ad6b100d87d1ba8d5b77f160854dd3c387ded222
[ "MIT" ]
null
null
null
lib/model/session.py
dev1x-org/python-example
ad6b100d87d1ba8d5b77f160854dd3c387ded222
[ "MIT" ]
null
null
null
#coding:utf-8 """Model of Session """ class Session(object): def __init__(self, **data): self.data = data def get_session_id(self): return self.data["session_id"] def get_user_id(self): return self.data["user_id"] def is_login(self): if self.data["s...
16.4
38
0.544715
ee07f5845d44bb36b4e5f76971dd3af855ed88fb
2,068
py
Python
hatsploit/payloads/linux/armle/shell_reverse_tcp.py
sunmughan/rat
650d4ca1a6d2405b893002150740b85008268263
[ "MIT" ]
null
null
null
hatsploit/payloads/linux/armle/shell_reverse_tcp.py
sunmughan/rat
650d4ca1a6d2405b893002150740b85008268263
[ "MIT" ]
null
null
null
hatsploit/payloads/linux/armle/shell_reverse_tcp.py
sunmughan/rat
650d4ca1a6d2405b893002150740b85008268263
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # This payload requires HatSploit: https://hatsploit.netlify.app # Current source: https://github.com/EntySec/HatSploit # from hatvenom import HatVenom from hatsploit.lib.payload import Payload from hatsploit.utils.tcp import TCPClient class HatSploitPayload(Payload, HatVenom): details ...
26.512821
71
0.5
6d90ab6f086134e13b7330cde81d66e16e693cfe
2,692
py
Python
python/plugins/processing/modeler/MultilineTextPanel.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
python/plugins/processing/modeler/MultilineTextPanel.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
python/plugins/processing/modeler/MultilineTextPanel.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
1
2021-12-25T08:40:30.000Z
2021-12-25T08:40:30.000Z
# -*- coding: utf-8 -*- """ *************************************************************************** MultilineTextPanel.py --------------------- Date : January 2013 Copyright : (C) 2013 by Victor Olaya Email : volayaf at gmail dot com *******************...
36.876712
92
0.534547
1eb587e8989345523b6869acdb18a6c60f6a3a32
4,097
py
Python
content/_code-samples/tx-serialization/base58/base58.py
fossabot/xrpl-dev-portal
c189df941fd6808c0ba8af9a28cdab418ff213a0
[ "Apache-2.0" ]
107
2019-09-18T06:42:59.000Z
2021-07-19T09:24:26.000Z
content/_code-samples/tx-serialization/base58/base58.py
fossabot/xrpl-dev-portal
c189df941fd6808c0ba8af9a28cdab418ff213a0
[ "Apache-2.0" ]
301
2019-08-15T22:14:54.000Z
2021-07-20T21:59:28.000Z
content/_code-samples/tx-serialization/base58/base58.py
fossabot/xrpl-dev-portal
c189df941fd6808c0ba8af9a28cdab418ff213a0
[ "Apache-2.0" ]
442
2019-08-16T09:56:28.000Z
2021-07-22T07:47:03.000Z
'''Base58 encoding Implementations of Base58 and Base58Check encodings that are compatible with the XRP Ledger. ''' # This code is adapted from the module by David Keijser at # <https://github.com/keis/base58>. - rome@ripple.com # His notes are preserved below: # This module is based upon base58 snippets found scatt...
23.016854
85
0.61484
b1f602025f04cb22e0612400c674791028360a9e
2,601
py
Python
profit/util/io.py
krystophny/profit
c6316c9df7cfaa7b30332fdbbf85ad27175eaf92
[ "MIT" ]
14
2019-12-03T14:11:28.000Z
2022-03-15T13:44:06.000Z
profit/util/io.py
krystophny/profit
c6316c9df7cfaa7b30332fdbbf85ad27175eaf92
[ "MIT" ]
118
2019-11-16T19:51:26.000Z
2022-03-26T13:52:00.000Z
profit/util/io.py
krystophny/profit
c6316c9df7cfaa7b30332fdbbf85ad27175eaf92
[ "MIT" ]
9
2020-06-08T07:22:56.000Z
2021-03-21T14:12:21.000Z
from os import path, chdir, listdir from .util import save, load def read_input(filename): """ Loads data from input file into a numpy array. """ data = load(filename) return data.view((float, len(data.dtype.names))).T def collect_output(config, default_interface=False): """ Collects simulation resu...
37.157143
100
0.603614
6be72afc9294a266696ea4fdf256109074de1601
66
py
Python
src/routers/api.py
vcokltfre/bald-eagles
dac5420b403176d593fe0fee1b522e038b6902db
[ "MIT" ]
1
2021-07-06T18:16:48.000Z
2021-07-06T18:16:48.000Z
src/routers/api.py
vcokltfre/bald-eagles
dac5420b403176d593fe0fee1b522e038b6902db
[ "MIT" ]
1
2021-07-06T18:27:24.000Z
2021-07-06T18:27:24.000Z
src/routers/api.py
vcokltfre/bald-eagles
dac5420b403176d593fe0fee1b522e038b6902db
[ "MIT" ]
null
null
null
from fastapi import APIRouter router = APIRouter(prefix="/api")
13.2
33
0.757576
48bd05eb6c1e80d0c8e8cadbf43c0f923012f3a6
149
py
Python
calc media.py
paulokpv/codigos-python
78d41a3e07e68139c42b6bdf756d5d3f2d593ba4
[ "MIT" ]
null
null
null
calc media.py
paulokpv/codigos-python
78d41a3e07e68139c42b6bdf756d5d3f2d593ba4
[ "MIT" ]
null
null
null
calc media.py
paulokpv/codigos-python
78d41a3e07e68139c42b6bdf756d5d3f2d593ba4
[ "MIT" ]
null
null
null
a=float(input('digite uma nota')) b=float(input('digite outra nota')) media= (a+b)/2 print('a media de {:.1f} e {:.1f} é {:.1f}'.format(a, b, media))
37.25
64
0.61745
6dcda9d4f5a7a6f98c7822367a35f08fdf1e602c
393
py
Python
CursoemVideo/challenge002.py
ElptsJunior/Python
7347b38947b439afa392764aafe0a55f808530dd
[ "MIT" ]
null
null
null
CursoemVideo/challenge002.py
ElptsJunior/Python
7347b38947b439afa392764aafe0a55f808530dd
[ "MIT" ]
null
null
null
CursoemVideo/challenge002.py
ElptsJunior/Python
7347b38947b439afa392764aafe0a55f808530dd
[ "MIT" ]
null
null
null
print('\033[32m = \033[m'*27) print(" BUILD AN PYTHON SCRIPT THAT READ'S DAY,MONTH AND YEAR AND RETURN THE VALUES ".title()) print('\033[32m = \033[m'*27) year = int(input('Please insert the year - yyyy :')) month = int(input('Now insert the month - mm :')) day = int(input('insert your day - dd : ')) print(' the dat...
39.3
95
0.633588
07f861f84d1e3fbf3c02b9712052a893fb54c602
14,905
py
Python
simple_applications/pytorch/popart_api/mnist/pytorch_popart_mnist.py
Paperspace/tutorials
8e20ffb687080c44e75dabea594d2b57acc53713
[ "MIT" ]
null
null
null
simple_applications/pytorch/popart_api/mnist/pytorch_popart_mnist.py
Paperspace/tutorials
8e20ffb687080c44e75dabea594d2b57acc53713
[ "MIT" ]
null
null
null
simple_applications/pytorch/popart_api/mnist/pytorch_popart_mnist.py
Paperspace/tutorials
8e20ffb687080c44e75dabea594d2b57acc53713
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2019 Graphcore Ltd. All rights reserved. """ A simple program that uses PyTorch to create a linear model and then trains it on the MNIST data set using the popart library. """ import argparse import numpy as np import popart import torch import torch.nn as nn import torch.nn.f...
32.261905
113
0.597451
0a545bb5308fb60221d28269183e4f8388ca4690
1,277
py
Python
CloudBackup/mail.py
520github/CloudBackup
ec4a48f1ba438dbaf45d518c5ae0f192b6e7aa96
[ "Apache-2.0" ]
9
2015-08-23T09:08:14.000Z
2019-04-29T02:08:11.000Z
CloudBackup/mail.py
chineking/CloudBackup
ec4a48f1ba438dbaf45d518c5ae0f192b6e7aa96
[ "Apache-2.0" ]
null
null
null
CloudBackup/mail.py
chineking/CloudBackup
ec4a48f1ba438dbaf45d518c5ae0f192b6e7aa96
[ "Apache-2.0" ]
5
2016-07-19T03:38:10.000Z
2017-12-06T21:13:42.000Z
#!/usr/bin/env python #coding=utf-8 ''' Copyright (c) 2012 chine <qin@qinxuye.me> 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 ...
29.022727
86
0.709475
dca8636a2ad03cb355cabd35c1e06b323891dde2
7,786
py
Python
experiments/main.py
vishalbelsare/generalised-signature-method
78c1a8bf7f5c31c61b32d18732f58da916db3855
[ "MIT" ]
29
2020-06-02T12:07:40.000Z
2022-03-15T05:30:57.000Z
experiments/main.py
vishalbelsare/generalised-signature-method
78c1a8bf7f5c31c61b32d18732f58da916db3855
[ "MIT" ]
2
2021-06-25T04:53:25.000Z
2021-08-24T12:17:47.000Z
experiments/main.py
vishalbelsare/generalised-signature-method
78c1a8bf7f5c31c61b32d18732f58da916db3855
[ "MIT" ]
5
2020-06-05T23:12:34.000Z
2021-06-08T11:15:54.000Z
""" main.py ========================= The main experiment run file. """ from definitions import * from sacred import Experiment import argparse from experiments.dicts.configurations import configs from experiments.dicts.data_dicts import datasets_dict from experiments.ingredients.prepare.checkers import check_sklearn, ...
40.134021
118
0.644875
58432b5ceaf3ee11467039285fa3a3304c59227b
28,998
py
Python
octavia/tests/unit/controller/worker/tasks/test_amphora_driver_tasks.py
BoTranVan/octavia
70665664b2130f276291cefac0ed3bc0878d6cd9
[ "Apache-2.0" ]
null
null
null
octavia/tests/unit/controller/worker/tasks/test_amphora_driver_tasks.py
BoTranVan/octavia
70665664b2130f276291cefac0ed3bc0878d6cd9
[ "Apache-2.0" ]
null
null
null
octavia/tests/unit/controller/worker/tasks/test_amphora_driver_tasks.py
BoTranVan/octavia
70665664b2130f276291cefac0ed3bc0878d6cd9
[ "Apache-2.0" ]
1
2021-12-27T13:18:38.000Z
2021-12-27T13:18:38.000Z
# Copyright 2015 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 required by applicable law...
43.41018
78
0.595489
4661c37353b3e408cd76ba0b1aed4992f3bdb864
29
py
Python
proposals/utils/__init__.py
mindruion/test
d27ef1caf8f76aead934bc83be7729f79a4be503
[ "MIT" ]
2
2017-04-22T11:07:13.000Z
2018-03-02T12:23:24.000Z
proposals/utils/__init__.py
mindruion/test
d27ef1caf8f76aead934bc83be7729f79a4be503
[ "MIT" ]
124
2020-04-30T07:06:58.000Z
2022-03-28T12:50:16.000Z
proposals/utils/__init__.py
mindruion/test
d27ef1caf8f76aead934bc83be7729f79a4be503
[ "MIT" ]
1
2021-08-04T11:44:21.000Z
2021-08-04T11:44:21.000Z
from .proposal_utils import *
29
29
0.827586
d3acd9479decd4bd493fb34223acf0ed85c47262
21,870
py
Python
RPI/yolov5/detect.py
Aditya239233/MDP
87491e1d67e547c11f4bdd5d784d120473429eae
[ "MIT" ]
4
2022-01-14T15:06:43.000Z
2022-01-18T14:45:04.000Z
RPI/yolov5/detect.py
Aditya239233/MDP
87491e1d67e547c11f4bdd5d784d120473429eae
[ "MIT" ]
null
null
null
RPI/yolov5/detect.py
Aditya239233/MDP
87491e1d67e547c11f4bdd5d784d120473429eae
[ "MIT" ]
null
null
null
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license """ Run inference on images, videos, directories, streams, etc. Usage: $ python path/to/detect.py --source path/to/img.jpg --weights yolov5s.pt --img 640 """ from algorithm.planner.main import Runner from PiTransmitter import sendData,getAndroidData from config import WEI...
36.510851
372
0.66278
12202e667b29defa5458499a2ce60ef5cd7fa2b3
906
py
Python
var/spack/repos/builtin/packages/py-pyfftw/package.py
whitfin/spack
aabd2be31a511d0e00c1017f7311a421659319d9
[ "ECL-2.0", "Apache-2.0", "MIT" ]
3
2019-06-27T13:26:50.000Z
2019-07-01T16:24:54.000Z
var/spack/repos/builtin/packages/py-pyfftw/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
75
2016-07-27T11:43:00.000Z
2020-12-08T15:56:53.000Z
var/spack/repos/builtin/packages/py-pyfftw/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2015-10-16T13:51:49.000Z
2021-10-18T13:58:03.000Z
# Copyright 2013-2019 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 PyPyfftw(PythonPackage): """A pythonic wrapper around FFTW, the FFT library, presentin...
37.75
96
0.701987
f7a202e1e106b6fa39d8ff5ff10d36cf7f79c861
6,519
py
Python
tensorflow_probability/python/math/gradient.py
mayou36/probability
f185c852146894af6dc02223020413bf26ecdd5c
[ "Apache-2.0" ]
1
2020-08-28T21:01:19.000Z
2020-08-28T21:01:19.000Z
tensorflow_probability/python/math/gradient.py
mayou36/probability
f185c852146894af6dc02223020413bf26ecdd5c
[ "Apache-2.0" ]
2
2021-08-25T16:14:51.000Z
2022-02-10T04:47:11.000Z
tensorflow_probability/python/math/gradient.py
mayou36/probability
f185c852146894af6dc02223020413bf26ecdd5c
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
37.039773
84
0.647645
4ef9d827b8a1f1e4aeb385cd5fcf9976c3392ac0
696
py
Python
tests/gamestonk_terminal/etf/test_stockanalysis_model.py
ProFireDev/GamestonkTerminal
3b73898f1ac5dcfaa0ad8e7eb81493f8e48fd3fc
[ "MIT" ]
null
null
null
tests/gamestonk_terminal/etf/test_stockanalysis_model.py
ProFireDev/GamestonkTerminal
3b73898f1ac5dcfaa0ad8e7eb81493f8e48fd3fc
[ "MIT" ]
1
2022-01-15T01:24:24.000Z
2022-01-15T01:24:24.000Z
tests/gamestonk_terminal/etf/test_stockanalysis_model.py
ProFireDev/GamestonkTerminal
3b73898f1ac5dcfaa0ad8e7eb81493f8e48fd3fc
[ "MIT" ]
1
2021-11-07T20:59:25.000Z
2021-11-07T20:59:25.000Z
# IMPORTATION STANDARD # IMPORTATION THIRDPARTY import pytest # IMPORTATION INTERNAL from gamestonk_terminal.etf import stockanalysis_model @pytest.fixture(scope="module") def vcr_config(): return { "filter_headers": [("User-Agent", None)], } @pytest.mark.vcr() def test_get_all_names_symbols(recor...
18.810811
60
0.712644
7a5bfd10503f2e8db80402d8f787cb2ef16c9855
4,037
py
Python
Lib/compiler/static/effects.py
isabella232/cinder-1
428669a9a925287f192ab361226e5a8ca3fb74d9
[ "CNRI-Python-GPL-Compatible" ]
1,886
2021-05-03T23:58:43.000Z
2022-03-31T19:15:58.000Z
Lib/compiler/static/effects.py
isabella232/cinder-1
428669a9a925287f192ab361226e5a8ca3fb74d9
[ "CNRI-Python-GPL-Compatible" ]
70
2021-05-04T23:25:35.000Z
2022-03-31T18:42:08.000Z
Lib/compiler/static/effects.py
isabella232/cinder-1
428669a9a925287f192ab361226e5a8ca3fb74d9
[ "CNRI-Python-GPL-Compatible" ]
52
2021-05-04T21:26:03.000Z
2022-03-08T18:02:56.000Z
# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) from __future__ import annotations import ast from typing import Dict, Optional, Sequence, TYPE_CHECKING if TYPE_CHECKING: from .type_binder import TypeBinder from .types import Value class NarrowingEffect: """captures type nar...
29.467153
99
0.640327
e380f4e7d4696534c488f375775b6cf74c6eaf3d
1,393
py
Python
utils/processing.py
Void-zack/Unet_for_ISBI_2012_data
ba0ee9d353bca518ecc74620baf0396ba7317252
[ "MIT" ]
2
2020-06-09T11:03:24.000Z
2021-01-28T10:58:10.000Z
utils/processing.py
ZACKLDHGZ/Unet_for_ISBI_2012_data
0298490a768283126ec9873116e8c53e5f9dc3e9
[ "MIT" ]
1
2021-02-28T08:20:40.000Z
2021-03-02T14:27:22.000Z
utils/processing.py
ZACKLDHGZ/Unet_for_ISBI_2012_data
0298490a768283126ec9873116e8c53e5f9dc3e9
[ "MIT" ]
null
null
null
import numpy as np from PIL import Image from PIL import ImageOps import cv2 as cv import configparser config = configparser.RawConfigParser() config.read('config.txt') edge = int(config.get('model settings','edge')) # prep_Raw # 3D in 4D out # 0~255 to 0~1 # 256*256 out def prep_raw(imgs): Img = [] for img i...
24.875
123
0.61809
f2472cf656b78f98f61bd3cfe99de8b8e31f7caa
13,766
py
Python
python/openapi_client/model/token_detail_data.py
Mastercard/mcapi_oauth_encryption_tutorial
0c24f778ad57a867eefd8aad44466a49f3f89826
[ "MIT" ]
26
2019-08-15T10:48:16.000Z
2022-03-03T21:57:52.000Z
python/openapi_client/model/token_detail_data.py
Mastercard/mcapi_oauth_encryption_tutorial
0c24f778ad57a867eefd8aad44466a49f3f89826
[ "MIT" ]
12
2019-12-30T08:36:00.000Z
2022-03-29T22:37:50.000Z
python/openapi_client/model/token_detail_data.py
Mastercard/mcapi_oauth_encryption_tutorial
0c24f778ad57a867eefd8aad44466a49f3f89826
[ "MIT" ]
36
2019-08-14T14:27:35.000Z
2022-02-13T18:02:36.000Z
""" MDES Digital Enablement API These APIs are designed as RPC style stateless web services where each API endpoint represents an operation to be performed. All request and response payloads are sent in the JSON (JavaScript Object Notation) data-interchange format. Each endpoint in the API specifies the HTTP ...
53.150579
2,146
0.614848
9fde32a2842242c4f8f2f907888ba415c8e7336e
1,743
py
Python
tests/aggregation/test_rover_aggregation.py
artinmajdi/crowd-kit
174e15f256a4929ed71699ffc1797ea87e0e8a99
[ "Apache-2.0" ]
null
null
null
tests/aggregation/test_rover_aggregation.py
artinmajdi/crowd-kit
174e15f256a4929ed71699ffc1797ea87e0e8a99
[ "Apache-2.0" ]
null
null
null
tests/aggregation/test_rover_aggregation.py
artinmajdi/crowd-kit
174e15f256a4929ed71699ffc1797ea87e0e8a99
[ "Apache-2.0" ]
1
2021-12-24T02:26:57.000Z
2021-12-24T02:26:57.000Z
import pandas as pd import pytest from pandas.testing import assert_series_equal from crowdkit.aggregation import ROVER from .data_rover import simple_text_result_rover # noqa: F401 @pytest.fixture def data_toy(): return pd.DataFrame( [ ['w1', 't1', 'a b c d'], ['w2', 't1', 'b z ...
29.542373
98
0.667814
9055ec34fe9e0cfd9bcf97728eec181a5e4450b9
2,861
py
Python
pdf/RoadMap.py
Stan-fld/DataProject
f545c5725ec25a12f64195a5955ad75c93aad636
[ "MIT" ]
1
2022-02-02T12:12:18.000Z
2022-02-02T12:12:18.000Z
pdf/RoadMap.py
Stan-fld/DataProject
f545c5725ec25a12f64195a5955ad75c93aad636
[ "MIT" ]
null
null
null
pdf/RoadMap.py
Stan-fld/DataProject
f545c5725ec25a12f64195a5955ad75c93aad636
[ "MIT" ]
null
null
null
import os import uuid import networkx as nx import numpy as np from matplotlib import pyplot as plt from reportlab.lib.units import inch from reportlab.pdfgen import canvas from generation.DataGeneration import DataGeneration def remove_img(fn): os.remove(f'{fn}.jpg') def matrix_to_img(matrix, summit) -> str:...
32.511364
107
0.54841
545b82fc110d763061286b48f6e49cce94737251
972
py
Python
tests/unit/cython/test_types.py
allen-munsch/python-driver
0f322052ebb38b18aa4a28121b10e59f94b84afc
[ "Apache-2.0" ]
null
null
null
tests/unit/cython/test_types.py
allen-munsch/python-driver
0f322052ebb38b18aa4a28121b10e59f94b84afc
[ "Apache-2.0" ]
null
null
null
tests/unit/cython/test_types.py
allen-munsch/python-driver
0f322052ebb38b18aa4a28121b10e59f94b84afc
[ "Apache-2.0" ]
null
null
null
# Copyright DataStax, 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, softwa...
32.4
74
0.770576
46343fa05849ad43cd6a587853b854dc88b0d53e
5,861
py
Python
faker/providers/cs_CZ/person.py
kaflesudip/faker
e27fbf6744e730a34e57a3ad747290c8c36656d4
[ "MIT" ]
1
2018-06-18T02:30:24.000Z
2018-06-18T02:30:24.000Z
faker/providers/cs_CZ/person.py
kaflesudip/faker
e27fbf6744e730a34e57a3ad747290c8c36656d4
[ "MIT" ]
null
null
null
faker/providers/cs_CZ/person.py
kaflesudip/faker
e27fbf6744e730a34e57a3ad747290c8c36656d4
[ "MIT" ]
1
2021-03-27T01:40:50.000Z
2021-03-27T01:40:50.000Z
# coding=utf-8 from __future__ import unicode_literals from ..person import Provider as PersonProvider class Provider(PersonProvider): formats = ( '{{first_name_male}} {{last_name_male}}', '{{first_name_male}} {{last_name_male}}', '{{first_name_male}} {{last_name_male}}', '{{first_...
51.412281
129
0.598533
66a6744666ce0a3ca1d70f99cf2ca68a098068d6
6,314
py
Python
tests/test_config.py
NathanNguyen345/user-sync.py
273a5c120a5dd97509a7e0ad8ccdcb8067427f99
[ "MIT" ]
null
null
null
tests/test_config.py
NathanNguyen345/user-sync.py
273a5c120a5dd97509a7e0ad8ccdcb8067427f99
[ "MIT" ]
null
null
null
tests/test_config.py
NathanNguyen345/user-sync.py
273a5c120a5dd97509a7e0ad8ccdcb8067427f99
[ "MIT" ]
null
null
null
import os import pytest import yaml import shutil from util import update_dict from user_sync.config import ConfigFileLoader, ConfigLoader, DictConfig from user_sync import app from user_sync.error import AssertionException def load_ldap_config_options(args): from user_sync.connector.directory import DirectoryCon...
38.266667
96
0.738359
fb820d0831a21933167458b3ababb9777ca9f2cf
1,314
py
Python
scripts/heading.py
benjaminogles/vim-head
be3e01b53d314b6f7e0d72a736fe40f38de2cf5f
[ "MIT" ]
3
2020-04-13T17:47:05.000Z
2020-05-11T17:23:02.000Z
scripts/heading.py
benjaminogles/vim-head
be3e01b53d314b6f7e0d72a736fe40f38de2cf5f
[ "MIT" ]
3
2020-04-13T16:51:27.000Z
2020-04-13T16:53:54.000Z
scripts/heading.py
benjaminogles/vim-head
be3e01b53d314b6f7e0d72a736fe40f38de2cf5f
[ "MIT" ]
null
null
null
import datetime def parse_date(date_str): if not len(date_str): return None date_parts = date_str.split(' ')[0].split('-') return datetime.date(int(date_parts[0]), int(date_parts[1]), int(date_parts[2])) class Heading: def __init__(self, line): self.fields = line.split('|') se...
31.285714
96
0.578387
a125ef4bcf1dc0c031009764d578d8833f29fbbb
61
py
Python
config/static/todo.py
cad106uk/market-access-api
a357c33bbec93408b193e598a5628634126e9e99
[ "MIT" ]
null
null
null
config/static/todo.py
cad106uk/market-access-api
a357c33bbec93408b193e598a5628634126e9e99
[ "MIT" ]
51
2018-05-31T12:16:31.000Z
2022-03-08T09:36:48.000Z
config/static/todo.py
cad106uk/market-access-api
a357c33bbec93408b193e598a5628634126e9e99
[ "MIT" ]
2
2019-12-24T09:47:42.000Z
2021-02-09T09:36:51.000Z
# TODO: What's this folder for? # Can this be retired?
20.333333
31
0.622951
9d9397b0776328f15fc896c82b09ea9ac17fa7bb
2,721
py
Python
fairseq/data/token_block_dataset_gap_bert.py
liufly/refreader
25d371fc08d89174cfdac1c7e29984d8cb3beff2
[ "BSD-3-Clause" ]
19
2019-07-18T21:38:38.000Z
2020-10-24T09:23:37.000Z
fairseq/data/token_block_dataset_gap_bert.py
liufly/refreader
25d371fc08d89174cfdac1c7e29984d8cb3beff2
[ "BSD-3-Clause" ]
1
2019-11-29T02:58:08.000Z
2019-12-01T06:11:16.000Z
fairseq/data/token_block_dataset_gap_bert.py
liufly/refreader
25d371fc08d89174cfdac1c7e29984d8cb3beff2
[ "BSD-3-Clause" ]
2
2019-12-18T11:37:39.000Z
2020-02-04T16:23:20.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import math import numpy as np im...
34.884615
85
0.599412
5281da28535910aacaa15a03a7c33cf71901d7c5
95
py
Python
tests/conftest.py
felixonmars/aresponses
21799c9c9cf13fa0101519bbcb936d495beeb6ee
[ "MIT" ]
80
2017-09-08T15:21:28.000Z
2021-01-08T20:41:59.000Z
tests/conftest.py
felixonmars/aresponses
21799c9c9cf13fa0101519bbcb936d495beeb6ee
[ "MIT" ]
42
2018-02-23T06:37:26.000Z
2021-01-16T18:32:51.000Z
tests/conftest.py
felixonmars/aresponses
21799c9c9cf13fa0101519bbcb936d495beeb6ee
[ "MIT" ]
18
2018-02-06T12:10:01.000Z
2021-01-16T14:37:20.000Z
from aresponses import aresponses assert aresponses pytest_plugins = "aiohttp.pytest_plugin"
15.833333
40
0.842105
aa19cf53053d3f5803fd6d892a554b782911bc1e
4,959
py
Python
sdk/python/pulumi_azure_native/containerservice/latest/list_managed_cluster_access_profile.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/containerservice/latest/list_managed_cluster_access_profile.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/containerservice/latest/list_managed_cluster_access_profile.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# 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! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
35.934783
234
0.650534
8ff33ac2add15433ad0b2be211ed2599be6c6773
2,834
py
Python
tests/test_tokenization_barthez.py
Sara-X/transformers
6773fb5dccf88a2d6d250da2cdaaa1fa78a4f5c3
[ "Apache-2.0" ]
172
2021-09-14T18:34:17.000Z
2022-03-30T06:49:53.000Z
tests/test_tokenization_barthez.py
Sara-X/transformers
6773fb5dccf88a2d6d250da2cdaaa1fa78a4f5c3
[ "Apache-2.0" ]
40
2021-09-14T02:26:12.000Z
2022-03-29T08:34:04.000Z
tests/test_tokenization_barthez.py
Sara-X/transformers
6773fb5dccf88a2d6d250da2cdaaa1fa78a4f5c3
[ "Apache-2.0" ]
33
2021-09-15T07:27:25.000Z
2022-03-25T08:30:57.000Z
# coding=utf-8 # Copyright 2020 Ecole Polytechnique and 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 re...
36.805195
109
0.732886
cad7a8ca63e2bfdb9a35e9768ce18dd97faa6513
4,100
py
Python
tests/test_parseutils.py
zzl0/litecli
cd5d4e0cf9164a147c0c59f6f559347c851db5d6
[ "BSD-3-Clause" ]
1,556
2018-08-29T16:01:53.000Z
2022-03-30T22:19:01.000Z
tests/test_parseutils.py
zzl0/litecli
cd5d4e0cf9164a147c0c59f6f559347c851db5d6
[ "BSD-3-Clause" ]
121
2018-08-24T04:01:35.000Z
2022-03-30T09:34:31.000Z
tests/test_parseutils.py
zzl0/litecli
cd5d4e0cf9164a147c0c59f6f559347c851db5d6
[ "BSD-3-Clause" ]
62
2018-12-21T12:49:11.000Z
2022-03-06T19:26:12.000Z
import pytest from litecli.packages.parseutils import ( extract_tables, query_starts_with, queries_start_with, is_destructive, ) def test_empty_string(): tables = extract_tables("") assert tables == [] def test_simple_select_single_table(): tables = extract_tables("select * from abc") ...
31.060606
85
0.675854
7c6ebc9433fb21f283cc4f4fa0a77a899a73121c
4,944
py
Python
vitrage/api_handler/apis/template.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
89
2015-09-30T21:42:17.000Z
2022-03-28T16:31:19.000Z
vitrage/api_handler/apis/template.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
4
2015-12-13T13:06:53.000Z
2016-01-03T19:51:28.000Z
vitrage/api_handler/apis/template.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
43
2015-11-04T15:54:27.000Z
2021-12-10T14:24:03.000Z
# Copyright 2016 - Nokia # # 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, sof...
35.826087
78
0.621359
bb37670832e404684ad95ab36f56f0dc7e848bc2
6,295
py
Python
masakarimonitors/tests/unit/ha/test_masakari.py
iorchard/masakari-monitors
bcf6129798a821975ab22cff56c791c81883f5da
[ "Apache-2.0" ]
null
null
null
masakarimonitors/tests/unit/ha/test_masakari.py
iorchard/masakari-monitors
bcf6129798a821975ab22cff56c791c81883f5da
[ "Apache-2.0" ]
null
null
null
masakarimonitors/tests/unit/ha/test_masakari.py
iorchard/masakari-monitors
bcf6129798a821975ab22cff56c791c81883f5da
[ "Apache-2.0" ]
null
null
null
# Copyright(c) 2017 Nippon Telegraph and Telephone Corporation # # 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...
40.612903
78
0.6834
b3a4e339913da4deeea90c44551d0d02e13cf61c
1,242
bzl
Python
packages/typescript/internal/internal_ts_repositories.bzl
kriswuollett/rules_nodejs
5798eeeda78c8acc2ebc2f24a41aca33164a972f
[ "Apache-2.0" ]
645
2017-08-22T22:18:51.000Z
2022-03-31T11:50:53.000Z
packages/typescript/internal/internal_ts_repositories.bzl
bolitt/rules_nodejs
ba9f82103c6122bb316614734489e44552d3d266
[ "Apache-2.0" ]
2,172
2017-08-26T23:52:39.000Z
2022-03-31T23:51:29.000Z
packages/typescript/internal/internal_ts_repositories.bzl
bolitt/rules_nodejs
ba9f82103c6122bb316614734489e44552d3d266
[ "Apache-2.0" ]
570
2017-08-24T19:57:44.000Z
2022-03-29T12:09:04.000Z
# Copyright 2019 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
34.5
78
0.719002
785b67a800a95eec1515b137a0fbd99bf5035cca
182
py
Python
HQSmokeTests/UserInputs/generateUserInputs.py
dimagi/dimagi-qa
60d1dc1192b070f4d47d13ec5d1adb0ce07e1373
[ "BSD-3-Clause" ]
null
null
null
HQSmokeTests/UserInputs/generateUserInputs.py
dimagi/dimagi-qa
60d1dc1192b070f4d47d13ec5d1adb0ce07e1373
[ "BSD-3-Clause" ]
4
2021-03-16T12:23:29.000Z
2022-01-13T07:17:46.000Z
HQSmokeTests/UserInputs/generateUserInputs.py
dimagi/dimagi-qa
60d1dc1192b070f4d47d13ec5d1adb0ce07e1373
[ "BSD-3-Clause" ]
2
2022-01-11T07:44:04.000Z
2022-02-11T07:20:42.000Z
import random import string chars = string.ascii_lowercase + string.digits random_string = ''.join(random.choices(chars, k=6)) def fetch_random_string(): return random_string
18.2
51
0.769231
3de6d9726e67cefd8ec8899bd604e5cfd0eb7aec
2,232
py
Python
ToyCustomerCalculator.py
WMUcaleb/Toy-Store-Customer-Calculation
9e3a2c438b984bf8311c7191c5bef642d7e862e7
[ "Apache-2.0" ]
null
null
null
ToyCustomerCalculator.py
WMUcaleb/Toy-Store-Customer-Calculation
9e3a2c438b984bf8311c7191c5bef642d7e862e7
[ "Apache-2.0" ]
null
null
null
ToyCustomerCalculator.py
WMUcaleb/Toy-Store-Customer-Calculation
9e3a2c438b984bf8311c7191c5bef642d7e862e7
[ "Apache-2.0" ]
null
null
null
from abc import ABC from abc import abstractmethod class Toy(ABC): def __init__(self, age): self.age = age @abstractmethod def get_value(self): pass def get_toy(self): return self.toy def get_price(self): return 0 class StuffedDoll(Toy): def __init__(...
22.77551
107
0.548387
424ac13a436272ce050f7ad97726d8f348ce40de
1,122
py
Python
RecoPixelVertexing/Configuration/python/RecoPixelVertexing_cff.py
Ror5ch/cmssw
012c3bbaca13d98c83fb91c7f0c9bf3ee737aee4
[ "Apache-2.0" ]
4
2020-06-27T23:27:21.000Z
2020-11-19T09:17:01.000Z
RecoPixelVertexing/Configuration/python/RecoPixelVertexing_cff.py
Ror5ch/cmssw
012c3bbaca13d98c83fb91c7f0c9bf3ee737aee4
[ "Apache-2.0" ]
524
2018-01-29T15:50:45.000Z
2021-08-04T14:03:21.000Z
RecoPixelVertexing/Configuration/python/RecoPixelVertexing_cff.py
Ror5ch/cmssw
012c3bbaca13d98c83fb91c7f0c9bf3ee737aee4
[ "Apache-2.0" ]
7
2018-02-19T11:17:13.000Z
2020-10-12T21:57:00.000Z
import FWCore.ParameterSet.Config as cms from RecoPixelVertexing.PixelTrackFitting.PixelTracks_cff import * # # for STARTUP ONLY use try and use Offline 3D PV from pixelTracks, with adaptive vertex # from RecoPixelVertexing.PixelVertexFinding.PixelVertexes_cff import * #from RecoVertex.PrimaryVertexProducer.OfflinePix...
44.88
114
0.88057
9c8ce141880ba08c70969769a99f1f491b6945f5
2,856
py
Python
tc/graphene/python_worker/avalon_worker/receive_request.py
ikegawa-koshi/avalon
09ccad29f953341078e767053646f41c8c800237
[ "Apache-2.0" ]
127
2019-10-25T08:43:26.000Z
2022-03-20T15:33:32.000Z
tc/graphene/python_worker/avalon_worker/receive_request.py
ikegawa-koshi/avalon
09ccad29f953341078e767053646f41c8c800237
[ "Apache-2.0" ]
275
2019-10-24T23:36:21.000Z
2022-01-24T20:38:07.000Z
tc/graphene/python_worker/avalon_worker/receive_request.py
ikegawa-koshi/avalon
09ccad29f953341078e767053646f41c8c800237
[ "Apache-2.0" ]
110
2019-10-30T07:09:25.000Z
2022-01-28T09:40:44.000Z
#!/usr/bin/python3 # Copyright 2020 Intel Corporation # # 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...
35.7
77
0.543768
24ce57e6e15ee7b3cfab2d7c5198e0cf66aeda83
1,763
py
Python
__init__.py
Lavton/outlays
0e1a9df3672c26d47a38e56b0fed5f2da4e468d8
[ "MIT" ]
1
2017-11-09T20:33:25.000Z
2017-11-09T20:33:25.000Z
__init__.py
Lavton/outlays
0e1a9df3672c26d47a38e56b0fed5f2da4e468d8
[ "MIT" ]
null
null
null
__init__.py
Lavton/outlays
0e1a9df3672c26d47a38e56b0fed5f2da4e468d8
[ "MIT" ]
null
null
null
import logging import time import os logging.basicConfig(format=u'[%(asctime)s] %(filename)s[LINE:%(lineno)d, FUNC:%(funcName)s]# %(levelname)-8s %(message)s', level=logging.INFO, filename=os.path.join(os.path.dirname(__file__), "main.log")) import telegram_communicator from telegram_communicator import MessageT...
32.648148
124
0.724334
f40f265575c99149c1225c549b99a1df03ea199e
4,159
py
Python
coto/clients/federation.py
jjalonsoc/coto
ef80777e6447ac5b78dee77f3132ef0b7fc51387
[ "Apache-2.0" ]
null
null
null
coto/clients/federation.py
jjalonsoc/coto
ef80777e6447ac5b78dee77f3132ef0b7fc51387
[ "Apache-2.0" ]
null
null
null
coto/clients/federation.py
jjalonsoc/coto
ef80777e6447ac5b78dee77f3132ef0b7fc51387
[ "Apache-2.0" ]
null
null
null
from furl import furl import json import requests from . import BaseClient import os FEDERATION_SIGNIN_URL = os.environ.get('FEDERATION_SIGNIN_URL', 'https://signin.aws.amazon.com/federation') FEDERATION_DESTINATION = os.environ.get('FEDERATION_DESTINATION', 'https://console.aws.amazon.com/') class Client(BaseClien...
29.288732
107
0.573455
d7da60055b9c68fb02542c4ba157f58b13a86799
859
py
Python
2021/20_2/solution_test.py
budavariam/advent_of_code
0903bcbb0df46371b6a340ca2be007dce6470c66
[ "MIT" ]
null
null
null
2021/20_2/solution_test.py
budavariam/advent_of_code
0903bcbb0df46371b6a340ca2be007dce6470c66
[ "MIT" ]
null
null
null
2021/20_2/solution_test.py
budavariam/advent_of_code
0903bcbb0df46371b6a340ca2be007dce6470c66
[ "MIT" ]
1
2022-02-11T13:14:50.000Z
2022-02-11T13:14:50.000Z
""" Advent of code 2021 day 20 / 2 """ import unittest from solution import solution class MyTest(unittest.TestCase): """Unist tests for actual day""" def test_basic(self): """ Test from the task """ self.assertEqual(solution("""..#.#..#####.#.#.#.###.##.....###.##.#..###.####..#####..#....#...
37.347826
549
0.230501
082cf55b25bdea24bad654fa35e868e41deec80e
4,357
py
Python
dnsdb/config.py
baiyongjie/open_dnsdb
b5b7a69e439080cd6d85b692825ed56cd8f5c80a
[ "Apache-2.0" ]
378
2019-01-22T02:16:28.000Z
2022-03-31T01:34:27.000Z
dnsdb/config.py
baiyongjie/open_dnsdb
b5b7a69e439080cd6d85b692825ed56cd8f5c80a
[ "Apache-2.0" ]
51
2019-01-23T03:15:16.000Z
2021-05-08T02:22:23.000Z
dnsdb/config.py
baiyongjie/open_dnsdb
b5b7a69e439080cd6d85b692825ed56cd8f5c80a
[ "Apache-2.0" ]
139
2019-01-22T02:43:39.000Z
2022-02-21T09:16:01.000Z
# -*- coding: utf-8 -*- import os import sys from datetime import timedelta from oslo_config import cfg CONF = cfg.CONF CONF.register_opts([ cfg.StrOpt('log-dir'), cfg.StrOpt('log-file'), cfg.StrOpt('debug'), cfg.StrOpt('verbose'), ], 'log') CONF.register_opts([ cfg.StrOpt('connection'), cf...
31.572464
92
0.596511
abca2fb04658b1500cf193c95b08a20b4c10effc
3,136
py
Python
canvas/canvas.py
TriumGroup/3d-cubes
6e91dbac9b9fcaca53acdb58d033210b21532b27
[ "MIT" ]
null
null
null
canvas/canvas.py
TriumGroup/3d-cubes
6e91dbac9b9fcaca53acdb58d033210b21532b27
[ "MIT" ]
null
null
null
canvas/canvas.py
TriumGroup/3d-cubes
6e91dbac9b9fcaca53acdb58d033210b21532b27
[ "MIT" ]
null
null
null
from math import trunc from canvas.canvas_point import CanvasPoint from canvas.line_drawer import LineDrawer class Canvas: BLANK_POINT = CanvasPoint(float('-inf'), (255, 255, 255, 255)) def __init__(self, renderer): self._width, self._height = renderer.size self.texture = [] self.cle...
40.727273
107
0.589286
f843963a7085dd8fc6f1370447ee6e3745d6ff5b
3,027
py
Python
kale/prepdata/tensor_reshape.py
Sheffield-TALE/pykale
a28bfc4c444c945bf6820e6b558dc5db0fcb4083
[ "MIT" ]
null
null
null
kale/prepdata/tensor_reshape.py
Sheffield-TALE/pykale
a28bfc4c444c945bf6820e6b558dc5db0fcb4083
[ "MIT" ]
null
null
null
kale/prepdata/tensor_reshape.py
Sheffield-TALE/pykale
a28bfc4c444c945bf6820e6b558dc5db0fcb4083
[ "MIT" ]
null
null
null
import torch # dimension locations in a typical image batch tensor SPATIAL_BATCH_DIMENSION = 0 SPATIAL_CHANNEL_DIMENSION = 1 SPATIAL_HEIGHT_DIMENSION = 2 SPATIAL_WIDTH_DIMENSION = 3 NUMBER_OF_DIMENSIONS = 4 def spatial_to_seq(image_tensor: torch.Tensor): """ Takes a torch tensor of shape (batch_size, channel...
40.36
105
0.702676
b70563e1fba3f19a2a17c745771dad8abea2795f
4,512
py
Python
ml/ml_recognizer.py
andresodio/lager
9a7e17113bfbc11cf4f734511a4c5e0cacbf2ff2
[ "MIT" ]
null
null
null
ml/ml_recognizer.py
andresodio/lager
9a7e17113bfbc11cf4f734511a4c5e0cacbf2ff2
[ "MIT" ]
null
null
null
ml/ml_recognizer.py
andresodio/lager
9a7e17113bfbc11cf4f734511a4c5e0cacbf2ff2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #@title Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
37.915966
146
0.749778
c0754a0c945cde0cca7a08ce8dbe42e8dcbccd9a
4,339
py
Python
pds_pipelines/available_modules.py
robotprogrammer22/PDS-Pipelines
a7f53122efadf18462696d78253106c1bc03c015
[ "Unlicense" ]
null
null
null
pds_pipelines/available_modules.py
robotprogrammer22/PDS-Pipelines
a7f53122efadf18462696d78253106c1bc03c015
[ "Unlicense" ]
null
null
null
pds_pipelines/available_modules.py
robotprogrammer22/PDS-Pipelines
a7f53122efadf18462696d78253106c1bc03c015
[ "Unlicense" ]
null
null
null
import warnings from os import rename available_modules = {} try: from pysis import isis available_modules['isis'] = isis except Exception as e: warnings.warn('Unable to add isis to the available modules. ' + f'Failed with the following {e}.') try: import gdal available_modules['g...
33.376923
116
0.666974
0efeaf832869a3f6e5eedf5ebdbd98b181d7343d
403
py
Python
server/utils/global_utils.py
LiteralGenie/HvLog
8bb9a68e8b6fdd447dcd2f7bc9870ebc1dfb0916
[ "MIT" ]
null
null
null
server/utils/global_utils.py
LiteralGenie/HvLog
8bb9a68e8b6fdd447dcd2f7bc9870ebc1dfb0916
[ "MIT" ]
null
null
null
server/utils/global_utils.py
LiteralGenie/HvLog
8bb9a68e8b6fdd447dcd2f7bc9870ebc1dfb0916
[ "MIT" ]
null
null
null
from os.path import dirname, sep SRC_DIR= dirname(dirname(__file__)) + sep PROJ_DIR= dirname(dirname(SRC_DIR)) + sep DATA_DIR= PROJ_DIR + "data" + sep CONFIG_DIR= PROJ_DIR + "config" + sep LOG_DIR= PROJ_DIR + "logs" + sep LOGGING_CONFIG= CONFIG_DIR + "logging.yaml" CONFIG_FILE= CONFIG_DIR + "config.yaml" # DATABASE...
26.866667
56
0.741935
0032c03c0f0d6866990980ceb22a9ac7c930bbd7
549
py
Python
sent-al/modules/forms.py
sharad461/sentiment-analysis
6ae9efbe758afbe127fe4c63d4062c656d1d99bd
[ "MIT" ]
null
null
null
sent-al/modules/forms.py
sharad461/sentiment-analysis
6ae9efbe758afbe127fe4c63d4062c656d1d99bd
[ "MIT" ]
null
null
null
sent-al/modules/forms.py
sharad461/sentiment-analysis
6ae9efbe758afbe127fe4c63d4062c656d1d99bd
[ "MIT" ]
1
2021-09-18T08:48:57.000Z
2021-09-18T08:48:57.000Z
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, TextAreaField from wtforms.validators import Length, DataRequired class KeywordSearch(FlaskForm): keyword = StringField(validators = [DataRequired(),Length(min=2, max=20)]) submit = SubmitField('Search Tweets') class ProfileSearch(FlaskFo...
36.6
77
0.783242
8013554950b9871855ce42b561ec766e31fb737c
15,318
py
Python
prody/dynamics/adaptive.py
kaynakb/ProDy
4366ad28142f51ff8a84f8a0f4ce659c0b949d55
[ "MIT" ]
210
2015-01-26T08:17:56.000Z
2022-03-30T01:40:34.000Z
prody/dynamics/adaptive.py
kaynakb/ProDy
4366ad28142f51ff8a84f8a0f4ce659c0b949d55
[ "MIT" ]
555
2015-01-05T21:51:54.000Z
2022-03-31T16:51:41.000Z
prody/dynamics/adaptive.py
kaynakb/ProDy
4366ad28142f51ff8a84f8a0f4ce659c0b949d55
[ "MIT" ]
99
2015-02-09T18:00:39.000Z
2022-03-07T12:52:51.000Z
# -*- coding: utf-8 -*- """This module defines functions for performing adaptive ANM.""" from prody.atomic import Atomic, AtomMap import time from numbers import Integral, Number import numpy as np from prody import LOGGER from prody.utilities import getCoords, importLA from prody.measure import calcRMSD, calcDistanc...
32.800857
149
0.632524
c0794973537ec73c95c1e56c344c2b4292a0e252
1,159
py
Python
django_form_wizard_lab/subject/migrations/0001_initial.py
muhyasin89/django_framework
13979f9c6687f5c11ddbf3b44dd6e27a68410021
[ "MIT" ]
1
2020-07-06T07:21:21.000Z
2020-07-06T07:21:21.000Z
django_form_wizard_lab/subject/migrations/0001_initial.py
muhyasin89/django_framework
13979f9c6687f5c11ddbf3b44dd6e27a68410021
[ "MIT" ]
null
null
null
django_form_wizard_lab/subject/migrations/0001_initial.py
muhyasin89/django_framework
13979f9c6687f5c11ddbf3b44dd6e27a68410021
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-06-17 04:40 import autoslug.fields from django.db import migrations, models import django.utils.timezone import model_utils.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( ...
35.121212
147
0.6195
f4857e131f853cd7f04b24fe180df74493186b03
1,595
py
Python
Hackerrank Practice/Find a String.py
falconcode16/pythonprogramming
fc53a879be473ebceb1d7da061b0e8fc2a20706c
[ "MIT" ]
2
2020-04-11T14:15:10.000Z
2020-05-12T09:57:29.000Z
Hackerrank Practice/Find a String.py
falconcode16/pythonprogramming
fc53a879be473ebceb1d7da061b0e8fc2a20706c
[ "MIT" ]
null
null
null
Hackerrank Practice/Find a String.py
falconcode16/pythonprogramming
fc53a879be473ebceb1d7da061b0e8fc2a20706c
[ "MIT" ]
1
2021-10-10T02:13:42.000Z
2021-10-10T02:13:42.000Z
''' In this challenge, the user enters a string and a substring. You have to print the number of times that the substring occurs in the given string. String traversal will take place from left to right, not from right to left. NOTE: String letters are case-sensitive. Input Format The first line of input conta...
26.147541
223
0.667085
f78d0359c50049baa345eb4dc837612798e0c2e0
96,414
py
Python
pysnmp/GSM7224-SWITCHING-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/GSM7224-SWITCHING-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/GSM7224-SWITCHING-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module GSM7224-SWITCHING-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/GSM7224-SWITCHING-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:06:38 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
148.101382
13,245
0.770842
889d8e55e6004763472005ec1306025a2102db36
1,167
py
Python
aliyun-python-sdk-csb/aliyunsdkcsb/request/v20171118/UpdateOrderListRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-csb/aliyunsdkcsb/request/v20171118/UpdateOrderListRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-csb/aliyunsdkcsb/request/v20171118/UpdateOrderListRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
null
null
null
# 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 u...
36.46875
68
0.757498
06305fbb75d47542dc464bcf26eb581ead373fc8
13,050
py
Python
reviewboard/webapi/resources/review_group.py
znick/reviewboard
f32320b267efcdf2feff1661eabe57f99ef490a7
[ "MIT" ]
1
2018-08-23T09:19:02.000Z
2018-08-23T09:19:02.000Z
reviewboard/webapi/resources/review_group.py
klpyang/reviewboard
d7dabf36e5b492f18048dd7084026bf99d6933c5
[ "MIT" ]
null
null
null
reviewboard/webapi/resources/review_group.py
klpyang/reviewboard
d7dabf36e5b492f18048dd7084026bf99d6933c5
[ "MIT" ]
1
2021-11-23T15:25:44.000Z
2021-11-23T15:25:44.000Z
from __future__ import unicode_literals from django.core.exceptions import ObjectDoesNotExist from django.db.models import Q from django.utils import six from djblets.util.decorators import augment_method_from from djblets.webapi.decorators import (webapi_login_required, webapi_r...
36.657303
79
0.564138
26d8fbadcd900e7868f0b4515e4539daefc2e08f
24,943
py
Python
Bot/src/funhouse/music.py
AryamanSrii/Mecha-Karen
4a5c7318f8c458495eee72a13be5db8a0113ed28
[ "Apache-2.0" ]
181
2021-05-26T17:37:40.000Z
2022-02-26T08:36:07.000Z
Bot/src/funhouse/music.py
AryamanSrii/Mecha-Karen
4a5c7318f8c458495eee72a13be5db8a0113ed28
[ "Apache-2.0" ]
24
2021-05-14T19:47:34.000Z
2021-09-06T17:16:17.000Z
Bot/src/funhouse/music.py
AryamanSrii/Mecha-Karen
4a5c7318f8c458495eee72a13be5db8a0113ed28
[ "Apache-2.0" ]
16
2021-07-02T09:40:56.000Z
2022-01-21T10:07:08.000Z
# !/usr/bin/python """ Copyright ©️: 2020 Seniatical / _-*™#7519 License: Apache 2.0 A permissive license whose main conditions require preservation of copyright and license notices. Contributors provide an express grant of patent rights. Licensed works, modifications, and larger works may be distributed under differe...
36.789086
231
0.593313