hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
e5137ca9a23bdb8d2e99e6fe8d556b4318b8b2ca
9,531
py
Python
components/fatfs/fatfsgen_utils/fs_object.py
iPlon-org/esp-idf
a5227db2a75102ca1a17860188c3c352a529a01b
[ "Apache-2.0" ]
5
2021-11-22T06:47:54.000Z
2022-01-04T06:58:43.000Z
components/fatfs/fatfsgen_utils/fs_object.py
iPlon-org/esp-idf
a5227db2a75102ca1a17860188c3c352a529a01b
[ "Apache-2.0" ]
null
null
null
components/fatfs/fatfsgen_utils/fs_object.py
iPlon-org/esp-idf
a5227db2a75102ca1a17860188c3c352a529a01b
[ "Apache-2.0" ]
2
2022-01-05T05:09:13.000Z
2022-02-09T22:32:54.000Z
# SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD # SPDX-License-Identifier: Apache-2.0 import os from typing import List, Optional, Tuple from .entry import Entry from .exceptions import FatalError, WriteDirectoryException from .fat import FAT, Cluster from .fatfs_state import FATFSState from .utils...
42.172566
117
0.618193
9,116
0.956458
0
0
539
0.056552
0
0
1,563
0.163991
e513cf10b1e10610d52f4966327c7e9e04459ede
385
py
Python
titanic/migrations/0002_passenger_name.py
azharmunir43/insightish
28c13b87ca1678c27de902b9633af4804d4e77cc
[ "Apache-2.0" ]
null
null
null
titanic/migrations/0002_passenger_name.py
azharmunir43/insightish
28c13b87ca1678c27de902b9633af4804d4e77cc
[ "Apache-2.0" ]
null
null
null
titanic/migrations/0002_passenger_name.py
azharmunir43/insightish
28c13b87ca1678c27de902b9633af4804d4e77cc
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0 on 2018-03-07 12:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('titanic', '0001_initial'), ] operations = [ migrations.AddField( model_name='passenger', name='name', fiel...
20.263158
63
0.587013
294
0.763636
0
0
0
0
0
0
87
0.225974
e514935f4c1b7392f48ec35e4356650b174def56
6,625
py
Python
addons14/calendar_base_booking/models/bookable_mixin.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-06-10T14:59:13.000Z
2021-06-10T14:59:13.000Z
addons14/calendar_base_booking/models/bookable_mixin.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
null
null
null
addons14/calendar_base_booking/models/bookable_mixin.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-04-09T09:44:44.000Z
2021-04-09T09:44:44.000Z
# Copyright 2020 Akretion (http://www.akretion.com). # @author Sébastien BEAU <sebastien.beau@akretion.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from collections import defaultdict from dateutil.relativedelta import relativedelta from odoo import _, fields, models from odoo.exceptions impo...
34.505208
84
0.570717
5,968
0.900694
0
0
0
0
0
0
1,422
0.214609
e514aa24f7ecd44a5165bc096f98b796fc4f0c6f
2,432
py
Python
mc/helpers.py
sprout42/binja-i8086
a0131f3c9a57572ae286029cd2c35ef40a7511d7
[ "0BSD" ]
13
2018-08-21T09:58:04.000Z
2021-08-21T16:40:23.000Z
mc/helpers.py
sprout42/binja-i8086
a0131f3c9a57572ae286029cd2c35ef40a7511d7
[ "0BSD" ]
1
2019-07-04T20:11:53.000Z
2019-09-04T19:52:51.000Z
mc/helpers.py
sprout42/binja-i8086
a0131f3c9a57572ae286029cd2c35ef40a7511d7
[ "0BSD" ]
1
2022-02-04T03:22:47.000Z
2022-02-04T03:22:47.000Z
from binaryninja import InstructionTextToken from binaryninja.enums import InstructionTextTokenType __all__ = ['fmt_dec', 'fmt_dec_sign', 'fmt_hex', 'fmt_hex2', 'fmt_hex4', 'fmt_hexW', 'fmt_hex_sign'] __all__ += ['fmt_imm', 'fmt_imm_sign', 'fmt_disp', 'fmt_code_rel', 'fmt_code_abs'] __all__ += ['token', ...
27.636364
82
0.672286
0
0
0
0
0
0
0
0
311
0.127878
e516cc75de61891aa46b50bf8464eedef233e194
148
py
Python
beerlists/__init__.py
dmofot/beerlists
deb2ab2416b63a8cb9fe9115b6650fdaa7ba36ca
[ "MIT" ]
null
null
null
beerlists/__init__.py
dmofot/beerlists
deb2ab2416b63a8cb9fe9115b6650fdaa7ba36ca
[ "MIT" ]
2
2017-06-21T17:33:24.000Z
2021-11-15T17:46:49.000Z
beerlists/__init__.py
dmofot/beerlists
deb2ab2416b63a8cb9fe9115b6650fdaa7ba36ca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for beerlists.""" __author__ = """David Todd""" __email__ = 'dmofot@gmail.com' __version__ = '0.9.0'
18.5
38
0.628378
0
0
0
0
0
0
0
0
102
0.689189
e517fa480acd67dfee5f3aaa95a82cf7997e2c8a
6,551
py
Python
layers/modules/precision_loss.py
laycoding/ssd.pytorch
6b9263d9d59e348398335dc91d59af658f2e8d35
[ "MIT" ]
null
null
null
layers/modules/precision_loss.py
laycoding/ssd.pytorch
6b9263d9d59e348398335dc91d59af658f2e8d35
[ "MIT" ]
null
null
null
layers/modules/precision_loss.py
laycoding/ssd.pytorch
6b9263d9d59e348398335dc91d59af658f2e8d35
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from data import coco as cfg from ..box_utils import match, log_sum_exp, decode, nms class PrecisionLoss(nn.Module): """SSD Weighted Loss Function Compute Targets: 1) Produce ...
47.471014
133
0.615479
6,338
0.967191
0
0
0
0
0
0
2,949
0.450023
e51832dae171e962185a92eae9c69298fd915ba4
545
py
Python
BufferOverflow3/p1.py
Mitsububunu/picoCTF_Code
69bc2fda655f68d619d559d8ebcac3f3002e1e9b
[ "MIT" ]
null
null
null
BufferOverflow3/p1.py
Mitsububunu/picoCTF_Code
69bc2fda655f68d619d559d8ebcac3f3002e1e9b
[ "MIT" ]
null
null
null
BufferOverflow3/p1.py
Mitsububunu/picoCTF_Code
69bc2fda655f68d619d559d8ebcac3f3002e1e9b
[ "MIT" ]
null
null
null
#!/usr/bin/env python from pwn import * debug = 0 user = 'mitsububunu' pw = 'password' if debug: p = process('./vuln') else: s = ssh(host = '2018shell.picoctf.com', user=user, password=pw) s.set_working_directory('/problems/buffer-overflow-3_1_2e6726e5326a80f8f5a9c350284e6c7f') p = s.process('./vuln') bin...
20.961538
105
0.695413
0
0
0
0
0
0
0
0
229
0.420183
e518de7808c648780c618b4d314bc02b24cf5ad5
197
py
Python
urbanairship/reports/__init__.py
kaellis/airship-python-library
d583138a1c12442020a3ae93d35817624ed6afb5
[ "Apache-2.0" ]
null
null
null
urbanairship/reports/__init__.py
kaellis/airship-python-library
d583138a1c12442020a3ae93d35817624ed6afb5
[ "Apache-2.0" ]
null
null
null
urbanairship/reports/__init__.py
kaellis/airship-python-library
d583138a1c12442020a3ae93d35817624ed6afb5
[ "Apache-2.0" ]
null
null
null
from .reports import ( IndividualResponseStats, ResponseList, DevicesReport, OptInList, OptOutList, PushList, ResponseReportList, AppOpensList, TimeInAppList, )
16.416667
28
0.685279
0
0
0
0
0
0
0
0
0
0
e51b72feb934b5d22f70cc68b5686a57177d55f4
18,195
py
Python
umbrella-sampling_1D_reweight_bs.py
cbatton/umbrella_sampling_pymbar
9133c0079afe916da5f11051052828b67288efb3
[ "MIT" ]
null
null
null
umbrella-sampling_1D_reweight_bs.py
cbatton/umbrella_sampling_pymbar
9133c0079afe916da5f11051052828b67288efb3
[ "MIT" ]
null
null
null
umbrella-sampling_1D_reweight_bs.py
cbatton/umbrella_sampling_pymbar
9133c0079afe916da5f11051052828b67288efb3
[ "MIT" ]
null
null
null
# Example illustrating the application of MBAR to compute a 1D PMF from an umbrella sampling simulation. # # The data represents an umbrella sampling simulation for the magnetization of the Ising model # Adapted from one of the pymbar example scripts for 1D PMFs import numpy as np # numerical array library import pymb...
42.912736
149
0.62061
0
0
0
0
0
0
0
0
5,695
0.312998
e51be0d0735b03c3a1c680ed0f0bc082a49173dd
241
py
Python
dictionary.py
Zackyy1/ehitusepood
130157f36be81523e65879e7fc08940c55a4dfa7
[ "MIT" ]
null
null
null
dictionary.py
Zackyy1/ehitusepood
130157f36be81523e65879e7fc08940c55a4dfa7
[ "MIT" ]
null
null
null
dictionary.py
Zackyy1/ehitusepood
130157f36be81523e65879e7fc08940c55a4dfa7
[ "MIT" ]
null
null
null
texts = { "browse":"🗂️ Browse categories", "orders":"📥 My orders", "cart":"🛒 My cart", "settings":"⚙ Settings", "contact":"📞 Contact us", "home":"🏠 Home", "contact1":"{Store_name} - {store_phone}", }
20.083333
47
0.497925
0
0
0
0
0
0
0
0
186
0.715385
e51c14edee81c07664d02c94e1ae537e4d6867aa
396
py
Python
django_coverage_plugin/__init__.py
joshuadavidthomas/django_coverage_plugin
c4ec0691906dc0923c494efc9c9236d3aa21be73
[ "Apache-2.0" ]
172
2015-01-03T20:26:42.000Z
2022-02-18T20:38:59.000Z
django_coverage_plugin/__init__.py
joshuadavidthomas/django_coverage_plugin
c4ec0691906dc0923c494efc9c9236d3aa21be73
[ "Apache-2.0" ]
71
2015-01-17T19:22:53.000Z
2022-02-03T09:09:35.000Z
django_coverage_plugin/__init__.py
joshuadavidthomas/django_coverage_plugin
c4ec0691906dc0923c494efc9c9236d3aa21be73
[ "Apache-2.0" ]
31
2015-01-18T14:32:46.000Z
2022-02-18T20:39:07.000Z
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/nedbat/django_coverage_plugin/blob/master/NOTICE.txt """Django Template Coverage Plugin""" from .plugin import DjangoTemplatePluginException # noqa from .plugin import DjangoTemplatePlugin def coverage...
33
86
0.800505
0
0
0
0
0
0
0
0
208
0.525253
e51e619a4db0befa87c8923ad6fae00488c53cd0
3,006
py
Python
src/nucleotide/component/windows/translator.py
dmilos/nucleotide
aad5d60508c9e4baf4888069284f2cb5c9fd7c55
[ "Apache-2.0" ]
1
2020-09-04T13:00:04.000Z
2020-09-04T13:00:04.000Z
src/nucleotide/component/windows/translator.py
dmilos/nucleotide
aad5d60508c9e4baf4888069284f2cb5c9fd7c55
[ "Apache-2.0" ]
1
2020-04-10T01:52:32.000Z
2020-04-10T09:11:29.000Z
src/nucleotide/component/windows/translator.py
dmilos/nucleotide
aad5d60508c9e4baf4888069284f2cb5c9fd7c55
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # Copyright 2015 Dejan D. M. Milosavljevic # # 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 # # ...
33.4
91
0.664338
1,790
0.595476
0
0
936
0.311377
0
0
825
0.274451
e51e71629e6870db5d4127796afc6d44a91db669
1,511
py
Python
module1-introduction-to-sql/321_assignment_notes.py
Edudeiko/DS-Unit-3-Sprint-2-SQL-and-Databases
e164db12684286e50a9e585da475ca34692c55d7
[ "MIT" ]
null
null
null
module1-introduction-to-sql/321_assignment_notes.py
Edudeiko/DS-Unit-3-Sprint-2-SQL-and-Databases
e164db12684286e50a9e585da475ca34692c55d7
[ "MIT" ]
null
null
null
module1-introduction-to-sql/321_assignment_notes.py
Edudeiko/DS-Unit-3-Sprint-2-SQL-and-Databases
e164db12684286e50a9e585da475ca34692c55d7
[ "MIT" ]
null
null
null
import os import pandas as pd import sqlite3 CSV_FILEPATH = os.path.join(os.path.dirname(__file__), "..", "data", "buddymove_holidayiq.csv") DB_FILEPATH = os.path.join(os.path.dirname(__file__), "..", "data", "buddymove_holidayiq.db") connection = sqlite3.connect(DB_FILEPATH) table_name = "reviews2" df = pd.read_cs...
30.836735
95
0.698213
0
0
0
0
0
0
0
0
792
0.524156
e51e8a5a943efe4c5fabe22a092353ca252b4062
971
py
Python
eyesore/decision_graph/compacting/_1_similar_actions_compacter.py
twizmwazin/hacrs
3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a
[ "BSD-2-Clause" ]
2
2019-11-07T02:55:40.000Z
2021-12-30T01:37:43.000Z
eyesore/decision_graph/compacting/_1_similar_actions_compacter.py
twizmwazin/hacrs
3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a
[ "BSD-2-Clause" ]
null
null
null
eyesore/decision_graph/compacting/_1_similar_actions_compacter.py
twizmwazin/hacrs
3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a
[ "BSD-2-Clause" ]
2
2019-09-27T12:01:50.000Z
2019-10-09T21:39:52.000Z
from .. import ActionsNode from ..visitor import Visitor class SimilarActionsCompacter(Visitor): def _visit_actions_node(self, node, replacements): """ :param node: :type node: ActionsNode :return: """ compact_successors = replacements[node.successor] #impo...
37.346154
122
0.642636
911
0.938208
0
0
0
0
0
0
213
0.219361
e520edd0d04c2e5662e9df5187c8127d43b40f48
7,416
py
Python
boost-hic.py
CellFateNucOrg/Boost-HiC
637299b0ba41f6511015a6249efb150cf5991804
[ "MIT" ]
null
null
null
boost-hic.py
CellFateNucOrg/Boost-HiC
637299b0ba41f6511015a6249efb150cf5991804
[ "MIT" ]
null
null
null
boost-hic.py
CellFateNucOrg/Boost-HiC
637299b0ba41f6511015a6249efb150cf5991804
[ "MIT" ]
null
null
null
#!/usr/bin/python3 -u import argparse import logging import os import h5py import numpy as np import pandas as pd import sys # my own toolkit import HiCutils import convert import utils DEFAULT_OUTPUT_FOLDER = './boosted/' logging.basicConfig(level=logging.DEBUG) logging.getLogger("").setLevel(logging.INFO) logge...
42.136364
129
0.663026
0
0
0
0
0
0
0
0
2,299
0.310005
e52143225da56c9f67ad6d80e159ab308dbbde12
5,560
py
Python
tests/test_agents.py
fkamrani/adversarial-policies
53e129c2083f6557ddc18dbb39e4e633a2d7ab9b
[ "MIT" ]
211
2019-02-22T08:07:25.000Z
2022-03-14T10:44:20.000Z
tests/test_agents.py
fkamrani/adversarial-policies
53e129c2083f6557ddc18dbb39e4e633a2d7ab9b
[ "MIT" ]
51
2019-02-08T01:39:49.000Z
2022-02-15T21:21:46.000Z
tests/test_agents.py
fkamrani/adversarial-policies
53e129c2083f6557ddc18dbb39e4e633a2d7ab9b
[ "MIT" ]
41
2019-04-23T05:01:49.000Z
2022-03-16T06:51:19.000Z
import gym from ilqr import iLQR import numpy as np import pytest from aprl.agents.monte_carlo import ( MonteCarloParallel, MonteCarloSingle, MujocoResettableWrapper, receding_horizon, ) from aprl.agents.mujoco_lqr import ( MujocoFiniteDiffCost, MujocoFiniteDiffDynamicsBasic, MujocoFiniteDi...
34.534161
95
0.658453
0
0
0
0
1,400
0.251799
0
0
1,077
0.193705
e52269e8fc4cd21064d9405f8d3f8808a86630c6
4,219
py
Python
handlers/passport.py
python9339/tornado_ihome
a128f2140749186f177417c76472aded12427e6b
[ "Apache-2.0" ]
null
null
null
handlers/passport.py
python9339/tornado_ihome
a128f2140749186f177417c76472aded12427e6b
[ "Apache-2.0" ]
null
null
null
handlers/passport.py
python9339/tornado_ihome
a128f2140749186f177417c76472aded12427e6b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 20-4-13 下午4:40 # @File : handlers.py import logging import re import hashlib import config from utils.response_code import RET from utils.session import Session from basehandler import BaseHandler class RegisterHandler(BaseHandler): def post(self, *args, **kwargs): ...
37.008772
121
0.603698
4,540
0.948006
0
0
0
0
0
0
1,851
0.386511
e524ba293266362fb0efb791ef7088c82a4d7dd1
1,091
py
Python
asana/resources/custom_field_settings.py
FiyaFly/python-asana
ef9e6ff3e82e9f1ca18d526401f524698c7215c7
[ "MIT" ]
266
2015-02-13T18:14:08.000Z
2022-03-29T22:03:33.000Z
asana/resources/custom_field_settings.py
FiyaFly/python-asana
ef9e6ff3e82e9f1ca18d526401f524698c7215c7
[ "MIT" ]
77
2015-02-13T00:22:11.000Z
2022-02-20T07:56:14.000Z
asana/resources/custom_field_settings.py
FiyaFly/python-asana
ef9e6ff3e82e9f1ca18d526401f524698c7215c7
[ "MIT" ]
95
2015-03-18T23:28:57.000Z
2022-02-20T23:28:58.000Z
from .gen.custom_field_settings import _CustomFieldSettings class CustomFieldSettings(_CustomFieldSettings): """Custom Field Settings resource""" def find_by_project(self, project, params={}, **options): """Returns a list of all of the custom fields settings on a project. Parameters -...
40.407407
89
0.653529
1,028
0.942255
0
0
0
0
0
0
636
0.582951
e525b73b902da2ecc912124afa970b8027a3b324
1,049
py
Python
graphql/app/models/ndb/faction.py
py-in-the-sky/appengine-swapi
824d770cd11e5510b2300d1e248a9474e3fde8c2
[ "MIT" ]
null
null
null
graphql/app/models/ndb/faction.py
py-in-the-sky/appengine-swapi
824d770cd11e5510b2300d1e248a9474e3fde8c2
[ "MIT" ]
null
null
null
graphql/app/models/ndb/faction.py
py-in-the-sky/appengine-swapi
824d770cd11e5510b2300d1e248a9474e3fde8c2
[ "MIT" ]
null
null
null
from google.appengine.ext import ndb from .character import Character from .utils import paginated_query class Faction(ndb.Model): name = ndb.StringProperty(required=True) description = ndb.TextProperty() created = ndb.DateTimeProperty(required=True, auto_now_add=True) updated = ndb.DateTimeProperty(...
33.83871
68
0.691134
940
0.896092
0
0
367
0.349857
0
0
97
0.092469
e526d02ced91a04d460abfc609eec486e2c0557a
3,790
py
Python
falcon/request_helpers.py
elishacook/falcon
0a9431ff2fbd60329532c726744a842b7caeeaf9
[ "Apache-2.0" ]
1
2020-07-11T14:38:32.000Z
2020-07-11T14:38:32.000Z
falcon/request_helpers.py
elishacook/falcon
0a9431ff2fbd60329532c726744a842b7caeeaf9
[ "Apache-2.0" ]
null
null
null
falcon/request_helpers.py
elishacook/falcon
0a9431ff2fbd60329532c726744a842b7caeeaf9
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 by Rackspace Hosting, 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 t...
28.931298
75
0.632718
2,727
0.719525
0
0
0
0
0
0
2,848
0.751451
e52d87ade902887855b10cfb23d4264c5e93b1d3
7,190
py
Python
scripts/msh_process.py
mou3adb/spread_the_particle
6cc666fded62f07380ed1e3ed52969c436295906
[ "MIT" ]
4
2020-08-18T18:33:05.000Z
2021-05-18T23:55:56.000Z
scripts/msh_process.py
mou3adb/spread_the_particle
6cc666fded62f07380ed1e3ed52969c436295906
[ "MIT" ]
null
null
null
scripts/msh_process.py
mou3adb/spread_the_particle
6cc666fded62f07380ed1e3ed52969c436295906
[ "MIT" ]
2
2021-03-03T18:57:06.000Z
2021-05-18T20:43:44.000Z
""" Gmsh format 2.2 """ import numpy as np from flow import Flow from element import Element from element_search import find_neighbors from text.text_flow import write_flow from text.text_elements import write_elements from text.text_geometries import write_geometries #======================================...
28.085938
95
0.577886
0
0
0
0
0
0
0
0
1,566
0.217803
e5303983f7442fd8fa1385cd72155b552858073b
1,581
py
Python
plugins/module_utils/syntropy.py
SyntropyNet/syntropy-ansible-collection
9ec9020faf81bc1b9d46aef71de88397a2b5d625
[ "MIT" ]
4
2021-01-06T08:24:45.000Z
2021-09-15T20:05:15.000Z
plugins/module_utils/syntropy.py
SyntropyNet/syntropy-ansible-collection
9ec9020faf81bc1b9d46aef71de88397a2b5d625
[ "MIT" ]
null
null
null
plugins/module_utils/syntropy.py
SyntropyNet/syntropy-ansible-collection
9ec9020faf81bc1b9d46aef71de88397a2b5d625
[ "MIT" ]
1
2021-03-30T20:38:03.000Z
2021-03-30T20:38:03.000Z
# Copyright: (c) 2020, Syntropy Network # MIT License from __future__ import absolute_import, division, print_function __metaclass__ = type import os import traceback SDK_IMP_ERR = None try: from syntropy_sdk import ApiClient, ApiKeysApi, AuthApi, Configuration, PlatformApi from syntropy_sdk.exceptions impor...
29.277778
88
0.762176
83
0.052498
0
0
0
0
0
0
108
0.068311
e5318d57c5b94068601a78c0c8bed490f74a1be5
1,394
py
Python
custard/tests/settings.py
kunitoki/django-custard
3cf3aa5acf84de2f653e96469e2f9c42813df50a
[ "MIT" ]
6
2015-06-15T07:40:26.000Z
2016-06-27T08:01:34.000Z
custard/tests/settings.py
kunitoki/django-custard
3cf3aa5acf84de2f653e96469e2f9c42813df50a
[ "MIT" ]
3
2015-03-11T22:43:01.000Z
2015-06-07T21:50:36.000Z
custard/tests/settings.py
kunitoki/django-custard
3cf3aa5acf84de2f653e96469e2f9c42813df50a
[ "MIT" ]
6
2015-03-11T22:19:57.000Z
2021-03-10T15:40:52.000Z
# Django settings for testproject project. import os DIRNAME = os.path.dirname(__file__) DEBUG = True TEMPLATE_DEBUG = DEBUG DEBUG_PROPAGATE_EXCEPTIONS = True ADMINS = () MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(DIRNAME, 'db.sqlite...
22.483871
65
0.705165
0
0
0
0
0
0
0
0
784
0.56241
e531bfa00c295cacf19737b9ff6143ce8070896d
149
py
Python
Python/desafios/d12.py
prazerfelipe/Python
b1f4c768b1823d34898935bbd037ae43711c79e1
[ "MIT" ]
null
null
null
Python/desafios/d12.py
prazerfelipe/Python
b1f4c768b1823d34898935bbd037ae43711c79e1
[ "MIT" ]
null
null
null
Python/desafios/d12.py
prazerfelipe/Python
b1f4c768b1823d34898935bbd037ae43711c79e1
[ "MIT" ]
null
null
null
p = float(input('Digite o preço do produto')) d = p - (p* 5/100) print ('o preço do produto é {:.2f} e com 5% de desconto fica {:.2f}'.format(p,d))
29.8
82
0.610738
0
0
0
0
0
0
0
0
92
0.605263
e531c9c1ac9eaf5cf3f53b6dbc300b0ff9a2f799
238
py
Python
app/modules/dht_sensor/temp_controller.py
bytecode-tech/my-tank
e37dc844fd2801b26710b461f64a6f938a5371db
[ "MIT" ]
1
2020-05-21T04:56:51.000Z
2020-05-21T04:56:51.000Z
app/modules/dht_sensor/temp_controller.py
kandiki/my-tank
e37dc844fd2801b26710b461f64a6f938a5371db
[ "MIT" ]
null
null
null
app/modules/dht_sensor/temp_controller.py
kandiki/my-tank
e37dc844fd2801b26710b461f64a6f938a5371db
[ "MIT" ]
1
2020-04-21T20:24:36.000Z
2020-04-21T20:24:36.000Z
from flask import (Blueprint, request) from . import temp temp_controller = Blueprint('temp-controller', __name__, url_prefix='/api/temp') @temp_controller.route('/', methods=["GET"]) def api_temp_control(): return temp.read_temp()
26.444444
80
0.739496
0
0
0
0
97
0.407563
0
0
36
0.151261
e5320220c6e0bdc466d30a55af8b5a6073894184
2,753
py
Python
home/utils.py
ryankicks/collection-pipeline
2f4b6f154baba90aad39d490fd1dc170ba7ae4e4
[ "MIT" ]
null
null
null
home/utils.py
ryankicks/collection-pipeline
2f4b6f154baba90aad39d490fd1dc170ba7ae4e4
[ "MIT" ]
null
null
null
home/utils.py
ryankicks/collection-pipeline
2f4b6f154baba90aad39d490fd1dc170ba7ae4e4
[ "MIT" ]
null
null
null
from inspect import stack import logging from time import mktime import pytz from datetime import * from calendar import timegm # from django.http import HttpResponse, HttpResponseRedirect, HttpResponseRedirectBase from django.conf import settings from django.utils import timezone from social.apps.django_app.default...
28.677083
89
0.661097
2,298
0.834726
0
0
2,118
0.769343
0
0
395
0.14348
e53252e0bf00080e9f60852ab7af61c8c73fe549
35
py
Python
modules/2.79/bpy/types/ShaderNodeGroup.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/ShaderNodeGroup.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/ShaderNodeGroup.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
ShaderNodeGroup.interface = None
8.75
32
0.8
0
0
0
0
0
0
0
0
0
0
e533417d7abdd0f090ec7b783eb6b6201bbec4a5
360
py
Python
pypresence/__init__.py
GhostofGoes/pypresence
902f406345213fed4acd10d567f76abc64df5ace
[ "MIT" ]
null
null
null
pypresence/__init__.py
GhostofGoes/pypresence
902f406345213fed4acd10d567f76abc64df5ace
[ "MIT" ]
null
null
null
pypresence/__init__.py
GhostofGoes/pypresence
902f406345213fed4acd10d567f76abc64df5ace
[ "MIT" ]
null
null
null
""" Python RPC Client for Discord ----------------------------- By: qwertyquerty and LewdNeko """ from .baseclient import BaseClient from .client import Client from .presence import Presence from .exceptions import * __title__ = 'pypresence' __author__ = 'qwertyquerty' __copyright__ = 'Copyright 2018 qwertyquerty' __...
21.176471
45
0.708333
0
0
0
0
0
0
0
0
164
0.455556
e533e0071445be02c8ad1c3692ec2dd70b4b8806
2,193
py
Python
test/python/transpiler/test_preset_passmanagers.py
chowington/qiskit-terra
a782c64c736fedd6a541bb45dbf89737a52b7c39
[ "Apache-2.0" ]
null
null
null
test/python/transpiler/test_preset_passmanagers.py
chowington/qiskit-terra
a782c64c736fedd6a541bb45dbf89737a52b7c39
[ "Apache-2.0" ]
null
null
null
test/python/transpiler/test_preset_passmanagers.py
chowington/qiskit-terra
a782c64c736fedd6a541bb45dbf89737a52b7c39
[ "Apache-2.0" ]
1
2019-06-13T08:07:26.000Z
2019-06-13T08:07:26.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
35.95082
89
0.653443
1,397
0.637027
0
0
0
0
0
0
758
0.345645
e5342b8791c68216bf30896c7274b41364db27db
4,291
py
Python
scripts/sptk/visualize_spectrogram.py
funcwj/kaldi_enhan
50e4da07c4e7fce7439da9be2b0bb1a0079491c3
[ "Apache-2.0" ]
35
2018-04-02T06:09:26.000Z
2019-02-19T08:27:10.000Z
scripts/sptk/visualize_spectrogram.py
funcwj/kaldi_enhan
50e4da07c4e7fce7439da9be2b0bb1a0079491c3
[ "Apache-2.0" ]
3
2018-11-08T10:21:34.000Z
2019-01-24T02:49:47.000Z
scripts/sptk/visualize_spectrogram.py
funcwj/kaldi_enhan
50e4da07c4e7fce7439da9be2b0bb1a0079491c3
[ "Apache-2.0" ]
17
2018-03-08T06:59:31.000Z
2019-02-19T08:27:41.000Z
#!/usr/bin/env python # coding=utf-8 # wujian@2020 import argparse from pathlib import Path import matplotlib.pyplot as plt import numpy as np from libs.data_handler import SpectrogramReader from libs.opts import StftParser from libs.utils import get_logger default_font = "Times New Roman" default_font_size = 10 de...
33.523438
78
0.519226
0
0
0
0
0
0
0
0
703
0.163831
e535e6dd0129597b74bb4ecff114f37663cccbbf
9,246
py
Python
pyocni/adapters/httpResponse_Formater.py
MarouenMechtri/CNG-Manager
9535b721e7b832d72fd7bba6d2a29e76a0d4bdb7
[ "Apache-2.0" ]
1
2015-02-28T21:26:07.000Z
2015-02-28T21:26:07.000Z
pyocni/adapters/httpResponse_Formater.py
MarouenMechtri/CNG-Manager
9535b721e7b832d72fd7bba6d2a29e76a0d4bdb7
[ "Apache-2.0" ]
null
null
null
pyocni/adapters/httpResponse_Formater.py
MarouenMechtri/CNG-Manager
9535b721e7b832d72fd7bba6d2a29e76a0d4bdb7
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2012 Institut Mines-Telecom # # 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 agre...
29.259494
92
0.561865
6,310
0.682457
0
0
0
0
0
0
3,273
0.353991
e536c28016db6252f76243560211157a7504c1af
3,352
py
Python
restapi/endpoints/profile.py
rapydo/http-api
ef0a299173195145303069534d45d446ea4da93a
[ "MIT" ]
8
2018-07-04T09:54:46.000Z
2022-03-17T08:21:06.000Z
restapi/endpoints/profile.py
rapydo/http-api
ef0a299173195145303069534d45d446ea4da93a
[ "MIT" ]
19
2018-04-18T07:24:55.000Z
2022-03-04T01:03:15.000Z
restapi/endpoints/profile.py
rapydo/http-api
ef0a299173195145303069534d45d446ea4da93a
[ "MIT" ]
7
2018-07-03T12:17:50.000Z
2021-05-05T04:33:32.000Z
from typing import Any, Optional from restapi import decorators from restapi.endpoints.schemas import NewPassword, profile_output, profile_patch_input from restapi.exceptions import Unauthorized from restapi.rest.definition import EndpointResource, Response from restapi.services.authentication import AuthMissingTOTP, ...
34.204082
86
0.651253
2,943
0.877983
0
0
2,813
0.8392
0
0
775
0.231205
e5371254ed22fa060db8dd66fc1b046f1463cc0b
928
py
Python
tests/sample/comprehension.py
JarryShaw/walrus
cb748496974c4c8b1a68907d46eff2845db75e84
[ "MIT" ]
4
2020-06-01T17:38:15.000Z
2022-03-26T12:01:16.000Z
tests/sample/comprehension.py
pybpc/walrus
cb748496974c4c8b1a68907d46eff2845db75e84
[ "MIT" ]
23
2020-05-31T09:24:49.000Z
2021-02-22T19:29:23.000Z
tests/sample/comprehension.py
pybpc/walrus
cb748496974c4c8b1a68907d46eff2845db75e84
[ "MIT" ]
1
2019-11-09T00:34:37.000Z
2019-11-09T00:34:37.000Z
comp1 = [x1 := x * x for x in range(10)] print(comp1) print(x1) print(globals().get('x')) def f2(): comp2 = [x2 := x ** 3 for x in range(9)] print(comp2) print(x2) print(locals().get('x')) def f3(): global x3 comp3 = [x3 := x ** 4 for x in range(8)] print(comp3) print(locals().get('x...
17.509434
59
0.528017
0
0
0
0
0
0
0
0
49
0.052802
e5377b6da443630c0d016aff8eb0fc9c6d8663e8
3,358
py
Python
venv/lib/python3.6/site-packages/ansible_collections/community/hashi_vault/tests/unit/plugins/module_utils/authentication/test_auth_approle.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/hashi_vault/tests/unit/plugins/module_utils/authentication/test_auth_approle.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/hashi_vault/tests/unit/plugins/module_utils/authentication/test_auth_approle.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021 Brian Scholer (@briantist) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type import pytest from ansible_collections.community.hashi_vault.tes...
33.919192
144
0.712627
2,208
0.657534
0
0
2,281
0.679273
0
0
635
0.189101
e53797255ddf8c7e28dc3a9ceca68b9b6f0d9c22
323
py
Python
main/amy/setup.py
drepetto/alles
bb72c36f1b07f539e73726a91c9538482b4c06cb
[ "MIT" ]
81
2020-03-01T22:18:48.000Z
2022-03-20T16:53:01.000Z
main/amy/setup.py
bwhitman/synthserver
98f824fd5c2056823727884a3bdf8c8a6ff7ced1
[ "MIT" ]
12
2021-04-22T01:21:25.000Z
2021-12-11T18:29:18.000Z
main/amy/setup.py
bwhitman/synthserver
98f824fd5c2056823727884a3bdf8c8a6ff7ced1
[ "MIT" ]
8
2020-04-29T18:26:25.000Z
2021-12-07T22:55:00.000Z
from distutils.core import setup, Extension import glob import os # the c++ extension module sources = glob.glob("*.c") os.environ["CC"] = "gcc" os.environ["CXX"] = "g++" extension_mod = Extension("libamy", sources=sources, extra_link_args=["-lsoundio", "-lpthread"]) setup(name = "libamy", ext_modules=[extension_mo...
26.916667
96
0.708978
0
0
0
0
0
0
0
0
88
0.272446
e53b4e82439a5be972e3455d4b58df9c2ff3541c
826
py
Python
app/model/job_keyword.py
awesome-archive/webspider
072e9944db8fe05cbb47f8ea6d1a327c2a8929b1
[ "MIT" ]
null
null
null
app/model/job_keyword.py
awesome-archive/webspider
072e9944db8fe05cbb47f8ea6d1a327c2a8929b1
[ "MIT" ]
null
null
null
app/model/job_keyword.py
awesome-archive/webspider
072e9944db8fe05cbb47f8ea6d1a327c2a8929b1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from sqlalchemy import Column from sqlalchemy.dialects.mysql import INTEGER from common.db import BaseModel class JobKeywordModel(BaseModel): __tablename__ = 'job_keyword' id = Column(INTEGER, primary_key=True, autoincrement=True) job_id = Column(INTEGER, doc=u'工作 id') keywor...
29.5
95
0.671913
712
0.839623
0
0
407
0.479953
0
0
88
0.103774
e53b8de7cefb3da0c77b80958c4124a1178847f8
905
py
Python
ST_DM/KDD2022-DuMapper/DME/arch/utils/ll_2_mc.py
zhangyimi/Research
866f91d9774a38d205d6e9a3b1ee6293748261b3
[ "Apache-2.0" ]
1
2022-03-18T08:32:37.000Z
2022-03-18T08:32:37.000Z
ST_DM/KDD2022-DuMapper/DME/arch/utils/ll_2_mc.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
null
null
null
ST_DM/KDD2022-DuMapper/DME/arch/utils/ll_2_mc.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ Copyright (c) 2020 Baidu.com, Inc. All Rights Reserved File: ll_2_mc.py func: 墨卡托与经纬度间相互转换 Author: yuwei09(yuwei09@baidu.com) Date: 2021/07/21 """ import math SCALE_S = 20037508.34 def lonLat2Mercator(x, y): """Convert longitude/latitude to Mercator coordinate""" mx = ...
23.205128
85
0.612155
0
0
0
0
0
0
0
0
383
0.412271
e541c66e26b2dcd462e9c9a22b50ce0b746cca85
7,028
py
Python
process_azure_roles.py
noamsdahan/iam-dataset
da640ba65906f3f6091c6cbfdfdc0ca03df83f8f
[ "MIT" ]
58
2021-06-23T07:12:19.000Z
2022-03-26T14:55:00.000Z
process_azure_roles.py
noamsdahan/iam-dataset
da640ba65906f3f6091c6cbfdfdc0ca03df83f8f
[ "MIT" ]
8
2021-11-01T15:41:19.000Z
2022-02-08T08:04:05.000Z
process_azure_roles.py
noamsdahan/iam-dataset
da640ba65906f3f6091c6cbfdfdc0ca03df83f8f
[ "MIT" ]
4
2021-07-31T03:13:12.000Z
2022-03-22T08:28:08.000Z
import os import json import time import requests import re result = { 'roles': [] } raw_roles = [] with open("azure/built-in-roles-raw.json", "r") as f: raw_roles = json.loads(f.read()) provider_ops = [] with open("azure/provider-operations.json", "r") as f: provider_ops = json.loads(f.read()) for raw_...
50.2
147
0.517075
0
0
0
0
0
0
0
0
1,386
0.197211
e542dba77b736c853c5f81ad6228519c31bfebd5
6,656
py
Python
tests/usecases/test_exchange_rate_interactors.py
sdediego/forex-django-clean-architecture
915a8d844a8db5a40c726fe4cf9f6d50f7c95275
[ "MIT" ]
8
2021-11-09T16:43:38.000Z
2022-03-25T16:04:26.000Z
tests/usecases/test_exchange_rate_interactors.py
sdediego/forex-django-clean-architecture
915a8d844a8db5a40c726fe4cf9f6d50f7c95275
[ "MIT" ]
null
null
null
tests/usecases/test_exchange_rate_interactors.py
sdediego/forex-django-clean-architecture
915a8d844a8db5a40c726fe4cf9f6d50f7c95275
[ "MIT" ]
2
2021-11-16T21:17:31.000Z
2022-02-11T11:15:29.000Z
# coding: utf-8 import datetime import random from unittest.mock import Mock from django.db import reset_queries import pytest from src.domain.exchange_rate import CurrencyEntity, CurrencyExchangeRateEntity from src.usecases.exchange_rate import CurrencyInteractor, CurrencyExchangeRateInteractor from tests.fixtures ...
41.341615
89
0.783804
0
0
0
0
6,275
0.942758
0
0
229
0.034405
e5435081eee984010a042f8f54a44d659b9e9dc8
1,978
py
Python
pypret/io/tests/test_io.py
liam-clink/pypret
c84e954efc12137c6b5ade4fae920d60a15d4875
[ "MIT" ]
36
2019-03-16T18:38:10.000Z
2022-02-15T14:25:30.000Z
pypret/io/tests/test_io.py
liam-clink/pypret
c84e954efc12137c6b5ade4fae920d60a15d4875
[ "MIT" ]
1
2019-06-24T21:32:14.000Z
2019-07-03T12:46:28.000Z
pypret/io/tests/test_io.py
liam-clink/pypret
c84e954efc12137c6b5ade4fae920d60a15d4875
[ "MIT" ]
12
2019-07-23T22:03:55.000Z
2022-01-06T08:50:52.000Z
""" This module tests the io subpackage implementation. Author: Nils Geib, nils.geib@uni-jena.de """ import numpy as np from pypret import io from pprint import pformat from os import remove class IO1(io.IO): x = 1 def squared(self): return self.x * self.x def __repr__(self): ...
26.026316
79
0.577351
715
0.361476
0
0
0
0
0
0
729
0.368554
e543a1470c327269bc5d0fa3125cb8ab3fe77488
14,682
py
Python
src/main/python/main.py
wong-justin/quick-bible
035db43eca2c811792e32b123fa81f679ac5f168
[ "MIT" ]
null
null
null
src/main/python/main.py
wong-justin/quick-bible
035db43eca2c811792e32b123fa81f679ac5f168
[ "MIT" ]
null
null
null
src/main/python/main.py
wong-justin/quick-bible
035db43eca2c811792e32b123fa81f679ac5f168
[ "MIT" ]
null
null
null
from utils import * from shared import * from updating import MyAppContext from threading import Thread import re import sys import os class BooksPage(Page, FilterableList): '''Lists books from Gen->Rev and connects to next chapters page. First page of application.''' def __init__(self): Page.__...
36.431762
136
0.63697
14,197
0.966966
0
0
0
0
0
0
4,552
0.31004
e54424cb8a2e93ad7659fa0e0f3c23ae851505b8
5,458
py
Python
armada/tests/unit/utils/test_lint.py
sktelecom-oslab/armada
ebc71ff8eca7ecf0560493d5cdafc14e34c783c9
[ "Apache-2.0" ]
null
null
null
armada/tests/unit/utils/test_lint.py
sktelecom-oslab/armada
ebc71ff8eca7ecf0560493d5cdafc14e34c783c9
[ "Apache-2.0" ]
null
null
null
armada/tests/unit/utils/test_lint.py
sktelecom-oslab/armada
ebc71ff8eca7ecf0560493d5cdafc14e34c783c9
[ "Apache-2.0" ]
2
2018-05-28T13:00:42.000Z
2021-09-02T07:28:59.000Z
# Copyright 2017 The Armada Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
32.295858
74
0.622206
4,802
0.879809
0
0
0
0
0
0
2,995
0.548736
e545cf0e67826a43917bc1e5665f0de69c08ad62
278
py
Python
scripts/rename_fq.py
jodyphelan/pathogenseq
2e04190f25063d722ef653e819b94eb66407ea8d
[ "MIT" ]
null
null
null
scripts/rename_fq.py
jodyphelan/pathogenseq
2e04190f25063d722ef653e819b94eb66407ea8d
[ "MIT" ]
null
null
null
scripts/rename_fq.py
jodyphelan/pathogenseq
2e04190f25063d722ef653e819b94eb66407ea8d
[ "MIT" ]
1
2018-05-11T14:54:51.000Z
2018-05-11T14:54:51.000Z
#! /usr/bin/env python import csv import sys import os import pathogenseq.files as psf infile = sys.argv[1] for row in csv.DictReader(open(infile)): f1 = "%s.fastq.gz" % row["Barcode"] f2 = "%s.%s.fastq.gz" % (row["Name"],row["Barcode"]) psf.filecheck(f1) os.rename(f1,f2)
21.384615
53
0.672662
0
0
0
0
0
0
0
0
75
0.269784
e54612725dff063fe507222226db0fb8875e240a
4,100
py
Python
synapse/tools/cryo/cat.py
vertexmc/synapse
bd1f8ab1abcbaac20dc9afb9ad385cf831278ada
[ "Apache-2.0" ]
null
null
null
synapse/tools/cryo/cat.py
vertexmc/synapse
bd1f8ab1abcbaac20dc9afb9ad385cf831278ada
[ "Apache-2.0" ]
4
2017-10-03T21:50:40.000Z
2017-11-20T15:49:38.000Z
synapse/tools/cryo/cat.py
vertexmc/synapse
bd1f8ab1abcbaac20dc9afb9ad385cf831278ada
[ "Apache-2.0" ]
null
null
null
import sys import json import pprint import argparse import logging import synapse.common as s_common import synapse.cryotank as s_cryotank import synapse.lib.cell as s_cell import synapse.lib.output as s_output import synapse.lib.msgpack as s_msgpack logger = logging.getLogger(__name__) def _except_wrap(it, error...
38.679245
119
0.628537
0
0
436
0.106341
0
0
0
0
1,080
0.263415
e546ebdb04dff83307e0ea85b193a4c434f9cc11
3,905
py
Python
bdd100k/eval/lane_test.py
bdd100k/bdd100k
c8b54044038d2a03dcb10dcc6d9aef361639ffec
[ "BSD-3-Clause" ]
193
2020-09-22T09:48:17.000Z
2022-03-31T20:49:24.000Z
bdd100k/eval/lane_test.py
bdd100k/bdd100k
c8b54044038d2a03dcb10dcc6d9aef361639ffec
[ "BSD-3-Clause" ]
60
2020-09-28T15:44:40.000Z
2022-03-31T07:58:58.000Z
bdd100k/eval/lane_test.py
bdd100k/bdd100k
c8b54044038d2a03dcb10dcc6d9aef361639ffec
[ "BSD-3-Clause" ]
41
2020-09-27T02:52:20.000Z
2022-02-21T03:33:39.000Z
"""Test cases for lane.py.""" import os import unittest import numpy as np from ..common.utils import list_files from .lane import ( eval_lane_per_threshold, evaluate_lane_marking, get_foreground, get_lane_class, sub_task_funcs, ) class TestGetLaneClass(unittest.TestCase): """Test cases for ...
35.5
78
0.568246
3,594
0.920359
0
0
0
0
0
0
539
0.138028
e547362978e6693dbe91b5bc878d2ea775c9f025
1,561
py
Python
comp_modules/Quicksort.py
SpyrosMouselinos/CompSciStructs
e45743cc4fdf103d4cc0b48d62086226e1cbe726
[ "Apache-2.0" ]
null
null
null
comp_modules/Quicksort.py
SpyrosMouselinos/CompSciStructs
e45743cc4fdf103d4cc0b48d62086226e1cbe726
[ "Apache-2.0" ]
null
null
null
comp_modules/Quicksort.py
SpyrosMouselinos/CompSciStructs
e45743cc4fdf103d4cc0b48d62086226e1cbe726
[ "Apache-2.0" ]
null
null
null
import random def partition(array, low, high): pivot = array[(low + high) // 2] left = low - 1 right = high + 1 while(True): left += 1 while array[left] < pivot: left += 1 right -= 1 while array[right] > pivot: right -= 1 ...
22.623188
61
0.53171
0
0
0
0
0
0
0
0
28
0.017937
e547b6a838dfd62eee61bf8e0dfa8ecb24093404
18,522
py
Python
backend/generate_z3.py
uwplse/stng
ce12c2c079516df873382a5aa3c18c407833d130
[ "MIT" ]
14
2017-03-07T00:14:33.000Z
2022-02-09T00:59:22.000Z
backend/generate_z3.py
uwplse/stng
ce12c2c079516df873382a5aa3c18c407833d130
[ "MIT" ]
11
2016-11-22T13:14:55.000Z
2021-12-14T00:56:51.000Z
backend/generate_z3.py
uwplse/stng
ce12c2c079516df873382a5aa3c18c407833d130
[ "MIT" ]
6
2016-11-07T13:38:45.000Z
2021-04-04T12:13:31.000Z
import logging from stencil_ir import * from verify import * from assertion_to_z3 import * import generate_sketch import asp.codegen.ast_tools as ast_tools def loop_key(node): import hashlib return hashlib.sha224(tree_to_str(node)).hexdigest()[0:10] class Z3Generator(object): """ Generates a Z3 script...
43.275701
166
0.576774
18,261
0.985909
0
0
0
0
0
0
3,678
0.198575
e548c969786feae43c81dceea46b23eaaf132846
2,991
py
Python
user_program/old/firmware_tester.py
dekuNukem/USB4VC
66c4f0b4a4acd7cec6654ea0dd4da026edf5d24c
[ "MIT" ]
78
2022-02-07T16:48:11.000Z
2022-03-31T12:25:35.000Z
user_program/old/firmware_tester.py
dekuNukem/USB4VC
66c4f0b4a4acd7cec6654ea0dd4da026edf5d24c
[ "MIT" ]
1
2022-02-26T20:16:08.000Z
2022-02-26T20:24:04.000Z
user_program/old/firmware_tester.py
dekuNukem/USB4VC
66c4f0b4a4acd7cec6654ea0dd4da026edf5d24c
[ "MIT" ]
1
2022-02-24T03:34:15.000Z
2022-02-24T03:34:15.000Z
import os import sys import time import spidev import RPi.GPIO as GPIO PBOARD_RESET_PIN = 25 PBOARD_BOOT0_PIN = 12 SLAVE_REQ_PIN = 16 GPIO.setmode(GPIO.BCM) GPIO.setup(PBOARD_RESET_PIN, GPIO.IN) GPIO.setup(PBOARD_BOOT0_PIN, GPIO.IN) GPIO.setup(SLAVE_REQ_PIN, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) is_dfu = False def e...
27.694444
102
0.638248
0
0
0
0
0
0
0
0
704
0.235373
e54bb2a421e7b64f44e6913ef7732630a953e801
8,394
py
Python
dataset/text.py
scfrank/deep-generative-lm
70067fcda82aa035bba805ce6c2709097166a7a4
[ "MIT" ]
null
null
null
dataset/text.py
scfrank/deep-generative-lm
70067fcda82aa035bba805ce6c2709097166a7a4
[ "MIT" ]
null
null
null
dataset/text.py
scfrank/deep-generative-lm
70067fcda82aa035bba805ce6c2709097166a7a4
[ "MIT" ]
null
null
null
""" Text datatset iterators, as an extension of the PyTorch Dataset class. class SimpleTextData(): reads a text file line by line up to a specified sequence length. class SimpleTextDataSplit(): extends SimpleTextData() by splitting the data in train and val sets. class TextDataPadded(): extends SimpleTextData() by pad...
38.861111
122
0.65928
3,929
0.468072
0
0
0
0
0
0
4,492
0.535144
e54c9a30192e6b4af7abb9251e624d83d9672e92
2,938
py
Python
object_detection/pytorch/demo/webcam.py
lamyiowce/training
da4c959b5a7b65091b850872cdd4014d768c087c
[ "Apache-2.0" ]
567
2018-09-13T05:07:49.000Z
2020-11-23T11:52:11.000Z
object_detection/pytorch/demo/webcam.py
lamyiowce/training
da4c959b5a7b65091b850872cdd4014d768c087c
[ "Apache-2.0" ]
222
2018-09-14T10:15:39.000Z
2020-11-20T22:21:09.000Z
object_detection/pytorch/demo/webcam.py
ltechkorea/mlperf-training
498b945dd914573bdbf7a871eaeebd9388b60b76
[ "Apache-2.0" ]
279
2018-09-16T12:40:29.000Z
2020-11-17T14:22:52.000Z
# Copyright (c) 2021, 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/licenses/LICENSE-2.0 # # Unless required by applic...
31.255319
88
0.663036
0
0
0
0
0
0
0
0
1,417
0.482301
e54d49eead1974109248b8035d8a201f05e5a2c9
1,886
py
Python
os_xenapi/client/host_agent.py
jonarrien/openstack-xenapi
8961dcbdecfbe7c3e3b5d05e71011c3a70d273a6
[ "Apache-2.0" ]
null
null
null
os_xenapi/client/host_agent.py
jonarrien/openstack-xenapi
8961dcbdecfbe7c3e3b5d05e71011c3a70d273a6
[ "Apache-2.0" ]
null
null
null
os_xenapi/client/host_agent.py
jonarrien/openstack-xenapi
8961dcbdecfbe7c3e3b5d05e71011c3a70d273a6
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Citrix Systems # # 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 agr...
39.291667
78
0.671262
0
0
0
0
0
0
0
0
912
0.483563
e55136ee5d85881c01e65dc049c23752a163d827
8,328
py
Python
changes/api/build_details.py
bowlofstew/changes
ebd393520e0fdb07c240a8d4e8747281b6186e28
[ "Apache-2.0" ]
null
null
null
changes/api/build_details.py
bowlofstew/changes
ebd393520e0fdb07c240a8d4e8747281b6186e28
[ "Apache-2.0" ]
null
null
null
changes/api/build_details.py
bowlofstew/changes
ebd393520e0fdb07c240a8d4e8747281b6186e28
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from collections import defaultdict from flask_restful.reqparse import RequestParser from itertools import groupby from sqlalchemy.orm import contains_eager, joinedload, subqueryload_all from uuid import UUID from changes.api.base import APIView from changes.api.serializer.model...
31.074627
79
0.587416
3,639
0.43696
0
0
0
0
0
0
1,250
0.150096
e55245ae534826a12c1057928c01b0d967155c85
633
py
Python
test/test_one_or_greater.py
kant/stream-daemon
729bc576b74dcd9f1e2021a2433d176d33c413c9
[ "MIT" ]
2
2016-06-06T22:50:21.000Z
2018-01-17T16:14:05.000Z
test/test_one_or_greater.py
kant/stream-daemon
729bc576b74dcd9f1e2021a2433d176d33c413c9
[ "MIT" ]
null
null
null
test/test_one_or_greater.py
kant/stream-daemon
729bc576b74dcd9f1e2021a2433d176d33c413c9
[ "MIT" ]
1
2018-08-27T19:57:03.000Z
2018-08-27T19:57:03.000Z
import unittest from Monitor import five_or_greater class MockProject(object): def __init__(self, message_count, keyword_counts): self.message_count = message_count self.keyword_counts = keyword_counts class TestOneOrGreater(unittest.TestCase): def test_some_above_some_below(self): to...
30.142857
81
0.616114
577
0.911532
0
0
0
0
0
0
54
0.085308
e552b7215e51626970b737861ed04a252b5cb791
1,293
py
Python
biblepaycentral/masternodes/migrations/0001_initial.py
Lichtsucher/biblepaycentral
0575c9c6851bd87d35d8cda9840301ee510698e8
[ "MIT" ]
3
2018-03-18T22:36:20.000Z
2020-02-13T15:52:25.000Z
biblepaycentral/masternodes/migrations/0001_initial.py
Lichtsucher/biblepaycentral
0575c9c6851bd87d35d8cda9840301ee510698e8
[ "MIT" ]
null
null
null
biblepaycentral/masternodes/migrations/0001_initial.py
Lichtsucher/biblepaycentral
0575c9c6851bd87d35d8cda9840301ee510698e8
[ "MIT" ]
1
2018-10-16T10:51:11.000Z
2018-10-16T10:51:11.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-05-20 16:32 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Maste...
34.026316
114
0.572312
1,134
0.87703
0
0
0
0
0
0
206
0.159319
e552e80c6cecaff697d61ab26de1caa136a85aa7
100
py
Python
taobaotmcpy/__init__.py
baocaixiong/taobao-tmc-python
7fea2e481f303aae172606bcc9e17d3ce5500abe
[ "MIT" ]
3
2015-09-17T14:35:45.000Z
2017-01-23T13:18:48.000Z
taobaotmcpy/__init__.py
baocaixiong/taobao-tmc-python
7fea2e481f303aae172606bcc9e17d3ce5500abe
[ "MIT" ]
null
null
null
taobaotmcpy/__init__.py
baocaixiong/taobao-tmc-python
7fea2e481f303aae172606bcc9e17d3ce5500abe
[ "MIT" ]
7
2016-03-29T07:02:50.000Z
2020-06-01T07:37:18.000Z
# coding: utf8 __author__ = 'baocaixiong' __all__ = ['TmcClient'] from tmcclient import TmcClient
14.285714
31
0.75
0
0
0
0
0
0
0
0
38
0.38
e554f5b6e49841dbafd67f8647e1ce20f5fc6e43
17
py
Python
test.py
HayatoNagasaki/HayatoNagasaki.github.io
98ca109f327ad2e079b2143d46487ed60209c83d
[ "MIT" ]
1
2019-07-11T01:06:01.000Z
2019-07-11T01:06:01.000Z
test.py
HayatoNagasaki/HayatoNagasaki.github.io
98ca109f327ad2e079b2143d46487ed60209c83d
[ "MIT" ]
1
2019-07-08T05:28:59.000Z
2021-01-14T10:44:49.000Z
test.py
HayatoNagasaki/HayatoNagasaki.github.io
98ca109f327ad2e079b2143d46487ed60209c83d
[ "MIT" ]
null
null
null
print("test.py")
8.5
16
0.647059
0
0
0
0
0
0
0
0
9
0.529412
e559a7fb012d10180f481f20a5e14d31f9279b77
2,368
py
Python
helper.py
HackerLion123/CNN_for_Fashion
25eb3fc449cf9ee2f1591e3c137a11915f0ee199
[ "MIT" ]
null
null
null
helper.py
HackerLion123/CNN_for_Fashion
25eb3fc449cf9ee2f1591e3c137a11915f0ee199
[ "MIT" ]
null
null
null
helper.py
HackerLion123/CNN_for_Fashion
25eb3fc449cf9ee2f1591e3c137a11915f0ee199
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow import gfile from PIL import Image from sklearn.model_selection import train_test_split from sklearn.preprocessing import LabelBinarizer import multiprocessing import sys import os def resize(img,shape): return tf.image.resize(img,shape) def load_mnist(): ...
26.606742
132
0.752956
0
0
0
0
0
0
0
0
117
0.049409
e55aa2f041ab96556aa76a0a7df9e2eb922247e5
1,570
py
Python
row.py
txt/se4dm
c38c742039eaa7a15730eb655c4eed067c8a5409
[ "Unlicense" ]
null
null
null
row.py
txt/se4dm
c38c742039eaa7a15730eb655c4eed067c8a5409
[ "Unlicense" ]
9
2015-10-30T12:46:53.000Z
2015-11-25T03:27:49.000Z
row.py
txt/se4dm
c38c742039eaa7a15730eb655c4eed067c8a5409
[ "Unlicense" ]
2
2018-06-22T15:23:44.000Z
2020-11-05T01:47:54.000Z
from __future__ import print_function, division import sys sys.dont_write_bytecode = True """ # Rows """ from lib import * class Row: n = -1 def __init__(i,t): Row.n = i.n = Row.n + 1 i.t, i.dists = t,{} def dist(j,k): if j.n == k.n : return 0 if j.n > k.n : return k.dist(j) key = (j.n, k...
22.112676
50
0.499363
761
0.484713
676
0.430573
0
0
0
0
44
0.028025
e55cd024add940dff887d317c65342a61070e10c
306
py
Python
hyperparams.py
nce3xin/spam
908421d5cf2dd103e2a7044bf1c8586aaf5f2ada
[ "MIT" ]
1
2019-03-13T10:49:25.000Z
2019-03-13T10:49:25.000Z
hyperparams.py
nce3xin/spam
908421d5cf2dd103e2a7044bf1c8586aaf5f2ada
[ "MIT" ]
null
null
null
hyperparams.py
nce3xin/spam
908421d5cf2dd103e2a7044bf1c8586aaf5f2ada
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jul 9 11:17:24 2018 @author: nce3xin """ seed_num=1 learning_rate=1e-3 #epochs=109 #epochs=90 epochs=20 batch_size=16 log_interval=1 no_cuda=False MODEL='LSTM' cnn_out_dims=25 CNN_mapping=False normalization=False standard_scale=False min_max_scaler=False
11.769231
35
0.754902
0
0
0
0
0
0
0
0
111
0.362745
e55d3600b75d26796ee6898a2f70d9baa125034f
1,091
py
Python
elkm1_lib/settings.py
stevemcquaid/elkm1
843092329208a3a2bafdedc0a8984a6f20626480
[ "MIT" ]
null
null
null
elkm1_lib/settings.py
stevemcquaid/elkm1
843092329208a3a2bafdedc0a8984a6f20626480
[ "MIT" ]
null
null
null
elkm1_lib/settings.py
stevemcquaid/elkm1
843092329208a3a2bafdedc0a8984a6f20626480
[ "MIT" ]
null
null
null
"""Definition of an ElkM1 Custom Value""" from .const import Max, TextDescriptions from .elements import Element, Elements from .message import add_message_handler, cp_encode, cw_encode class Setting(Element): """Class representing an Custom Value""" def __init__(self, index, elk): super().__init__(in...
32.088235
72
0.679193
899
0.824015
0
0
0
0
0
0
197
0.180568
e55fd1183bbea7baae5e8cb8798441212de67d2a
286
py
Python
rxbp/indexed/init/initindexedflowable.py
MichaelSchneeberger/rx_backpressure
16173827498bf1bbee3344933cb9efbfd19699f5
[ "Apache-2.0" ]
24
2018-11-22T21:04:49.000Z
2021-11-08T11:18:09.000Z
rxbp/indexed/init/initindexedflowable.py
MichaelSchneeberger/rx_backpressure
16173827498bf1bbee3344933cb9efbfd19699f5
[ "Apache-2.0" ]
1
2019-02-06T15:58:46.000Z
2019-02-12T20:31:50.000Z
rxbp/indexed/init/initindexedflowable.py
MichaelSchneeberger/rx_backpressure
16173827498bf1bbee3344933cb9efbfd19699f5
[ "Apache-2.0" ]
1
2021-01-26T12:41:37.000Z
2021-01-26T12:41:37.000Z
from rxbp.indexed.impl.indexedflowableimpl import IndexedFlowableImpl from rxbp.indexed.mixins.indexedflowablemixin import IndexedFlowableMixin def init_indexed_flowable( underlying: IndexedFlowableMixin, ): return IndexedFlowableImpl( underlying=underlying )
26
73
0.800699
0
0
0
0
0
0
0
0
0
0
e560c0065add902aec8b6f052dd6151fd1ebe484
291
py
Python
src/__init__.py
drkostas/COSC525-Project2
a33c786621e6047b0a586c7c3a3b5b85cb51fd6d
[ "Apache-2.0" ]
null
null
null
src/__init__.py
drkostas/COSC525-Project2
a33c786621e6047b0a586c7c3a3b5b85cb51fd6d
[ "Apache-2.0" ]
null
null
null
src/__init__.py
drkostas/COSC525-Project2
a33c786621e6047b0a586c7c3a3b5b85cb51fd6d
[ "Apache-2.0" ]
null
null
null
"""Top-level package for COSC525-Project2.""" from .neuron import * from .fully_connected_layer import * from .convolutional_layer import * from .max_pooling_layer import * from .flatten_layer import * from .neural_network import * from .data_generator import * from .tensor_files import *
26.454545
45
0.786942
0
0
0
0
0
0
0
0
45
0.154639
e560f9f2e17600df62f3bea76144c341a81a3cc7
7,581
py
Python
source/02_ssd_large/lib/model.py
toshi-k/kaggle-3d-object-detection-for-autonomous-vehicles
af2e0db16281fb997a9bd5149c478095128a627e
[ "MIT" ]
24
2019-11-28T05:54:58.000Z
2021-06-14T07:38:30.000Z
source/03_ssd_small/lib/model.py
toshi-k/kaggle-3d-object-detection-for-autonomous-vehicles
af2e0db16281fb997a9bd5149c478095128a627e
[ "MIT" ]
null
null
null
source/03_ssd_small/lib/model.py
toshi-k/kaggle-3d-object-detection-for-autonomous-vehicles
af2e0db16281fb997a9bd5149c478095128a627e
[ "MIT" ]
5
2019-12-06T05:59:32.000Z
2021-09-16T13:30:29.000Z
import math from pathlib import Path import numpy as np import torch from torch import nn import torch.nn.functional as F from torch.autograd import Variable from torchvision import models from PIL import Image from lib.default_box import dbox_params from lib.visualize import Visualizer from common import numpy2pil ...
34.616438
118
0.61298
5,136
0.677483
0
0
2,234
0.294684
0
0
849
0.111991
e5616dbad551125f0ff82bbdd7078f807585a1f9
2,560
py
Python
tests/datastructures_tests/physical_data_tests.py
czbiohub/reconstruct-order
e729ae3871aea0a5ec2d42744a9448c7f0a93037
[ "Unlicense" ]
6
2019-10-30T23:00:01.000Z
2021-03-02T19:09:07.000Z
tests/datastructures_tests/physical_data_tests.py
czbiohub/ReconstructOrder
e729ae3871aea0a5ec2d42744a9448c7f0a93037
[ "Unlicense" ]
14
2019-07-08T22:51:29.000Z
2019-07-13T15:44:01.000Z
tests/datastructures_tests/physical_data_tests.py
mehta-lab/reconstruct-order
e729ae3871aea0a5ec2d42744a9448c7f0a93037
[ "Unlicense" ]
2
2020-05-02T23:28:36.000Z
2020-07-16T23:46:46.000Z
import numpy as np import pytest, os from numpy.testing import assert_array_equal from ReconstructOrder.datastructures.physical_data import PhysicalData def test_basic_constructor_nparray(): """ test assignment using numpy arrays """ phys = PhysicalData() phys.I_trans = np.ones((512, 512)) p...
28.444444
70
0.679688
0
0
0
0
0
0
0
0
310
0.121094
e5620e85ec34ab2ff5817e8825c91c57685d44ba
6,349
py
Python
2019/14.py
IsaacG/Advent-of-Code
1e970c6a4abc4a2025f7c70323e70aee64d0bc21
[ "MIT" ]
3
2020-12-19T09:01:03.000Z
2021-12-16T13:05:03.000Z
2019/14.py
IsaacG/Advent-of-Code
1e970c6a4abc4a2025f7c70323e70aee64d0bc21
[ "MIT" ]
null
null
null
2019/14.py
IsaacG/Advent-of-Code
1e970c6a4abc4a2025f7c70323e70aee64d0bc21
[ "MIT" ]
null
null
null
#!/bin/python """Day 14: Space Stoichiometry. Handle chemical reactions, converting ORE to FUEL. """ import collections import math import typer from typing import Dict, List, Set, Tuple import data from lib import aoc SAMPLE = data.D14 TRILLION = int(1e12) class Reaction: """Wrapper around a single reaction.""...
35.668539
96
0.642778
6,000
0.945031
0
0
0
0
0
0
2,317
0.364939
e5636f16a4be081479c9bb8479ea7b652ed01784
530
py
Python
src/pynauty/tests/test_autgrp.py
sammorley-short/pynauty-1
852ee738174179c242913ff2afa8b47715d0947b
[ "Apache-2.0" ]
16
2021-02-05T10:15:57.000Z
2022-03-07T21:51:09.000Z
src/pynauty/tests/test_autgrp.py
sammorley-short/pynauty-1
852ee738174179c242913ff2afa8b47715d0947b
[ "Apache-2.0" ]
20
2021-01-31T11:48:56.000Z
2022-01-25T15:16:05.000Z
src/pynauty/tests/test_autgrp.py
sammorley-short/pynauty-1
852ee738174179c242913ff2afa8b47715d0947b
[ "Apache-2.0" ]
6
2021-02-18T11:55:17.000Z
2021-08-21T03:24:58.000Z
#!/usr/bin/env python import sys from pynauty import autgrp, Version import pytest # List of graphs for testing # # Structure: # [[name, Graph, numorbit, grpsize, generators]] # # numorbit, grpsize, generators was calculated by dreadnut # def test_autgrp(graph): gname, g, numorbit, grpsize, gens = graph pr...
24.090909
75
0.683019
0
0
0
0
0
0
0
0
186
0.350943
e563d88bca3ef7c6f932060d4826c5924fd546b6
3,284
py
Python
easytrader/pazq_remote_trader.py
CHiSec/nextrader
28b9becf23f6e40d36f5bda0515ac383913899d6
[ "MIT" ]
null
null
null
easytrader/pazq_remote_trader.py
CHiSec/nextrader
28b9becf23f6e40d36f5bda0515ac383913899d6
[ "MIT" ]
null
null
null
easytrader/pazq_remote_trader.py
CHiSec/nextrader
28b9becf23f6e40d36f5bda0515ac383913899d6
[ "MIT" ]
null
null
null
import abc import requests import time import json from easytrader.utils.misc import file2dict class IRemoteTrader(abc.ABC): @abc.abstractmethod def prepare( self, config_path=None, user=None, password=None, token=None, address=None, ...
26.063492
95
0.563033
3,183
0.969245
0
0
1,063
0.323691
0
0
385
0.117235
e565c470b23648889679a52fd97863eab35ec86e
3,496
py
Python
Game/images.py
mrElnekave/Hallow-Valley
6c3ba0dc3932839941a00362da0212850b2b20a6
[ "MIT" ]
null
null
null
Game/images.py
mrElnekave/Hallow-Valley
6c3ba0dc3932839941a00362da0212850b2b20a6
[ "MIT" ]
null
null
null
Game/images.py
mrElnekave/Hallow-Valley
6c3ba0dc3932839941a00362da0212850b2b20a6
[ "MIT" ]
null
null
null
import pygame, constants, copy # pygame.init() pygame.display.set_mode(constants.default_size) current_path = constants.current_path + "Pixel Images\\" def load_img(path, colorkey=(255,255,255)): img = pygame.image.load(current_path + path).convert() img.set_colorkey(colorkey) return img def create_path(...
36.041237
136
0.735984
0
0
0
0
0
0
0
0
487
0.139302
e5669614b0e617bd22827739713131fdd9270edc
2,030
py
Python
examples/old-examples/Kivy/window_coordinates.py
asnt/moderngl
b39cedd8cf216c34e43371b4aec822f6084f0f79
[ "MIT" ]
916
2019-03-11T19:15:20.000Z
2022-03-31T19:22:16.000Z
examples/old-examples/Kivy/window_coordinates.py
asnt/moderngl
b39cedd8cf216c34e43371b4aec822f6084f0f79
[ "MIT" ]
218
2019-03-11T06:05:52.000Z
2022-03-30T16:59:22.000Z
examples/old-examples/Kivy/window_coordinates.py
asnt/moderngl
b39cedd8cf216c34e43371b4aec822f6084f0f79
[ "MIT" ]
110
2019-04-06T18:32:24.000Z
2022-03-21T20:30:47.000Z
import struct import ModernGL from kivy.app import App from kivy.core.window import Window from kivy.graphics import Callback from kivy.uix.widget import Widget class CustomWidget(Widget): def __init__(self, **kwargs): super(CustomWidget, self).__init__(**kwargs) with self.canvas: se...
26.363636
97
0.484729
1,813
0.893103
0
0
0
0
0
0
689
0.339409
e566b297876dff7f7531c8e89abb6a0cb5ac2b19
3,589
py
Python
shogun/records/generic.py
menpo/shogun
013baff88cb495e8f4314826865ec7e332859636
[ "MIT", "BSD-3-Clause" ]
1
2020-11-26T21:04:20.000Z
2020-11-26T21:04:20.000Z
shogun/records/generic.py
menpo/shogun
013baff88cb495e8f4314826865ec7e332859636
[ "MIT", "BSD-3-Clause" ]
null
null
null
shogun/records/generic.py
menpo/shogun
013baff88cb495e8f4314826865ec7e332859636
[ "MIT", "BSD-3-Clause" ]
null
null
null
import inspect from abc import ABCMeta, abstractmethod from typing import Any, Generic, List, Mapping, Optional, Type, TypeVar from .error import NotARecordClass T = TypeVar("T") FieldType = TypeVar("FieldType") class DatargsParams: def __init__(self, parser: Optional[Mapping[str, Any]] = None): self.pa...
26.783582
113
0.633881
3,366
0.937866
0
0
2,118
0.590137
0
0
1,047
0.291725
e566f80f2af89ff3cebc3584e47b99d358ead339
481
py
Python
example/get_concurrent.py
sojin-project/scrape-academy
5a18f5b497a6b3b85049ec1a4451b6a333e84353
[ "MIT" ]
null
null
null
example/get_concurrent.py
sojin-project/scrape-academy
5a18f5b497a6b3b85049ec1a4451b6a333e84353
[ "MIT" ]
null
null
null
example/get_concurrent.py
sojin-project/scrape-academy
5a18f5b497a6b3b85049ec1a4451b6a333e84353
[ "MIT" ]
null
null
null
# type: ignore import asyncio from scrapeacademy import context, run async def get_concurrent(url): # Get a same page 10 times simultaneously tasks = [context.get(url) for _ in range(10)] n = 1 while tasks: done, tasks = await asyncio.wait(tasks, return_when=asyncio.FIRST_COMPLETED) ...
20.913043
84
0.632017
0
0
0
0
0
0
359
0.746362
97
0.201663
e56779436b35301359589f1c68b90f43fe79050c
395
py
Python
leetcode/maximum_difference_between_node_and_ancestor/maximum_difference_between_node_and_ancestor.py
sagasu/python-algorithms
d630777a3f17823165e4d72ab780ede7b10df752
[ "MIT" ]
null
null
null
leetcode/maximum_difference_between_node_and_ancestor/maximum_difference_between_node_and_ancestor.py
sagasu/python-algorithms
d630777a3f17823165e4d72ab780ede7b10df752
[ "MIT" ]
null
null
null
leetcode/maximum_difference_between_node_and_ancestor/maximum_difference_between_node_and_ancestor.py
sagasu/python-algorithms
d630777a3f17823165e4d72ab780ede7b10df752
[ "MIT" ]
null
null
null
class Solution: def maxAncestorDiff(self, root: Optional[TreeNode]) -> int: def dfs(root, mn, mx): if not root: return 0 res = max(abs(root.val - mn), abs(root.val - mx)) mn, mx = min(mn, root.val), max(mx, root.val) return max(res, dfs(root.left, mn, mx), dfs...
43.888889
76
0.546835
395
1
0
0
0
0
0
0
0
0
e568447e5a2058ff096a7764cac780efbf11101d
213
py
Python
edx_6.00.1x_python/ex7_7.py
TimothyDJones/learn-python
687239572bee5e5c94bebb6b175b3fba4d47600e
[ "MIT" ]
null
null
null
edx_6.00.1x_python/ex7_7.py
TimothyDJones/learn-python
687239572bee5e5c94bebb6b175b3fba4d47600e
[ "MIT" ]
null
null
null
edx_6.00.1x_python/ex7_7.py
TimothyDJones/learn-python
687239572bee5e5c94bebb6b175b3fba4d47600e
[ "MIT" ]
null
null
null
# ex7_7.py def f(n): """ n: integer, n >= 0. """ if n == 0: return 1 else: return n * f(n-1) if __name__ == "__main__": print(f(0)) print(f(1)) print(f(3)) print(f(5))
12.529412
26
0.43662
0
0
0
0
0
0
0
0
53
0.248826
e568882780ef0ac998bdbf653d401680333f8d0d
919
py
Python
zeus/factories/revision.py
conrad-kronos/zeus
ddb6bc313e51fb22222b30822b82d76f37dbbd35
[ "Apache-2.0" ]
221
2017-07-03T17:29:21.000Z
2021-12-07T19:56:59.000Z
zeus/factories/revision.py
conrad-kronos/zeus
ddb6bc313e51fb22222b30822b82d76f37dbbd35
[ "Apache-2.0" ]
298
2017-07-04T18:08:14.000Z
2022-03-03T22:24:51.000Z
zeus/factories/revision.py
conrad-kronos/zeus
ddb6bc313e51fb22222b30822b82d76f37dbbd35
[ "Apache-2.0" ]
24
2017-07-15T13:46:45.000Z
2020-08-16T16:14:45.000Z
import factory import factory.faker from datetime import timedelta from faker import Factory faker = Factory.create() from zeus import models from zeus.config import db from zeus.utils import timezone from .base import ModelFactory class RevisionFactory(ModelFactory): sha = factory.Faker("sha1") repositor...
23.564103
71
0.68444
680
0.739935
0
0
206
0.224157
0
0
65
0.070729
e569092e20bd1bfebd7bbcdc409a0332fd58245a
18,701
py
Python
xga/xspec/run.py
DavidT3/XGA
cde51c3f29f98b5f1e981fb6d327c04072b0ba38
[ "BSD-3-Clause" ]
12
2020-05-16T09:45:45.000Z
2022-02-14T14:41:46.000Z
xga/xspec/run.py
DavidT3/XGA
cde51c3f29f98b5f1e981fb6d327c04072b0ba38
[ "BSD-3-Clause" ]
684
2020-05-28T08:52:09.000Z
2022-03-31T10:56:24.000Z
xga/xspec/run.py
DavidT3/XGA
cde51c3f29f98b5f1e981fb6d327c04072b0ba38
[ "BSD-3-Clause" ]
2
2022-02-04T10:55:55.000Z
2022-02-04T11:30:56.000Z
# This code is a part of XMM: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS). # Last modified by David J Turner (david.turner@sussex.ac.uk) 09/06/2021, 16:34. Copyright (c) David J Turner import os import warnings from functools import wraps # from multiprocessing.dummy import Pool fr...
55.492582
119
0.579006
0
0
0
0
12,318
0.658681
0
0
7,784
0.416234
e56946e13d2d2d1c51e541739f896030848cdd8a
76,894
py
Python
utils/utils_df_nn.py
Lifelong-ML/LASEM
c4ec052c850e37f54bc3e6faf6b988a4c5239f10
[ "MIT" ]
8
2021-07-06T14:35:50.000Z
2022-03-03T08:45:13.000Z
utils/utils_df_nn.py
Lifelong-ML/LASEM
c4ec052c850e37f54bc3e6faf6b988a4c5239f10
[ "MIT" ]
null
null
null
utils/utils_df_nn.py
Lifelong-ML/LASEM
c4ec052c850e37f54bc3e6faf6b988a4c5239f10
[ "MIT" ]
1
2021-07-09T09:26:11.000Z
2021-07-09T09:26:11.000Z
import numpy as np import tensorflow as tf from utils.utils import * from utils.utils_nn import * ########################################################### ##### functions to generate parameter ##### ########################################################### #### function to generate k...
116.154079
1,000
0.734986
0
0
0
0
0
0
0
0
6,823
0.088733
e569a5dbd4c731524441ab30a896814a5ca98109
22,303
py
Python
cogs/device.py
quiprr/AutoTSS
8d78db17ed5a7f6200955689bfb7580b7eba7183
[ "MIT" ]
null
null
null
cogs/device.py
quiprr/AutoTSS
8d78db17ed5a7f6200955689bfb7580b7eba7183
[ "MIT" ]
null
null
null
cogs/device.py
quiprr/AutoTSS
8d78db17ed5a7f6200955689bfb7580b7eba7183
[ "MIT" ]
null
null
null
from aioify import aioify from discord.ext import commands import aiofiles import aiohttp import aiosqlite import asyncio import discord import json import shutil class Device(commands.Cog): def __init__(self, bot): self.bot = bot self.shutil = aioify(shutil, name='shutil') self.utils = self.bot.get_cog('Utils...
40.922936
183
0.706407
22,092
0.990539
0
0
21,922
0.982917
21,542
0.965879
6,715
0.301081
e569cd589ab6a45a901427f44fecdf26b339de4e
3,725
py
Python
applications/AdminSItes/controllers/sites.py
pigaov10/prodam.site.admin
9105c092a76fb7158085a08cd4d30d99b6e02ba9
[ "BSD-3-Clause" ]
null
null
null
applications/AdminSItes/controllers/sites.py
pigaov10/prodam.site.admin
9105c092a76fb7158085a08cd4d30d99b6e02ba9
[ "BSD-3-Clause" ]
null
null
null
applications/AdminSItes/controllers/sites.py
pigaov10/prodam.site.admin
9105c092a76fb7158085a08cd4d30d99b6e02ba9
[ "BSD-3-Clause" ]
null
null
null
### SITE PLONE import os, sys import xml.etree.cElementTree as tree_element_first @auth.requires_membership('admin') def add(): """ MÉTODO RESPONSÁVEL POR GERAR O SKELETON DE UM SITE PLONE @dir /sites/prodam.gerenciador.<project_name>/src/prodam/gerenciador/<project_name>/ """ if request.post_vars.site: site =...
27.389706
88
0.682953
0
0
0
0
1,364
0.364122
0
0
1,326
0.353978
e56a51d213bf7149b8e6be6f0bd4f017978c2a3f
1,365
py
Python
fraktal_kocha_obiektowy.py
dkosztowniak/krzywaKocha
1ece53d0fda51565eedd7e5427a82e72e019a21d
[ "MIT" ]
null
null
null
fraktal_kocha_obiektowy.py
dkosztowniak/krzywaKocha
1ece53d0fda51565eedd7e5427a82e72e019a21d
[ "MIT" ]
null
null
null
fraktal_kocha_obiektowy.py
dkosztowniak/krzywaKocha
1ece53d0fda51565eedd7e5427a82e72e019a21d
[ "MIT" ]
null
null
null
import turtle class fraktalKocha(turtle.Turtle): def __init__(self): super().__init__(shape='classic', visible=False) def krzywaKocha(self, d, n): self.pendown() if n == 0: self.forward(d) else: self.krzywaKocha(d/3, n-1) self.left(60) ...
24.375
69
0.556044
614
0.449817
0
0
0
0
0
0
148
0.108425
e56b278c08c9a210c958ffc52ff78cb97e76e231
718
py
Python
scripts/metadata_comparison/metadata_comparison/lib/digester_keys.py
leipzig/cromwell
e46adf05cc96343c4b4b9f081e68160b7f178ded
[ "Apache-2.0", "BSD-3-Clause" ]
850
2015-05-17T12:45:42.000Z
2022-03-31T08:36:54.000Z
scripts/metadata_comparison/metadata_comparison/lib/digester_keys.py
leipzig/cromwell
e46adf05cc96343c4b4b9f081e68160b7f178ded
[ "Apache-2.0", "BSD-3-Clause" ]
5,136
2015-05-06T14:58:16.000Z
2022-03-31T15:44:37.000Z
scripts/metadata_comparison/metadata_comparison/lib/digester_keys.py
leipzig/cromwell
e46adf05cc96343c4b4b9f081e68160b7f178ded
[ "Apache-2.0", "BSD-3-Clause" ]
363
2015-11-18T13:15:45.000Z
2022-03-31T08:05:56.000Z
Attempt = "attempt" CromwellAdditionalTotalTimeSeconds = "cromwellAdditionalTotalTimeSeconds" CromwellEnd = "cromwellEnd" CromwellStart = "cromwellStart" CromwellTotalTimeSeconds = "cromwellTotalTimeSeconds" DelocalizationTimeSeconds = "delocalizationTimeSeconds" Disks = "disks" DockerImagePullTimeSeconds = "dockerImag...
35.9
73
0.841226
0
0
0
0
0
0
0
0
340
0.473538
e56d517d2e7a6f8ec101aff647f99c75f46d671c
8,765
py
Python
VPR_Techniques/HybridNet.py
oravus/VPR-Bench
80ff8d1f18e3cd102af94b96b6fe9bd0041257cc
[ "MIT" ]
30
2021-04-24T12:25:50.000Z
2022-03-23T05:28:19.000Z
VPR_Techniques/HybridNet.py
UQEKV/VPR-Bench
5b3c6170a1c3f6137aba371468302efd612de66d
[ "MIT" ]
5
2021-06-28T00:48:24.000Z
2022-03-04T16:05:57.000Z
VPR_Techniques/HybridNet.py
UQEKV/VPR-Bench
5b3c6170a1c3f6137aba371468302efd612de66d
[ "MIT" ]
7
2021-04-16T06:46:05.000Z
2022-03-23T05:28:09.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu Mar 5 15:34:18 2020 @author: mubariz """ import caffe import numpy as np import os def compute_map_features(ref_map): mean_npy = np.load(str(os.path.abspath(os.curdir))+'/VPR_Techniques/HybridNet/hybridnet_mean.npy') print('Mean Array Shape:'...
50.66474
189
0.610496
0
0
0
0
0
0
0
0
1,159
0.13223
e56e6882dba09fa5e87e1ace9bbb92be2582bd23
7,228
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble_radio.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble_radio.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble_radio.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2019 Nicholas H. Tollervey for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_ble_radio` ================================================================================ Simple byte and string based inter-device communication via BLE. * Author(s): Nicholas H.Tollervey f...
35.258537
87
0.606253
5,947
0.822773
0
0
702
0.097122
0
0
3,554
0.491699
e56ec1987b2697fa228af32ab9806f8ffcfab331
536
py
Python
01-algorithmic-design-and-techniques/week-2/fibonacci-fast.py
andrewnachtigal/UCSD-Algorithms
25acae36752e37fab74b8e331db554af704ccf4c
[ "MIT" ]
null
null
null
01-algorithmic-design-and-techniques/week-2/fibonacci-fast.py
andrewnachtigal/UCSD-Algorithms
25acae36752e37fab74b8e331db554af704ccf4c
[ "MIT" ]
null
null
null
01-algorithmic-design-and-techniques/week-2/fibonacci-fast.py
andrewnachtigal/UCSD-Algorithms
25acae36752e37fab74b8e331db554af704ccf4c
[ "MIT" ]
null
null
null
#!/user/bin/python '''FibonacciList(n) create an array F[0... n] F[0] <- 0 F[1] <- 1 for i from 2 to n: F[i] <- F[i-1] + F[i-2] return F[n] ''' def fibonacci_recurs(n): if (n <= 1): return n else: return fibonacci_recurs(n - 1) + fibonacci_recurs(n - 2) def fibo...
16.242424
64
0.516791
0
0
0
0
0
0
0
0
181
0.337687
e56ec44fd01f43bc003d160541bb7a0ae0b9a6ae
1,715
py
Python
pynYNAB/schema/catalog.py
rienafairefr/pynYNAB
d5fc0749618409c6bb01cc2b93832cc59d780eaa
[ "MIT" ]
82
2017-02-21T11:07:24.000Z
2022-03-20T21:56:17.000Z
pynYNAB/schema/catalog.py
rienafairefr/pynYNAB
d5fc0749618409c6bb01cc2b93832cc59d780eaa
[ "MIT" ]
37
2017-02-19T10:28:03.000Z
2021-01-23T07:44:06.000Z
pynYNAB/schema/catalog.py
rienafairefr/pynYNAB
d5fc0749618409c6bb01cc2b93832cc59d780eaa
[ "MIT" ]
13
2017-03-07T10:08:59.000Z
2018-05-11T04:53:25.000Z
from sqlalchemy import Boolean from sqlalchemy import Column from sqlalchemy import DateTime from sqlalchemy import ForeignKey from sqlalchemy import String from sqlalchemy.ext.declarative import declared_attr from sqlalchemy.orm import relationship from pynYNAB.schema.Entity import Entity, Base from pynYNAB.schema.ty...
28.583333
73
0.744606
1,356
0.790671
0
0
162
0.094461
0
0
136
0.0793
e56f6d2a048e2089110b635b9fc2860c2724c363
13,775
py
Python
layers/MultiWaveletCorrelation.py
MAZiqing/FEDformer
7914d39df829494a8172afb9676982c3789d491d
[ "MIT" ]
7
2022-02-20T13:03:25.000Z
2022-03-30T09:27:38.000Z
layers/MultiWaveletCorrelation.py
MAZiqing/FEDformer
7914d39df829494a8172afb9676982c3789d491d
[ "MIT" ]
null
null
null
layers/MultiWaveletCorrelation.py
MAZiqing/FEDformer
7914d39df829494a8172afb9676982c3789d491d
[ "MIT" ]
4
2022-03-05T09:09:28.000Z
2022-03-21T08:46:23.000Z
import torch import numpy as np import torch.nn as nn import torch.nn.functional as F from torch import Tensor from typing import List, Tuple import math from functools import partial from einops import rearrange, reduce, repeat from torch import nn, einsum, diagonal from math import log2, ceil import pdb from utils.m...
36.345646
116
0.503739
13,304
0.965808
0
0
0
0
0
0
865
0.062795
e56f87f0384ecbf57f48e8eac0641bcfd48082b7
5,636
py
Python
perrec/cbr.py
Tbabm/PerRec
1f711d70df8354156b37857719db0559876be08c
[ "MIT" ]
3
2019-07-24T12:03:24.000Z
2019-08-28T14:42:51.000Z
perrec/cbr.py
Tbabm/PerRec
1f711d70df8354156b37857719db0559876be08c
[ "MIT" ]
null
null
null
perrec/cbr.py
Tbabm/PerRec
1f711d70df8354156b37857719db0559876be08c
[ "MIT" ]
null
null
null
# encoding=utf-8 import os import fire import numpy as np from scipy.sparse.csr import csr_matrix from sklearn.base import BaseEstimator from sklearn.model_selection import cross_validate from sklearn.preprocessing import normalize from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer from .co...
36.836601
98
0.649929
4,667
0.82807
0
0
880
0.156139
0
0
1,581
0.280518
e57008133545852ca9c37cb6b1fc3ddad68b824d
675
py
Python
registry/migrations/0041_auto_20210505_1210.py
not-vibhu/aerobridge
2edcd5e75782663184ac57da8145427613f4ef2b
[ "Apache-2.0" ]
null
null
null
registry/migrations/0041_auto_20210505_1210.py
not-vibhu/aerobridge
2edcd5e75782663184ac57da8145427613f4ef2b
[ "Apache-2.0" ]
null
null
null
registry/migrations/0041_auto_20210505_1210.py
not-vibhu/aerobridge
2edcd5e75782663184ac57da8145427613f4ef2b
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2 on 2021-05-05 12:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('registry', '0040_auto_20210216_1404'), ] operations = [ migrations.AlterField( model_name='firmware', name='binary_fil...
28.125
119
0.619259
584
0.865185
0
0
0
0
0
0
256
0.379259
e57010f041e3598f7f9d0eae8d7344c471cefd8d
847
py
Python
topic_modeling.py
francescoferretto/Investigating-relationships-between-Twitter-latent-topics-and-political-orientation
c6f1ff05ac8960885f26a153d7c0c8ecf1364a6a
[ "MIT" ]
null
null
null
topic_modeling.py
francescoferretto/Investigating-relationships-between-Twitter-latent-topics-and-political-orientation
c6f1ff05ac8960885f26a153d7c0c8ecf1364a6a
[ "MIT" ]
null
null
null
topic_modeling.py
francescoferretto/Investigating-relationships-between-Twitter-latent-topics-and-political-orientation
c6f1ff05ac8960885f26a153d7c0c8ecf1364a6a
[ "MIT" ]
null
null
null
import csv import sys import json import pandas as pd import os import logging # Configure the path os.chdir('/home/emi/unipd/Sartori_CBSD/project/cbsdproject') accounts = pd.read_excel('LabelledAccounts.xlsx', skiprows=1) import operator import collections def get_party_label(votes, porcentage=0.75): porce...
26.46875
82
0.744982
0
0
0
0
0
0
0
0
330
0.38961
e570191797fda76257f543ceca066c63d6087a58
1,410
py
Python
examples/tournament/tournament.py
gavento/orco
07e90bf87246f4577c8e3653b34474a69cc5338e
[ "MIT" ]
null
null
null
examples/tournament/tournament.py
gavento/orco
07e90bf87246f4577c8e3653b34474a69cc5338e
[ "MIT" ]
null
null
null
examples/tournament/tournament.py
gavento/orco
07e90bf87246f4577c8e3653b34474a69cc5338e
[ "MIT" ]
null
null
null
import itertools import random import orco # Function that trains "players" @orco.builder() def train_player(config): # We will simulate trained players by a dictionary with a "strength" key return {"strength": random.randint(0, 10)} # Build function for "games" @orco.builder() def play_game(config): p...
26.603774
79
0.664539
0
0
1,017
0.721277
1,214
0.860993
0
0
554
0.392908
e57024f83b49dd4e2de2007ee984d24ae347e3b1
2,546
py
Python
scripts/injection_ROI_visualization.py
karimi-ali/brainrender
04be6a05fdfdd22424c4c499f4563943436faf6f
[ "BSD-3-Clause" ]
null
null
null
scripts/injection_ROI_visualization.py
karimi-ali/brainrender
04be6a05fdfdd22424c4c499f4563943436faf6f
[ "BSD-3-Clause" ]
null
null
null
scripts/injection_ROI_visualization.py
karimi-ali/brainrender
04be6a05fdfdd22424c4c499f4563943436faf6f
[ "BSD-3-Clause" ]
null
null
null
import os from pathlib import Path import brainrender from brainrender import Scene, actor, Animation from rich import color, print from myterial import orange from vedo import Volume, io, load, show import numpy as np import pandas as pd import util # path names and roi names paths = util.get_paths() roi_names = ut...
36.371429
98
0.688138
0
0
0
0
0
0
0
0
826
0.32443
e57240c96406c5bb3b032eec708032b091e297a7
7,664
py
Python
scripts/wk/exe.py
2Shirt/WizardK
82a2e7f85c80a52f892c1553e7a45ec0174e7bc6
[ "MIT" ]
null
null
null
scripts/wk/exe.py
2Shirt/WizardK
82a2e7f85c80a52f892c1553e7a45ec0174e7bc6
[ "MIT" ]
178
2017-11-17T19:14:31.000Z
2021-12-15T07:43:29.000Z
scripts/wk/exe.py
2Shirt/WizardK
82a2e7f85c80a52f892c1553e7a45ec0174e7bc6
[ "MIT" ]
1
2017-11-17T19:32:36.000Z
2017-11-17T19:32:36.000Z
"""WizardKit: Execution functions""" #vim: sts=2 sw=2 ts=2 import json import logging import os import re import subprocess import time from threading import Thread from queue import Queue, Empty import psutil # STATIC VARIABLES LOG = logging.getLogger(__name__) # Classes class NonBlockingStreamReader(): """Cl...
26.797203
78
0.662578
1,553
0.202636
0
0
0
0
0
0
2,894
0.37761
e572bb9c99a87131d6b55a9f4ae160708893aa34
808
py
Python
ch03/question_5.py
dhrey112/IntroToPython_Deitel
7ecbff931d05c467ad64da0bd829f79fedf729ba
[ "MIT" ]
null
null
null
ch03/question_5.py
dhrey112/IntroToPython_Deitel
7ecbff931d05c467ad64da0bd829f79fedf729ba
[ "MIT" ]
null
null
null
ch03/question_5.py
dhrey112/IntroToPython_Deitel
7ecbff931d05c467ad64da0bd829f79fedf729ba
[ "MIT" ]
null
null
null
# TODO: 5 (if…else Statements) Reimplement the script of Fig2.1. using three # if…else statements rather than six if statements. [Hint: For example, # think of == and != as “opposite” tests.] print('Enter two integers and I will tell you', 'the relationships they satisfy.') # read first integer number1 = int...
27.862069
76
0.690594
0
0
0
0
0
0
0
0
476
0.583333
e5738670ee63aa457dda6f798c0a759c27cefdc5
7,815
py
Python
src/libnbnotify/plugins/bus.py
webnull/nbnotify
54f7d0db0656053680466537aeba35f348147830
[ "Python-2.0", "OLDAP-2.7" ]
1
2015-12-03T06:41:23.000Z
2015-12-03T06:41:23.000Z
src/libnbnotify/plugins/bus.py
webnull/nbnotify
54f7d0db0656053680466537aeba35f348147830
[ "Python-2.0", "OLDAP-2.7" ]
2
2019-03-02T08:02:34.000Z
2019-03-02T08:02:47.000Z
src/libnbnotify/plugins/bus.py
webnull/nbnotify
54f7d0db0656053680466537aeba35f348147830
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
#-*- coding: utf-8 -*- import libnbnotify import socket import ssl import json import asyncore import re import sys from threading import Thread import string import random import os import BaseHTTPServer, SimpleHTTPServer PluginInfo = {'Requirements' : { 'OS' : 'All'}, 'API': 2, 'Authors': 'webnull', 'domain': '', 't...
29.490566
183
0.572105
7,253
0.928087
0
0
0
0
0
0
2,925
0.37428
e574327e0656040a8425a4febb6293a932d17cd0
3,738
py
Python
main.py
Sujay-Paul/Clara-Music-Bot-Telegram
deb4623185e2b6d09f55e65c4e738c49e22ee1dc
[ "MIT" ]
1
2022-01-11T16:43:57.000Z
2022-01-11T16:43:57.000Z
main.py
Sujay-Paul/Clara-Music-Bot-Telegram
deb4623185e2b6d09f55e65c4e738c49e22ee1dc
[ "MIT" ]
1
2021-10-01T17:01:48.000Z
2021-10-01T17:01:48.000Z
main.py
Sujay-Paul/Clara-Music-Bot-Telegram
deb4623185e2b6d09f55e65c4e738c49e22ee1dc
[ "MIT" ]
1
2021-10-01T16:59:49.000Z
2021-10-01T16:59:49.000Z
from pyrogram import Client, filters from pyrogram.types import ( InlineKeyboardButton, InlineKeyboardMarkup ) import youtube_dl from youtube_search import YoutubeSearch import requests import json import os with open('./config.json', 'r') as config: data = json.load(config) bot_token = data['token'] ...
31.948718
169
0.581594
0
0
0
0
3,097
0.822576
0
0
1,024
0.271979
e575ae4d7ce1c8acba084bc5319b860ff622e79d
12,371
py
Python
main.py
dzinghan/Bouncing-Ball-Simulation
b476af0df40cdd76a9d1256d95de1393748e9edc
[ "MIT" ]
null
null
null
main.py
dzinghan/Bouncing-Ball-Simulation
b476af0df40cdd76a9d1256d95de1393748e9edc
[ "MIT" ]
null
null
null
main.py
dzinghan/Bouncing-Ball-Simulation
b476af0df40cdd76a9d1256d95de1393748e9edc
[ "MIT" ]
null
null
null
''' Bouncing Ball Simulation This is an implementation of a bouncing ball simulation using mainly the Tkinter library in Python. It includes physics and mechanics-related concepts such as gravity, air resistance, and collision. Before the start of the simulation, the program prompts the user to enter a value for gravit...
38.780564
120
0.547167
11,563
0.934686
0
0
0
0
0
0
4,512
0.364724
e575dbc2852de3f51f4fc99d4e2297f4d5034e48
1,935
py
Python
examples/validation/core/06_vuetify_components.py
Kitware/trame
41c4d62e7a6f5dba41fd9305b314c87fa8ed7b6f
[ "Apache-2.0" ]
42
2021-09-24T22:10:32.000Z
2022-03-30T19:39:25.000Z
examples/validation/core/06_vuetify_components.py
Kitware/trame
41c4d62e7a6f5dba41fd9305b314c87fa8ed7b6f
[ "Apache-2.0" ]
31
2021-10-01T21:19:56.000Z
2022-03-04T00:14:28.000Z
examples/validation/core/06_vuetify_components.py
Kitware/trame
41c4d62e7a6f5dba41fd9305b314c87fa8ed7b6f
[ "Apache-2.0" ]
7
2021-11-17T16:12:06.000Z
2022-03-26T21:08:40.000Z
from trame.app import get_server from trame.widgets import vtk, trame, vuetify from trame.ui.vuetify import SinglePageLayout # ----------------------------------------------------------------------------- # Trame setup # ----------------------------------------------------------------------------- server = get_server...
29.769231
79
0.447028
0
0
0
0
0
0
0
0
688
0.355556
e5770a81b9b82cc0a7f14946858d355e97381b6c
752
py
Python
migrations/versions/4d998c6ec630_nobadges.py
Togohogo1/tag-dh
e6903a87b8e491d84d3dcee02912238e6a3cabbe
[ "MIT" ]
4
2020-05-05T01:36:54.000Z
2021-03-13T21:05:47.000Z
migrations/versions/4d998c6ec630_nobadges.py
Togohogo1/tag-dh
e6903a87b8e491d84d3dcee02912238e6a3cabbe
[ "MIT" ]
1
2020-05-23T05:48:18.000Z
2020-05-23T05:48:18.000Z
migrations/versions/4d998c6ec630_nobadges.py
Togohogo1/tag-dh
e6903a87b8e491d84d3dcee02912238e6a3cabbe
[ "MIT" ]
1
2020-05-23T05:41:24.000Z
2020-05-23T05:41:24.000Z
"""nobadges Revision ID: 4d998c6ec630 Revises: 7950a35f5dbd Create Date: 2020-05-04 11:55:22.475532 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '4d998c6ec630' down_revision = '7950a35f5dbd' branch_labels = None depends_on = None def upgrade(): # ### c...
24.258065
74
0.695479
0
0
0
0
0
0
0
0
389
0.517287
e577c049fff9107639adbdf73d533e3bceafb55b
323
py
Python
app/migrations/0003_remove_opinions_idea_opinion.py
sergane13/WorkingPlace
51f3550dbfa077cdfc7dd1a5421f787ad5bd84b1
[ "MIT" ]
1
2021-12-10T17:58:09.000Z
2021-12-10T17:58:09.000Z
app/migrations/0003_remove_opinions_idea_opinion.py
sergane13/IdeaTool-testSite
51f3550dbfa077cdfc7dd1a5421f787ad5bd84b1
[ "MIT" ]
null
null
null
app/migrations/0003_remove_opinions_idea_opinion.py
sergane13/IdeaTool-testSite
51f3550dbfa077cdfc7dd1a5421f787ad5bd84b1
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2021-01-26 08:59 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('app', '0002_opinions'), ] operations = [ migrations.RemoveField( model_name='opinions', name='idea_opinion', ), ...
17.944444
48
0.585139
237
0.733746
0
0
0
0
0
0
92
0.28483
e579720eabdbde95c5e282c52355449ab7cbf297
325
bzl
Python
library.bzl
tintor/mono
396edd39e45f536cac91b1fa6524f019244e4549
[ "Apache-2.0" ]
1
2020-09-27T05:07:20.000Z
2020-09-27T05:07:20.000Z
library.bzl
tintor/mono
396edd39e45f536cac91b1fa6524f019244e4549
[ "Apache-2.0" ]
null
null
null
library.bzl
tintor/mono
396edd39e45f536cac91b1fa6524f019244e4549
[ "Apache-2.0" ]
null
null
null
def library(name, hdrs=[], srcs=[], deps=[], test_deps=[]): native.cc_library( name = name, hdrs = [name + ".h"] + hdrs, srcs = srcs, deps = deps, ) native.cc_test( name = name + "_test", srcs = [name + "_test.cc"], deps = test_deps + [":" + name, "//:catch"], args = ["-d=yes"],...
21.666667
59
0.489231
0
0
0
0
0
0
0
0
42
0.129231
e57aa1c123fef768bea75c45c3ceece7bb3f0440
859
py
Python
dxgi_values.py
ouroborus/dds_loader
2b28d5f58c79473e040a1f755305bf26cfe28d47
[ "MIT" ]
null
null
null
dxgi_values.py
ouroborus/dds_loader
2b28d5f58c79473e040a1f755305bf26cfe28d47
[ "MIT" ]
null
null
null
dxgi_values.py
ouroborus/dds_loader
2b28d5f58c79473e040a1f755305bf26cfe28d47
[ "MIT" ]
null
null
null
# BPP and block sizes for all DXGI formats # Since dxgi formats are enumerated from 0 onward there is no need for dictionary # if some formats are not suited for storing the value is going to be set to 0 # Sizes are in BYTES dxgi_pixel_or_block_size = [ 0, 16, 16, 16, 16, 12, 12, 12, 12, 8, 8, 8, 8, 8, 8, 8, ...
23.216216
81
0.527357
0
0
0
0
0
0
0
0
319
0.371362