hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a19dc7f71dea3bb0a1c5aed0c7447e12cb612b4
1,026
py
Python
game_scripts/furniture.py
AlexandreUser/Yuusha-no-isekai
7990ab1f5765f7dae2766fe89dd4a5acfec86f4f
[ "MIT" ]
null
null
null
game_scripts/furniture.py
AlexandreUser/Yuusha-no-isekai
7990ab1f5765f7dae2766fe89dd4a5acfec86f4f
[ "MIT" ]
null
null
null
game_scripts/furniture.py
AlexandreUser/Yuusha-no-isekai
7990ab1f5765f7dae2766fe89dd4a5acfec86f4f
[ "MIT" ]
null
null
null
def return_2x(url,times,pygame): img = pygame.image.load(url) size = img.get_size() bigger = pygame.transform.scale(img,(int(size[0]*times),int(size[1]*times))) return bigger class furniture: def __init__(self,x,reduce_x,y,reduce_y,width,height,name,pygame): self.x = x self.y = y self.reduce_x = reduce_x s...
39.461538
90
0.682261
4a19dce4731b61ee5a54dd6db9d35de17a530613
3,292
py
Python
tests/unit/trace/propagation/test_text_format.py
Flared/opencensus-python
e2535e688a50c7a06be8af93ca3b987d387da605
[ "Apache-2.0" ]
650
2017-07-09T02:08:10.000Z
2022-03-22T20:39:54.000Z
tests/unit/trace/propagation/test_text_format.py
Flared/opencensus-python
e2535e688a50c7a06be8af93ca3b987d387da605
[ "Apache-2.0" ]
735
2017-07-26T01:15:16.000Z
2022-03-29T20:17:20.000Z
tests/unit/trace/propagation/test_text_format.py
Flared/opencensus-python
e2535e688a50c7a06be8af93ca3b987d387da605
[ "Apache-2.0" ]
256
2017-07-24T18:29:15.000Z
2022-03-15T15:33:03.000Z
# Copyright 2017, OpenCensus 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...
36.988764
79
0.720838
4a19dd02c54b95d109eb5e38dd52e241e83c03ff
2,207
py
Python
examples/spacer.py
LukeMS/pyglet-gui
20ec4b335c9af3698dfa8328894544d4d0417973
[ "BSD-3-Clause" ]
52
2015-04-18T20:45:52.000Z
2021-11-21T14:50:10.000Z
examples/spacer.py
LukeMS/pyglet-gui
20ec4b335c9af3698dfa8328894544d4d0417973
[ "BSD-3-Clause" ]
8
2015-06-14T19:35:55.000Z
2018-06-29T13:52:28.000Z
examples/spacer.py
jorgecarleitao/pyglet-gui
20ec4b335c9af3698dfa8328894544d4d0417973
[ "BSD-3-Clause" ]
21
2015-07-22T16:21:11.000Z
2021-09-23T09:37:43.000Z
from setup import * from pyglet_gui.manager import Manager from pyglet_gui.buttons import Button from pyglet_gui.containers import HorizontalContainer, VerticalContainer, Spacer from pyglet_gui.theme import Theme theme = Theme({"font": "Lucida Grande", "font_size": 12, "text_color": [255...
36.783333
92
0.363389
4a19ddaa984bcfaa49ff390217dd76eb9c2f3985
27,183
py
Python
skrules/skope_rules.py
TomLaMantia/skope-rules
d9a777f84836905f726cb6221fe335cc1b935ae5
[ "MIT" ]
1
2021-12-26T06:04:25.000Z
2021-12-26T06:04:25.000Z
skrules/skope_rules.py
TomLaMantia/skope-rules
d9a777f84836905f726cb6221fe335cc1b935ae5
[ "MIT" ]
null
null
null
skrules/skope_rules.py
TomLaMantia/skope-rules
d9a777f84836905f726cb6221fe335cc1b935ae5
[ "MIT" ]
1
2019-07-25T18:38:51.000Z
2019-07-25T18:38:51.000Z
import numpy as np from collections import Counter, Iterable import pandas import numbers from warnings import warn from sklearn.base import BaseEstimator from sklearn.utils.validation import check_X_y, check_array, check_is_fitted from sklearn.utils.multiclass import check_classification_targets from sklearn.tree imp...
39.168588
79
0.572968
4a19df6d14677bda79a4696a54800494f1c97393
4,122
py
Python
packages/python/plotly/plotly/graph_objs/surface/_stream.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/surface/_stream.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/surface/_stream.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "surface" _path_str = "surface.stream" _valid_props = {"maxpoints", "token"} # maxpoints...
29.028169
82
0.540757
4a19e204efd52a6054c7c35b965acece36cc51b2
1,210
py
Python
model-optimizer/mo/front/kaldi/extractors/memoryoffset_ext.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
3
2020-02-09T23:25:37.000Z
2021-01-19T09:44:12.000Z
model-optimizer/mo/front/kaldi/extractors/memoryoffset_ext.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
null
null
null
model-optimizer/mo/front/kaldi/extractors/memoryoffset_ext.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
2
2020-04-18T16:24:39.000Z
2021-01-19T09:42:19.000Z
""" Copyright (c) 2019 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
31.025641
73
0.690909
4a19e320c2a4c0b1b0b434d4a749779357179876
617
py
Python
modules/1/scicalc.py
mdazharuddin1011999/IoT_Assignment_3
1a627e0c5785b683c5f61fb7b2f7dea1e395e1cc
[ "MIT" ]
null
null
null
modules/1/scicalc.py
mdazharuddin1011999/IoT_Assignment_3
1a627e0c5785b683c5f61fb7b2f7dea1e395e1cc
[ "MIT" ]
null
null
null
modules/1/scicalc.py
mdazharuddin1011999/IoT_Assignment_3
1a627e0c5785b683c5f61fb7b2f7dea1e395e1cc
[ "MIT" ]
null
null
null
from math import sqrt, sin, cos, tan, log, exp def addition(a, b): return a+b def subtraction(a, b): return a-b def division(a, b): return a/b def multiplication(a, b): return a*b def modulus(a, b): return a%b def power(a, b): return a**b def square_root(n): return sqrt(n) def cubic_...
13.413043
46
0.602917
4a19e336f3fbc9b5f1be961969a38ea6b55c3df4
3,238
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/payment_transfer/models/payment.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/payment_transfer/models/payment.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/payment_transfer/models/payment.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from odoo import api, fields, models, _ from odoo.addons.payment.models.payment_acquirer import ValidationError from odoo.tools.float_utils import float_compare import logging import pprint _logger = logging.getLogger(__name__) class TransferPaymentAcquirer(models.Model): _inherit = 'pa...
39.487805
145
0.64824
4a19e39a02849231f8e5f69892a2d24692f2d297
29,571
py
Python
src/pystdlib/values/float_value.py
jwcompdev/UltimateLinuxToolkit
7f03e6bebf2739bdd32e64f18566d68f13687421
[ "Apache-2.0" ]
null
null
null
src/pystdlib/values/float_value.py
jwcompdev/UltimateLinuxToolkit
7f03e6bebf2739bdd32e64f18566d68f13687421
[ "Apache-2.0" ]
null
null
null
src/pystdlib/values/float_value.py
jwcompdev/UltimateLinuxToolkit
7f03e6bebf2739bdd32e64f18566d68f13687421
[ "Apache-2.0" ]
null
null
null
# PyLinuxToolkit # Copyright (C) 2022 JWCompDev # # float_value.py # Copyright (C) 2022 JWCompDev <jwcompdev@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by # the Apache Software Foundation; either version 2.0 of the License,...
32.711283
88
0.623787
4a19e3c517e26691e7e7d6ab97b55e53664627bf
1,195
py
Python
core/packages/router/route_manager.py
Shardj/py-gangue
d02e4e0b0c85069cb4ca9c507be77ecaac51dd73
[ "MIT" ]
null
null
null
core/packages/router/route_manager.py
Shardj/py-gangue
d02e4e0b0c85069cb4ca9c507be77ecaac51dd73
[ "MIT" ]
null
null
null
core/packages/router/route_manager.py
Shardj/py-gangue
d02e4e0b0c85069cb4ca9c507be77ecaac51dd73
[ "MIT" ]
null
null
null
import sys, os, pickle, core.packages.router.route as RouteImport, core.helpers as Helpers class RouteManger: cliRouteImportStrings = [{'path': 'core.routes.cli_routing' , 'initFunction' : 'defineRoutes'}, {'path': 'app.routes.cli_routing' , 'initFunction' : 'defineRoutes'}] def __init__(self): self.ro...
45.961538
169
0.643515
4a19e4b235de1814c948fe27d644fdde5a43ca27
3,190
py
Python
piccolo/apps/schema/commands/graph.py
0scarB/piccolo
27539219431874bae99b7206df48133fbe1a27eb
[ "MIT" ]
750
2019-01-03T16:02:48.000Z
2022-03-30T19:53:03.000Z
piccolo/apps/schema/commands/graph.py
0scarB/piccolo
27539219431874bae99b7206df48133fbe1a27eb
[ "MIT" ]
311
2019-01-14T13:07:13.000Z
2022-03-31T07:43:08.000Z
piccolo/apps/schema/commands/graph.py
0scarB/piccolo
27539219431874bae99b7206df48133fbe1a27eb
[ "MIT" ]
48
2020-12-18T08:13:50.000Z
2022-03-24T03:18:06.000Z
""" Credit to the Django Extensions team for inspiring this tool. """ import dataclasses import os import sys import typing as t import jinja2 from piccolo.conf.apps import Finder TEMPLATE_DIRECTORY = os.path.join( os.path.dirname(os.path.abspath(__file__)), "templates" ) JINJA_ENV = jinja2.Environment( lo...
27.982456
76
0.599687
4a19e71af2fb31efbb233e3d1c621faeb35ab03f
20,855
py
Python
src/virtual-wan/azext_vwan/vendored_sdks/v2018_08_01/v2018_08_01/aio/operations/_routes_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/virtual-wan/azext_vwan/vendored_sdks/v2018_08_01/v2018_08_01/aio/operations/_routes_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/virtual-wan/azext_vwan/vendored_sdks/v2018_08_01/v2018_08_01/aio/operations/_routes_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.613054
210
0.664253
4a19e86cce7a6e620fb7775ca36a6d0b8afe95bb
428
py
Python
examples/usage_example.py
haikusw/jaqalpaq
d507e894cb897756a1e51c99582b736254995b4e
[ "Apache-2.0" ]
8
2021-02-19T23:25:28.000Z
2021-09-24T20:11:13.000Z
examples/usage_example.py
haikusw/jaqalpaq
d507e894cb897756a1e51c99582b736254995b4e
[ "Apache-2.0" ]
null
null
null
examples/usage_example.py
haikusw/jaqalpaq
d507e894cb897756a1e51c99582b736254995b4e
[ "Apache-2.0" ]
null
null
null
import jaqalpaq from jaqalpaq.parser import parse_jaqal_file from jaqalpaq.emulator import run_jaqal_circuit from jaqalpaq.generator import generate_jaqal_program JaqalCircuitObject = parse_jaqal_file("jaqal/Sxx_circuit.jaqal") JaqalCircuitResults = run_jaqal_circuit(JaqalCircuitObject) print(f"Probabilities: {JaqalCi...
42.8
80
0.876168
4a19e88308cd188464c5b852b15bb530253b1f1c
241
py
Python
output/models/nist_data/list_pkg/g_day/schema_instance/nistschema_sv_iv_list_g_day_max_length_3_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/g_day/schema_instance/nistschema_sv_iv_list_g_day_max_length_3_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/g_day/schema_instance/nistschema_sv_iv_list_g_day_max_length_3_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.g_day.schema_instance.nistschema_sv_iv_list_g_day_max_length_3_xsd.nistschema_sv_iv_list_g_day_max_length_3 import NistschemaSvIvListGDayMaxLength3 __all__ = [ "NistschemaSvIvListGDayMaxLength3", ]
40.166667
185
0.887967
4a19ea516c1e8a68ed3f135088e2760f06cda272
34,091
py
Python
src/sentry/conf/server.py
ccdlvc/report.iupdate.io
0ab451850c34af40b86eb517e39124e5b894b44b
[ "BSD-3-Clause" ]
null
null
null
src/sentry/conf/server.py
ccdlvc/report.iupdate.io
0ab451850c34af40b86eb517e39124e5b894b44b
[ "BSD-3-Clause" ]
5
2019-12-28T18:13:59.000Z
2022-03-02T04:32:45.000Z
src/sentry/conf/server.py
ccdlvc/report.iupdate.io
0ab451850c34af40b86eb517e39124e5b894b44b
[ "BSD-3-Clause" ]
null
null
null
""" sentry.conf.server ~~~~~~~~~~~~~~~~~~ These settings act as the default (base) settings for the Sentry-provided web-server :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from django.conf.global_se...
31.362466
192
0.674489
4a19ea547a219cdbf3ffa147ad934318a8992aa2
19,487
py
Python
seisflows3/optimize/base.py
bch0w/seisflows3
5158020d4efc06dae65dc472b59f1f958609348a
[ "BSD-2-Clause" ]
null
null
null
seisflows3/optimize/base.py
bch0w/seisflows3
5158020d4efc06dae65dc472b59f1f958609348a
[ "BSD-2-Clause" ]
null
null
null
seisflows3/optimize/base.py
bch0w/seisflows3
5158020d4efc06dae65dc472b59f1f958609348a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 """ The Optimization library contains classes and methods used to solve nonlinear optimization problems, i.e., misfit minimization. Various subclasses implement different optimization algorithms. .. note:: By default the base class implements a steepest descent optimization """ import os imp...
37.838835
80
0.613486
4a19ec8b846b6602bd7ebfef1903e91c45820b59
684
py
Python
toys/gaussians/roofit_example.py
zfit/benchmarks
9d76ecce9514438113ebb7a8e487f225e905c0a8
[ "BSD-3-Clause" ]
null
null
null
toys/gaussians/roofit_example.py
zfit/benchmarks
9d76ecce9514438113ebb7a8e487f225e905c0a8
[ "BSD-3-Clause" ]
null
null
null
toys/gaussians/roofit_example.py
zfit/benchmarks
9d76ecce9514438113ebb7a8e487f225e905c0a8
[ "BSD-3-Clause" ]
null
null
null
from ROOT import RooRealVar, RooGaussian, RooChebychev, RooAddPdf, RooArgList, RooArgSet, RooFit x = RooRealVar("x","x",-1,1) # Use RooGaussian in the generation mean = RooRealVar("mean","mean of gaussian",0,-1,1) sigma = RooRealVar("sigma","sigma of gaussian",0.1,-1,1) sig = RooGaussian("gauss","gaussian PDF",x,mea...
32.571429
96
0.701754
4a19ec9614eb58502c07ed1039d07389b2feccaa
5,434
py
Python
api/views.py
oangervuori/namubufferi
b9353b1d1a32e18e93cb1e9bd2b591950d54269a
[ "MIT" ]
2
2016-12-05T03:31:47.000Z
2017-02-13T20:10:39.000Z
api/views.py
oangervuori/namubufferi
b9353b1d1a32e18e93cb1e9bd2b591950d54269a
[ "MIT" ]
1
2016-12-14T10:53:15.000Z
2016-12-17T18:52:25.000Z
api/views.py
oangervuori/namubufferi
b9353b1d1a32e18e93cb1e9bd2b591950d54269a
[ "MIT" ]
1
2017-01-14T10:56:28.000Z
2017-01-14T10:56:28.000Z
from distutils.util import strtobool from django.contrib.auth import get_user_model from django.contrib.auth.mixins import LoginRequiredMixin from django.core.exceptions import PermissionDenied from django.urls import reverse from django.utils.decorators import method_decorator from django.views.decorators.cache impor...
28.15544
111
0.731321
4a19ed5feccf9119e2bd944e2e98a344f8a5cc8f
7,314
py
Python
aim/ext/notebook/notebook.py
SGevorg/aim-deploy
45bc4321a2d0a4d1016f3ea7ee721f982225bd44
[ "Apache-2.0" ]
null
null
null
aim/ext/notebook/notebook.py
SGevorg/aim-deploy
45bc4321a2d0a4d1016f3ea7ee721f982225bd44
[ "Apache-2.0" ]
null
null
null
aim/ext/notebook/notebook.py
SGevorg/aim-deploy
45bc4321a2d0a4d1016f3ea7ee721f982225bd44
[ "Apache-2.0" ]
null
null
null
import shlex from aim.cli.configs import VERSION_NAME, UP_NAME import aim.cli.manager.manager as manager # Error message prefix for aim commands ERROR_MSG_PREFIX = b'Error:' # returned by get_execution_context _COLAB_EXEC_CONTEXT = "_COLAB_EXEC_CONTEXT" _IPYTHON_EXEC_CONTEXT = "_IPYTHON_EXEC_CONTEXT" _OTHER_EXEC_CON...
32.651786
112
0.654908
4a19ed92547c6b8f2272fae6749819cf8366e20a
2,834
py
Python
baselines/test.py
vykimo/twitter_best_date
557c3a1e084633760ceda11ae340a3d2871d7926
[ "Apache-2.0" ]
1
2019-08-22T03:45:47.000Z
2019-08-22T03:45:47.000Z
baselines/test.py
vykimo/twitter_best_date
557c3a1e084633760ceda11ae340a3d2871d7926
[ "Apache-2.0" ]
null
null
null
baselines/test.py
vykimo/twitter_best_date
557c3a1e084633760ceda11ae340a3d2871d7926
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 import argparse from sklearn.metrics import mean_squared_error from baselines import Baselines import numpy as np def parse_arguments(): parser = argparse.ArgumentParser(description='Test baselines (MSE).') parser.add_argument('-f, --file', dest='file', type=open, help='...
47.233333
352
0.670783
4a19f10b6527ad480f95975efed177238363b8df
3,490
py
Python
indico/core/oauth/util.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
indico/core/oauth/util.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
indico/core/oauth/util.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import hashlib from uuid import UUID from authlib.oauth2.rfc6749 import list_to_scope, scope_to_list from...
39.213483
108
0.726648
4a19f18aa4f11320f26dadcb7e55da9bbab7576a
839
py
Python
workflows/diagnostics/tests/prognostic/test_generate_movie_stills.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
5
2021-03-20T22:42:40.000Z
2021-06-30T18:39:36.000Z
workflows/diagnostics/tests/prognostic/test_generate_movie_stills.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
154
2021-03-17T19:44:29.000Z
2021-09-15T23:02:12.000Z
workflows/diagnostics/tests/prognostic/test_generate_movie_stills.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
1
2021-06-16T22:04:24.000Z
2021-06-16T22:04:24.000Z
import numpy as np import xarray as xr from fv3net.diagnostics.prognostic_run.views.movies import _movie_specs, _non_zero def test__movie_specs(): movie_specs = _movie_specs() for name, spec in movie_specs.items(): func = spec["plotting_function"] variables = spec["required_variables"] ...
36.478261
82
0.671037
4a19f18bf53434cf3c1ce8923b78a031c7f1d898
4,818
py
Python
build/lib/detect_secrets/core/potential_secret.py
nsonaniya2010/detect-secrets
f599e94128add8995280a373566e9b0974724b36
[ "Apache-2.0" ]
1
2021-03-15T15:12:42.000Z
2021-03-15T15:12:42.000Z
build/lib/detect_secrets/core/potential_secret.py
nsonaniya2010/detect-secrets
f599e94128add8995280a373566e9b0974724b36
[ "Apache-2.0" ]
null
null
null
build/lib/detect_secrets/core/potential_secret.py
nsonaniya2010/detect-secrets
f599e94128add8995280a373566e9b0974724b36
[ "Apache-2.0" ]
null
null
null
import hashlib from typing import Any from typing import Dict from typing import Optional from typing import Union from ..util.color import AnsiColor from ..util.color import colorize class PotentialSecret: """This custom data type represents a string found, matching the plugin rules defined in SecretsCollec...
34.661871
99
0.611249
4a19f228ce6a39b9091b5bd219f2685522cfd3fc
4,013
py
Python
ghostvlad/toolkits.py
lylyhan/Speaker-Diarization
8d4cd899c352c18f85c173315b2eaecd1dcb6cc6
[ "Apache-2.0" ]
null
null
null
ghostvlad/toolkits.py
lylyhan/Speaker-Diarization
8d4cd899c352c18f85c173315b2eaecd1dcb6cc6
[ "Apache-2.0" ]
null
null
null
ghostvlad/toolkits.py
lylyhan/Speaker-Diarization
8d4cd899c352c18f85c173315b2eaecd1dcb6cc6
[ "Apache-2.0" ]
1
2022-01-20T12:56:45.000Z
2022-01-20T12:56:45.000Z
import os import numpy as np def initialize_GPU(args): # Initialize GPUs import tensorflow as tf os.environ["CUDA_VISIBLE_DEVICES"] = args.gpu config = tf.compat.v1.ConfigProto() config.gpu_options.allow_growth = True session = tf.compat.v1.Session(config=config) return session def get_chu...
31.108527
105
0.634936
4a19f2439be9a45a54e9cab1b50298271edfab60
6,057
py
Python
pkg/utils/annotation/annotation.py
ispeakc0de/litmus-python
9e3e49002f25598cecd7828aad604b14a6d5ad40
[ "Apache-2.0" ]
null
null
null
pkg/utils/annotation/annotation.py
ispeakc0de/litmus-python
9e3e49002f25598cecd7828aad604b14a6d5ad40
[ "Apache-2.0" ]
null
null
null
pkg/utils/annotation/annotation.py
ispeakc0de/litmus-python
9e3e49002f25598cecd7828aad604b14a6d5ad40
[ "Apache-2.0" ]
null
null
null
import logging # getDeploymentName derive the deployment name belongs to the given target pod # it extract the parent name from the owner references def getDeploymentName(targetPod,chaosDetails, clients): rsOwnerRef = targetPod.metadata.owner_references for own in rsOwnerRef : if own.kind == "ReplicaSet" : try...
40.925676
174
0.768697
4a19f2f37f5f3faee70274b14593e80475d15b02
2,481
py
Python
portfolio/migrations/0015_auto_20170519_1722.py
Arlefreak/api.afk
7e968f6dc3b593ad8f20a4962cb7e3c91bf3ab79
[ "MIT" ]
null
null
null
portfolio/migrations/0015_auto_20170519_1722.py
Arlefreak/api.afk
7e968f6dc3b593ad8f20a4962cb7e3c91bf3ab79
[ "MIT" ]
5
2016-01-21T20:21:42.000Z
2016-01-22T23:00:33.000Z
portfolio/migrations/0015_auto_20170519_1722.py
Arlefreak/ApiArlefreak
7e968f6dc3b593ad8f20a4962cb7e3c91bf3ab79
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2017-05-19 17:22 from __future__ import unicode_literals import adminsortable.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('portfolio', '0014_auto_20170102_...
36.485294
135
0.620717
4a19f32d4360d9b3045304f35302bf7d5890da0b
8,312
py
Python
server/tests/comparison/leopard/impala_docker_env.py
drankye/recordservice
ced33a1565b7ab3a25f6cb7cdcf623a26e7b3ec0
[ "Apache-2.0" ]
null
null
null
server/tests/comparison/leopard/impala_docker_env.py
drankye/recordservice
ced33a1565b7ab3a25f6cb7cdcf623a26e7b3ec0
[ "Apache-2.0" ]
null
null
null
server/tests/comparison/leopard/impala_docker_env.py
drankye/recordservice
ced33a1565b7ab3a25f6cb7cdcf623a26e7b3ec0
[ "Apache-2.0" ]
2
2019-09-22T07:59:28.000Z
2021-02-25T21:56:07.000Z
# Copyright (c) 2015 Cloudera, 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/licenses/LICENSE-2.0 # # Unless required by applicable law o...
39.393365
90
0.659408
4a19f4be3ffae27c69158bf574ac28d7c347091c
26,515
py
Python
Data_Clean_Functions.py
Cian-Byrne/ML_Yacht_Performance
97444b768a5d4335de49ab21890b13412802548e
[ "MIT" ]
null
null
null
Data_Clean_Functions.py
Cian-Byrne/ML_Yacht_Performance
97444b768a5d4335de49ab21890b13412802548e
[ "MIT" ]
null
null
null
Data_Clean_Functions.py
Cian-Byrne/ML_Yacht_Performance
97444b768a5d4335de49ab21890b13412802548e
[ "MIT" ]
null
null
null
""" Funtions to extract relevant data from a dataframe. """ import numpy as np import pandas as pd import math import matplotlib.pyplot as plt from scipy import signal import xlrd as xl from sklearn.preprocessing import MinMaxScaler, StandardScaler, RobustScaler from datetime import datetime from sklearn.metrics impor...
33.185232
149
0.524948
4a19f4ee5563fb4eb092ca0a934ebba752c3ac6e
9,318
py
Python
aruco.py
PavelNajman/ArUcoDetection
e3873ae4ea4fe6e4e62209ae12c75c72848509b7
[ "MIT" ]
null
null
null
aruco.py
PavelNajman/ArUcoDetection
e3873ae4ea4fe6e4e62209ae12c75c72848509b7
[ "MIT" ]
null
null
null
aruco.py
PavelNajman/ArUcoDetection
e3873ae4ea4fe6e4e62209ae12c75c72848509b7
[ "MIT" ]
null
null
null
import io import os import cv2 import sys import time import pickle import argparse import picamera import threading import numpy as np ARUCO_DICT = { "DICT_4X4_50": cv2.aruco.DICT_4X4_50, "DICT_4X4_100": cv2.aruco.DICT_4X4_100, "DICT_4X4_250": cv2.aruco.DICT_4X4_250, "DICT_4X4_1000": cv2.aruco.DICT_4X...
40.337662
163
0.577914
4a19f5631639c62d7790c0df4f4b1afda265acf1
193
py
Python
ding/framework/__init__.py
song2181/DI-engine
0a39b43f6ad9ef9862878de12b50184f4396be42
[ "Apache-2.0" ]
1
2022-03-21T16:15:39.000Z
2022-03-21T16:15:39.000Z
ding/framework/__init__.py
jiaruonan/DI-engine
268d77db3cb54401b2cfc83e2bc3ec87c31e7b83
[ "Apache-2.0" ]
null
null
null
ding/framework/__init__.py
jiaruonan/DI-engine
268d77db3cb54401b2cfc83e2bc3ec87c31e7b83
[ "Apache-2.0" ]
null
null
null
from .context import Context, OnlineRLContext, OfflineRLContext from .task import Task, task from .parallel import Parallel from .event_loop import EventLoop from .supervisor import Supervisor
32.166667
63
0.839378
4a19f629ab402f921e1f117354399920adf70711
2,243
py
Python
python3/koans/about_control_statements.py
BriTFromIT/python_koans
c9269148a55821dbb1541fdd57df8c7a971ee715
[ "MIT" ]
null
null
null
python3/koans/about_control_statements.py
BriTFromIT/python_koans
c9269148a55821dbb1541fdd57df8c7a971ee715
[ "MIT" ]
null
null
null
python3/koans/about_control_statements.py
BriTFromIT/python_koans
c9269148a55821dbb1541fdd57df8c7a971ee715
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutControlStatements(Koan): def test_if_then_else_statements(self): if True: result = 'true value' else: result = 'false value' self.assertEqual('true value', result) def test_if_t...
27.691358
84
0.525189
4a19f640605b548c5145313529b469e9eb099fda
39
py
Python
src/clusto/test/util/__init__.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
216
2015-01-10T17:03:25.000Z
2022-03-24T07:23:41.000Z
src/clusto/test/util/__init__.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
23
2015-01-08T16:51:22.000Z
2021-03-13T12:56:04.000Z
src/clusto/test/util/__init__.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
49
2015-01-08T00:13:17.000Z
2021-09-22T02:01:20.000Z
from utiltests import TestUtil # noqa
19.5
38
0.794872
4a19f64514f39fad1c1fb2d6df373960fad811e0
4,881
py
Python
notebooks/dash-app/utils.py
piushvaish/instagram-growth-strategy
c0740094de376e4c2651c95a1182d408f24a941d
[ "Apache-2.0" ]
null
null
null
notebooks/dash-app/utils.py
piushvaish/instagram-growth-strategy
c0740094de376e4c2651c95a1182d408f24a941d
[ "Apache-2.0" ]
null
null
null
notebooks/dash-app/utils.py
piushvaish/instagram-growth-strategy
c0740094de376e4c2651c95a1182d408f24a941d
[ "Apache-2.0" ]
null
null
null
import pandas as pd import plotly import plotly.graph_objs as go import pickle from sklearn.metrics import roc_auc_score from tabs.tab_3 import choices import json def display_eval_metrics(value): ### Comparison of Possible Models if value==choices[0]: compare_models=pd.read_csv('resources/compare_mod...
32.758389
104
0.541487
4a19f68cec4c682338b36348de47dfdbba452920
1,543
py
Python
2048/cli.py
S8A/2048
f0ed44e717369c1e3b89e989075d0d15b7928dc3
[ "MIT" ]
null
null
null
2048/cli.py
S8A/2048
f0ed44e717369c1e3b89e989075d0d15b7928dc3
[ "MIT" ]
null
null
null
2048/cli.py
S8A/2048
f0ed44e717369c1e3b89e989075d0d15b7928dc3
[ "MIT" ]
null
null
null
import sys from .board import GameBoard def main(size, win): game = GameBoard(size, win) actions = {'l': game.shift_left, 'r': game.shift_right, 'u': game.shift_up, 'd': game.shift_down, 'undo': game.undo, 'exit': None} stop = Fals...
27.070175
78
0.485418
4a19f696db32a9ee0b94900ad3ce8aa92ab383fb
96
py
Python
knightian_model/__init__.py
QBatista/KnightianInnovationModel.py
c61fd98c0a8aa6eb2af913f2a7601f734d611076
[ "BSD-3-Clause" ]
null
null
null
knightian_model/__init__.py
QBatista/KnightianInnovationModel.py
c61fd98c0a8aa6eb2af913f2a7601f734d611076
[ "BSD-3-Clause" ]
null
null
null
knightian_model/__init__.py
QBatista/KnightianInnovationModel.py
c61fd98c0a8aa6eb2af913f2a7601f734d611076
[ "BSD-3-Clause" ]
2
2019-11-30T05:35:05.000Z
2019-12-27T19:50:24.000Z
""" Import the main name to the top level. """ from . import discrete from . import utilities
12
38
0.697917
4a19f6b24572ff3615383a52badc892b3bbba67f
862
py
Python
SilverEngine/SilverEngine/urls.py
sebroad/silver-engine
21fbb774a1ab0e4afc8f87dfea3ffd5dc8afd96d
[ "MIT" ]
null
null
null
SilverEngine/SilverEngine/urls.py
sebroad/silver-engine
21fbb774a1ab0e4afc8f87dfea3ffd5dc8afd96d
[ "MIT" ]
null
null
null
SilverEngine/SilverEngine/urls.py
sebroad/silver-engine
21fbb774a1ab0e4afc8f87dfea3ffd5dc8afd96d
[ "MIT" ]
null
null
null
"""SilverEngine URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Cla...
35.916667
79
0.708817
4a19f954910b3c8d2f6bc7c09e06914d29f37c2e
3,712
py
Python
floodsystem/datafetcher.py
LimaBravoVictor/Part1A-_Flood_Warning_System
7d6936856cc24d4d02c5e84422914be1b49e5470
[ "MIT" ]
null
null
null
floodsystem/datafetcher.py
LimaBravoVictor/Part1A-_Flood_Warning_System
7d6936856cc24d4d02c5e84422914be1b49e5470
[ "MIT" ]
2
2022-01-24T00:02:43.000Z
2022-01-24T14:19:51.000Z
floodsystem/datafetcher.py
LimaBravoVictor/Part1A-_Flood_Warning_System
7d6936856cc24d4d02c5e84422914be1b49e5470
[ "MIT" ]
null
null
null
# Copyright (C) 2018 Garth N. Wells # # SPDX-License-Identifier: MIT """This module provides functionality for retrieving real-time and latest time history level data """ import datetime import json import os import dateutil.parser import requests def fetch(url): """Fetch data from url and return fetched JSON ...
26.326241
136
0.646552
4a19fa83c5d4b217c38e8405bc2db320fd0524a7
12,216
py
Python
main.py
Ritik721/Lung_Cancer_detection-using-CNN-
8277a87c86d92b649ffe4987fc12e1e8df19f60f
[ "Unlicense" ]
null
null
null
main.py
Ritik721/Lung_Cancer_detection-using-CNN-
8277a87c86d92b649ffe4987fc12e1e8df19f60f
[ "Unlicense" ]
null
null
null
main.py
Ritik721/Lung_Cancer_detection-using-CNN-
8277a87c86d92b649ffe4987fc12e1e8df19f60f
[ "Unlicense" ]
null
null
null
# Handling data import dicom # for reading dicom files import os # for doing directory operations import pandas as pd # for some simple data analysis (right now, just to load in the labels data and quickly reference it) # Change this to wherever you are storing your data: data_dir = '../input/scan_data/' p...
34.411268
129
0.613703
4a19faa46859274e6b9a0d75524aa24fdcebf20c
4,005
py
Python
src/kvt/models/necks/softpool.py
Ynakatsuka/nishika-22
72994cab16486b3a26686642ad72a29b6761b46d
[ "BSD-2-Clause" ]
4
2022-02-01T05:04:53.000Z
2022-02-02T04:16:31.000Z
src/kvt/models/necks/softpool.py
Ynakatsuka/nishika-22
72994cab16486b3a26686642ad72a29b6761b46d
[ "BSD-2-Clause" ]
null
null
null
src/kvt/models/necks/softpool.py
Ynakatsuka/nishika-22
72994cab16486b3a26686642ad72a29b6761b46d
[ "BSD-2-Clause" ]
null
null
null
""" https://github.com/wangyida/softpool/blob/master/pytorch/softpool.py """ import torch import torch.nn as nn import torch.nn.parallel import torch.utils.data # Produce a set of pointnet features in several sorted cloud def train2cabins(windows, num_cabin=8): size_bth = list(windows.shape)[0] size_feat = li...
32.560976
77
0.573533
4a19fadbc54d394e7d0ed47eedbd6258408d1063
3,015
py
Python
jsonit/tests.py
crrobinson14/django-jsonit
3c4b10c844b4e45759bac28a5a6dd201f60c6c1d
[ "BSD-3-Clause" ]
3
2015-01-22T19:02:55.000Z
2015-11-08T16:10:08.000Z
jsonit/tests.py
crrobinson14/django-jsonit
3c4b10c844b4e45759bac28a5a6dd201f60c6c1d
[ "BSD-3-Clause" ]
1
2015-06-06T11:49:32.000Z
2015-06-06T11:49:32.000Z
jsonit/tests.py
crrobinson14/django-jsonit
3c4b10c844b4e45759bac28a5a6dd201f60c6c1d
[ "BSD-3-Clause" ]
1
2020-05-12T16:41:54.000Z
2020-05-12T16:41:54.000Z
import datetime import json from unittest import TestCase from django.contrib import messages from django.contrib.messages.constants import DEFAULT_TAGS from django.contrib.messages.storage import base as messages_base from django.contrib.messages.storage.session import SessionStorage from django.http import HttpReque...
31.40625
75
0.619569
4a19fc245c45fec1259814cbd900e85faeb2ea10
9,978
py
Python
code/base/batch.py
KirillDogadin-std/Lab-Semantic
d04e592cd540dd5dcd537cd7df7ee6619af3d67f
[ "MIT" ]
null
null
null
code/base/batch.py
KirillDogadin-std/Lab-Semantic
d04e592cd540dd5dcd537cd7df7ee6619af3d67f
[ "MIT" ]
11
2020-11-30T14:28:20.000Z
2021-01-13T19:55:44.000Z
code/base/batch.py
KirillDogadin-std/Lab-Semantic
d04e592cd540dd5dcd537cd7df7ee6619af3d67f
[ "MIT" ]
1
2021-03-23T07:22:03.000Z
2021-03-23T07:22:03.000Z
import gc import random import numpy as np import multiprocessing from utils import task_divide, merge_dic def generate_pos_batch_queue(triple_list1, triple_list2, batch_size, steps, out_queue): for step in steps: out_queue.put(generate_pos_batch(triple_list1, triple_list2, batch_size, step)) exit(0)...
46.84507
118
0.635799
4a19fc384cc0b741f7a5d38bd18fc7fee69c9747
10,866
py
Python
uvicorn/protocols/websockets/websockets_impl.py
mkiesel/uvicorn
efdbe7a4a6c94f34c35d751fb63391136b4e90e4
[ "BSD-3-Clause" ]
1
2022-02-09T19:14:57.000Z
2022-02-09T19:14:57.000Z
uvicorn/protocols/websockets/websockets_impl.py
mkiesel/uvicorn
efdbe7a4a6c94f34c35d751fb63391136b4e90e4
[ "BSD-3-Clause" ]
null
null
null
uvicorn/protocols/websockets/websockets_impl.py
mkiesel/uvicorn
efdbe7a4a6c94f34c35d751fb63391136b4e90e4
[ "BSD-3-Clause" ]
null
null
null
import asyncio import http import logging from typing import Callable from urllib.parse import unquote import websockets from websockets.extensions.permessage_deflate import ServerPerMessageDeflateFactory from uvicorn.logging import TRACE_LOG_LEVEL from uvicorn.protocols.utils import get_local_addr, get_remote_addr, ...
35.743421
86
0.583655
4a19fcdab3c833dedbf14b6a37a96dbeaad0ad52
3,462
py
Python
test_broker.py
Rspangler89/Kwic-Trader
f47ebcd392e9b6cff2db2522508e00e84640a492
[ "MIT" ]
1
2021-07-15T23:03:37.000Z
2021-07-15T23:03:37.000Z
test_broker.py
Rspangler89/Kwic-Trader
f47ebcd392e9b6cff2db2522508e00e84640a492
[ "MIT" ]
null
null
null
test_broker.py
Rspangler89/Kwic-Trader
f47ebcd392e9b6cff2db2522508e00e84640a492
[ "MIT" ]
1
2021-11-16T15:14:29.000Z
2021-11-16T15:14:29.000Z
""" Kwic Trader trading system Created by: Robert (Alex) Spangler Plant City, FL, USA Spring of 2021 """ """ TODO: write more unit tests if neccessary """ """ Tests for the portfolioDayChange() method To set up pytest in pycharm follow the directions below: 1.) Go to File>Settings. 2.) Click on the dropdown menu ...
27.259843
110
0.73628
4a19fd2b2985d4d9656278c2e7d1ba36e8276eed
9,621
py
Python
train_crf.py
bubblemans/Gun-Violence-Information-Retrieval-Using-BERT-as-Sequence-Tagging-Task
a8a199760c531286ae79fd9de541387a6c9fd5a7
[ "MIT" ]
null
null
null
train_crf.py
bubblemans/Gun-Violence-Information-Retrieval-Using-BERT-as-Sequence-Tagging-Task
a8a199760c531286ae79fd9de541387a6c9fd5a7
[ "MIT" ]
null
null
null
train_crf.py
bubblemans/Gun-Violence-Information-Retrieval-Using-BERT-as-Sequence-Tagging-Task
a8a199760c531286ae79fd9de541387a6c9fd5a7
[ "MIT" ]
null
null
null
import argparse import math import logging import pandas as pd import tqdm import torch import torch.nn as nn from torch.utils.data import DataLoader from models import BERT_CRF_Linear, BERT_CRF_LSTM, BERT_CRF_BiLSTM from dataset import GunViolenceDataset from utils import * logging.basicConfig(format='%(asctime)s...
35.899254
150
0.566989
4a19fe1ff06dcc6437a03413d480b7f6b1fab9f9
3,576
py
Python
gary/potential/tests/test_composite.py
adrn/gary-old
065b371534baa03deeb860893640068d90ba5881
[ "MIT" ]
null
null
null
gary/potential/tests/test_composite.py
adrn/gary-old
065b371534baa03deeb860893640068d90ba5881
[ "MIT" ]
null
null
null
gary/potential/tests/test_composite.py
adrn/gary-old
065b371534baa03deeb860893640068d90ba5881
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import, unicode_literals, division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Third party import astropy.units as u import pytest import numpy as np # This project from ...integrate import LeapfrogIntegrator, DOPRI853Integrator from ..core import ...
34.057143
93
0.622483
4a19fe9052a7d8d355965b1e7654a665ae5d2036
18,757
py
Python
django/db/models/fields/files.py
fizista/django
16f3a6a4c7bab11644d11c2be029374e5095cb56
[ "BSD-3-Clause" ]
1
2019-02-10T19:33:27.000Z
2019-02-10T19:33:27.000Z
django/db/models/fields/files.py
fizista/django
16f3a6a4c7bab11644d11c2be029374e5095cb56
[ "BSD-3-Clause" ]
null
null
null
django/db/models/fields/files.py
fizista/django
16f3a6a4c7bab11644d11c2be029374e5095cb56
[ "BSD-3-Clause" ]
null
null
null
import datetime import os from django import forms from django.db.models.fields import Field from django.core import checks from django.core.exceptions import ImproperlyConfigured from django.core.files.base import File from django.core.files.storage import default_storage from django.core.files.images import ImageFil...
38.914938
104
0.643493
4a19fea2096b17cceccb873570ccb19193a37568
57
py
Python
quickstats/forms.py
kfdm/django-simplestats
f3aa26329af56cbb910d86d450ea129a54b271ef
[ "MIT" ]
1
2019-06-07T04:55:55.000Z
2019-06-07T04:55:55.000Z
quickstats/forms.py
kfdm/django-simplestats
f3aa26329af56cbb910d86d450ea129a54b271ef
[ "MIT" ]
31
2016-02-02T22:19:09.000Z
2018-05-08T09:52:54.000Z
quickstats/forms.py
kfdm/django-simplestats
f3aa26329af56cbb910d86d450ea129a54b271ef
[ "MIT" ]
null
null
null
from . import models from django.forms import ModelForm
14.25
34
0.807018
4a19ffa0c992068c6b460091a13358f1b83e072a
47,339
py
Python
tests/plugins_test.py
jshwi/pyaud
c3268e56b483661fb8baa6da8c4c96420f0f74b3
[ "MIT" ]
2
2021-02-03T01:18:17.000Z
2021-06-28T07:24:29.000Z
tests/plugins_test.py
jshwi/pyaud
c3268e56b483661fb8baa6da8c4c96420f0f74b3
[ "MIT" ]
31
2021-11-11T15:27:14.000Z
2022-03-18T14:44:51.000Z
tests/plugins_test.py
jshwi/pyaud
c3268e56b483661fb8baa6da8c4c96420f0f74b3
[ "MIT" ]
null
null
null
""" tests.plugins_test ================== """ # pylint: disable=too-many-lines,too-many-arguments,cell-var-from-loop # pylint: disable=too-few-public-methods,unused-variable import datetime import os import random from pathlib import Path from typing import Any, List, Tuple import pytest import pyaud import pyaud_plu...
34.081353
79
0.612286
4a19ffab6b4ba2c749beaee3b9fa91f83ca6c0ab
4,062
py
Python
webapp/graphite/events/views.py
romanek-adam/graphite-web
f6d7d16551a6953a5d0a1c19978efbf93fd3f869
[ "Apache-2.0" ]
4,281
2015-01-01T12:35:03.000Z
2022-03-31T20:06:59.000Z
webapp/graphite/events/views.py
romanek-adam/graphite-web
f6d7d16551a6953a5d0a1c19978efbf93fd3f869
[ "Apache-2.0" ]
1,809
2015-01-01T21:16:36.000Z
2022-03-31T21:25:13.000Z
webapp/graphite/events/views.py
romanek-adam/graphite-web
f6d7d16551a6953a5d0a1c19978efbf93fd3f869
[ "Apache-2.0" ]
970
2015-01-02T19:49:21.000Z
2022-03-27T09:48:44.000Z
import datetime import six try: from django.contrib.sites.requests import RequestSite except ImportError: # Django < 1.9 from django.contrib.sites.models import RequestSite from django.core.exceptions import ObjectDoesNotExist from django.core.serializers.json import DjangoJSONEncoder from django.forms.model...
30.772727
95
0.630478
4a19ffbd4d153f88e549d717fa71cd8634a3e289
196,708
py
Python
scipy/stats/tests/test_distributions.py
alazarchuk/scipy
7124fc982ea9b0ea961c65db550c0703abcb9bfd
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/tests/test_distributions.py
alazarchuk/scipy
7124fc982ea9b0ea961c65db550c0703abcb9bfd
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/tests/test_distributions.py
alazarchuk/scipy
7124fc982ea9b0ea961c65db550c0703abcb9bfd
[ "BSD-3-Clause" ]
null
null
null
""" Test functions for stats module """ import warnings import re import sys import pickle import os from numpy.testing import (assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_allclose, assert_, assert_warns, ...
39.357343
79
0.570109
4a1a009e7eb7d13e012fabdb2c91ed36ee9439a4
1,896
py
Python
Assignment 1/grid_search_opencl.py
Panyw97/LargeScaleComputing_S20
b3da9750d48fe1917f62f99dbbecd31766e89d1a
[ "MIT" ]
null
null
null
Assignment 1/grid_search_opencl.py
Panyw97/LargeScaleComputing_S20
b3da9750d48fe1917f62f99dbbecd31766e89d1a
[ "MIT" ]
null
null
null
Assignment 1/grid_search_opencl.py
Panyw97/LargeScaleComputing_S20
b3da9750d48fe1917f62f99dbbecd31766e89d1a
[ "MIT" ]
null
null
null
import numpy as np import pyopencl as cl import time import pyopencl.clrandom as clrand import pyopencl.array as cl_array def grid_search(n_runs): # Set up OpenCL context and command queue ctx = cl.create_some_context() queue = cl.CommandQueue(ctx) t0 = time.time() T = int(4160) #...
30.580645
111
0.547996
4a1a010b41acc48d6f633fc193f8bb93526ef561
1,117
py
Python
dongtai/models/project_report.py
Maskhe/dongtai-core
1521e1377e997b262a7fe678d64e49fd5065110c
[ "Apache-2.0" ]
5
2021-09-06T09:30:38.000Z
2022-03-22T02:11:49.000Z
dongtai/models/project_report.py
Maskhe/dongtai-core
1521e1377e997b262a7fe678d64e49fd5065110c
[ "Apache-2.0" ]
4
2021-11-29T08:35:27.000Z
2021-12-18T06:08:31.000Z
dongtai/models/project_report.py
Maskhe/dongtai-core
1521e1377e997b262a7fe678d64e49fd5065110c
[ "Apache-2.0" ]
13
2021-09-01T07:24:29.000Z
2022-03-18T08:12:50.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # author:luzhongyang # datetime:2021/10/29 下午5:29 # software: PyCharm # project: dongtai-models from django.db import models from django.utils.translation import gettext_lazy as _ from dongtai.models import User from dongtai.models.project import IastProject from dongtai.mo...
37.233333
86
0.749329
4a1a011aef0e7aa99d8a01a6688c7c20fa7b2ae9
5,400
py
Python
hashkernel/files/ignore_file.py
hashstore/hashkernel
4a0116b1872047626e87c5c350ffd65e311e618f
[ "Apache-2.0" ]
null
null
null
hashkernel/files/ignore_file.py
hashstore/hashkernel
4a0116b1872047626e87c5c350ffd65e311e618f
[ "Apache-2.0" ]
null
null
null
hashkernel/files/ignore_file.py
hashstore/hashkernel
4a0116b1872047626e87c5c350ffd65e311e618f
[ "Apache-2.0" ]
null
null
null
import codecs import fnmatch import logging import os from collections import defaultdict from functools import total_ordering from pathlib import Path from typing import List, Sequence, Union from hashkernel import reraise_with_msg from hashkernel.files import aio_read_text, ensure_path, read_text log = logging.getL...
27.135678
80
0.575926
4a1a02c90ee3cd5374fd3272e20d186ae785c618
1,844
py
Python
setup.py
bjmarfito/autoRIFT
1d54a2cca349a6f2386121a8f5466b5b0eb10e1f
[ "Apache-2.0" ]
70
2021-08-29T17:32:12.000Z
2022-03-13T02:09:31.000Z
setup.py
bjmarfito/autoRIFT
1d54a2cca349a6f2386121a8f5466b5b0eb10e1f
[ "Apache-2.0" ]
19
2021-10-04T18:53:03.000Z
2022-03-29T07:20:46.000Z
setup.py
bjmarfito/autoRIFT
1d54a2cca349a6f2386121a8f5466b5b0eb10e1f
[ "Apache-2.0" ]
18
2019-09-07T13:13:06.000Z
2021-08-07T07:46:41.000Z
#!/usr/bin/env python3 import numpy as np import os from distutils.core import setup from distutils.extension import Extension ##Figure out opencv paths try: import cv2 except: raise Exception('OpenCV does not appear to be installed. Install before proceeding ... ') ##Figure out paths for headers and libr...
31.254237
122
0.623644
4a1a02dc8d855b2e33e30ea744cd92868d9a6ed3
1,525
py
Python
plotly/validators/surface/contours/x/_project.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/surface/contours/x/_project.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/surface/contours/x/_project.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class ProjectValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name='project', parent_name='surface.contours.x', **kwargs ): super(ProjectValidator, self).__init__( plotly_name=plotly_n...
38.125
71
0.56459
4a1a0621db3aeafecac8827de08efb34cc3c9de3
2,246
py
Python
src/reqompyler/reqompyler.py
zurutech/reqompyler
433e92b1771bf049e0ce7d338def83250ed1acf3
[ "Apache-2.0" ]
4
2020-02-13T12:01:39.000Z
2020-03-18T16:41:14.000Z
src/reqompyler/reqompyler.py
zurutech/reqompyler
433e92b1771bf049e0ce7d338def83250ed1acf3
[ "Apache-2.0" ]
87
2020-02-20T11:19:38.000Z
2021-07-13T00:47:27.000Z
src/reqompyler/reqompyler.py
zurutech/reqompyler
433e92b1771bf049e0ce7d338def83250ed1acf3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2020 Zuru Tech HK Limited. 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 # # Un...
35.09375
97
0.640249
4a1a06278a6c2a2a0734b4041d818c4492d9f498
425
py
Python
file_clean/file_process/gettop1000.py
majiashu/data-processing
772dc341657c416cef7046473ed3030efa200e33
[ "MIT" ]
1
2020-07-31T15:13:02.000Z
2020-07-31T15:13:02.000Z
file_clean/file_process/gettop1000.py
majiashu/data-processing
772dc341657c416cef7046473ed3030efa200e33
[ "MIT" ]
null
null
null
file_clean/file_process/gettop1000.py
majiashu/data-processing
772dc341657c416cef7046473ed3030efa200e33
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ gettop1000.py Created on 2018/9/13 16:28 @author: 马家树(majstx@163.com) """ import openpyxl import time import pandas as pd start = time.time() # wb = openpyxl.load_workbook('C:/Users/meridian/Desktop/九江市第一人民医院/九江市第一人民医院_原始.xlsx') data = pd.read_excel('C:/Users/meridian/Desktop/九江市第一人民医院/...
21.25
91
0.72
4a1a0664f6ef3849d44a336155fc094ca9f20431
5,540
py
Python
RoboticsLanguage/Base/Tools/ErrorHandling.py
robotcaresystems/roboticslanguage
3bb7a2bf64ab8e9068889713fbeb18a45cd5a3ed
[ "Apache-2.0" ]
64
2018-05-15T14:36:44.000Z
2022-03-09T05:00:31.000Z
RoboticsLanguage/Base/Tools/ErrorHandling.py
robotcaresystems/roboticslanguage
3bb7a2bf64ab8e9068889713fbeb18a45cd5a3ed
[ "Apache-2.0" ]
9
2018-04-17T21:12:27.000Z
2019-11-08T20:53:32.000Z
RoboticsLanguage/Base/Tools/ErrorHandling.py
robotcaresystems/roboticslanguage
3bb7a2bf64ab8e9068889713fbeb18a45cd5a3ed
[ "Apache-2.0" ]
10
2018-03-27T12:09:12.000Z
2021-02-16T08:07:26.000Z
# # This is the Robotics Language compiler # # ErrorHandling.py: Implements Error Handling functions # # Created on: June 22, 2017 # Author: Gabriel A. D. Lopes # Licence: Apache 2.0 # Copyright: 2014-2017 Robot Care Systems BV, The Hague, The Netherlands. All rights reserved. # # Licensed under t...
32.023121
118
0.695668
4a1a067bf63d2e2ffe937c0201866ac723fc10d5
334
py
Python
algorithms/1441. Build an Array With Stack Operations.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
1
2020-12-02T13:54:30.000Z
2020-12-02T13:54:30.000Z
algorithms/1441. Build an Array With Stack Operations.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
algorithms/1441. Build an Array With Stack Operations.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
class Solution: def buildArray(self, target: List[int], n: int) -> List[str]: j, ans = 0, [] for i in range(1, n+1): if j >= len(target): break else: if target[j] == i: ans.append('Push') j += 1 elif target[j] > i: ans.extend(['Push', 'Pop']) ...
23.857143
63
0.467066
4a1a086cf15b3615fd9c0a87ec54498096f104a5
789
py
Python
attacks/multi_keys/same_n_huge_e.py
cyborgflashtime/RsaCtfTool
de39fe22d2fc3615a60373d1b9a5b4201ed0452c
[ "Beerware" ]
2
2020-11-22T19:03:01.000Z
2021-03-17T11:32:06.000Z
attacks/multi_keys/same_n_huge_e.py
OlcaytoKorcan/RsaCtfTool
13c74d8a8707d76c0dc646b8760619ee8700f7ee
[ "Beerware" ]
null
null
null
attacks/multi_keys/same_n_huge_e.py
OlcaytoKorcan/RsaCtfTool
13c74d8a8707d76c0dc646b8760619ee8700f7ee
[ "Beerware" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import logging import tempfile from Crypto.PublicKey import RSA from lib.keys_wrapper import PublicKey def attack(attack_rsa_obj, publickey, cipher=[]): """ Same n huge e attack """ if not isinstance(publickey, list): return (None, None) if len(...
29.222222
87
0.619772
4a1a08b8c8fcb7697bb412fec29020f1bb739dc7
909
py
Python
examples/makecircles/make_circles_distmean.py
jaspreet321/kepler-mapper
a145a31665806713819fe08623275b04d973274a
[ "MIT" ]
null
null
null
examples/makecircles/make_circles_distmean.py
jaspreet321/kepler-mapper
a145a31665806713819fe08623275b04d973274a
[ "MIT" ]
null
null
null
examples/makecircles/make_circles_distmean.py
jaspreet321/kepler-mapper
a145a31665806713819fe08623275b04d973274a
[ "MIT" ]
null
null
null
import kmapper as km # Make very noisy circles import sklearn from sklearn import datasets data, labels = datasets.make_circles(n_samples=5000, noise=0.05, factor=0.3) # Initialize mapper = km.KeplerMapper(verbose=2) # Fit to and transform the data projected_data = mapper.fit_transform(data, projection="dist_mean") ...
37.875
104
0.69637
4a1a095c9f74c4ac6d840b887babcacea7ced928
1,883
py
Python
convolutional_attention/visualization/attfeature_viz.py
s1530129650/convolutional-attention
8839da8146962879bb419a61253e7cf1b684fb22
[ "BSD-3-Clause" ]
128
2016-05-10T01:38:27.000Z
2022-02-04T07:14:12.000Z
convolutional_attention/visualization/attfeature_viz.py
s1530129650/convolutional-attention
8839da8146962879bb419a61253e7cf1b684fb22
[ "BSD-3-Clause" ]
6
2016-07-19T09:27:47.000Z
2021-07-08T21:22:32.000Z
convolutional_attention/visualization/attfeature_viz.py
s1530129650/convolutional-attention
8839da8146962879bb419a61253e7cf1b684fb22
[ "BSD-3-Clause" ]
36
2016-05-11T08:57:26.000Z
2021-07-07T02:37:07.000Z
import cPickle import numpy as np from scipy.spatial.distance import pdist, squareform import sys if __name__ == "__main__": if len(sys.argv) !=2: print "Usage <inputPkl>" sys.exit(-1) with open(sys.argv[1], 'rb') as f: code_att_feats = cPickle.load(f) # Construct matrix feat_...
38.428571
124
0.60223
4a1a0967b80365e27ba3f73a403b17358f266ca2
9,170
py
Python
utils.py
abeja-inc/platform-template-image-segmentation
ce04da51931d7a50cf245a5d8ae8bb6dc3f65236
[ "MIT" ]
null
null
null
utils.py
abeja-inc/platform-template-image-segmentation
ce04da51931d7a50cf245a5d8ae8bb6dc3f65236
[ "MIT" ]
14
2019-09-09T08:26:31.000Z
2019-12-09T07:18:26.000Z
utils.py
abeja-inc/platform-template-image-segmentation
ce04da51931d7a50cf245a5d8ae8bb6dc3f65236
[ "MIT" ]
null
null
null
from __future__ import print_function from collections import defaultdict, deque import datetime import random import time import torch import torch.distributed as dist from PIL import Image import numpy as np import errno import os class SmoothedValue(object): """Track a series of values and provide access to s...
29.018987
94
0.561396
4a1a0a785a58fed2e40b031de48c30f551554d7e
6,073
py
Python
tests/test_optimization.py
MarcelGM/transformers
aad1d9b6d5c58fd974618ac0aead1c5bd1119467
[ "Apache-2.0" ]
309
2020-02-07T23:09:27.000Z
2022-03-31T08:01:53.000Z
tests/test_optimization.py
MarcelGM/transformers
aad1d9b6d5c58fd974618ac0aead1c5bd1119467
[ "Apache-2.0" ]
93
2020-02-22T05:56:28.000Z
2022-03-27T08:43:38.000Z
tests/test_optimization.py
MarcelGM/transformers
aad1d9b6d5c58fd974618ac0aead1c5bd1119467
[ "Apache-2.0" ]
148
2020-02-14T22:16:11.000Z
2022-03-22T17:08:04.000Z
# coding=utf-8 # Copyright 2020 The HuggingFace Team. 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...
36.584337
101
0.602174
4a1a0aceaf345d9f91658422f4ce9864fa2bfd70
34,812
py
Python
lithops/executors.py
Cohen-J-Omer/lithops
12bf3babbce6e9eb70a5e16cdd40093552a2ecfc
[ "Apache-2.0" ]
null
null
null
lithops/executors.py
Cohen-J-Omer/lithops
12bf3babbce6e9eb70a5e16cdd40093552a2ecfc
[ "Apache-2.0" ]
1
2021-09-21T01:16:43.000Z
2021-09-21T01:16:43.000Z
lithops/executors.py
LaudateCorpus1/lithops
f03f45eb2795b31c2299b6873797add3e97ddf41
[ "Apache-2.0" ]
1
2021-05-25T07:28:05.000Z
2021-05-25T07:28:05.000Z
# # (C) Copyright IBM Corp. 2020 # (C) Copyright Cloudlab URV 2020 # # 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 ap...
46.231076
228
0.61249
4a1a0c06544cb46960ff25a38e02bed778081b1f
1,923
py
Python
io_util.py
rneher/nextstain_base
f3c3478cd476a94d656a9bde7a27bfc42884491e
[ "MIT" ]
2
2016-07-15T19:22:08.000Z
2020-03-25T06:59:54.000Z
io_util.py
rneher/nextstain_base
f3c3478cd476a94d656a9bde7a27bfc42884491e
[ "MIT" ]
null
null
null
io_util.py
rneher/nextstain_base
f3c3478cd476a94d656a9bde7a27bfc42884491e
[ "MIT" ]
3
2016-04-22T20:28:36.000Z
2020-03-25T06:59:55.000Z
from __future__ import division, print_function def myopen(fname, mode='r'): if fname[-2:] == 'gz': from gzip import open as gopen return gopen(fname, mode) else: return open(fname, mode) def make_dir(dname): import os if not os.path.isdir(dname): try: os.ma...
29.584615
85
0.582423
4a1a0c191158248c4c44739dcbf3769656117742
6,485
py
Python
src/saml2/ecp.py
richtera/pysaml2
cd446e3d08f8adb0b3541442c3f7a32c16c8385f
[ "BSD-2-Clause" ]
null
null
null
src/saml2/ecp.py
richtera/pysaml2
cd446e3d08f8adb0b3541442c3f7a32c16c8385f
[ "BSD-2-Clause" ]
null
null
null
src/saml2/ecp.py
richtera/pysaml2
cd446e3d08f8adb0b3541442c3f7a32c16c8385f
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010-2011 Umeå University # # 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...
31.328502
80
0.588435
4a1a0d1547f927d206336139f5efc46b3b346359
5,184
py
Python
wx_jump_py3.py
williamfzc/wx_jump
499800c00ff8fd4dbc02cb0e2948703d03f85d62
[ "MIT" ]
70
2017-12-30T12:13:18.000Z
2020-01-16T07:41:33.000Z
wx_jump_py3.py
williamfzc/wx_jump
499800c00ff8fd4dbc02cb0e2948703d03f85d62
[ "MIT" ]
3
2017-12-31T02:16:51.000Z
2018-01-16T08:58:57.000Z
wx_jump_py3.py
williamfzc/wx_jump
499800c00ff8fd4dbc02cb0e2948703d03f85d62
[ "MIT" ]
26
2017-12-30T14:45:45.000Z
2022-03-07T11:21:36.000Z
from PIL import Image, ImageFilter, ImageDraw import os import numpy as np import time import random # 该数值为1080x1920上的,可能需要微调 # 调整方法: # 先把下方的DEVICE_SCREEN参数改成你手机的分辨率 # 用adb命令 ‘adb shell input swipe 580 1600 580 1600 XXX’ 尝试跳第一个点,记录准确的XXX # DISTANCE_ARG 为 XXX 除以 跳第一个点算出来的距离 # 例如,我运行第一遍算出来的distance为562.5,记录到的XXX为720 # 那...
29.454545
109
0.5951
4a1a0d33593aaa096566f54f51a4995ff0c2ec70
24,182
py
Python
python/taichi/lang/__init__.py
zhiyaluo/taichi
3c48f4f3ba43737761a5492c4aba298abff9f0dc
[ "MIT" ]
null
null
null
python/taichi/lang/__init__.py
zhiyaluo/taichi
3c48f4f3ba43737761a5492c4aba298abff9f0dc
[ "MIT" ]
null
null
null
python/taichi/lang/__init__.py
zhiyaluo/taichi
3c48f4f3ba43737761a5492c4aba298abff9f0dc
[ "MIT" ]
null
null
null
from .impl import * from .util import deprecated from .matrix import Matrix, Vector from .transformer import TaichiSyntaxError from .ndrange import ndrange, GroupedNDRange from copy import deepcopy as _deepcopy import functools import os core = taichi_lang_core runtime = get_runtime() i = indices(0) j = indices(1) k...
30.532828
124
0.592465
4a1a0d72d4350b7d5615dd47e5cfb3d8c081b388
15,801
py
Python
tests/storage/test_mongo_adapter.py
macdaliot/ChatterBot
8eaab0865158aeb81a2deb4ca9d48d4ae8b483a3
[ "BSD-3-Clause" ]
1
2020-08-13T02:46:51.000Z
2020-08-13T02:46:51.000Z
tests/storage/test_mongo_adapter.py
macdaliot/ChatterBot
8eaab0865158aeb81a2deb4ca9d48d4ae8b483a3
[ "BSD-3-Clause" ]
null
null
null
tests/storage/test_mongo_adapter.py
macdaliot/ChatterBot
8eaab0865158aeb81a2deb4ca9d48d4ae8b483a3
[ "BSD-3-Clause" ]
1
2019-04-20T09:54:28.000Z
2019-04-20T09:54:28.000Z
from unittest import TestCase from chatterbot.storage import MongoDatabaseAdapter from chatterbot.conversation import Statement class MongoAdapterTestCase(TestCase): @classmethod def setUpClass(cls): """ Instantiate the adapter before any tests in the test case run. """ from p...
32.05071
82
0.627049
4a1a0dcd4c3868560e1f17e6aff49dd21d299386
42,290
py
Python
lib/sqlalchemy/sql/operators.py
edelooff/sqlalchemy
97d2a2091ed4caee1e19168d0db39e4d94a6d12f
[ "MIT" ]
null
null
null
lib/sqlalchemy/sql/operators.py
edelooff/sqlalchemy
97d2a2091ed4caee1e19168d0db39e4d94a6d12f
[ "MIT" ]
null
null
null
lib/sqlalchemy/sql/operators.py
edelooff/sqlalchemy
97d2a2091ed4caee1e19168d0db39e4d94a6d12f
[ "MIT" ]
1
2019-08-27T09:47:08.000Z
2019-08-27T09:47:08.000Z
# sql/operators.py # Copyright (C) 2005-2019 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php # This module is part of SQLAlchemy and is released under # the MIT License: http:/...
28.137059
79
0.616458
4a1a0ef30a4704b7be77d56ae5580839aa326a59
3,467
py
Python
formee/formTools/deploy.py
Arpan-206/formee
beffdaf9bcac0cde99e627c3602ee9ee4b01e300
[ "MIT" ]
2
2022-03-28T06:51:28.000Z
2022-03-30T10:15:51.000Z
formee/formTools/deploy.py
Arpan-206/formee
beffdaf9bcac0cde99e627c3602ee9ee4b01e300
[ "MIT" ]
1
2022-03-31T04:18:10.000Z
2022-03-31T04:21:13.000Z
formee/formTools/deploy.py
Arpan-206/formee
beffdaf9bcac0cde99e627c3602ee9ee4b01e300
[ "MIT" ]
1
2022-03-29T17:01:08.000Z
2022-03-29T17:01:08.000Z
from typing import Any from formee.auth.user_jwt import get_user_jwt from formee.formTools.read import read_form from gql import Client, gql from gql.transport.aiohttp import AIOHTTPTransport from rich import print transport = AIOHTTPTransport(url="https://hrbt-portal.hasura.app/v1/graphql", ...
28.652893
114
0.616095
4a1a0efe9e639741906be01ecaeeb0a61ddee500
1,727
py
Python
seqpos/lib/python2.7/site-packages/mercurial/pushkey.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
mercurial/pushkey.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
mercurial/pushkey.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# pushkey.py - dispatching for pushing and pulling keys # # Copyright 2010 Matt Mackall <mpm@selenic.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from __future__ import absolute_import from . import ( bookmarks, e...
27.854839
79
0.649102
4a1a0f2d4f7edb467a22d112a1bea3040637e00c
353
py
Python
tool_requirements.py
satnam6502/opentitan
17fa1c5c51fbc554562d5e9db750610dac75909f
[ "Apache-2.0" ]
1
2022-03-17T23:30:49.000Z
2022-03-17T23:30:49.000Z
tool_requirements.py
mmicko/opentitan
0394fabc87ae7a9f361c00ce4954c67499d4bf32
[ "Apache-2.0" ]
null
null
null
tool_requirements.py
mmicko/opentitan
0394fabc87ae7a9f361c00ce4954c67499d4bf32
[ "Apache-2.0" ]
1
2021-03-17T04:14:07.000Z
2021-03-17T04:14:07.000Z
# Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 # Version requirements for various tools. Checked by tooling (e.g. fusesoc), # and inserted into the documentation. __TOOL_REQUIREMENTS__ = { 'verilator': '4.028', ...
32.090909
76
0.733711
4a1a0faab38dcdbfb49ee7a2fb6d270e6311e08b
1,801
py
Python
src/data_preprocess.py
Oviyashri/Mushroom_Classification_pr
bc03cbb0351ef56e8fc903444c263ec248aefb95
[ "MIT" ]
null
null
null
src/data_preprocess.py
Oviyashri/Mushroom_Classification_pr
bc03cbb0351ef56e8fc903444c263ec248aefb95
[ "MIT" ]
null
null
null
src/data_preprocess.py
Oviyashri/Mushroom_Classification_pr
bc03cbb0351ef56e8fc903444c263ec248aefb95
[ "MIT" ]
null
null
null
import pandas as pd from re import split import argparse import yaml from sklearn.preprocessing import LabelEncoder from logger import App_Logger file_object=open("Training_Logs/Loggings.txt", 'a+') logger_object=App_Logger() def read_params(config_path): with open(config_path) as yaml_file: config = yaml...
37.520833
99
0.727929
4a1a10a324fd582de4b23efc4934a861877c06ce
4,194
py
Python
freelancefinder/jobs/admin.py
ScorpionResponse/freelancefinder
7882aa8ed42afe689e594a3e10c9fc6369f70bf5
[ "BSD-3-Clause" ]
2
2017-03-18T04:28:58.000Z
2017-04-25T10:01:28.000Z
freelancefinder/jobs/admin.py
ScorpionResponse/freelancefinder
7882aa8ed42afe689e594a3e10c9fc6369f70bf5
[ "BSD-3-Clause" ]
20
2017-03-18T04:29:33.000Z
2017-06-13T22:37:42.000Z
freelancefinder/jobs/admin.py
ScorpionResponse/freelancefinder
7882aa8ed42afe689e594a3e10c9fc6369f70bf5
[ "BSD-3-Clause" ]
1
2019-01-14T19:02:06.000Z
2019-01-14T19:02:06.000Z
"""Admin site configuration for the jobs app.""" import logging from django.contrib import admin from .models import Post, Job, TagVariant, UserJob logger = logging.getLogger(__name__) def remove_tags(modeladmin, request, queryset): """Remove tags.""" logger.debug('MA: %s, request: %s', modeladmin, request...
32.015267
146
0.668336
4a1a111ff0b3b315ecb33db2c135622903bb86e9
917
py
Python
ursina/models/procedural/circle.py
RedHenDev/ursina
56e66f066171d0e6a0fe4898ce4183f81160181d
[ "MIT" ]
1,431
2019-04-19T07:15:08.000Z
2022-03-31T15:33:18.000Z
ursina/models/procedural/circle.py
RedHenDev/ursina
56e66f066171d0e6a0fe4898ce4183f81160181d
[ "MIT" ]
239
2019-07-27T13:51:16.000Z
2022-03-27T16:44:30.000Z
ursina/models/procedural/circle.py
RedHenDev/ursina
56e66f066171d0e6a0fe4898ce4183f81160181d
[ "MIT" ]
297
2019-07-27T12:21:49.000Z
2022-03-30T19:28:37.000Z
from ursina import * class Circle(Mesh): def __init__(self, resolution=16, radius=.5, rotate=True, mode='ngon', **kwargs): origin = Entity() point = Entity(parent=origin) point.y = radius self.vertices = list() for i in range(resolution): origin.rotation_z -= 3...
31.62069
88
0.621592
4a1a1156885f7f284170376761d5f7fd9c1ad692
2,015
py
Python
my_classes.py
onepunchdan/fatigue-api-public
16ee6b7d7d3208bc046e97329aa4e7986df580a2
[ "MIT" ]
null
null
null
my_classes.py
onepunchdan/fatigue-api-public
16ee6b7d7d3208bc046e97329aa4e7986df580a2
[ "MIT" ]
null
null
null
my_classes.py
onepunchdan/fatigue-api-public
16ee6b7d7d3208bc046e97329aa4e7986df580a2
[ "MIT" ]
1
2021-07-03T02:05:47.000Z
2021-07-03T02:05:47.000Z
import numpy as np class DataGenerator(object): 'Generates data for Keras' def __init__(self, seq_dim = 11, seq_len = 200, batch_size = 20, shuffle = False): 'Initialization' self.seq_dim = seq_dim self.seq_len = seq_len self.batch_size = batch_size self.shuff...
34.152542
104
0.575682
4a1a1394aec1b2ab8d9a1144470f90cc72f9a02a
1,879
py
Python
google finder.py
chaudharypraveen98/python_beginner
fbde604f47bbc64e3e386d8ee758a1c336f8a3d6
[ "MIT" ]
null
null
null
google finder.py
chaudharypraveen98/python_beginner
fbde604f47bbc64e3e386d8ee758a1c336f8a3d6
[ "MIT" ]
null
null
null
google finder.py
chaudharypraveen98/python_beginner
fbde604f47bbc64e3e386d8ee758a1c336f8a3d6
[ "MIT" ]
null
null
null
poss_ways=[] g_1=["g","G"] o_1=["O","0","o","()","[]","<>"] o_2=["O","0","o","()","[]","<>"] g_2=["g","G"] l_1=["l","L","I"] e_1=["e","E","3"] for i in g_1: for j in o_1: for k in o_2: for x in g_2: for y in l_1: for z in e_1: ...
28.907692
213
0.439063
4a1a14b83bd6750eb4e4ef9781770d6cfe891358
84
py
Python
utils/models/__init__.py
roshanr11/Research-DCST
225461e6ffd7ca5a48b9688946eb36b2d98f358e
[ "MIT" ]
5
2020-04-29T08:48:53.000Z
2020-12-23T10:11:39.000Z
utils/models/__init__.py
roshanr11/Research-DCST
225461e6ffd7ca5a48b9688946eb36b2d98f358e
[ "MIT" ]
2
2020-01-11T08:31:06.000Z
2021-06-09T12:41:32.000Z
utils/models/__init__.py
roshanr11/Research-DCST
225461e6ffd7ca5a48b9688946eb36b2d98f358e
[ "MIT" ]
5
2019-11-20T02:49:03.000Z
2020-09-17T15:27:34.000Z
from .parsing import * from .parsing_gating import * from .sequence_tagger import *
21
30
0.785714
4a1a14c921cb48cafcede12d5f70947b31793f41
2,623
py
Python
Projects/Online Workouts/w3resource/Collections/program-14.py
ivenpoker/Python-Projects
2975e1bd687ec8dbcc7a4842c13466cb86292679
[ "MIT" ]
1
2019-09-23T15:51:45.000Z
2019-09-23T15:51:45.000Z
Projects/Online Workouts/w3resource/Collections/program-14.py
ivenpoker/Python-Projects
2975e1bd687ec8dbcc7a4842c13466cb86292679
[ "MIT" ]
5
2021-02-08T20:47:19.000Z
2022-03-12T00:35:44.000Z
Projects/Online Workouts/w3resource/Collections/program-14.py
ivenpoker/Python-Projects
2975e1bd687ec8dbcc7a4842c13466cb86292679
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ############################################################################################ # # # Program purpose: Rotates (negative direction) a deque object a specified number # # ...
37.471429
92
0.516965
4a1a151c952d00049f3a9c356cd8c65d98821169
260
py
Python
backend/ohq/migrations/0011_merge_20210415_2110.py
pennlabs/Office-Hours-Queue
f73ec90223c43595c9a167162d9d74abfb11ca42
[ "MIT" ]
8
2020-09-05T21:12:25.000Z
2022-01-30T18:25:12.000Z
backend/ohq/migrations/0011_merge_20210415_2110.py
pennlabs/Office-Hours-Queue
f73ec90223c43595c9a167162d9d74abfb11ca42
[ "MIT" ]
161
2020-08-05T17:05:56.000Z
2022-03-27T17:44:51.000Z
backend/ohq/migrations/0011_merge_20210415_2110.py
pennlabs/office-hours-queue
fce98d3a1b83d1459f61e6d9c3347ef619ee384e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-15 21:10 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("ohq", "0010_auto_20210407_0145"), ("ohq", "0010_auto_20210405_1720"), ] operations = []
18.571429
47
0.65
4a1a15453e252e713289bb6a73069a5076d7aaec
2,334
py
Python
esCUITValida.py
eliluminado/esCUITValida
5c8c1b74a62d4e822907a7685e050d817d4e610c
[ "W3C" ]
1
2018-08-12T22:48:34.000Z
2018-08-12T22:48:34.000Z
esCUITValida.py
eliluminado/esCUITValida
5c8c1b74a62d4e822907a7685e050d817d4e610c
[ "W3C" ]
null
null
null
esCUITValida.py
eliluminado/esCUITValida
5c8c1b74a62d4e822907a7685e050d817d4e610c
[ "W3C" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # <Aplicacion en Python para verificar la valides de la CUIT.> # Copyright (C) 2012 Alejandro Alvarez <contacto@codigopython.com.ar> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published...
34.835821
88
0.638389
4a1a171be03090bc0e5e6b50448cdf26f614857d
2,520
py
Python
vendor/pip-1.2.1/tests/local_repos.py
hmoody87/heroku-buildpack-python-ffmpeg-lame
ba7f092f0f341dfb274da311ebc8a1ff43ac2e0a
[ "MIT" ]
2
2017-07-14T06:55:03.000Z
2021-06-03T19:54:37.000Z
vendor/pip-1.2.1/tests/local_repos.py
hmoody87/heroku-buildpack-python-ffmpeg-lame
ba7f092f0f341dfb274da311ebc8a1ff43ac2e0a
[ "MIT" ]
null
null
null
vendor/pip-1.2.1/tests/local_repos.py
hmoody87/heroku-buildpack-python-ffmpeg-lame
ba7f092f0f341dfb274da311ebc8a1ff43ac2e0a
[ "MIT" ]
3
2015-03-26T17:19:04.000Z
2020-11-11T13:50:47.000Z
import os import subprocess from pip.vcs import subversion, git, bazaar, mercurial from pip.backwardcompat import urlretrieve from tests.test_pip import path_to_url from tests.pypi_server import PyPIProxy if hasattr(subprocess, "check_call"): subprocess_call = subprocess.check_call else: subprocess_call = sub...
33.157895
118
0.712302
4a1a1746db7ec18226ad45bf9e98ecdf133faf45
49,464
py
Python
setup.py
kellydunn/MIDItoOBS
25b61c6777cdcf37cbf9d2516effb8ad9d058c1a
[ "MIT" ]
1
2021-07-16T09:55:30.000Z
2021-07-16T09:55:30.000Z
setup.py
kellydunn/MIDItoOBS
25b61c6777cdcf37cbf9d2516effb8ad9d058c1a
[ "MIT" ]
null
null
null
setup.py
kellydunn/MIDItoOBS
25b61c6777cdcf37cbf9d2516effb8ad9d058c1a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import mido, threading, sys, atexit, json, time, signal, argparse from tinydb import TinyDB, Query from websocket import create_connection parser = argparse.ArgumentParser(description='MIDItoOBS Config Setup') parser.add_argument('--config', default='config.json', ...
51.258031
596
0.60911
4a1a177c88b14b37e2a0507a59274b5dd83b09c3
1,337
py
Python
cartpole/cp_r.py
Luca-Mueller/drl-transfer
6b6f3c4dc8540e42b42d25523f948ea9de4f4ed1
[ "MIT" ]
null
null
null
cartpole/cp_r.py
Luca-Mueller/drl-transfer
6b6f3c4dc8540e42b42d25523f948ea9de4f4ed1
[ "MIT" ]
null
null
null
cartpole/cp_r.py
Luca-Mueller/drl-transfer
6b6f3c4dc8540e42b42d25523f948ea9de4f4ed1
[ "MIT" ]
null
null
null
import pickle import sys import numpy as np from pathlib import Path HISTORY = Path("history") KEYS = ["buffer_transfer", "model_transfer", "double_transfer"] def calc_r(default_score, transfer_score): mean_default = np.mean(default_score, axis=0) mean_transfer = np.mean(transfer_score, axis=0) return (s...
31.833333
90
0.521316
4a1a17c51a82a81a9a3d0efacc75835d627e37d7
2,897
py
Python
test/orm/test_selectable.py
lambdanis/sqlalchemy
f94648bb922a73423d73f17c2148253fcc5893b9
[ "MIT" ]
6
2019-02-18T12:42:44.000Z
2020-11-11T23:10:17.000Z
test/orm/test_selectable.py
KonstantinKlepikov/sqlalchemy-1
2c34d2503a17316cae3282192405b9b9d60df6fe
[ "MIT" ]
null
null
null
test/orm/test_selectable.py
KonstantinKlepikov/sqlalchemy-1
2c34d2503a17316cae3282192405b9b9d60df6fe
[ "MIT" ]
2
2021-06-12T01:38:00.000Z
2021-09-05T21:18:29.000Z
"""Generic mapping to Select statements""" import sqlalchemy as sa from sqlalchemy import column from sqlalchemy import Integer from sqlalchemy import select from sqlalchemy import String from sqlalchemy import testing from sqlalchemy.orm import mapper from sqlalchemy.orm import Session from sqlalchemy.testing import a...
32.188889
78
0.646186
4a1a17d57daa4fc6f69a812aa82eedd50f320d3d
1,798
py
Python
utils/common_info.py
huaweiatlasTest/AtkEval
9d1f494e59f979c739ef6ec557a053dac44058e4
[ "BSD-3-Clause" ]
null
null
null
utils/common_info.py
huaweiatlasTest/AtkEval
9d1f494e59f979c739ef6ec557a053dac44058e4
[ "BSD-3-Clause" ]
null
null
null
utils/common_info.py
huaweiatlasTest/AtkEval
9d1f494e59f979c739ef6ec557a053dac44058e4
[ "BSD-3-Clause" ]
1
2020-01-06T13:51:25.000Z
2020-01-06T13:51:25.000Z
import os class CommonInfo(object): '''class for temporary path info''' __base = '.tmp' __sub_model = '.tmp/sub_model' __golden_data = '.tmp/golden_data' __davinci_model = '.tmp/davinci_model' __davinci_data = '.tmp/davinci_data' __tf_black_list = {'Identity', 'Const', 'Reshape', 'Shape'} ...
29
63
0.650167
4a1a1823dd18d1a5cd6214e0f267997e74df93ed
27,204
py
Python
lib/sqlalchemy/orm/interfaces.py
paylogic/sqlalchemy
876a487bf06a038efde7d46ce09e253b9247aae5
[ "MIT" ]
2
2015-11-07T11:55:45.000Z
2017-09-04T07:56:34.000Z
lib/sqlalchemy/orm/interfaces.py
mitsuhiko/sqlalchemy
5a6895471fb6bf9afe9bdf017f1fa2c6246ae303
[ "MIT" ]
null
null
null
lib/sqlalchemy/orm/interfaces.py
mitsuhiko/sqlalchemy
5a6895471fb6bf9afe9bdf017f1fa2c6246ae303
[ "MIT" ]
null
null
null
# orm/interfaces.py # Copyright (C) 2005-2013 the SQLAlchemy authors and contributors <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ Contains various base classes used throughout the ORM. Defines the now depreca...
33.751861
89
0.597192
4a1a18620178fca8f329b0dcfaf1eeea87cc5027
2,268
py
Python
2017/Day1-2.py
josephgruber/AoC
8b103ab9f4ac396b7a0ccf04667443a43bef704d
[ "MIT" ]
null
null
null
2017/Day1-2.py
josephgruber/AoC
8b103ab9f4ac396b7a0ccf04667443a43bef704d
[ "MIT" ]
null
null
null
2017/Day1-2.py
josephgruber/AoC
8b103ab9f4ac396b7a0ccf04667443a43bef704d
[ "MIT" ]
null
null
null
inputData = '3294199471327195994824832197564859876682638188889768298894243832665654681412886862234525991553276578641265589959178414218389329361496673991614673626344552179413995562266818138372393213966143124914469397692587251112663217862879233226763533911128893354536353213847122251463857894159819828724827969576432191847...
151.2
2,028
0.962963
4a1a18bcd9d83d8b6360a5d75f79158fd5411607
1,764
py
Python
src/FFEAT/ffeat/pso/neighborhood/Nearest.py
PatrikValkovic/MasterThesis
6e9f3b186541db6c8395ebc96ace7289d01c805b
[ "MIT" ]
null
null
null
src/FFEAT/ffeat/pso/neighborhood/Nearest.py
PatrikValkovic/MasterThesis
6e9f3b186541db6c8395ebc96ace7289d01c805b
[ "MIT" ]
null
null
null
src/FFEAT/ffeat/pso/neighborhood/Nearest.py
PatrikValkovic/MasterThesis
6e9f3b186541db6c8395ebc96ace7289d01c805b
[ "MIT" ]
null
null
null
############################### # # Created by Patrik Valkovic # 3/18/2021 # ############################### from typing import Union, Callable import torch as t from .Neighborhood import Neighborhood _IFU = Union[float, int] class Nearest(Neighborhood): """ Closest neighbors neighborhood. This neighborhood i...
38.347826
119
0.62415
4a1a19bf6ba34c6cfbcb836d8e4b4aac818c7c3d
4,153
py
Python
py3-old/generateData.py
adrianhindes/cavity-sml
ad8905bdecfb9f106f6149da4edf31eb04ac9630
[ "MIT" ]
1
2017-05-01T10:29:22.000Z
2017-05-01T10:29:22.000Z
py3-old/generateData.py
adrianhindes/cavity-sml
ad8905bdecfb9f106f6149da4edf31eb04ac9630
[ "MIT" ]
null
null
null
py3-old/generateData.py
adrianhindes/cavity-sml
ad8905bdecfb9f106f6149da4edf31eb04ac9630
[ "MIT" ]
null
null
null
# Take raw Finesse data # Transform through rotations, shears, rescalings and flips to # generate training and validation data sets from keras.preprocessing.image import ImageDataGenerator, array_to_img, \ img_to_array, load_img from skimage import util, io from PIL import Image import os from shutil import copyfi...
33.764228
105
0.660005
4a1a1a42b0c689f209aae28c3895be22830275f4
1,511
py
Python
em.py
Fatman13/gta_swarm
1c4603f39cd7831f5907fd619594452b3320f75f
[ "MIT" ]
null
null
null
em.py
Fatman13/gta_swarm
1c4603f39cd7831f5907fd619594452b3320f75f
[ "MIT" ]
null
null
null
em.py
Fatman13/gta_swarm
1c4603f39cd7831f5907fd619594452b3320f75f
[ "MIT" ]
null
null
null
# down vote def send_email(user, pwd, recipient, subject, body): import smtplib gmail_user = user gmail_pwd = pwd FROM = user TO = recipient if type(recipient) is list else [recipient] SUBJECT = subject TEXT = body # Prepare actual message message = """From: %s\nTo: %s\...
32.847826
113
0.622105
4a1a1ba82cba5b4e37e55fa50cb7dbbf9f7489e4
5,631
py
Python
ambari-agent/src/test/python/resource_management/TestDatanodeHelper.py
fangxingli/mambari
6da9f6090d4d42623529b73413c8feb8b7f6fe45
[ "Apache-2.0", "MIT" ]
null
null
null
ambari-agent/src/test/python/resource_management/TestDatanodeHelper.py
fangxingli/mambari
6da9f6090d4d42623529b73413c8feb8b7f6fe45
[ "Apache-2.0", "MIT" ]
null
null
null
ambari-agent/src/test/python/resource_management/TestDatanodeHelper.py
fangxingli/mambari
6da9f6090d4d42623529b73413c8feb8b7f6fe45
[ "Apache-2.0", "MIT" ]
3
2017-10-31T11:42:31.000Z
2021-04-26T07:17:53.000Z
''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
37.046053
152
0.731486
4a1a1bbb7ccf7af970e07d65191c2502a68fe265
2,525
py
Python
2019/fourier_xmas/xmas.py
jmenzelupb/MSMP-xmas
856a914de5699347ba17716edb8c02842651de24
[ "Unlicense" ]
1
2018-01-09T09:39:20.000Z
2018-01-09T09:39:20.000Z
2019/fourier_xmas/xmas.py
jmenzelupb/MSMP-xmas
856a914de5699347ba17716edb8c02842651de24
[ "Unlicense" ]
null
null
null
2019/fourier_xmas/xmas.py
jmenzelupb/MSMP-xmas
856a914de5699347ba17716edb8c02842651de24
[ "Unlicense" ]
8
2017-12-20T13:50:49.000Z
2019-12-16T10:18:36.000Z
#MSMP Christmas Challenge, entry by Johannes Menzel import matplotlib.pyplot as plt import numpy as np import matplotlib.animation as animation Box = [0.0, 0.0 + 3.5j, 11.0 + 3.5j, 11.0, 0.0] X=[0.0, -1.0 + -1.0j, 1.0 + 1.0j, 0.0, -1.0 + 1.0j, 1.0 + -1.0j] M=[-1.0 + -1.0j, -1.0 + 1.0j, 0.0, 1.0 + 1.0j, 1.0 + -1.0j]...
27.445652
115
0.574653
4a1a1bc3d3980acdfea619990607b63eec45e291
1,845
py
Python
arakat-backend/validity/PipelineValidityChecker.py
ahmetfyildirim/arakat
01cfebdb77cdcec5723b0dc9d7d597a3b288f9e1
[ "Apache-2.0" ]
null
null
null
arakat-backend/validity/PipelineValidityChecker.py
ahmetfyildirim/arakat
01cfebdb77cdcec5723b0dc9d7d597a3b288f9e1
[ "Apache-2.0" ]
null
null
null
arakat-backend/validity/PipelineValidityChecker.py
ahmetfyildirim/arakat
01cfebdb77cdcec5723b0dc9d7d597a3b288f9e1
[ "Apache-2.0" ]
null
null
null
from domain.ErrorTypes import ErrorTypes from domain.NodeFamilyTypes import NodeFamilyTypes def check_validity(pipeline_nodes, pipeline_edges): for node_id in pipeline_nodes: if(not pipeline_nodes[node_id]["compatible_with_spark_pipeline"]): return ErrorTypes.INCOMPATIBLE_PIPELINE_NODE, [] ...
39.255319
115
0.704607
4a1a1c230882a509e671c46975619de635a6a57b
6,311
py
Python
src/hdusd/ui/hdrpr_render.py
bnagirniak/BlenderUSDHydraAddon
d71410e6795c749001985d61c104d62ee10d07dd
[ "Apache-2.0" ]
212
2020-12-08T18:54:00.000Z
2022-03-31T21:52:12.000Z
src/hdusd/ui/hdrpr_render.py
bnagirniak/BlenderUSDHydraAddon
d71410e6795c749001985d61c104d62ee10d07dd
[ "Apache-2.0" ]
62
2020-12-09T21:26:27.000Z
2022-03-29T12:10:36.000Z
src/hdusd/ui/hdrpr_render.py
bnagirniak/BlenderUSDHydraAddon
d71410e6795c749001985d61c104d62ee10d07dd
[ "Apache-2.0" ]
23
2020-12-09T09:39:17.000Z
2022-03-21T19:59:54.000Z
#********************************************************************** # Copyright 2020 Advanced Micro Devices, 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.or...
32.035533
95
0.678181
4a1a1d1a32152282a5a04148a6c549f1be0ee1d1
1,397
py
Python
connector/facebook/utils.py
Ahmed0Sultan/cipher-chatbot
3a5613976ea9d88d98eb8cfee46a0472fb24aafd
[ "MIT" ]
3
2021-05-06T15:09:49.000Z
2022-02-16T16:34:00.000Z
connector/facebook/utils.py
Ahmed0Sultan/cipher-chatbot
3a5613976ea9d88d98eb8cfee46a0472fb24aafd
[ "MIT" ]
null
null
null
connector/facebook/utils.py
Ahmed0Sultan/cipher-chatbot
3a5613976ea9d88d98eb8cfee46a0472fb24aafd
[ "MIT" ]
null
null
null
import hashlib import hmac import six def validate_hub_signature(app_secret, request_payload, hub_signature_header): """ @inputs: app_secret: Secret Key for application request_payload: request body hub_signature_header: X-Hub-Signature header sent with request ...
33.261905
111
0.65927
4a1a1d370a5bf8fe2972d44b9b3e0b6cca38ed64
29,477
py
Python
hparams.py
gabrieldi95/Tacotron-2
766e3b3f7411f8f779ff60f2b6a0ac3bb55219cb
[ "MIT" ]
null
null
null
hparams.py
gabrieldi95/Tacotron-2
766e3b3f7411f8f779ff60f2b6a0ac3bb55219cb
[ "MIT" ]
null
null
null
hparams.py
gabrieldi95/Tacotron-2
766e3b3f7411f8f779ff60f2b6a0ac3bb55219cb
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf # Default hyperparameters hparams = tf.contrib.training.HParams( # Comma-separated list of cleaners to run on text prior to training and eval. For non-English # text, you may want to use "basic_cleaners" or "transliteration_cleaners". cleaners='english_cleaners', #If yo...
77.571053
190
0.751976
4a1a1d3f8f98d700f8ab535269c0a56d8c9a9989
488
py
Python
kendama/migrations/0011_ladder_private.py
amin-da71/Benbb96
0c9e37425d0665e403ba6fecf0c4b17669c29ada
[ "MIT" ]
null
null
null
kendama/migrations/0011_ladder_private.py
amin-da71/Benbb96
0c9e37425d0665e403ba6fecf0c4b17669c29ada
[ "MIT" ]
13
2021-02-13T20:15:18.000Z
2022-03-11T23:57:07.000Z
kendama/migrations/0011_ladder_private.py
amin-da71/Benbb96
0c9e37425d0665e403ba6fecf0c4b17669c29ada
[ "MIT" ]
null
null
null
# Generated by Django 2.2.13 on 2020-08-06 12:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('kendama', '0010_auto_20200806_1259'), ] operations = [ migrations.AddField( model_name='ladder', name='private', ...
25.684211
152
0.635246