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
16557fb191c1ea62849d52d444fde47864d855b9
43,651
py
Python
lantz/drivers/sacher/Sacher_EPOS.py
mtsolmn/lantz-drivers
f48caf9000ddd08f2abb837d832e341410af4788
[ "BSD-3-Clause" ]
4
2019-05-04T00:10:53.000Z
2020-10-22T18:08:40.000Z
lantz/drivers/sacher/Sacher_EPOS.py
mtsolmn/lantz-drivers
f48caf9000ddd08f2abb837d832e341410af4788
[ "BSD-3-Clause" ]
3
2019-07-12T13:44:17.000Z
2020-10-22T19:32:08.000Z
lantz/drivers/sacher/Sacher_EPOS.py
mtsolmn/lantz-drivers
f48caf9000ddd08f2abb837d832e341410af4788
[ "BSD-3-Clause" ]
9
2019-04-03T17:07:03.000Z
2021-02-15T21:53:55.000Z
# sacher_epos.py, python wrapper for sacher epos motor # David Christle <christle@uchicago.edu>, August 2014 # """ Possbily Maxon EPOS now """ """ This is the actual version that works But only in the lab32 virtual environment """ # from instrument import Instrument # import qt import ctypes import ctypes.wintypes i...
41.532826
147
0.625644
40,030
0.917047
0
0
2,365
0.05418
0
0
15,854
0.363199
165616f6329f47d7fc22c8cc1eb0970f40d768d9
1,652
py
Python
tools/generate_lst.py
haotianliu001/HRNet-Lesion
9dae108879456e084b2200e39d7e58c1c08c2b16
[ "MIT" ]
null
null
null
tools/generate_lst.py
haotianliu001/HRNet-Lesion
9dae108879456e084b2200e39d7e58c1c08c2b16
[ "MIT" ]
null
null
null
tools/generate_lst.py
haotianliu001/HRNet-Lesion
9dae108879456e084b2200e39d7e58c1c08c2b16
[ "MIT" ]
null
null
null
import argparse import os image_dir = 'image' label_dir = 'label' splits = ['train', 'val', 'test'] image_dirs = [ 'image/{}', 'image/{}_crop' ] label_dirs = [ 'label/{}/annotations', 'label/{}/annotations_crop', ] def generate(root): assert len(image_dirs) == len(label_dirs) for split in sp...
30.036364
116
0.579903
0
0
0
0
0
0
0
0
263
0.159201
1658161ce6f6978b51d0a1fdd4a0ce93c2160124
897
py
Python
examples/example.py
f-dangel/unfoldNd
63e9abc4867d8678c2ac00da567dc106e9f6f2c7
[ "MIT" ]
21
2021-03-04T04:56:20.000Z
2022-03-31T11:15:28.000Z
examples/example.py
f-dangel/unfoldNd
63e9abc4867d8678c2ac00da567dc106e9f6f2c7
[ "MIT" ]
12
2021-02-16T16:16:23.000Z
2021-05-28T06:00:41.000Z
examples/example.py
f-dangel/unfoldNd
63e9abc4867d8678c2ac00da567dc106e9f6f2c7
[ "MIT" ]
1
2021-11-04T12:52:19.000Z
2021-11-04T12:52:19.000Z
"""How to use ``unfoldNd``. A comparison with ``torch.nn.Unfold``.""" # imports, make this example deterministic import torch import unfoldNd torch.manual_seed(0) # random batched RGB 32x32 image-shaped input tensor of batch size 64 inputs = torch.randn((64, 3, 32, 32)) # module hyperparameters kernel_size = 3 dil...
24.916667
71
0.753623
0
0
0
0
0
0
0
0
382
0.423973
1658fa9a24f0d70843df0f950d0081f1ffadc11b
797
py
Python
src/pretix/helpers/escapejson.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-25T00:11:00.000Z
2020-04-25T00:11:00.000Z
src/pretix/helpers/escapejson.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/helpers/escapejson.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from django.utils.encoding import force_str from django.utils.functional import keep_lazy from django.utils.safestring import SafeText, mark_safe _json_escapes = { ord('>'): '\\u003E', ord('<'): '\\u003C', ord('&'): '\\u0026', } _json_escapes_attr = { ord('>'): '\\u003E', ord('<'): '\\u003C', ...
25.709677
75
0.6399
0
0
0
0
379
0.475533
0
0
237
0.297365
1659ed45e2efb246708ee177c0a31eb71473cb9b
1,813
py
Python
pyxley/charts/plotly/base.py
snowind/pyxley
cff9e50b8d80b9794c6907355e541f166959cd6c
[ "MIT" ]
2,536
2015-06-26T20:12:30.000Z
2022-03-01T07:26:44.000Z
pyxley/charts/plotly/base.py
zhiaozhou/pyxley
2dab00022d977d986169cd8a629b3a2f91be893f
[ "MIT" ]
51
2015-07-17T14:16:43.000Z
2021-07-09T21:34:36.000Z
pyxley/charts/plotly/base.py
zhiaozhou/pyxley
2dab00022d977d986169cd8a629b3a2f91be893f
[ "MIT" ]
335
2015-07-16T20:22:00.000Z
2022-02-25T07:18:15.000Z
from ..charts import Chart from flask import jsonify, request _BASE_CONFIG = { "showLink": False, "displaylogo": False, "modeBarButtonsToRemove": ["sendDataToCloud"] } class PlotlyAPI(Chart): """ Base class for Plotly.js API This class is used to create charts using the plotly.js api ...
27.059701
73
0.492554
1,629
0.898511
0
0
1,060
0.584666
0
0
791
0.436293
165b5afa3e28ca226423cdaac8f6894170030430
576
py
Python
pyqt/getting_started/close_window.py
CospanDesign/python
9f911509aae7abd9237c14a4635294c7719c9129
[ "MIT" ]
5
2015-12-12T20:16:45.000Z
2020-02-21T19:50:31.000Z
pyqt/getting_started/close_window.py
CospanDesign/python
9f911509aae7abd9237c14a4635294c7719c9129
[ "MIT" ]
null
null
null
pyqt/getting_started/close_window.py
CospanDesign/python
9f911509aae7abd9237c14a4635294c7719c9129
[ "MIT" ]
2
2020-06-01T06:27:06.000Z
2022-03-10T13:21:03.000Z
#!/usr/bin/python import sys from PyQt4 import QtGui from PyQt4 import QtCore class Example(QtGui.QWidget): def __init__(self): super(Example, self).__init__() self.initUI() def initUI(self): qbtn = QtGui.QPushButton('Quit', self) qbtn.clicked.connect(QtCore.QCoreApplication.instance().quit) ...
19.2
65
0.682292
365
0.633681
0
0
0
0
0
0
46
0.079861
165bd59707bf7d41b2fcb3dbf5d490a2e8660a09
732
py
Python
test/means/test_zero_mean.py
bdecost/gpytorch
a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a
[ "MIT" ]
null
null
null
test/means/test_zero_mean.py
bdecost/gpytorch
a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a
[ "MIT" ]
null
null
null
test/means/test_zero_mean.py
bdecost/gpytorch
a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a
[ "MIT" ]
1
2018-11-15T10:03:40.000Z
2018-11-15T10:03:40.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import torch import unittest from gpytorch.means import ZeroMean class TestZeroMean(unittest.TestCase): def setUp(self): self.mean = ZeroMean() def tes...
28.153846
78
0.629781
514
0.702186
0
0
0
0
0
0
0
0
165bdb25d95d9e2ecf502312358485ebe1274976
1,948
py
Python
generator/contact.py
rizzak/python_training
38bbe5d7e38892e8dcc28caeae1481b98cce7356
[ "Apache-2.0" ]
null
null
null
generator/contact.py
rizzak/python_training
38bbe5d7e38892e8dcc28caeae1481b98cce7356
[ "Apache-2.0" ]
null
null
null
generator/contact.py
rizzak/python_training
38bbe5d7e38892e8dcc28caeae1481b98cce7356
[ "Apache-2.0" ]
null
null
null
import jsonpickle import random import string from model.contact import Contact import os.path import getopt import sys try: opts, args = getopt.getopt(sys.argv[1:], "n:f:", ["number of contacts", "file"]) except getopt.GetoptError as err: getopt.usage() sys.exit(2) n = 5 f = "data/contacts.json" for o,...
40.583333
153
0.664271
0
0
0
0
0
0
0
0
311
0.159651
165cb63df5c2c12565813006cb857ecc7266b584
9,952
py
Python
Lib/test/test_runpy.py
arvindm95/unladen-swallow
8175e37eaea7ca66ed03283b46bc1d2db0d3f9c3
[ "PSF-2.0" ]
2,293
2015-01-02T12:46:10.000Z
2022-03-29T09:45:43.000Z
python/src/Lib/test/test_runpy.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
315
2015-05-31T11:55:46.000Z
2022-01-12T08:36:37.000Z
python/src/Lib/test/test_runpy.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
1,033
2015-01-04T07:48:40.000Z
2022-03-24T09:34:37.000Z
# Test the runpy module import unittest import os import os.path import sys import tempfile from test.test_support import verbose, run_unittest, forget from runpy import _run_code, _run_module_code, run_module # Note: This module can't safely test _run_module_as_main as it # runs its tests in the current process, whic...
39.181102
82
0.60621
9,315
0.935993
0
0
0
0
0
0
2,586
0.259847
165d5b352de2106b373e88fa207e7c0361117e91
4,795
py
Python
experiments/_pytorch/_grpc_server/protofiles/imagedata_pb2.py
RedisAI/benchmarks
65b8509b81795da73f25f51941c61fbd9765914c
[ "MIT" ]
6
2019-04-18T10:17:52.000Z
2021-07-02T19:57:08.000Z
experiments/_pytorch/_grpc_server/protofiles/imagedata_pb2.py
hhsecond/benchmarks
65b8509b81795da73f25f51941c61fbd9765914c
[ "MIT" ]
1
2021-07-21T12:17:08.000Z
2021-07-21T12:17:08.000Z
experiments/_pytorch/_grpc_server/protofiles/imagedata_pb2.py
hhsecond/benchmarks
65b8509b81795da73f25f51941c61fbd9765914c
[ "MIT" ]
2
2020-03-15T00:37:57.000Z
2022-02-26T04:36:00.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: imagedata.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf i...
30.935484
365
0.740563
0
0
0
0
0
0
0
0
1,037
0.216267
165e5478bb41b24d4a9ab5bce186c085b7367f24
4,937
py
Python
app/api/admin_sales/discounted.py
akashtalole/python-flask-restful-api
475d8fd7be1724183716a197aac4257f8fbbeac4
[ "MIT" ]
3
2019-09-05T05:28:49.000Z
2020-06-10T09:03:37.000Z
app/api/admin_sales/discounted.py
akashtalole/python-flask-restful-api
475d8fd7be1724183716a197aac4257f8fbbeac4
[ "MIT" ]
null
null
null
app/api/admin_sales/discounted.py
akashtalole/python-flask-restful-api
475d8fd7be1724183716a197aac4257f8fbbeac4
[ "MIT" ]
null
null
null
from sqlalchemy import func from flask_rest_jsonapi import ResourceList from marshmallow_jsonapi import fields from marshmallow_jsonapi.flask import Schema from app.api.helpers.utilities import dasherize from app.api.bootstrap import api from app.models import db from app.models.discount_code import DiscountCode from ...
41.838983
102
0.552157
3,642
0.737695
0
0
652
0.132064
0
0
880
0.178246
165e549759c53b8757e058aa4a4e0a0e6b69b060
407
py
Python
spacy/lang/sr/__init__.py
g4brielvs/spaCy
cca8651fc8133172ebaa9d9fc438ed1fbf34fb33
[ "BSD-3-Clause", "MIT" ]
4
2021-08-11T05:46:23.000Z
2021-09-11T05:16:57.000Z
spacy/lang/sr/__init__.py
g4brielvs/spaCy
cca8651fc8133172ebaa9d9fc438ed1fbf34fb33
[ "BSD-3-Clause", "MIT" ]
1
2021-03-01T19:01:37.000Z
2021-03-01T19:01:37.000Z
spacy/lang/sr/__init__.py
g4brielvs/spaCy
cca8651fc8133172ebaa9d9fc438ed1fbf34fb33
[ "BSD-3-Clause", "MIT" ]
2
2021-01-26T17:29:02.000Z
2021-03-13T08:54:53.000Z
from .stop_words import STOP_WORDS from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .lex_attrs import LEX_ATTRS from ...language import Language class SerbianDefaults(Language.Defaults): tokenizer_exceptions = TOKENIZER_EXCEPTIONS lex_attr_getters = LEX_ATTRS stop_words = STOP_WORDS class Ser...
21.421053
54
0.781327
221
0.542998
0
0
0
0
0
0
13
0.031941
165e63725354de429a448d866f665cccca991916
656
py
Python
mmdet/ops/dcn/__init__.py
TJUsym/TJU_Advanced_CV_Homework
2d85943390e9ba53b80988e0ab8d50aef0cd17da
[ "Apache-2.0" ]
1,158
2019-04-26T01:08:32.000Z
2022-03-30T06:46:24.000Z
mmdet/ops/dcn/__init__.py
TJUsym/TJU_Advanced_CV_Homework
2d85943390e9ba53b80988e0ab8d50aef0cd17da
[ "Apache-2.0" ]
148
2021-03-18T09:44:02.000Z
2022-03-31T06:01:39.000Z
mmdet/ops/dcn/__init__.py
TJUsym/TJU_Advanced_CV_Homework
2d85943390e9ba53b80988e0ab8d50aef0cd17da
[ "Apache-2.0" ]
197
2020-01-29T09:58:27.000Z
2022-03-25T12:08:56.000Z
from .functions.deform_conv import deform_conv, modulated_deform_conv from .functions.deform_pool import deform_roi_pooling from .modules.deform_conv import (DeformConv, ModulatedDeformConv, DeformConvPack, ModulatedDeformConvPack) from .modules.deform_pool import (DeformRoIPooling, De...
46.857143
76
0.739329
0
0
0
0
0
0
0
0
201
0.306402
165f2a4da2ed50464bfa13f0495fc689063e0199
1,189
py
Python
api/skill/serializer.py
zaubermaerchen/imas_cg_api
45ebdde8c47ff4fabbf58b75721721f142afb46b
[ "MIT" ]
2
2016-02-01T21:03:53.000Z
2018-10-20T09:15:12.000Z
api/skill/serializer.py
zaubermaerchen/imas_cg_api
45ebdde8c47ff4fabbf58b75721721f142afb46b
[ "MIT" ]
1
2020-01-05T12:50:35.000Z
2020-01-05T12:50:35.000Z
api/skill/serializer.py
zaubermaerchen/imas_cg_api
45ebdde8c47ff4fabbf58b75721721f142afb46b
[ "MIT" ]
null
null
null
# coding: utf-8 from rest_framework import serializers from data.models import Skill, SkillValue class ListSerializer(serializers.ModelSerializer): skill_value_list = serializers.SerializerMethodField(read_only=True) class Meta: model = Skill fields = [ 'skill_id', 'ta...
26.422222
72
0.64508
1,083
0.910849
0
0
109
0.091674
0
0
148
0.124474
1660d7a15a18998c6c8ae4f9e573b184061a0341
5,061
py
Python
Codes/Converting_RGB_to_GreyScale.py
sichkar-valentyn/Image_processing_in_Python
43d7c979bcd742cc202a28c2dea6ea5bc87562a2
[ "MIT" ]
3
2018-12-02T03:59:51.000Z
2019-11-20T18:37:41.000Z
Codes/Converting_RGB_to_GreyScale.py
sichkar-valentyn/Image_processing_in_Python
43d7c979bcd742cc202a28c2dea6ea5bc87562a2
[ "MIT" ]
null
null
null
Codes/Converting_RGB_to_GreyScale.py
sichkar-valentyn/Image_processing_in_Python
43d7c979bcd742cc202a28c2dea6ea5bc87562a2
[ "MIT" ]
2
2018-10-18T07:01:26.000Z
2022-03-22T08:22:33.000Z
# File: Converting_RGB_to_GreyScale.py # Description: Opening RGB image as array, converting to GreyScale and saving result into new file # Environment: PyCharm and Anaconda environment # # MIT License # Copyright (c) 2018 Valentyn N Sichkar # github.com/sichkar-valentyn # # Reference to: # Valentyn N Sichkar. Image pr...
33.966443
99
0.752223
0
0
0
0
0
0
0
0
2,878
0.568662
1661f7c0c438355d7d875aa2c983973094881c84
3,193
py
Python
template_renderer.py
hamza-gheggad/gcp-iam-collector
02b46453b9ec23af07a0d81f7250f1de61e0ee23
[ "Apache-2.0" ]
null
null
null
template_renderer.py
hamza-gheggad/gcp-iam-collector
02b46453b9ec23af07a0d81f7250f1de61e0ee23
[ "Apache-2.0" ]
null
null
null
template_renderer.py
hamza-gheggad/gcp-iam-collector
02b46453b9ec23af07a0d81f7250f1de61e0ee23
[ "Apache-2.0" ]
null
null
null
import colorsys import json from jinja2 import Environment, PackageLoader import graph def create_html(formatted_nodes, formatted_edges, role_color_map, output_name): env = Environment(loader=PackageLoader('visualisation', '.')) template = env.get_template('visualisation.template') default_filters = list...
31.303922
91
0.593173
0
0
0
0
0
0
0
0
319
0.099906
166293ba707b563d24827825716e3e79a6848c40
13,007
py
Python
powerapi/cli/tools.py
danglotb/powerapi
67b2508588bfe1e20d90f9fe6bccda34d3455262
[ "BSD-3-Clause" ]
null
null
null
powerapi/cli/tools.py
danglotb/powerapi
67b2508588bfe1e20d90f9fe6bccda34d3455262
[ "BSD-3-Clause" ]
null
null
null
powerapi/cli/tools.py
danglotb/powerapi
67b2508588bfe1e20d90f9fe6bccda34d3455262
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018, INRIA # Copyright (c) 2018, University of Lille # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, t...
49.268939
128
0.667948
10,464
0.80449
0
0
0
0
0
0
4,409
0.338971
1662a331dbe1e237d08e9e21a3e8d596bcbce6c4
2,477
py
Python
pyxrd/mixture/models/insitu_behaviours/insitu_behaviour.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
27
2018-06-15T15:28:18.000Z
2022-03-10T12:23:50.000Z
pyxrd/mixture/models/insitu_behaviours/insitu_behaviour.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
22
2018-06-14T08:29:16.000Z
2021-07-05T13:33:44.000Z
pyxrd/mixture/models/insitu_behaviours/insitu_behaviour.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
8
2019-04-13T13:03:51.000Z
2021-06-19T09:29:11.000Z
# coding=UTF-8 # ex:ts=4:sw=4:et=on # # Copyright (c) 2013, Mathijs Dumon # All rights reserved. # Complete license can be found in the LICENSE file. from mvc.models.properties import StringProperty from pyxrd.generic.io.custom_io import storables, Storable from pyxrd.generic.models.base import DataModel from pyxrd....
34.402778
103
0.583771
2,082
0.840533
0
0
2,104
0.849415
0
0
972
0.39241
16635cf724808862aeb33d75c907fed77d96d1fc
857
py
Python
1 plainProgrammingBug/start 1 plainProgrammingBug.py
vishalbelsare/SLAPP3
da187b771831aaaabaee16a26ad341db2e968104
[ "CC0-1.0" ]
8
2017-10-18T05:19:17.000Z
2020-03-24T21:23:52.000Z
1 plainProgrammingBug/start 1 plainProgrammingBug.py
vishalbelsare/SLAPP3
da187b771831aaaabaee16a26ad341db2e968104
[ "CC0-1.0" ]
null
null
null
1 plainProgrammingBug/start 1 plainProgrammingBug.py
vishalbelsare/SLAPP3
da187b771831aaaabaee16a26ad341db2e968104
[ "CC0-1.0" ]
4
2017-10-25T09:07:49.000Z
2019-08-18T09:17:58.000Z
# start 1 plainProgrammingBug.py import random def SimpleBug(): # the environment worldXSize = 80 worldYSize = 80 # the bug xPos = 40 yPos = 40 # the action for i in range(100): xPos += randomMove() yPos += randomMove() xPos = (xPos + worldX...
19.930233
69
0.568261
0
0
0
0
0
0
0
0
429
0.500583
166407e573ed13b6f495ddb118b6bb572fdf1148
423
py
Python
ba5a-min-coins/money_change.py
kjco/bioinformatics-algorithms
3c466157b89c1cbd54749563e39d86a307d7a3f3
[ "MIT" ]
null
null
null
ba5a-min-coins/money_change.py
kjco/bioinformatics-algorithms
3c466157b89c1cbd54749563e39d86a307d7a3f3
[ "MIT" ]
null
null
null
ba5a-min-coins/money_change.py
kjco/bioinformatics-algorithms
3c466157b89c1cbd54749563e39d86a307d7a3f3
[ "MIT" ]
null
null
null
money = 8074 #money = 18705 #coin_list = [24,23,21,5,3,1] coin_list = [24,13,12,7,5,3,1] #coin_list = map(int, open('dataset_71_8.txt').read().split(',')) d = {0:0} for m in range(1,money+1): min_coin = 1000000 for coin in coin_list: if m >= coin: if d[m-coin]+1 < min_coin:...
18.391304
66
0.51773
0
0
0
0
0
0
0
0
124
0.293144
1665579643c424a545b6a8b3af94a1a9e0f4f184
357
py
Python
examples/remove_comments.py
igordejanovic/textx-bibtex
b1374a39b96da9c1bc979c367b9ed3feb04f4f01
[ "MIT" ]
1
2020-06-17T21:51:33.000Z
2020-06-17T21:51:33.000Z
examples/remove_comments.py
igordejanovic/textx-bibtex
b1374a39b96da9c1bc979c367b9ed3feb04f4f01
[ "MIT" ]
null
null
null
examples/remove_comments.py
igordejanovic/textx-bibtex
b1374a39b96da9c1bc979c367b9ed3feb04f4f01
[ "MIT" ]
null
null
null
""" Remove comments from bib file. """ from textx import metamodel_for_language from txbibtex import bibentry_str BIB_FILE = 'references.bib' bibfile = metamodel_for_language('bibtex').model_from_file(BIB_FILE) # Drop line comments. print('\n'.join([bibentry_str(e) for e in bibfile.entries if e.__cla...
27.461538
68
0.739496
0
0
0
0
0
0
0
0
103
0.288515
1665f41d1c03f32167e2cea236d3cf7a022b6b61
3,202
py
Python
google-cloud-sdk/lib/surface/compute/resource_policies/create/group_placement.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/compute/resource_policies/create/group_placement.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
4
2020-07-21T12:51:46.000Z
2022-01-22T10:29:25.000Z
google-cloud-sdk/lib/surface/compute/resource_policies/create/group_placement.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
1
2020-07-25T18:17:57.000Z
2020-07-25T18:17:57.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
37.232558
109
0.777327
1,194
0.372892
0
0
1,283
0.400687
0
0
1,173
0.366334
16661518293e1bbad26be3766a9addb9bc564758
629
py
Python
paperoni/io.py
notoraptor/paperoni
acdf2d3d790b98d6a171177ffd9d6342f86bc7ea
[ "MIT" ]
88
2020-08-27T17:58:58.000Z
2021-12-01T19:29:56.000Z
paperoni/io.py
notoraptor/paperoni
acdf2d3d790b98d6a171177ffd9d6342f86bc7ea
[ "MIT" ]
8
2020-08-27T02:54:11.000Z
2022-02-01T13:35:41.000Z
paperoni/io.py
notoraptor/paperoni
acdf2d3d790b98d6a171177ffd9d6342f86bc7ea
[ "MIT" ]
6
2020-08-25T16:43:28.000Z
2021-12-08T16:41:02.000Z
import json from .papers import Papers from .researchers import Researchers def ResearchersFile(filename): """Parse a file containing researchers.""" try: with open(filename, "r") as file: data = json.load(file) except FileNotFoundError: data = {} return Researchers(data, ...
25.16
67
0.655008
0
0
0
0
0
0
0
0
85
0.135135
16666943ca1f78d9acd45c2909883bd0b65b734d
934
py
Python
src/lib/sd2/test_addresses.py
zachkont/sd2
92d8c55a8c7ac51c00ba514be01955aa7162e4ef
[ "Apache-2.0" ]
null
null
null
src/lib/sd2/test_addresses.py
zachkont/sd2
92d8c55a8c7ac51c00ba514be01955aa7162e4ef
[ "Apache-2.0" ]
null
null
null
src/lib/sd2/test_addresses.py
zachkont/sd2
92d8c55a8c7ac51c00ba514be01955aa7162e4ef
[ "Apache-2.0" ]
null
null
null
############################################################################# # Copyright (c) 2017 SiteWare Corp. All right reserved ############################################################################# import logging import pytest from . import addresses def test_pytest(): assert True def test_object_e...
30.129032
77
0.626338
0
0
0
0
0
0
0
0
298
0.319058
166739b28ed7ffa22c5f71499709f1fd302bd933
1,914
py
Python
config_model.py
Asha-ai/BERT_abstractive_proj
f0e8f659d6b8821cfe0d15f4075e8cb890efdfe9
[ "Apache-2.0" ]
17
2020-01-11T15:15:21.000Z
2021-12-08T10:03:36.000Z
config_model.py
Asha-ai/BERT_abstractive_proj
f0e8f659d6b8821cfe0d15f4075e8cb890efdfe9
[ "Apache-2.0" ]
6
2020-03-01T17:14:58.000Z
2021-05-21T16:05:03.000Z
config_model.py
Asha-ai/BERT_abstractive_proj
f0e8f659d6b8821cfe0d15f4075e8cb890efdfe9
[ "Apache-2.0" ]
8
2020-05-11T21:24:51.000Z
2021-07-23T09:18:46.000Z
import texar.tf as tx beam_width = 5 hidden_dim = 768 bert = { 'pretrained_model_name': 'bert-base-uncased' } # See https://texar.readthedocs.io/en/latest/code/modules.html#texar.tf.modules.BERTEncoder.default_hparams bert_encoder = {} # From https://github.com/asyml/texar/blob/413e07f859acbbee979f274b52942edd5...
31.377049
128
0.653083
0
0
0
0
0
0
0
0
1,275
0.666144
16677a6fe2ff1b1e4b01bda4446f100594d88c8e
390
py
Python
wishes/migrations/0005_auto_20201029_0904.py
e-elson/bd
e35c59686e5ec81925c22353e269601f286634db
[ "MIT" ]
null
null
null
wishes/migrations/0005_auto_20201029_0904.py
e-elson/bd
e35c59686e5ec81925c22353e269601f286634db
[ "MIT" ]
null
null
null
wishes/migrations/0005_auto_20201029_0904.py
e-elson/bd
e35c59686e5ec81925c22353e269601f286634db
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-29 09:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wishes', '0004_auto_20201029_0857'), ] operations = [ migrations.AlterField( model_name='gallery', name='image', ...
20.526316
55
0.594872
297
0.761538
0
0
0
0
0
0
105
0.269231
166802c5b61892041a13896dbed6ef514fd83df2
7,115
py
Python
undeployed/legacy/Landsat/DNtoReflectance.py
NASA-DEVELOP/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
65
2015-09-10T12:59:56.000Z
2022-02-27T22:09:03.000Z
undeployed/legacy/Landsat/DNtoReflectance.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
40
2015-04-08T19:23:30.000Z
2015-08-04T15:53:11.000Z
undeployed/legacy/Landsat/DNtoReflectance.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
45
2015-08-14T19:09:38.000Z
2022-02-15T18:53:16.000Z
#------------------------------------------------------------------------------- # Name: Landsat Digital Numbers to Radiance/Reflectance # Purpose: To convert landsat 4,5, or 7 pixel values from digital numbers # to Radiance, Reflectance, or Temperature # Author: Quinten Geddes Quinte...
42.100592
113
0.619115
0
0
0
0
0
0
0
0
3,621
0.508925
1668b92419e5394d4eb735fba074c84b5eb16b19
1,396
py
Python
.modules/.theHarvester/discovery/twittersearch.py
termux-one/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
1,103
2018-04-20T14:08:11.000Z
2022-03-29T06:22:43.000Z
.modules/.theHarvester/discovery/twittersearch.py
sshourya948/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
29
2019-04-03T14:52:38.000Z
2022-03-24T12:33:05.000Z
.modules/.theHarvester/discovery/twittersearch.py
sshourya948/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
262
2017-09-16T22:15:50.000Z
2022-03-31T00:38:42.000Z
import string import requests import sys import myparser import re class search_twitter: def __init__(self, word, limit): self.word = word.replace(' ', '%20') self.results = "" self.totalresults = "" self.server = "www.google.com" self.hostname = "www.google.com" s...
32.465116
169
0.592407
1,326
0.949857
0
0
0
0
0
0
358
0.256447
166903b8515452d27e1a1b1b4a84d3d174d4f220
708
py
Python
scrap_instagram.py
genaforvena/nn_scrapper
897766a52202aa056afd657995ed39b2b91e1fe2
[ "Apache-2.0" ]
null
null
null
scrap_instagram.py
genaforvena/nn_scrapper
897766a52202aa056afd657995ed39b2b91e1fe2
[ "Apache-2.0" ]
null
null
null
scrap_instagram.py
genaforvena/nn_scrapper
897766a52202aa056afd657995ed39b2b91e1fe2
[ "Apache-2.0" ]
null
null
null
import urllib.request import json access_token = "265791501.a4af066.f45a9f44719a4b2cb2d137118524e32b" api_url = "https://api.instagram.com/v1" nn_lat = 56.296504 nn_lng = 43.936059 def request(endpoint, req_params = ""): req = api_url + endpoint + "?access_token=" + access_token + "&" + req_params print(req) ...
29.5
94
0.706215
0
0
0
0
0
0
0
0
179
0.252825
16693286bda8fc5cb36e02f9aa7765ff20fcfe4e
7,066
py
Python
tests/unit/utils/test_validators.py
kajusK/HiddenPlaces
aa976f611a419bc33f8a65f0314956ec09fe2bfd
[ "MIT" ]
null
null
null
tests/unit/utils/test_validators.py
kajusK/HiddenPlaces
aa976f611a419bc33f8a65f0314956ec09fe2bfd
[ "MIT" ]
null
null
null
tests/unit/utils/test_validators.py
kajusK/HiddenPlaces
aa976f611a419bc33f8a65f0314956ec09fe2bfd
[ "MIT" ]
null
null
null
"""Unit tests for app.validators. """ from wtforms import ValidationError import flask from pytest import raises from app.utils.validators import password_rules, image_file, allowed_file class DummyField(object): """Dummy field object to emulate wtforms field.""" def __init__(self, data=None, errors=(), raw_d...
35.686869
78
0.644495
653
0.092414
0
0
0
0
0
0
1,501
0.212426
166add4d1cc09be73d6135b394a15f57ecfca1b9
615
py
Python
ts_eval/utils/nans.py
vshulyak/ts-eval
2049b1268cf4272f5fa1471851523f8da14dd84c
[ "MIT" ]
1
2021-07-12T08:58:07.000Z
2021-07-12T08:58:07.000Z
ts_eval/utils/nans.py
vshulyak/ts-eval
2049b1268cf4272f5fa1471851523f8da14dd84c
[ "MIT" ]
null
null
null
ts_eval/utils/nans.py
vshulyak/ts-eval
2049b1268cf4272f5fa1471851523f8da14dd84c
[ "MIT" ]
null
null
null
import warnings import numpy as np def nans_in_same_positions(*arrays): """ Compares all provided arrays to see if they have NaNs in the same positions. """ if len(arrays) == 0: return True for arr in arrays[1:]: if not (np.isnan(arrays[0]) == np.isnan(arr)).all(): ret...
24.6
80
0.642276
0
0
0
0
0
0
0
0
189
0.307317
166b671e9115e476c69bab6e6077599dd6b6cdea
5,434
py
Python
tests/authorization/test_searches.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
2
2018-02-23T12:16:11.000Z
2020-10-08T17:54:24.000Z
tests/authorization/test_searches.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
87
2017-04-21T18:57:15.000Z
2021-12-13T19:43:57.000Z
tests/authorization/test_searches.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
1
2018-03-01T16:44:25.000Z
2018-03-01T16:44:25.000Z
"""Unit tests of authorization searches.""" import pytest from ..utilities.general import is_never_authz, is_no_authz, uses_cataloging, uses_filesystem_only from dlkit.abstract_osid.osid import errors from dlkit.primordium.id.primitives import Id from dlkit.primordium.type.primitives import Type from dlkit.runtime ...
36.469799
176
0.749724
2,108
0.387928
0
0
4,744
0.873022
0
0
1,892
0.348178
166ccaa355ece2f923c461999fa3eb16171b7163
350
py
Python
mechroutines/models/_flux.py
keceli/mechdriver
978994ba5c77b6df00078b639c4482dacf269440
[ "Apache-2.0" ]
1
2022-03-22T20:47:04.000Z
2022-03-22T20:47:04.000Z
mechroutines/models/_flux.py
keceli/mechdriver
978994ba5c77b6df00078b639c4482dacf269440
[ "Apache-2.0" ]
1
2021-02-12T21:11:16.000Z
2021-12-07T21:32:14.000Z
mechroutines/models/_flux.py
keceli/mechdriver
978994ba5c77b6df00078b639c4482dacf269440
[ "Apache-2.0" ]
8
2019-12-18T20:09:46.000Z
2020-11-14T16:37:28.000Z
""" NEW: Handle flux files """ import autofile def read_flux(ts_save_path, vrc_locs=(0,)): """ Read the geometry from the filesys """ vrc_fs = autofile.fs.vrctst(ts_save_path) if vrc_fs[-1].file.flux.exists(vrc_locs): flux_str = vrc_fs[-1].file.flux.read(vrc_locs) else: flux_st...
18.421053
54
0.64
0
0
0
0
0
0
0
0
78
0.222857
166ddfdb964d4dc41f4f840af0cda8cfbfe5a687
4,990
py
Python
RandomForest/RandomForest.py
nachiket273/ML_Algo_Implemented
74ae47fdf620545fdf8c934c5997784faadaebb7
[ "MIT" ]
7
2020-08-03T13:43:53.000Z
2022-02-18T20:38:51.000Z
RandomForest/RandomForest.py
nachiket273/ML_Algo_Implemented
74ae47fdf620545fdf8c934c5997784faadaebb7
[ "MIT" ]
null
null
null
RandomForest/RandomForest.py
nachiket273/ML_Algo_Implemented
74ae47fdf620545fdf8c934c5997784faadaebb7
[ "MIT" ]
2
2020-09-06T21:54:16.000Z
2022-01-22T19:59:33.000Z
import math import numpy as np import pandas as pd from sklearn.base import BaseEstimator import sys import os sys.path.append(os.path.abspath('../DecisionTree')) from DecisionTree import DecisionTree class RandomForest(BaseEstimator): """ Simple implementation of Random Forest. This class has implementat...
40.901639
93
0.546293
4,787
0.959319
0
0
0
0
0
0
1,834
0.367535
166e1671aebcb4e327d8e4f8b8b62dc58ec16062
556
py
Python
tests/basics/generator_pend_throw.py
iotctl/pycopy
eeb841afea61b19800d054b3b289729665fc9aa4
[ "MIT" ]
663
2018-12-30T00:17:59.000Z
2022-03-14T05:03:41.000Z
tests/basics/generator_pend_throw.py
iotctl/pycopy
eeb841afea61b19800d054b3b289729665fc9aa4
[ "MIT" ]
41
2019-06-06T08:31:19.000Z
2022-02-13T16:53:41.000Z
tests/basics/generator_pend_throw.py
iotctl/pycopy
eeb841afea61b19800d054b3b289729665fc9aa4
[ "MIT" ]
60
2019-06-01T04:25:00.000Z
2022-02-25T01:47:31.000Z
def gen(): i = 0 while 1: yield i i += 1 g = gen() try: g.pend_throw except AttributeError: print("SKIP") raise SystemExit print(next(g)) print(next(g)) g.pend_throw(ValueError()) v = None try: v = next(g) except Exception as e: print("raised", repr(e)) print("ret was:"...
15.444444
73
0.624101
0
0
64
0.115108
0
0
0
0
167
0.30036
166e4003ce5bc54874ebae493377303b4c270f29
4,511
py
Python
src/UnitTypes/ProjectileModule.py
USArmyResearchLab/ARL_Battlespace
2f17a478f62c20a4db387d5d3e4bbeaa3197cd49
[ "MIT" ]
1
2022-03-31T19:15:04.000Z
2022-03-31T19:15:04.000Z
src/UnitTypes/ProjectileModule.py
USArmyResearchLab/ARL_Battlespace
2f17a478f62c20a4db387d5d3e4bbeaa3197cd49
[ "MIT" ]
null
null
null
src/UnitTypes/ProjectileModule.py
USArmyResearchLab/ARL_Battlespace
2f17a478f62c20a4db387d5d3e4bbeaa3197cd49
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Dec 15 09:49:47 2020 @author: james.z.hare """ from src.UnitModule import UnitClass, advance from copy import deepcopy import math class ProjectileClass(UnitClass): """ The Projectile Class This is a subclass to the UnitClass Virtual Functions ----...
32.221429
158
0.62137
4,269
0.946353
0
0
0
0
0
0
1,963
0.435159
166ed868a00e2876de6024b3dcf661e7d6afc455
216
py
Python
OOP_MiniQuiz/run_car_Level2.py
HelloYeew/helloyeew-lab-computer-programming-i
60b05072f32f23bab4a336b506ba7f66e52c045d
[ "MIT" ]
null
null
null
OOP_MiniQuiz/run_car_Level2.py
HelloYeew/helloyeew-lab-computer-programming-i
60b05072f32f23bab4a336b506ba7f66e52c045d
[ "MIT" ]
null
null
null
OOP_MiniQuiz/run_car_Level2.py
HelloYeew/helloyeew-lab-computer-programming-i
60b05072f32f23bab4a336b506ba7f66e52c045d
[ "MIT" ]
null
null
null
from car import * def compare(car1,car2): print(car1) print(car2) car1 = Car("Nissan","Tiida",450000) car2 = Car("Toyota","Vios",400000) car3 = Car("BMW","X3",3400000) compare(car3,car1) compare(car1,car2)
18
35
0.671296
0
0
0
0
0
0
0
0
38
0.175926
166f10041a007d09adb3797f8fd4bf54942b5eeb
1,513
py
Python
prelude/monads.py
michel-slm/python-prelude
b3ca89ff2bf150f772764f59d2796d2fcce1013d
[ "MIT" ]
2
2015-05-12T16:12:56.000Z
2020-08-26T20:52:47.000Z
prelude/monads.py
michel-slm/python-prelude
b3ca89ff2bf150f772764f59d2796d2fcce1013d
[ "MIT" ]
null
null
null
prelude/monads.py
michel-slm/python-prelude
b3ca89ff2bf150f772764f59d2796d2fcce1013d
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod from prelude.typeclasses import Monad from prelude.decorators import monad_eq, singleton @monad_eq class Either(Monad): __metaclass__ = ABCMeta @classmethod def mreturn(cls, val): return Right(val) @abstractmethod def __iter__(self): pass c...
18.9125
50
0.613351
1,341
0.886319
88
0.058163
746
0.49306
0
0
42
0.027759
16715a2b77e2526acf8bf40591ec7bc531389bde
848
py
Python
Deep Sort/src/imgconverter.py
JJavier98/TFG-Dron-de-Vigilancia
7fd68a981854ac480ad2f0c936a0dd58d2a9f38b
[ "MIT" ]
null
null
null
Deep Sort/src/imgconverter.py
JJavier98/TFG-Dron-de-Vigilancia
7fd68a981854ac480ad2f0c936a0dd58d2a9f38b
[ "MIT" ]
null
null
null
Deep Sort/src/imgconverter.py
JJavier98/TFG-Dron-de-Vigilancia
7fd68a981854ac480ad2f0c936a0dd58d2a9f38b
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import roslib roslib.load_manifest('msgs_to_cv2') import sys import rospy import cv2 from std_msgs.msg import String from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError class image_converter: def __init__(self): self.bridge...
20.190476
77
0.741745
325
0.383255
0
0
0
0
0
0
197
0.232311
16718d7813439bbbc33bc80e98b6e4741d2b5b6c
261
py
Python
foodx_devops_tools/azure/__init__.py
Food-X-Technologies/foodx_devops_tools
57d1bf1304d9c9a386eaffa427f9eb36c410c350
[ "MIT" ]
3
2021-06-23T20:53:43.000Z
2022-01-26T14:19:43.000Z
foodx_devops_tools/azure/__init__.py
Food-X-Technologies/foodx_devops_tools
57d1bf1304d9c9a386eaffa427f9eb36c410c350
[ "MIT" ]
33
2021-08-09T15:44:51.000Z
2022-03-03T18:28:02.000Z
foodx_devops_tools/azure/__init__.py
Food-X-Technologies/foodx_devops_tools
57d1bf1304d9c9a386eaffa427f9eb36c410c350
[ "MIT" ]
1
2021-06-23T20:53:52.000Z
2021-06-23T20:53:52.000Z
# Copyright (c) 2021 Food-X Technologies # # This file is part of foodx_devops_tools. # # You should have received a copy of the MIT License along with # foodx_devops_tools. If not, see <https://opensource.org/licenses/MIT>. """Azure related utilities."""
29
73
0.731801
0
0
0
0
0
0
0
0
253
0.969349
16725a52de27142aa18864c727dddea44204b666
5,940
py
Python
beartype/vale/__init__.py
posita/beartype
e56399686e1f2ffd5128a4030b19314504e32450
[ "MIT" ]
null
null
null
beartype/vale/__init__.py
posita/beartype
e56399686e1f2ffd5128a4030b19314504e32450
[ "MIT" ]
null
null
null
beartype/vale/__init__.py
posita/beartype
e56399686e1f2ffd5128a4030b19314504e32450
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # --------------------( LICENSE )-------------------- # Copyright (c) 2014-2021 Beartype authors. # See "LICENSE" for further details. ''' **Beartype validators.** This submodule publishes a PEP-compliant hierarchy of subscriptable (indexable) classes enabling callers ...
45.343511
99
0.711616
0
0
0
0
0
0
0
0
5,295
0.891414
16730d6f4856a5911d4dfcf4a29a2f5449a0ddb0
3,536
py
Python
tests/test_authentication.py
movermeyer/cellardoor
25192b07224ff7bd33fd29ebac07340bef53a2ed
[ "MIT" ]
null
null
null
tests/test_authentication.py
movermeyer/cellardoor
25192b07224ff7bd33fd29ebac07340bef53a2ed
[ "MIT" ]
3
2015-01-31T14:53:06.000Z
2015-02-01T19:04:30.000Z
tests/test_authentication.py
movermeyer/cellardoor
25192b07224ff7bd33fd29ebac07340bef53a2ed
[ "MIT" ]
2
2015-01-31T14:54:28.000Z
2018-03-05T17:33:42.000Z
import unittest from mock import Mock import base64 from cellardoor import errors from cellardoor.authentication import * from cellardoor.authentication.basic import BasicAuthIdentifier class FooIdentifier(Identifier): pass class BarAuthenticator(Authenticator): pass class TestAuthentication(unittest.TestCase...
30.747826
95
0.756505
3,332
0.942308
0
0
0
0
0
0
306
0.086538
16731efe14cf79a4c56966e84b709e60bb9faf4f
42
py
Python
src/styleaug/__init__.py
somritabanerjee/speedplusbaseline
5913c611d8c182ad8070abcf5f1baffc554dfd90
[ "MIT" ]
69
2019-04-09T18:05:33.000Z
2022-03-11T05:58:59.000Z
src/styleaug/__init__.py
somritabanerjee/speedplusbaseline
5913c611d8c182ad8070abcf5f1baffc554dfd90
[ "MIT" ]
6
2019-04-01T12:04:10.000Z
2022-01-19T11:49:13.000Z
src/styleaug/__init__.py
somritabanerjee/speedplusbaseline
5913c611d8c182ad8070abcf5f1baffc554dfd90
[ "MIT" ]
13
2019-05-22T19:08:36.000Z
2021-08-13T01:21:47.000Z
from .styleAugmentor import StyleAugmentor
42
42
0.904762
0
0
0
0
0
0
0
0
0
0
167422ad1c22d904c1fb3127c28d48e06243100c
2,698
py
Python
configs/classification/imagenet/mixups/convnext/convnext_tiny_smooth_mix_8xb256_accu2_ema_fp16.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
10
2021-12-30T10:22:27.000Z
2022-03-30T02:31:38.000Z
configs/classification/imagenet/mixups/convnext/convnext_tiny_smooth_mix_8xb256_accu2_ema_fp16.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
3
2022-01-20T21:02:48.000Z
2022-03-19T13:49:45.000Z
configs/classification/imagenet/mixups/convnext/convnext_tiny_smooth_mix_8xb256_accu2_ema_fp16.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../../../_base_/datasets/imagenet/swin_sz224_4xbs256.py', '../../../_base_/default_runtime.py', ] # model settings model = dict( type='MixUpClassification', pretrained=None, alpha=0.2, mix_mode="cutmix", mix_args=dict( attentivemix=dict(grid_size=32, top_k=None, beta=8),...
34.151899
111
0.640474
0
0
0
0
0
0
0
0
851
0.315419
16748f009db0117be1d076ddc5a413db7e45e64c
2,274
py
Python
mcstasscript/interface/reader.py
PaNOSC-ViNYL/McStasScript
bd94ebc6cac290c3c9662871df40d76edbe4a44e
[ "BSD-3-Clause" ]
3
2019-08-29T14:15:06.000Z
2021-03-04T12:08:48.000Z
mcstasscript/interface/reader.py
PaNOSC-ViNYL/McStasScript
bd94ebc6cac290c3c9662871df40d76edbe4a44e
[ "BSD-3-Clause" ]
37
2019-03-05T12:28:32.000Z
2022-03-22T10:11:23.000Z
mcstasscript/interface/reader.py
PaNOSC-ViNYL/McStasScript
bd94ebc6cac290c3c9662871df40d76edbe4a44e
[ "BSD-3-Clause" ]
6
2019-10-21T20:19:10.000Z
2022-03-09T10:12:16.000Z
import os from mcstasscript.instr_reader.control import InstrumentReader from mcstasscript.interface.instr import McStas_instr class McStas_file: """ Reader of McStas files, can add to an existing McStasScript instrument instance or create a corresponding McStasScript python file. Methods ---...
28.425
79
0.579595
2,144
0.942832
0
0
0
0
0
0
1,280
0.562885
1676599bdfdd4b081bb8bb20aa32589f69c604ef
3,701
py
Python
src/regrtest.py
ucsd-progsys/csolve-bak
89cfeb5403e617f45ece4bae9f88f8e6cd7ca934
[ "BSD-3-Clause" ]
null
null
null
src/regrtest.py
ucsd-progsys/csolve-bak
89cfeb5403e617f45ece4bae9f88f8e6cd7ca934
[ "BSD-3-Clause" ]
1
2018-04-24T10:43:07.000Z
2018-04-24T10:43:07.000Z
src/regrtest.py
ucsd-progsys/csolve-bak
89cfeb5403e617f45ece4bae9f88f8e6cd7ca934
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2009 The Regents of the University of California. All rights reserved. # # Permission is hereby granted, without written agreement and without # license or royalty fees, to use, copy, modify, and distribute this # software and its documentation for any purpose, provided that the # abov...
38.154639
107
0.676574
782
0.211294
0
0
0
0
0
0
1,721
0.465009
16766ccc57f251df7ba9394a55b7eabdd7d12e46
2,925
py
Python
country_capital_guesser.py
NathanMH/ComputerClub
197585c1a77f71ee363547740d6e09f945e7526f
[ "MIT" ]
null
null
null
country_capital_guesser.py
NathanMH/ComputerClub
197585c1a77f71ee363547740d6e09f945e7526f
[ "MIT" ]
null
null
null
country_capital_guesser.py
NathanMH/ComputerClub
197585c1a77f71ee363547740d6e09f945e7526f
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 ####################### """#################### Index: 1. Imports and Readme 2. Functions 3. Main 4. Testing ####################""" ####################### ################################################################### # 1. IMPORTS AND README #############################...
33.62069
160
0.494017
0
0
0
0
0
0
0
0
1,666
0.569573
1676c1cee546273be3e4746fcf8ddcdf0ca583bb
2,288
py
Python
data_analysis/audiocommons_ffont/scripts/rekordbox_xml_to_analysis_rhythm_rekordbox_file.py
aframires/freesound-loop-annotator
a24e0c23bfc671e41e8627150e7b9fcae5c8cb13
[ "Apache-2.0" ]
18
2020-01-22T14:58:18.000Z
2022-02-21T12:07:51.000Z
data_analysis/audiocommons_ffont/scripts/rekordbox_xml_to_analysis_rhythm_rekordbox_file.py
aframires/freesound-loop-annotator
a24e0c23bfc671e41e8627150e7b9fcae5c8cb13
[ "Apache-2.0" ]
2
2020-02-24T13:14:05.000Z
2020-09-21T13:34:53.000Z
data_analysis/audiocommons_ffont/scripts/rekordbox_xml_to_analysis_rhythm_rekordbox_file.py
aframires/freesound-loop-annotator
a24e0c23bfc671e41e8627150e7b9fcae5c8cb13
[ "Apache-2.0" ]
1
2020-01-22T14:55:36.000Z
2020-01-22T14:55:36.000Z
# Need this to import from parent directory when running outside pycharm import os import sys sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)) from ac_utils.general import save_to_json, load_from_json import click import xml.etree.ElementTree from urllib import unquote def find_c...
39.448276
119
0.660402
0
0
0
0
1,263
0.55201
0
0
518
0.226399
1676d72870f651008f4e3aca9c90ccf681a85a4a
5,947
py
Python
inventree/part.py
SergeoLacruz/inventree-python
94681428f61de4ca51171e685812ebc436b9be42
[ "MIT" ]
null
null
null
inventree/part.py
SergeoLacruz/inventree-python
94681428f61de4ca51171e685812ebc436b9be42
[ "MIT" ]
null
null
null
inventree/part.py
SergeoLacruz/inventree-python
94681428f61de4ca51171e685812ebc436b9be42
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import re import inventree.base import inventree.stock import inventree.company import inventree.build logger = logging.getLogger('inventree') class PartCategory(inventree.base.InventreeObject): """ Class representing the PartCategory database model """ URL = 'part/...
27.920188
82
0.626534
5,722
0.962166
0
0
1,052
0.176896
0
0
1,996
0.335631
167719b0cc59eef9b7fff6f4ce109cd0d2fe8bc1
12,932
py
Python
tests/test_web_urldispatcher.py
avstarkov/aiohttp
b0a03cffccf677bf316227522a9b841c15dcb869
[ "Apache-2.0" ]
null
null
null
tests/test_web_urldispatcher.py
avstarkov/aiohttp
b0a03cffccf677bf316227522a9b841c15dcb869
[ "Apache-2.0" ]
null
null
null
tests/test_web_urldispatcher.py
avstarkov/aiohttp
b0a03cffccf677bf316227522a9b841c15dcb869
[ "Apache-2.0" ]
null
null
null
import functools import os import shutil import tempfile from unittest import mock from unittest.mock import MagicMock import pytest from aiohttp import abc, web from aiohttp.web_urldispatcher import SystemRoute @pytest.fixture(scope='function') def tmp_dir_path(request): """ Give a path for a temporary dir...
27.514894
79
0.634009
578
0.044695
0
0
4,472
0.345809
9,990
0.772502
3,223
0.249227
1678ba6ffacdb3dc2a1730ee864aab5b2813d801
13,683
py
Python
R-GMM-VGAE/model_citeseer.py
nairouz/R-GAE
acc7bfe36153a4c7d6f68e21a557bb4d99dab639
[ "MIT" ]
26
2021-07-18T01:31:48.000Z
2022-03-31T03:23:11.000Z
R-GMM-VGAE/model_citeseer.py
Fawzidev/R-GAE
80988ddf951f1723091a04b617ce4fc6d20ab9ce
[ "MIT" ]
3
2021-10-01T07:24:42.000Z
2021-11-03T14:25:55.000Z
R-GMM-VGAE/model_citeseer.py
Fawzidev/R-GAE
80988ddf951f1723091a04b617ce4fc6d20ab9ce
[ "MIT" ]
7
2021-07-18T01:47:01.000Z
2022-01-24T21:09:10.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Authors : Nairouz Mrabah (mrabah.nairouz@courrier.uqam.ca) & Mohamed Fawzi Touati (touati.mohamed_fawzi@courrier.uqam.ca) # @Paper : Rethinking Graph Autoencoder Models for Attributed Graph Clustering # @License : MIT License import torch import numpy as np import tor...
46.699659
259
0.625448
11,731
0.857341
0
0
108
0.007893
0
0
1,000
0.073083
16796b947c516147ed6529d69a08e17bbd4afe73
3,005
py
Python
odoo-13.0/addons/stock_account/models/account_chart_template.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/stock_account/models/account_chart_template.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/stock_account/models/account_chart_template.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, models, _ import logging _logger = logging.getLogger(__name__) class AccountChartTemplate(models.Model): _inherit = "account.chart.template" @api.model def generate_journals(self, ac...
47.698413
180
0.577704
2,816
0.937105
0
0
369
0.122795
0
0
937
0.311814
167a0dd80799c1a419238ba6164d01472b85e5d4
6,094
py
Python
lib/roi_data/loader.py
BarneyQiao/pcl.pytorch
4e0280e5e1470f705e620eda26f881d627c5016c
[ "MIT" ]
233
2019-05-10T07:17:42.000Z
2022-03-30T09:24:16.000Z
lib/roi_data/loader.py
Michael-Steven/Crack_Image_WSOD
4e8591a7c0768cee9eb7240bb9debd54824f5b33
[ "MIT" ]
78
2019-05-10T21:10:47.000Z
2022-03-29T13:57:32.000Z
lib/roi_data/loader.py
Michael-Steven/Crack_Image_WSOD
4e8591a7c0768cee9eb7240bb9debd54824f5b33
[ "MIT" ]
57
2019-05-10T07:17:37.000Z
2022-03-24T04:43:24.000Z
import math import numpy as np import numpy.random as npr import torch import torch.utils.data as data import torch.utils.data.sampler as torch_sampler from torch.utils.data.dataloader import default_collate from torch._six import int_classes as _int_classes from core.config import cfg from roi_data.minibatch import ...
38.56962
97
0.639317
3,445
0.56531
314
0.051526
0
0
0
0
2,098
0.344273
167a8c5cf5187907cc0dbc578ad93057948ece69
28,272
py
Python
venv/Lib/site-packages/sklearn/linear_model/tests/test_least_angle.py
andywu113/fuhe_predict
7fd816ae83467aa659d420545cd3e25a5e933d5f
[ "MIT" ]
3
2019-06-05T12:11:20.000Z
2022-01-17T13:53:06.000Z
venv/Lib/site-packages/sklearn/linear_model/tests/test_least_angle.py
kevinten10/Clothing-Classification
9aac6e339651137179f4e4da36fe7743cf4bdca4
[ "MIT" ]
3
2021-06-08T20:58:27.000Z
2022-03-12T00:16:49.000Z
venv/Lib/site-packages/sklearn/linear_model/tests/test_least_angle.py
kevinten10/Clothing-Classification
9aac6e339651137179f4e4da36fe7743cf4bdca4
[ "MIT" ]
1
2019-02-11T22:36:12.000Z
2019-02-11T22:36:12.000Z
import warnings from distutils.version import LooseVersion import numpy as np import pytest from scipy import linalg from sklearn.model_selection import train_test_split from sklearn.utils.testing import assert_allclose from sklearn.utils.testing import assert_array_almost_equal from sklearn.utils.testing import ass...
38.360923
79
0.616051
0
0
0
0
7,165
0.253431
0
0
7,536
0.266553
167b4e3bb5a00625d3f0b289e41e2bc170fabc61
3,128
py
Python
parser.py
FeroxTL/pynginxconfig-new
71cb78c635930b0a764d3274646d436e8d2f1c4d
[ "MIT" ]
8
2016-03-25T04:22:39.000Z
2022-02-12T21:46:47.000Z
parser.py
Winnerer/pynginxconfig
71cb78c635930b0a764d3274646d436e8d2f1c4d
[ "MIT" ]
null
null
null
parser.py
Winnerer/pynginxconfig
71cb78c635930b0a764d3274646d436e8d2f1c4d
[ "MIT" ]
3
2019-01-26T15:54:54.000Z
2022-02-12T21:46:47.000Z
#coding: utf8 import copy import re from blocks import Block, EmptyBlock, KeyValueOption, Comment, Location def parse(s, parent_block): config = copy.copy(s) pos, brackets_level, param_start = 0, 0, 0 while pos < len(config): if config[pos] == '#' and brackets_level == 0: re_sharp_co...
24.825397
113
0.545716
0
0
0
0
0
0
0
0
1,141
0.36477
167b69684843eed85973a69dafe6205fbdff9406
845
py
Python
cocos2d/tools/jenkins-scripts/configs/cocos-2dx-develop-win32.py
triompha/EarthWarrior3D
d68a347902fa1ca1282df198860f5fb95f326797
[ "MIT" ]
null
null
null
cocos2d/tools/jenkins-scripts/configs/cocos-2dx-develop-win32.py
triompha/EarthWarrior3D
d68a347902fa1ca1282df198860f5fb95f326797
[ "MIT" ]
null
null
null
cocos2d/tools/jenkins-scripts/configs/cocos-2dx-develop-win32.py
triompha/EarthWarrior3D
d68a347902fa1ca1282df198860f5fb95f326797
[ "MIT" ]
null
null
null
import os import subprocess import sys print 'Build Config:' print ' Host:win7 x86' print ' Branch:develop' print ' Target:win32' print ' "%VS110COMNTOOLS%..\IDE\devenv.com" "build\cocos2d-win32.vc2012.sln" /Build "Debug|Win32"' if(os.path.exists('build/cocos2d-win32.vc2012.sln') == False): node_...
33.8
127
0.668639
0
0
0
0
0
0
0
0
456
0.539645
167cfaccf65c4a217ee921178f5ab5094fc6d8a6
241
py
Python
iris_sdk/models/data/ord/rate_center_search_order.py
NumberAI/python-bandwidth-iris
0e05f79d68b244812afb97e00fd65b3f46d00aa3
[ "MIT" ]
2
2020-04-13T13:47:59.000Z
2022-02-23T20:32:41.000Z
iris_sdk/models/data/ord/rate_center_search_order.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2020-09-18T20:59:24.000Z
2021-08-25T16:51:42.000Z
iris_sdk/models/data/ord/rate_center_search_order.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2018-12-12T14:39:50.000Z
2020-11-17T21:42:29.000Z
#!/usr/bin/env python from iris_sdk.models.base_resource import BaseData from iris_sdk.models.maps.ord.rate_center_search_order import \ RateCenterSearchOrderMap class RateCenterSearchOrder(RateCenterSearchOrderMap, BaseData): pass
30.125
64
0.834025
73
0.302905
0
0
0
0
0
0
21
0.087137
167df72d7c85276ff20ea4552c3c38a522dba306
7,024
py
Python
optimizer.py
thanusha22/CEC-1
02ad9247b006a348cc871a5714cf5abfa4a516af
[ "MIT" ]
null
null
null
optimizer.py
thanusha22/CEC-1
02ad9247b006a348cc871a5714cf5abfa4a516af
[ "MIT" ]
null
null
null
optimizer.py
thanusha22/CEC-1
02ad9247b006a348cc871a5714cf5abfa4a516af
[ "MIT" ]
null
null
null
from pathlib import Path import optimizers.PSO as pso import optimizers.MVO as mvo import optimizers.GWO as gwo import optimizers.MFO as mfo import optimizers.CS as cs import optimizers.BAT as bat import optimizers.WOA as woa import optimizers.FFA as ffa import optimizers.SSA as ssa import optimizers.GA as ga import o...
38.173913
111
0.58955
0
0
0
0
0
0
0
0
1,569
0.223377
167e133f17b315eee99f736bb553b46a271cd9cc
1,614
py
Python
tests/fields/test_primitive_types.py
slawak/dataclasses-avroschema
04e69a176b3e72bfa0acd3edbd044ecd161b1a68
[ "MIT" ]
null
null
null
tests/fields/test_primitive_types.py
slawak/dataclasses-avroschema
04e69a176b3e72bfa0acd3edbd044ecd161b1a68
[ "MIT" ]
null
null
null
tests/fields/test_primitive_types.py
slawak/dataclasses-avroschema
04e69a176b3e72bfa0acd3edbd044ecd161b1a68
[ "MIT" ]
null
null
null
import dataclasses import pytest from dataclasses_avroschema import fields from . import consts @pytest.mark.parametrize("primitive_type", fields.PYTHON_INMUTABLE_TYPES) def test_primitive_types(primitive_type): name = "a_field" field = fields.Field(name, primitive_type, dataclasses.MISSING) avro_type ...
34.340426
87
0.76456
0
0
0
0
1,503
0.931227
0
0
237
0.14684
167f92f56a42d5741ea4dde46075bf065ebbe3cd
11,512
py
Python
Bindings/Python/examples/Moco/examplePredictAndTrack.py
mcx/opensim-core
c109f8cec3a81c732f335cd39752da6ae573b604
[ "Apache-2.0" ]
532
2015-03-13T18:51:10.000Z
2022-03-27T08:08:29.000Z
Bindings/Python/examples/Moco/examplePredictAndTrack.py
mcx/opensim-core
c109f8cec3a81c732f335cd39752da6ae573b604
[ "Apache-2.0" ]
2,701
2015-01-03T21:33:34.000Z
2022-03-30T07:13:41.000Z
Bindings/Python/examples/Moco/examplePredictAndTrack.py
mcx/opensim-core
c109f8cec3a81c732f335cd39752da6ae573b604
[ "Apache-2.0" ]
271
2015-02-16T23:25:29.000Z
2022-03-30T20:12:17.000Z
# -------------------------------------------------------------------------- # # OpenSim Moco: examplePredictAndTrack.py # # -------------------------------------------------------------------------- # # Copyright (c) 2018 Stanford University and the Authors # # ...
34.160237
79
0.633687
0
0
0
0
0
0
0
0
4,635
0.402623
1680693e61459262ca19480a0c2453b04b05a5a0
992
py
Python
StorageSystem.py
aaronFritz2302/ZoomAuto
41af90dc35104bfea970b6b61694e105a625535c
[ "MIT" ]
null
null
null
StorageSystem.py
aaronFritz2302/ZoomAuto
41af90dc35104bfea970b6b61694e105a625535c
[ "MIT" ]
null
null
null
StorageSystem.py
aaronFritz2302/ZoomAuto
41af90dc35104bfea970b6b61694e105a625535c
[ "MIT" ]
null
null
null
import sqlite3 from pandas import DataFrame conn = sqlite3.connect('./data.db',check_same_thread=False) class DataBase(): cursor = conn.cursor() def __init__(self): self.createTable() def createTable(self): ''' Creates A Table If it Doesnt Exist ...
32
138
0.582661
865
0.871976
0
0
0
0
0
0
412
0.415323
1680b6fe6e7e3043a7d70ac1ab9bfc138b53e7ea
5,255
py
Python
pymapd/_parsers.py
mflaxman10/pymapd
00b72ae399a0ff829507ee0b3a2b7404f3a06c26
[ "Apache-2.0" ]
null
null
null
pymapd/_parsers.py
mflaxman10/pymapd
00b72ae399a0ff829507ee0b3a2b7404f3a06c26
[ "Apache-2.0" ]
null
null
null
pymapd/_parsers.py
mflaxman10/pymapd
00b72ae399a0ff829507ee0b3a2b7404f3a06c26
[ "Apache-2.0" ]
null
null
null
""" Utility methods for parsing data returned from MapD """ import datetime from collections import namedtuple from sqlalchemy import text import mapd.ttypes as T from ._utils import seconds_to_time Description = namedtuple("Description", ["name", "type_code", "display_size", ...
27.952128
79
0.597146
0
0
0
0
0
0
0
0
1,404
0.267174
16833799777639519b435db61702159dbc70cb57
20,687
py
Python
featuretools/entityset/entity.py
rohit901/featuretools
20bee224782acf94909c2bf33239fd5332a8c1de
[ "BSD-3-Clause" ]
1
2021-07-30T16:03:48.000Z
2021-07-30T16:03:48.000Z
featuretools/entityset/entity.py
rohit901/featuretools
20bee224782acf94909c2bf33239fd5332a8c1de
[ "BSD-3-Clause" ]
13
2021-03-04T19:29:21.000Z
2022-01-21T10:49:20.000Z
featuretools/entityset/entity.py
rohit901/featuretools
20bee224782acf94909c2bf33239fd5332a8c1de
[ "BSD-3-Clause" ]
2
2021-02-09T21:37:48.000Z
2021-12-22T16:13:27.000Z
import logging import warnings import dask.dataframe as dd import numpy as np import pandas as pd from featuretools import variable_types as vtypes from featuretools.utils.entity_utils import ( col_is_datetime, convert_all_variable_data, convert_variable_data, get_linked_vars, infer_variable_types...
42.391393
124
0.592353
17,724
0.85677
0
0
736
0.035578
0
0
6,999
0.338328
16848dd03e02c952cce813e4092be02064f38ca9
1,470
py
Python
githubdl/url_helpers.py
wilvk/githubdl
1dc8c1c0d93a8e4b8155aecf4f5e73e2931ed920
[ "MIT" ]
16
2018-06-20T00:01:40.000Z
2022-01-24T08:16:17.000Z
githubdl/url_helpers.py
wilvk/githubdl
1dc8c1c0d93a8e4b8155aecf4f5e73e2931ed920
[ "MIT" ]
12
2018-07-18T21:09:37.000Z
2020-03-28T23:38:13.000Z
githubdl/url_helpers.py
wilvk/githubdl
1dc8c1c0d93a8e4b8155aecf4f5e73e2931ed920
[ "MIT" ]
null
null
null
import re from urllib.parse import urlparse import logging def check_url_is_http(repo_url): predicate = re.compile('^https?://.*$') match = predicate.search(repo_url) return False if match is None else True def check_url_is_ssh(repo_url): predicate = re.compile(r'^git\@.*\.git$') match = predicate...
31.276596
76
0.706803
0
0
0
0
0
0
0
0
140
0.095238
168519bcca14cbc5945efcceae792622fe09d3d9
25,777
py
Python
RECOVERED_FILES/root/ez-segway/simulator/ez_lib/cen_scheduler.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
null
null
null
RECOVERED_FILES/root/ez-segway/simulator/ez_lib/cen_scheduler.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
null
null
null
RECOVERED_FILES/root/ez-segway/simulator/ez_lib/cen_scheduler.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
1
2021-05-08T02:23:00.000Z
2021-05-08T02:23:00.000Z
import itertools from ez_lib import ez_flow_tool from collections import defaultdict from ez_scheduler import EzScheduler from ez_lib.ez_ob import CenUpdateInfo, UpdateNext from misc import constants, logger from domain.message import * from collections import deque from misc import global_vars import time import even...
54.039832
136
0.58141
25,386
0.984831
0
0
115
0.004461
0
0
3,672
0.142453
16863f0872927e8b824cd132c78fbf22829a951a
892
py
Python
src/trackbar.py
clovadev/opencv-python
f9c685f8dc658f630a9742f4dd55663bde03fe7d
[ "MIT" ]
null
null
null
src/trackbar.py
clovadev/opencv-python
f9c685f8dc658f630a9742f4dd55663bde03fe7d
[ "MIT" ]
null
null
null
src/trackbar.py
clovadev/opencv-python
f9c685f8dc658f630a9742f4dd55663bde03fe7d
[ "MIT" ]
null
null
null
import numpy as np import cv2 as cv def nothing(x): pass # Create a black image, a window img = np.zeros((300, 512, 3), np.uint8) cv.namedWindow('image') # create trackbars for color change cv.createTrackbar('R', 'image', 0, 255, nothing) cv.createTrackbar('G', 'image', 0, 255, nothing) cv.createTrackbar('B', ...
22.3
49
0.618834
0
0
0
0
0
0
0
0
325
0.346482
1687efc3eb23ad09ae90d5260997fa4ec210ea9f
1,246
py
Python
aoc_2015/src/day20.py
ambertests/adventofcode
140ed1d71ed647d30d1e6572964cab1e89dfd105
[ "MIT" ]
null
null
null
aoc_2015/src/day20.py
ambertests/adventofcode
140ed1d71ed647d30d1e6572964cab1e89dfd105
[ "MIT" ]
null
null
null
aoc_2015/src/day20.py
ambertests/adventofcode
140ed1d71ed647d30d1e6572964cab1e89dfd105
[ "MIT" ]
null
null
null
from functools import reduce # https://stackoverflow.com/questions/6800193/what-is-the-most-efficient-way-of-finding-all-the-factors-of-a-number-in-python def factors(n): step = 2 if n%2 else 1 return set(reduce(list.__add__, ([i, n//i] for i in range(1, int(n**0.5)+1, step) if not ...
27.688889
125
0.50321
0
0
0
0
0
0
0
0
161
0.129213
1688724e3867c7e8e39adb6579cee704e885e634
1,604
py
Python
setup.py
jean/labels
dcb6f40fb4e222068e302202dd5d7d98b4771e4b
[ "MIT" ]
1
2019-11-06T14:08:40.000Z
2019-11-06T14:08:40.000Z
setup.py
jean/labels
dcb6f40fb4e222068e302202dd5d7d98b4771e4b
[ "MIT" ]
null
null
null
setup.py
jean/labels
dcb6f40fb4e222068e302202dd5d7d98b4771e4b
[ "MIT" ]
null
null
null
import pathlib import setuptools def read(*args: str) -> str: file_path = pathlib.Path(__file__).parent.joinpath(*args) return file_path.read_text("utf-8") setuptools.setup( name="labels", version="0.3.0.dev0", author="Raphael Pierzina", author_email="raphael@hackebrot.de", maintainer="R...
34.12766
81
0.640898
0
0
0
0
0
0
0
0
836
0.520224
168883ce786ac5e2bf642b55446a3bcf835eeaa8
275
py
Python
colab/__init__.py
caseywstark/colab
e05293e45a657eda19d733bf05624a1613a7a9b7
[ "MIT" ]
1
2015-11-05T11:49:32.000Z
2015-11-05T11:49:32.000Z
colab/__init__.py
caseywstark/colab
e05293e45a657eda19d733bf05624a1613a7a9b7
[ "MIT" ]
null
null
null
colab/__init__.py
caseywstark/colab
e05293e45a657eda19d733bf05624a1613a7a9b7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __about__ = """ This project demonstrates a social networking site. It provides profiles, friends, photos, blogs, tribes, wikis, tweets, bookmarks, swaps, locations and user-to-user messaging. In 0.5 this was called "complete_project". """
27.5
74
0.705455
0
0
0
0
0
0
0
0
258
0.938182
1689397a49d0387c8d71492ecee794b05a45ba83
862
py
Python
src/ralph/ui/forms/util.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
src/ralph/ui/forms/util.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
src/ralph/ui/forms/util.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from ralph.business.models import Venture, VentureRole def all_ventures(): yield '', '---------' for v in Venture.objects.filter(show_in...
28.733333
78
0.558005
0
0
627
0.727378
0
0
0
0
199
0.230858
1689e31b5f0f44d60b97128a67d87b2730238b68
28
py
Python
tests/syntax/missing_in_with_for.py
matan-h/friendly
3ab0fc6541c837271e8865e247750007acdd18fb
[ "MIT" ]
287
2019-04-08T13:18:29.000Z
2021-03-14T19:10:21.000Z
tests/syntax/missing_in_with_for.py
matan-h/friendly
3ab0fc6541c837271e8865e247750007acdd18fb
[ "MIT" ]
191
2019-04-08T14:39:18.000Z
2021-03-14T22:14:56.000Z
tests/syntax/missing_in_with_for.py
matan-h/friendly
3ab0fc6541c837271e8865e247750007acdd18fb
[ "MIT" ]
9
2019-04-08T12:54:08.000Z
2020-11-20T02:26:27.000Z
for x range(4): print(x)
9.333333
15
0.571429
0
0
0
0
0
0
0
0
0
0
168b7cd601c412154d052fac8164eeb139aec911
4,769
py
Python
services/users/manage.py
eventprotocol/event-protocol-webapp
38ccdc63bc744576ebb3631b7e17cfd4a09216b6
[ "MIT" ]
null
null
null
services/users/manage.py
eventprotocol/event-protocol-webapp
38ccdc63bc744576ebb3631b7e17cfd4a09216b6
[ "MIT" ]
11
2020-09-05T14:16:23.000Z
2022-03-03T22:33:14.000Z
services/users/manage.py
eventprotocol/event-protocol-webapp
38ccdc63bc744576ebb3631b7e17cfd4a09216b6
[ "MIT" ]
null
null
null
""" manage.py for flask application """ import unittest import coverage import os from flask.cli import FlaskGroup from project import create_app, db from project.api.models import User # Code coverage COV = coverage.Coverage( branch=True, include='project/*', omit=[ 'project/tests/*', 'p...
29.621118
79
0.642063
0
0
0
0
4,298
0.901237
0
0
1,996
0.418536
168bb7123d253d48e67b56f36bbcad938db24dd7
1,750
py
Python
keras_transformer/keras_transformer/training/custom_callbacks/CustomCheckpointer.py
erelcan/keras-transformer
ae88985dd4f1b5f91737e80c7e9c3157b60b4c4f
[ "Apache-2.0" ]
3
2021-02-14T17:10:59.000Z
2021-02-14T18:09:17.000Z
keras_transformer/keras_transformer/training/custom_callbacks/CustomCheckpointer.py
erelcan/keras-transformer
ae88985dd4f1b5f91737e80c7e9c3157b60b4c4f
[ "Apache-2.0" ]
null
null
null
keras_transformer/keras_transformer/training/custom_callbacks/CustomCheckpointer.py
erelcan/keras-transformer
ae88985dd4f1b5f91737e80c7e9c3157b60b4c4f
[ "Apache-2.0" ]
null
null
null
import os from keras.callbacks import ModelCheckpoint from keras_transformer.training.custom_callbacks.CustomCallbackABC import CustomCallbackABC from keras_transformer.utils.io_utils import save_to_pickle class CustomCheckpointer(ModelCheckpoint, CustomCallbackABC): def __init__(self, workspace_path, artifacts,...
35
117
0.671429
1,540
0.88
0
0
0
0
0
0
120
0.068571
168c810ecd449bb3eb263646cbc454470f8c28e4
527
py
Python
train_test_val.py
arashk7/Yolo5_Dataset_Generator
aeba58b51201b8521478c777b40c4d31f0c60be9
[ "Apache-2.0" ]
null
null
null
train_test_val.py
arashk7/Yolo5_Dataset_Generator
aeba58b51201b8521478c777b40c4d31f0c60be9
[ "Apache-2.0" ]
null
null
null
train_test_val.py
arashk7/Yolo5_Dataset_Generator
aeba58b51201b8521478c777b40c4d31f0c60be9
[ "Apache-2.0" ]
null
null
null
import os import shutil input_dir = 'E:\Dataset\zhitang\Dataset_Zhitang_Yolo5' output_dir = 'E:\Dataset\zhitang\Dataset_Zhitang_Yolo5\ZhitangYolo5' in_img_dir = os.path.join(input_dir, 'Images') in_label_dir = os.path.join(input_dir, 'Labels') out_img_dir = os.path.join(output_dir, 'images') out_label_dir = os.path.jo...
22.913043
68
0.736243
0
0
0
0
0
0
0
0
149
0.282732
168cde4a792e9985c473078c1d3e1678761198e7
4,873
py
Python
homeassistant/components/media_player/pjlink.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
4
2019-01-10T14:47:54.000Z
2021-04-22T02:06:27.000Z
homeassistant/components/media_player/pjlink.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
6
2021-02-08T21:02:40.000Z
2022-03-12T00:52:16.000Z
homeassistant/components/media_player/pjlink.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
3
2018-08-29T19:26:20.000Z
2020-01-19T11:58:22.000Z
""" Support for controlling projector via the PJLink protocol. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/media_player.pjlink/ """ import logging import voluptuous as vol from homeassistant.components.media_player import ( PLATFORM_SCHEMA, SUPP...
31.038217
78
0.65668
2,927
0.600657
0
0
678
0.139134
0
0
881
0.180792
168da4e09bd5b50aa5b8cd08e50f215c17b399b2
608
py
Python
leetcode/regex_matching.py
Kaushalya/algo_journal
bcea8afda0dc86b36452378e3bcff9b0f57d6856
[ "Apache-2.0" ]
null
null
null
leetcode/regex_matching.py
Kaushalya/algo_journal
bcea8afda0dc86b36452378e3bcff9b0f57d6856
[ "Apache-2.0" ]
null
null
null
leetcode/regex_matching.py
Kaushalya/algo_journal
bcea8afda0dc86b36452378e3bcff9b0f57d6856
[ "Apache-2.0" ]
null
null
null
# Level: Hard def isMatch(s: str, p: str) -> bool: if not p: return not s n_s = len(s) n_p = len(p) j = 0 i = -1 while i < n_s-1: i = i+ 1 if j >= n_p: return False if p[j] == '*': while s[i]==s[i-1]: i += 1 j...
17.882353
39
0.361842
0
0
0
0
0
0
0
0
52
0.085526
168db9c8444379377b3a611c0a5f87f083f3ec4d
3,217
py
Python
tests/factories.py
luzik/waliki
b7db696075ceebb5676be61f44e2d806cc472255
[ "BSD-3-Clause" ]
324
2015-01-02T20:48:33.000Z
2021-12-11T14:44:34.000Z
tests/factories.py
luzik/waliki
b7db696075ceebb5676be61f44e2d806cc472255
[ "BSD-3-Clause" ]
103
2015-01-02T03:01:34.000Z
2020-04-02T19:03:53.000Z
tests/factories.py
luzik/waliki
b7db696075ceebb5676be61f44e2d806cc472255
[ "BSD-3-Clause" ]
84
2015-01-07T08:53:05.000Z
2021-01-04T00:26:38.000Z
import factory from django.contrib.auth.models import User, Group, Permission from waliki.models import ACLRule, Page, Redirect class UserFactory(factory.django.DjangoModelFactory): username = factory.Sequence(lambda n: u'user{0}'.format(n)) password = factory.PostGenerationMethodCall('set_password', 'pass') ...
28.723214
98
0.608642
3,073
0.955238
0
0
1,920
0.596829
0
0
512
0.159154
168dc722af15d363851566ae2eeabcf9ccc50653
68,372
py
Python
nxt_editor/commands.py
dalteocraft/nxt_editor
18992da7cfa89769568434ec08d787510e09f1c4
[ "MIT" ]
131
2020-12-03T08:01:26.000Z
2022-03-07T03:41:37.000Z
nxt_editor/commands.py
dalteocraft/nxt_editor
18992da7cfa89769568434ec08d787510e09f1c4
[ "MIT" ]
127
2020-12-07T21:43:02.000Z
2022-02-17T22:31:14.000Z
nxt_editor/commands.py
dalteocraft/nxt_editor
18992da7cfa89769568434ec08d787510e09f1c4
[ "MIT" ]
17
2020-12-08T08:06:44.000Z
2021-11-18T05:40:11.000Z
# Built-in import copy import logging import time # External from Qt.QtWidgets import QUndoCommand # Internal from nxt_editor import colors from nxt_editor import user_dir from nxt import nxt_path from nxt.nxt_layer import LAYERS, SAVE_KEY from nxt.nxt_node import (INTERNAL_ATTRS, META_ATTRS, get_node_as_dict, ...
40.60095
80
0.597379
66,226
0.968613
0
0
36,879
0.539387
0
0
6,801
0.099471
168de834f7c08dea94c1b268f9213453f995fc3e
6,642
py
Python
mietrechtspraxis/mietrechtspraxis/doctype/arbitration_authority/arbitration_authority.py
libracore/mietrechtspraxis
7b2320a70b98b086be136a86b1ab4fadfce215ff
[ "MIT" ]
1
2021-07-15T13:25:23.000Z
2021-07-15T13:25:23.000Z
mietrechtspraxis/mietrechtspraxis/doctype/arbitration_authority/arbitration_authority.py
libracore/mietrechtspraxis
7b2320a70b98b086be136a86b1ab4fadfce215ff
[ "MIT" ]
1
2022-01-27T13:30:56.000Z
2022-01-27T13:30:56.000Z
mietrechtspraxis/mietrechtspraxis/doctype/arbitration_authority/arbitration_authority.py
libracore/mietrechtspraxis
7b2320a70b98b086be136a86b1ab4fadfce215ff
[ "MIT" ]
2
2021-08-14T22:23:08.000Z
2021-09-08T09:31:51.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, libracore AG and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from datetime import datetime from PyPDF2 import PdfFileWriter from frappe.utils.file_manager im...
43.986755
187
0.483439
46
0.006919
0
0
205
0.030836
0
0
3,902
0.586943
168eb7379683dd807fa4203db108dc8a9b170baa
323
py
Python
easysockets/client_socket.py
Matthias1590/EasySockets
70d33a04e862b682b87bdf2103bcc1d7da06994e
[ "MIT" ]
2
2022-01-10T12:25:45.000Z
2022-01-15T08:01:32.000Z
easysockets/client_socket.py
Matthias1590/EasySockets
70d33a04e862b682b87bdf2103bcc1d7da06994e
[ "MIT" ]
null
null
null
easysockets/client_socket.py
Matthias1590/EasySockets
70d33a04e862b682b87bdf2103bcc1d7da06994e
[ "MIT" ]
null
null
null
from .connection import Connection import socket class ClientSocket: def __init__(self) -> None: self.__socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) def connect(self, host: str, port: int) -> Connection: self.__socket.connect((host, port)) return Connection(self.__socke...
24.846154
73
0.696594
271
0.839009
0
0
0
0
0
0
0
0
168f0267685e958dd990feeae60a1086e6b78107
31,038
py
Python
pxr/usd/usdGeom/testenv/testUsdGeomSchemata.py
yurivict/USD
3b097e3ba8fabf1777a1256e241ea15df83f3065
[ "Apache-2.0" ]
1
2022-03-16T01:40:10.000Z
2022-03-16T01:40:10.000Z
pxr/usd/usdGeom/testenv/testUsdGeomSchemata.py
yurivict/USD
3b097e3ba8fabf1777a1256e241ea15df83f3065
[ "Apache-2.0" ]
null
null
null
pxr/usd/usdGeom/testenv/testUsdGeomSchemata.py
yurivict/USD
3b097e3ba8fabf1777a1256e241ea15df83f3065
[ "Apache-2.0" ]
1
2018-10-03T19:08:33.000Z
2018-10-03T19:08:33.000Z
#!/pxrpythonsubst # # Copyright 2017 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
42.69326
100
0.63055
29,800
0.960113
0
0
0
0
0
0
7,756
0.249887
168fdf67ec71ebdf125bbe9b6f5c14dad854391f
1,310
py
Python
round_robin_generator/matchup_times.py
avadavat/round_robin_generator
242d522386f6af26db029232fcffb51004ff4c59
[ "MIT" ]
null
null
null
round_robin_generator/matchup_times.py
avadavat/round_robin_generator
242d522386f6af26db029232fcffb51004ff4c59
[ "MIT" ]
5
2020-04-26T19:44:41.000Z
2020-05-01T16:26:06.000Z
round_robin_generator/matchup_times.py
avadavat/round_robin_generator
242d522386f6af26db029232fcffb51004ff4c59
[ "MIT" ]
null
null
null
import pandas as pd from datetime import timedelta def generate_times(matchup_df: pd.DataFrame, tournament_start_time, game_duration, game_stagger): time_df = pd.DataFrame(index=matchup_df.index, columns=matchup_df.columns) if game_stagger == 0: for round_num in range(time_df.shape[0]): ro...
48.518519
116
0.636641
0
0
0
0
0
0
0
0
239
0.182443
16904816a9bda6205128c0d91b67e3ab2be3d489
3,943
py
Python
src/commands/locate_item.py
seisatsu/DennisMUD-ESP32
b63d4b914c5e8d0f9714042997c64919b20be842
[ "MIT" ]
19
2018-10-02T03:58:46.000Z
2021-04-09T13:09:23.000Z
commands/locate_item.py
seisatsu/Dennis
8f1892f21beba6b21b4f7b9ba3062296bb1dc4b9
[ "MIT" ]
100
2018-09-22T22:54:35.000Z
2021-04-16T17:46:34.000Z
src/commands/locate_item.py
seisatsu/DennisMUD-ESP32
b63d4b914c5e8d0f9714042997c64919b20be842
[ "MIT" ]
1
2022-01-03T02:21:56.000Z
2022-01-03T02:21:56.000Z
####################### # Dennis MUD # # locate_item.py # # Copyright 2018-2020 # # Michael D. Reiley # ####################### # ********** # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal i...
41.072917
116
0.633274
0
0
0
0
0
0
0
0
2,326
0.589906
16904f40b9743948ab5dc6a0d2f55015295bc2fd
2,787
py
Python
modelling/scsb/models/monthly-comparisons.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
modelling/scsb/models/monthly-comparisons.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
modelling/scsb/models/monthly-comparisons.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
import json import pandas as pd import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression from sklearn.ensemble import RandomForestRegressor from sklearn.tree import DecisionTreeRegressor from xgboost import XGBRegressor from catboost import CatBoostRegressor from sklearn.model_selection import ...
38.708333
161
0.734482
0
0
0
0
0
0
0
0
675
0.242196
1690da2be65319bb6696ac8f2ce11540524171c2
14,922
py
Python
src/week2-mlflow/AutoML/XGBoost-fake-news-automl.py
xzhnshng/databricks-zero-to-mlops
f1691c6f6137ad8b938e64cea4700c7011efb800
[ "CC0-1.0" ]
null
null
null
src/week2-mlflow/AutoML/XGBoost-fake-news-automl.py
xzhnshng/databricks-zero-to-mlops
f1691c6f6137ad8b938e64cea4700c7011efb800
[ "CC0-1.0" ]
null
null
null
src/week2-mlflow/AutoML/XGBoost-fake-news-automl.py
xzhnshng/databricks-zero-to-mlops
f1691c6f6137ad8b938e64cea4700c7011efb800
[ "CC0-1.0" ]
null
null
null
# Databricks notebook source # MAGIC %md # MAGIC # XGBoost training # MAGIC This is an auto-generated notebook. To reproduce these results, attach this notebook to the **10-3-ML-Cluster** cluster and rerun it. # MAGIC - Compare trials in the [MLflow experiment](#mlflow/experiments/406583024052808/s?orderByKey=metrics.%...
36.753695
461
0.743399
0
0
0
0
0
0
0
0
9,278
0.621767
1694a3aec6658351c14a81b2e91e92955b6cb8a7
341
py
Python
lucky_guess/__init__.py
mfinzi/lucky-guess-chemist
01898b733dc7d026f70d0cb6337309cb600502fb
[ "MIT" ]
null
null
null
lucky_guess/__init__.py
mfinzi/lucky-guess-chemist
01898b733dc7d026f70d0cb6337309cb600502fb
[ "MIT" ]
null
null
null
lucky_guess/__init__.py
mfinzi/lucky-guess-chemist
01898b733dc7d026f70d0cb6337309cb600502fb
[ "MIT" ]
null
null
null
import importlib import pkgutil __all__ = [] for loader, module_name, is_pkg in pkgutil.walk_packages(__path__): module = importlib.import_module('.'+module_name,package=__name__) try: globals().update({k: getattr(module, k) for k in module.__all__}) __all__ += module.__all__ except Att...
34.1
73
0.71261
0
0
0
0
0
0
0
0
3
0.008798
1695439f6b89942d55b135dae20f140a0772199c
3,727
py
Python
shuffling_algorithm.py
BaptisteLafoux/aztec_tiling
413acd8751b8178942e91fbee32987f02bc5c695
[ "MIT" ]
null
null
null
shuffling_algorithm.py
BaptisteLafoux/aztec_tiling
413acd8751b8178942e91fbee32987f02bc5c695
[ "MIT" ]
null
null
null
shuffling_algorithm.py
BaptisteLafoux/aztec_tiling
413acd8751b8178942e91fbee32987f02bc5c695
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Dec 30 22:04:48 2020 @author: baptistelafoux """ import domino import numpy as np import numpy.lib.arraysetops as aso def spawn_block(x, y): if np.random.rand() > 0.5: d1 = domino.domino(np.array([x, y]), np.array([x + 1, y]), ...
26.81295
117
0.499866
0
0
0
0
0
0
0
0
113
0.030319
1696d983057a2d937827a5a96f9b5500cb3c490c
478
py
Python
scripts/matrix_operations.py
h3ct0r/gas_mapping_example
57bd8333b4832281fbb89019df440374e2b50b9b
[ "Unlicense" ]
1
2022-02-28T21:55:23.000Z
2022-02-28T21:55:23.000Z
scripts/matrix_operations.py
ArghyaChatterjee/gas_mapping_kerneldm
57bd8333b4832281fbb89019df440374e2b50b9b
[ "Unlicense" ]
null
null
null
scripts/matrix_operations.py
ArghyaChatterjee/gas_mapping_kerneldm
57bd8333b4832281fbb89019df440374e2b50b9b
[ "Unlicense" ]
2
2021-12-14T05:15:18.000Z
2022-02-28T21:55:10.000Z
import numpy as np def get_position_of_minimum(matrix): return np.unravel_index(np.nanargmin(matrix), matrix.shape) def get_position_of_maximum(matrix): return np.unravel_index(np.nanargmax(matrix), matrix.shape) def get_distance_matrix(cell_grid_x, cell_grid_y, x, y): return np.sqrt((x - cell_grid_x)...
26.555556
67
0.725941
0
0
0
0
0
0
0
0
0
0
16988b5f9f77ebb40b1eb37bef67f48bd826786d
121
py
Python
ShanghaiPower/build_up.py
biljiang/pyprojects
10095c6b8f2f32831e8a36e122d1799f135dc5df
[ "MIT" ]
null
null
null
ShanghaiPower/build_up.py
biljiang/pyprojects
10095c6b8f2f32831e8a36e122d1799f135dc5df
[ "MIT" ]
null
null
null
ShanghaiPower/build_up.py
biljiang/pyprojects
10095c6b8f2f32831e8a36e122d1799f135dc5df
[ "MIT" ]
null
null
null
from distutils.core import setup from Cython.Build import cythonize setup(ext_modules = cythonize(["license_chk.py"]))
20.166667
50
0.793388
0
0
0
0
0
0
0
0
16
0.132231
169a6a92aa8a5f8b13f2ca7a2bc5a3d4390e96a9
6,363
py
Python
quantum/plugins/nicira/extensions/nvp_qos.py
yamt/neutron
f94126739a48993efaf1d1439dcd3dadb0c69742
[ "Apache-2.0" ]
null
null
null
quantum/plugins/nicira/extensions/nvp_qos.py
yamt/neutron
f94126739a48993efaf1d1439dcd3dadb0c69742
[ "Apache-2.0" ]
null
null
null
quantum/plugins/nicira/extensions/nvp_qos.py
yamt/neutron
f94126739a48993efaf1d1439dcd3dadb0c69742
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 Nicira, Inc. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/lic...
31.191176
78
0.610718
2,786
0.437844
0
0
1,382
0.217193
0
0
2,220
0.348892
169b6898f6bda824a9456c155bd29a6f84fdb9e8
251
py
Python
easyneuron/math/__init__.py
TrendingTechnology/easyneuron
b99822c7206a144a0ab61b3b6b5cddeaca1a3c6a
[ "Apache-2.0" ]
1
2021-12-14T19:21:44.000Z
2021-12-14T19:21:44.000Z
easyneuron/math/__init__.py
TrendingTechnology/easyneuron
b99822c7206a144a0ab61b3b6b5cddeaca1a3c6a
[ "Apache-2.0" ]
null
null
null
easyneuron/math/__init__.py
TrendingTechnology/easyneuron
b99822c7206a144a0ab61b3b6b5cddeaca1a3c6a
[ "Apache-2.0" ]
null
null
null
"""easyneuron.math contains all of the maths tools that you'd ever need for your AI projects, when used alongside Numpy. To suggest more to be added, please add an issue on the GitHub repo. """ from easyneuron.math.distance import euclidean_distance
41.833333
120
0.788845
0
0
0
0
0
0
0
0
194
0.772908
169c6caecdf841a261ae5cbf1ce633a03edb8b3a
2,532
py
Python
tests/unit/concurrently/test_TaskPackageDropbox_put.py
shane-breeze/AlphaTwirl
59dbd5348af31d02e133d43fd5bfaad6b99a155e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/concurrently/test_TaskPackageDropbox_put.py
shane-breeze/AlphaTwirl
59dbd5348af31d02e133d43fd5bfaad6b99a155e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/concurrently/test_TaskPackageDropbox_put.py
shane-breeze/AlphaTwirl
59dbd5348af31d02e133d43fd5bfaad6b99a155e
[ "BSD-3-Clause" ]
null
null
null
# Tai Sakuma <tai.sakuma@gmail.com> import pytest try: import unittest.mock as mock except ImportError: import mock from alphatwirl.concurrently import TaskPackageDropbox ##__________________________________________________________________|| @pytest.fixture() def workingarea(): return mock.MagicMock() @...
30.878049
98
0.742496
0
0
167
0.065956
312
0.123223
0
0
315
0.124408
169dfe6f123a1bb92dcedefda60fdcdf0dde5b42
3,497
py
Python
networking_odl/tests/unit/dhcp/test_odl_dhcp_driver.py
gokarslan/networking-odl2
6a6967832b2c02dfcff6a9f0ab6e36472b849ce8
[ "Apache-2.0" ]
null
null
null
networking_odl/tests/unit/dhcp/test_odl_dhcp_driver.py
gokarslan/networking-odl2
6a6967832b2c02dfcff6a9f0ab6e36472b849ce8
[ "Apache-2.0" ]
null
null
null
networking_odl/tests/unit/dhcp/test_odl_dhcp_driver.py
gokarslan/networking-odl2
6a6967832b2c02dfcff6a9f0ab6e36472b849ce8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 OpenStack Foundation # 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 ...
40.662791
78
0.637975
2,463
0.704318
0
0
0
0
0
0
917
0.262225
169ed0cf36c52beabffce88a57318686603b6c41
443
py
Python
users/migrations/0002_auto_20191113_1352.py
Dragonite/djangohat
68890703b1fc647785cf120ada281d6f3fcc4121
[ "MIT" ]
2
2019-11-15T05:07:24.000Z
2019-11-15T10:27:48.000Z
users/migrations/0002_auto_20191113_1352.py
Dragonite/djangohat
68890703b1fc647785cf120ada281d6f3fcc4121
[ "MIT" ]
null
null
null
users/migrations/0002_auto_20191113_1352.py
Dragonite/djangohat
68890703b1fc647785cf120ada281d6f3fcc4121
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-11-13 13:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='users', name='site_key', fi...
23.315789
119
0.625282
350
0.790068
0
0
0
0
0
0
119
0.268623
16a0f5c79d486ed958f66a4f801398499c8d9ff1
3,389
py
Python
premium/backend/src/baserow_premium/api/admin/dashboard/views.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
839
2020-07-20T13:29:34.000Z
2022-03-31T21:09:16.000Z
premium/backend/src/baserow_premium/api/admin/dashboard/views.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
28
2020-08-07T09:23:58.000Z
2022-03-01T22:32:40.000Z
premium/backend/src/baserow_premium/api/admin/dashboard/views.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
79
2020-08-04T01:48:01.000Z
2022-03-27T13:30:54.000Z
from datetime import timedelta from django.contrib.auth import get_user_model from drf_spectacular.utils import extend_schema from rest_framework.response import Response from rest_framework.permissions import IsAdminUser from rest_framework.views import APIView from baserow.api.decorators import accept_timezone fr...
38.078652
88
0.649159
2,865
0.845382
0
0
2,785
0.821776
0
0
1,193
0.352021
16a20512bd62fea83ee40c49a4b7cc5fa386ce48
969
py
Python
src/clientOld.py
dan3612812/socketChatRoom
b0d548477687de2d9fd521826db9ea75e528de5c
[ "MIT" ]
null
null
null
src/clientOld.py
dan3612812/socketChatRoom
b0d548477687de2d9fd521826db9ea75e528de5c
[ "MIT" ]
null
null
null
src/clientOld.py
dan3612812/socketChatRoom
b0d548477687de2d9fd521826db9ea75e528de5c
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import sys import socket import time import threading import select HOST = '192.168.11.98' PORT = int(sys.argv[1]) queue = [] s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((HOST, PORT)) queue.append(s) print("add client to queue") def socketRecv(): while True: ...
19.38
53
0.627451
0
0
0
0
0
0
0
0
233
0.238485
16a205ccc4af00539940fcbe977b97f31972c365
6,296
py
Python
plugins/anomali_threatstream/komand_anomali_threatstream/actions/import_observable/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/anomali_threatstream/komand_anomali_threatstream/actions/import_observable/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/anomali_threatstream/komand_anomali_threatstream/actions/import_observable/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Component: DESCRIPTION = "Import observable(s) into Anomali ThreatStream with approval" class Input: FILE = "file" OBSERVABLE_SETTINGS = "observable_settings" class Output: RESULTS = "results" class ImportObservableI...
28.488688
215
0.513977
6,207
0.985864
0
0
0
0
0
0
5,828
0.925667
16a25b6b94677a9d90afcb9439df38171a1429af
25,083
py
Python
trove/tests/unittests/quota/test_quota.py
citrix-openstack-build/trove
52506396dd7bd095d1623d40cf2e67f2b478dc1d
[ "Apache-2.0" ]
null
null
null
trove/tests/unittests/quota/test_quota.py
citrix-openstack-build/trove
52506396dd7bd095d1623d40cf2e67f2b478dc1d
[ "Apache-2.0" ]
null
null
null
trove/tests/unittests/quota/test_quota.py
citrix-openstack-build/trove
52506396dd7bd095d1623d40cf2e67f2b478dc1d
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
42.513559
79
0.574812
23,585
0.940278
0
0
941
0.037515
0
0
1,247
0.049715
16a2ce4183cf617439f69c8fd39f2dded2cf7d88
180
py
Python
analisador_sintatico/blueprints/api/parsers.py
viniciusandd/uri-analisador-sintatico
b347f4293e4c60bd3b2c838c8cef0d75db2c0bec
[ "MIT" ]
null
null
null
analisador_sintatico/blueprints/api/parsers.py
viniciusandd/uri-analisador-sintatico
b347f4293e4c60bd3b2c838c8cef0d75db2c0bec
[ "MIT" ]
null
null
null
analisador_sintatico/blueprints/api/parsers.py
viniciusandd/uri-analisador-sintatico
b347f4293e4c60bd3b2c838c8cef0d75db2c0bec
[ "MIT" ]
null
null
null
from flask_restful import reqparse def retornar_parser(): parser = reqparse.RequestParser() parser.add_argument('sentenca', type=str, required=True) return parser
25.714286
64
0.738889
0
0
0
0
0
0
0
0
10
0.055556
16a3072f25578896e1189f9fac5976e0586e6b47
6,369
py
Python
demo_large_image.py
gunlyungyou/AerialDetection
a5606acd8e9a5f7b10cd76bd4b0c3b8c7630fb26
[ "Apache-2.0" ]
9
2020-10-08T19:51:17.000Z
2022-02-16T12:58:01.000Z
demo_large_image.py
gunlyungyou/AerialDetection
a5606acd8e9a5f7b10cd76bd4b0c3b8c7630fb26
[ "Apache-2.0" ]
null
null
null
demo_large_image.py
gunlyungyou/AerialDetection
a5606acd8e9a5f7b10cd76bd4b0c3b8c7630fb26
[ "Apache-2.0" ]
8
2020-09-25T14:47:55.000Z
2022-02-16T12:31:13.000Z
from mmdet.apis import init_detector, inference_detector, show_result, draw_poly_detections import mmcv from mmcv import Config from mmdet.datasets import get_dataset import cv2 import os import numpy as np from tqdm import tqdm import DOTA_devkit.polyiou as polyiou import math import pdb CLASS_NAMES_KR = ('소형 선박', '대...
43.326531
122
0.551892
2,515
0.388417
0
0
0
0
0
0
1,557
0.240463