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
c77d4281c9775095f10601d396236916acd5699c
299
py
Python
Compiler/GC/program.py
lemonviv/Pivot-SPDZ
f3db87d8849e5f9fa39f321d85feec83107ee405
[ "BSD-2-Clause" ]
429
2019-06-13T14:11:24.000Z
2022-03-30T18:54:31.000Z
Compiler/GC/program.py
lemonviv/Pivot-SPDZ
f3db87d8849e5f9fa39f321d85feec83107ee405
[ "BSD-2-Clause" ]
471
2019-06-13T09:28:49.000Z
2022-03-31T17:46:03.000Z
Compiler/GC/program.py
lemonviv/Pivot-SPDZ
f3db87d8849e5f9fa39f321d85feec83107ee405
[ "BSD-2-Clause" ]
162
2019-08-07T09:22:11.000Z
2022-03-31T11:24:26.000Z
from Compiler import types, instructions class Program(object): def __init__(self, progname): types.program = self instructions.program = self self.curr_tape = None exec(compile(open(progname).read(), progname, 'exec')) def malloc(self, *args): pass
27.181818
62
0.64214
4da46f7ecef048a43708de434965a3f14f57058a
269
py
Python
consultas/consultas/doctype/indices_inmunologicos/indices_inmunologicos.py
Lewinta/Consultas
e01ad870a2bad0eb5938d8800e3e2934402fce62
[ "MIT" ]
null
null
null
consultas/consultas/doctype/indices_inmunologicos/indices_inmunologicos.py
Lewinta/Consultas
e01ad870a2bad0eb5938d8800e3e2934402fce62
[ "MIT" ]
null
null
null
consultas/consultas/doctype/indices_inmunologicos/indices_inmunologicos.py
Lewinta/Consultas
e01ad870a2bad0eb5938d8800e3e2934402fce62
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, Lewin Villar and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class IndicesInmunologicos(Document): pass
24.454545
51
0.788104
09c7c44e0ef4499d5ead7cf23d6fb7e4d3725f96
427
py
Python
src/tt_logic/tt_logic/politic_power/formulas.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/tt_logic/tt_logic/politic_power/formulas.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/tt_logic/tt_logic/politic_power/formulas.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
import math from . import constants as c def base_quest_power(quest_rung: int) -> int: return int(math.ceil(c.POWER_PER_QUEST * (1 + math.log(quest_rung, 2)))) def might_to_power(might: float) -> float: if might < 1: return 0 return (math.log(might, 10) / 3) def power_modifier_from_freedom(...
21.35
80
0.704918
2ca84fdb3018a582d50c2f7e629c75366083e5de
9,101
py
Python
cpdb/trr/tests/views/test_trr_viewset.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
25
2018-07-20T22:31:40.000Z
2021-07-15T16:58:41.000Z
cpdb/trr/tests/views/test_trr_viewset.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
13
2018-06-18T23:08:47.000Z
2022-02-10T07:38:25.000Z
cpdb/trr/tests/views/test_trr_viewset.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
6
2018-05-17T21:59:43.000Z
2020-11-17T00:30:26.000Z
from datetime import datetime, date from django.urls import reverse from django.contrib.gis.geos import Point from rest_framework.test import APITestCase from rest_framework import status from robber import expect import pytz from data.factories import PoliceUnitFactory, OfficerFactory, OfficerHistoryFactory, Office...
37.607438
109
0.573893
c4e0e97257d29e70d698ae5b5cdec0c74cebea04
1,562
py
Python
qinling/orchestrator/kubernetes/utils.py
lingxiankong/qinling
e18f80345ae519c9308cfc93fdf53b82c9be7618
[ "Apache-2.0" ]
2
2017-04-11T04:23:25.000Z
2017-05-04T13:30:46.000Z
qinling/orchestrator/kubernetes/utils.py
lingxiankong/qinling
e18f80345ae519c9308cfc93fdf53b82c9be7618
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
qinling/orchestrator/kubernetes/utils.py
lingxiankong/qinling
e18f80345ae519c9308cfc93fdf53b82c9be7618
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2018 Catalyst IT Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
36.325581
77
0.736876
d9636c815495f1cfade70c62d2391b3ca25abf86
18,106
py
Python
src/sage/categories/algebras_with_basis.py
defeo/sage
d8822036a9843bd4d75845024072515ede56bcb9
[ "BSL-1.0" ]
2
2018-06-30T01:37:35.000Z
2018-06-30T01:37:39.000Z
src/sage/categories/algebras_with_basis.py
boothby/sage
1b1e6f608d1ef8ee664bb19e991efbbc68cbd51f
[ "BSL-1.0" ]
null
null
null
src/sage/categories/algebras_with_basis.py
boothby/sage
1b1e6f608d1ef8ee664bb19e991efbbc68cbd51f
[ "BSL-1.0" ]
null
null
null
r""" Algebras With Basis """ from __future__ import absolute_import #***************************************************************************** # Copyright (C) 2008 Teresa Gomez-Diaz (CNRS) <Teresa.Gomez-Diaz@univ-mlv.fr> # 2008-2013 Nicolas M. Thiery <nthiery at users.sf.net> # # Distributed u...
41.718894
130
0.548603
8c70882d2dffe6c41d9d6fd4c0f387399c60429b
1,221
py
Python
tabular/agents/avgmin.py
yooyoo9/randmin
0b59c2973e3a84c6d601c58ece9e77fb9d18ea66
[ "MIT" ]
null
null
null
tabular/agents/avgmin.py
yooyoo9/randmin
0b59c2973e3a84c6d601c58ece9e77fb9d18ea66
[ "MIT" ]
null
null
null
tabular/agents/avgmin.py
yooyoo9/randmin
0b59c2973e3a84c6d601c58ece9e77fb9d18ea66
[ "MIT" ]
null
null
null
import numpy as np from .agent import Agent class AvgMinQlearning(Agent): def __init__(self, env, beta=0.5, discount=0.9, learning_rate=0.01, epsilon=0.1): super().__init__(env, discount, learning_rate, epsilon) self.name = "AvgMin" + str(beta) self.beta = beta self.q = np.random....
38.15625
88
0.629812
e32c1132022597810ad95526bfacda7a084c2e04
32,969
py
Python
python_modules/dagster-graphql/dagster_graphql_tests/graphql/graphql_context_test_suite.py
jrouly/dagster
2b3104db2fc6439050f7825d4b9ebaf39ddf6c0c
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql_tests/graphql/graphql_context_test_suite.py
jrouly/dagster
2b3104db2fc6439050f7825d4b9ebaf39ddf6c0c
[ "Apache-2.0" ]
1
2021-06-21T18:30:02.000Z
2021-06-25T21:18:39.000Z
python_modules/dagster-graphql/dagster_graphql_tests/graphql/graphql_context_test_suite.py
jrouly/dagster
2b3104db2fc6439050f7825d4b9ebaf39ddf6c0c
[ "Apache-2.0" ]
null
null
null
import tempfile from abc import ABC, abstractmethod from contextlib import contextmanager import pytest from dagster import check, file_relative_path from dagster.cli.workspace import Workspace, WorkspaceProcessContext from dagster.cli.workspace.cli_target import ( GrpcServerTarget, ModuleTarget, PythonFil...
39.24881
100
0.64597
23e20e29215fdc1357b1659c3e8007e62e310f12
3,687
py
Python
salt/states/nxos_upgrade.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
19
2016-01-29T14:37:52.000Z
2022-03-30T18:08:01.000Z
salt/states/nxos_upgrade.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
223
2016-03-02T16:39:41.000Z
2022-03-03T12:26:35.000Z
salt/states/nxos_upgrade.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
64
2016-02-04T19:45:26.000Z
2021-12-15T02:02:31.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018 Cisco and/or its affiliates. # # 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 require...
30.471074
85
0.653648
da1614e8482f3484ae56956d4bcb920b0ea5d074
80
py
Python
auth_token/version.py
cedel1/django-auth-token
fc108468de8952c05c067e37bd0aa024345d86e3
[ "BSD-3-Clause" ]
null
null
null
auth_token/version.py
cedel1/django-auth-token
fc108468de8952c05c067e37bd0aa024345d86e3
[ "BSD-3-Clause" ]
null
null
null
auth_token/version.py
cedel1/django-auth-token
fc108468de8952c05c067e37bd0aa024345d86e3
[ "BSD-3-Clause" ]
null
null
null
VERSION = (0, 1, 5) def get_version(): return '.'.join(map(str, VERSION))
13.333333
38
0.5875
1b714740635b967ba9761679d5bb67e90b1103f3
5,241
py
Python
welleng/visual.py
kwinkunks/welleng
d0669b9b5164671ff4861a4efd33666c3fc9758f
[ "Apache-2.0" ]
1
2020-12-26T14:42:51.000Z
2020-12-26T14:42:51.000Z
welleng/visual.py
kwinkunks/welleng
d0669b9b5164671ff4861a4efd33666c3fc9758f
[ "Apache-2.0" ]
null
null
null
welleng/visual.py
kwinkunks/welleng
d0669b9b5164671ff4861a4efd33666c3fc9758f
[ "Apache-2.0" ]
null
null
null
import trimesh from vedo import show, Box, Axes, trimesh2vedo, Lines, colorMap, Arrows, Text import numpy as np from .version import __version__ as VERSION class World: def __init__( self, bb_center, length, width, height ): self.bb_center = bb_center se...
28.32973
101
0.583667
35d63b006dc10173a6c7f20de42e74e9c1c36928
1,896
py
Python
code/model_kit/rnn_layer.py
jiwoongim/IMsML
2f5647794b433c1cb63f14ba1bcbf4919ca48b87
[ "MIT" ]
null
null
null
code/model_kit/rnn_layer.py
jiwoongim/IMsML
2f5647794b433c1cb63f14ba1bcbf4919ca48b87
[ "MIT" ]
null
null
null
code/model_kit/rnn_layer.py
jiwoongim/IMsML
2f5647794b433c1cb63f14ba1bcbf4919ca48b87
[ "MIT" ]
null
null
null
import math import tensorflow as tf from utils.nn_utils import init_weights class RNNLayer(object): def __init__(self, D, M, scope_name): ''' D - Dimension of the input M - Dimention of the output scope_name - Name of the layer ''' self.D = D self.M = M ...
27.882353
85
0.565401
7eb23048cbc5a7131397293223651429b172ba1a
4,791
py
Python
util/diff_generated_util_output.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
1,375
2019-11-05T15:11:00.000Z
2022-03-28T17:50:43.000Z
util/diff_generated_util_output.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
7,045
2019-11-05T16:05:45.000Z
2022-03-31T23:08:08.000Z
util/diff_generated_util_output.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
428
2019-11-05T15:00:20.000Z
2022-03-28T15:34:57.000Z
#!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 """Show a diff between the generated output from utils in the current working tree versus a previous revision (HEAD by default). This makes it easy to...
36.022556
80
0.599457
59328e20a3f0d40a213ad5b26ce3234a851f6c51
51,307
py
Python
azure/storage/blob/blockblobservice.py
RobertoPrevato/azure-storage-python
fae8ed9916095cc1fc17ada44e6406f96f7bd11d
[ "Apache-2.0" ]
5
2018-03-21T12:59:53.000Z
2020-11-30T12:24:18.000Z
azure/storage/blob/blockblobservice.py
RobertoPrevato/azure-storage-python
fae8ed9916095cc1fc17ada44e6406f96f7bd11d
[ "Apache-2.0" ]
null
null
null
azure/storage/blob/blockblobservice.py
RobertoPrevato/azure-storage-python
fae8ed9916095cc1fc17ada44e6406f96f7bd11d
[ "Apache-2.0" ]
3
2018-10-09T18:35:19.000Z
2019-03-13T09:43:02.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft. 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.ap...
50.104492
119
0.648547
5aee6b01c68f86ad24e2437a745c2e8a97a4eaa1
9,942
py
Python
TSS.Py/src/TpmBase.py
msftenhanceprovenance/TSS.MSR
03f5093cee0a607205cfc620c3c75cabf9499d61
[ "MIT" ]
173
2019-05-13T14:32:06.000Z
2022-03-27T14:25:46.000Z
TSS.Py/src/TpmBase.py
msftenhanceprovenance/TSS.MSR
03f5093cee0a607205cfc620c3c75cabf9499d61
[ "MIT" ]
76
2019-05-07T13:51:47.000Z
2022-03-14T18:58:56.000Z
TSS.Py/src/TpmBase.py
msftenhanceprovenance/TSS.MSR
03f5093cee0a607205cfc620c3c75cabf9499d61
[ "MIT" ]
74
2019-05-10T14:08:08.000Z
2022-03-16T08:38:39.000Z
import platform from .TpmTypes import * from .TpmDevice import * Owner = TPM_HANDLE(TPM_RH.OWNER) Endorsement = TPM_HANDLE(TPM_RH.ENDORSEMENT) NullSymDef = TPMT_SYM_DEF(TPM_ALG_ID.NULL, 0, TPM_ALG_ID.NULL) class Session: def __init__(self, sessionHandle = None, nonceTpm = None, ...
36.822222
115
0.598069
def6a6283f564f0238ec04039cedcccf5b67fe3c
53,427
py
Python
tests/test_codebase/test_mmdet/test_mmdet_models.py
grimoire/mmdeploy
e84bc30f4a036dd19cb3af854203922a91098e84
[ "Apache-2.0" ]
746
2021-12-27T10:50:28.000Z
2022-03-31T13:34:14.000Z
tests/test_codebase/test_mmdet/test_mmdet_models.py
grimoire/mmdeploy
e84bc30f4a036dd19cb3af854203922a91098e84
[ "Apache-2.0" ]
253
2021-12-28T05:59:13.000Z
2022-03-31T18:22:25.000Z
tests/test_codebase/test_mmdet/test_mmdet_models.py
grimoire/mmdeploy
e84bc30f4a036dd19cb3af854203922a91098e84
[ "Apache-2.0" ]
147
2021-12-27T10:50:33.000Z
2022-03-30T10:44:20.000Z
# Copyright (c) OpenMMLab. All rights reserved. import copy import os import random from typing import Dict, List import mmcv import numpy as np import pytest import torch from mmdeploy.codebase import import_codebase from mmdeploy.utils import Backend, Codebase from mmdeploy.utils.config_utils import get_ir_config f...
33.814557
79
0.587924
e4c3d1fd6f9e9d1b804c41169b4ade1404b14270
1,577
py
Python
src/chembl_beaker/beaker/core_apps/calculations/impl.py
chembl/chembl_beaker
0ea3a8efc9220fce5334cb37ac2239e7189b44ef
[ "Apache-2.0" ]
28
2015-08-12T07:22:48.000Z
2022-02-26T03:50:27.000Z
src/chembl_beaker/beaker/core_apps/calculations/impl.py
chembl/chembl_beaker
0ea3a8efc9220fce5334cb37ac2239e7189b44ef
[ "Apache-2.0" ]
18
2015-03-03T12:03:12.000Z
2021-06-16T11:03:05.000Z
src/chembl_beaker/beaker/core_apps/calculations/impl.py
chembl/chembl_beaker
0ea3a8efc9220fce5334cb37ac2239e7189b44ef
[ "Apache-2.0" ]
13
2015-02-16T12:35:01.000Z
2021-08-02T09:40:30.000Z
from beaker.utils.io import _parseMolData from chembl_structure_pipeline.standardizer import parse_molblock from rdkit import Chem import io def _getSDFString(mols): sio = io.StringIO() _create_sdf(sio, mols) return sio.getvalue() def _create_sdf(f, mols): for mol, props in mols: m = Chem.Mo...
31.54
120
0.588459
b1f8498afd771c45b8551894072392ccf659627b
8,456
py
Python
scripts/pipeline/a01d_tst_feature_engineering.py
Iolaum/Phi1337
c73b01cb85c0187ed5c23c672d4f3d05a6934a9f
[ "Apache-2.0" ]
null
null
null
scripts/pipeline/a01d_tst_feature_engineering.py
Iolaum/Phi1337
c73b01cb85c0187ed5c23c672d4f3d05a6934a9f
[ "Apache-2.0" ]
null
null
null
scripts/pipeline/a01d_tst_feature_engineering.py
Iolaum/Phi1337
c73b01cb85c0187ed5c23c672d4f3d05a6934a9f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division import numpy as np import os import pandas as pd import re import nltk import pickle from nltk.stem.porter import * from nltk.stem.snowball import SnowballStemmer from unidecode import unidecode stops = set(nltk.corpus.stopwords.words("english")) def fixtypos(...
34.942149
129
0.678217
540587e59baeeac5543ce28f661ed595a5a027fe
506
py
Python
examples/button_group.py
knowledgejunkie/guizero
6bd78630ae2b1a6b87c3eca59777c95e66af08d2
[ "BSD-3-Clause" ]
2
2020-05-06T03:07:05.000Z
2020-06-28T05:27:48.000Z
examples/button_group.py
knowledgejunkie/guizero
6bd78630ae2b1a6b87c3eca59777c95e66af08d2
[ "BSD-3-Clause" ]
null
null
null
examples/button_group.py
knowledgejunkie/guizero
6bd78630ae2b1a6b87c3eca59777c95e66af08d2
[ "BSD-3-Clause" ]
null
null
null
from guizero import App, ButtonGroup def selected(): print(choice.value + " " + choice2.value) app = App() choice = ButtonGroup(app, options=["cheese", "ham", "salad"], command=selected) # You can use specific values for the button group by passing them as a 2d list. # choice = ButtonGroup(app, options=[["che...
33.733333
116
0.685771
a932f2616dd719e533e2c4c54c6db9003d885f09
148
py
Python
ftpdata/Directory.py
dropyourcoffee/ftpdata
b1c9e95d77aea66a3091d38052eada902dcfc4b5
[ "MIT" ]
null
null
null
ftpdata/Directory.py
dropyourcoffee/ftpdata
b1c9e95d77aea66a3091d38052eada902dcfc4b5
[ "MIT" ]
null
null
null
ftpdata/Directory.py
dropyourcoffee/ftpdata
b1c9e95d77aea66a3091d38052eada902dcfc4b5
[ "MIT" ]
null
null
null
import os class Directory: def __init__(self, filepath): self.filepath = filepath self.filename = os.path.split(filepath)[-1]
18.5
51
0.655405
7e3c52353a2bfeeeffaed6c17d94c484cdc94ed1
7,415
py
Python
tests/test_server.py
vincentsarago/rio-glui
04b4d0fcfb3394aa2e994f5192e68aab6426dfcf
[ "MIT" ]
42
2018-06-29T14:07:40.000Z
2022-03-10T08:43:32.000Z
tests/test_server.py
vincentsarago/rio-glui
04b4d0fcfb3394aa2e994f5192e68aab6426dfcf
[ "MIT" ]
9
2018-07-02T12:41:16.000Z
2020-05-22T13:35:42.000Z
tests/test_server.py
vincentsarago/rio-glui
04b4d0fcfb3394aa2e994f5192e68aab6426dfcf
[ "MIT" ]
11
2018-07-01T17:28:48.000Z
2021-11-12T08:18:30.000Z
"""tests rio_glui.server.""" import os import numpy from tornado.testing import AsyncHTTPTestCase import mercantile from rio_tiler.utils import tile_read from rio_glui.raster import RasterTiles from rio_glui.server import TileServer raster_path = os.path.join( os.path.dirname(__file__), "fixtures", "16-21560-2...
30.895833
88
0.652192
989f534bee589b32a416b6c9a14fed167336188d
7,958
py
Python
ml_workflow/viz_utils.py
BenjaminHabert/ml_workflow
266e503e895defe510d657a2a54ea19623f9e181
[ "MIT" ]
1
2021-02-03T17:45:09.000Z
2021-02-03T17:45:09.000Z
ml_workflow/viz_utils.py
BenjaminHabert/ml_workflow
266e503e895defe510d657a2a54ea19623f9e181
[ "MIT" ]
1
2021-01-25T15:56:44.000Z
2021-01-25T15:56:44.000Z
ml_workflow/viz_utils.py
BenjaminHabert/ml_workflow
266e503e895defe510d657a2a54ea19623f9e181
[ "MIT" ]
1
2021-02-03T17:45:16.000Z
2021-02-03T17:45:16.000Z
import os import sys import pydot import datetime as dt import re import IPython from IPython.display import SVG, display from . import viz_utils_node_detail_writer from . import viz_utils_layer from . import rule class VizUtils: rankdir = 'TB' dpi = 96 SHAPE_BY_CLASS_NAME = { 'Rule' : 'rec...
31.207843
87
0.584569
90bff9fab40d4e4eca5179f6e58107702d052112
11,177
py
Python
qnapstats/qnap_stats.py
M4v3r1cK87/python-qnapstats
9ff63a8353fa882a102d84efac1f9955de3391ed
[ "MIT" ]
null
null
null
qnapstats/qnap_stats.py
M4v3r1cK87/python-qnapstats
9ff63a8353fa882a102d84efac1f9955de3391ed
[ "MIT" ]
null
null
null
qnapstats/qnap_stats.py
M4v3r1cK87/python-qnapstats
9ff63a8353fa882a102d84efac1f9955de3391ed
[ "MIT" ]
null
null
null
"""Module containing multiple classes to obtain QNAP system stats via cgi calls.""" # -*- coding:utf-8 -*- import base64 import json import xmltodict import requests # pylint: disable=too-many-instance-attributes class QNAPStats: """Class containing the main functions.""" # pylint: disable=too-many-arguments...
35.595541
112
0.539501
943f320206f0b42d413805507cd6d51639f88941
2,145
py
Python
src/Legacy/fp_train.py
snakepowerpoint/wifi_predictor
91b20e4ec53caae274134868763c74dcadef3dc4
[ "Apache-2.0" ]
2
2017-10-02T07:21:40.000Z
2018-01-16T09:54:37.000Z
src/Legacy/fp_train.py
snakepowerpoint/wifi_predictor
91b20e4ec53caae274134868763c74dcadef3dc4
[ "Apache-2.0" ]
null
null
null
src/Legacy/fp_train.py
snakepowerpoint/wifi_predictor
91b20e4ec53caae274134868763c74dcadef3dc4
[ "Apache-2.0" ]
1
2018-07-12T08:04:17.000Z
2018-07-12T08:04:17.000Z
import pandas as pd import sklearn as skl from sklearn import svm import numpy as np from sklearn.cross_validation import train_test_split from sklearn.metrics import confusion_matrix from sklearn import cluster from sklearn.grid_search import GridSearchCV from sklearn.manifold import Isomap import matplotlib.pyplot as...
26.8125
102
0.725408
f7abf9d31cd1242e90244641e8cdac3e6178df74
9,833
py
Python
examples/reuploading_classifier/qlassifier.py
mofeing/qibo
3eb675ba893bf35f103d41a8a64c86aae9cbf616
[ "Apache-2.0" ]
81
2020-09-04T10:54:40.000Z
2021-05-17T13:20:38.000Z
examples/reuploading_classifier/qlassifier.py
mofeing/qibo
3eb675ba893bf35f103d41a8a64c86aae9cbf616
[ "Apache-2.0" ]
201
2020-08-24T08:41:33.000Z
2021-05-18T12:23:19.000Z
examples/reuploading_classifier/qlassifier.py
mofeing/qibo
3eb675ba893bf35f103d41a8a64c86aae9cbf616
[ "Apache-2.0" ]
20
2021-06-11T18:13:09.000Z
2022-03-28T07:32:09.000Z
import numpy as np from qibo.models import Circuit from qibo import gates, K from datasets import create_dataset, create_target, fig_template, world_map_template from matplotlib.cm import get_cmap from matplotlib.colors import Normalize import os class single_qubit_classifier: def __init__(self, name, layers, gri...
36.418519
110
0.549171
9d9feab8cfe65db70c30024eace23bfdc6778936
159
py
Python
awsbeamline/__meta__.py
maheshda-aws/aws-beamline
e8505924ae698435c0e0a6ebbd8ed2f2bbd5b674
[ "MIT" ]
1
2020-10-21T19:14:59.000Z
2020-10-21T19:14:59.000Z
awsbeamline/__meta__.py
maheshda-aws/aws-beamline
e8505924ae698435c0e0a6ebbd8ed2f2bbd5b674
[ "MIT" ]
null
null
null
awsbeamline/__meta__.py
maheshda-aws/aws-beamline
e8505924ae698435c0e0a6ebbd8ed2f2bbd5b674
[ "MIT" ]
null
null
null
__packageName__ = "awsbeamline" __packageVersion__ = "0.0.1" __license__ = "Apache License 2.0" __description__ = "Utility to orchestrate ETL using AWS Batch."
39.75
63
0.779874
b7bb6cf212589be5f14c942f951322653058198d
1,833
py
Python
seamless/core/protocol/validate_subcelltype.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
15
2017-06-07T12:49:12.000Z
2020-07-25T18:06:04.000Z
seamless/core/protocol/validate_subcelltype.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
110
2016-06-21T23:20:44.000Z
2022-02-24T16:15:22.000Z
seamless/core/protocol/validate_subcelltype.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
6
2016-06-21T11:19:22.000Z
2019-01-21T13:45:39.000Z
""" - sets of (checksum, celltype, subcelltype) Means that the value (deserialized from the buffer with the checksum using celltype) validates against subcelltype. Meaningful values of (celltype, subcelltype): ("python", "transformer"/"reactor"/"macro"). """ import ast import json validation_cache = set() async def...
35.25
106
0.649755
b99761d0cb84faecc9b3c9a950bfbd025716e7de
11,391
py
Python
tests/seleniumwire/proxy/test_storage.py
nck/selenium-wire
be2cca0dc556ebf84daac84a3a0315378f871f48
[ "MIT" ]
5
2020-03-11T06:08:08.000Z
2021-09-22T02:46:51.000Z
tests/seleniumwire/proxy/test_storage.py
nck/selenium-wire
be2cca0dc556ebf84daac84a3a0315378f871f48
[ "MIT" ]
3
2020-08-18T09:35:55.000Z
2021-11-15T17:49:55.000Z
tests/seleniumwire/proxy/test_storage.py
nck/selenium-wire
be2cca0dc556ebf84daac84a3a0315378f871f48
[ "MIT" ]
1
2021-03-04T08:39:21.000Z
2021-03-04T08:39:21.000Z
from datetime import datetime, timedelta from fnmatch import fnmatch import glob import gzip from http.client import HTTPMessage from io import BytesIO import os import pickle import shutil from unittest import TestCase from unittest.mock import Mock from seleniumwire.proxy.storage import RequestStorage class Reques...
39.968421
101
0.689141
98d2144a32d3d785b9afef57484fedb1bf3c1a79
775
py
Python
webstore/carts/serializers.py
dmusial98/WebStorePython
ed98764a40dd82db2b57e030ff9bf0bc777075a7
[ "Unlicense" ]
null
null
null
webstore/carts/serializers.py
dmusial98/WebStorePython
ed98764a40dd82db2b57e030ff9bf0bc777075a7
[ "Unlicense" ]
null
null
null
webstore/carts/serializers.py
dmusial98/WebStorePython
ed98764a40dd82db2b57e030ff9bf0bc777075a7
[ "Unlicense" ]
null
null
null
from .models import Cart, CartProduct from rest_framework import serializers class CartProductSerializer(serializers.HyperlinkedModelSerializer): cartId = serializers.PrimaryKeyRelatedField(queryset=Cart.objects.all(),source='cart.id') class Meta: model = CartProduct fields = ('id','productI...
29.807692
149
0.712258
91650ec09c31ee775bca50797ec710c767edfe48
1,047
py
Python
backend/breach/migrations/0008_auto_20160314_2049.py
Cancelll/rupture
cd87481717b39de2654659b7ff436500e28a0600
[ "MIT" ]
184
2016-03-31T04:19:42.000Z
2021-11-26T21:37:12.000Z
backend/breach/migrations/0008_auto_20160314_2049.py
Cancelll/rupture
cd87481717b39de2654659b7ff436500e28a0600
[ "MIT" ]
212
2016-03-31T04:32:06.000Z
2017-02-26T09:34:47.000Z
backend/breach/migrations/0008_auto_20160314_2049.py
Cancelll/rupture
cd87481717b39de2654659b7ff436500e28a0600
[ "MIT" ]
38
2016-03-31T09:09:44.000Z
2021-11-26T21:37:13.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-03-14 20:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('breach', '0007_auto_20160309_1802'), ] operations = [ migrations.AlterField(...
33.774194
164
0.637058
6172143f9fa3694b628ac83bdb7d2e47dca9e200
4,794
py
Python
spotify/playback_history.py
wijtserekker/EFMSX
f994ef674ab0273c9f7826002c2c7a405d3e3205
[ "MIT" ]
null
null
null
spotify/playback_history.py
wijtserekker/EFMSX
f994ef674ab0273c9f7826002c2c7a405d3e3205
[ "MIT" ]
null
null
null
spotify/playback_history.py
wijtserekker/EFMSX
f994ef674ab0273c9f7826002c2c7a405d3e3205
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import json import datetime import numpy as np import seaborn as sns FILENAME = 'json/fixed_history.json' TIMESTAMP = 'ts' ARTIST_NAME = 'master_metadata_album_artist_name' ARTIST_THRESHOLD = 200 DAY_RANGE = (1, 366) # Normally (1, 366) MON_RANGE = (1, 13) # Normally (1, 13) YEAR = ...
37.748031
113
0.516062
9656f5051d65b2f6b53c4a67f23360e46fddfa30
15,135
py
Python
tests/chainer_tests/testing_tests/test_function.py
Qwinpin/chainer
1dca01bc8a1aceec6ee53a66d24970b203a9fc51
[ "MIT" ]
1
2019-02-12T23:10:16.000Z
2019-02-12T23:10:16.000Z
tests/chainer_tests/testing_tests/test_function.py
nolfwin/chainer
8d776fcc1e848cb9d3800a6aab356eb91ae9d088
[ "MIT" ]
1
2018-06-26T08:16:09.000Z
2018-06-26T08:16:09.000Z
tests/chainer_tests/testing_tests/test_function.py
nolfwin/chainer
8d776fcc1e848cb9d3800a6aab356eb91ae9d088
[ "MIT" ]
1
2018-05-28T22:43:34.000Z
2018-05-28T22:43:34.000Z
import unittest import numpy import pytest import chainer from chainer import testing from chainer import utils import chainerx _inject_backend_tests = testing.inject_backend_tests( None, [ # CPU tests {}, {'use_ideep': 'always'}, # GPU tests {'use_cuda': True}, ...
34.011236
79
0.663099
c3cb38fb1d2b8970733c6cde409825a4e3adede3
348
py
Python
src/covid_health/transcoding/names/ecdc.py
ggbaro/covid-health-ita
267801c3de021078a1ca5d3b93b47515315f0300
[ "MIT" ]
3
2020-03-25T22:20:07.000Z
2020-03-29T10:01:24.000Z
src/covid_health/transcoding/names/ecdc.py
ggbaro/covid-health-ita
267801c3de021078a1ca5d3b93b47515315f0300
[ "MIT" ]
null
null
null
src/covid_health/transcoding/names/ecdc.py
ggbaro/covid-health-ita
267801c3de021078a1ca5d3b93b47515315f0300
[ "MIT" ]
null
null
null
col = { "ecdc": { "year": "year", "month": "month", "day": "day", "cases": "active_cases", "deaths": "n_deceased", "countriesAndTerritories": "geo", "geoId": "geo_id", "countryterritoryCode": "country_code", "popData2018": "population", } }...
19.333333
47
0.462644
7bfa62e33990df14beff010a84b4c08ca460ce66
462
py
Python
mmdet/datasets/voc_coco.py
CityU-AIM-Group/HTD
0be9fd844118c275abc6053b3cbd5ffb589e62ee
[ "MIT" ]
5
2022-02-18T16:26:29.000Z
2022-03-07T07:25:20.000Z
build/lib/mmdet/datasets/voc_coco.py
CityU-AIM-Group/HTD
0be9fd844118c275abc6053b3cbd5ffb589e62ee
[ "MIT" ]
1
2022-02-24T12:51:19.000Z
2022-02-28T06:31:15.000Z
mmdet/datasets/voc_coco.py
CityU-AIM-Group/HTD
0be9fd844118c275abc6053b3cbd5ffb589e62ee
[ "MIT" ]
null
null
null
import mmcv import numpy as np from . import CocoDataset from .builder import DATASETS from .custom import CustomDataset import pickle as pkl @DATASETS.register_module() class VOCDataset_coco(CocoDataset): CLASSES = ('aeroplane', 'bicycle', 'bird', 'boat', 'bottle', 'bus', 'car', 'cat', 'chair', 'c...
33
78
0.634199
525529c8146bbe2f6674245e7fff7556b989a785
132
py
Python
software-development/unit-tests/python/start.py
fahimfarhan/legendary-coding-odyssey
55289e05aa04f866201c607bed00c505cd9c4df9
[ "MIT" ]
3
2019-07-20T07:26:31.000Z
2020-08-06T09:31:09.000Z
software-development/unit-tests/python/start.py
fahimfarhan/legendary-coding-odyssey
55289e05aa04f866201c607bed00c505cd9c4df9
[ "MIT" ]
null
null
null
software-development/unit-tests/python/start.py
fahimfarhan/legendary-coding-odyssey
55289e05aa04f866201c607bed00c505cd9c4df9
[ "MIT" ]
4
2019-06-20T18:43:32.000Z
2020-10-07T16:45:23.000Z
def add(a,b): return a+b def sub(a,b): return a-b def multiply(a,b): return a*b def div(a,b): return a/b
11
18
0.522727
9477b497d26a2684a9cd0ea6a24ac7ee76a9291b
730
py
Python
src/shared/widgets.py
kierrez/movie-website
74f4ed018aba545dec190b70d62abe0ac6085462
[ "MIT" ]
1
2019-03-02T20:06:16.000Z
2019-03-02T20:06:16.000Z
src/shared/widgets.py
kierrez/movie-website
74f4ed018aba545dec190b70d62abe0ac6085462
[ "MIT" ]
1
2022-01-07T22:57:41.000Z
2022-01-07T22:57:41.000Z
src/shared/widgets.py
kierrez/movie-website
74f4ed018aba545dec190b70d62abe0ac6085462
[ "MIT" ]
null
null
null
from django.forms.widgets import SelectMultiple, ClearableFileInput, NumberInput, DateInput class MySelectMultipleWidget(SelectMultiple): template_name = 'shared/widgets/select.html' # option_template_name = 'widgets/select_option.html' class MyClearableFileInput(ClearableFileInput): template_name = 'sh...
34.761905
101
0.780822
ff76f7b38ce2318beb749ed50e2d2134dd3f335f
15,203
py
Python
analysis/print_lasso.py
fyquah95/fyp-worker-dispatcher
1ebf764e41202d18ccd1013ec2270caa6c44565a
[ "RSA-MD", "CECILL-B" ]
null
null
null
analysis/print_lasso.py
fyquah95/fyp-worker-dispatcher
1ebf764e41202d18ccd1013ec2270caa6c44565a
[ "RSA-MD", "CECILL-B" ]
null
null
null
analysis/print_lasso.py
fyquah95/fyp-worker-dispatcher
1ebf764e41202d18ccd1013ec2270caa6c44565a
[ "RSA-MD", "CECILL-B" ]
null
null
null
import argparse import logging import os import pickle import sys import StringIO import numpy as np from numpy import linalg import sexpdata import matplotlib.pyplot as plt import constants import inlining_constants import inlining_overrides import inlining_tree import learn_problem import learn_linear_general_rewar...
36.197619
140
0.628692
6460eabcb57062982b2248f5b300272b29d76d74
1,404
py
Python
Example.py
Chatreux/sudoku-solver
5894aafe5a3870d433a16ecba655f2fad19fcadf
[ "CC0-1.0" ]
null
null
null
Example.py
Chatreux/sudoku-solver
5894aafe5a3870d433a16ecba655f2fad19fcadf
[ "CC0-1.0" ]
null
null
null
Example.py
Chatreux/sudoku-solver
5894aafe5a3870d433a16ecba655f2fad19fcadf
[ "CC0-1.0" ]
null
null
null
# -*- coding: cp1252 -*- #/usr/bin/env python #Simon H. Larsen #Buttons.py - example #Project startet: d. 28. august 2012 #Import pygame modules and Buttons.py(it must be in same dir) import pygame, Buttons from pygame.locals import * #Initialize pygame pygame.init() class Button_Example: def __init__(self): ...
31.2
123
0.586182
df8f826f69eb9d76887dc9f2969ff93bd6cf0102
63,369
py
Python
pytorch_lightning/metrics/sklearns.py
Alicegaz/pytorch-lightning
96b45f15aa04e0ad7e0ed20b8717ab1599148966
[ "Apache-2.0" ]
2
2020-11-28T21:38:35.000Z
2021-03-16T12:30:18.000Z
pytorch_lightning/metrics/sklearns.py
Alicegaz/pytorch-lightning
96b45f15aa04e0ad7e0ed20b8717ab1599148966
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/metrics/sklearns.py
Alicegaz/pytorch-lightning
96b45f15aa04e0ad7e0ed20b8717ab1599148966
[ "Apache-2.0" ]
null
null
null
from typing import Any, Optional, Union, Sequence, List import numpy as np import torch from pytorch_lightning import _logger as lightning_logger from pytorch_lightning.metrics.metric import NumpyMetric from pytorch_lightning.utilities import rank_zero_warn try: from torch.distributed import ReduceOp, group exce...
36.335436
108
0.561473
29e4683de7cd1f6c6b8b7bdfb2e7f9937ead72d9
4,439
py
Python
powersimdata/scenario/scenario.py
lanesmith/PowerSimData
668fda79a316e3681d14c35099df75a7b21f87e4
[ "MIT" ]
null
null
null
powersimdata/scenario/scenario.py
lanesmith/PowerSimData
668fda79a316e3681d14c35099df75a7b21f87e4
[ "MIT" ]
null
null
null
powersimdata/scenario/scenario.py
lanesmith/PowerSimData
668fda79a316e3681d14c35099df75a7b21f87e4
[ "MIT" ]
null
null
null
from collections import OrderedDict import pandas as pd from powersimdata.data_access.context import Context from powersimdata.data_access.execute_list import ExecuteListManager from powersimdata.data_access.scenario_list import ScenarioListManager from powersimdata.scenario.analyze import Analyze from powersimdata.s...
32.881481
85
0.591575
0e5738c5707f561f3c669edd947db1d8cc82a6be
457
py
Python
lists/migrations/0003_list.py
joelstanner/TDD_python_part2
c4a987033e2fcf38256d7c10ee63d8902a5495e4
[ "MIT" ]
null
null
null
lists/migrations/0003_list.py
joelstanner/TDD_python_part2
c4a987033e2fcf38256d7c10ee63d8902a5495e4
[ "MIT" ]
null
null
null
lists/migrations/0003_list.py
joelstanner/TDD_python_part2
c4a987033e2fcf38256d7c10ee63d8902a5495e4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lists', '0002_item_text'), ] operations = [ migrations.CreateModel( name='List', fields=[ ...
21.761905
114
0.579869
ead4b552b1eca0a821ae78236a8cd8e16f7edef7
38,706
py
Python
testnet/ansible/inventory/inventory.py
ggreif/ic
ac56ec91f077c00d59eea3f73f51e14a1b3ea882
[ "Apache-2.0" ]
1
2021-11-18T02:32:05.000Z
2021-11-18T02:32:05.000Z
testnet/ansible/inventory/inventory.py
ggreif/ic
ac56ec91f077c00d59eea3f73f51e14a1b3ea882
[ "Apache-2.0" ]
null
null
null
testnet/ansible/inventory/inventory.py
ggreif/ic
ac56ec91f077c00d59eea3f73f51e14a1b3ea882
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # This script will generate the deployment inventory dynamically, based on the contents of: # 1. /testnet/env/shared-config.yml # 2. /testnet/env/<deployment>/hosts.ini # # To change the deployment config (inventory), you likely want to edit only # /testnet/env/<deployment>/hosts.ini # # The co...
43.006667
117
0.581228
310b3f1b1cab5453e1f1c019d7ae0ce576bab021
5,897
py
Python
SmartFoxServer_PRO_1.6.6/Server/lib/Lib/uu.py
ChisdealHD/DetlasWorldLinux
336465a4df1a48c9a273329fc7a09d8099c4e4d5
[ "MIT" ]
3
2015-07-29T02:31:52.000Z
2017-01-07T15:48:44.000Z
SmartFoxServer_PRO_1.6.6/Server/lib/Lib/uu.py
ChisdealHD/DetlasWorldLinux
336465a4df1a48c9a273329fc7a09d8099c4e4d5
[ "MIT" ]
4
2018-02-22T07:42:13.000Z
2021-12-13T10:53:09.000Z
SmartFoxServer_PRO_1.6.6/Server/lib/Lib/uu.py
ChisdealHD/DetlasWorldLinux
336465a4df1a48c9a273329fc7a09d8099c4e4d5
[ "MIT" ]
4
2015-09-09T11:54:37.000Z
2018-05-26T05:08:14.000Z
#! /usr/bin/env python # Copyright 1994 by Lance Ellinghouse # Cathedral City, California Republic, United States of America. # All Rights Reserved # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, # provide...
30.086735
72
0.588096
a966c595108186c7e08f689c9e0851ab1950254a
4,106
py
Python
main.py
daniellawrence/graphite-ok
29aa1a28aba83f9bef06cf78a7a581dba961479f
[ "MIT" ]
1
2016-08-13T18:27:06.000Z
2016-08-13T18:27:06.000Z
main.py
daniellawrence/graphite-ok
29aa1a28aba83f9bef06cf78a7a581dba961479f
[ "MIT" ]
null
null
null
main.py
daniellawrence/graphite-ok
29aa1a28aba83f9bef06cf78a7a581dba961479f
[ "MIT" ]
null
null
null
#!/usr/bin/env python from flask import Flask from flask import request from flask import render_template import requests from settings import * app = Flask(__name__) def _message(message, data, http_code=200): return render_template("results.html", message=message, data=data), http_code def ok(message, data): ...
29.753623
106
0.635168
decb2a0acd352c93d2396b27018f2d33231d6306
31,326
py
Python
nemo/core/neural_modules.py
johnjdailey/NeMo
b2da2cb2d3382829943d1e1c579cc11381c34220
[ "Apache-2.0" ]
1
2020-08-04T08:29:41.000Z
2020-08-04T08:29:41.000Z
nemo/core/neural_modules.py
johnjdailey/NeMo
b2da2cb2d3382829943d1e1c579cc11381c34220
[ "Apache-2.0" ]
null
null
null
nemo/core/neural_modules.py
johnjdailey/NeMo
b2da2cb2d3382829943d1e1c579cc11381c34220
[ "Apache-2.0" ]
null
null
null
# ! /usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2019-, NVIDIA CORPORATION. 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/lice...
36.17321
119
0.61741
ca660f639511102b8e987d5985fcf53d4fa5fd16
4,893
py
Python
minesweeper/minesweeper_ai.py
kindjie/minesweeper
996f64187cdfc8d68db40c58d713b7b0ffd8d237
[ "MIT" ]
1
2018-04-14T00:40:41.000Z
2018-04-14T00:40:41.000Z
minesweeper/minesweeper_ai.py
kindjie/minesweeper
996f64187cdfc8d68db40c58d713b7b0ffd8d237
[ "MIT" ]
null
null
null
minesweeper/minesweeper_ai.py
kindjie/minesweeper
996f64187cdfc8d68db40c58d713b7b0ffd8d237
[ "MIT" ]
null
null
null
from collections import namedtuple import time from minesweeper.minesweeper import Command, CmdType, BoardState class MineSweeperAI(object): NUM_GAMES = 20 THINK_DELAY = 0.1 # Seconds GAME_OVER_DELAY = 1.0 # Seconds _MIN_RISK = 0.0 _MAX_RISK = 1.0 _NUM_NEIGHBOURS = 8 CellRisk = ...
37.068182
99
0.610464
8fa714eb7d308587db21ec76b41f3bbf6b0306d5
289
py
Python
modules/mloader/constants.py
Dastan21/ScantradFranceAPI
e145a51d21123c518bd1bda90277bc06fff811b0
[ "Apache-2.0" ]
null
null
null
modules/mloader/constants.py
Dastan21/ScantradFranceAPI
e145a51d21123c518bd1bda90277bc06fff811b0
[ "Apache-2.0" ]
null
null
null
modules/mloader/constants.py
Dastan21/ScantradFranceAPI
e145a51d21123c518bd1bda90277bc06fff811b0
[ "Apache-2.0" ]
null
null
null
from enum import Enum class Language(Enum): eng = 0 spa = 1 fre = 2 ind = 3 por = 4 rus = 5 tha = 6 class ChapterType(Enum): latest = 0 sequence = 1 nosequence = 2 class PageType(Enum): single = 0 left = 1 right = 2 double = 3
11.56
24
0.525952
f94c01f90d9cfbb8e9216cf28a462d6c60cbcaf0
2,337
py
Python
src/api2db/install/clear_lab.py
TristenHarr/api2db
8c8b14280441f5153ff146c23359a0eb91022ddb
[ "MIT" ]
45
2021-05-05T01:34:20.000Z
2021-11-02T08:41:34.000Z
src/api2db/install/clear_lab.py
TristenHarr/api2db
8c8b14280441f5153ff146c23359a0eb91022ddb
[ "MIT" ]
1
2021-06-02T11:43:33.000Z
2021-06-02T20:32:29.000Z
src/api2db/install/clear_lab.py
TristenHarr/api2db
8c8b14280441f5153ff146c23359a0eb91022ddb
[ "MIT" ]
3
2021-05-08T21:49:24.000Z
2021-05-13T23:14:09.000Z
import os def clab(): """ This shell command is used to clear a lab. :: project_dir-----/ | apis-------/ | |- __init__.py | |- FooCollector.py | |- B...
31.16
113
0.350021
feaf4a2c17fb13f6795ea73e997c65ca24a32a20
3,642
py
Python
app/app/settings.py
seObando19/BlogPost
2cf6b53bc202da51fd891c2596a651a39b54e41a
[ "PostgreSQL", "Unlicense" ]
null
null
null
app/app/settings.py
seObando19/BlogPost
2cf6b53bc202da51fd891c2596a651a39b54e41a
[ "PostgreSQL", "Unlicense" ]
null
null
null
app/app/settings.py
seObando19/BlogPost
2cf6b53bc202da51fd891c2596a651a39b54e41a
[ "PostgreSQL", "Unlicense" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 3.2. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib impor...
25.468531
91
0.695222
82f1ffc25463e948452201200c957bdbf77c8961
12,110
py
Python
bootstrap/win/win_tools.py
fanbojie/depot_tools
355e97e300e8baceae8353287ad59b915dbb8196
[ "BSD-3-Clause" ]
1
2021-09-10T06:10:02.000Z
2021-09-10T06:10:02.000Z
bootstrap/win/win_tools.py
fanbojie/depot_tools
355e97e300e8baceae8353287ad59b915dbb8196
[ "BSD-3-Clause" ]
null
null
null
bootstrap/win/win_tools.py
fanbojie/depot_tools
355e97e300e8baceae8353287ad59b915dbb8196
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import collections import contextlib import fnmatch import hashlib import logging import os import platform import posixpath import shutil im...
33.921569
80
0.700908
cd415f502777060e8ed92aa8593236280dc5b274
6,587
py
Python
docs/source/conf.py
Booteille/Dragonfire
17d67c89d46a0f29cee99239109fddfccc5e6ab3
[ "MIT" ]
1
2019-04-15T14:04:03.000Z
2019-04-15T14:04:03.000Z
docs/source/conf.py
Booteille/Dragonfire
17d67c89d46a0f29cee99239109fddfccc5e6ab3
[ "MIT" ]
null
null
null
docs/source/conf.py
Booteille/Dragonfire
17d67c89d46a0f29cee99239109fddfccc5e6ab3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
29.40625
79
0.657659
56cd0a910c3865e4325e506bdc864d66485602ff
4,163
py
Python
venv/lib/python3.8/site-packages/ete3/test/test_treeview/item_faces.py
bjru/dendogram-traversal
410bea2dd852caef5fd9d4dde9306203a2d29220
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/ete3/test/test_treeview/item_faces.py
bjru/dendogram-traversal
410bea2dd852caef5fd9d4dde9306203a2d29220
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/ete3/test/test_treeview/item_faces.py
bjru/dendogram-traversal
410bea2dd852caef5fd9d4dde9306203a2d29220
[ "MIT" ]
null
null
null
# To play with random colors import colorsys import random from ... import Tree, faces, TreeStyle, NodeStyle, Face # We will need to create Qt4 items from ...treeview.qt import QtCore, Qt from ...treeview.qt import QGraphicsRectItem, QGraphicsSimpleTextItem, \ QGraphicsEllipseItem, QColor, QPen, QBrush class Int...
33.572581
79
0.665386
0d246082da4518ccd067247af37aa779b4966425
706
py
Python
setup.py
parsel-l/mcavatar
795ef2a167e1e85ba5a45187c59eb59458e0c39a
[ "MIT" ]
null
null
null
setup.py
parsel-l/mcavatar
795ef2a167e1e85ba5a45187c59eb59458e0c39a
[ "MIT" ]
null
null
null
setup.py
parsel-l/mcavatar
795ef2a167e1e85ba5a45187c59eb59458e0c39a
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="mcavatar", # Replace with your username version="1.0.0", author="parsel", author_email="parsel.pip@gmail.com", description="Lightweight & Blazing-Fast minecraft skin asset tool", ...
17.65
71
0.652975
42c11dd40a12b9c8e914463001612502b999b908
4,207
py
Python
longclaw/orders/api.py
YokoTheSlayer/longclaw
83801feb24ca6f0dfe0fb7a2ef2e9614e5b75611
[ "MIT" ]
null
null
null
longclaw/orders/api.py
YokoTheSlayer/longclaw
83801feb24ca6f0dfe0fb7a2ef2e9614e5b75611
[ "MIT" ]
null
null
null
longclaw/orders/api.py
YokoTheSlayer/longclaw
83801feb24ca6f0dfe0fb7a2ef2e9614e5b75611
[ "MIT" ]
null
null
null
from rest_framework.decorators import detail_route from rest_framework import permissions, status, viewsets from rest_framework.response import Response from longclaw.orders.models import Order, OrderItem from longclaw.orders.serializers import OrderSerializer from os import environ import requests import datetime impo...
35.652542
96
0.601854
cb694f8a8ad9284a2fdd8bac48ede33cb9f59555
51
py
Python
macefash/settings.example.py
palcu/macefash
6c7b9ab87708546ed9391205a602beb48beb00d8
[ "MIT" ]
1
2018-04-25T11:33:55.000Z
2018-04-25T11:33:55.000Z
macefash/settings.example.py
palcu/macefash
6c7b9ab87708546ed9391205a602beb48beb00d8
[ "MIT" ]
null
null
null
macefash/settings.example.py
palcu/macefash
6c7b9ab87708546ed9391205a602beb48beb00d8
[ "MIT" ]
1
2018-04-25T11:33:56.000Z
2018-04-25T11:33:56.000Z
SETTINGS = { 'auth': [('schioara', 'oarba')] }
12.75
35
0.490196
c28d52f132cd3ac7301ce02a6a8c98e47c6e7d3e
242,280
py
Python
qbob/formatter/QSharpParser.py
quantum-experiments/qbob
6b33ea48a03e1e194dc87878b1d88395e560dff0
[ "MIT" ]
null
null
null
qbob/formatter/QSharpParser.py
quantum-experiments/qbob
6b33ea48a03e1e194dc87878b1d88395e560dff0
[ "MIT" ]
null
null
null
qbob/formatter/QSharpParser.py
quantum-experiments/qbob
6b33ea48a03e1e194dc87878b1d88395e560dff0
[ "MIT" ]
null
null
null
# Generated from QSharpParser.g4 by ANTLR 4.9 # encoding: utf-8 from antlr4 import * from io import StringIO import sys if sys.version_info[1] > 5: from typing import TextIO else: from typing.io import TextIO def serializedATN(): with StringIO() as buf: buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\...
40.019822
1,419
0.58037
f693e9c0c4f7bec988dd5a86415ebc79458b6ea0
994
py
Python
kubernetes_asyncio/test/test_v1beta1_cron_job_spec.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_v1beta1_cron_job_spec.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_v1beta1_cron_job_spec.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.13.5 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import kube...
24.85
124
0.7334
d47c913f8c6674157d2a4dc4bd3a9fa4ca94ba46
4,726
py
Python
bin/plans_cli.py
arup-group/london-pop-synth
38e56230d440d49ddb2e2841d46a5cbaab260c35
[ "MIT" ]
1
2020-11-25T06:56:43.000Z
2020-11-25T06:56:43.000Z
bin/plans_cli.py
arup-group/london-pop-synth
38e56230d440d49ddb2e2841d46a5cbaab260c35
[ "MIT" ]
null
null
null
bin/plans_cli.py
arup-group/london-pop-synth
38e56230d440d49ddb2e2841d46a5cbaab260c35
[ "MIT" ]
null
null
null
""" Fred Shone 20th Nov 2018 Command line script for converting TFL csv simulated population data into Matsim xml format - Sampling - Activity inference - Mode conversion - Activity inference validation - Write to xml format for MATSim - Write to csv format for viz """ import argparse import os from mimi.core import s...
34.246377
117
0.516081
43d9df133792652927d204127ab784eee427f9e9
2,147
py
Python
forceDAQ/data_handling/read_force_data.py
raunaqbhirangi/pyForceDAQ
a2a41cd7a4a4f0afd178bc5555ba4e0540902d30
[ "MIT" ]
8
2016-06-27T12:07:14.000Z
2022-03-29T08:59:44.000Z
forceDAQ/data_handling/read_force_data.py
raunaqbhirangi/pyForceDAQ
a2a41cd7a4a4f0afd178bc5555ba4e0540902d30
[ "MIT" ]
1
2020-01-15T20:29:53.000Z
2020-07-31T17:35:34.000Z
forceDAQ/data_handling/read_force_data.py
raunaqbhirangi/pyForceDAQ
a2a41cd7a4a4f0afd178bc5555ba4e0540902d30
[ "MIT" ]
3
2020-01-14T18:31:39.000Z
2022-03-25T05:56:40.000Z
""" Functions to read your force and event data """ __author__ = 'Oliver Lindemann' import os import sys import gzip from collections import OrderedDict import numpy as np TAG_COMMENTS = "#" TAG_UDPDATA = TAG_COMMENTS + "UDP" TAG_DAQEVENTS = TAG_COMMENTS + "T" def _csv(line): return list(map(lambda x: x.strip(...
23.855556
76
0.581276
dfc5ecbb4c8444bb13e33e2ebe88f2e9d56fb6df
549
py
Python
semisup/tools/data_dirs.py
hansroh/learning_by_association
21878a84baf3cc89fcc32e7cc591038d231bd00e
[ "Apache-2.0" ]
null
null
null
semisup/tools/data_dirs.py
hansroh/learning_by_association
21878a84baf3cc89fcc32e7cc591038d231bd00e
[ "Apache-2.0" ]
null
null
null
semisup/tools/data_dirs.py
hansroh/learning_by_association
21878a84baf3cc89fcc32e7cc591038d231bd00e
[ "Apache-2.0" ]
null
null
null
""" This file contains the directory paths to data sets on your hard drive. Change the directories and .gitignore this file. """ synth = '/work/haeusser/data/synth/' stl10 = '/work/haeusser/data/stl10_binary/' svhn = '/work/haeusser/data/svhn/' mnist = 'mnidata' imagenet = '/work/haeusser/data/imagenet/raw-data/' ima...
36.6
109
0.746812
671ddbf8709248d5f877244309194a7ef9e2cc38
21,089
py
Python
scripts/pretraining/torch/bert/run_pretraining.py
leezu/gluon-nlp
19de74c2b03f22dde8311a0225b4571c2deef0e4
[ "Apache-2.0" ]
2,461
2018-04-25T03:47:22.000Z
2022-03-31T03:58:48.000Z
scripts/pretraining/torch/bert/run_pretraining.py
leezu/gluon-nlp
19de74c2b03f22dde8311a0225b4571c2deef0e4
[ "Apache-2.0" ]
1,450
2018-04-25T16:14:25.000Z
2022-02-24T21:02:57.000Z
scripts/pretraining/torch/bert/run_pretraining.py
leezu/gluon-nlp
19de74c2b03f22dde8311a0225b4571c2deef0e4
[ "Apache-2.0" ]
578
2018-04-25T04:55:18.000Z
2022-03-16T03:01:45.000Z
"""Pretraining on Code""" import argparse import functools import json import logging import os import pathlib import random import shutil import time import warnings from contextlib import suppress import gluonnlp as nlp import numpy as np import pyarrow as pa import pyarrow.compute import pyarrow.dataset import torc...
47.284753
120
0.635165
754f911b750678fd7de9bd04ce4a4de6f1b78d7e
18,940
py
Python
test/cpython/test_cmath.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/cpython/test_cmath.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/cpython/test_cmath.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
from test.test_support import run_unittest from test.test_math import parse_testfile import unittest import os, sys import cmath, math from cmath import phase, polar, rect, pi INF = float('inf') NAN = float('nan') # Pyston change: pull testcases file from source directory # locate file with test values if __name__ ==...
39.051546
80
0.562091
63f5895326f200d3462530f2df6d638cccdc88ec
2,308
py
Python
test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/rest/datetimerfc1123/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/rest/datetimerfc1123/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/rest/datetimerfc1123/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.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 ...
56.292683
96
0.771664
6dee37b256ec3416d0e14ad49c7d8c106de2f620
170
py
Python
tests/test_three.py
paulbordea/session3
a2edf697cbe9b9aa98383562416d4fdf1e19b482
[ "MIT" ]
null
null
null
tests/test_three.py
paulbordea/session3
a2edf697cbe9b9aa98383562416d4fdf1e19b482
[ "MIT" ]
null
null
null
tests/test_three.py
paulbordea/session3
a2edf697cbe9b9aa98383562416d4fdf1e19b482
[ "MIT" ]
null
null
null
import pytest from hypothesis import given import hypothesis.strategies as st @given(st.integers(), st.integers()) def test_adunare(x, y): assert x + y == y + x
14.166667
36
0.7
9a718a121740b6bccd7f600a698ab66ab1dcb512
7,483
py
Python
test_bakthat.py
snario/bakthat
33f0a9b56d4273fe7a74bdb50acbe5ea5d51c384
[ "MIT" ]
144
2015-01-07T19:43:43.000Z
2022-03-13T02:06:16.000Z
test_bakthat.py
snario/bakthat
33f0a9b56d4273fe7a74bdb50acbe5ea5d51c384
[ "MIT" ]
13
2015-02-13T01:57:18.000Z
2021-05-25T20:07:54.000Z
test_bakthat.py
snario/bakthat
33f0a9b56d4273fe7a74bdb50acbe5ea5d51c384
[ "MIT" ]
31
2015-03-11T18:56:21.000Z
2022-01-14T09:45:00.000Z
# -*- encoding: utf-8 -*- import bakthat import tempfile import hashlib import os import time import unittest import logging log = logging.getLogger() handler = logging.StreamHandler() handler.setLevel(logging.DEBUG) handler.addFilter(bakthat.BakthatFilter()) handler.setFormatter(logging.Formatter('%(asctime)s - %(le...
37.984772
106
0.644795
6de5e5f881003b4ed8f0ede8c122bc61e8202a00
309
py
Python
examples/web/python-cherrypy-minimal/server.py
gtrafimenkov/dev-toolkit
8d92a40db5a4dffdc3506992aba49bc9bea46e2f
[ "MIT" ]
null
null
null
examples/web/python-cherrypy-minimal/server.py
gtrafimenkov/dev-toolkit
8d92a40db5a4dffdc3506992aba49bc9bea46e2f
[ "MIT" ]
null
null
null
examples/web/python-cherrypy-minimal/server.py
gtrafimenkov/dev-toolkit
8d92a40db5a4dffdc3506992aba49bc9bea46e2f
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # Copyright (c) 2019 Gennady Trafimenkov import cherrypy class HelloWorld(object): @cherrypy.expose def index(self): return "Hello World!" cherrypy.config.update({'server.socket_host': '0.0.0.0', 'server.socket_port': 9090}) cherrypy.quickstart(HelloWorld())
23.769231
85
0.721683
423db36f94b2c131e92c3a9b7e79848ddf2b952f
1,751
py
Python
models/movies.py
wanderindev/udacity-casting-agency
a123ff26ffc565bfff4f4f829ae7613a6ccb366d
[ "MIT" ]
1
2021-01-10T19:34:24.000Z
2021-01-10T19:34:24.000Z
models/movies.py
wanderindev/udacity-casting-agency
a123ff26ffc565bfff4f4f829ae7613a6ccb366d
[ "MIT" ]
1
2021-04-30T21:07:42.000Z
2021-04-30T21:07:42.000Z
models/movies.py
wanderindev/udacity-casting-agency
a123ff26ffc565bfff4f4f829ae7613a6ccb366d
[ "MIT" ]
null
null
null
from typing import Dict, List, Union from db import db from models.actors import ActorModel from models.model_mixin import ModelMixin MovieJSON = Dict[str, Union[int, str, List[str]]] """ Create an association table for the many-to-many relation between movies and actors """ movies_actors = db.Table( ...
28.241935
75
0.618504
002d19b388f6b51aa562875c65c88b7f28c6c576
115
py
Python
lib/pylint/test/regrtest_data/no_stdout_encoding.py
willemneal/Docky
d3504e1671b4a6557468234c263950bfab461ce4
[ "MIT" ]
3
2018-11-25T01:09:55.000Z
2021-08-24T01:56:36.000Z
lib/pylint/test/regrtest_data/no_stdout_encoding.py
willemneal/Docky
d3504e1671b4a6557468234c263950bfab461ce4
[ "MIT" ]
7
2021-02-08T20:22:15.000Z
2022-03-11T23:19:41.000Z
lib/pylint/test/regrtest_data/no_stdout_encoding.py
willemneal/Docky
d3504e1671b4a6557468234c263950bfab461ce4
[ "MIT" ]
3
2018-11-09T03:38:09.000Z
2020-02-24T06:26:10.000Z
#-*-coding:iso-8859-1-*- class test: def __init__ (self, dir): testString = u"répertoire :\n%s !"%dir
19.166667
46
0.582609
6737923d21193df7f8b256e97cb723735421bf35
511
py
Python
testprojects/src/python/interpreter_selection/echo_interpreter_version.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
94
2015-01-15T21:24:20.000Z
2022-02-16T16:55:43.000Z
testprojects/src/python/interpreter_selection/echo_interpreter_version.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
5
2020-07-18T01:04:43.000Z
2021-05-10T08:40:56.000Z
testprojects/src/python/interpreter_selection/echo_interpreter_version.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
47
2015-02-25T02:20:07.000Z
2022-03-21T00:59:16.000Z
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import sys # Useful for testing which interpreter the pex machinery selects. v = sys.v...
26.894737
82
0.765166
cba291930ee534f412039ba07785faee300a5912
98
py
Python
GipProjectClone/adddd.py
Mushrume/AppPython-GipGame
e92a7f1c9d44f302cbbf8d79f3ab8cdf297d6981
[ "MIT" ]
null
null
null
GipProjectClone/adddd.py
Mushrume/AppPython-GipGame
e92a7f1c9d44f302cbbf8d79f3ab8cdf297d6981
[ "MIT" ]
6
2021-10-09T03:40:30.000Z
2021-11-26T02:25:39.000Z
GipProjectClone/adddd.py
Mushrume/AppPython-GipGame
e92a7f1c9d44f302cbbf8d79f3ab8cdf297d6981
[ "MIT" ]
4
2021-09-08T10:51:47.000Z
2021-11-23T19:20:47.000Z
from rich.traceback import install install() def add(x, y): return x+y add(1, "a")
10.888889
35
0.591837
c5dbec713bc194a6916e548695dd8b86bc98a04d
3,317
py
Python
tests/utils/mock_server.py
ant-lastline/cb-lastline-connector
ccdf2c7e33dc94acb382fb4694b9a65b44142b26
[ "MIT" ]
2
2017-01-23T22:09:23.000Z
2018-07-16T04:37:41.000Z
tests/utils/mock_server.py
ant-lastline/cb-lastline-connector
ccdf2c7e33dc94acb382fb4694b9a65b44142b26
[ "MIT" ]
null
null
null
tests/utils/mock_server.py
ant-lastline/cb-lastline-connector
ccdf2c7e33dc94acb382fb4694b9a65b44142b26
[ "MIT" ]
1
2016-08-16T23:45:29.000Z
2016-08-16T23:45:29.000Z
import logging import os try: import simplejson as json except ImportError: import json from flask import Flask, request, make_response, Response from cStringIO import StringIO import zipfile def get_mocked_server(binary_directory): mocked_cb_server = Flask('cb') files = os.listdir(binary_directory...
34.195876
109
0.601447
ac425205153af7646fa62983e5e337dc51af899e
6,039
py
Python
MACD.py
YashSheth1/Algo-Trading
0ef8f55978ed93af1eb69f1fb9aedd6002f7ea51
[ "MIT" ]
null
null
null
MACD.py
YashSheth1/Algo-Trading
0ef8f55978ed93af1eb69f1fb9aedd6002f7ea51
[ "MIT" ]
null
null
null
MACD.py
YashSheth1/Algo-Trading
0ef8f55978ed93af1eb69f1fb9aedd6002f7ea51
[ "MIT" ]
null
null
null
from get_agg import get_agg #import sys """ ---MACD--- 1. Definations 1.1 MA 1.2 MAcalculation 1.3 showdata 1.4 showEdata(Exponential) ---Flow Of CODE--- 2.1 Configerations are received from trading Script 2.2 GET Aggregated Candle...
34.508571
114
0.472264
6573f218a2e6ca430c21d411802c39aa707fbd99
12,535
py
Python
venv/lib/python3.8/site-packages/pip/_vendor/chardet/langgreekmodel.py
realxwx/leetcode-solve
3a7d7d8e92a5fd5fecc347d141a1c532b92e763e
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/pip/_vendor/chardet/langgreekmodel.py
realxwx/leetcode-solve
3a7d7d8e92a5fd5fecc347d141a1c532b92e763e
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/pip/_vendor/chardet/langgreekmodel.py
realxwx/leetcode-solve
3a7d7d8e92a5fd5fecc347d141a1c532b92e763e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 # Author: xiaoweixiang ######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Communicator client code. # # # Contributor(s): # Mark Pilgrim - port to Python # # This library is free software; you can redistribute it and/or # modify it under the te...
55.711111
70
0.546869
22427aa2238d56acd1ef5dd405848a28afe8b769
247,346
py
Python
json_to_relation/edxTrackLogJSONParser.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
4
2015-10-10T19:09:49.000Z
2021-09-02T00:58:06.000Z
json_to_relation/edxTrackLogJSONParser.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
null
null
null
json_to_relation/edxTrackLogJSONParser.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
8
2015-05-16T14:33:33.000Z
2019-10-24T08:56:25.000Z
# Copyright (c) 2014, Stanford University # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
46.625071
2,478
0.591018
d800f6b6d26f0bbd845520ae8bf0730b4d4a285b
5,201
py
Python
m5-101/content/code/equation-solver-solution.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
4
2021-03-25T13:15:38.000Z
2021-11-10T12:29:19.000Z
docs/content/code/equation-solver-solution.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
null
null
null
docs/content/code/equation-solver-solution.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
4
2021-03-25T13:18:10.000Z
2021-04-08T13:44:48.000Z
''' Author: Chonghan Chen (paulcccccch@gmail.com) ----- Last Modified: Thursday, 18th March 2021 3:06:59 pm Modified By: Chonghan Chen (paulcccccch@gmail.com) ----- Copyright (c) 2021 IceWould Information Technology Co., Ltd. ''' import math ################# ### Section 1 ### ################# def solve_linear(a, b):...
29.055866
125
0.467795
caaa2531a9b87d7ab7addbf6464ff2510794ff75
5,473
py
Python
setup.py
Richa-123-singh/jina
731e6b45756be9a9af2fd118855e010e63c2b541
[ "Apache-2.0" ]
1
2020-11-14T09:54:09.000Z
2020-11-14T09:54:09.000Z
setup.py
Richa-123-singh/jina
731e6b45756be9a9af2fd118855e010e63c2b541
[ "Apache-2.0" ]
null
null
null
setup.py
Richa-123-singh/jina
731e6b45756be9a9af2fd118855e010e63c2b541
[ "Apache-2.0" ]
null
null
null
import sys from os import path from setuptools import find_packages from setuptools import setup from setuptools.command.develop import develop from setuptools.command.install import install PY37 = 'py37' PY38 = 'py38' if sys.version_info >= (3, 8, 0): py_tag = PY38 elif sys.version_info >= (3, 7, 0): py_tag...
32.772455
119
0.592728
0d6871252e6ccd366749d72260a04c93a040c3d5
1,540
py
Python
photo/models.py
Tito-74/Gallery
67c44783f0d999d61cf450963521f6eb0f3cb995
[ "MIT" ]
null
null
null
photo/models.py
Tito-74/Gallery
67c44783f0d999d61cf450963521f6eb0f3cb995
[ "MIT" ]
null
null
null
photo/models.py
Tito-74/Gallery
67c44783f0d999d61cf450963521f6eb0f3cb995
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Location(models.Model): location = models.CharField(max_length =30) def __str__(self): return self.location def delete_location(): self.delete() @classmethod def get_locations(cls): location = Location.obj...
20.810811
73
0.632468
0e699d2816cea917a1e9b527bb11f40b7e0ab2ff
1,117
py
Python
mysite/main/urls.py
DanHunt27/Music-Website
2764695997963047009bf6c74f14c370b6225c85
[ "MIT" ]
null
null
null
mysite/main/urls.py
DanHunt27/Music-Website
2764695997963047009bf6c74f14c370b6225c85
[ "MIT" ]
12
2020-06-06T01:27:27.000Z
2022-02-11T03:45:47.000Z
mysite/main/urls.py
DanHunt27/Music-Website
2764695997963047009bf6c74f14c370b6225c85
[ "MIT" ]
null
null
null
from django.urls import path from .views import ( PostListView, PostCreateView, PostUpdateView, PostDeleteView, PostExploreView, UserPostListView, CommentCreateView, CommentDeleteView ) from . import views import sys from django.contrib.auth.models import User urlpatterns = [ path('...
38.517241
94
0.688451
151278cbdcbec98b187195f5d133b090ebbf20fe
199
py
Python
tests/browsable_api/auth_urls.py
scratchmex/django-rest-framework
34a93e6a50365dc8901fa493b1bf6d4eb3d09bf7
[ "BSD-3-Clause" ]
17,395
2017-03-31T21:13:13.000Z
2022-03-31T21:33:13.000Z
tests/browsable_api/auth_urls.py
scratchmex/django-rest-framework
34a93e6a50365dc8901fa493b1bf6d4eb3d09bf7
[ "BSD-3-Clause" ]
2,983
2017-03-31T14:43:26.000Z
2022-03-31T20:34:23.000Z
tests/browsable_api/auth_urls.py
scratchmex/django-rest-framework
34a93e6a50365dc8901fa493b1bf6d4eb3d09bf7
[ "BSD-3-Clause" ]
5,159
2017-03-31T15:06:32.000Z
2022-03-31T03:25:17.000Z
from django.urls import include, path from .views import MockView urlpatterns = [ path('', MockView.as_view()), path('auth/', include('rest_framework.urls', namespace='rest_framework')), ]
22.111111
78
0.703518
3ede1cfe1c9152f85f3d592a025fcfce3843790e
1,382
py
Python
python/masa/lib/python3.4/site-packages/sdl2/test/syswm_test.py
tekktonic/programming
139959ab9934912d4c531e5ee8b1f39094a6823c
[ "0BSD" ]
3
2016-07-16T12:19:43.000Z
2021-04-22T19:25:53.000Z
sdl2/test/syswm_test.py
GreatFruitOmsk/py-sdl2
8d1465b6238ab33c14ce0dc473529e7b38650062
[ "DOC" ]
null
null
null
sdl2/test/syswm_test.py
GreatFruitOmsk/py-sdl2
8d1465b6238ab33c14ce0dc473529e7b38650062
[ "DOC" ]
3
2018-09-13T09:08:02.000Z
2021-04-07T18:44:32.000Z
import sys import unittest import ctypes from ..stdinc import SDL_TRUE from .. import video, syswm, version class SDLSysWMTest(unittest.TestCase): __tags__ = ["sdl"] def setUp(self): video.SDL_VideoInit(None) def tearDown(self): video.SDL_VideoQuit() def test_SDL_GetWindowWMInfo(sel...
34.55
74
0.638929
093b10b0cfba501db3237cec8bfb72f9ad02d5d6
1,880
py
Python
projects/cats/tests/EC1.py
jjllzhang/CS61A
57b68c7c06999210d96499f6d84e4ec99085d396
[ "MIT" ]
1
2022-01-22T11:45:01.000Z
2022-01-22T11:45:01.000Z
projects/cats/tests/EC1.py
jjllzhang/CS61A
57b68c7c06999210d96499f6d84e4ec99085d396
[ "MIT" ]
null
null
null
projects/cats/tests/EC1.py
jjllzhang/CS61A
57b68c7c06999210d96499f6d84e4ec99085d396
[ "MIT" ]
null
null
null
test = { 'name': 'Problem EC1', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" >>> key_distance_diff("wird", "word", 4) 0.6834861261734088 >>> key_distance_diff("aird", "word", 4) 1.650081475501692 >>> key_distance_diff("bord", "w...
30.322581
101
0.500532
1d93efcf125b381931c1a148e80aedaff60d135f
1,954
py
Python
color_transfer.py
alissonpina/color_transfer
2d4488d6bc9fca934644382ac649ffff025d2db9
[ "MIT" ]
null
null
null
color_transfer.py
alissonpina/color_transfer
2d4488d6bc9fca934644382ac649ffff025d2db9
[ "MIT" ]
null
null
null
color_transfer.py
alissonpina/color_transfer
2d4488d6bc9fca934644382ac649ffff025d2db9
[ "MIT" ]
null
null
null
import numpy as np import cv2 import os from tkinter import filedialog def get_sources(): sources = [i for i in os.listdir('_source') if i[-4:] in ['.png', '.bmp', '.jpg']] if len(sources) == 0: print("There must be at least one image in the '_source' folder.") else: return sou...
29.164179
141
0.495394
0a9e0196fbb46645b03e537ad7f822595ae970b6
477
py
Python
p191_number_of_1_bits.py
moonfruit/leetcode
796b736d9b7b31f8052df6a0a140e34904b8230c
[ "MIT" ]
null
null
null
p191_number_of_1_bits.py
moonfruit/leetcode
796b736d9b7b31f8052df6a0a140e34904b8230c
[ "MIT" ]
null
null
null
p191_number_of_1_bits.py
moonfruit/leetcode
796b736d9b7b31f8052df6a0a140e34904b8230c
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- utf-8 -*- class Solution: # @param n, an integer # @return an integer def hammingWeight(self, n): sum = 0 while n: n &= n - 1 # this is used to delete the right "1" of n. sum += 1 return sum def hammingWeight2(self, n): s...
19.875
68
0.48218
62d860404bfd8f7a91ed0058712bd6c316e5b999
1,782
py
Python
solnml/components/hpo_optimizer/mfse_optimizer.py
williamy1996/Autoexpression
b470d9ff67074c8b076abbc1dce359db9a36f921
[ "MIT" ]
null
null
null
solnml/components/hpo_optimizer/mfse_optimizer.py
williamy1996/Autoexpression
b470d9ff67074c8b076abbc1dce359db9a36f921
[ "MIT" ]
null
null
null
solnml/components/hpo_optimizer/mfse_optimizer.py
williamy1996/Autoexpression
b470d9ff67074c8b076abbc1dce359db9a36f921
[ "MIT" ]
null
null
null
import time import numpy as np from solnml.components.hpo_optimizer.base_optimizer import BaseHPOptimizer from solnml.components.utils.mfse_utils.mfsebase import MfseBase class MfseOptimizer(BaseHPOptimizer, MfseBase): def __init__(self, evaluator, config_space, time_limit=None, evaluation_limit=None, ...
44.55
108
0.686869
80c6fad9de20ca309b48540e314f67099eb36d0e
2,592
py
Python
dragonfire/coref.py
ismlkrkmz/Dragonfire
7a5e22bd07ba9734d68fe76ce77d80164d47249e
[ "MIT" ]
1,320
2017-06-20T21:47:35.000Z
2022-03-29T08:53:31.000Z
dragonfire/coref.py
ismlkrkmz/Dragonfire
7a5e22bd07ba9734d68fe76ce77d80164d47249e
[ "MIT" ]
120
2017-06-21T13:16:40.000Z
2022-03-24T18:12:21.000Z
dragonfire/coref.py
ismlkrkmz/Dragonfire
7a5e22bd07ba9734d68fe76ce77d80164d47249e
[ "MIT" ]
229
2017-06-21T05:38:43.000Z
2022-03-14T14:03:10.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ .. module:: coref :platform: Unix :synopsis: the top-level submodule of Dragonfire that aims to create corefference based dialogs. .. moduleauthor:: Mehmet Mert Yıldıran <mert.yildiran@bil.omu.edu.tr> """ import itertools # Functions creating iterators for effi...
26.44898
171
0.560957
3a2f693efe954cf0858763a51db6ea7c39b20490
7,583
py
Python
src/probnum/filtsmooth/_gaussfiltsmooth/_unscentedtransform.py
christopheroates/probnum
4ae63da307bd7279c3ce477ef68cbd0b8e30c73a
[ "MIT" ]
226
2019-11-01T09:44:09.000Z
2022-03-30T23:17:17.000Z
src/probnum/filtsmooth/_gaussfiltsmooth/_unscentedtransform.py
christopheroates/probnum
4ae63da307bd7279c3ce477ef68cbd0b8e30c73a
[ "MIT" ]
590
2019-11-21T08:32:30.000Z
2022-03-31T12:37:37.000Z
src/probnum/filtsmooth/_gaussfiltsmooth/_unscentedtransform.py
christopheroates/probnum
4ae63da307bd7279c3ce477ef68cbd0b8e30c73a
[ "MIT" ]
39
2020-01-13T16:29:45.000Z
2022-03-28T16:16:54.000Z
"""Unscented Transform.""" import numpy as np class UnscentedTransform: """Used for unscented Kalman filter. See also p. 7 ("Unscented transform:") of [1]_. Parameters ---------- dimension : int Spatial dimensionality spread : float Spread of the sigma points around mean ...
29.277992
82
0.60662
e6aa8d1f64c82d8deaee1350382b8abe74c18ee0
5,929
py
Python
bindings/python/ensmallen_graph/datasets/networkrepository/cl100001d8trial3.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/networkrepository/cl100001d8trial3.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/networkrepository/cl100001d8trial3.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph CL-10000-1d8-trial3. The graph is automatically retrieved from the NetworkRepository repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Dateti...
32.398907
94
0.690336
f0f12fe253ed767986ddf45c429e1ddd481cfbdd
10,323
py
Python
ludwig/data/dataset/ray.py
Playfloor/ludwig
a5339b988fd28fd611cdaa08b64f4c6ff0e3f229
[ "Apache-2.0" ]
null
null
null
ludwig/data/dataset/ray.py
Playfloor/ludwig
a5339b988fd28fd611cdaa08b64f4c6ff0e3f229
[ "Apache-2.0" ]
null
null
null
ludwig/data/dataset/ray.py
Playfloor/ludwig
a5339b988fd28fd611cdaa08b64f4c6ff0e3f229
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # Copyright (c) 2019 Uber Technologies, 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 a...
32.158879
116
0.622881
ee324ab30d9f714444d06ce3517f12521adbed08
437
py
Python
tests/test_deprecation.py
Roynecro97/easypy
9f36732b558477557b8a57cfad2840767eff0d12
[ "BSD-3-Clause" ]
7
2020-03-23T08:30:29.000Z
2020-12-05T14:51:49.000Z
tests/test_deprecation.py
Roynecro97/easypy
9f36732b558477557b8a57cfad2840767eff0d12
[ "BSD-3-Clause" ]
null
null
null
tests/test_deprecation.py
Roynecro97/easypy
9f36732b558477557b8a57cfad2840767eff0d12
[ "BSD-3-Clause" ]
6
2020-04-28T12:20:14.000Z
2022-02-15T15:01:42.000Z
import pytest from easypy.deprecation import deprecated_arguments @pytest.mark.filterwarnings("ignore::DeprecationWarning") def test_deprecated_arguments(): @deprecated_arguments(foo='bar') def func(bar): return 'bar is %s' % (bar,) assert func(1) == func(foo=1) == func(bar=1) == 'bar is 1' ...
24.277778
62
0.663616
086dee3924246ece52b68b95827638fcfea4405d
77,922
py
Python
qatrack/qa/tests/test_models.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
20
2021-03-11T18:37:32.000Z
2022-03-23T19:38:07.000Z
qatrack/qa/tests/test_models.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
75
2021-02-12T02:37:33.000Z
2022-03-29T20:56:16.000Z
qatrack/qa/tests/test_models.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
5
2021-04-07T15:46:53.000Z
2021-09-18T16:55:00.000Z
from unittest import mock from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.core.cache import cache from django.core.exceptions import ValidationError from django.db.utils import IntegrityError from django.test import TestCase from django.utils import timezone from...
39
120
0.653256
9de022545835a99e689a01048bed4f07c359d773
784
py
Python
src/python/pants/backend/python/lint/yapf/skip_field.py
hephex/pants
5798377b2876dc1d5355e407972a441ea7af06d7
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/lint/yapf/skip_field.py
hephex/pants
5798377b2876dc1d5355e407972a441ea7af06d7
[ "Apache-2.0" ]
12
2022-01-06T23:20:22.000Z
2022-03-17T05:06:37.000Z
src/python/pants/backend/python/lint/yapf/skip_field.py
hephex/pants
5798377b2876dc1d5355e407972a441ea7af06d7
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.backend.python.target_types import ( PythonSourcesGeneratorTarget, PythonSourceTarget, PythonTestsGeneratorTarget, PythonTestTarget, ) from pants.engine.target i...
30.153846
74
0.758929
26b4619649b07e0b1e3cfc05ca3b731e540cf69e
7,087
py
Python
tools/codegen/gen_vmap_plumbing.py
bmahlbrand/functorch
b83273b25213f556f05a065163163ba531e24750
[ "BSD-3-Clause" ]
null
null
null
tools/codegen/gen_vmap_plumbing.py
bmahlbrand/functorch
b83273b25213f556f05a065163163ba531e24750
[ "BSD-3-Clause" ]
null
null
null
tools/codegen/gen_vmap_plumbing.py
bmahlbrand/functorch
b83273b25213f556f05a065163163ba531e24750
[ "BSD-3-Clause" ]
null
null
null
from tools.codegen.api.types import ( DispatcherSignature, ) from tools.codegen.model import ( BaseTy, Variant, OptionalType, BaseType, ListType, NativeFunction, Type, Argument, Return, SchemaKind, Tag ) from tools.codegen.context import method_with_native_function from tools.codegen.utils import mapMaybe f...
33.116822
117
0.695075
39aa3ebb047a59808f1501cdffba0b509bbfa967
4,679
pyw
Python
Section_04_code/PyQT4/Lib/site-packages/PyQt4/examples/animation/appchooser/appchooser.pyw
PacktPublishing/Python-Machine-Learning-Solutions-V-
8bb80a43a7c64032c25c1023faaa29bbfbd39d45
[ "MIT" ]
1
2022-03-16T02:10:30.000Z
2022-03-16T02:10:30.000Z
Section_04_code/PyQT4/Lib/site-packages/PyQt4/examples/animation/appchooser/appchooser.pyw
wensincai/Python-Machine-Learning-Solutions-V-
130c9881757fa90bbb124d48ddd0c6c1136fa20c
[ "MIT" ]
null
null
null
Section_04_code/PyQT4/Lib/site-packages/PyQt4/examples/animation/appchooser/appchooser.pyw
wensincai/Python-Machine-Learning-Solutions-V-
130c9881757fa90bbb124d48ddd0c6c1136fa20c
[ "MIT" ]
2
2019-05-28T11:58:59.000Z
2020-09-23T17:21:19.000Z
#!/usr/bin/env python ############################################################################# ## ## Copyright (C) 2010 Riverbank Computing Limited. ## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ## All rights reserved. ## ## This file is part of the examples of PyQt. ## ## $QT_BEGIN_LICENS...
34.404412
77
0.684121
4957208efdc8591bcdaa1eb566b3ac3632cc5394
234
py
Python
Python/07 - Collections/Word Order.py
sohammanjrekar/HackerRank
1f5010133a1ac1e765e855a086053c97d9e958be
[ "MIT" ]
null
null
null
Python/07 - Collections/Word Order.py
sohammanjrekar/HackerRank
1f5010133a1ac1e765e855a086053c97d9e958be
[ "MIT" ]
null
null
null
Python/07 - Collections/Word Order.py
sohammanjrekar/HackerRank
1f5010133a1ac1e765e855a086053c97d9e958be
[ "MIT" ]
null
null
null
""" Author: Eda AYDIN """ from collections import Counter n = int(input()) word_list = [] for i in range(n): word_list.append(input().strip()) count = Counter(word_list) print(len(count)) print(*count.values())
14.625
38
0.628205
d0da1768efc7745ccde30bcd0c71c8c88ab91d5c
3,465
py
Python
configs/ttfnet/ttfnet_d53_beta04_2lr_2x.py
mrsempress/mmdetection
cb650560c97a2fe56a9b369a1abc8ec17e06583a
[ "Apache-2.0" ]
null
null
null
configs/ttfnet/ttfnet_d53_beta04_2lr_2x.py
mrsempress/mmdetection
cb650560c97a2fe56a9b369a1abc8ec17e06583a
[ "Apache-2.0" ]
null
null
null
configs/ttfnet/ttfnet_d53_beta04_2lr_2x.py
mrsempress/mmdetection
cb650560c97a2fe56a9b369a1abc8ec17e06583a
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='TTFNet', pretrained='./pretrain/darknet53.pth', backbone=dict( type='DarknetV3', layers=[1, 2, 8, 8, 4], inplanes=[3, 32, 64, 128, 256, 512], planes=[32, 64, 128, 256, 512, 1024], norm_cfg=dict(type='BN'), out_indices=(1, 2...
31.216216
104
0.6329
ca4cb09f7e0315df213cf92a10dff058f3f234cb
2,272
py
Python
CIRCUITPY/qix.py
t-ikegami/WioTerminal-CircuitPython
efbdc2e13ad969fe009d88f7ec4b836ca61ae973
[ "MIT" ]
null
null
null
CIRCUITPY/qix.py
t-ikegami/WioTerminal-CircuitPython
efbdc2e13ad969fe009d88f7ec4b836ca61ae973
[ "MIT" ]
1
2022-01-19T00:16:02.000Z
2022-01-26T03:43:34.000Z
CIRCUITPY/qix.py
t-ikegami/WioTerminal-CircuitPython
efbdc2e13ad969fe009d88f7ec4b836ca61ae973
[ "MIT" ]
null
null
null
import time import board import displayio as dpio import bitmaptools as bmt from random import randint from ButtonEvents import ButtonEvents bmp = dpio.Bitmap(320, 240, 4) pal = dpio.Palette(4) pal[1] = 0xFFFF00 pal[2] = 0xFFA500 pal[3] = 0x00A5FF class Qix : def __init__(self, n = 10, color = 1) : self.x...
28.4
67
0.543574
39ade11c8e2d161381d287f74a0998d7441b5fad
449
py
Python
school/migrations/0008_auto_20200816_0303.py
threecoolcat/ThreeCoolCat
805f37b4cc68dce768356c0042663d0659abd6cb
[ "MIT" ]
6
2021-08-07T10:51:25.000Z
2022-02-25T04:59:02.000Z
school/migrations/0008_auto_20200816_0303.py
threecoolcat/ThreeCoolCat
805f37b4cc68dce768356c0042663d0659abd6cb
[ "MIT" ]
null
null
null
school/migrations/0008_auto_20200816_0303.py
threecoolcat/ThreeCoolCat
805f37b4cc68dce768356c0042663d0659abd6cb
[ "MIT" ]
2
2021-09-15T10:22:05.000Z
2022-01-19T07:12:04.000Z
# Generated by Django 3.0.7 on 2020-08-16 03:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('school', '0007_course_period_amount'), ] operations = [ migrations.AlterField( model_name='teacher', name='photo', ...
23.631579
112
0.616927
c10f4db46d1075ed422b51ce37f14981a173d551
2,342
py
Python
asimtbm/tables/zones.py
blakerosenthal/asimtbm
367b8ac2b96879b4cbc6fcf970fc03fe936e06c1
[ "BSD-3-Clause" ]
1
2020-06-12T00:49:59.000Z
2020-06-12T00:49:59.000Z
asimtbm/tables/zones.py
RSGInc/asimtbm
367b8ac2b96879b4cbc6fcf970fc03fe936e06c1
[ "BSD-3-Clause" ]
6
2019-09-23T22:34:51.000Z
2019-12-31T22:06:25.000Z
asimtbm/tables/zones.py
RSGInc/asimtbm
367b8ac2b96879b4cbc6fcf970fc03fe936e06c1
[ "BSD-3-Clause" ]
1
2019-08-30T19:23:11.000Z
2019-08-30T19:23:11.000Z
import logging import os import pandas as pd from activitysim.core import inject, config, tracing logger = logging.getLogger(__name__) ZONE_LABEL = 'zone' TABLES_YAML = 'tables.yaml' TABLE_FILENAMES_KEY = 'aggregate_zone_file_names' @inject.table() def zones(): """ActivitySim pipeline table of raw zone data. ...
30.025641
90
0.716055
13754ed69e20e144d127b4acf2ec810fa7423bb5
9,125
py
Python
multi-task-pretrain/eval_b_classify.py
haifangong/CMSA-MTPT-4-MedicalVQA
56bdb03820ccf86d164ada6f29cb09f9fa35657b
[ "MIT" ]
11
2021-05-28T10:12:30.000Z
2022-02-09T04:27:31.000Z
multi-task-pretrain/eval_b_classify.py
haifangong/CMSA-MTPT-4-MedicalVQA
56bdb03820ccf86d164ada6f29cb09f9fa35657b
[ "MIT" ]
4
2021-05-31T12:57:04.000Z
2022-02-14T02:32:06.000Z
multi-task-pretrain/eval_b_classify.py
haifangong/CMSA-MTPT-4-MedicalVQA
56bdb03820ccf86d164ada6f29cb09f9fa35657b
[ "MIT" ]
1
2021-05-28T14:47:24.000Z
2021-05-28T14:47:24.000Z
import socket import argparse from datetime import datetime import time import os import glob import torch from torchvision import transforms import torch.optim as optim from torch.utils.data import DataLoader from torchvision.utils import make_grid from tensorboardX import SummaryWriter from dataload...
44.730392
198
0.679562
2e8b59dbfdcc92b7b1c3d157791d90a9ceba27fb
7,104
py
Python
tools/SDKTool/src/ui/debug/ui_debug.py
Passer-D/GameAISDK
a089330a30b7bfe1f6442258a12d8c0086240606
[ "Apache-2.0" ]
1,210
2020-08-18T07:57:36.000Z
2022-03-31T15:06:05.000Z
tools/SDKTool/src/ui/debug/ui_debug.py
guokaiSama/GameAISDK
a089330a30b7bfe1f6442258a12d8c0086240606
[ "Apache-2.0" ]
37
2020-08-24T02:48:38.000Z
2022-01-30T06:41:52.000Z
tools/SDKTool/src/ui/debug/ui_debug.py
guokaiSama/GameAISDK
a089330a30b7bfe1f6442258a12d8c0086240606
[ "Apache-2.0" ]
275
2020-08-18T08:35:16.000Z
2022-03-31T15:06:07.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making GameAISDK available. This source code file is licensed under the GNU General Public License Version 3. For full details, please refer to the file "LICENSE.txt" which is provided as part of this source code package. Copyright...
35.343284
111
0.594454