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
c609a08a9938ec4ee47659bea14f75c2679c6673
2,800
py
Python
server/server/db/user.py
Panl/jianshi
6f1d1f1bf44e9b7bca895729d13aea0a0db92a2e
[ "Apache-2.0" ]
null
null
null
server/server/db/user.py
Panl/jianshi
6f1d1f1bf44e9b7bca895729d13aea0a0db92a2e
[ "Apache-2.0" ]
null
null
null
server/server/db/user.py
Panl/jianshi
6f1d1f1bf44e9b7bca895729d13aea0a0db92a2e
[ "Apache-2.0" ]
2
2021-03-21T09:27:19.000Z
2021-05-25T05:34:11.000Z
#!/usr/bin/python # coding: utf-8 import time import pymysql import pymysql.cursors from flask import Flask, g from server import app from server.util import safetyutils # @app.route("/user") # def user(): # return "root from User, app.route works" def _conn(cursorclass=pymysql.cursors.Cursor): return pymysql.co...
24.137931
124
0.653214
94c152884c4a8697fdff37f4808e88e416e2fef3
22,211
py
Python
backpack/core/derivatives/basederivatives.py
jabader97/backpack
089daafa0d611e13901fd7ecf8a0d708ce7a5928
[ "MIT" ]
395
2019-10-04T09:37:52.000Z
2022-03-29T18:00:56.000Z
backpack/core/derivatives/basederivatives.py
jabader97/backpack
089daafa0d611e13901fd7ecf8a0d708ce7a5928
[ "MIT" ]
78
2019-10-11T18:56:43.000Z
2022-03-23T01:49:54.000Z
backpack/core/derivatives/basederivatives.py
jabader97/backpack
089daafa0d611e13901fd7ecf8a0d708ce7a5928
[ "MIT" ]
50
2019-10-03T16:31:10.000Z
2022-03-15T19:36:14.000Z
"""Base classes for more flexible Jacobians and second-order information.""" import warnings from abc import ABC from typing import Callable, List, Tuple from torch import Tensor from torch.nn import Module from backpack.core.derivatives import shape_check class BaseDerivatives(ABC): """First- and second-order ...
35.709003
91
0.600873
3a308f19f79fb2ed9cc5dcd557ab43105ed854bb
1,041
py
Python
default_filled_in_text.py
PCSailor/python_openpyxl_dcflog
ee10a3cde550b0d76fd033912de32af38d010589
[ "MIT" ]
null
null
null
default_filled_in_text.py
PCSailor/python_openpyxl_dcflog
ee10a3cde550b0d76fd033912de32af38d010589
[ "MIT" ]
null
null
null
default_filled_in_text.py
PCSailor/python_openpyxl_dcflog
ee10a3cde550b0d76fd033912de32af38d010589
[ "MIT" ]
null
null
null
''' From Page 11 ''' # Yes or No values 9 and 696969 sheet.cell(row=row, column=col).value = 'Yes / No' sheet.cell(row=row, column=col).font = Font(size = 9, color='696969') # ✓ X values 8 and DCDCDC sheet.cell(row=row, column=col).value = '✓ X' sheet.cell(row=row, column=col).font = Fon...
41.64
89
0.618636
4b03791addf9e6148e43e61439fc88518eae5dff
3,823
py
Python
zentral/contrib/nagios/views.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
634
2015-10-30T00:55:40.000Z
2022-03-31T02:59:00.000Z
zentral/contrib/nagios/views.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
145
2015-11-06T00:17:33.000Z
2022-03-16T13:30:31.000Z
zentral/contrib/nagios/views.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
103
2015-11-07T07:08:49.000Z
2022-03-18T17:34:36.000Z
import logging import os.path from django.contrib.auth.mixins import LoginRequiredMixin from django.http import HttpResponse from django.shortcuts import get_object_or_404 from django.urls import reverse_lazy from django.views.generic import View, ListView from django.views.generic.edit import CreateView, UpdateView, D...
36.409524
113
0.702066
606846719b944176e8ad5241e354a8124654c358
28,864
py
Python
pysnmp-with-texts/CISCO-SCAS-BB-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-SCAS-BB-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-SCAS-BB-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 CISCO-SCAS-BB-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-SCAS-BB-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:11:29 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
140.8
3,485
0.797291
aece5f6d2aa689ab152a6e6f8b3b694e300232cd
1,644
py
Python
tests/schema/test_blueprint.py
KarthickNamakkalKrishnan/eloquent
0638b688d5fd0c1a46b7471dd465eeb4c2f84666
[ "MIT" ]
47
2015-03-19T02:11:36.000Z
2022-03-29T07:16:42.000Z
tests/schema/test_blueprint.py
KarthickNamakkalKrishnan/eloquent
0638b688d5fd0c1a46b7471dd465eeb4c2f84666
[ "MIT" ]
20
2015-03-16T02:56:51.000Z
2015-05-24T17:51:29.000Z
tests/schema/test_blueprint.py
sdispater/eloquent
0638b688d5fd0c1a46b7471dd465eeb4c2f84666
[ "MIT" ]
4
2018-08-29T13:42:50.000Z
2021-03-14T11:28:31.000Z
# -*- coding: utf-8 -*- from flexmock import flexmock, flexmock_teardown from eloquent.schema import Blueprint from eloquent.schema.grammars import SchemaGrammar from eloquent.connections import Connection from .. import EloquentTestCase class SchemaBuilderTestCase(EloquentTestCase): def tearDown(self): ...
35.73913
101
0.68674
82ba9f6e8b88723d509073cab21d8b85488659fa
3,621
py
Python
cscs-checks/apps/python/numpy_check.py
hpc-unibe-ch/reframe
07f97e25cf4e7319782c37dd1923f7e70a368b99
[ "BSD-3-Clause" ]
null
null
null
cscs-checks/apps/python/numpy_check.py
hpc-unibe-ch/reframe
07f97e25cf4e7319782c37dd1923f7e70a368b99
[ "BSD-3-Clause" ]
null
null
null
cscs-checks/apps/python/numpy_check.py
hpc-unibe-ch/reframe
07f97e25cf4e7319782c37dd1923f7e70a368b99
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich) # ReFrame Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause import reframe as rfm import reframe.utility.sanity as sn class NumpyBaseTest(rfm.RunOnlyRegressionTest): def __init__(s...
38.935484
76
0.499033
e02d832e64986b5d3c5d22e12f5ac0a8df1dd039
3,908
py
Python
rpkiclientweb/config.py
ties/rpki-client-web
afce9bb2e8deeaab8cb6c4ff3fd26a1cde8563d9
[ "MIT" ]
1
2021-11-23T12:43:43.000Z
2021-11-23T12:43:43.000Z
rpkiclientweb/config.py
ties/rpki-client-web
afce9bb2e8deeaab8cb6c4ff3fd26a1cde8563d9
[ "MIT" ]
18
2021-04-08T19:21:04.000Z
2022-03-11T14:41:30.000Z
rpkiclientweb/config.py
ties/rpki-client-web
afce9bb2e8deeaab8cb6c4ff3fd26a1cde8563d9
[ "MIT" ]
1
2021-04-08T18:52:04.000Z
2021-04-08T18:52:04.000Z
""" Config file support. TODO: Consider using https://pypi.org/project/voluptuous/ or https://docs.python-cerberus.org/en/stable/ """ import json import logging from dataclasses import dataclass, field from pathlib import Path from typing import Dict, List, Optional from .util import validate LOG = logging.getLogger...
31.264
101
0.603122
801b87236520aafd003a2862a0a26a9a49c372d5
19,066
py
Python
server/auvsi_suas/models/moving_obstacle_test.py
dcat52/interop
b016b2c25e468e21649bdb7475d828198b5e6958
[ "Apache-2.0" ]
null
null
null
server/auvsi_suas/models/moving_obstacle_test.py
dcat52/interop
b016b2c25e468e21649bdb7475d828198b5e6958
[ "Apache-2.0" ]
null
null
null
server/auvsi_suas/models/moving_obstacle_test.py
dcat52/interop
b016b2c25e468e21649bdb7475d828198b5e6958
[ "Apache-2.0" ]
null
null
null
"""Tests for the moving_obstacle module.""" import datetime import time from auvsi_suas.models import units from auvsi_suas.models.aerial_position import AerialPosition from auvsi_suas.models.gps_position import GpsPosition from auvsi_suas.models.moving_obstacle import MovingObstacle from auvsi_suas.models.time_period...
37.45776
84
0.568342
1fc0cf77ca3c3e4f0cf9eedfd7048e1d43daac67
2,977
py
Python
test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/_configuration.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/_configuration.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/_configuration.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.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.160714
107
0.716829
f246f083d94fc7c56e9c71e917651907f008a1cb
3,092
py
Python
examples/06-distributed-post/02-distributed_workflows_on_remote.py
jfthuong/pydpf-core
bf2895ebc546e0004f759289bfc9a23196559ac3
[ "MIT" ]
null
null
null
examples/06-distributed-post/02-distributed_workflows_on_remote.py
jfthuong/pydpf-core
bf2895ebc546e0004f759289bfc9a23196559ac3
[ "MIT" ]
null
null
null
examples/06-distributed-post/02-distributed_workflows_on_remote.py
jfthuong/pydpf-core
bf2895ebc546e0004f759289bfc9a23196559ac3
[ "MIT" ]
null
null
null
""" .. _ref_distributed_workflows_on_remote: Connect workflows on different processes implicitly ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This example shows how distributed files can be read and post processed on distributed processes. After remote post processing, results a merged on th...
42.944444
99
0.60414
6ab114307664b3c5f0c84619553abc6e07111401
4,265
py
Python
homeassistant/components/plex/server.py
bendavid/home-assistant
d96cd4c4ea1999f87db5b660ec225ad26cb3d471
[ "Apache-2.0" ]
3
2019-10-15T16:55:31.000Z
2020-02-18T21:10:31.000Z
homeassistant/components/plex/server.py
bendavid/home-assistant
d96cd4c4ea1999f87db5b660ec225ad26cb3d471
[ "Apache-2.0" ]
3
2021-03-19T04:20:52.000Z
2021-09-08T01:22:32.000Z
homeassistant/components/plex/server.py
bendavid/home-assistant
d96cd4c4ea1999f87db5b660ec225ad26cb3d471
[ "Apache-2.0" ]
4
2019-10-15T21:03:53.000Z
2020-05-27T19:53:20.000Z
"""Shared class to maintain Plex server instances.""" import plexapi.myplex import plexapi.playqueue import plexapi.server from requests import Session from homeassistant.components.media_player import DOMAIN as MP_DOMAIN from homeassistant.const import CONF_TOKEN, CONF_URL, CONF_VERIFY_SSL from .const import ( C...
33.849206
85
0.669402
bb62a89284b11d3b790e0cc8c9f335ffc2c4a851
843
py
Python
daskms/tests/test_expression.py
ratt-ru/dask-ms
becd3572f86a0ad78b55540f25fce6e129976a29
[ "BSD-3-Clause" ]
7
2019-08-23T03:44:53.000Z
2021-05-06T00:51:18.000Z
daskms/tests/test_expression.py
ska-sa/dask-ms
ce33e7aad36eeb7c2c79093622b9776186856304
[ "BSD-3-Clause" ]
76
2019-08-20T14:34:05.000Z
2022-02-10T13:21:29.000Z
daskms/tests/test_expression.py
ratt-ru/dask-ms
becd3572f86a0ad78b55540f25fce6e129976a29
[ "BSD-3-Clause" ]
4
2019-10-15T13:35:19.000Z
2021-03-23T14:52:23.000Z
from daskms import xds_from_ms from daskms.expressions import data_column_expr from numpy.testing import assert_array_equal def test_expressions(ms): datasets = xds_from_ms(ms) for i, ds in enumerate(datasets): dims = ds.DATA.dims datasets[i] = ds.assign(DIR1_DATA=(dims, ds.DATA.data), ...
29.068966
63
0.601423
c85fcef7dc41ead4a4e26091083021ee8b118fc0
6,948
py
Python
tests/components/mqtt/test_device_tracker.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
tests/components/mqtt/test_device_tracker.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/mqtt/test_device_tracker.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""The tests for the MQTT device tracker platform.""" from unittest.mock import patch import pytest from homeassistant.components.device_tracker.const import DOMAIN, SOURCE_TYPE_BLUETOOTH from homeassistant.const import CONF_PLATFORM, STATE_HOME, STATE_NOT_HOME from homeassistant.setup import async_setup_component f...
31.87156
105
0.664508
f0f4b8adf244e09b4186e4ecb62fe81a5d833c3a
3,583
py
Python
solution/retrieval/elastic_engine/api.py
taeukkkim/temp
91c90fe5da4678424d8aacacbf15773dc624021d
[ "MIT" ]
5
2021-11-10T09:44:42.000Z
2022-03-20T06:14:42.000Z
solution/retrieval/elastic_engine/api.py
taeukkkim/temp
91c90fe5da4678424d8aacacbf15773dc624021d
[ "MIT" ]
null
null
null
solution/retrieval/elastic_engine/api.py
taeukkkim/temp
91c90fe5da4678424d8aacacbf15773dc624021d
[ "MIT" ]
7
2021-11-10T23:54:03.000Z
2022-01-03T02:55:50.000Z
from typing import Any, Dict from datasets import Dataset from elasticsearch import Elasticsearch, helpers from solution.args import DataArguments from .base import ElasticSearchBase class ESRetrieval(ElasticSearchBase): def __init__(self, args: DataArguments): es = Elasticsearch(args.es_host_address, ...
38.526882
109
0.595032
3e062a5eab3c67985f59c269eba1c07901768131
2,397
py
Python
synapse/federation/replication.py
mweinelt/synapse
42a9ea37e4c6ff9d91b530c40d366446b9fc2234
[ "Apache-2.0" ]
null
null
null
synapse/federation/replication.py
mweinelt/synapse
42a9ea37e4c6ff9d91b530c40d366446b9fc2234
[ "Apache-2.0" ]
null
null
null
synapse/federation/replication.py
mweinelt/synapse
42a9ea37e4c6ff9d91b530c40d366446b9fc2234
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014-2016 OpenMarket Ltd # # 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...
31.12987
78
0.717146
cb141103d4a454664bac8e8b370d8a5816046867
4,269
py
Python
meta_dataset/data/providers.py
zhoulinjun1994/meta-dataset
ff0eb7d242da85ff911a5ba6ab8ada30f2fa2582
[ "Apache-2.0" ]
null
null
null
meta_dataset/data/providers.py
zhoulinjun1994/meta-dataset
ff0eb7d242da85ff911a5ba6ab8ada30f2fa2582
[ "Apache-2.0" ]
null
null
null
meta_dataset/data/providers.py
zhoulinjun1994/meta-dataset
ff0eb7d242da85ff911a5ba6ab8ada30f2fa2582
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Meta-Dataset 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 ...
31.389706
80
0.720075
f09b190c089f2a528104eb0659164ef85492a533
1,011
py
Python
tests/test_datasets_sba_city_county.py
squatter1/skills-ml
0c856328b73740aa343ccdbe6c7ca8fcfb797b69
[ "MIT" ]
null
null
null
tests/test_datasets_sba_city_county.py
squatter1/skills-ml
0c856328b73740aa343ccdbe6c7ca8fcfb797b69
[ "MIT" ]
null
null
null
tests/test_datasets_sba_city_county.py
squatter1/skills-ml
0c856328b73740aa343ccdbe6c7ca8fcfb797b69
[ "MIT" ]
null
null
null
import httpretty import json from mock import patch from datasets.sba_city_county import county_lookup, URL COUNTY_RESPONSE = json.dumps([ { "county_name": "St. Clair", "description": None, "feat_class": "Populated Place", "feature_id": "4609", "fips_class": "C1", "...
25.923077
63
0.602374
1204b27c8bad1e136c9e9f39b147dfb7dd80ba91
2,720
py
Python
convert_to_tflite.py
idchlife/tf2-mobile-pose-estimation
fe1ba81da2112a7a79cfeb9e84c1fa3399509add
[ "Apache-2.0" ]
null
null
null
convert_to_tflite.py
idchlife/tf2-mobile-pose-estimation
fe1ba81da2112a7a79cfeb9e84c1fa3399509add
[ "Apache-2.0" ]
null
null
null
convert_to_tflite.py
idchlife/tf2-mobile-pose-estimation
fe1ba81da2112a7a79cfeb9e84c1fa3399509add
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Doyoung Gwak (tucan.dev@gmail.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 required by applicable law or ...
31.627907
83
0.678309
323c553bd7fc14ff015cbee1d239aa4fa4b11d71
2,080
py
Python
frsclient/service/v2/api_collection_v2.py
xunmeibuyue/IntelligentPeephole
c3bebf8792f019c859539607846971f33fee7cc2
[ "Apache-2.0" ]
null
null
null
frsclient/service/v2/api_collection_v2.py
xunmeibuyue/IntelligentPeephole
c3bebf8792f019c859539607846971f33fee7cc2
[ "Apache-2.0" ]
null
null
null
frsclient/service/v2/api_collection_v2.py
xunmeibuyue/IntelligentPeephole
c3bebf8792f019c859539607846971f33fee7cc2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from frsclient.service.v2.compare_service import CompareServiceV2 from frsclient.service.v2.detect_service import DetectServiceV2 from frsclient.service.v2.face_service import FaceServiceV2 from frsclient.service.v2.face_set_service import FaceSetServiceV2 from frsclient.service.v2.live_d...
35.862069
77
0.687981
0dfaa417107c9ad282edb141fb90f6dea690fbe7
577
py
Python
tests/test_pyfiles.py
frodrigo/pyfiles
caae9bedc4e04458eba8b7da8210ba573206ccb2
[ "MIT" ]
null
null
null
tests/test_pyfiles.py
frodrigo/pyfiles
caae9bedc4e04458eba8b7da8210ba573206ccb2
[ "MIT" ]
null
null
null
tests/test_pyfiles.py
frodrigo/pyfiles
caae9bedc4e04458eba8b7da8210ba573206ccb2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `pyfiles` package.""" import pytest from pyfiles import pyfiles @pytest.fixture def response(): """Sample pytest fixture. See more at: http://doc.pytest.org/en/latest/fixture.html """ # import requests # return requests.get('https://g...
22.192308
78
0.694974
dd17e5041c74f75c67d919f208a9ad63250777e5
698
py
Python
Model/SqlAlchemy/Company/GrowingIO.py
825477418/XX
bf46e34749394002eec0fdc65e34c339ce022cab
[ "MIT" ]
null
null
null
Model/SqlAlchemy/Company/GrowingIO.py
825477418/XX
bf46e34749394002eec0fdc65e34c339ce022cab
[ "MIT" ]
1
2020-06-03T13:54:29.000Z
2020-06-03T13:54:29.000Z
Model/SqlAlchemy/Company/GrowingIO.py
825477418/XX
bf46e34749394002eec0fdc65e34c339ce022cab
[ "MIT" ]
null
null
null
# coding: utf-8 from XX.Model.SqlAlchemy.BaseModel import * from sqlalchemy import Column, String from sqlalchemy.dialects.mysql import INTEGER from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() metadata = Base.metadata class Growing(Base, BaseModel): __tablename__ = 'growing' ...
25.851852
55
0.683381
385b0616f0bae6b14842fee96c7d44e841c502e4
3,396
py
Python
data/preprocess_original_balanced_except_eval_random_drop_v2.py
Nstats/pytorch_senti_analysis_ch
bb01cc508c37638670b26259a6ee35c4e857f2b6
[ "Apache-2.0" ]
1
2019-09-29T02:26:14.000Z
2019-09-29T02:26:14.000Z
data/preprocess_original_balanced_except_eval_random_drop_v2.py
Nstats/pytorch_senti_analysis_ch
bb01cc508c37638670b26259a6ee35c4e857f2b6
[ "Apache-2.0" ]
1
2021-06-02T00:24:55.000Z
2021-06-02T00:24:55.000Z
data/preprocess_original_balanced_except_eval_random_drop_v2.py
Nstats/pytorch_senti_analysis_ch
bb01cc508c37638670b26259a6ee35c4e857f2b6
[ "Apache-2.0" ]
null
null
null
import pandas as pd import os import numpy as np import random k = 3 def balance_data(df): ''' :param df: a dataframe(['id', 'titla','content', 'label']) with unbalanced data :return: df_out: a dataframe(['id', 'titla','content', 'label']) with balanced data ''' df_0 = df[df['label'...
37.733333
86
0.641343
bd1d2e5a79b2c822e600e740fc4216cf8c37a42f
13,517
py
Python
_posts/00CodeNote/0.DS/questions/8.0ProgrammingExercises.py
ocholuo/jekyll-theme-chirpy
55d0748ad9ea08750ae40e3ee0fa1c811063bfa4
[ "MIT" ]
2
2020-09-26T03:32:02.000Z
2020-10-09T06:01:48.000Z
_posts/00CodeNote/0.DS/questions/8.0ProgrammingExercises.py
ocholuo/jekyll-theme-chirpy
55d0748ad9ea08750ae40e3ee0fa1c811063bfa4
[ "MIT" ]
null
null
null
_posts/00CodeNote/0.DS/questions/8.0ProgrammingExercises.py
ocholuo/jekyll-theme-chirpy
55d0748ad9ea08750ae40e3ee0fa1c811063bfa4
[ "MIT" ]
null
null
null
# DsLearn # 8.26. Programming Exercises # https://runestone.academy/runestone/books/published/pythonds/Graphs/Exercises.html class Vertex: def __init__(self, key) -> None: self.id = key self.connectedTo = {} self.color = 'white' self.distance = 0 self.pred = None ...
29.904867
125
0.531331
847085a4d2899f92c85e606bf771352ac117620b
372
py
Python
tests/app1/management/commands/dummy.py
tkhyn/django-mcmo
cef44217ef0dcb16ef9ffb0f6492a0be050d7668
[ "MIT" ]
null
null
null
tests/app1/management/commands/dummy.py
tkhyn/django-mcmo
cef44217ef0dcb16ef9ffb0f6492a0be050d7668
[ "MIT" ]
null
null
null
tests/app1/management/commands/dummy.py
tkhyn/django-mcmo
cef44217ef0dcb16ef9ffb0f6492a0be050d7668
[ "MIT" ]
null
null
null
from optparse import make_option from tests.app0.management.commands.dummy import Command as Command0 class Command(Command0): option_list = (make_option('--dummy-one', action='store_true', help="App1 dummy command option"),) def handle_noargs(self, **options): ...
28.615385
69
0.653226
0d9a5b443618ba31614269bd6001e88c0a02ddf9
52,597
py
Python
alloy.py
DensoITLab/ispc
d4a8afd6e8fe04969a26f69bca7e0c4d6f3ecd99
[ "BSD-3-Clause" ]
1
2017-02-18T12:59:45.000Z
2017-02-18T12:59:45.000Z
alloy.py
DensoITLab/ispc
d4a8afd6e8fe04969a26f69bca7e0c4d6f3ecd99
[ "BSD-3-Clause" ]
null
null
null
alloy.py
DensoITLab/ispc
d4a8afd6e8fe04969a26f69bca7e0c4d6f3ecd99
[ "BSD-3-Clause" ]
1
2019-10-02T02:38:58.000Z
2019-10-02T02:38:58.000Z
#!/usr/bin/python # # Copyright (c) 2013-2016, Intel Corporation # 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 # ...
48.79128
183
0.582638
815ab0e2b8a2df5d507e3c7aed8b839ff90a5369
1,350
py
Python
app/core/tests/test_admin.py
erobc88/recipe-app-api
595a3dd5f023d0ad29f5f1e4d5adad1cd6d3618e
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
erobc88/recipe-app-api
595a3dd5f023d0ad29f5f1e4d5adad1cd6d3618e
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
erobc88/recipe-app-api
595a3dd5f023d0ad29f5f1e4d5adad1cd6d3618e
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from django.urls import reverse class AdminSiteTests(TestCase): def setUp(self): self.client = Client() self.admin_user = get_user_model().objects.create_superuser( email='admin@qrlocus.com', ...
31.395349
68
0.637037
a7ba541714eda1fd2ac30bd62ad6234e9a4f6373
1,027
py
Python
shawk/Message.py
hawkins/Shawk
c5be1165d8f6c0471544d06f7da07156df1dcc10
[ "MIT" ]
13
2016-05-05T11:16:31.000Z
2021-02-25T11:23:14.000Z
shawk/Message.py
hawkins/Shawk
c5be1165d8f6c0471544d06f7da07156df1dcc10
[ "MIT" ]
18
2016-05-05T20:23:51.000Z
2020-12-25T16:34:05.000Z
shawk/Message.py
hawkins/Shawk
c5be1165d8f6c0471544d06f7da07156df1dcc10
[ "MIT" ]
5
2017-07-25T23:50:43.000Z
2021-12-04T11:05:13.000Z
""" shawk.Message ------------- Define the Message representation in Shawk. """ class Message(object): """Define the structure for messages.""" def __init__(self, text, sender, date=None): """Initialize a Message.""" self.text = str(text).strip() self.sender = sender self.dat...
27.756757
96
0.582278
c0a17ee1377f938454f5acedd448736b70de37ee
154
py
Python
follows/admin.py
mohamed17717/Like-Reddit-Backend-Clone
d60d7a4625ee0f7354a21e53c26c7c52746d735f
[ "MIT" ]
1
2022-01-10T12:00:59.000Z
2022-01-10T12:00:59.000Z
follows/admin.py
mohamed17717/Like-Reddit-Backend-Clone
d60d7a4625ee0f7354a21e53c26c7c52746d735f
[ "MIT" ]
null
null
null
follows/admin.py
mohamed17717/Like-Reddit-Backend-Clone
d60d7a4625ee0f7354a21e53c26c7c52746d735f
[ "MIT" ]
null
null
null
from django.contrib import admin from follows.models import UserFollow, ThreadFollow admin.site.register(UserFollow) admin.site.register(ThreadFollow)
19.25
51
0.837662
bd3d61f8e96cfddade931c28bec50069dddd5389
3,567
py
Python
watson/config.py
efabens/Watson
5bcbef81ff1bbc32e8810899f8fb2af0bc62fc4b
[ "MIT" ]
2,148
2015-03-17T18:16:07.000Z
2022-03-31T21:20:54.000Z
watson/config.py
efabens/Watson
5bcbef81ff1bbc32e8810899f8fb2af0bc62fc4b
[ "MIT" ]
402
2015-03-18T22:24:42.000Z
2022-03-28T14:55:40.000Z
watson/config.py
efabens/Watson
5bcbef81ff1bbc32e8810899f8fb2af0bc62fc4b
[ "MIT" ]
281
2015-09-17T14:07:43.000Z
2022-03-25T02:20:20.000Z
"""A convenience and compatibility wrapper for RawConfigParser.""" import shlex from configparser import RawConfigParser __all__ = ('ConfigParser',) class ConfigParser(RawConfigParser): """A simple wrapper for RawConfigParser to make options access easier.""" def get(self, section, option, default=None, **...
33.027778
79
0.622091
2c1f28e448f75b1e2594a333a691d9d78605c9d5
117
py
Python
python-modules/twisted/twisted/internet/test/__init__.py
stormtheh4ck3r/python-for-android
b9ea9161392f60566b81482b1e25cd77004d5c45
[ "Apache-2.0" ]
267
2015-03-22T15:23:48.000Z
2022-03-05T21:57:34.000Z
python-modules/twisted/twisted/internet/test/__init__.py
stormtheh4ck3r/python-for-android
b9ea9161392f60566b81482b1e25cd77004d5c45
[ "Apache-2.0" ]
133
2015-03-21T15:13:43.000Z
2021-12-11T23:37:58.000Z
python-modules/twisted/twisted/internet/test/__init__.py
stormtheh4ck3r/python-for-android
b9ea9161392f60566b81482b1e25cd77004d5c45
[ "Apache-2.0" ]
119
2015-04-28T16:07:10.000Z
2022-03-18T03:49:48.000Z
# Copyright (c) 2008 Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.internet}. """
16.714286
49
0.709402
4be366b3d5578126cc54f2384cff8df870cbb5a0
2,454
py
Python
script/hassfest/services.py
zachware/home-assistant
c70b8afbd315156fa3331a699a7d4ca8304056b8
[ "Apache-2.0" ]
null
null
null
script/hassfest/services.py
zachware/home-assistant
c70b8afbd315156fa3331a699a7d4ca8304056b8
[ "Apache-2.0" ]
null
null
null
script/hassfest/services.py
zachware/home-assistant
c70b8afbd315156fa3331a699a7d4ca8304056b8
[ "Apache-2.0" ]
null
null
null
"""Validate dependencies.""" import pathlib from typing import Dict import re import voluptuous as vol from voluptuous.humanize import humanize_error from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers import config_validation as cv from homeassistant.util.yaml import load_yaml from .m...
26.106383
78
0.662999
0b9d29451f5c144a1cb786b852964c8a96897420
111,508
py
Python
ibis/expr/api.py
goodwanghan/ibis
cec78c28776c0eca5d7cca4f73db51ce22041d31
[ "Apache-2.0" ]
null
null
null
ibis/expr/api.py
goodwanghan/ibis
cec78c28776c0eca5d7cca4f73db51ce22041d31
[ "Apache-2.0" ]
null
null
null
ibis/expr/api.py
goodwanghan/ibis
cec78c28776c0eca5d7cca4f73db51ce22041d31
[ "Apache-2.0" ]
null
null
null
"""Ibis expression API definitions.""" from __future__ import annotations import collections import datetime import functools import numbers import operator from typing import Any, Iterable import dateutil.parser import pandas as pd import toolz import ibis.common.exceptions as com import ibis.expr.analysis as _L i...
23.629583
166
0.60801
a10b99d45b416dca8913197cff475dcaa8b8b098
4,823
py
Python
lib/spack/spack/test/cmd/load.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
lib/spack/spack/test/cmd/load.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
lib/spack/spack/test/cmd/load.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-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) import os from spack.main import SpackCommand import spack.spec import spack.user_environment as uenv load = SpackCommand(...
38.277778
79
0.706199
7657f3a5f7164bc2cf86aae708535413926a34c5
263,858
py
Python
ac2git.py
orao-navico/ac2git
c11e9793eec948476c59d1d1a1d4a9d49e7788ac
[ "Unlicense" ]
23
2016-07-18T18:23:27.000Z
2021-04-25T16:29:15.000Z
ac2git.py
orao-navico/ac2git
c11e9793eec948476c59d1d1a1d4a9d49e7788ac
[ "Unlicense" ]
51
2016-08-06T14:52:13.000Z
2022-03-20T10:16:45.000Z
ac2git.py
orao-navico/ac2git
c11e9793eec948476c59d1d1a1d4a9d49e7788ac
[ "Unlicense" ]
12
2016-08-29T15:26:21.000Z
2022-01-28T13:09:21.000Z
#!/usr/bin/python3 # ################################################################################################ # # AccuRev to Git conversion script # # Author: Lazar Sumar ...
64.324232
628
0.621941
e3e80de428a0ca14173e5a632a53d6bc81d00f8c
4,730
py
Python
cinder/tests/unit/objects/test_backup.py
tlakshman26/cinder-https-changes
c688a0af521e8679ac8f68d3dd035fe998e736d3
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/objects/test_backup.py
tlakshman26/cinder-https-changes
c688a0af521e8679ac8f68d3dd035fe998e736d3
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/objects/test_backup.py
tlakshman26/cinder-https-changes
c688a0af521e8679ac8f68d3dd035fe998e736d3
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 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 ...
39.747899
78
0.67019
e627b7b5ca87b963d9b8f0f4cff7a262ecc6d016
9,912
py
Python
test_asteroids/test_gamepiece.py
SvenMayer/asteroids
fa42b00d7e06dbd7321cf6e4dc689393a682ffca
[ "MIT" ]
null
null
null
test_asteroids/test_gamepiece.py
SvenMayer/asteroids
fa42b00d7e06dbd7321cf6e4dc689393a682ffca
[ "MIT" ]
null
null
null
test_asteroids/test_gamepiece.py
SvenMayer/asteroids
fa42b00d7e06dbd7321cf6e4dc689393a682ffca
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Sven Mayer """ import unittest from asteroids import GamePiece import numpy as np class TestPhysicsEngine(unittest.TestCase): def test_initialize_empty(self): gamePiece = GamePiece.PhysicsEngine() self.assertIsInstance(gamePiece, GamePi...
40.457143
97
0.547014
7cf24a061d5c88964588138b47e8fbae38a16b1e
682
py
Python
btlejack/version.py
mh-/btlejack
8cac2a2b2cf770b97400ee0d094d0c01a192008b
[ "MIT" ]
1
2020-02-12T09:07:34.000Z
2020-02-12T09:07:34.000Z
btlejack/version.py
nviennot/btlejack
d05abdc27558e439170e078dbc81fba966255489
[ "MIT" ]
null
null
null
btlejack/version.py
nviennot/btlejack
d05abdc27558e439170e078dbc81fba966255489
[ "MIT" ]
1
2019-08-26T04:38:06.000Z
2019-08-26T04:38:06.000Z
""" Btlejack single version module This module contains the current version of both client and firmware software (VERSION), but also the release number (RELEASE). Please note that both client and firmware version shall match or Btlejack will issue a warning during execution. When implementing new features, or modifyi...
37.888889
80
0.796188
5e03f6e9c979e613ed59de9d7df0af2a4446684d
9,988
py
Python
3rdParty/patool/tests/archives/__init__.py
UnicornParson/ConsoleUtils
95f445fd4006791331541e1057035c86cd8eeddb
[ "Apache-2.0" ]
null
null
null
3rdParty/patool/tests/archives/__init__.py
UnicornParson/ConsoleUtils
95f445fd4006791331541e1057035c86cd8eeddb
[ "Apache-2.0" ]
null
null
null
3rdParty/patool/tests/archives/__init__.py
UnicornParson/ConsoleUtils
95f445fd4006791331541e1057035c86cd8eeddb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2010-2015 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. #...
41.272727
120
0.621446
1a064cb1560dcaba4b3d1e5b59ac0b81d28bd50a
4,763
py
Python
python/IECoreMaya/SplineParameterUI.py
gcodebackups/cortex-vfx
72fa6c6eb3327fce4faf01361c8fcc2e1e892672
[ "BSD-3-Clause" ]
5
2016-07-26T06:09:28.000Z
2022-03-07T03:58:51.000Z
python/IECoreMaya/SplineParameterUI.py
turbosun/cortex
4bdc01a692652cd562f3bfa85f3dae99d07c0b15
[ "BSD-3-Clause" ]
null
null
null
python/IECoreMaya/SplineParameterUI.py
turbosun/cortex
4bdc01a692652cd562f3bfa85f3dae99d07c0b15
[ "BSD-3-Clause" ]
3
2015-03-25T18:45:24.000Z
2020-02-15T15:37:18.000Z
########################################################################## # # Copyright (c) 2008, Image Engine Design 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: # # * Redistribu...
36.083333
167
0.685912
2af05d763b814d5f2e66adb7c818663081682280
2,192
py
Python
public/js/detect-wheel.py
BalasaravananB/Visualizer
16451c1be9edcaa5be5303b2b8834ff26012b456
[ "MIT" ]
null
null
null
public/js/detect-wheel.py
BalasaravananB/Visualizer
16451c1be9edcaa5be5303b2b8834ff26012b456
[ "MIT" ]
null
null
null
public/js/detect-wheel.py
BalasaravananB/Visualizer
16451c1be9edcaa5be5303b2b8834ff26012b456
[ "MIT" ]
null
null
null
import cv2 import numpy as np import codecs, json import sys from detecto import core, utils, visualize # import argparse # # construct the argument parser and parse the arguments # ap = argparse.ArgumentParser() # ap.add_argument("-i", "--image", required = True, help = "Path to the image") # args = vars(ap.pa...
25.195402
94
0.606752
5a14a036467caa799f81567ddfea14a3584fecdb
3,883
py
Python
spectrochempy/core/writers/writecsv.py
spectrochempy/spectrochempy
829b290f465e630078785e303dbab197cd78b815
[ "Apache-2.0", "CECILL-B", "BSD-3-Clause" ]
44
2020-05-14T01:56:40.000Z
2022-03-23T11:16:30.000Z
spectrochempy/core/writers/writecsv.py
spectrochempy/spectrochempy
829b290f465e630078785e303dbab197cd78b815
[ "Apache-2.0", "CECILL-B", "BSD-3-Clause" ]
210
2020-05-22T17:33:22.000Z
2022-03-20T16:50:30.000Z
spectrochempy/core/writers/writecsv.py
spectrochempy/spectrochempy
829b290f465e630078785e303dbab197cd78b815
[ "Apache-2.0", "CECILL-B", "BSD-3-Clause" ]
9
2020-05-16T15:36:02.000Z
2022-03-23T11:16:56.000Z
# -*- coding: utf-8 -*- # ====================================================================================================================== # Copyright (©) 2015-2022 LCS - Laboratoire Catalyse et Spectrochimie, Caen, France. = # CeCILL-B FREE SOFTWARE LICENSE AGREEMENT - See ful...
34.981982
121
0.55112
cca2affe97dd2ddb6598a8f092f3cddfbc6d281b
1,933
py
Python
obfusc8/test/test_obf.py
tum-i22/indistinguishability-obfuscation
67e5b7f8eedbb65434c252611b303b210c672b5b
[ "Apache-2.0" ]
19
2015-05-22T17:41:50.000Z
2020-09-09T11:08:53.000Z
obfusc8/test/test_obf.py
tum-i22/indistinguishability-obfuscation
67e5b7f8eedbb65434c252611b303b210c672b5b
[ "Apache-2.0" ]
1
2021-03-19T16:07:00.000Z
2021-03-19T16:47:26.000Z
obfusc8/test/test_obf.py
nathanawmk/indistinguishability-obfuscation
67e5b7f8eedbb65434c252611b303b210c672b5b
[ "Apache-2.0" ]
4
2020-10-13T05:10:09.000Z
2021-04-06T07:49:06.000Z
import unittest from itertools import product from obfusc8.circuit import * from obfusc8.blocks import UniversalCircuit from obfusc8.bp import BranchingProgram from obfusc8.rbp import RandomizedBranchingProgram from obfusc8.obf import * class TestFixBP(unittest.TestCase): def setUp(self): self.inputLength = 2 o...
33.912281
130
0.712882
9a0798f4c76713a0f3e11ce4d9e7f17b32c48b52
28,012
py
Python
autotest/gcore/misc.py
FeU-aKlos/gdal
bba6781133815248c9329842d365f8812b74c33f
[ "Apache-2.0" ]
3,100
2015-01-02T10:33:40.000Z
2022-03-31T02:06:51.000Z
autotest/gcore/misc.py
FeU-aKlos/gdal
bba6781133815248c9329842d365f8812b74c33f
[ "Apache-2.0" ]
3,496
2015-01-06T16:53:30.000Z
2022-03-31T20:18:51.000Z
autotest/gcore/misc.py
FeU-aKlos/gdal
bba6781133815248c9329842d365f8812b74c33f
[ "Apache-2.0" ]
2,036
2015-01-08T20:22:12.000Z
2022-03-31T10:24:08.000Z
#!/usr/bin/env pytest # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Various test of GDAL core. # Author: Even Rouault <even dot rouault at spatialys.com> # ###################################################...
37.151194
206
0.548051
9004dbf47d4a26d57528dd103dacfb4b8b5d4449
687
py
Python
Preprocessing/data_preprocessing_template.py
mayurjainf007/Preprocesssing-Words
1c83e2f6fc1d14919fb0b45ddca6267b4d679f6b
[ "MIT" ]
null
null
null
Preprocessing/data_preprocessing_template.py
mayurjainf007/Preprocesssing-Words
1c83e2f6fc1d14919fb0b45ddca6267b4d679f6b
[ "MIT" ]
null
null
null
Preprocessing/data_preprocessing_template.py
mayurjainf007/Preprocesssing-Words
1c83e2f6fc1d14919fb0b45ddca6267b4d679f6b
[ "MIT" ]
null
null
null
# Data Preprocessing Template # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('Data.csv') X = dataset.iloc[:, :-1].values y = dataset.iloc[:, 3].values # Splitting the dataset into the Training set and Test set #from sklea...
29.869565
93
0.77147
7bca1108d23e43907d3f6e3c3d7cc2d0ea749bca
1,273
py
Python
model/review_playstore.py
alfredolp30/bot-reviews
5329b555574b76a9195c4b04f93fa7ec256c3707
[ "MIT" ]
1
2022-01-23T11:29:34.000Z
2022-01-23T11:29:34.000Z
model/review_playstore.py
alfredolp30/bot-reviews
5329b555574b76a9195c4b04f93fa7ec256c3707
[ "MIT" ]
null
null
null
model/review_playstore.py
alfredolp30/bot-reviews
5329b555574b76a9195c4b04f93fa7ec256c3707
[ "MIT" ]
null
null
null
from datetime import datetime class ReviewPlayStore: def __init__(self, id: str, appId: str, appName: str, appVersion: str, url: str, author: str, date: datetime, description: str, rating: int, iconUrl: str, device: str, deviceProductName: str, androidOsVersion: str): self.id = id self.appId ...
35.361111
219
0.584446
1d0f245283b27627a57af08cc32885cf74a00e45
2,511
py
Python
setup.py
5l1v3r1/AtomShields
e75f25393b4a7a315ec96bf9b8e654cb2200866a
[ "Apache-2.0" ]
13
2019-01-28T03:48:59.000Z
2021-02-03T12:57:11.000Z
setup.py
ElevenPaths/AtomShields
e75f25393b4a7a315ec96bf9b8e654cb2200866a
[ "Apache-2.0" ]
null
null
null
setup.py
ElevenPaths/AtomShields
e75f25393b4a7a315ec96bf9b8e654cb2200866a
[ "Apache-2.0" ]
4
2019-03-28T15:51:15.000Z
2021-02-01T00:51:51.000Z
# -*- coding: utf-8 -*- u""" Copyright 2018 ElevenPaths - Telefonica Digital España 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 b...
33.48
81
0.725209
b8329d02eac6a00bba9190a63467ebf4b09b54cd
1,136
py
Python
tests/test_util.py
cldf/cltoolkit
10c2692bd5370d042fc70494a0b948fea8e6a58d
[ "MIT" ]
2
2021-08-08T00:16:58.000Z
2021-12-31T19:55:40.000Z
tests/test_util.py
cldf/cltoolkit
10c2692bd5370d042fc70494a0b948fea8e6a58d
[ "MIT" ]
6
2021-08-02T09:33:51.000Z
2022-03-22T19:46:14.000Z
tests/test_util.py
cldf/cltoolkit
10c2692bd5370d042fc70494a0b948fea8e6a58d
[ "MIT" ]
null
null
null
from lingpy.basictypes import lists from cltoolkit.models import Form from cltoolkit.util import ( identity, jaccard, iter_syllables, valid_sounds, DictTuple, datasets_by_id, ) def test_datasets_by_id(tests_dir): assert len(datasets_by_id('wangbcd', base_dir=tests_dir)) == 1 def test_Di...
22.27451
92
0.581866
5c5f284c24559477af23902218fc4effabd8b8b2
818
py
Python
utils/logger.py
ardihikaru/learn-to-cluster
d7a5ea0946f7b402f8878bfd608bf3e0dc9a26ca
[ "MIT" ]
620
2019-04-16T01:06:59.000Z
2022-03-27T15:15:45.000Z
utils/logger.py
ardihikaru/learn-to-cluster
d7a5ea0946f7b402f8878bfd608bf3e0dc9a26ca
[ "MIT" ]
83
2019-04-29T08:55:16.000Z
2022-03-11T09:27:16.000Z
utils/logger.py
ardihikaru/learn-to-cluster
d7a5ea0946f7b402f8878bfd608bf3e0dc9a26ca
[ "MIT" ]
141
2019-04-16T08:53:02.000Z
2022-03-14T08:49:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging def create_logger(name='global_logger', log_file=None): """ use different log level for file and stream """ logger = logging.getLogger(name) formatter = logging.Formatter('[%(asctime)s] %(message)s') logger.setLevel(logging.DEBUG) ...
24.787879
62
0.662592
f82b81fe3b5b99f550cbdba8236159603661dc0b
2,477
py
Python
pytorch3d/ops/mesh_face_areas_normals.py
hangg7/pytorcg3d
f7f363eeb8efeba0927f674c83ab927ad8ce3e32
[ "BSD-3-Clause" ]
1
2020-07-13T12:40:42.000Z
2020-07-13T12:40:42.000Z
pytorch3d/ops/mesh_face_areas_normals.py
hangg7/pytorch3d
f7f363eeb8efeba0927f674c83ab927ad8ce3e32
[ "BSD-3-Clause" ]
null
null
null
pytorch3d/ops/mesh_face_areas_normals.py
hangg7/pytorch3d
f7f363eeb8efeba0927f674c83ab927ad8ce3e32
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import torch from pytorch3d import _C from torch.autograd import Function from torch.autograd.function import once_differentiable class _MeshFaceAreasNormals(Function): """ Torch autograd Function wrapper for face areas & normals C++/CUD...
38.703125
86
0.636657
51c95ea7ea66f2af5ac9a3edbdfca354e113c678
7,135
py
Python
model.py
tuan3w/cnn_vocoder
7855be5174bb61a38c4f7c7c482365d460f93a2a
[ "MIT" ]
80
2018-10-09T02:56:10.000Z
2021-07-12T10:08:27.000Z
model.py
HoltTechnologyCorporation/cnn_vocoder
7855be5174bb61a38c4f7c7c482365d460f93a2a
[ "MIT" ]
10
2018-10-09T02:57:46.000Z
2020-06-20T12:39:51.000Z
model.py
HoltTechnologyCorporation/cnn_vocoder
7855be5174bb61a38c4f7c7c482365d460f93a2a
[ "MIT" ]
16
2018-10-09T02:56:29.000Z
2021-01-03T21:50:01.000Z
import torch import torch.nn.functional as F from torch import nn class ResnetBlock(nn.Module): """Residual Block Args: in_channels (int): number of channels in input data out_channels (int): number of channels in output """ def __init__(self, in_channels, out_channels, kernel_size=3, ...
33.032407
101
0.578416
ab1cf6ca44d16c957dd36043d44ab5ec9974c986
6,421
py
Python
download.py
qmeeus/SSGAN-Tensorflow
6f359581b188b4420a57f6746b226086454d9ab9
[ "MIT" ]
2
2018-07-25T02:23:53.000Z
2018-09-11T05:31:09.000Z
download.py
qmeeus/SSGAN-Tensorflow
6f359581b188b4420a57f6746b226086454d9ab9
[ "MIT" ]
null
null
null
download.py
qmeeus/SSGAN-Tensorflow
6f359581b188b4420a57f6746b226086454d9ab9
[ "MIT" ]
1
2020-04-19T22:29:33.000Z
2020-04-19T22:29:33.000Z
from __future__ import print_function import os import tarfile import subprocess import argparse import h5py import numpy as np parser = argparse.ArgumentParser(description='Download dataset for SSGAN.') parser.add_argument('--datasets', metavar='N', type=str, nargs='+', choices=['MNIST', 'SVHN', 'CIFAR10']) def pre...
33.794737
105
0.63121
2a50ddd5bf52a1c32f1f9bffc7cb5632e3b276bc
2,441
py
Python
phylogeny/panseqtrees/phenotype.py
mwhitesi/pangamr
84f6e03a189e9dc7b11bb04db6e0b5f134cdcbf4
[ "Apache-2.0" ]
null
null
null
phylogeny/panseqtrees/phenotype.py
mwhitesi/pangamr
84f6e03a189e9dc7b11bb04db6e0b5f134cdcbf4
[ "Apache-2.0" ]
null
null
null
phylogeny/panseqtrees/phenotype.py
mwhitesi/pangamr
84f6e03a189e9dc7b11bb04db6e0b5f134cdcbf4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Functions for working with Phenotype data """ import os import sys sys.path.insert(0, os.path.abspath('..')) import argparse import logging import pandas as pd import re import pickle __author__ = "Matthew Whiteside" __copyright__ = "Copyright 2015, Public Health Agency of Canada" __lice...
25.427083
122
0.664891
925477ecb3341f0e5603abc51391d406c244c3ff
8,090
py
Python
mega_nerf/datasets/filesystem_dataset.py
ksihat/mega-nerf
a4865f31e5b95637c79f89dfdda3fa289e226bf9
[ "MIT" ]
1
2021-12-21T03:06:43.000Z
2021-12-21T03:06:43.000Z
mega_nerf/datasets/filesystem_dataset.py
cuulee/mega-nerf
b38ea40b6ca53ae4423fcfb354ac13cd794827a4
[ "MIT" ]
null
null
null
mega_nerf/datasets/filesystem_dataset.py
cuulee/mega-nerf
b38ea40b6ca53ae4423fcfb354ac13cd794827a4
[ "MIT" ]
null
null
null
import math import os import shutil from concurrent.futures import Future, ThreadPoolExecutor from itertools import cycle from pathlib import Path from typing import List, Optional, Dict, Tuple import numpy as np import torch from npy_append_array import NpyAppendArray from torch.utils.data import Dataset from mega_n...
41.701031
119
0.612608
bec356652aec26864ed724f13a942508b1c2aa07
610
py
Python
tests/test_log.py
shahzebsiddiqui/buildtest-1
6c47424b82ec1e92ce0930f99be4ba10da62515c
[ "MIT" ]
null
null
null
tests/test_log.py
shahzebsiddiqui/buildtest-1
6c47424b82ec1e92ce0930f99be4ba10da62515c
[ "MIT" ]
42
2021-04-20T11:11:06.000Z
2022-03-30T16:54:24.000Z
tests/test_log.py
shahzebsiddiqui/buildtest-1
6c47424b82ec1e92ce0930f99be4ba10da62515c
[ "MIT" ]
null
null
null
import tempfile from buildtest.log import init_logfile from buildtest.utils.file import read_file def test_BuildTestLogger(): logger = init_logfile() # ensure we have effective level of 10 (DEBUG) assert logger.getEffectiveLevel() == 10 tf = tempfile.NamedTemporaryFile() assert logger.name ==...
23.461538
50
0.704918
f7a27c26b3f6a35e21b4a64881b1ccb13f86a476
1,063
py
Python
Python_PI/Clase20.py
Alex8Navas/PythonPI
5f1eff48e8a28f364f5f0dbf25d7a4968a0025bd
[ "CC0-1.0" ]
null
null
null
Python_PI/Clase20.py
Alex8Navas/PythonPI
5f1eff48e8a28f364f5f0dbf25d7a4968a0025bd
[ "CC0-1.0" ]
null
null
null
Python_PI/Clase20.py
Alex8Navas/PythonPI
5f1eff48e8a28f364f5f0dbf25d7a4968a0025bd
[ "CC0-1.0" ]
null
null
null
# Clase 20. Curso Píldoras Informáticas. # Control de Flujo. Generadores 2. # Instrucción yield from: simplifica el código para bucles anidados. # El asterisco es un número indeterminado de elementos dados en forma de tupla. def Cities(*ciudades): for i in ciudades: yield i Ciudades = Cities("Madri...
21.26
81
0.69238
b75a4a6f53f22887fd34266246da256b0fba40db
16,818
py
Python
tests/m2m_through/tests.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/m2m_through/tests.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/m2m_through/tests.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from datetime import datetime from operator import attrgetter from django.test import TestCase from .models import ( CustomMembership, Employee, Event, Friendship, Group, Ingredient, Invitation, Membership, Person, PersonSelfRefM2M, Recipe, RecipeIngredient, Relationship, ) class M2mThroughT...
35.782979
101
0.61779
9135155b29988300006e71bbf2f02da6eb8333da
1,789
py
Python
src/ralph/operations/tests/factories.py
andrzej-jankowski/ralph
68ec18a66b8fe47ddf1c082c3ce2d82b2cd430dc
[ "Apache-2.0" ]
null
null
null
src/ralph/operations/tests/factories.py
andrzej-jankowski/ralph
68ec18a66b8fe47ddf1c082c3ce2d82b2cd430dc
[ "Apache-2.0" ]
null
null
null
src/ralph/operations/tests/factories.py
andrzej-jankowski/ralph
68ec18a66b8fe47ddf1c082c3ce2d82b2cd430dc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import factory from factory.django import DjangoModelFactory from ralph.accounts.tests.factories import UserFactory from ralph.operations.models import ( Change, Failure, Incident, Operation, OperationStatus, OperationType, Problem ) def get_operation_type(name): ...
22.935897
76
0.711571
c826338f1b570f3bd5a73608076443b707972da0
5,703
py
Python
geophoto/settings.py
amatmv/geophoto-backend
56e823e8aa152dc80e40a65a7311c5561c965ee0
[ "MIT" ]
1
2019-11-04T22:03:09.000Z
2019-11-04T22:03:09.000Z
geophoto/settings.py
amatmv/GeoPhoto_Server
56e823e8aa152dc80e40a65a7311c5561c965ee0
[ "MIT" ]
null
null
null
geophoto/settings.py
amatmv/GeoPhoto_Server
56e823e8aa152dc80e40a65a7311c5561c965ee0
[ "MIT" ]
null
null
null
""" Django settings for geophoto project. Generated by 'django-admin startproject' using Django 3.0. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # ...
27.418269
91
0.712257
d8b7ad8b51e958c3a36ff141a9426379d7588845
797
py
Python
teamspirit/profiles/migrations/0013_auto_20200914_1528.py
etienne86/oc_p13_team_spirit
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
[ "MIT" ]
null
null
null
teamspirit/profiles/migrations/0013_auto_20200914_1528.py
etienne86/oc_p13_team_spirit
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
[ "MIT" ]
null
null
null
teamspirit/profiles/migrations/0013_auto_20200914_1528.py
etienne86/oc_p13_team_spirit
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-09-14 13:28 from django.db import migrations, models import teamspirit.profiles.managers class Migration(migrations.Migration): dependencies = [ ('profiles', '0012_auto_20200909_1836'), ] operations = [ migrations.AlterField( model_name='p...
31.88
164
0.664994
b428a5455cdd21b28df2d19edc9661537fd86964
1,676
py
Python
final_round.py
priyansha147/Music-Recommendation-System
ba1ac96ddf2789b48f7102b01e35c0919b0207aa
[ "MIT" ]
null
null
null
final_round.py
priyansha147/Music-Recommendation-System
ba1ac96ddf2789b48f7102b01e35c0919b0207aa
[ "MIT" ]
null
null
null
final_round.py
priyansha147/Music-Recommendation-System
ba1ac96ddf2789b48f7102b01e35c0919b0207aa
[ "MIT" ]
null
null
null
import scipy.io as sio from math import ceil,floor from statistics import mean from numpy import square,sqrt,absolute matfile = sio.loadmat( 'changed_param_2.mat' ) old_mat = sio.loadmat( 'learned_all_param_2.mat' ) #for i in range( 15 ): #print matfile['p'][[11 ,67 ,225,336,357,444,635,679],0],old_mat['p'][[11 ,67 ,2...
39.904762
135
0.701074
f55098fbb6ebca16b705ea2a7249ebe65a3aa395
8,673
py
Python
wildfire.py
MoveInc/TanFire
f67200d38df7781fe65b1215962da8e3fffba3f0
[ "MIT" ]
1
2017-09-29T01:37:59.000Z
2017-09-29T01:37:59.000Z
wildfire.py
MoveInc/TanFire
f67200d38df7781fe65b1215962da8e3fffba3f0
[ "MIT" ]
null
null
null
wildfire.py
MoveInc/TanFire
f67200d38df7781fe65b1215962da8e3fffba3f0
[ "MIT" ]
1
2021-04-02T21:38:53.000Z
2021-04-02T21:38:53.000Z
import ConfigParser, urllib, urllib2, time, datetime, threading, os, requests import xml.etree.ElementTree as ET config = ConfigParser.ConfigParser() config.read('config.cfg') #Set debug level if config.get('config','debug') == 'yes': debug = True else: debug = False if config.get('config','advanced_debug') == 'yes'...
31.197842
176
0.665514
34808211e1f3241b4c49e8d0c0b0cefd22ab2ba6
1,016
py
Python
src/dqn_lunar_lander.py
michalnand/reinforcement_learning_tutorial
fa7d2443821c3bae236df126e65b3c8d12d0d438
[ "MIT" ]
2
2021-07-30T07:46:46.000Z
2021-07-30T13:26:42.000Z
src/dqn_lunar_lander.py
michalnand/reinforcement_learning_tutorial
fa7d2443821c3bae236df126e65b3c8d12d0d438
[ "MIT" ]
null
null
null
src/dqn_lunar_lander.py
michalnand/reinforcement_learning_tutorial
fa7d2443821c3bae236df126e65b3c8d12d0d438
[ "MIT" ]
null
null
null
import time import gym from agents.agent_dqn import * from models.lunar_lander_model_dqn import * #environment wrapper, reward scaling class SetRewardRange(gym.RewardWrapper): def __init__(self, env): gym.RewardWrapper.__init__(self, env) def step(self, action): obs, reward, ...
19.538462
75
0.673228
63ccc24655eb935a94a86c132acf0ca81e91e6ac
188
py
Python
Moves/TiltForward.py
johan--/PoMoCo_RobCook
0ca95286b0f21803ed3a33cbad6d11fce4d7172a
[ "MIT", "Unlicense" ]
10
2015-07-14T05:23:56.000Z
2021-08-07T16:46:42.000Z
Moves/TiltForward.py
rpcook/PoMoCo
08f5170006bafabc2d70d5a681b62f7448afdbd2
[ "Unlicense", "MIT" ]
6
2015-05-02T23:10:38.000Z
2015-05-02T23:15:39.000Z
Moves/TiltForward.py
rpcook/PoMoCo
08f5170006bafabc2d70d5a681b62f7448afdbd2
[ "Unlicense", "MIT" ]
10
2015-03-13T08:10:43.000Z
2021-08-08T04:12:42.000Z
import time # Move: Tilt Forward hexy.LF.setFootY(floor/4) hexy.LM.setFootY(floor/2) hexy.LB.setFootY(floor) hexy.RF.setFootY(floor/4) hexy.RM.setFootY(floor/2) hexy.RB.setFootY(floor)
15.666667
25
0.760638
089f6ead4522f0b5a93472e64d62e48766dd94d8
1,117
py
Python
login_test.py
rochman-l/trello_python_tests
610549bf845dbd2475a49117a383aed464a85aa3
[ "Apache-2.0" ]
null
null
null
login_test.py
rochman-l/trello_python_tests
610549bf845dbd2475a49117a383aed464a85aa3
[ "Apache-2.0" ]
null
null
null
login_test.py
rochman-l/trello_python_tests
610549bf845dbd2475a49117a383aed464a85aa3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from selenium.webdriver.chrome.webdriver import WebDriver import unittest class test_login(unittest.TestCase): def setUp(self): self.driver = WebDriver() self.driver.implicitly_wait(10) def test_login_atlassian_account(self): driver = self.driver self.op...
37.233333
84
0.691137
d9e829ad59dafed82129cda3482353b120cadca7
3,074
py
Python
selfdrive/can/tests/test_packer_hyundai.py
matthewklinko/openpilot
b0563a59684d0901f99abbb58ac1fbd729ded1f9
[ "MIT" ]
4
2019-02-12T03:06:31.000Z
2020-07-17T03:54:46.000Z
selfdrive/can/tests/test_packer_hyundai.py
matthewklinko/openpilot
b0563a59684d0901f99abbb58ac1fbd729ded1f9
[ "MIT" ]
3
2020-09-08T07:21:59.000Z
2020-09-08T07:22:07.000Z
selfdrive/can/tests/test_packer_hyundai.py
matthewklinko/openpilot
b0563a59684d0901f99abbb58ac1fbd729ded1f9
[ "MIT" ]
4
2019-05-21T19:02:46.000Z
2020-03-24T14:27:45.000Z
import unittest import random from selfdrive.can.tests.packer_old import CANPacker as CANPackerOld from selfdrive.can.packer import CANPacker import selfdrive.car.hyundai.hyundaican as hyundaican from selfdrive.car.hyundai.values import CHECKSUM as hyundai_checksum class TestPackerMethods(unittest.TestCase): def s...
43.295775
114
0.671438
e65fbaf3f09e2c7b9ea57f614d8ea7cd1de1fc9c
6,581
py
Python
python/WAMFactorGraphExample.py
kalyanvasudev/gpmp2
1ee99c743d978ab20dc804c8cd9cfa7813084957
[ "BSD-3-Clause" ]
null
null
null
python/WAMFactorGraphExample.py
kalyanvasudev/gpmp2
1ee99c743d978ab20dc804c8cd9cfa7813084957
[ "BSD-3-Clause" ]
null
null
null
python/WAMFactorGraphExample.py
kalyanvasudev/gpmp2
1ee99c743d978ab20dc804c8cd9cfa7813084957
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from gtsam import * from gpmp2 import * import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import axes3d, Axes3D #<-- Note the capitalization! from gpmp_utils.generate3Ddataset import generate3Ddataset from gpmp_utils.signedDistanceField3D import signedDistanceField3D from gpmp_utils.generat...
31.792271
89
0.718128
93242fcbe48ee00db7896aad48c99e68ee145d74
1,189
py
Python
services/backend/project/__init__.py
darshant5/vuejs-flask-docker
b17ce0000e2d8a9288821448c8b0238630d84c52
[ "MIT" ]
16
2020-05-03T19:58:58.000Z
2021-08-23T19:37:13.000Z
services/backend/project/__init__.py
darshant5/vuejs-flask-docker
b17ce0000e2d8a9288821448c8b0238630d84c52
[ "MIT" ]
3
2021-09-01T20:34:17.000Z
2022-02-27T18:09:27.000Z
services/backend/project/__init__.py
darshant5/vuejs-flask-docker
b17ce0000e2d8a9288821448c8b0238630d84c52
[ "MIT" ]
13
2020-05-03T22:00:30.000Z
2021-06-20T02:44:20.000Z
# services/aktiver/project/__init__.py import os from flask import Flask from flask_admin import Admin from flask_sqlalchemy import SQLAlchemy from flask_cors import CORS from flask_bcrypt import Bcrypt #import sentry_sdk #from sentry_sdk.integrations.flask import FlaskIntegration # instantiate the extensions db =...
21.618182
69
0.695542
c1dd16119721b27b417a5fecc9452db2418e68db
4,327
py
Python
src/pbrdna/barcode/trim_barcodes.py
bioinformaticsgeek/rDnaTools
54998b1f1305e80c8e4681c0473ff27021cdc9c0
[ "BSD-3-Clause" ]
9
2015-10-02T10:57:19.000Z
2021-05-07T09:41:45.000Z
src/pbrdna/barcode/trim_barcodes.py
bioinformaticsgeek/rDnaTools
54998b1f1305e80c8e4681c0473ff27021cdc9c0
[ "BSD-3-Clause" ]
null
null
null
src/pbrdna/barcode/trim_barcodes.py
bioinformaticsgeek/rDnaTools
54998b1f1305e80c8e4681c0473ff27021cdc9c0
[ "BSD-3-Clause" ]
14
2015-01-30T06:56:12.000Z
2020-12-28T17:44:32.000Z
#! /usr/bin/env python import csv, sys, log from collections import namedtuple from pbcore.io.FastaIO import FastaReader, FastaWriter, FastaRecord from pbcore.io.FastqIO import FastqReader, FastqWriter, FastqRecord barcode = namedtuple('barcode', 'id strand seen5 seenA seen3 end5 endA end3 primer') log = log.getLogg...
35.178862
84
0.614745
bff0b44dcd50e1c00966fffa92895e2a39924086
6,069
py
Python
google/appengine/runtime/apiproxy.py
Arachnid/google_appengine
2e950619f5027f414131fafc3cc253af4875a0fe
[ "Apache-2.0" ]
1
2016-05-09T12:41:59.000Z
2016-05-09T12:41:59.000Z
google/appengine/runtime/apiproxy.py
Arachnid/google_appengine
2e950619f5027f414131fafc3cc253af4875a0fe
[ "Apache-2.0" ]
null
null
null
google/appengine/runtime/apiproxy.py
Arachnid/google_appengine
2e950619f5027f414131fafc3cc253af4875a0fe
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 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 o...
32.983696
80
0.71478
a118be33fa0aee4d41163288a6d9327f8bdff895
8,865
py
Python
login.py
boopo/newCumtLogin
e873409c20eaae702e7f49c629521e3324a40613
[ "Apache-2.0" ]
4
2020-12-16T14:23:32.000Z
2021-04-10T08:52:56.000Z
login.py
boopo/NewCumtLogin
e873409c20eaae702e7f49c629521e3324a40613
[ "Apache-2.0" ]
null
null
null
login.py
boopo/NewCumtLogin
e873409c20eaae702e7f49c629521e3324a40613
[ "Apache-2.0" ]
1
2022-03-24T08:19:35.000Z
2022-03-24T08:19:35.000Z
from time import time import requests from bs4 import BeautifulSoup from encrypt import get_token #from settings import username, password url_login = 'http://authserver.cumt.edu.cn/authserver/login?service=http%3A//portal.cumt.edu.cn/casservice' # 登录 url_post = 'http://authserver.cumt.edu.cn/authserver/login?serv...
35.46
123
0.603158
b46ac68483f0f755f071354498c1d93e75816b25
6,306
py
Python
PyREMOT/tests/test_rmt_N2_CH4.py
sinagilassi/rmt-app
bbd5bb496f36116ecec15d75b4133a43a9233aaa
[ "MIT" ]
null
null
null
PyREMOT/tests/test_rmt_N2_CH4.py
sinagilassi/rmt-app
bbd5bb496f36116ecec15d75b4133a43a9233aaa
[ "MIT" ]
null
null
null
PyREMOT/tests/test_rmt_N2_CH4.py
sinagilassi/rmt-app
bbd5bb496f36116ecec15d75b4133a43a9233aaa
[ "MIT" ]
null
null
null
# TEST # STATIC MODELING # ---------------- # REVIEW # check unit # flowrate [mol/s] # rate formation [mol/m^3.s] # import packages/modules import numpy as np import math import json from data import * from core import constants as CONST from rmt import rmtExe from core.utilities import roundNum from docs.rmtUtility ...
22.847826
91
0.615128
c1701afc000c2244a67f85be1821be0e11a7b711
2,889
py
Python
src/cityloops/urls.py
metabolism-of-cities/metabolism-of-cities-platform
6213de146b1bc7b7c2802531fdcda1e328c32c64
[ "MIT" ]
4
2020-10-14T15:35:07.000Z
2022-01-13T15:31:16.000Z
src/cityloops/urls.py
metabolism-of-cities/metabolism-of-cities-platform
6213de146b1bc7b7c2802531fdcda1e328c32c64
[ "MIT" ]
null
null
null
src/cityloops/urls.py
metabolism-of-cities/metabolism-of-cities-platform
6213de146b1bc7b7c2802531fdcda1e328c32c64
[ "MIT" ]
2
2021-01-07T14:39:05.000Z
2022-01-18T12:31:50.000Z
from django.urls import path from . import views from data import views as data from core import views as core from ie.urls_baseline import baseline_urlpatterns from ie.urls_staf_baseline import baseline_staf_urlpatterns from ie.urls_education_baseline import baseline_education_urlpatterns from django.views.generic.bas...
56.647059
124
0.710627
19e9565a318aa6f883e1be60008c4c40f2e132a5
634
py
Python
tutos/conversations/serializers.py
UVG-Teams/Tutos-System
230dd9434f745c2e6e69e10f9908e9818c559d03
[ "MIT" ]
null
null
null
tutos/conversations/serializers.py
UVG-Teams/Tutos-System
230dd9434f745c2e6e69e10f9908e9818c559d03
[ "MIT" ]
null
null
null
tutos/conversations/serializers.py
UVG-Teams/Tutos-System
230dd9434f745c2e6e69e10f9908e9818c559d03
[ "MIT" ]
null
null
null
from rest_framework import serializers from conversations.models import Conversation, Message from users.serializers import UserSerializer class ConversationSerializer(serializers.ModelSerializer): user1 = UserSerializer() user2 = UserSerializer() class Meta: model = Conversation fields =...
21.862069
58
0.582019
506a99b1eb7b3baa41d7cb3c8e975207ef7a9e1f
22,564
py
Python
improver_tests/test_set_up_test_cubes.py
ddlddl58/improver
37b5b12491a77feccb03e33813efe8ffdebfa25d
[ "BSD-3-Clause" ]
1
2021-05-01T22:59:15.000Z
2021-05-01T22:59:15.000Z
improver_tests/test_set_up_test_cubes.py
ddlddl58/improver
37b5b12491a77feccb03e33813efe8ffdebfa25d
[ "BSD-3-Clause" ]
null
null
null
improver_tests/test_set_up_test_cubes.py
ddlddl58/improver
37b5b12491a77feccb03e33813efe8ffdebfa25d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2019 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
43.898833
88
0.657197
70736b4ee8f58587887f2a3e35437dfd52859c6a
1,265
py
Python
app/utils.py
rdp-jr/flask-mvc-starter-kit
187b874017a8f5bb0af65db3af387a6950c607e0
[ "MIT" ]
1
2021-11-09T07:40:36.000Z
2021-11-09T07:40:36.000Z
app/utils.py
rdp-jr/flask-mvc-starter-kit
187b874017a8f5bb0af65db3af387a6950c607e0
[ "MIT" ]
null
null
null
app/utils.py
rdp-jr/flask-mvc-starter-kit
187b874017a8f5bb0af65db3af387a6950c607e0
[ "MIT" ]
null
null
null
from flask import render_template import os def register_error_handlers(app): # 400 - Bad Request @app.errorhandler(400) def bad_request(e): return render_template('errors/400.html'), 400 # 403 - Forbidden @app.errorhandler(403) def forbidden(e): return render_template('errors...
27.5
90
0.667194
bd64ddc253345e1faa3f00dbcf8b6cc3b6b3812f
8,353
py
Python
sam/SAM.py
stereoboy/external_memory
f9572d5720216165af1ab46281f5c08357e151cd
[ "MIT" ]
null
null
null
sam/SAM.py
stereoboy/external_memory
f9572d5720216165af1ab46281f5c08357e151cd
[ "MIT" ]
null
null
null
sam/SAM.py
stereoboy/external_memory
f9572d5720216165af1ab46281f5c08357e151cd
[ "MIT" ]
null
null
null
import common.utils as utils import tensorflow as tf #import tensorflow.contrib.rnn.python.ops.core_rnn_cell as rnn_cell from tensorflow.contrib.rnn.python.ops import core_rnn_cell_impl as rnn_cell #from tensorflow.python.ops.rnn_cell import LSTMStateTuple from tensorflow.python.ops.rnn_cell_impl import _RNNCell as RN...
30.155235
109
0.626122
158d978f8f370db30b77519a1de0ecee499f9bdb
11,081
py
Python
mmdet/models/roi_heads/standard_roi_head_with_text.py
asenina/mmdetection
951b23a7ecee7fa79caf7f80d71491b7f555a261
[ "Apache-2.0" ]
4
2020-01-19T08:00:31.000Z
2020-02-14T03:25:45.000Z
mmdet/models/roi_heads/standard_roi_head_with_text.py
asenina/mmdetection
951b23a7ecee7fa79caf7f80d71491b7f555a261
[ "Apache-2.0" ]
3
2021-03-12T12:06:37.000Z
2021-07-28T11:21:33.000Z
mmdet/models/roi_heads/standard_roi_head_with_text.py
asenina/mmdetection
951b23a7ecee7fa79caf7f80d71491b7f555a261
[ "Apache-2.0" ]
1
2020-04-21T01:44:04.000Z
2020-04-21T01:44:04.000Z
import string import numpy as np import torch from mmdet.core import bbox2roi, build_assigner, build_sampler from mmdet.integration.nncf.utils import is_in_nncf_tracing from ..builder import HEADS, build_head, build_roi_extractor from .standard_roi_head import StandardRoIHead from .test_mixins import dummy_pad @HEA...
43.798419
136
0.582077
74dcab5458d42db5fb0c81c64fff231bc75b20cc
889
py
Python
Course3/Lab4/validations.py
juanmabass/it-cert-automation-practice
afaddd78b92ccb393143d4d15d1a633e5cfe4250
[ "Apache-2.0" ]
null
null
null
Course3/Lab4/validations.py
juanmabass/it-cert-automation-practice
afaddd78b92ccb393143d4d15d1a633e5cfe4250
[ "Apache-2.0" ]
null
null
null
Course3/Lab4/validations.py
juanmabass/it-cert-automation-practice
afaddd78b92ccb393143d4d15d1a633e5cfe4250
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import re def validate_user(username, minlen): """Checks if the received username matches the required conditions.""" if type(username) != str: raise TypeError("username must be a string") if minlen < 1: raise ValueError("minlen must be at least 1") # Userna...
29.633333
74
0.669291
45e21f210ef7dfdbf0cc0196e4cb334ccaa1c3e9
100,905
py
Python
Patches.py
lallaria/OoT-Randomizer
443ade6d1198af1c78b52c3544fb9f0bcfbdf63d
[ "MIT" ]
null
null
null
Patches.py
lallaria/OoT-Randomizer
443ade6d1198af1c78b52c3544fb9f0bcfbdf63d
[ "MIT" ]
null
null
null
Patches.py
lallaria/OoT-Randomizer
443ade6d1198af1c78b52c3544fb9f0bcfbdf63d
[ "MIT" ]
null
null
null
import random import struct import itertools import re import zlib from World import World from Rom import Rom from Spoiler import Spoiler from LocationList import business_scrubs from Hints import writeGossipStoneHints, buildBossRewardHints, \ buildGanonText, getSimpleHintNoPrefix from Utils import data_path ...
48.465418
544
0.666756
d2606e108015be4ebeb7f8c83258bec2e38e6e02
901
py
Python
Lib/site-packages/ipykernel/tests/__init__.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/ipykernel/tests/__init__.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/ipykernel/tests/__init__.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
# Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. import os import shutil import sys import tempfile from unittest.mock import patch from ipykernel.kernelspec import install pjoin = os.path.join tmp = None patchers = [] def setup(): """setup temporary env for...
18.770833
74
0.576027
88f9c43b7a33972289d724c99290ce090b247622
365
py
Python
tests/test_for.py
presztak/lilang
0560b407316defe710d611d33f0b2db6c2667bf0
[ "MIT" ]
null
null
null
tests/test_for.py
presztak/lilang
0560b407316defe710d611d33f0b2db6c2667bf0
[ "MIT" ]
null
null
null
tests/test_for.py
presztak/lilang
0560b407316defe710d611d33f0b2db6c2667bf0
[ "MIT" ]
null
null
null
from llvm_test_case import LLVMTestCase class ForTestCase(LLVMTestCase): def test_for(self): code = ''' int counter = 0; for (int i = 0; i < 10; i += 1;) { counter = counter + 1; } printi(counter); ''' result = self.run_code(...
22.8125
46
0.493151
0c83089ea13f302c25fb9d280bb521e1a6a5194d
1,142
py
Python
tests/models/onnx-model-zoo/vision/classification/shufflenet/test_shufflenet-6.py
ChanSiYuan/nncase
6f95be62d1686f5ea2a9806ac97e5817bf1eda3c
[ "Apache-2.0" ]
510
2018-12-29T06:49:36.000Z
2022-03-30T08:36:29.000Z
tests/models/onnx-model-zoo/vision/classification/shufflenet/test_shufflenet-6.py
ChanSiYuan/nncase
6f95be62d1686f5ea2a9806ac97e5817bf1eda3c
[ "Apache-2.0" ]
459
2019-02-17T13:31:29.000Z
2022-03-31T05:55:38.000Z
tests/models/onnx-model-zoo/vision/classification/shufflenet/test_shufflenet-6.py
ChanSiYuan/nncase
6f95be62d1686f5ea2a9806ac97e5817bf1eda3c
[ "Apache-2.0" ]
155
2019-04-16T08:43:24.000Z
2022-03-21T07:27:26.000Z
# Copyright 2019-2021 Canaan 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 writ...
39.37931
122
0.764448
603d9818acef49dbce5d6fe671ce9e3dae851ab3
6,485
py
Python
cryptopublisher/cryptopublisher.py
stuianna/cryptoPublsiher
f3c799def0ce3896eaedf4de1f28cf780ec1d14f
[ "MIT" ]
null
null
null
cryptopublisher/cryptopublisher.py
stuianna/cryptoPublsiher
f3c799def0ce3896eaedf4de1f28cf780ec1d14f
[ "MIT" ]
null
null
null
cryptopublisher/cryptopublisher.py
stuianna/cryptoPublsiher
f3c799def0ce3896eaedf4de1f28cf780ec1d14f
[ "MIT" ]
null
null
null
import logging import appdirs import os import time import argparse import socket import subprocess from cryptopublisher._version import __version__ import dbops.timeconverter as timeconverter from dbops.influxhelper import InfluxHelper log = logging.getLogger(__name__) PUBLISHER_NAME = 'cryptoPublisher' MAXIMUM_UPDAT...
39.066265
120
0.603855
1de9b8701fee5ed0ca251fe8e4d792e48e681f32
1,214
py
Python
applications/station/urls.py
awwong1/apollo
5571b5f222265bec3eed45b21e862636ccdc9a97
[ "MIT" ]
null
null
null
applications/station/urls.py
awwong1/apollo
5571b5f222265bec3eed45b21e862636ccdc9a97
[ "MIT" ]
null
null
null
applications/station/urls.py
awwong1/apollo
5571b5f222265bec3eed45b21e862636ccdc9a97
[ "MIT" ]
null
null
null
from applications.station import views from django.conf.urls import url, patterns urlpatterns = patterns( '', # Station Generic Views url(r'^create/(?P<business_pk>\d*)/$', views.StationViewCreate.as_view(), name='station_create'), url(r'^(?P<pk>\d*)/$', views.StationViewDetail.as_view(), name='station...
55.181818
101
0.694399
e18fa1a1f71efd517b72a17d71ffe5b325794f6a
5,250
py
Python
neocore/Cryptography/MerkleTree.py
simplitech/neo-python-core
b2ce968cd9c46b45f6ff97eda7018d13dc7b60c1
[ "MIT" ]
22
2018-01-09T15:14:35.000Z
2021-11-08T12:14:32.000Z
neocore/Cryptography/MerkleTree.py
simplitech/neo-python-core
b2ce968cd9c46b45f6ff97eda7018d13dc7b60c1
[ "MIT" ]
192
2017-12-31T14:48:47.000Z
2019-09-10T08:42:11.000Z
neocore/Cryptography/MerkleTree.py
simplitech/neo-python-core
b2ce968cd9c46b45f6ff97eda7018d13dc7b60c1
[ "MIT" ]
28
2018-01-02T21:53:45.000Z
2020-11-07T03:13:47.000Z
import sys from .Crypto import * from neocore.UInt256 import UInt256 class MerkleTreeNode(object): Hash = None Parent = None LeftChild = None RightChild = None def __init__(self, hash=None): """ Create an instance. Args: hash (bytes): """ self....
26.785714
108
0.532952
c133770bf67edce19896ad2f6c2f87f7012a6c67
1,239
py
Python
core/environments.py
eastack/getman
99308272ea091aee54f2f392cd757bba340c019e
[ "MIT" ]
null
null
null
core/environments.py
eastack/getman
99308272ea091aee54f2f392cd757bba340c019e
[ "MIT" ]
null
null
null
core/environments.py
eastack/getman
99308272ea091aee54f2f392cd757bba340c019e
[ "MIT" ]
null
null
null
from enum import Enum, unique, auto import requests @unique class Environments(Enum): DEVELOPMENT = auto() TESTING = auto() STAGING = auto() PRODUCTION = auto() current = Environments.PRODUCTION def session(): if current == Environments.DEVELOPMENT: development = requests.Session() ...
25.285714
54
0.653753
6c25fb5eb91b22aff052b3fe3e7c181e2f69b742
7,410
py
Python
tests/suite/test_v_s_route_redirects.py
jontambi/kubernetes-ingress
d5a1cf1db8685ae482fb58522d081a14962c89d7
[ "Apache-2.0" ]
1
2020-09-05T14:36:36.000Z
2020-09-05T14:36:36.000Z
tests/suite/test_v_s_route_redirects.py
u2prakash/kubernetes-ingress
739e35a78649bca06576f75a5419b47ca34aa08f
[ "Apache-2.0" ]
2
2021-06-02T03:17:31.000Z
2021-06-02T03:17:38.000Z
tests/suite/test_v_s_route_redirects.py
u2prakash/kubernetes-ingress
739e35a78649bca06576f75a5419b47ca34aa08f
[ "Apache-2.0" ]
1
2021-07-10T05:46:21.000Z
2021-07-10T05:46:21.000Z
import pytest import requests from kubernetes.client.rest import ApiException from settings import TEST_DATA from suite.custom_assertions import assert_event_and_get_count, wait_and_assert_status_code, \ assert_event_count_increased, assert_event_starts_with_text_and_contains_errors from suite.custom_resources_uti...
65
112
0.679757
d5f50d2ec0d12befc6aa98ae540881334c1e2155
9,695
py
Python
fabfile.py
simplepractice/card.io-iOS-source
41cde7aa1fbe10961ad35f0a4ec4b3329673a4af
[ "MIT" ]
null
null
null
fabfile.py
simplepractice/card.io-iOS-source
41cde7aa1fbe10961ad35f0a4ec4b3329673a4af
[ "MIT" ]
null
null
null
fabfile.py
simplepractice/card.io-iOS-source
41cde7aa1fbe10961ad35f0a4ec4b3329673a4af
[ "MIT" ]
null
null
null
#!/usr/bin/env python import atexit import glob import os import re import shutil import sys import tempfile import textwrap from fabric.api import env, local, hide from fabric.context_managers import lcd, settings, shell_env from fabric.contrib.console import confirm from fabric.contrib.files import exists from fabr...
42.152174
190
0.604642
d57d1f280a9fd9f56e2be0815805bfec46613760
162
py
Python
savu/plugins/corrections/base_correction_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/plugins/corrections/base_correction_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/plugins/corrections/base_correction_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
from savu.plugins.plugin_tools import PluginTools class BaseCorrectionTools(PluginTools): """A base class for dark and flat field correction plugins. """
32.4
63
0.771605
25b3252aef3940800ecad37418fc87ee6e321138
76,214
bzl
Python
tensorflow/workspace.bzl
ml-resources/tensorflow
4ecd72b68cd70c3930551aebbf0c80badc301d28
[ "Apache-2.0" ]
1
2019-06-19T08:43:26.000Z
2019-06-19T08:43:26.000Z
tensorflow/workspace.bzl
liudgit/tensorflow
4ecd72b68cd70c3930551aebbf0c80badc301d28
[ "Apache-2.0" ]
null
null
null
tensorflow/workspace.bzl
liudgit/tensorflow
4ecd72b68cd70c3930551aebbf0c80badc301d28
[ "Apache-2.0" ]
1
2019-06-19T08:43:23.000Z
2019-06-19T08:43:23.000Z
# TensorFlow external dependencies that can be loaded in WORKSPACE files. load("@io_bazel_rules_closure//closure:defs.bzl", "filegroup_external") load("@io_bazel_rules_closure//closure:defs.bzl", "webfiles_external") load("//third_party/gpus:cuda_configure.bzl", "cuda_configure") load("//third_party/sycl:sycl_configur...
39.366736
180
0.639935
296df774b235d2f8f822a0035e51b13269462ac2
1,266
py
Python
Praximes/Python/praxa-cli/praxa/__init__.py
fish2000/Praxa
9758f4e3d05d21c063bb3029fe8399f1d79aa0b1
[ "MIT" ]
null
null
null
Praximes/Python/praxa-cli/praxa/__init__.py
fish2000/Praxa
9758f4e3d05d21c063bb3029fe8399f1d79aa0b1
[ "MIT" ]
null
null
null
Praximes/Python/praxa-cli/praxa/__init__.py
fish2000/Praxa
9758f4e3d05d21c063bb3029fe8399f1d79aa0b1
[ "MIT" ]
null
null
null
""" PRAXA - Control Your Praxis Copyright 2012 Alexander Bohn. The PRAXA License Agreement (MIT License) ------------------------------------------ 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 Softw...
42.2
79
0.766983
312e3c2a0a1bebcf4e24dcf19a1531a142740fce
87
py
Python
class/fact.py
SaicharanKandukuri/snippets-python-from-scrach
b0823fde3cf1a88bf43d97bdc542de7e32c76dac
[ "MIT" ]
1
2021-05-29T03:09:24.000Z
2021-05-29T03:09:24.000Z
class/fact.py
SaicharanKandukuri/snippets-python-from-scrach
b0823fde3cf1a88bf43d97bdc542de7e32c76dac
[ "MIT" ]
null
null
null
class/fact.py
SaicharanKandukuri/snippets-python-from-scrach
b0823fde3cf1a88bf43d97bdc542de7e32c76dac
[ "MIT" ]
null
null
null
num = int(input("Enter Number to do op \n : ")) print("Factorail is "+str(num*(num-1)))
43.5
47
0.632184
f52a9d60240e849267327255d0be84f55bdb17ec
1,409
py
Python
Tests/TestExtractAndDetect/ColourPick.py
robdobsn/CatDeterV3
8b2a63787fa26772f0be7897ced2dc2a7fd7bc5e
[ "MIT" ]
null
null
null
Tests/TestExtractAndDetect/ColourPick.py
robdobsn/CatDeterV3
8b2a63787fa26772f0be7897ced2dc2a7fd7bc5e
[ "MIT" ]
null
null
null
Tests/TestExtractAndDetect/ColourPick.py
robdobsn/CatDeterV3
8b2a63787fa26772f0be7897ced2dc2a7fd7bc5e
[ "MIT" ]
null
null
null
#! /usr/bin/env python2 import cv2 import numpy as np colors = [] def on_mouse_click (event, x, y, flags, frame): if event == cv2.EVENT_LBUTTONUP: colors.append(frame[y,x].tolist()) def main(): capture = cv2.VideoCapture(0) while True: _, frame = capture.read() hsv = cv2.cvtColo...
26.584906
98
0.584102
6bbc8fe5b178895e90e3a175e0bc497c155e1fe7
119
py
Python
topCoder/srms/300s/srm337/div2/palindromize2.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-09-30T19:53:08.000Z
2020-09-30T19:53:08.000Z
topCoder/srms/300s/srm337/div2/palindromize2.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
null
null
null
topCoder/srms/300s/srm337/div2/palindromize2.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-10-15T09:10:57.000Z
2020-10-15T09:10:57.000Z
class Palindromize2: def minChanges(self, s): return ''.join([min(s[i], s[-i-1]) for i in xrange(len(s))])
29.75
68
0.588235
18634a65ab3888be31563f164f336bca47536b42
705
py
Python
cloud/cloud/doctype/cloud_settings/cloud_settings.py
srdgame/symlink_cloud
0df41d9cd9c9757cf5e96f6bea841c3b86de8ee1
[ "MIT" ]
1
2021-07-25T08:53:01.000Z
2021-07-25T08:53:01.000Z
cloud/cloud/doctype/cloud_settings/cloud_settings.py
srdgame/symlink_cloud
0df41d9cd9c9757cf5e96f6bea841c3b86de8ee1
[ "MIT" ]
null
null
null
cloud/cloud/doctype/cloud_settings/cloud_settings.py
srdgame/symlink_cloud
0df41d9cd9c9757cf5e96f6bea841c3b86de8ee1
[ "MIT" ]
6
2017-04-02T04:01:08.000Z
2021-12-22T10:43:29.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Dirk Chang and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class CloudSettings(Document): @staticmethod def get_default_company(): return frappe.db.get_...
29.375
82
0.784397
9f50cc90c5f7b729a71e7cc0ea83fad25404e3c9
1,345
py
Python
python/test/function/test_arange.py
daniel-falk/nnabla
3fe132ea52dc10521cc029a5d6ba8f565cf65ccf
[ "Apache-2.0" ]
2,792
2017-06-26T13:05:44.000Z
2022-03-28T07:55:26.000Z
python/test/function/test_arange.py
daniel-falk/nnabla
3fe132ea52dc10521cc029a5d6ba8f565cf65ccf
[ "Apache-2.0" ]
138
2017-06-27T07:04:44.000Z
2022-02-28T01:37:15.000Z
python/test/function/test_arange.py
daniel-falk/nnabla
3fe132ea52dc10521cc029a5d6ba8f565cf65ccf
[ "Apache-2.0" ]
380
2017-06-26T13:23:52.000Z
2022-03-25T16:51:30.000Z
# Copyright 2018,2019,2020,2021 Sony 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 or a...
31.27907
74
0.673606
216e946cb15e78ec6ccbfc13d0916710e6cc5015
15,340
py
Python
plugins/youtube_dl_button.py
sahaynitin/Uploader-Bot-V4
5835b718adb9bd38d7145702292b873449d34579
[ "MIT" ]
null
null
null
plugins/youtube_dl_button.py
sahaynitin/Uploader-Bot-V4
5835b718adb9bd38d7145702292b873449d34579
[ "MIT" ]
null
null
null
plugins/youtube_dl_button.py
sahaynitin/Uploader-Bot-V4
5835b718adb9bd38d7145702292b873449d34579
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # (c) Shrimadhav U K # the logging things import logging logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger(__name__) import asyncio import json import math import os impo...
41.016043
257
0.556519
b550f912d73a492bea08dbc6fd0b4de127b948cd
949
py
Python
ascii_progress/__main__.py
Deric-W/ascii-progress
8d26cc2b8dae21cd7cb52f498f24ef18a761c834
[ "MIT" ]
1
2020-03-15T01:03:07.000Z
2020-03-15T01:03:07.000Z
ascii_progress/__main__.py
Deric-W/ascii-progress
8d26cc2b8dae21cd7cb52f498f24ef18a761c834
[ "MIT" ]
null
null
null
ascii_progress/__main__.py
Deric-W/ascii-progress
8d26cc2b8dae21cd7cb52f498f24ef18a761c834
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys import time from .spinner import Spinner from .bar import BarFormat # run demo for frames in ( "|/-\\", ("←↖↑↗→↘↓↙"), ("◐◓◑◒"), ("(o )", "( o )", "( o )", "( o )", "( o)", "( o )", "( o )", "( o )"), (".oO@*"), ("", ".", "..", "..."), ("⠋⠙⠹⠸⠼⠴...
27.114286
93
0.385669
de7f787c00f91a514a6fa09b343e0110219f4209
504
py
Python
events/urls.py
flyinactor91/Rocky-Rollcall
ab2bdbbd5f5920e709a09d1b1182a388955211d9
[ "MIT" ]
2
2019-09-03T06:08:35.000Z
2020-07-19T06:57:17.000Z
events/urls.py
flyinactor91/Rocky-Rollcall
ab2bdbbd5f5920e709a09d1b1182a388955211d9
[ "MIT" ]
null
null
null
events/urls.py
flyinactor91/Rocky-Rollcall
ab2bdbbd5f5920e709a09d1b1182a388955211d9
[ "MIT" ]
null
null
null
""" Events URL patterns """ from django.urls import path from . import views urlpatterns = [ path('', views.EventListView.as_view(), name='event_list'), path('new/<slug:slug>', views.event_new, name='event_new'), path('<int:pk>', views.event_detail, name='event_detail'), path('<int:pk>/edit', views.ev...
31.5
81
0.680556